/* ═══════════════════════════════════════════════════════════
   AMERICAN BOND — Light Elegant Design System v2
   Philosophy: White & cream dominant, navy/purple as accents
   ═══════════════════════════════════════════════════════════ */


:root {
    /* ── Brand Palette ── */
    --navy: #1A3A5C;
    --navy-deep: #0d2140;
    --navy-light: #243d5e;
    --orange: #E8600A;
    --orange-deep: #c94f00;
    --purple: #755FDE;
    --purple-deep: #5a48c0;
    --purple-soft: rgba(117,95,222,0.1);
    --cyan: #5FC2DE;
    --cyan-deep: #3daecf;
    --cyan-soft: rgba(95,194,222,0.1);
    /* ── Light Palette (dominant) ── */
    --white: #FFFFFF;
    --cream: #FDFCFA;
    --cream-2: #F7F5F1;
    --cream-3: #F0EDE7;
    --gray-50: #FAFAFA;
    --gray-100: #F5F5F5;
    --gray-200: #EBEBEB;
    --gray-300: #D4D4D4;
    --gray-400: #A3A3A3;
    --gray-500: #737373;
    --gray-600: #525252;
    --gray-800: #262626;
    /* ── Typography ── */
    --font-display: 'Comic Relief', cursive;
    --font-body: 'Nunito', sans-serif;
    /* Comic Relief has no italic variant — prevent faux italic */
    font-synthesis: none;
    /* ── Shape ── */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 18px;
    --radius-xl: 28px;
    /* ── Shadows (soft, light) ── */
    --shadow-xs: 0 1px 2px rgba(0,0,0,0.04);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 6px 24px rgba(0,0,0,0.08);
    --shadow-lg: 0 16px 48px rgba(0,0,0,0.10);
    --shadow-xl: 0 32px 80px rgba(0,0,0,0.12);
    --shadow-colored-purple: 0 8px 32px rgba(117,95,222,0.2);
    --shadow-colored-cyan: 0 8px 32px rgba(95,194,222,0.2);
    --shadow-colored-orange: 0 8px 32px rgba(232,96,10,0.2);
    --transition-fast: 0.18s cubic-bezier(0.4,0,0.2,1);
    --transition-smooth: 0.35s cubic-bezier(0.4,0,0.2,1);
    --transition-spring: 0.5s cubic-bezier(0.34,1.56,0.64,1);
}

/* ── Reset ── */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    /* Sticky footer: html must participate in the height chain */
    min-height: 100%;
    /* NOTE: Do NOT add overflow-x here or on body.
       In Blink/WebKit, overflow:hidden on the root element clips
       position:fixed children at the document edge instead of the
       viewport edge, which pushes buttons like scroll-to-top off-screen.
       Horizontal overflow is handled with overflow-x:clip on
       .main-navbar and .page-content below. */
}

body {
    /* Both !important declarations guard against Bootstrap's reboot CSS.
       Bootstrap loads before site.css now (correct order), but !important
       keeps these correct even if the order ever drifts again. */
    font-family: var(--font-body) !important;
    background: var(--cream) !important;
    color: var(--navy);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;

    /* ── Sticky footer pattern ──────────────────────────────────
       Making body a flex column forces the footer to sit flush at
       the bottom even on short pages, eliminating the white gap. */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ════════════════════════════════════════════
   NAVBAR — Light with subtle border
   ════════════════════════════════════════════ */
.main-navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(253,252,250,0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--gray-200);
    transition: all var(--transition-smooth);
    /* Clip any child that overflows the navbar width without creating a
       scroll container (overflow:clip does NOT affect fixed descendants) */
    overflow-x: clip;
}

    .main-navbar.scrolled {
        box-shadow: var(--shadow-sm);
    }

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.9rem 0;
}

/* Brand */
.navbar-brand-text {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    transition: opacity var(--transition-fast);
}

    .navbar-brand-text:hover { opacity: 0.78; }

.navbar-logo {
    height: 30px;
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
}

.navbar-brand-stack {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.navbar-brand-nikits {
    font-family: var(--font-display);
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--orange);
    text-transform: uppercase;
    letter-spacing: 0.13em;
}

.navbar-brand-main {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--navy);
    letter-spacing: 0.01em;
    white-space: nowrap;
}

    .navbar-brand-main .accent {
        color: var(--orange);
    }

