:root {
    --bg: #ffffff;
    --surface: #f4f4f2;
    --line: #e2e0da;
    --ink: #1b1a17;
    --ink-dim: #726d63;
    --gold: #a9782b;
    --teal: #166b64;
    --coral: #c14e29;
    --violet: #7a3f9e;
    --accent: var(--gold);
    --radius: 2px;
}

#main-content {
    overflow: visible !important;
}

.category-page-container {
    background: var(--bg);
    color: var(--ink);
    font-family: 'Comfortaa', sans-serif;
    -webkit-font-smoothing: antialiased;
    /* padding-bottom: 80px; */
    overflow: visible !important;
}

.category-page-container h1,
.category-page-container h2,
.category-page-container h3 {
    font-weight: 600;
    letter-spacing: -0.01em;
    margin: 0;
}

.category-page-container a {
    color: inherit;
    text-decoration: none;
}

/* ---------- banner ---------- */
.cat-banner {
    position: relative;
    overflow: hidden;
    padding: 60px clamp(20px, 5vw, 64px) 50px;
    border-bottom: 1px solid var(--line);
    scroll-margin-top: 170px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    min-height: 250px;
}

.cat-banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgb(0 0 0) 12%, rgb(0 0 0 / 97%) 55%, rgb(0 0 0 / 0%) 68%);
    z-index: 1;
}

/* Light banner image (white fade on the left): no dark overlay, dark text. */
.cat-banner--light .cat-banner-overlay {
    display: none;
}

.cat-banner--light .cat-eyebrow {
    color: #c8282e;
}

.cat-banner.cat-banner--light h1 {
    color: #1a2238;
    text-shadow: none;
}

.cat-banner--light .download-shade-btn {
    color: #1a2238 !important;
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(26, 34, 56, 0.45);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}

.cat-banner-inner {
    position: relative;
    z-index: 2;
}

.cat-eyebrow {
    font-size: 13px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 12px;
    color: #F6B218;
    font-weight: 700;
}

.cat-banner h1 {
    font-size: clamp(32px, 5vw, 42px);
    line-height: 1.1;
    max-width: 780px;
    color: #ffffff;
    font-weight: 700;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.cat-banner p {
    max-width: 540px;
    margin-top: 16px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 15px;
    line-height: 1.6;
}

/* ---------- download shade btn ---------- */
.download-shade-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 24px;
    padding: 10px 22px;
    color: #ffffff !important;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.45);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
    transition: all 0.25s ease;
}

.download-shade-btn:hover {
    background: #F6B218;
    border-color: #F6B218;
    color: #000000 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(246, 178, 24, 0.35);
}

.download-shade-btn svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
}

/* ---------- sticky tab bar ---------- */
.tabs-bar {
    position: sticky;
    top: 105px;
    z-index: 1;
    padding: 23px clamp(20px, 5vw, 64px) 16px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid var(--line);
    border-top: solid 1px #ccc;
}

@media (max-width: 1024px) {
    .tabs-bar {
        top: 100px;
    }
}

@media (max-width: 768px) {
    .tabs-bar {
        top: 65px;
        padding: 14px 20px 10px;
    }
}

.main-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.main-tab {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 21px;
    /* background: var(--surface); */
    border: 1px solid var(--line);
    border-bottom: 3px solid #0000004d;
    cursor: pointer;
    transition: background .25s, border-color .25s, transform .15s, box-shadow .25s;
    border-radius: 50px;
}

.main-tab:hover {
    transform: translateY(-2px);
}

.main-tab.active {
    background: #fff;
    border-color: var(--line);
    border-bottom-color: var(--mc-color, var(--accent));
    box-shadow: 0 6px 18px rgba(27, 26, 23, 0.06);
    border-radius: 50px;
}

.main-tab .label {
    font-size: 14px;
    font-weight: 600;
}

/* ---------- content wrapper ---------- */
.content-wrap {
    padding: 0 0 40px;
}

.category-content {
    scroll-margin-top: 250px;
}

.subcat-stack {
    padding: 30px clamp(20px, 5vw, 64px) 0;
}

.subcat-row {
    margin-bottom: 56px;
}

.subcat-row:last-child {
    margin-bottom: 0;
}

.subcat-head {
    display: flex;
    align-items: baseline;
    gap: 14px;
    margin-bottom: 4px;
    border-left: 3px solid var(--row-color);
    padding-left: 14px;
}

.subcat-head h2 {
    font-size: clamp(22px, 2.6vw, 30px);
}

.subcat-tagline {
    padding-left: 17px;
    margin: 8px 0 28px;
    color: var(--ink-dim);
    font-size: 14px;
    max-width: 560px;
    line-height: 1.5;
}

.product-row {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

/* ---------- card ---------- */
.card {
    position: relative;
    display: flex;
    width: 49%;
    max-width: 100%;
    flex: 0 0 auto;
    min-height: 196px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-top: 3px solid var(--row-color);
    overflow: hidden;
    opacity: 0;
    transform: translateY(12px);
    animation: rise .5s ease forwards;
    transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
    cursor: pointer;
}

@keyframes rise {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(27, 26, 23, 0.08);
    border-color: var(--row-color);
}

.card-media {
    position: relative;
    width: 200px;
    flex: 0 0 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.card-media img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    filter: drop-shadow(0 12px 16px rgba(27, 26, 23, 0.16));
    transition: transform .4s ease;
}

.card:hover .card-media img {
    transform: scale(1.06);
}

.card-body {
    padding: 20px 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: #fff;
}

.card-eyebrow {
    font-size: 10px;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--row-color);
    margin-bottom: 7px;
    font-weight: 600;
}

.card-body h3 {
    font-size: 18px;
    line-height: 1.3;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--ink);
}

.card-desc {
    font-size: 13px;
    line-height: 1.55;
    color: var(--ink-dim);
    margin: 0 0 14px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-cta {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 11.5px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-bottom: 1px solid var(--row-color);
    padding-bottom: 2px;
    font-weight: 600;
    color: var(--ink);
    align-self: flex-start;
    transition: color 0.25s ease;
}

.card-cta i {
    font-size: 13px;
    margin-left: 2px;
    transition: transform .2s ease;
}

.card:hover .card-cta i {
    transform: translateX(4px);
}


.main-tab.active {
    color: #2baf4a !important;
}

@media (max-width:600px) {
    .product-row {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 12px;
        scroll-snap-type: x mandatory;
        gap: 16px;
        -webkit-overflow-scrolling: touch;
    }

    .card {
        scroll-snap-align: start;
        flex-direction: column;
        width: 260px;
        flex: 0 0 260px;
        min-height: auto;
    }

    .card-media {
        width: 100%;
        height: 200px;
        flex: 0 0 200px;
    }

    .card-body {
        padding: 16px;
    }
}

@media (min-width: 601px) {
    .product-row.two-cards .card {
        width: calc(50% - 12px);
        flex: 0 0 calc(50% - 12px);
    }
}