/* Home – design system */
body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(160deg, #0f172a 0%, #1e293b 40%, #0f172a 100%);
    background-attachment: fixed;
    min-height: 100vh;
    color: #f1f5f9;
}

h1, h2, h3, h4, h5, h6, p, span, a, label, li {
    color: #f1f5f9;
}

a:hover {
    color: #60a5fa;
}

/* Section layout */
#homeMain {
    padding-bottom: 2rem;
}

.home-section {
    margin-bottom: 2.5rem;
}

.section-heading {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0 0 0.5rem 0;
    color: #f1f5f9;
}

.section-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.section-badge {
    display: inline-block;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    font-size: 0.8125rem;
    font-weight: 600;
    padding: 0.35rem 0.875rem;
    border-radius: 9999px;
    white-space: nowrap;
}

#topBox {
    width: 80%;
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    margin-top: 1.5rem;
    flex-wrap: wrap;
    padding: 0 1rem;
    gap: 1.5rem;
}


#tleft{
    width: 65%;
    min-width: 0;
}
#slideShow{
    width: 100%;
    margin-bottom: 10px;
}

#slideShow>img{
    width: 100%;
    /* border: 1px solid black; */
    border-radius: 10px;
}

.tCard{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
}

#ranking, #Clearance {
    background: linear-gradient(145deg, #1e293b 0%, #0f172a 100%);
    border: 1px solid rgba(59, 130, 246, 0.25);
    flex: 1 1 45%;
    min-width: 140px;
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    color: #f1f5f9;
}

#ranking h2, #Clearance h2 {
    font-size: 1.125rem;
    font-weight: 700;
    margin: 0 0 0.75rem 0;
    color: #f1f5f9;
}

.timg {
    display: flex;
    gap: 0.5rem;
}

.timg img {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.timg > div {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.timg > div:hover {
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.5);
    transform: translateY(-2px);
}

.timg h3 {
    position: absolute;
    top: 0;
    left: 0;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    border-bottom-right-radius: 8px;
}

.timg p {
    text-align: center;
    color: #e2e8f0;
    font-size: 0.9375rem;
    font-weight: 500;
    margin: 0.25rem 0 0 0;
}


/* Top Right */


#tright{
    width: 32%;
    min-width: 0;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Welcome Card */
#welcome {
    padding: 1.5rem;
    background: linear-gradient(145deg, #1e293b 0%, #0f172a 100%);
    border: 1px solid rgba(59, 130, 246, 0.25);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    color: #f1f5f9;
}

#welcome > #welcometo {
    margin-bottom: 1.25rem;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 1rem;
    align-items: center;
}

#welcome img {
    width: 65%;
    border-radius: 50%;
}

#welcometo > div > h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    color: #f1f5f9;
}

#welcome button {
    padding: 0.5rem 1.25rem;
    margin: 0.25rem 0.25rem 0 0;
    border-radius: 9999px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border: none;
    font-weight: 600;
    font-size: 0.875rem;
    color: white;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#welcome button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

#welcome h4 {
    font-size: 0.9375rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    color: #e2e8f0;
}

#policy {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem 0.75rem;
}

#policy p {
    font-size: 0.8125rem;
    color: #cbd5e1;
}

/* User benefits */
#benifits {
    padding: 1.5rem;
    background: linear-gradient(145deg, #1e293b 0%, #0f172a 100%);
    border: 1px solid rgba(59, 130, 246, 0.25);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    color: #f1f5f9;
}

#benifits img {
    width: 100%;
    border-radius: 8px;
}

#benifits h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin: 0 0 0.75rem 0;
    color: #f1f5f9;
}

/* Shop by Category */
#_2ndRow {
    width: 75%;
    max-width: 100%;
    margin: 0 auto 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    padding: 0 1rem;
}

#_2ndRow .section-heading {
    flex-basis: 100%;
    text-align: center;
    margin-bottom: 1rem;
}

.pCard {
    background: linear-gradient(145deg, #1e293b 0%, #0f172a 100%);
    border: 1px solid rgba(59, 130, 246, 0.25);
    width: 15%;
    min-width: 100px;
    flex: 0 1 auto;
    text-align: center;
    border-radius: 12px;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.2s ease;
}

.pCard:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(59, 130, 246, 0.35);
    border-color: rgba(59, 130, 246, 0.45);
}

.pCard img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px 12px 0 0;
}

.pCard h3 {
    margin: 0.5rem 0.5rem 0.75rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #f1f5f9;
    line-height: 1.3;
}


#hobbySale >img{
    width: 100%;
    position: relative;
    top: 0px;
    z-index: -1;
}

#getTips{
    position: absolute;
}
#lowPrce{
    position: absolute;
    top: 0px;
    right: 0px;
}
#hobbyCard{
    width: 30%;
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 10px;
    position: absolute;
    top: 0px;
    left: 0;
    right: 0;
    margin-left: auto;
    margin-right: auto;
    
}
#hobbyCard >img{
    border-radius: 10px;
    width: 100%;
}
#hobbyCardText{
    position: absolute;
    top: 50%;
    left: 0; 
    right: 0; 
    margin-left: auto; 
    margin-right: auto; 
    color: white;
    /* border: 1px solid black; */
}

#hobbyCardText > h4{
    text-align: center;
    margin-top: 20px;
    color: white;
}
#hobbyCardText > h1{
    text-align: center;
    font-size: 25px;
    color: white;
}

/* Flash Deals */
#flashDeals_ {
    width: 80%;
    max-width: 100%;
    margin: 0 auto;
    padding: 1.5rem;
    background: linear-gradient(145deg, #1e293b 0%, #0f172a 100%);
    border: 1px solid rgba(59, 130, 246, 0.25);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    color: #f1f5f9;
    overflow: hidden;
}

