/* =========================================================
   MyTreeLink — Public Frontend (mockup-faithful)
   Clean white + forest green #2d6a4f affiliate marketplace
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    --mtl-green: #2d6a4f;
    --mtl-green-dark: #1b4332;
    --mtl-green-mid: #40916c;
    --mtl-green-soft: #d8f3dc;
    --mtl-text: #2b2d31;
    --mtl-muted: #6b7280;
    --mtl-border: #e5e7eb;
    --mtl-grey-bar: #f3f4f6;
    --mtl-footer: #1f2933;
    --mtl-font: 'Plus Jakarta Sans', system-ui, sans-serif;
    --mtl-radius: 12px;
    --mtl-shadow-soft: 0 2px 12px rgba(15, 23, 42, 0.06);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--mtl-font);
    color: var(--mtl-text);
    background: #fff;
    line-height: 1.55;
    overflow-x: hidden;
}

a { color: var(--mtl-green); text-decoration: none; }
a:hover { color: var(--mtl-green-dark); }
img { max-width: 100%; height: auto; display: block; }

.container {
    width: min(1140px, calc(100% - 2rem));
    margin-inline: auto;
}

/* =========================================================
   HEADER — two rows
   ========================================================= */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1040;
    background: #fff;
    border-bottom: 1px solid var(--mtl-border);
}

.header-top {
    border-bottom: 1px solid #f0f1f3;
    background: #fff;
}

.header-top-inner {
    display: grid;
    grid-template-columns: auto auto minmax(0, 1fr) auto;
    grid-template-areas: "brand categories search auth";
    align-items: center;
    gap: 1.25rem;
    min-height: 72px;
    padding-block: .75rem;
}
.brand { grid-area: brand; }
.header-categories { grid-area: categories; }
.header-search-group { grid-area: search; }
.header-auth { grid-area: auth; justify-self: end; }

.header-categories {
    flex-shrink: 0;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    color: var(--mtl-text) !important;
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
    white-space: nowrap;
}
.brand-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--mtl-green);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
}
.brand-text { color: var(--mtl-text); }
.brand-logo {
    height: 38px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
}

.header-search {
    display: flex;
    align-items: stretch;
    max-width: 560px;
    width: 100%;
    margin-inline: auto;
    border: 1.5px solid #d1d5db;
    border-radius: 999px;
    overflow: hidden;
    background: #fff;
    transition: border-color .2s, box-shadow .2s;
}
.header-search:focus-within {
    border-color: var(--mtl-green);
    box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.12);
}
.header-search input {
    flex: 1;
    border: 0;
    outline: 0;
    padding: .7rem 1.1rem;
    font: inherit;
    font-size: .95rem;
    background: transparent;
    min-width: 0;
    text-overflow: ellipsis;
}
.header-search input::placeholder {
    text-overflow: ellipsis;
    color: var(--mtl-muted);
}
.header-search button {
    border: 0;
    background: var(--mtl-green);
    color: #fff;
    width: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .2s;
}
.header-search button:hover { background: var(--mtl-green-dark); }

.header-auth {
    display: flex;
    align-items: center;
    gap: .6rem;
    flex-shrink: 0;
    white-space: nowrap;
}
.header-auth a { white-space: nowrap; }
.btn-login {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .5rem 1.05rem;
    border-radius: 999px;
    border: 1.5px solid #cfd4da;
    color: var(--mtl-text) !important;
    font-weight: 600;
    font-size: .9rem;
    background: #fff;
}
.btn-login:hover {
    border-color: var(--mtl-green);
    color: var(--mtl-green) !important;
}
.btn-signup {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .5rem 1.15rem;
    border-radius: 999px;
    border: 0;
    background: var(--mtl-green);
    color: #fff !important;
    font-weight: 700;
    font-size: .9rem;
}
.btn-signup:hover { background: var(--mtl-green-dark); color: #fff !important; }
.btn-menu {
    border: 1.5px solid #cfd4da;
    background: #fff;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--mtl-text);
}

/* Nav row */
.header-nav {
    background: #fff;
}
.header-nav-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
}
.nav-center {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.35rem;
    flex-wrap: wrap;
}
.nav-center a {
    color: var(--mtl-text) !important;
    font-weight: 600;
    font-size: .92rem;
    padding: .35rem 0;
    position: relative;
    text-decoration: none;
}
.nav-center a:hover { color: var(--mtl-green) !important; }
.nav-center a::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 2px;
    background: var(--mtl-green);
    transform: scaleX(0);
    transition: transform .2s;
}
.nav-center a:hover::after { transform: scaleX(1); }
.btn-categories {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    border: 1.5px solid var(--mtl-border);
    background: #fff;
    color: var(--mtl-text);
    font-weight: 600;
    font-size: .9rem;
    padding: 0 1rem;
    height: 48px;
    border-radius: 10px;
    white-space: nowrap;
}
.btn-categories:hover,
.btn-categories:focus {
    border-color: var(--mtl-green);
    color: var(--mtl-green);
}
.btn-categories::after { margin-left: .35rem; }
.nav-left .dropdown-menu {
    border: 1px solid var(--mtl-border);
    border-radius: 12px;
    padding: .4rem;
    min-width: 220px;
    max-height: min(70vh, 420px);
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(45, 106, 79, 0.45) transparent;
}
.nav-left .dropdown-menu::-webkit-scrollbar {
    width: 6px;
}
.nav-left .dropdown-menu::-webkit-scrollbar-thumb {
    background: rgba(45, 106, 79, 0.4);
    border-radius: 999px;
}
.nav-left .dropdown-menu::-webkit-scrollbar-track {
    background: transparent;
}
.nav-left .dropdown-item {
    border-radius: 8px;
    padding: .55rem .75rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: .55rem;
}
.nav-left .dropdown-item i { color: var(--mtl-green); }
.nav-left .dropdown-item-sub {
    padding-left: 1.75rem;
    font-size: .88rem;
    font-weight: 500;
    color: var(--mtl-muted);
}
.nav-left .dropdown-item-sub i { font-size: .7rem; color: var(--mtl-muted); }

.category-breadcrumb {
    font-size: .9rem;
    color: var(--mtl-muted);
}
.category-breadcrumb a {
    color: var(--mtl-green);
    text-decoration: none;
    font-weight: 600;
}
.category-breadcrumb a:hover { text-decoration: underline; }
.category-breadcrumb span[aria-hidden="true"] { margin: 0 .35rem; }

