html {
    scroll-behavior: smooth;
}

/* HERO SECTION */
.hero {
    background: var(--brand-bg-warm);
    padding: 48px 40px;
    /* margin: 0 16px; */
    display: flex;
    align-items: center;
    gap: 36px;
    position: relative;
    overflow: hidden;
}

/* added */
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background: linear-gradient(to bottom, transparent, #fff);
  z-index: 5;
}

.hero-photo {
    background-image: url('../products/hero-bg.png');
    background-size: cover;
    background-position: center 30%;
    position: relative;
    min-height: 420px;
    display: flex;
    align-items: center;
    padding: 48px 56px;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        100deg,
        rgba(60, 43, 34, 0.94) 0%,
        rgba(60, 43, 34, 0.88) 30%,
        rgba(60, 43, 34, 0.55) 50%,
        rgba(60, 43, 34, 0.1) 68%,
        rgba(60, 43, 34, 0) 78%
    );
}

.hero-text {
    position: relative;
    z-index: 1;
    max-width: 460px;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 18px;
}

.hero-tag i {
    font-size: 13px;
    color: var(--brand-accent-light);
}

.hero-tag span {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    color: #FFFFFF;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
}

.hero-text h1 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 36px;
    color: #FFFFFF;
    line-height: 1.2;
    margin: 0 0 14px;
    text-shadow: 0 2px 12px rgba(0,0,0,0.25);
}

.hero-text p {
    font-size: 14.5px;
    color: rgba(255,255,255,0.88);
    margin: 0 0 26px;
    line-height: 1.6;
    max-width: 36ch;
}

.hero-cta {
    display: inline-block;
    background: var(--brand-accent);
    color: #3C2B22;
    padding: 13px 28px;
    border-radius: 9px;
    font-weight: 700;
    font-size: 13.5px;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 8px 20px -6px rgba(201, 151, 63, 0.6);
}



/* shop by categories - */
.shop-by-category {
    padding: 40px 32px 28px;
}

.sbc-heading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    text-align: center;
    margin-bottom: 28px;
}

.sbc-line {
    height: 1px;
    width: 60px;
    background: var(--brand-accent);
}

.sbc-heading h2 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 24px;
    color: var(--brand-text-dark);
    margin: 0 0 4px;
}

.sbc-heading p {
    font-size: 12.5px;
    color: #9A8A7C;
    margin: 0;
}

.sbc-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.sbc-card {
    border-radius: 14px;
    padding: 22px;
    text-align: center;
}

.sbc-card h3 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 17px;
    color: var(--brand-text-dark);
    margin: 0 0 3px;
}

.sbc-count {
    font-size: 11.5px;
    color: #8A7A6C;
    margin: 0 0 16px;
}

.sbc-img {
    height: 140px;
    width: calc(100% + 44px);   /* card ke 22px padding ko cancel karke edge-to-edge */
    margin: 0 -22px 16px;        /* negative margin left-right, bottom gap same */
    overflow: hidden;
    border-radius: 10px;
}

.sbc-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;           /* image poora box fill karegi, crop hoke */
    display: block;
}

.sbc-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #FFFFFF;
    padding: 9px 16px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
}

.sbc-btn i {
    font-size: 12px;
}