#flashDeals_ .section-heading {
    margin: 0;
}

#flash_ {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 1rem;
    text-align: center;
}

#flash_ > div {
    background: rgba(15, 23, 42, 0.6);
    border-radius: 10px;
    padding: 0.75rem;
    border: 1px solid rgba(59, 130, 246, 0.15);
    transition: border-color 0.2s ease, transform 0.2s ease;
}

#flash_ > div:hover {
    border-color: rgba(59, 130, 246, 0.4);
    transform: translateY(-2px);
}

#flash_ img {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
}

#flash_ p {
    margin: 0.5rem 0 0 0;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #60a5fa;
}




/* Discover + Top Brands */
#Discover {
    width: 80%;
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1.5rem;
}

.discover-card {
    flex: 1 1 45%;
    min-width: 0;
    max-width: 49%;
    padding: 1.5rem;
    background: linear-gradient(145deg, #1e293b 0%, #0f172a 100%);
    border: 1px solid rgba(59, 130, 246, 0.25);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    color: #f1f5f9;
}

.discover-card .section-heading {
    margin: 0;
    font-size: 1.25rem;
}

#discoverNew > .timg {
    margin-top: 1rem;
    justify-content: space-between;
}

#discoverNew .timg p {
    color: #60a5fa;
    font-weight: 600;
}

#_2ndBox > .timg > div > img,
#_2ndBox ._2ndBoxProduct img {
    max-width: 100%;
    width: 100%;
    height: auto;
    border-radius: 8px;
}

._2ndBoxProduct {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-top: 1rem;
    flex-wrap: wrap;
}

._2ndBoxProduct > div {
    width: 30%;
    min-width: 80px;
}

._2ndBoxProduct > div > img {
    width: 100%;
    display: block;
}

._2ndBoxProduct > div:hover {
    opacity: 0.95;
}



/* <!-- //////////////Picks For You --> */



#picksForYou{
    width: 80%;
    max-width: 100%;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
    row-gap: 15px;
    margin: auto;
    overflow: hidden;
}

.card {
    padding: 0.75rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    background: linear-gradient(145deg, #1e293b 0%, #0f172a 100%);
    border: 1px solid rgba(59, 130, 246, 0.25);
    border-radius: 12px;
    color: #f1f5f9;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.2s ease;
}

.card > img {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
}

.card > p:nth-child(2) {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #f1f5f9;
    margin: 0.5rem 0 0.25rem 0;
    line-height: 1.3;
}

.card > p:nth-child(3) {
    text-decoration: line-through;
    color: #94a3b8;
    font-size: 0.8125rem;
}

.card > p:nth-child(4) {
    margin-left: 0.5rem;
    color: #60a5fa;
    font-weight: 600;
    font-size: 0.9375rem;
}

.card:hover {
    box-shadow: 0 8px 28px rgba(59, 130, 246, 0.35);
    border-color: rgba(59, 130, 246, 0.45);
    transform: translateY(-3px);
}

/* Picks For You */
#topPicks {
    width: 80%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 1rem 2rem;
}

#topPicks .section-header {
    margin-bottom: 1.25rem;
}

#topPicks .section-heading {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
}

#footer_ {
    width: 100%;
    margin-top: 50px;
}

#footer_ #footer {
    width: 100%;
    display: block;
}

/* Responsive: home / index */
@media (max-width: 1024px) {
    #topBox { width: 92%; }
    #tleft, #tright { width: 100%; }
    #tright { margin-top: 0; }
    #_2ndRow, #flashDeals_, #Discover { width: 92%; }
    #Discover { overflow: hidden; }
    .discover-card { max-width: 100%; }
    #picksForYou { width: 92%; grid-template-columns: repeat(4, minmax(0, 1fr)); }
    #topPicks { width: 92%; }
    .pCard { width: 18%; min-width: 100px; }
}

@media (max-width: 768px) {
    #topBox { width: 95%; flex-direction: column; }
    #tleft, #tright { width: 100%; }
    .tCard { flex-direction: column; }
    #ranking, #Clearance { width: 100%; flex: none; }
    #_2ndRow { width: 95%; gap: 8px; }
    .pCard { width: 30%; min-width: 100px; }
    #flashDeals_ { width: 95%; }
    #flash_ { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    #Discover { width: 95%; flex-direction: column; gap: 1.25rem; overflow: hidden; }
    .discover-card { width: 100%; max-width: 100%; flex: none; min-width: 0; }
    #picksForYou { width: 95%; grid-template-columns: repeat(3, minmax(0, 1fr)); }
    #topPicks { width: 95%; }
    #topPicks .section-heading { font-size: 1.25rem; }
}

@media (max-width: 480px) {
    #topBox { width: 100%; margin-top: 0.75rem; padding: 0 0.75rem; }
    #_2ndRow, #flashDeals_, #Discover { width: 100%; }
    #Discover { flex-direction: column; overflow: hidden; }
    .discover-card { width: 100%; max-width: 100%; flex: none; min-width: 0; padding: 1rem; }
    .pCard { width: 45%; min-width: 0; }
    #flash_ { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
    #picksForYou { width: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; padding: 0 0.5rem; }
    #topPicks { width: 100%; padding: 0 0.5rem 1.5rem; }
    #topPicks .section-heading { font-size: 1.125rem; }
    #welcome #welcometo { grid-template-columns: 1fr; text-align: center; }
    #policy { grid-template-columns: 1fr; }
}