.subcategory-nav { margin-bottom: 1rem; }
.subcategory-nav-label {
    font-size: .82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--mtl-muted);
    margin-bottom: .5rem;
}
.subcategory-pills {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}
.subcategory-pill {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .4rem .85rem;
    border-radius: 999px;
    border: 1px solid var(--mtl-border);
    background: #fff;
    color: var(--mtl-text);
    font-size: .88rem;
    font-weight: 600;
    text-decoration: none;
    transition: border-color .15s, color .15s, background .15s;
}
.subcategory-pill:hover {
    border-color: var(--mtl-green);
    color: var(--mtl-green);
}
.subcategory-pill.is-active {
    background: var(--mtl-green);
    border-color: var(--mtl-green);
    color: #fff;
}

.nav-wishlist {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    color: var(--mtl-text) !important;
    font-weight: 600;
    font-size: .92rem;
}
.nav-wishlist i { color: #e11d48; }
.wish-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 .35rem;
    border-radius: 999px;
    background: var(--mtl-green);
    color: #fff;
    font-size: .72rem;
    font-weight: 700;
}

/* =========================================================
   HERO — full-bleed soft green atmosphere
   ========================================================= */
.hero {
    position: relative;
    padding: 3.5rem 0 3rem;
    overflow: hidden;
    background:
        radial-gradient(ellipse 70% 80% at 85% 40%, rgba(45, 106, 79, 0.16), transparent 55%),
        radial-gradient(ellipse 50% 60% at 10% 80%, rgba(64, 145, 108, 0.1), transparent 50%),
        linear-gradient(180deg, #f4faf6 0%, #ffffff 70%);
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 78% 35%, rgba(216, 243, 220, 0.9) 0%, transparent 42%);
    pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }

.hero-title {
    font-size: clamp(2.1rem, 4.2vw, 3.35rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.03em;
    color: var(--mtl-text);
    margin: 0 0 1rem;
}
.hero-accent { color: var(--mtl-green); display: inline; }
.hero-sub {
    font-size: 1.05rem;
    color: var(--mtl-muted);
    max-width: 34rem;
    margin: 0 0 1.75rem;
}
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
}
.btn-hero-primary {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: var(--mtl-green);
    color: #fff !important;
    font-weight: 700;
    padding: .85rem 1.45rem;
    border-radius: 999px;
    border: 0;
    box-shadow: 0 8px 22px rgba(45, 106, 79, 0.28);
    transition: transform .2s, background .2s;
}
.btn-hero-primary:hover {
    background: var(--mtl-green-dark);
    color: #fff !important;
    transform: translateY(-2px);
}
.btn-hero-outline {
    display: inline-flex;
    align-items: center;
    background: #fff;
    color: var(--mtl-green) !important;
    font-weight: 700;
    padding: .85rem 1.45rem;
    border-radius: 999px;
    border: 1.5px solid var(--mtl-green);
    transition: background .2s, color .2s, transform .2s;
}
.btn-hero-outline:hover {
    background: var(--mtl-green);
    color: #fff !important;
    transform: translateY(-2px);
}

/* Hero carousel */
.hero-carousel {
    position: relative;
}
.hero-carousel-viewport {
    overflow: hidden;
}
.hero-carousel-track {
    display: flex;
    align-items: stretch;
    transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}
.hero-carousel.is-dragging .hero-carousel-track {
    transition: none;
}
.hero-carousel.is-active .hero-carousel-viewport {
    height: 400px;
    min-height: 400px;
}
.hero-carousel.is-active .hero-slide {
    display: flex;
    flex-direction: column;
    align-self: stretch;
}
.hero-carousel.is-active .hero-slide > .container {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
}
.hero-carousel.is-active .hero-slide > .container > .row {
    flex: 1 1 auto;
    align-items: center;
}
.hero-carousel.is-active .hero-slide--media-only > .hero-slide-media--full {
    flex: 1 1 auto;
    height: 100%;
    max-height: 420px;
}
.hero-carousel.is-active .hero-slide-media--full,
.hero-carousel.is-active .hero-slide-media-link--full {
    display: flex;
    flex-direction: column;
}
.hero-carousel.is-active .hero-slide-media-link--full {
    flex: 1 1 auto;
    height: 100%;
    max-height: 420px;
}
.hero-carousel.is-active .hero-slide-media--full img,
.hero-carousel.is-active .hero-slide-media-link--full img {
    flex: 1 1 auto;
    height: 100%;
    min-height: 0;
    max-height: 420px;
    object-fit: cover;
}
.hero-carousel.is-active .hero-slide-media--mockup {
    min-height: 0;
    max-height: 400px;
}
.hero-carousel.is-active .hero-slide-media--mockup .phone-stage {
    min-height: 0;
    max-height: 400px;
    padding: 1rem 0;
}
.hero-slide {
    flex: 0 0 100%;
    min-width: 100%;
    opacity: 0.35;
    transition: opacity 0.45s ease;
}
.hero-slide.is-active {
    opacity: 1;
}
.hero-slide-media {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 320px;
    padding: 1rem 0;
}
.hero-slide-media-link {
    display: block;
    width: 100%;
    max-width: 520px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.14);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.hero-slide-media-link:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 48px rgba(15, 23, 42, 0.18);
}
.hero-slide-media img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 420px;
    object-fit: cover;
}