.navbar-brand-dot {
    width: 5px;
    height: 5px;
    background: var(--orange);
    border-radius: 50%;
    display: inline-block;
    margin-bottom: 4px;
}

/* Nav links */
.nav-links {
    display: flex;
    align-items: center;
    gap: 0.15rem;
}

.nav-link-item {
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-600);
    text-decoration: none;
    padding: 0.4rem 0.85rem;
    border-radius: 50px;
    transition: all var(--transition-fast);
    letter-spacing: 0.01em;
}

    .nav-link-item:hover {
        color: var(--navy);
        background: var(--gray-100);
    }

.nav-pill-adhesive {
    background: var(--cyan-soft);
    color: var(--cyan-deep) !important;
    border: 1px solid rgba(95,194,222,0.25);
}

    .nav-pill-adhesive:hover {
        background: var(--cyan) !important;
        color: var(--white) !important;
        border-color: var(--cyan);
    }

.nav-pill-paint {
    background: var(--purple-soft);
    color: var(--purple) !important;
    border: 1px solid rgba(117,95,222,0.2);
}

    .nav-pill-paint:hover {
        background: var(--purple) !important;
        color: var(--white) !important;
        border-color: var(--purple);
    }

.lang-toggle {
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.35rem 0.85rem;
    border-radius: 50px;
    border: 1.5px solid var(--navy);
    color: var(--navy);
    background: transparent;
    cursor: pointer;
    font-family: var(--font-body);
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    white-space: nowrap;
}

    .lang-toggle:hover {
        background: var(--navy);
        color: #fff;
    }

/* ════════════════════════════════════════════
   PAGE CONTENT
   ════════════════════════════════════════════ */
.page-content {
    /* flex: 1 0 auto lets this grow to fill whatever space the body flex column
       has left after the navbar and footer, so the footer is always at the bottom. */
    flex: 1 0 auto;
    /* Keep the old min-height as a safety net for non-flex contexts */
    min-height: calc(100vh - 200px);
    /* Clip page content overflow without affecting position:fixed children
       (overflow:clip does not create a scroll container) */
    overflow-x: clip;
}

/* ════════════════════════════════════════════
   FOOTER — Dark, ABP v2 style
   ════════════════════════════════════════════ */
.main-footer {
    background: #1A1209;   /* deep warm brown-black, same as ABP v2 --bg-invert */
    color: rgba(255,255,255,0.6);
    margin-top: 0;
    position: relative;
    /* Prevent the footer from shrinking in the body flex column */
    flex-shrink: 0;
    overflow: hidden;
}

/* Decorative large watermark */
.main-footer::after {
    content: 'AB';
    position: absolute;
    bottom: -1rem;
    right: 2rem;
    font-family: var(--font-display);
    font-size: 12rem;
    font-weight: 700;
    color: rgba(255,255,255,0.025);
    pointer-events: none;
    user-select: none;
    line-height: 1;
}

/* Wave at the top — SVG fills with --cream to blend into light pages */
.footer__wave {
    line-height: 0;
    margin-bottom: -1px; /* eliminate any sub-pixel gap */
}
.footer__wave svg { display: block; width: 100%; }

/* Inner container padding */
.main-footer .container { padding-top: 3rem; }

/* 4-column grid: brand (2fr) + 3 link columns */
.footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 3rem;
}

/* ── Brand column ── */
.footer__logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: rgba(255,255,255,0.9);
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}
.footer__logo span { color: var(--orange); }

.footer__tagline {
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.3);
    margin-bottom: 1.5rem;
}

/* Contact rows */
.footer__contact { display: flex; flex-direction: column; gap: 0.6rem; }

.footer__contact-row {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
    line-height: 1.5;
}
.footer__contact-row strong {
    color: rgba(255,255,255,0.85);
    font-weight: 600;
}

/* Small icon box for each contact row */
.footer__ci {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    border-radius: 7px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.5);
    margin-top: 1px;
}

/* ── Link columns ── */
.footer__col {
    display: flex;
    flex-direction: column;
}

.footer__col h4 {
    font-family: var(--font-display);
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: rgba(255,255,255,0.35);
    margin-bottom: 1rem;
}

.footer__col a {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.55);
    text-decoration: none;
    margin-bottom: 0.55rem;
    transition: color 0.2s;
}
.footer__col a:hover { color: var(--orange); }