/* Per-category tints, all staying within the brand family */
.sbc-fmcg { background: #E9F0E6; }
.sbc-fmcg .sbc-img i { color: #6B8F5E; }
.sbc-fmcg .sbc-btn { color: #4E6B44; }

.sbc-groceries { background: #F6EAD3; }
.sbc-groceries .sbc-img i { color: #C9973F; }
.sbc-groceries .sbc-btn { color: #8A6B2E; }

.sbc-electronics { background: #EFE6E9; }
.sbc-electronics .sbc-img i { color: #7A4632; }
.sbc-electronics .sbc-btn { color: #5C3526; }

.sbc-electricals { background: #F5E1DA; }
.sbc-electricals .sbc-img i { color: #B0553F; }
.sbc-electricals .sbc-btn { color: #8A4130; }



/* products list*/

.category-section {
    padding: 32px 32px;
}

.section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 22px;
}

.section-header h2 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 22px;
    color: var(--brand-text-dark);
    margin: 0 0 4px;
}

.section-sub {
    font-size: 12.5px;
    color: #9A8A7C;
    margin: 0;
}

.view-all {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--brand-primary) !important;
    font-size: 12.5px;
    font-weight: 600;
    text-decoration: none !important;
    flex-shrink: 0;
}

.view-all i {
    font-size: 13px;
}

.group-scroll {
    display: flex;
    gap: 28px;
    overflow-x: auto;
    padding-bottom: 10px;
    scrollbar-width: thin;
}

.group-scroll::-webkit-scrollbar {
    height: 5px;
}

.group-scroll::-webkit-scrollbar-thumb {
    background: var(--brand-border);
    border-radius: 10px;
}

.group-item {
    flex: 0 0 auto;
    width: 140px;
    text-align: center;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.group-img {
    width: 140px;
    height: 130px;
    border-radius: 14px;
    background: var(--brand-bg-light);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 16px -8px rgba(122, 70, 50, 0.18);
}

.group-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.group-item span {
    font-size: 13px;
    font-weight: 500;
    color: var(--brand-text-dark);
    line-height: 1.3;
}

.category-section {
    padding: 20px 32px;
}

.section-header {
    margin-bottom: 18px;
}

.group-scroll {
    padding-bottom: 4px;
}

.group-item span {
    margin-bottom: 0;
}

/* .category-section.compact .group-item {
    width: 170px;
}

.category-section.compact .group-img {
    width: 170px;
    height: 160px;
} */

/* category-detail page */

.category-section {
    padding: 20px 32px;
}

.section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 18px;
}

.section-header h2 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 22px;
    color: var(--brand-text-dark);
    margin: 0;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.product-link,
.product-link:hover,
.product-link:visited,
.product-link * {
    text-decoration: none !important;
    color: inherit !important;
}

.product-link {
    display: block;
}

.product-card {
    background: #FFFFFF;
    border: 1px solid var(--brand-border);
    border-radius: 10px;
    overflow: hidden;
}

.product-image {
    height: 110px;
    width: 100%;
    background: var(--brand-bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info {
    padding: 12px;
}

.product-name {
    font-size: 13px;
    font-weight: 500;
    color: var(--brand-text-dark);
    margin-bottom: 6px;
}

.product-price {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 14px;
    color: var(--brand-primary);
    margin-bottom: 10px;
}

.add-btn {
    width: 100%;
    background: var(--brand-accent);
    border: none;
    padding: 8px;
    border-radius: 6px;
    font-size: 11.5px;
    font-weight: 600;
    color: var(--brand-text-dark);
    cursor: pointer;
    display: block;
    text-align: center;
    text-decoration: none;
}


.price-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 6px;
}

.price-pill {
    display: inline-block;
    /* background: var(--brand-instock); */
    background: #C9973F;
    color: #FFFFFF;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 14px;
    padding: 4px 10px;
    border-radius: 6px;
    line-height: 1.2;
}

.price-pill-lg {
    display: inline-block;
    /* background: var(--brand-instock); */
    background-color: #C9973F;
    color: #FFFFFF;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 22px;
    padding: 8px 18px;
    border-radius: 8px;
    line-height: 1.2;
}

.mrp-strike {
    font-size: 12px;
    color: #A69A8C;
    text-decoration: line-through !important;
}

.discount-line {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.discount-badge {
    display: inline-block;
    background: none;
    color: var(--brand-instock);
    font-weight: 700;
    font-size: 12px;
    padding: 0;
}

.discount-dots {
    flex: 1;
    border-bottom: 1px dashed var(--brand-border);
    min-width: 12px;
}




/* cart quantity */

.stepper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--brand-accent);
    border-radius: 6px;
    padding: 6px 10px;
}

.step-btn {
    color: var(--brand-text-dark);
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    width: 20px;
    text-align: center;
}

.qty-val {
    font-weight: 700;
    font-size: 12.5px;
    color: var(--brand-text-dark);
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
    .hero {
        padding: 0;
    }

    .hero-photo {
        min-height: 340px;
        padding: 32px 24px;
    }

    .hero-text {
        max-width: 100%;
    }

    .hero-text h1 {
        font-size: 28px;
    }

    .sbc-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .shop-by-category {
        padding: 32px 20px 20px;
    }

    .category-section {
        padding: 20px 20px;
    }

    .product-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
}

@media (max-width: 560px) {
    .hero-photo {
        min-height: 360px;
        padding: 24px 18px;
    }


.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background: linear-gradient(to bottom, transparent, #fff);
  z-index: 5;
}

    .hero-text h1 {
        font-size: 22px;
    }

    .hero-text p {
        font-size: 13px;
        max-width: none;
    }

    .hero-cta {
        padding: 11px 22px;
        font-size: 12.5px;
    }

    .sbc-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .sbc-card {
        padding: 14px;
    }

    .sbc-img {
        height: 100px;
        width: calc(100% + 28px);
        margin: 0 -14px 12px;
    }

    .sbc-heading {
        gap: 10px;
        margin-bottom: 20px;
    }

    .sbc-line {
        width: 30px;
    }

    .sbc-heading h2 {
        font-size: 19px;
    }

    .section-header h2 {
        font-size: 18px;
    }

    .section-header {
        flex-wrap: wrap;
        gap: 8px;
    }

    .group-item {
        width: 105px;
    }

    .group-img {
        width: 105px;
        height: 95px;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .product-image {
        height: 90px;
    }
}

@media (max-width: 380px) {
    .sbc-grid {
        grid-template-columns: 1fr;
    }
}