/* Media-only slides (no title) — full-bleed image */
.hero-slide--media-only {
    display: flex;
    align-items: stretch;
}
.hero-slide-media--full {
    flex: 1;
    width: 100%;
    min-height: 360px;
    max-height: 420px;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: stretch;
    justify-content: center;
}
.hero-slide-media--full img {
    width: 100%;
    height: 100%;
    min-height: 360px;
    max-height: 420px;
    object-fit: cover;
    border-radius: 0;
    box-shadow: none;
}
.hero-slide-media-link--full {
    display: block;
    width: 100%;
    max-width: none;
    border-radius: 0;
    box-shadow: none;
    flex: 1;
}
.hero-slide-media-link--full:hover {
    transform: none;
    box-shadow: none;
}
.hero-slide-media-link--full img {
    width: 100%;
    height: 100%;
    min-height: 360px;
    max-height: 420px;
    object-fit: cover;
}
.hero-slide-media--mockup {
    align-items: center;
    min-height: 460px;
    max-height: none;
}
.hero-slide-media--mockup .phone-stage {
    width: 100%;
    min-height: 460px;
}
.hero-slide-media--copy-only {
    align-items: center;
    min-height: 320px;
    max-height: none;
}
.hero-copy--centered {
    text-align: center;
    max-width: 42rem;
    margin: 0 auto;
    padding: 2rem 0;
}
.hero-copy--centered .hero-sub {
    margin-left: auto;
    margin-right: auto;
}
.hero-copy--centered .hero-actions {
    justify-content: center;
}
.hero:has(.hero-slide--media-only) {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.hero-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--mtl-border, #e2e8f0);
    background: #fff;
    color: var(--mtl-green);
    box-shadow: var(--mtl-shadow-soft, 0 4px 16px rgba(0,0,0,0.08));
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 4;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.hero-carousel-btn:hover {
    background: var(--mtl-green);
    color: #fff;
    border-color: var(--mtl-green);
}
.hero-carousel-prev { left: 0.75rem; }
.hero-carousel-next { right: 0.75rem; }
.hero-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 0 0.25rem;
}
.hero-carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 0;
    padding: 0;
    background: rgba(45, 106, 79, 0.25);
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
}
.hero-carousel-dot.is-active {
    background: var(--mtl-green);
    transform: scale(1.15);
}
.hero-carousel-dot:hover {
    background: var(--mtl-green-mid, #40916c);
}

@media (max-width: 767px) {
    .hero-carousel-prev { left: 0.25rem; }
    .hero-carousel-next { right: 0.25rem; }
    .hero-carousel-btn {
        width: 38px;
        height: 38px;
    }
    .hero-carousel.is-active .hero-carousel-viewport {
        height: 300px;
        min-height: 300px;
    }
    .hero-slide-media {
        min-height: 220px;
    }
    .hero-slide-media--full,
    .hero-slide-media--full img,
    .hero-slide-media-link--full img {
        min-height: 240px;
        max-height: 300px;
    }
    .hero-carousel.is-active .hero-slide-media--full,
    .hero-carousel.is-active .hero-slide-media--full img,
    .hero-carousel.is-active .hero-slide-media-link--full,
    .hero-carousel.is-active .hero-slide-media-link--full img {
        max-height: 300px;
    }
    .hero-carousel.is-active .hero-slide-media--mockup,
    .hero-carousel.is-active .hero-slide-media--mockup .phone-stage {
        max-height: 300px;
    }
    .hero-slide-media--mockup {
        min-height: 300px;
    }
    .hero-slide-media--mockup .phone-stage {
        min-height: 300px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-carousel-track,
    .hero-slide {
        transition: none;
    }
}

/* Phone stage + floating logos */
.phone-stage {
    position: relative;
    min-height: 460px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 0;
}

.float-logo {
    position: absolute;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: .75rem;
    color: var(--mtl-green-dark);
    z-index: 3;
    animation: floatY 4.5s ease-in-out infinite;
    overflow: hidden;
    border: 2px solid #fff;
}
.float-logo img {
    width: 70%;
    height: 70%;
    object-fit: contain;
}
.float-logo.fl-tl { top: 8%; left: 6%; animation-delay: 0s; }
.float-logo.fl-tr { top: 6%; right: 8%; animation-delay: .4s; }
.float-logo.fl-ml { top: 42%; left: 0; animation-delay: .8s; }
.float-logo.fl-mr { top: 40%; right: 2%; animation-delay: 1.2s; }
.float-logo.fl-bl { bottom: 12%; left: 8%; animation-delay: 1.6s; }
.float-logo.fl-br { bottom: 10%; right: 6%; animation-delay: 2s; }

@keyframes floatY {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Realistic phone frame */
.phone {
    position: relative;
    z-index: 2;
}
.phone-bezel {
    width: 260px;
    background: #111827;
    border-radius: 36px;
    padding: 10px;
    box-shadow:
        0 0 0 2px #374151,
        0 25px 50px rgba(15, 23, 42, 0.28),
        inset 0 0 0 1px rgba(255,255,255,0.08);
}
.phone-speaker {
    width: 72px;
    height: 6px;
    border-radius: 999px;
    background: #4b5563;
    margin: 6px auto 10px;
}
.phone-screen {
    background: linear-gradient(180deg, #f8faf9 0%, #eef5f0 100%);
    border-radius: 26px;
    padding: 1.1rem .85rem 1.25rem;
    min-height: 420px;
}
.phone-home {
    width: 88px;
    height: 4px;
    border-radius: 999px;
    background: #4b5563;
    margin: 10px auto 4px;
}

.lt-profile { text-align: center; margin-bottom: .9rem; }
.lt-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    margin: 0 auto .55rem;
    background: linear-gradient(135deg, var(--mtl-green), var(--mtl-green-mid));
    color: #fff;
    font-weight: 800;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(45, 106, 79, 0.35);
}
.lt-name {
    font-weight: 800;
    font-size: .95rem;
    color: var(--mtl-text);
    letter-spacing: -0.01em;
}
.lt-bio {
    font-size: .72rem;
    color: var(--mtl-muted);
    margin-top: .15rem;
}
.lt-socials {
    display: flex;
    justify-content: center;
    gap: .55rem;
    margin-top: .55rem;
    color: var(--mtl-green);
    font-size: .95rem;
}
.lt-links {
    display: flex;
    flex-direction: column;
    gap: .55rem;
}
.lt-btn {
    display: block;
    text-align: center;
    padding: .7rem .75rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: .82rem;
    color: #fff !important;
    background: var(--lt-color, var(--mtl-green));
    box-shadow: 0 4px 12px color-mix(in srgb, var(--lt-color, var(--mtl-green)) 35%, transparent);
    transition: transform .15s, filter .15s;
}
.lt-btn:hover {
    transform: scale(1.02);
    filter: brightness(1.05);
    color: #fff !important;
}

/* =========================================================
   CATEGORIES — equal rounded-square tiles
   ========================================================= */
.section-cats {
    padding: 1.75rem 0 1.25rem;
    background: #fff;
}
.cats-row {
    display: grid;
    grid-template-columns: repeat(10, minmax(0, 1fr));
    gap: .75rem;
}
.cat-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .45rem;
    text-align: center;
    color: var(--mtl-text) !important;
    padding: .35rem;
    transition: transform .2s;
}
.cat-tile:hover { transform: translateY(-3px); color: var(--mtl-green) !important; }
.cat-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: #f8faf9;
    border: 1px solid #eef2f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.45rem;
    box-shadow: var(--mtl-shadow-soft);
}
.cat-label {
    font-size: .72rem;
    font-weight: 600;
    line-height: 1.25;
    max-width: 5.5rem;
}

/* =========================================================
   SECTION COMMON
   ========================================================= */
.section-block { padding: 2.75rem 0; }
.section-muted { background: #f8faf9; }
.section-heading {
    text-align: center;
    font-size: clamp(1.45rem, 2.5vw, 1.85rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--mtl-text);
    margin: 0 0 1.75rem;
}
.section-head-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.view-all {
    font-weight: 700;
    color: var(--mtl-green) !important;
    white-space: nowrap;
}
.view-all:hover { color: var(--mtl-green-dark) !important; }

/* =========================================================
   STORES — 6 white light cards
   ========================================================= */
.stores-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 1rem;
}
.store-card {
    background: #fff;
    border: 1px solid #eef0f2;
    border-radius: 14px;
    padding: 1.15rem .9rem 1.2rem;
    text-align: center;
    box-shadow: var(--mtl-shadow-soft);
    transition: transform .2s, box-shadow .2s;
}
.store-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}
.store-logo {
    width: 64px;
    height: 64px;
    margin: 0 auto .75rem;
    border-radius: 14px;
    background: #f3f7f4;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.store-logo img {
    width: 70%;
    height: 70%;
    object-fit: contain;
}
.store-fallback {
    font-weight: 800;
    font-size: 1.35rem;
    color: var(--mtl-green);
}
.store-name {
    font-weight: 700;
    font-size: .95rem;
    margin-bottom: .2rem;
}
.store-offer {
    color: var(--mtl-muted);
    font-size: .82rem;
    margin-bottom: .85rem;
}
.btn-view-deals {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: .5rem .75rem;
    border-radius: 999px;
    background: var(--mtl-green);
    color: #fff !important;
    font-weight: 700;
    font-size: .82rem;
}
.btn-view-deals:hover {
    background: var(--mtl-green-dark);
    color: #fff !important;
}