/* About column paragraph */
.footer__col--about p {
    font-size: 0.82rem;
    line-height: 1.75;
    color: rgba(255,255,255,0.4);
    margin-bottom: 1.25rem;
}

/* Brand accent dots */
.footer__dots {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}
.footer__dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    opacity: 0.85;
}

/* ── Bottom bar ── */
.footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 1.4rem 0;
    border-top: 1px solid rgba(255,255,255,0.07);
}
.footer__bottom p,
.footer__legal span {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.25);
    margin: 0;
}

/* ════════════════════════════════════════════
   BREADCRUMB
   ════════════════════════════════════════════ */
.page-breadcrumb {
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    padding: 0.65rem 0;
    font-size: 0.82rem;
    color: var(--gray-400);
}

    .page-breadcrumb a {
        color: var(--gray-500);
        text-decoration: none;
        transition: color var(--transition-fast);
    }

        .page-breadcrumb a:hover {
            color: var(--navy);
        }

    .page-breadcrumb .sep {
        margin: 0 0.5rem;
    }

/* ════════════════════════════════════════════
   BUTTONS
   ════════════════════════════════════════════ */
.btn-navy {
    background: var(--navy);
    color: var(--white);
    border: none;
    border-radius: 50px;
    padding: 0.72rem 2rem;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all var(--transition-smooth);
}

    .btn-navy:hover {
        background: var(--navy-deep);
        color: var(--white);
        transform: translateY(-2px);
        box-shadow: 0 8px 24px rgba(26,58,92,0.25);
    }

.btn-orange {
    background: var(--orange);
    color: var(--white);
    border: none;
    border-radius: 50px;
    padding: 0.72rem 2rem;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all var(--transition-smooth);
}

    .btn-orange:hover {
        background: var(--orange-deep);
        color: var(--white);
        transform: translateY(-2px);
        box-shadow: var(--shadow-colored-orange);
    }

.btn-purple {
    background: var(--purple);
    color: var(--white);
    border: none;
    border-radius: 50px;
    padding: 0.72rem 2rem;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all var(--transition-smooth);
}

    .btn-purple:hover {
        background: var(--purple-deep);
        color: var(--white);
        transform: translateY(-2px);
        box-shadow: var(--shadow-colored-purple);
    }

.btn-outline-navy {
    background: transparent;
    color: var(--navy);
    border: 1.5px solid var(--gray-300);
    border-radius: 50px;
    padding: 0.65rem 1.8rem;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all var(--transition-smooth);
}

    .btn-outline-navy:hover {
        border-color: var(--navy);
        background: var(--navy);
        color: var(--white);
        transform: translateY(-2px);
    }

/* ════════════════════════════════════════════
   TYPOGRAPHY
   ════════════════════════════════════════════ */
.display-heading {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--navy);
    line-height: 1.1;
}

.section-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--orange);
    margin-bottom: 0.6rem;
    display: block;
}

.section-title {
    font-family: var(--font-display);
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.15;
    margin-bottom: 0.75rem;
}

.section-body {
    font-size: 1rem;
    color: var(--gray-500);
    line-height: 1.8;
}

/* ════════════════════════════════════════════
   PRODUCT CARDS
   ════════════════════════════════════════════ */
.product-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xs);
    border: 1px solid var(--gray-200);
    transition: all var(--transition-smooth);
    height: 100%;
    position: relative;
}

    .product-card:hover {
        box-shadow: var(--shadow-lg);
        transform: translateY(-6px);
        border-color: transparent;
        color: inherit;
    }

.product-card-img-wrap {
    position: relative;
    overflow: hidden;
    background: var(--gray-50);
    height: 210px;
    border-bottom: 1px solid var(--gray-100);
}

.product-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-smooth);
}

.product-card:hover .product-card-img {
    transform: scale(1.06);
}

.product-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    opacity: 0.1;
    transition: all var(--transition-smooth);
}

.product-card:hover .product-card-placeholder {
    opacity: 0.18;
    transform: scale(1.08);
}

.product-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(26,58,92,0.75), transparent);
    padding: 1.5rem 1rem 0.8rem;
    transform: translateY(100%);
    transition: transform var(--transition-smooth);
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.product-card:hover .product-card-overlay {
    transform: translateY(0);
}

