
:root {
    --gold: #d7ad55;
    --gold-dark: #a77c2b;
    --purple: #5b2589;
    --text: #211e25;
    --muted: #88838a;
    --background: #ffffff;
    --card-border: #f0edf2;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text);
    background: var(--background);
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
}

/* =========================
   Reusable Back Button
========================= */

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    /* margin-bottom: 30px; */
    margin-left: 20px;
    margin-top: 20px;
    color: var(--muted, #88838a);
    font-size: 13px;
    text-decoration: none;
    transition: color 0.2s ease;
}

.back-link span {
    font-size: 17px;
    line-height: 1;
}

.back-link:hover {
    color: var(--gold-dark, #a77c2b);
}

/* =========================
    CATEGORY GRID - 10 ITEMS
========================= */

.categories-section {
    background: linear-gradient(180deg, #f6f0fa 0%, #ffffff 100%);
    padding: 28px 4% 42px;
}

.categories-grid {
max-width: 1440px;
margin: 0 auto;

display: grid;
grid-template-columns: repeat(10, minmax(0, 1fr));

column-gap: 12px;
row-gap: 0;
align-items: start;
}

.category-image-wrap {
position: relative;
width: 100%;
max-width: 115px;
aspect-ratio: 1;
padding: 4px;
border: 2px solid var(--gold);
border-radius: 50%;
background: #fff;
box-shadow: 0 0 0 3px rgba(215, 173, 85, 0.10);
transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-name {
margin: 25px 0 0;
font-size: 15px;
font-weight: 600;
line-height: 1.3;
overflow-wrap: anywhere;
text-align: center;
}

.category-item:hover .category-image-wrap {
    transform: translateY(-4px);
    box-shadow: 0 7px 20px rgba(167, 124, 43, 0.18);
}

.category-image {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    background: #f6f0e8;
}

.category-sparkle {
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 36px;
    height: 36px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid #f4e8c6;
    border-radius: 50%;
    background: #fff;
    color: var(--gold);
    font-size: 22px;
    line-height: 1;
}

.category-name {
    margin: 27px 0 0;
    font-size: clamp(13px, 1.7vw, 20px);
    font-weight: 600;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

/* =========================
    PRODUCT SECTIONS
========================= */

.product-section {
    max-width: 1440px;
    margin: 0 auto;
    padding: 28px 4% 40px;
}

.section-heading-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.section-title {
    margin: 0;
    font-size: clamp(23px, 3vw, 36px);
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -0.7px;
}

.view-all {
    flex-shrink: 0;
    font-size: 14px;
    color: var(--gold-dark);
    font-weight: 600;
}

.view-all:hover {
    text-decoration: underline;
}

.product-scroller {
    display: flex;
    gap: 22px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 4px 2px 18px;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #e2cfaa transparent;
}

.product-scroller::-webkit-scrollbar {
    height: 5px;
}

.product-scroller::-webkit-scrollbar-track {
    background: transparent;
}

.product-scroller::-webkit-scrollbar-thumb {
    background: #e2cfaa;
    border-radius: 20px;
}

.product-card {
    position: relative;
    display: flex;
    flex: 0 0 clamp(230px, 28vw, 310px);
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--card-border);
    border-radius: 30px;
    background: #fff;
    box-shadow: 0 5px 22px rgba(37, 26, 43, 0.055);
    scroll-snap-align: start;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(37, 26, 43, 0.10);
}

.product-image-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 0.91 / 1;
    overflow: hidden;
    background: #f5efe7;
}

.product-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.product-card:hover .product-image {
    transform: scale(1.045);
}

.discount-badge {
position: absolute;
top: 18px;
left: 18px;
z-index: 1;
padding: 10px 18px;
border-radius: 30px;

background: linear-gradient(
135deg,
#5b2589 0%,
#8e44ad 50%,
#d7ad55 100%
);

color: #fff;
font-size: 14px;
font-weight: 600;
letter-spacing: 0.3px;

box-shadow: 0 3px 10px rgba(91, 37, 137, 0.25);
}

.product-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 21px 24px;
}

.product-brand {
    margin: 0 0 9px;
    color: #89838c;
    font-size: 13px;
    letter-spacing: 4px;
    text-transform: uppercase;
}

.product-name {
    display: -webkit-box;
    min-height: 46px;
    margin: 0;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.4;
}

.product-pricing {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 10px;
    margin-top: 15px;
}

.selling-price {
    color: #17151a;
    font-size: 25px;
    font-weight: 700;
}

.original-price {
    color: #99949a;
    font-size: 15px;
    text-decoration: line-through;
}

.empty-products {
    width: 100%;
    padding: 30px 20px;
    color: var(--muted);
    text-align: center;
    border: 1px dashed #e8dcca;
    border-radius: 16px;
}

/* =========================
    RESPONSIVE
========================= */

@media (min-width: 1200px) {
    .categories-section {
        padding-top: 38px;
        padding-bottom: 52px;
    }

    .product-section {
        padding-top: 38px;
        padding-bottom: 48px;
    }

    .product-card {
        flex-basis: 290px;
    }
}

@media (max-width: 700px) {
    .header-inner {
        min-height: 65px;
        padding: 9px 4%;
        gap: 8px;
    }



    .brand-name {
        font-size: 25px;
        letter-spacing: 5px;
        padding-left: 5px;
    }

    .brand-tagline {
        font-size: 7px;
        letter-spacing: 2px;
    }

    .brand-logo img {
        max-width: 125px;
        max-height: 43px;
    }

    .icon-link {
        width: 32px;
        height: 32px;
    }

    .icon-link svg {
        width: 20px;
        height: 20px;
    }

    .mobile-menu {
        display: inline-flex;
    }

    .categories-section {
        padding: 23px 4% 30px;
    }

    .categories-grid {
grid-template-columns: repeat(5, minmax(0, 1fr));
column-gap: 8px;
row-gap: 25px;
}

.category-image-wrap {
width: 100%;
max-width: 120px;
padding: 3px;
border-width: 1.5px;
}

.category-name {
margin-top: 20px;
font-size: clamp(10px, 2.5vw, 14px);
line-height: 1.25;
}

    .category-sparkle {
        bottom: -11px;
        width: 27px;
        height: 27px;
        font-size: 17px;
    }

    

    .product-section {
        padding: 26px 4% 20px;
    }

    .section-heading-row {
        margin-bottom: 17px;
    }

    .section-title {
        font-size: 25px;
    }

    .view-all {
        font-size: 12px;
    }

    .product-scroller {
        gap: 14px;
        margin-right: -4.5%;
        padding-right: 4.5%;
    }

    .product-card {
        flex-basis: 72%;
        max-width: 290px;
        border-radius: 24px;
    }

    .product-image-wrap {
        aspect-ratio: 0.93 / 1;
    }

    .discount-badge {
        top: 13px;
        left: 13px;
        padding: 8px 13px;
        font-size: 12px;
    }

    .product-details {
        padding: 16px 15px 20px;
    }

    .product-brand {
        font-size: 11px;
        letter-spacing: 3px;
    }

    .product-name {
        min-height: 42px;
        font-size: 15px;
    }

    .product-pricing {
        gap: 8px;
        margin-top: 12px;
    }

    .selling-price {
        font-size: 22px;
    }

    .original-price {
        font-size: 13px;
    }
}

@media (max-width: 380px) {
    .header-inner {
        padding-left: 3%;
        padding-right: 3%;
    }



    .brand-name {
        font-size: 21px;
        letter-spacing: 4px;
        padding-left: 4px;
    }

    .categories-grid {
        column-gap: 5px;
    }

    .category-name {
        font-size: 10px;
    }

    .product-card {
        flex-basis: 78%;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