/* =========================================================
   DEALS carousel
   ========================================================= */
.deals-wrap {
    position: relative;
    padding: 0 2.75rem;
}
.deals-track {
    display: flex;
    flex-wrap: nowrap;
    gap: 1.25rem;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: .25rem .25rem 1rem;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    min-width: 0;
}
@media (prefers-reduced-motion: reduce) {
    .deals-track { scroll-behavior: auto; }
}
.deals-track::-webkit-scrollbar { display: none; }

.deal-card {
    display: flex;
    flex-direction: column;
    flex: 0 0 240px;
    width: 240px;
    scroll-snap-align: start;
    background: #fff;
    border: 1px solid #eef0f2;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--mtl-shadow-soft);
}
.deal-media {
    position: relative;
    aspect-ratio: 1 / 1;
    width: 100%;
    background: #fff;
    border-bottom: 1px solid #f1f3f5;
}
.deal-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: .85rem;
    background: #fff;
}
.deal-media img[src$=".svg"] {
    padding: 1.25rem;
    background: #f8faf9;
}
.deal-placeholder {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: var(--mtl-green-mid);
}
.deal-off {
    position: absolute;
    top: 0;
    left: 0;
    background: var(--mtl-green);
    color: #fff;
    font-size: .7rem;
    font-weight: 800;
    padding: .35rem .6rem;
    border-radius: 0 0 10px 0;
    z-index: 2;
    line-height: 1.2;
}
.deal-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 1rem;
    gap: .35rem;
}
.deal-title {
    font-size: .88rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.5em;
    color: var(--mtl-text);
}
.deal-title a {
    color: inherit;
    text-decoration: none;
}
.deal-title a:hover { color: var(--mtl-primary); }
.deal-stars { margin-bottom: .15rem; font-size: .8rem; }
.deal-stars .star-rating { display: inline-flex; gap: 1px; }
.deal-price-row {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: .5rem;
    margin-bottom: .65rem;
}
.price-now {
    font-weight: 800;
    color: var(--mtl-text);
    font-size: 1.1rem;
}
.price-old {
    color: var(--mtl-muted);
    text-decoration: line-through;
    font-size: .85rem;
}
.btn-view-deal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    width: 100%;
    margin-top: auto;
    padding: .62rem .85rem;
    border-radius: 999px;
    background: var(--mtl-green);
    color: #fff !important;
    font-weight: 700;
    font-size: .84rem;
    text-decoration: none;
}
.btn-view-deal:hover {
    background: var(--mtl-green-dark);
    color: #fff !important;
}
.deals-nav {
    position: absolute;
    top: 42%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid var(--mtl-border);
    background: #fff;
    color: var(--mtl-green);
    box-shadow: var(--mtl-shadow-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    transition: background 0.2s, color 0.2s, border-color 0.2s, opacity 0.2s;
}
.deals-nav:hover:not(:disabled) {
    background: var(--mtl-green);
    color: #fff;
    border-color: var(--mtl-green);
}
.deals-nav:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    box-shadow: none;
}
.deals-prev { left: 0; }
.deals-next { right: 0; }

/* =========================================================
   VALUE PROPS — light grey bar
   ========================================================= */
.value-bar {
    background: var(--mtl-grey-bar);
    padding: 1.5rem 0;
    border-top: 1px solid #e8eaed;
    border-bottom: 1px solid #e8eaed;
}
.value-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}
.value-item {
    display: flex;
    align-items: center;
    gap: .75rem;
}
.value-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #fff;
    color: var(--mtl-green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
    border: 1px solid #e5e7eb;
}
.value-item strong {
    display: block;
    font-size: .95rem;
    color: var(--mtl-text);
}
.value-item small {
    display: block;
    color: var(--mtl-muted);
    font-size: .78rem;
}

/* =========================================================
   NEWSLETTER + SHARE
   ========================================================= */