.product-card-overlay span {
    color: white;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.product-card-body {
    padding: 1.1rem 1.25rem 1.3rem;
}

.product-card-category {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.35rem;
}

.product-card-name {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--navy);
    /* Comic Relief descenders clip at 1.3; 1.5 gives glyphs room  */
    line-height: 1.5;
    margin-bottom: 0.4rem;
    overflow-wrap: break-word;
    word-break: break-word;
}

.product-card-pack {
    font-size: 0.75rem;
    color: var(--gray-400);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* ════════════════════════════════════════════
   DIVISION HERO — Light version
   ════════════════════════════════════════════ */
.division-hero {
    position: relative;
    overflow: hidden;
    padding: 4rem 0;
    color: var(--white);
}

/* Adhesive: dark navy with purple shimmer */
.division-hero-adhesive {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
}

/* Paint: light cream with colored accents */
.division-hero-paint {
    background: linear-gradient(135deg, var(--cream-2) 0%, var(--cream-3) 100%);
    color: var(--navy);
}

.division-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.division-hero-paint::before {
    background-image: none;
}

.division-hero-label {
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    opacity: 0.6;
    margin-bottom: 0.75rem;
}

.division-hero-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 0.75rem;
}

.division-hero-desc {
    font-size: 1rem;
    opacity: 0.82;
    max-width: 560px;
    line-height: 1.7;
    margin-bottom: 0.75rem;
}

.division-hero-paint .division-hero-desc {
    opacity: 0.65;
}

.division-hero-stat {
    font-size: 0.82rem;
    opacity: 0.5;
}

.division-hero-icon {
    font-size: 7rem;
    opacity: 0.07;
    position: absolute;
    right: 3rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

.division-hero-adhesive .division-hero-icon {
    opacity: 0.06;
}

/* ════════════════════════════════════════════
   CATEGORY SIDEBAR — Light
   ════════════════════════════════════════════ */
.category-sidebar {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    position: sticky;
    top: 80px;
}

.category-sidebar-header {
    padding: 0.9rem 1.2rem;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--white);
}

.category-sidebar-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.7rem 1.2rem;
    font-size: 0.875rem;
    color: var(--gray-500);
    text-decoration: none;
    border-left: 3px solid transparent;
    transition: all var(--transition-fast);
    background: var(--white);
}

    .category-sidebar-item:hover {
        background: var(--gray-50);
        color: var(--navy);
        border-left-color: var(--gray-300);
        padding-left: 1.5rem;
    }

    .category-sidebar-item.active {
        background: var(--gray-50);
        color: var(--navy);
        font-weight: 600;
    }

    .category-sidebar-item.active-adhesive {
        border-left-color: var(--purple);
        color: var(--purple);
        background: var(--purple-soft);
    }

    .category-sidebar-item.active-paint {
        border-left-color: var(--cyan);
        color: var(--cyan-deep);
        background: var(--cyan-soft);
    }

.category-sidebar-count {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.15rem 0.5rem;
    border-radius: 50px;
    background: var(--gray-100);
    color: var(--gray-400);
}

.active-adhesive .category-sidebar-count {
    background: rgba(117,95,222,0.12);
    color: var(--purple);
}

.active-paint .category-sidebar-count {
    background: rgba(95,194,222,0.15);
    color: var(--cyan-deep);
}

/* ════════════════════════════════════════════
   CATEGORY SECTION HEADER
   ════════════════════════════════════════════ */
.cat-section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.2rem;
}

.cat-section-title {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 600;
    white-space: nowrap;
}

.cat-section-line {
    flex: 1;
    height: 1px;
    background: var(--gray-200);
}

.cat-section-link {
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    opacity: 0.6;
    transition: opacity var(--transition-fast);
}

    .cat-section-link:hover {
        opacity: 1;
    }

/* ════════════════════════════════════════════
   PRODUCT DETAIL
   ════════════════════════════════════════════ */
.product-detail-img-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-200);
    text-align: center;
    position: sticky;
    top: 80px;
}

.product-detail-img {
    max-height: 360px;
    max-width: 100%;
    object-fit: contain;
    transition: transform var(--transition-smooth);
}

.product-detail-img-card:hover .product-detail-img {
    transform: scale(1.03);
}