.ns-grid {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 1.25rem;
}
.news-card {
    background: linear-gradient(145deg, #1b4332 0%, #2d6a4f 100%);
    color: #fff;
    border-radius: 18px;
    padding: 2rem 1.75rem;
    position: relative;
    overflow: hidden;
}
.news-illus {
    font-size: 2.5rem;
    opacity: .9;
    margin-bottom: .75rem;
}
.news-card h3 {
    font-weight: 800;
    font-size: 1.35rem;
    margin: 0 0 .5rem;
}
.news-card p {
    opacity: .88;
    margin: 0 0 1.15rem;
    max-width: 28rem;
}
.news-form {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
}
.news-form input {
    flex: 1;
    min-width: 180px;
    border: 0;
    border-radius: 999px;
    padding: .75rem 1.1rem;
    font: inherit;
    outline: 0;
}
.news-form button {
    border: 0;
    border-radius: 999px;
    background: #52b788;
    color: #fff;
    font-weight: 700;
    padding: .75rem 1.35rem;
    cursor: pointer;
}
.news-form button:hover { background: #40916c; }

.share-card {
    background: #fff;
    border: 1px solid #eef0f2;
    border-radius: 18px;
    padding: 2rem 1.75rem;
    box-shadow: var(--mtl-shadow-soft);
    text-align: center;
}
.share-card h3 {
    font-weight: 800;
    font-size: 1.25rem;
    margin: 0 0 .35rem;
}
.share-card p {
    color: var(--mtl-muted);
    margin: 0 0 1.1rem;
}
.qr-box {
    width: 140px;
    height: 140px;
    margin: 0 auto 1.15rem;
    border: 2px dashed #cfd8d3;
    border-radius: 14px;
    background: #f8faf9;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    color: var(--mtl-green);
    font-weight: 700;
    font-size: .85rem;
}
.qr-box i { font-size: 2.4rem; }
.share-icons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: .55rem;
}
.si {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff !important;
    font-size: 1.05rem;
}
.si.wa { background: #25d366; }
.si.tg { background: #229ed9; }
.si.fb { background: #1877f2; }
.si.tw { background: #111827; }
.si.li { background: #0a66c2; }
.si.cp { background: var(--mtl-green); }
.si:hover { filter: brightness(1.08); color: #fff !important; }

/* =========================================================
   FOOTER — solid dark, 5 columns
   ========================================================= */
.site-footer {
    background: var(--mtl-footer);
    color: #d1d5db;
    padding-top: 3rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr repeat(4, 1fr);
    gap: 1.75rem;
    padding-bottom: 2.5rem;
}
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    color: #fff !important;
    font-weight: 800;
    font-size: 1.15rem;
    margin-bottom: .75rem;
}
.footer-brand i { color: #52b788; }
.footer-about {
    font-size: .88rem;
    line-height: 1.6;
    color: #9ca3af;
    margin: 0 0 1rem;
    max-width: 280px;
}
.footer-social {
    display: flex;
    gap: .5rem;
}
.footer-social a {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: rgba(255,255,255,0.08);
    color: #fff !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.footer-social a:hover { background: var(--mtl-green); }
.footer-col h4 {
    color: #fff;
    font-size: .95rem;
    font-weight: 700;
    margin: 0 0 .9rem;
}
.footer-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.footer-col li { margin-bottom: .45rem; }
.footer-col a {
    color: #9ca3af !important;
    font-size: .88rem;
}
.footer-col a:hover { color: #52b788 !important; }
.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: .45rem;
    font-size: .88rem;
    color: #9ca3af;
}
.footer-contact i {
    color: #52b788;
    margin-top: .15rem;
}
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 1rem 0;
    text-align: center;
    font-size: .85rem;
    color: #9ca3af;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1100px) {
    .stores-grid { grid-template-columns: repeat(3, 1fr); }
    .cats-row { grid-template-columns: repeat(5, 1fr); }
    .footer-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 991.98px) {
    .header-top-inner {
        grid-template-columns: 1fr auto;
        grid-template-areas:
            "brand auth"
            "categories categories"
            "search search";
        gap: .75rem 1rem;
        padding-block: .85rem;
    }
    .header-auth { justify-self: end; }
    .header-search-group { max-width: none; }
    .header-search { max-width: none; }
    .btn-menu { display: inline-flex; }
    .brand { font-size: 1.1rem; }
    .brand-logo { height: 32px; max-width: 140px; }
    .brand-icon { width: 32px; height: 32px; font-size: 1rem; }

    .header-nav {
        display: none;
        border-top: 1px solid var(--mtl-border);
    }
    .header-nav.is-open { display: block; }
    .header-nav-inner {
        grid-template-columns: 1fr;
        padding-block: .85rem;
        gap: .85rem;
    }
    .nav-center {
        justify-content: flex-start;
        flex-direction: column;
        align-items: flex-start;
        gap: .55rem;
    }

    .phone-stage { min-height: 400px; }
    .float-logo { width: 48px; height: 48px; font-size: .65rem; }
    .value-grid { grid-template-columns: repeat(2, 1fr); }
    .ns-grid { grid-template-columns: 1fr; }
}

@media (max-width: 575.98px) {
    .cats-row { grid-template-columns: repeat(3, 1fr); }
    .stores-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .value-grid { grid-template-columns: 1fr; }
    .phone-bezel { width: 230px; }
    .deals-prev { left: 4px; }
    .deals-next { right: 4px; }
    .deals-wrap { padding: 0 2.25rem; }
    .deal-card {
        flex: 0 0 210px;
        width: 210px;
    }
    .header-user { display: none; }
}

/* =========================================================
   AUTH PAGES (login, register, forgot password)
   ========================================================= */
.mtl-auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(160deg, #f0fdf4 0%, #fff 45%, #ecfdf5 100%);
    padding: 2rem 0;
}
.mtl-auth-card {
    max-width: 440px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid var(--mtl-border);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--mtl-shadow-soft);
}
.auth-home-link {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-weight: 700;
    color: var(--mtl-green) !important;
    margin-bottom: 1.25rem;
    font-size: 1.05rem;
}
.auth-home-link i { font-size: 1.25rem; }
.auth-brand { margin-bottom: 1.5rem; }
.auth-brand h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 .35rem;
    color: var(--mtl-text);
}
.btn-mtl-primary {
    display: inline-block;
    background: var(--mtl-green, #2d6a4f);
    color: #fff !important;
    border: none;
    padding: .75rem 1.25rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: background .2s;
    text-align: center;
}
.btn-mtl-primary:hover { background: var(--mtl-green-dark, #1b4332); color: #fff !important; }
.mtl-auth-card .form-control {
    border-radius: 10px;
    padding: .65rem .85rem;
    border-color: var(--mtl-border);
}
.mtl-auth-card .form-control:focus {
    border-color: var(--mtl-green);
    box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.15);
}
.header-user {
    font-size: .9rem;
    color: var(--mtl-muted);
    margin-right: .5rem;
    display: inline-flex;
    align-items: center;
    gap: .3rem;
}

/* =========================================================
   INNER PAGES (deals, stores, blog, contact, etc.)
   ========================================================= */
.site-main { min-height: 50vh; }
.page-hero {
    background: linear-gradient(135deg, #f0fdf4 0%, #fff 100%);
    padding: 2.5rem 0 2rem;
    border-bottom: 1px solid var(--mtl-border);
}
.page-hero h1 { font-size: 2rem; font-weight: 700; color: var(--mtl-dark); margin-bottom: .5rem; }
.page-hero p { color: var(--mtl-muted); margin: 0; }

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.25rem;
}
.deal-card--grid { height: 100%; }
.deal-card--grid .deal-media img { object-fit: contain; padding: .85rem; }
.deal-media-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: inherit;
    text-decoration: none;
}
.deal-card-actions {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    gap: .4rem;
    z-index: 2;
}
.deal-action-btn {
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, .95);
    color: var(--mtl-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
    transition: background .15s, color .15s, transform .15s;
}
.deal-action-btn:hover,
.deal-action-btn:focus-visible {
    background: var(--mtl-primary);
    color: #fff;
    transform: scale(1.05);
}
.deal-action-btn:focus-visible { outline: 2px solid var(--mtl-primary); outline-offset: 2px; }
.deal-action-btn.btn-wishlist.is-active,
.btn-wishlist.is-active i { color: #e11d48; }

.deal-card.is-removing {
    opacity: 0;
    transform: scale(0.97);
    transition: opacity 0.2s ease, transform 0.2s ease;
}
@media (hover: hover) {
    .deal-card-actions {
        inset: 0;
        top: 0;
        right: 0;
        align-items: center;
        justify-content: center;
        background: rgba(27, 67, 50, .42);
        opacity: 0;
        transition: opacity .2s ease;
    }
    .deal-card:hover .deal-card-actions,
    .deal-card:focus-within .deal-card-actions { opacity: 1; }
    .deal-card-actions .deal-action-btn {
        width: 40px;
        height: 40px;
        font-size: 1.05rem;
    }
}
.quick-view-modal .quick-view-media {
    background: #f3f7f4;
    border-radius: 12px;
    overflow: hidden;
}
.quick-view-modal .quick-view-media img {
    width: 100%;
    max-height: 320px;
    object-fit: contain;
    display: block;
}
.quick-view-desc {
    font-size: .95rem;
    line-height: 1.65;
    margin: 0;
    color: #475569;
    text-align: justify;
    text-align-last: start;
    text-justify: inter-word;
    hyphens: auto;
    -webkit-hyphens: auto;
    overflow-wrap: break-word;
}

.stores-grid--page { grid-template-columns: repeat(3, 1fr); }

.categories-page-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}
.category-page-card {
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    padding: 1rem 1.1rem;
    background: #fff;
}
.category-page-main {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: inherit;
    text-decoration: none;
    font-weight: 600;
}
.category-page-main .cat-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: color-mix(in srgb, var(--mtl-green) 12%, white);
    color: var(--mtl-green);
}
.category-page-subs {
    list-style: none;
    margin: 0.75rem 0 0;
    padding: 0.75rem 0 0;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}
.category-page-subs a {
    display: block;
    padding: 0.25rem 0;
    color: #555;
    text-decoration: none;
    font-size: 0.92rem;
}
.category-page-subs a:hover { color: var(--mtl-green); }
@media (max-width: 991px) {
    .categories-page-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 575px) {
    .categories-page-grid { grid-template-columns: 1fr; }
}
.store-hero-row { display: flex; align-items: center; gap: 1.5rem; }
.store-hero-logo { width: 80px; height: 80px; object-fit: contain; border-radius: 12px; background: #fff; padding: .5rem; }

.deal-detail-page.section-block {
    padding-top: 1rem;
    padding-bottom: 2.25rem;
}
.deal-detail-page .breadcrumb-nav {
    margin-bottom: .65rem;
}
.deal-detail-grid {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) minmax(0, 1fr);
    gap: 2rem;
    align-items: start;
    margin-top: .75rem;
}
.deal-detail-media {
    position: sticky;
    top: calc(7.75rem + 1rem);
    align-self: start;
    overflow: visible;
}
.product-zoom {
    position: relative;
}
.product-zoom-stage {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
    max-height: calc(100vh - 9rem);
    width: 100%;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid #eef0f2;
    background: #fff;
    cursor: crosshair;
    padding: 1rem;
}
.product-zoom-stage.is-zooming {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: .65rem;
    align-items: center;
    padding: .75rem;
}
.product-zoom--disabled .product-zoom-stage {
    cursor: default;
}
.product-zoom-viewport {
    position: relative;
    display: inline-block;
    max-width: 100%;
    max-height: 100%;
    line-height: 0;
    justify-self: center;
}
.product-zoom-stage.is-zooming .product-zoom-viewport {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.product-zoom-image {
    display: block;
    max-width: 100%;
    max-height: calc(100vh - 11rem);
    width: auto;
    height: auto;
    background: #fff;
    user-select: none;
    -webkit-user-drag: none;
}
.product-zoom-stage.is-zooming .product-zoom-image {
    max-height: 100%;
}
.product-zoom-image.is-svg,
.product-zoom--disabled .product-zoom-image {
    background: #f8faf9;
}
.product-zoom-lens {
    --lens-size: 110px;
    position: absolute;
    width: var(--lens-size);
    height: var(--lens-size);
    border: 2px solid rgba(45, 106, 79, 0.65);
    background-color: rgba(255, 255, 255, 0.15);
    background-repeat: no-repeat;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.65) inset;
    pointer-events: none;
    z-index: 3;
    border-radius: 4px;
}
.product-zoom-result {
    position: relative;
    display: none;
    width: 100%;
    height: 100%;
    min-height: 0;
    border: 1px solid #eef0f2;
    border-radius: 10px;
    background-color: #fff;
    box-shadow: var(--mtl-shadow-soft);
    pointer-events: none;
    z-index: 2;
    overflow: hidden;
}
.product-zoom-stage.is-zooming .product-zoom-result:not([hidden]) {
    display: block;
}
.product-zoom-result-image {
    position: absolute;
    top: 0;
    left: 0;
    max-width: none;
    user-select: none;
    -webkit-user-drag: none;
    pointer-events: none;
}
.product-zoom-hint {
    margin: .55rem 0 0;
    font-size: .8rem;
    color: var(--mtl-muted);
    text-align: center;
}
.product-zoom-hint .bi { margin-right: .25rem; }

@media (prefers-reduced-motion: reduce) {
    .product-zoom-lens,
    .product-zoom-result {
        display: none !important;
    }
    .product-zoom-hint {
        display: none;
    }
    .product-zoom-stage {
        cursor: default;
    }
}

.deal-detail-info {
    min-width: 0;
}
.deal-detail-info h1 {
    font-size: clamp(1.25rem, 2.2vw, 1.75rem);
    line-height: 1.35;
    margin-bottom: .75rem;
}
.deal-off--detail {
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 12px 0 10px 0;
    z-index: 4;
}
.deal-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
}
.deal-desc {
    color: #475569;
    line-height: 1.65;
    margin-bottom: .75rem;
    max-width: 56ch;
    text-align: justify;
    text-align-last: start;
    text-justify: inter-word;
    hyphens: auto;
    -webkit-hyphens: auto;
    overflow-wrap: break-word;
}
.deal-price-row--lg .price-now { font-size: 1.75rem; }
.deal-off--inline { display: inline-block; margin-left: .5rem; }
.breadcrumb-nav { font-size: .9rem; color: var(--mtl-muted); margin-bottom: 1rem; }
.breadcrumb-nav a { color: var(--mtl-primary); text-decoration: none; }

.container--narrow { max-width: 720px; }
.content-page-section .container {
    width: min(1140px, calc(100% - 2rem));
}
.content-page-body {
    line-height: 1.75;
    color: #444;
    font-size: 1rem;
}
.content-page-body > :first-child { margin-top: 0; }
.content-page-body > :last-child { margin-bottom: 0; }
.content-page-body img,
.content-page-body video,
.content-page-body iframe {
    max-width: 100%;
    height: auto;
}
.content-page-body table {
    width: 100%;
    max-width: 100%;
    border-collapse: collapse;
}
.content-page-body table td,
.content-page-body table th {
    border: 1px solid var(--mtl-border);
    padding: .5rem .75rem;
}
.content-page-body h2,
.content-page-body h3,
.content-page-body h4 {
    margin-top: 1.75rem;
    margin-bottom: .75rem;
}
.content-page-body ul,
.content-page-body ol {
    padding-left: 1.25rem;
    margin-bottom: 1rem;
}
.category-custom-content {
    padding-bottom: 1rem;
}
.content-page-section + .section-block.pt-0 {
    padding-top: 0;
}
.empty-state { text-align: center; padding: 3rem 1rem; color: var(--mtl-muted); }
.empty-state i { font-size: 3rem; color: #ccc; display: block; margin-bottom: 1rem; }
.empty-state--404 h1 { font-size: 1.75rem; }

.coupons-list { display: flex; flex-direction: column; gap: 1rem; }
.coupon-card { display: flex; border: 1px solid var(--mtl-border); border-radius: 12px; overflow: hidden; background: #fff; }
.coupon-discount { background: var(--mtl-primary); color: #fff; padding: 1.5rem; min-width: 120px; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.1rem; text-align: center; }
.coupon-body { padding: 1.25rem; flex: 1; }
.coupon-code-row { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; margin-top: .75rem; }
.coupon-code { background: #f0fdf4; padding: .35rem .75rem; border-radius: 6px; font-weight: 600; }
.btn-copy-code { border: 1px solid var(--mtl-primary); background: #fff; color: var(--mtl-primary); padding: .35rem .75rem; border-radius: 6px; cursor: pointer; }

.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.blog-card { border: 1px solid var(--mtl-border); border-radius: 12px; overflow: hidden; background: #fff; }
.blog-thumb img { width: 100%; height: 180px; object-fit: cover; }
.blog-thumb-placeholder { height: 180px; background: #f0fdf4; display: flex; align-items: center; justify-content: center; font-size: 2.5rem; color: var(--mtl-primary); }
.blog-body { padding: 1.25rem; }
.blog-cat { font-size: .75rem; color: var(--mtl-primary); text-transform: uppercase; }
.blog-body h2 { font-size: 1.1rem; margin: .5rem 0; }
.blog-body h2 a { color: inherit; text-decoration: none; }
.read-more { color: var(--mtl-primary); font-weight: 600; text-decoration: none; }

.contact-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 2rem; }
.contact-grid--info-only { grid-template-columns: 1fr; max-width: 480px; }
.contact-info { background: #f0fdf4; padding: 1.5rem; border-radius: 12px; }
.contact-info p { margin-bottom: .75rem; }

.page-pagination { display: flex; justify-content: center; align-items: center; gap: 1rem; margin-top: 2rem; }
.page-pagination a { color: var(--mtl-primary); text-decoration: none; font-weight: 600; }
.results-count { color: var(--mtl-muted); margin-bottom: 1.25rem; }
.policy-content { line-height: 1.8; color: #444; }

@media (max-width: 991.98px) {
    .products-grid, .blog-grid { grid-template-columns: repeat(2, 1fr); }
    .deal-detail-grid, .contact-grid { grid-template-columns: 1fr; }
    .deal-detail-media {
        position: static;
        top: auto;
        max-width: 420px;
        margin-inline: auto;
    }
    .product-zoom-result {
        display: none !important;
    }
    .product-zoom-lens {
        display: none !important;
    }
    .product-zoom-hint {
        display: none;
    }
    .product-zoom-stage {
        cursor: default;
    }
    .product-zoom-stage.is-zooming {
        display: flex;
        grid-template-columns: none;
    }
    .deal-desc { max-width: none; }
}
@media (max-width: 575.98px) {
    .products-grid, .blog-grid, .stores-grid--page { grid-template-columns: 1fr; }
    .coupon-card { flex-direction: column; }
}

/* =========================================================
   SEARCH — autocomplete + results page
   ========================================================= */
.header-search-group {
    display: flex;
    align-items: center;
    gap: .75rem;
    flex: 1;
    max-width: 640px;
    width: 100%;
    margin-inline: auto;
    min-width: 0;
}
.header-search-group .header-search-wrap {
    flex: 1;
    min-width: 0;
    max-width: none;
    margin: 0;
}
.header-wishlist { flex-shrink: 0; }

.header-search-wrap {
    position: relative;
    flex: 1;
    max-width: 560px;
    width: 100%;
    margin-inline: auto;
}
.header-search-wrap .header-search {
    margin: 0;
    max-width: none;
}

.search-autocomplete {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 1050;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
    max-height: min(70vh, 520px);
    overflow: auto;
}
.search-autocomplete.is-open { display: block; }

.search-ac-group { padding: .5rem 0; }
.search-ac-group + .search-ac-group { border-top: 1px solid #f1f5f9; }
.search-ac-group-title {
    padding: .55rem 1rem .35rem;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: .4rem;
}

.search-ac-item {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .65rem 1rem;
    text-decoration: none;
    color: inherit;
    transition: background .15s;
}
.search-ac-item:hover,
.search-ac-item.is-active {
    background: #f0fdf4;
}
.search-ac-thumb {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: #f8fafc;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    color: var(--mtl-green);
}
.search-ac-thumb img { width: 100%; height: 100%; object-fit: cover; }
.search-ac-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: .15rem;
}
.search-ac-body strong {
    font-size: .92rem;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.search-ac-body small {
    color: #64748b;
    font-size: .78rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.search-ac-price,
.search-ac-badge {
    font-size: .75rem;
    font-weight: 700;
    color: var(--mtl-green);
    white-space: nowrap;
}
.search-ac-badge {
    background: #ecfdf5;
    padding: .2rem .5rem;
    border-radius: 999px;
}

.search-ac-empty {
    padding: 1.25rem 1rem;
    color: #64748b;
    text-align: center;
    font-size: .9rem;
}

.search-ac-filters {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    padding: .75rem 1rem;
    border-top: 1px solid #f1f5f9;
    background: #fafafa;
}
.search-ac-filters-label {
    width: 100%;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #94a3b8;
    margin-bottom: .15rem;
}
.search-ac-filter {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    padding: .28rem .65rem;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #e2e8f0;
    color: #475569;
    font-size: .75rem;
    text-decoration: none;
    transition: all .15s;
}
.search-ac-filter:hover,
.search-ac-filter.is-active {
    border-color: var(--mtl-green);
    color: var(--mtl-green);
    background: #f0fdf4;
}

.search-ac-view-all {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    padding: .85rem 1rem;
    border-top: 1px solid #e5e7eb;
    background: var(--mtl-green);
    color: #fff !important;
    font-weight: 600;
    font-size: .88rem;
    text-decoration: none;
    border-radius: 0 0 16px 16px;
}
.search-ac-view-all:hover { filter: brightness(1.05); color: #fff !important; }

.page-hero--search { padding-bottom: 1.5rem; }
.page-hero-sub { color: #64748b; margin: -.25rem 0 1.25rem; }

.search-type-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    justify-content: center;
    margin-top: 1.25rem;
}
.search-type-tab {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .45rem .85rem;
    border-radius: 999px;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #475569;
    text-decoration: none;
    font-size: .82rem;
    font-weight: 600;
    transition: all .15s;
}
.search-type-tab em {
    font-style: normal;
    background: #f1f5f9;
    color: #64748b;
    padding: .08rem .45rem;
    border-radius: 999px;
    font-size: .72rem;
}
.search-type-tab:hover,
.search-type-tab.is-active {
    border-color: var(--mtl-green);
    background: #f0fdf4;
    color: var(--mtl-green);
}
.search-type-tab.is-active em { background: var(--mtl-green); color: #fff; }

.search-hints { padding: 1rem 0 2rem; }
.search-hints h2 { font-size: 1.25rem; margin-bottom: 1rem; text-align: center; }
.search-hints-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}
.search-hint-card {
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 1.25rem;
    background: #fff;
    text-align: center;
}
.search-hint-card i {
    font-size: 1.6rem;
    color: var(--mtl-green);
    margin-bottom: .5rem;
    display: block;
}
.search-hint-card h3 { font-size: 1rem; margin-bottom: .35rem; }
.search-hint-card p { font-size: .85rem; color: #64748b; margin: 0; }

.search-group { margin-bottom: 2rem; }
.search-group-title {
    font-size: 1.15rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: .45rem;
    color: #1e293b;
}
.search-results-list {
    display: flex;
    flex-direction: column;
    gap: .65rem;
}
.search-result-row {
    display: flex;
    align-items: center;
    gap: .85rem;
    padding: .85rem 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
    text-decoration: none;
    color: inherit;
    transition: border-color .15s, box-shadow .15s;
}
.search-result-row:hover {
    border-color: var(--mtl-green);
    box-shadow: 0 4px 14px rgba(45, 106, 79, 0.08);
}
.search-result-thumb {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: #f8fafc;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    color: var(--mtl-green);
    font-size: 1.25rem;
}
.search-result-thumb img { width: 100%; height: 100%; object-fit: cover; }
.search-result-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: .2rem;
}
.search-result-body strong { font-size: .95rem; }
.search-result-body small { color: #64748b; font-size: .82rem; }
.search-result-body code {
    background: #f0fdf4;
    padding: .1rem .35rem;
    border-radius: 4px;
    color: var(--mtl-green);
}
.search-result-badge {
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--mtl-green);
    background: #ecfdf5;
    padding: .25rem .55rem;
    border-radius: 999px;
    white-space: nowrap;
}

@media (max-width: 991.98px) {
    .search-hints-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 575.98px) {
    .search-hints-grid { grid-template-columns: 1fr; }
    .search-type-tabs { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; padding-bottom: .25rem; }
    .search-result-row { flex-wrap: wrap; }
    .search-result-badge { margin-left: auto; }
}

/* =========================================================
   BACK TO TOP
   ========================================================= */
.back-to-top {
    position: fixed;
    right: 1.25rem;
    bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
    z-index: 1030;
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: var(--mtl-green);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: 0 4px 16px rgba(27, 67, 50, 0.35);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(12px);
    transition: opacity .25s, visibility .25s, transform .25s, background .2s, box-shadow .2s;
}
.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}
.back-to-top:hover {
    background: var(--mtl-green-dark);
    box-shadow: 0 6px 20px rgba(27, 67, 50, 0.45);
}
.back-to-top:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--mtl-green-mid);
}
@media (min-width: 768px) {
    .back-to-top {
        right: 1.75rem;
        bottom: calc(1.75rem + env(safe-area-inset-bottom, 0px));
    }
}
@media (max-width: 575.98px) {
    .back-to-top {
        width: 44px;
        height: 44px;
        font-size: 1.1rem;
    }
}
@media (prefers-reduced-motion: reduce) {
    .back-to-top { transition: none; }
}