.product-detail-title {
    font-family: var(--font-display);
    /* Comic Relief has very tall ascenders — needs a generous line-height.
       1.3 was still tight and caused lines to visually bleed into each other.
       1.65 gives enough breathing room for multi-line product names. */
    font-size: clamp(1.4rem, 2.6vw, 1.85rem);
    font-weight: 700;
    color: var(--navy);
    line-height: 1.65;
    margin-bottom: 0.75rem;
    /* Ensure long hyphenated product codes or chemical names don't overflow */
    overflow-wrap: break-word;
    word-break: break-word;
}

.product-detail-hindi {
    font-size: 1.05rem;
    color: var(--gray-400);
    margin-bottom: 1.25rem;
    font-style: italic;
}

.product-detail-desc {
    font-size: 1rem;
    color: var(--gray-500);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.detail-section-heading {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--gray-400);
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--gray-100);
}

.feature-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: 50px;
    padding: 0.4rem 0.9rem;
    font-size: 0.82rem;
    color: var(--gray-600);
    margin: 0.25rem;
    transition: all var(--transition-fast);
}

    .feature-pill:hover {
        background: var(--navy);
        color: var(--white);
        border-color: var(--navy);
        transform: translateY(-1px);
    }

.packaging-badge {
    display: inline-block;
    border-radius: var(--radius-sm);
    padding: 0.3rem 0.75rem;
    font-size: 0.78rem;
    font-weight: 600;
    margin: 0.2rem;
}

/* ════════════════════════════════════════════
   ABOUT PAGE STATS
   ════════════════════════════════════════════ */
.stat-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    transition: all var(--transition-smooth);
    overflow: hidden;
    position: relative;
}

    .stat-card::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: linear-gradient(90deg, var(--purple), var(--cyan));
        transform: scaleX(0);
        transition: transform var(--transition-smooth);
    }

    .stat-card:hover {
        box-shadow: var(--shadow-lg);
        transform: translateY(-4px);
    }

        .stat-card:hover::after {
            transform: scaleX(1);
        }

.stat-number {
    font-family: var(--font-display);
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--navy);
    line-height: 1;
    margin-bottom: 0.3rem;
}

.stat-label {
    font-size: 0.82rem;
    color: var(--gray-400);
    font-weight: 500;
}

/* ════════════════════════════════════════════
   SCROLL REVEAL ANIMATIONS
   ════════════════════════════════════════════ */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.65s cubic-bezier(0.4,0,0.2,1), transform 0.65s cubic-bezier(0.4,0,0.2,1);
}

    .reveal.visible {
        opacity: 1;
        transform: translateY(0);
    }

.reveal-left {
    opacity: 0;
    transform: translateX(-28px);
    transition: opacity 0.65s cubic-bezier(0.4,0,0.2,1), transform 0.65s cubic-bezier(0.4,0,0.2,1);
}

    .reveal-left.visible {
        opacity: 1;
        transform: translateX(0);
    }

.reveal-right {
    opacity: 0;
    transform: translateX(28px);
    transition: opacity 0.65s cubic-bezier(0.4,0,0.2,1), transform 0.65s cubic-bezier(0.4,0,0.2,1);
}

    .reveal-right.visible {
        opacity: 1;
        transform: translateX(0);
    }

.delay-1 {
    transition-delay: 0.08s;
}

.delay-2 {
    transition-delay: 0.16s;
}

.delay-3 {
    transition-delay: 0.24s;
}

.delay-4 {
    transition-delay: 0.32s;
}

.delay-5 {
    transition-delay: 0.40s;
}

.delay-6 {
    transition-delay: 0.48s;
}

/* ════════════════════════════════════════════
   CONTEST MODAL
   ════════════════════════════════════════════ */
.contest-modal .modal-content {
    border: none;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.contest-modal-top {
    background: linear-gradient(135deg, var(--navy), var(--navy-deep));
    padding: 2.5rem 2rem 1.5rem;
    color: white;
    text-align: center;
}

.contest-modal-trophy {
    font-size: 3rem;
    animation: trophy-bounce 2s ease-in-out infinite;
}

@@keyframes trophy-bounce {
    0%, 100% {
        transform: translateY(0) rotate(-3deg);
    }

    50% {
        transform: translateY(-8px) rotate(3deg);
    }
}

.contest-modal-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 0.75rem;
}

.contest-modal-body {
    padding: 1.75rem;
    background: var(--white);
}

.contest-input {
    width: 100%;
    padding: 0.7rem 1rem;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--navy);
    background: var(--gray-50);
    transition: all var(--transition-fast);
    outline: none;
    margin-bottom: 0.75rem;
}

    .contest-input:focus {
        border-color: var(--purple);
        background: var(--white);
        box-shadow: 0 0 0 3px rgba(117,95,222,0.1);
    }

/* ════════════════════════════════════════════
   CONTACT FORM
   ════════════════════════════════════════════ */
.contact-form-wrap {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-200);
}

.form-label-custom {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gray-500);
    margin-bottom: 0.4rem;
    display: block;
}

.form-control-custom {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--navy);
    background: var(--gray-50);
    transition: all var(--transition-fast);
    outline: none;
}

    .form-control-custom:focus {
        border-color: var(--navy);
        background: var(--white);
        box-shadow: 0 0 0 3px rgba(26,58,92,0.07);
    }

/* ════════════════════════════════════════════
   TAG PILLS
   ════════════════════════════════════════════ */
.tag-pill {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.tag-adhesive {
    background: var(--purple-soft);
    color: var(--purple);
    border: 1px solid rgba(117,95,222,0.2);
}

.tag-paint {
    background: var(--cyan-soft);
    color: var(--cyan-deep);
    border: 1px solid rgba(95,194,222,0.25);
}

/* ════════════════════════════════════════════
   SCROLL TO TOP
   ════════════════════════════════════════════ */
.scroll-top-btn {
    position: fixed;
    /* Sit above the social float buttons (z-index 9000) and cookie banner (8000) */
    bottom: 5.5rem;
    right: 1.5rem;
    left: auto;   /* explicit: never inherit a left value from anywhere */
    width: 44px;
    height: 44px;
    background: var(--white);
    color: var(--navy);
    border: 1.5px solid var(--gray-200);
    border-radius: 50%;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    opacity: 0;
    transform: translateY(10px);
    transition: all var(--transition-smooth);
    z-index: 9500;   /* above social floats (9000), cookie banner (8000), nav (1000) */
    display: flex;
    align-items: center;
    justify-content: center;
}

    .scroll-top-btn.visible {
        opacity: 1;
        transform: translateY(0);
    }

    .scroll-top-btn:hover {
        background: var(--navy);
        color: var(--white);
        border-color: var(--navy);
        transform: translateY(-3px);
    }

/* ════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════ */

/* ── Tablet (≤ 992px) ──────────────────────────────────────────────────── */
@media (max-width: 992px) {

    /* Homepage hero: two-column layout becomes one column on tablet */
    .home-hero-layout {
        flex-direction: column;
        align-items: flex-start;
        gap: 2.5rem;
        padding: 3rem 0 2.5rem;
    }
    .home-hero-text  { max-width: 100%; }
    .home-hero-right { width: 100%; }

    /* Navbar: hide the desktop divider pills on tablet */
    .nav-pill-adhesive, .nav-pill-paint { display: none; }

    /* Store locator: map + list side by side becomes stacked */
    .sl-layout { grid-template-columns: 1fr; }
    .sl-map-wrap { height: 340px; border-radius: 20px 20px 0 0; }

    /* Contact: two columns (form + info) become stacked */
    .contact-grid { grid-template-columns: 1fr; }

    /* Section label + title: slightly smaller on tablet */
    .section-title { font-size: 1.9rem; }
}

/* ── Mobile (≤ 768px) ──────────────────────────────────────────────────── */
@media (max-width: 768px) {
    /* overflow-x: hidden is now on html (globally) — not body —
       to avoid the iOS Safari bug that breaks position:fixed children */

    /* Tighter container padding so content doesn't hug the edges */
    .container { padding-left: 1rem; padding-right: 1rem; }

    /* Page breadcrumb: smaller text, tighter padding */
    .page-breadcrumb { padding: 0.6rem 0; font-size: 0.78rem; }

    /* Section headings */
    .section-title { font-size: 1.75rem; }
    .section-label { font-size: 0.65rem; }

    /* ── Navbar ── */
    /* Division hero (catalog landing pages) */
    .division-hero       { padding: 2.5rem 0; }
    .division-hero-icon  { display: none; }
    .division-hero-title { font-size: clamp(1.6rem, 5vw, 2.2rem); }

    /* ── Homepage hero ── */
    .home-hero-layout {
        flex-direction: column;
        padding: 2.5rem 0 2rem;
        gap: 2rem;
    }
    .home-hero-h1  { font-size: clamp(2rem, 9vw, 3.2rem) !important; }
    .home-hero-right { display: none; } /* Hide decorative right panel on phones */

    /* Trust badges row on homepage: allow 2-up wrapping */
    .trust-badges-row { flex-wrap: wrap; gap: 0.75rem; }
    .trust-badge      { flex: 1 1 calc(50% - 0.75rem); }

    /* ── Product cards ── */
    /* Already in catalog.css; these guard the .product-card used outside catalog */
    .product-card { border-radius: 14px; }

    /* ── Product detail page ── */
    .product-detail-title { font-size: 1.55rem; line-height: 1.65; }
    /* Image card: no longer sticky so it scrolls with the page */
    .product-detail-img-card { position: static; padding: 1.5rem; margin-bottom: 1.5rem; }
    /* Category sidebar: no sticky on mobile either */
    .category-sidebar { position: static; margin-bottom: 1.5rem; }

    /* ── Contact form ── */
    .contact-form-wrap { padding: 1.5rem; }

    /* ── Footer ── */
    .main-footer::after { display: none; }
    /* 2-column grid on tablet (brand spans full width) */
    .footer__grid  { grid-template-columns: 1fr 1fr; gap: 2rem; }
    .footer__brand { grid-column: 1 / -1; }

    /* ── Stat cards ── */
    .stat-number { font-size: 2.2rem; }

    /* ── Buttons ── */
    /* Full-width buttons on mobile; individual pages can override with !important */
    .btn-navy, .btn-orange, .btn-purple, .btn-outline-navy {
        width: 100%; justify-content: center;
    }

    /* ── Store Locator ── */
    .sl-layout        { grid-template-columns: 1fr; }
    .sl-map-wrap      { height: 280px; }
    /* Dealer cards: tighter padding */
    .sl-dealer-card   { padding: 1rem 1.25rem; }

    /* ── Careers page ── */
    .careers-hero-layout { flex-direction: column; }

    /* ── Wishlist ── */
    .wishlist-grid { grid-template-columns: 1fr; }
}

/* ── Small phones (≤ 480px) ───────────────────────────────────────────── */
@media (max-width: 480px) {
    /* ── Navbar pills ── */
    .nav-pill-adhesive, .nav-pill-paint { display: none; }

    /* ── Section text ── */
    .section-title { font-size: 1.45rem; }
    .section-body  { font-size: 0.9rem; }

    /* ── Homepage hero ── */
    .home-hero-h1 { font-size: clamp(1.8rem, 10vw, 2.6rem) !important; }

    /* ── Product cards ── */
    .product-card-img-wrap { height: 170px; }
    .product-card-body     { padding: 0.9rem 1rem 1.1rem; }
    .product-card-name     { font-size: 0.95rem; }

    /* ── Stat cards ── */
    .stat-number { font-size: 1.9rem; }
    .stat-card   { padding: 1.4rem 1rem; }

    /* ── Product detail image ── */
    .product-detail-img      { max-height: 240px; }
    .product-detail-img-card { padding: 1.2rem; }

    /* ── Footer ── */
    .footer__grid                { grid-template-columns: 1fr; gap: 1.5rem; }
    .main-footer .container      { padding-top: 2rem; }
    .footer__bottom              { flex-direction: column; text-align: center; }
    /* Footer links row: stack vertically */
    .footer__bottom-links        { flex-direction: column; gap: 0.5rem; align-items: center; }

    /* ── Breadcrumb ── */
    .page-breadcrumb { padding: 0.5rem 0; font-size: 0.72rem; }

    /* ── Cookie banner: stack text + button ── */
    #cookieBanner { flex-direction: column; align-items: flex-start; }

    /* ── Store Locator tabs: wrap if too many ── */
    .sl-tabs { flex-wrap: wrap; }
    .sl-tab  { flex: 1 1 calc(50% - 0.5rem); text-align: center; }

    /* ── Scroll-to-top button: smaller on phones, same relative position ── */
    .scroll-top-btn { width: 40px; height: 40px; font-size: 0.85rem; bottom: 5rem; right: 1rem; }
}
