/* ==========================================================================
   WE TWO FIREWORKS — Core Premium CSS Design System
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;600;700;800&display=swap');

/* --- Design Tokens & Theme Variables --- */
:root {
    /* Main Palette (Redesigned around premium Gold #FFCE1B background) */
    --primary-color: #B71C1C;
    /* Fire Red Accent */
    --primary-gradient: linear-gradient(135deg, #B71C1C 0%, #FF8A00 100%);
    --bg-dark: #FFCE1B;
    /* Premium Gold/Yellow main background */
    --bg-card: #FFFFFF;
    /* Pure White Premium Cards */
    --bg-nav: #111116;
    /* Deep Charcoal / Rich Black Navbar */
    --border-color: #D4AF37;
    /* Luxury Gold Borders */
    --border-hover: #FF8A00;
    /* Warm Orange hover */

    /* Navigation Spacing */
    --nav-side-padding: 24px;
    /* Horizontal padding inside nav-container */
    --nav-padding-y: 10px;
    /* Vertical padding inside nav-container */

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* System Colors */
    --text-main: #111111;
    /* Primary Text */
    --text-muted: #444444;
    /* Secondary Text */
    --success: #2E7D32;
    /* Success Green */
    --danger: #B71C1C;
    /* Danger Red */
    --warning: #FF8A00;
    /* Warning Orange */
}

/* Light Mode Overrides */
body.light-mode {
    --bg-dark: #F9FAFB;
    --bg-card: rgba(255, 255, 255, 0.85);
    --bg-nav: rgba(249, 250, 251, 0.85);
    --border-color: rgba(184, 134, 11, 0.2);
    --border-hover: rgba(184, 134, 11, 0.5);
    --text-main: #111827;
    --text-muted: #4B5563;
}

/* --- Base Resets --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) var(--bg-dark);
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.5s ease, color 0.5s ease;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* --- Premium Custom Scrollbar --- */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-gradient);
    border-radius: 3px;
}

/* --- Custom Cursor --- */
.custom-cursor {
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    position: fixed;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 10000;
    transition: width 0.2s, height 0.2s, background-color 0.2s;
    mix-blend-mode: difference;
}

.custom-cursor.hovered {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 215, 0, 0.2);
}

@media (max-width: 768px) {
    .custom-cursor {
        display: none;
    }
}

/* --- Cinematic Loader --- */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-dark);
    z-index: 99999;
    overflow: hidden;
}

#loader-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    z-index: 1;
}

.loader-logo-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
    pointer-events: none;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 140px;
    height: 140px;
}

.loader-logo-img {
    width: 85px;
    height: 85px;
    object-fit: contain;
    border-radius: 50%;
    background: var(--bg-dark);
    padding: 5px;
    border: 2px solid var(--primary-color);
    box-shadow: 0 0 25px var(--primary-color);
    animation: logoGlowPulse 2.0s infinite ease-in-out;
}

@keyframes logoGlowPulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 20px var(--primary-color);
    }

    50% {
        transform: scale(1.06);
        box-shadow: 0 0 40px var(--primary-color), 0 0 15px var(--primary-color);
    }
}

.loader-text-wrapper {
    position: absolute;
    bottom: 8%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    pointer-events: none;
    text-align: center;
    width: 100%;
    max-width: 90%;
    box-sizing: border-box;
}

.loader-title {
    font-family: var(--font-heading);
    font-size: 1.65rem;
    font-weight: 900;
    margin-bottom: 12px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    background: linear-gradient(90deg, #FFD700 0%, #FFFFFF 20%, #FFD700 40%, #B8860B 60%, #FFD700 80%, #FFFFFF 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    animation: textFloat 3.2s ease-in-out infinite, textGlow 4s ease-in-out infinite, textShimmer 6s linear infinite;
}

@keyframes textFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-3.5px);
    }
}

@keyframes textGlow {

    0%,
    100% {
        filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.4)) drop-shadow(0 0 2px rgba(255, 60, 0, 0.2));
    }

    50% {
        filter: drop-shadow(0 0 16px rgba(255, 215, 0, 0.75)) drop-shadow(0 0 4px rgba(255, 60, 0, 0.45));
    }
}

@keyframes textShimmer {
    0% {
        background-position: 0% center;
    }

    100% {
        background-position: 200% center;
    }
}

.loader-percentage {
    font-family: var(--font-heading);
    color: var(--primary-color);
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.4);
    transition: transform 0.15s ease, text-shadow 0.15s ease;
    display: block;
}

.loader-percentage.updated {
    transform: scale(1.15);
    text-shadow: 0 0 15px var(--primary-color), 0 0 4px #fff;
}

@media (max-width: 480px) {
    .loader-logo-wrapper {
        width: 110px;
        height: 110px;
    }

    .loader-logo-img {
        width: 65px;
        height: 65px;
    }

    .loader-title {
        font-size: 1.15rem;
        letter-spacing: 0.18em;
        margin-bottom: 8px;
    }

    .loader-percentage {
        font-size: 0.95rem;
    }

    .loader-text-wrapper {
        bottom: 12%;
    }
}

@media (max-height: 600px) {
    .loader-text-wrapper {
        bottom: 5%;
    }

    .loader-logo-wrapper {
        width: 100px;
        height: 100px;
    }

    .loader-logo-img {
        width: 60px;
        height: 60px;
    }
}

/* --- Scroll Progress Bar --- */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--primary-gradient);
    z-index: 9999;
    width: 0%;
}

/* --- Glassmorphism Layout Elements --- */
.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 30px;
    transition: border 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
    border-color: var(--border-hover);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.05);
}

.catalog-layout-container aside .glass-card {
    transform: none !important;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.catalog-layout-container aside .glass-card:hover {
    transform: none !important;
    border-color: var(--border-hover);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

/* --- Dynamic Buttons --- */
.btn-premium {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
}

.btn-primary-gold {
    background: var(--button-color) !important;
    color: var(--button-text-color) !important;
    border: 1px solid var(--button-border-color) !important;
}

.btn-primary-gold:hover {
    background: var(--button-hover-color) !important;
    color: var(--button-hover-text-color) !important;
    border-color: var(--button-hover-color) !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.btn-outline-gold {
    background: transparent !important;
    color: var(--button-color) !important;
    border: 1.5px solid var(--button-border-color) !important;
}

.btn-outline-gold:hover {
    background: var(--button-hover-color) !important;
    color: var(--button-hover-text-color) !important;
    border-color: var(--button-hover-color) !important;
}

/* --- Floating Fireworks Canvas --- */
#fireworks-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

/* --- Luxury Header / Navigation --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9998;
    background: var(--bg-nav);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: none;
    /* Border moved to .nav-container so badge background covers it */
    transition: transform 0.3s ease, padding 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
    overflow: visible;
}

.site-header.scroll-down {
    transform: translateY(calc(-100% + var(--badge-hang)));
}

.site-header.scroll-up {
    transform: translateY(0);
}

/* Scrolled header state */
.site-header.header-scrolled {
    background: color-mix(in srgb, var(--bg-dark) 88%, transparent) !important;
    backdrop-filter: blur(24px) !important;
    -webkit-backdrop-filter: blur(24px) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.6), 0 0 25px rgba(255, 215, 0, 0.18);
}

/* --- CSS VARIABLES FOR PREMIUM HANGING SHIELD BADGE & HEADER OFFSET --- */
:root {
    --header-height: 94px;
    --badge-width: 102px;
    --badge-height: 136px;
    --badge-hang: -62px;
    /* 136px - 74px navbar bottom = 62px hanging */
    --badge-radius: 0 0 51px 51px;
    --nav-padding-y: 10px;
}

.site-header.header-scrolled {
    --badge-width: 90px;
    --badge-height: 120px;
    --badge-hang: -64px;
    /* 120px - 56px navbar bottom = 64px hanging */
    --badge-radius: 0 0 45px 45px;
    --nav-padding-y: 8px;
}

@media (max-width: 1024px) {
    :root {
        --header-height: 74px;
    }

    .site-header {
        --badge-width: 74px;
        --badge-height: 105px;
        --badge-hang: -31px;
        /* 105px - 74px navbar bottom = 31px hanging */
        --badge-radius: 0 0 37px 37px;
        --nav-padding-y: 8px;
    }

    .site-header.header-scrolled {
        --badge-width: 74px;
        --badge-height: 96px;
        --badge-hang: -40px;
        /* 96px - 56px navbar bottom = 40px hanging */
        --badge-radius: 0 0 37px 37px;
        --nav-padding-y: 8px;
    }

    .brand-logo {
        margin-left: 0;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }

    .site-header {
        --badge-width: 60px;
        --badge-height: 95px;
        --badge-hang: -21px;
        /* 95px - 74px = 21px hanging */
        --badge-radius: 0 0 30px 30px;
        --nav-padding-y: 8px;
    }

    .site-header.header-scrolled {
        --badge-width: 60px;
        --badge-height: 84px;
        --badge-hang: -28px;
        /* 84px - 56px = 28px hanging */
        --badge-radius: 0 0 30px 30px;
        --nav-padding-y: 8px;
    }

    .brand-logo {
        margin-left: 0;
        margin-right: auto;
    }
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--nav-padding-y) 24px;
    gap: 16px;
    /* Border is drawn entirely by SVG path, disable background gradient border */
    background-image: none !important;
    position: relative;
    overflow: visible;
    transition: padding 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.site-header.header-scrolled .nav-container {
    padding: var(--nav-padding-y) 24px;
    background-image: none !important;
}

/* ─── LEFT LOGO: Premium Hanging Shield Badge ─── */
.navbar-logo-premium-frame {
    position: relative;
    top: calc(-1 * var(--nav-padding-y));
    width: var(--badge-width);
    height: var(--badge-height);
    margin-bottom: var(--badge-hang);
    border-radius: var(--badge-radius);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    background: var(--bg-nav);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: none !important;
    /* Border is drawn by the SVG path */
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.5),
        0 4px 20px rgba(255, 215, 0, 0.15),
        inset 0 0 18px rgba(255, 215, 0, 0.06);
    transition: top 0.35s cubic-bezier(0.25, 0.8, 0.25, 1), transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    overflow: visible;
    flex-shrink: 0;
    z-index: 10;
    animation: badgeGlow 3s ease-in-out infinite;
}

.site-header.header-scrolled .navbar-logo-premium-frame {
    background: color-mix(in srgb, var(--bg-dark) 88%, transparent);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow:
        0 6px 22px rgba(0, 0, 0, 0.6),
        0 0 18px rgba(255, 215, 0, 0.22),
        inset 0 0 12px rgba(255, 215, 0, 0.1);
}

.brand-logo:hover .navbar-logo-premium-frame {
    transform: scale(1.03) translateY(2px);
    box-shadow:
        0 12px 35px rgba(0, 0, 0, 0.55),
        0 0 25px rgba(255, 215, 0, 0.3),
        inset 0 0 20px rgba(255, 215, 0, 0.12);
}

/* Logo content wrapper */
.navbar-logo-images-wrapper {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 4;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transform-origin: center center;
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.navbar-logo-float-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: logoFloat 5.5s ease-in-out infinite;
}

.navbar-logo-breathe-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: logoBreathe 4s ease-in-out infinite;
}

/* Logo image — responsive and aligned inside the frame */
.navbar-left-logo-img {
    image-rendering: -webkit-optimize-contrast;
    position: absolute;
    z-index: 2;
    transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.navbar-left-logo-img.logo-state-initial {
    width: 114px !important;
    height: 117px !important;
    object-fit: contain !important;
    top: 5px !important;
    left: -5px !important;
    transform: scale(1.15);
    transform-origin: center 73.4% !important;
    padding: 0 !important;
}

.navbar-left-logo-img.logo-state-scrolled {
    width: 92px !important;
    height: 92px !important;
    object-fit: contain !important;
    top: 15px !important;
    left: -1px !important;
    transform: scale(0.7);
    transform-origin: center center !important;
    opacity: 0;
    padding: 0 !important;
}

/* Hover effects */
.brand-logo:hover .navbar-left-logo-img {
    filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.35));
}

/* Waving Premium Cloth Flag Background */
.navbar-logo-flag-bg {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    overflow: hidden;
    z-index: 0;
    background: linear-gradient(135deg, #0d0d12 0%, #1a0f0f 35%, #0f121a 70%, #0d0d12 100%);
    pointer-events: none;
    will-change: transform;
    animation: flagBodyWave 10s ease-in-out infinite alternate;
}

.navbar-logo-flag-bg::before {
    content: '';
    position: absolute;
    inset: -50%;
    width: 200%;
    height: 200%;
    background: repeating-linear-gradient(45deg,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0) 8%,
            rgba(255, 255, 255, 0.04) 12%,
            rgba(255, 255, 255, 0) 16%,
            rgba(0, 0, 0, 0.12) 20%,
            rgba(0, 0, 0, 0) 24%,
            rgba(255, 255, 255, 0.02) 28%,
            rgba(255, 255, 255, 0) 32%,
            rgba(0, 0, 0, 0.08) 40%,
            rgba(0, 0, 0, 0) 48%);
    filter: blur(10px);
    opacity: 0.8;
    will-change: transform;
    animation: flagWaveMotion 12s ease-in-out infinite alternate;
    transform-origin: center center;
    mix-blend-mode: overlay;
}

.navbar-logo-flag-bg::after {
    content: '';
    position: absolute;
    inset: -50%;
    width: 200%;
    height: 200%;
    background: repeating-linear-gradient(-35deg,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.03) 6%,
            rgba(255, 255, 255, 0) 12%,
            rgba(0, 0, 0, 0.08) 18%,
            rgba(0, 0, 0, 0) 24%);
    filter: blur(12px);
    opacity: 0.7;
    will-change: transform;
    animation: flagWaveMotionSecondary 15s ease-in-out infinite alternate;
    transform-origin: center center;
    mix-blend-mode: overlay;
}

/* Gold ring background */
.navbar-logo-gold-ring {
    position: absolute;
    width: 99px !important;
    height: 99px !important;
    top: 43px !important;
    left: 3.5px !important;
    z-index: 1;
    pointer-events: none;
    animation: ringRotate 50s linear infinite;
    opacity: 0.65;
    transform-origin: center center;
    transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}

.site-header.header-scrolled .navbar-logo-gold-ring {
    width: 88px !important;
    height: 88px !important;
    top: 16px !important;
    left: 1px !important;
}

/* Fire particles container */
.navbar-logo-particles {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    overflow: hidden;
    border-radius: var(--badge-radius);
}

@keyframes logoFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-3px);
    }
}

@keyframes logoBreathe {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.02);
    }
}

@keyframes flagBodyWave {
    0% {
        transform: skewX(-1.5deg) skewY(-0.5deg) scale(1.02);
    }

    50% {
        transform: skewX(1.5deg) skewY(0.5deg) scale(1.0);
    }

    100% {
        transform: skewX(-0.5deg) skewY(-1deg) scale(1.02);
    }
}

@keyframes flagWaveMotion {
    0% {
        transform: translate(-3%, -3%) scale(1.02) rotate(0deg);
    }

    50% {
        transform: translate(3%, 1%) scale(1.06) rotate(1deg);
    }

    100% {
        transform: translate(-1%, 3%) scale(1.02) rotate(-0.5deg);
    }
}

@keyframes flagWaveMotionSecondary {
    0% {
        transform: translate(2%, 3%) scale(1.06) rotate(0deg);
    }

    50% {
        transform: translate(-2%, -1%) scale(1.02) rotate(-1deg);
    }

    100% {
        transform: translate(1%, -2%) scale(1.06) rotate(0.5deg);
    }
}

@keyframes ringRotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Rotating spark border — uses conic-gradient masked to badge outline */
.navbar-logo-spark-effect {
    position: absolute;
    inset: -2px;
    border-radius: var(--badge-radius);
    padding: 2px;
    background: conic-gradient(from 0deg,
            transparent 0%,
            rgba(255, 215, 0, 0.9) 12%,
            rgba(255, 200, 50, 1) 18%,
            transparent 28%,
            transparent 48%,
            rgba(255, 90, 0, 0.9) 60%,
            rgba(255, 140, 0, 1) 66%,
            transparent 76%,
            transparent 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: sparkRotate 4s linear infinite;
    opacity: 0.8;
    pointer-events: none;
    z-index: 1;
    transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.brand-logo:hover .navbar-logo-spark-effect {
    opacity: 1;
    animation-duration: 2s;
}

@keyframes sparkRotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* badgeGlow pulses border-color + glow — synchronized with the navbar bottom border animation */
@keyframes badgeGlow {

    0%,
    100% {
        border-color: rgba(255, 215, 0, 0.35);
        box-shadow:
            0 10px 30px rgba(0, 0, 0, 0.5),
            0 4px 20px rgba(255, 215, 0, 0.12),
            inset 0 0 18px rgba(255, 215, 0, 0.06);
    }

    50% {
        border-color: rgba(255, 175, 0, 0.75);
        box-shadow:
            0 10px 35px rgba(0, 0, 0, 0.55),
            0 0 22px rgba(255, 140, 0, 0.28),
            0 0 8px rgba(255, 215, 0, 0.18),
            inset 0 0 22px rgba(255, 215, 0, 0.12);
    }
}


/* ─── RIGHT LOGO: Decorative right-side logo ─── */
.navbar-right-logo-wrapper {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    position: relative;
    padding-left: 10px;
}

.navbar-right-usual-logo {
    height: 48px;
    width: auto;
    object-fit: contain;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    filter: drop-shadow(0 0 4px rgba(255, 215, 0, 0.2));
    animation: usualLogoFloat 4s ease-in-out infinite;
    transition: transform 0.35s ease, filter 0.35s ease;
}

.site-header.header-scrolled .navbar-right-usual-logo {
    height: 38px;
}

.navbar-right-logo-wrapper:hover .navbar-right-usual-logo {
    transform: translateY(-2px) scale(1.04);
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.5)) drop-shadow(0 0 2px rgba(255, 60, 0, 0.3));
}

@keyframes usualLogoFloat {

    0%,
    100% {
        transform: translateY(0px);
        filter: drop-shadow(0 0 4px rgba(255, 215, 0, 0.2));
    }

    50% {
        transform: translateY(-3px);
        filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.35));
    }
}

.navbar-mobile-usual-logo {
    display: none !important;
}

.drawer-logo-item {
    display: none !important;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    margin-left: -8px;
}

.logo-img {
    height: 40px;
    width: 40px;
    object-fit: contain;
    transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.site-header.header-scrolled .logo-img {
    transform: scale(0.9);
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 0.05em;
    line-height: 1;
    white-space: nowrap;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
    transition: gap 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.site-header.header-scrolled .nav-menu {
    gap: 20px;
}

.nav-link {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-main);
    text-decoration: none;
    position: relative;
    padding: 8px 0;
    display: inline-block;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0%;
    height: 3px;
    background: var(--primary-gradient);
    transition: width 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.6);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link.active {
    text-shadow: 0 0 12px rgba(255, 215, 0, 0.5);
}

/* --- Dropdown Submenus --- */
.nav-menu li {
    position: relative;
}

.nav-menu .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: var(--bg-nav);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px 0;
    min-width: 200px;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 9999;
}

.nav-menu li:hover>.dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.nav-menu .dropdown-menu li {
    width: 100%;
}

.nav-menu .dropdown-menu a {
    display: block;
    padding: 8px 20px;
    color: var(--text-muted);
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
    text-align: center;
}

.nav-menu .dropdown-menu a:hover {
    color: var(--primary-color);
    background: rgba(255, 255, 255, 0.05);
}

.nav-cart-item {
    display: flex;
    align-items: center;
}

.premium-quote-basket {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 40px;
    height: 40px;
    background: color-mix(in srgb, var(--bg-dark) 75%, transparent) !important;
    border: 1.5px solid color-mix(in srgb, var(--primary-color) 30%, transparent) !important;
    border-radius: 50%;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4), 0 0 10px color-mix(in srgb, var(--primary-color) 15%, transparent);
    color: var(--primary-color) !important;
    font-size: 1.25rem;
    align-self: center;
    margin-left: 10px;
    cursor: pointer;
}

.premium-quote-basket:hover {
    background: rgba(15, 15, 22, 0.85) !important;
    border-color: var(--primary-color) !important;
    transform: translateY(-2px) scale(1.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), 0 0 18px color-mix(in srgb, var(--primary-color) 40%, transparent);
    color: var(--primary-color) !important;
}

.premium-quote-basket:active {
    transform: translateY(-0.5px) scale(0.95);
}

.premium-quote-basket::after {
    display: none !important;
}

/* Floating badge with gold gradient background and dark text */
.basket-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--primary-gradient) !important;
    color: var(--button-text-color) !important;
    font-size: 0.65rem;
    font-weight: 900;
    padding: 1px 5px;
    border-radius: 10px;
    min-width: 17px;
    height: 17px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid #07070A;
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.4);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Badge Pulse keyframes */
@keyframes badgePulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.35);
        box-shadow: 0 0 20px var(--primary-color);
    }

    100% {
        transform: scale(1);
    }
}

.pulse-animation {
    animation: badgePulse 0.45s ease-out;
}

/* Mega Menu Styles */
.has-mega-menu {
    position: relative;
}

.mega-menu-panel {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    width: 700px;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 1000;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.has-mega-menu:hover .mega-menu-panel {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(5px);
}

.mega-menu-col h4 {
    color: var(--primary-color);
    font-size: 0.9rem;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.mega-menu-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mega-menu-col a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.mega-menu-col a:hover {
    color: var(--text-main);
}

/* Mobile Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--menu-text-color, var(--primary-color, #ffffff));
    font-size: 1.8rem;
    cursor: pointer;
    z-index: 1001;
    transition: color 0.3s ease;
    align-items: center;
    justify-content: center;
}

.mobile-menu-toggle:hover {
    color: var(--secondary-color, #ff8a00);
}

@media (max-width: 1024px) {
    .nav-menu {
        display: none;
        /* Mobile Drawer overrides in main.js */
    }

    .mobile-menu-toggle {
        display: flex;
    }
}

/* --- Hero Section --- */
.hero-wrapper {
    position: relative;
    width: 100%;
    margin-top: var(--header-height);
    height: auto;
    aspect-ratio: 1920 / 850;
    max-height: calc(100vh - var(--header-height));
    min-height: 480px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 768px) {
    .hero-wrapper {
        aspect-ratio: unset;
        min-height: 520px;
        height: auto;
        margin-top: var(--header-height, 70px);
        align-items: flex-start;
        justify-content: center;
    }
}

.hero-bg-media {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    display: none !important;
    background: transparent !important;
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
    text-align: center;
    padding: 24px;
}

.hero-subtitle {
    font-family: var(--font-heading);
    color: var(--primary-color);
    text-transform: uppercase;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.3em;
    margin-bottom: 15px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.hero-title span {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    color: var(--text-muted);
    font-size: clamp(1rem, 2vw, 1.25rem);
    margin-bottom: 40px;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

.hero-ctas {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* --- Homepage Layout Sections --- */
.section-padding {
    padding: 100px 24px;
}

@media (max-width: 768px) {
    .section-padding {
        padding: 60px 16px;
    }
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-pretitle {
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 10px;
    display: block;
}

.section-title {
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 800;
}

/* Grid Layouts */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

@media (max-width: 1024px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

/* Why Choose Us Icons & Cards */
.icon-container {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: color-mix(in srgb, var(--primary-color) 10%, transparent);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
}

.icon-container svg {
    width: 28px;
    height: 28px;
    stroke-width: 1.5;
}

/* --- Netflix Style Showcase --- */
.showcase-slider {
    position: relative;
    overflow: hidden;
    padding: 20px 0;
}

.showcase-track {
    display: flex;
    gap: 20px;
    transition: transform 0.5s ease;
}

/* Netflix Product Card */
.showcase-track .product-card {
    min-width: 280px;
    width: 280px;
}

.product-card {
    height: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), border-color 0.3s;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--primary-color);
    box-shadow: 0 15px 35px rgba(255, 215, 0, 0.08);
}

.prod-image-wrapper {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.2);
    padding: 10px;
    box-sizing: border-box;
}

.prod-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.product-card:hover .prod-image {
    transform: scale(1.08);
}

.prod-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--primary-gradient);
    color: var(--button-text-color);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    z-index: 5;
}

.prod-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.prod-category {
    color: var(--primary-color);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 6px;
}

.prod-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-main);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.7rem;
    /* 2 lines of text */
}

.prod-price-moq {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.prod-price {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary-color);
}

.prod-price del {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-right: 5px;
}

.prod-moq {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.prod-demo-video-wrap {
    margin-top: auto;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.btn-demo-video {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: rgba(255, 0, 0, 0.1);
    border: 1px solid rgba(255, 0, 0, 0.3);
    color: #ff5555;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    width: 100%;
    text-decoration: none;
    box-sizing: border-box;
}

.btn-demo-video:hover {
    background: rgba(255, 0, 0, 0.22);
    border-color: #ff3333;
    color: #ffffff;
    box-shadow: 0 0 12px rgba(255, 0, 0, 0.25);
}

.card-overlay-actions {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: color-mix(in srgb, var(--bg-dark) 85%, transparent);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 12px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 10;
    padding: 20px;
}

.product-card:hover .card-overlay-actions {
    opacity: 1;
    visibility: visible;
}

/* --- Factory Tour & Timeline --- */
.video-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 16/9;
    border: 1px solid var(--border-color);
}

.video-cover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--primary-gradient);
    border: none;
    color: var(--button-text-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.4);
    transition: all 0.3s;
}

.video-play-btn:hover {
    transform: translate(-50%, -50%) scale(1.1);
}

/* Interactive Timeline — Homepage factory section only (scoped to .timeline-flow) */
.timeline-flow {
    position: relative;
    padding: 40px 0;
}

.timeline-flow::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: var(--border-color);
}

.timeline-flow .timeline-item {
    position: relative;
    margin-bottom: 50px;
    width: 50%;
    padding: 0 40px;
    display: block;
}

.timeline-flow .timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
}

.timeline-flow .timeline-item:nth-child(even) {
    left: 50%;
    text-align: left;
}

.timeline-flow .timeline-item::after {
    content: '';
    position: absolute;
    top: 6px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--primary-color);
    border: 3px solid var(--bg-dark);
    z-index: 2;
}

.timeline-flow .timeline-item:nth-child(odd)::after {
    right: -8px;
}

.timeline-flow .timeline-item:nth-child(even)::after {
    left: -8px;
}

.timeline-year {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 8px;
}

@media (max-width: 768px) {
    .timeline-flow::before {
        left: 20px;
    }

    .timeline-flow .timeline-item {
        width: 100%;
        padding-left: 40px;
        padding-right: 0;
        text-align: left;
    }

    .timeline-flow .timeline-item::after {
        left: 12px;
    }
}

/* --- Interactive India Map --- */
.map-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
}

@media (max-width: 1024px) {
    .map-layout {
        grid-template-columns: 1fr;
    }
}

.india-svg-container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.india-svg path {
    fill: rgba(255, 255, 255, 0.05);
    stroke: color-mix(in srgb, var(--primary-color) 20%, transparent);
    stroke-width: 1.2;
    transition: all 0.3s;
    cursor: pointer;
}

.india-svg path:hover,
.india-svg path.active {
    fill: color-mix(in srgb, var(--primary-color) 20%, transparent);
    stroke: var(--primary-color);
}

.state-info-panel {
    background: color-mix(in srgb, var(--bg-card) 90%, #000);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
}

/* --- Floating Actions & Leads --- */
.floating-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 9997;
}

.float-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    border: none;
}

.float-btn:hover {
    transform: translateY(-5px) scale(1.05);
}

.float-whatsapp {
    background: #25D366;
}

.float-call {
    background: #0070f3;
}

.float-enquiry {
    background: var(--primary-gradient);
    color: var(--button-text-color) !important;
}

.badge-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--danger);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg-dark);
}

/* --- Modals & Popups --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: color-mix(in srgb, var(--bg-dark) 85%, transparent);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 99990;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content-wrapper {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    max-width: 600px;
    width: 100%;
    position: relative;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.modal-overlay.active .modal-content-wrapper {
    transform: scale(1);
}

.modal-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.2s;
}

.modal-close-btn:hover {
    color: var(--text-main);
}

/* Quick View Split */
.quick-view-split {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 30px;
}

@media (max-width: 768px) {
    .quick-view-split {
        grid-template-columns: 1fr;
    }
}

/* --- Multilingual Chatbot --- */
.chatbot-widget-container {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 380px;
    height: 500px;
    background: var(--bg-card);
    border: 1.5px solid var(--border-color);
    border-radius: 16px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.chatbot-widget-container.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1) translateY(0);
}

.chatbot-header {
    background: var(--primary-gradient);
    color: var(--button-text-color);
    padding: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chatbot-header h3 {
    font-size: 1.05rem;
    font-weight: 700;
}

.chatbot-body {
    flex: 1 1 auto;
    min-height: 0;
    padding: 16px;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    display: flex;
    flex-direction: column;
    gap: 12px;
    scrollbar-width: thin;
    scrollbar-color: #d4af37 rgba(0, 0, 0, 0.1);
}

.chatbot-body::-webkit-scrollbar {
    width: 5px;
}

.chatbot-body::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 4px;
}

.chatbot-body::-webkit-scrollbar-thumb {
    background: #d4af37;
    border-radius: 4px;
}

.chat-msg {
    max-width: 92%;
    padding: 12px 14px;
    border-radius: 14px;
    font-size: 0.9rem;
    line-height: 1.45;
    word-break: break-word;
    margin-bottom: 2px;
}

.chat-msg.bot {
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    color: #111827;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.chat-msg.user {
    background: var(--primary-gradient);
    color: #ffffff;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
    font-weight: 500;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* Chatbot Product List & Action Buttons */
.chatbot-product-list {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.chatbot-product-row {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 8px 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.chatbot-product-title {
    font-weight: 600;
    font-size: 0.84rem;
    color: #0f172a;
    line-height: 1.3;
}

.chatbot-product-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.chatbot-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 5px 10px;
    font-size: 0.72rem;
    font-weight: 600;
    border-radius: 5px;
    text-decoration: none !important;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    line-height: 1;
}

.chatbot-btn-view {
    background: linear-gradient(135deg, #d4af37 0%, #aa820a 100%);
    color: #000000 !important;
}

.chatbot-btn-view:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

.chatbot-btn-video {
    background: #e60000;
    color: #ffffff !important;
}

.chatbot-btn-video:hover {
    background: #cc0000;
    transform: translateY(-1px);
}

.chatbot-footer {
    padding: 12px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    display: flex;
    gap: 8px;
}

.chatbot-input {
    flex-grow: 1;
    background: #f4f5f7;
    border: 1px solid var(--border-color);
    color: #000000 !important;
    caret-color: #000000 !important;
    padding: 10px 14px;
    border-radius: 20px;
    outline: none;
    font-size: 0.9rem;
}

.chatbot-input::placeholder {
    color: #666666 !important;
    opacity: 1 !important;
}

.chatbot-send-btn {
    background: var(--primary-gradient);
    border: none;
    color: var(--button-text-color);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* Language Selection Header */
.chat-lang-bar {
    display: flex;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(0, 0, 0, 0.15);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.lang-btn {
    font-size: 0.75rem;
    padding: 3px 8px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
}

.lang-btn.active {
    background: var(--primary-gradient);
    color: var(--button-text-color);
    border-color: transparent;
}

/* Forms styling */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.form-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px;
    color: #fff;
    outline: none;
    transition: border-color 0.2s;
}

.form-input:focus {
    border-color: var(--primary-color);
}

/* --- Premium Footer Redesign --- */
.premium-footer {
    background: var(--bg-dark);
    position: relative;
    z-index: 10;
    padding: 80px 24px 40px 24px;
    border-top: 3px solid transparent;
    border-image: linear-gradient(to right, var(--secondary-color), var(--primary-color), var(--secondary-color)) 1;
    overflow: hidden;
}

/* Firework Glow Effect in Footer Background */
.premium-footer::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 140%;
    height: 140%;
    background: radial-gradient(circle, color-mix(in srgb, var(--primary-color) 3%, transparent) 0%, transparent 60%);
    pointer-events: none;
    z-index: -1;
}

.footer-grid {
    max-width: 1300px;
    margin: 0 auto 60px auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 640px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

.footer-section-title {
    color: var(--primary-color);
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    position: relative;
}

.footer-section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 35px;
    height: 2px;
    background: var(--primary-gradient);
    box-shadow: 0 0 5px var(--primary-color);
}

.footer-links-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0;
}

.footer-links-list a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.footer-links-list a:hover {
    color: var(--primary-color);
    padding-left: 5px;
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.4);
}

/* Premium Call CTA Block */
.footer-call-cta {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--primary-gradient);
    color: var(--button-text-color) !important;
    text-decoration: none;
    padding: 12px 26px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.95rem;
    border: 1.5px solid rgba(7, 7, 10, 0.85);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.2);
    transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    margin-top: 10px;
    cursor: pointer;
}

.footer-call-cta i {
    font-size: 1.15rem;
    color: var(--button-text-color);
}

/* Shine Sweep effect */
.footer-call-cta::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 30%;
    height: 200%;
    background: linear-gradient(to right,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.5) 50%,
            rgba(255, 255, 255, 0) 100%);
    transform: rotate(25deg);
    transition: all 0.75s ease;
    pointer-events: none;
}

.footer-call-cta:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px color-mix(in srgb, var(--primary-color) 45%, transparent);
    color: var(--button-text-color) !important;
}

.footer-call-cta:hover::after {
    left: 130%;
}

/* Newsletter Styles */
.footer-newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 15px;
}

.footer-newsletter-input-group {
    display: flex;
    gap: 8px;
}

.footer-newsletter-input {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 215, 0, 0.2);
    color: #fff;
    padding: 10px 14px;
    border-radius: 8px;
    width: 100%;
    outline: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.footer-newsletter-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.2);
}

.footer-newsletter-submit {
    background: var(--primary-gradient);
    border: none;
    color: var(--button-text-color);
    width: 42px;
    height: 42px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.footer-newsletter-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
}

/* Social Icons */
.footer-social-links {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.footer-social-links a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 215, 0, 0.15);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.footer-social-links a:hover {
    background: var(--primary-gradient);
    color: var(--button-text-color);
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(255, 215, 0, 0.3);
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 30px;
    text-align: center;
    position: relative;
}

.footer-bottom-text {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ==========================================
   8. Complete Premium Responsive Styles
   ========================================== */

/* Zero Overflow & Break Words */
html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

p,
span,
h1,
h2,
h3,
h4,
h5,
h6,
a,
li,
td,
th {
    overflow-wrap: break-word;
    word-break: break-word;
}

/* Responsive Table Wrapper */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 20px;
}

.table-responsive table {
    width: 100%;
    min-width: 600px;
}

.table-responsive th,
.table-responsive td {
    white-space: nowrap !important;
}

/* Product Catalog Sidebar Grid Layout */
.catalog-layout-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
}

/* Tablet / Landscape Mobile Viewports (< 1024px) */
@media (max-width: 1024px) {

    /* Sticky header fixes */
    .site-header.scroll-down {
        transform: translateY(0) !important;
    }

    .site-header {
        --badge-width: 84px;
        --badge-height: 112px;
        --badge-hang: -34px;
        --badge-radius: 0 0 42px 42px;
        --nav-padding-y: 12px;
        border-bottom: 1.5px solid rgba(212, 175, 55, 0.2) !important;
    }

    .site-header.header-scrolled {
        --badge-width: 72px;
        --badge-height: 96px;
        --badge-hang: -40px;
        --badge-radius: 0 0 36px 36px;
        --nav-padding-y: 8px;
        border-bottom: 1.5px solid rgba(212, 175, 55, 0.4) !important;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6), 0 0 15px rgba(255, 215, 0, 0.15) !important;
    }

    /* Unscrolled badge sub-elements */
    .navbar-left-logo-img.logo-state-initial {
        width: 94px !important;
        height: 96px !important;
        top: 4px !important;
        left: -4px !important;
        transform: scale(1.15) !important;
        transform-origin: center 73.4% !important;
    }

    .navbar-logo-gold-ring {
        width: 82px !important;
        height: 82px !important;
        top: 35px !important;
        left: 3px !important;
    }

    /* Scrolled badge sub-elements */
    .site-header.header-scrolled .navbar-left-logo-img.logo-state-scrolled {
        width: 65px !important;
        height: 65px !important;
        top: 12px !important;
        left: -1px !important;
        transform: scale(0.7) !important;
        transform-origin: center center !important;
    }

    .site-header.header-scrolled .navbar-logo-gold-ring {
        width: 62px !important;
        height: 62px !important;
        top: 12px !important;
        left: 1px !important;
    }

    /* Transitions and Visibility for logo/hamburger (Issue 2 & 3) */
    .navbar-right-logo-wrapper,
    .mobile-menu-toggle {
        transition: opacity 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), visibility 0.4s ease !important;
    }

    .site-header:not(.header-scrolled) .navbar-right-logo-wrapper {
        display: flex !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: translateX(0) !important;
        pointer-events: all !important;
    }

    .site-header:not(.header-scrolled) .mobile-menu-toggle {
        display: flex !important;
        opacity: 0 !important;
        visibility: hidden !important;
        transform: translateY(-50%) scale(0.8) !important;
        pointer-events: none !important;
    }

    .site-header.header-scrolled .navbar-right-logo-wrapper {
        opacity: 0 !important;
        visibility: hidden !important;
        transform: translateX(20px) !important;
        pointer-events: none !important;
    }

    .site-header.header-scrolled .mobile-menu-toggle {
        display: flex !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: translateY(-50%) scale(1) !important;
        pointer-events: all !important;
    }

    /* Align logos inline */
    .brand-logo {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        height: 100% !important;
    }

    .logo-text {
        opacity: 0 !important;
        visibility: hidden !important;
        max-width: 0 !important;
        margin-left: 0 !important;
        overflow: hidden !important;
        display: block !important;
        transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    }

    .site-header.header-scrolled .logo-text {
        opacity: 1 !important;
        visibility: visible !important;
        max-width: 320px !important;
        margin-left: 12px !important;
    }

    /* Premium Slide-in Drawer (Issue 5 & 6 & 7) */
    .nav-menu {
        display: flex !important;
        flex-direction: column !important;
        position: fixed !important;
        top: 0 !important;
        right: 0 !important;
        width: 320px !important;
        height: 100vh !important;
        background: rgba(255, 248, 217, 0.96) !important;
        backdrop-filter: blur(20px) !important;
        -webkit-backdrop-filter: blur(20px) !important;
        box-shadow: -10px 0 45px rgba(0, 0, 0, 0.25), -1px 0 0 rgba(212, 175, 55, 0.4) !important;
        border-left: 3px solid rgba(212, 175, 55, 0.6) !important;
        border-top-left-radius: 30px !important;
        border-bottom-left-radius: 30px !important;
        padding: 40px 30px 40px 30px !important;
        gap: 0 !important;
        z-index: 9999 !important;
        transform: translateX(105%) !important;
        transition: transform 0.45s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
        list-style: none !important;
        border-bottom: none !important;
    }

    .nav-menu.open {
        transform: translateX(0) !important;
    }

    .nav-menu li {
        width: 100% !important;
        opacity: 0;
        transform: translateX(25px);
        transition: opacity 0.45s cubic-bezier(0.25, 0.8, 0.25, 1), transform 0.45s cubic-bezier(0.25, 0.8, 0.25, 1);
    }

    .nav-menu.open li {
        opacity: 1;
        transform: translateX(0);
    }

    .nav-menu.open li:nth-child(1) {
        transition-delay: 0.05s;
    }

    .nav-menu.open li:nth-child(2) {
        transition-delay: 0.1s;
    }

    .nav-menu.open li:nth-child(3) {
        transition-delay: 0.15s;
    }

    .nav-menu.open li:nth-child(4) {
        transition-delay: 0.2s;
    }

    .nav-menu.open li:nth-child(5) {
        transition-delay: 0.25s;
    }

    .nav-menu.open li:nth-child(6) {
        transition-delay: 0.3s;
    }

    .nav-menu.open li:nth-child(7) {
        transition-delay: 0.35s;
    }

    .nav-menu.open li:nth-child(8) {
        transition-delay: 0.4s;
    }

    .nav-menu.open li:nth-child(9) {
        transition-delay: 0.45s;
    }

    .nav-menu.open li:nth-child(10) {
        transition-delay: 0.5s;
    }

    .nav-menu.open li:nth-child(11) {
        transition-delay: 0.55s;
    }

    .nav-menu.open li:nth-child(12) {
        transition-delay: 0.6s;
    }

    .drawer-logo-item {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        width: 100% !important;
        padding-bottom: 25px !important;
        margin-bottom: 20px !important;
        border-bottom: 1.5px solid rgba(212, 175, 55, 0.3) !important;
    }

    .drawer-usual-logo {
        height: 48px !important;
        width: auto !important;
        object-fit: contain !important;
        filter: drop-shadow(0 2px 5px rgba(212, 175, 55, 0.25)) !important;
    }

    .nav-menu .nav-link {
        font-family: var(--font-heading) !important;
        font-size: 1.2rem !important;
        font-weight: 700 !important;
        letter-spacing: 0.05em !important;
        color: var(--navbar-text) !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 12px 0 !important;
        border-bottom: 1px solid var(--border-color) !important;
        transition: color 0.3s ease, padding-left 0.3s ease !important;
        background: transparent !important;
    }

    .nav-menu .nav-link:hover,
    .nav-menu .nav-link.active {
        color: var(--navbar-hover) !important;
        padding-left: 10px !important;
    }

    /* Cart and Wishlist links in Drawer */
    .nav-menu .nav-cart-item {
        margin-top: 20px !important;
        border-top: 1.5px solid var(--border-color) !important;
        padding-top: 20px !important;
        justify-content: center !important;
        gap: 20px !important;
        display: flex !important;
    }

    .nav-menu .nav-cart-item a {
        background: color-mix(in srgb, var(--primary-color) 10%, transparent) !important;
        border: 1.5px solid var(--border-color) !important;
        width: 52px !important;
        height: 52px !important;
        border-radius: 50% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        position: relative !important;
        color: var(--navbar-text) !important;
        transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    }

    .nav-menu .nav-cart-item a:hover {
        background: color-mix(in srgb, var(--primary-color) 25%, transparent) !important;
        border-color: var(--primary-color) !important;
        transform: translateY(-3px) !important;
        box-shadow: 0 4px 12px color-mix(in srgb, var(--primary-color) 20%, transparent) !important;
    }

    .nav-menu .nav-cart-item a i {
        font-size: 1.3rem !important;
    }

    .nav-menu .nav-cart-item a .cart-badge {
        background: var(--primary-color) !important;
        color: var(--button-text-color) !important;
        border: 1.5px solid var(--border-color) !important;
    }

    .catalog-layout-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    aside {
        position: relative !important;
        top: 0 !important;
    }

    .grid-4,
    .grid-3 {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* Hamburger menu toggle button style */
    .mobile-menu-toggle {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: rgba(255, 255, 255, 0.05) !important;
        border: 1.5px solid var(--border-color) !important;
        color: var(--navbar-text) !important;
        width: 44px !important;
        height: 44px !important;
        border-radius: 50% !important;
        cursor: pointer !important;
        z-index: 10000 !important;
        transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
        position: absolute !important;
        right: 16px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
    }

    .mobile-menu-toggle:hover {
        background: color-mix(in srgb, var(--primary-color) 15%, transparent) !important;
        border-color: var(--primary-color) !important;
        transform: translateY(-50%) scale(1.05) !important;
    }

    .mobile-menu-toggle i {
        font-size: 1.4rem !important;
        color: var(--navbar-text) !important;
        transition: transform 0.3s ease !important;
    }

    .mobile-menu-toggle.active {
        background: var(--bg-dark) !important;
        border-color: var(--primary-color) !important;
        transform: translateY(-50%) rotate(90deg) !important;
    }

    .mobile-menu-toggle.active i {
        color: var(--primary-color) !important;
    }
}

/* Mobile & Small Tablet Viewports (< 768px) */
@media (max-width: 768px) {
    .site-header {
        --badge-width: 70px;
        --badge-height: 93px;
        --badge-hang: -19px;
        --badge-radius: 0 0 35px 35px;
        --nav-padding-y: 10px;
    }

    .logo-text {
        font-size: 1.05rem !important;
    }

    .site-header.header-scrolled {
        --badge-width: 58px;
        --badge-height: 78px;
        --badge-hang: -22px;
        --badge-radius: 0 0 29px 29px;
        --nav-padding-y: 8px;
    }

    /* Unscrolled badge sub-elements */
    .navbar-left-logo-img.logo-state-initial {
        width: 78px !important;
        height: 80px !important;
        top: 3px !important;
        left: -3px !important;
        transform: scale(1.15) !important;
        transform-origin: center 73.4% !important;
    }

    .navbar-logo-gold-ring {
        width: 68px !important;
        height: 68px !important;
        top: 29px !important;
        left: 2px !important;
    }

    /* Scrolled badge sub-elements */
    .site-header.header-scrolled .navbar-left-logo-img.logo-state-scrolled {
        width: 52px !important;
        height: 52px !important;
        top: 10px !important;
        left: -1px !important;
        transform: scale(0.7) !important;
        transform-origin: center center !important;
    }

    .site-header.header-scrolled .navbar-logo-gold-ring {
        width: 50px !important;
        height: 50px !important;
        top: 10px !important;
        left: 1px !important;
    }

    /* Nav container tighter padding on mobile */
    .nav-container {
        padding: 8px 16px !important;
        gap: 10px;
    }

    /* Touch Target Optimizations */
    input,
    select,
    textarea,
    button,
    .btn-premium,
    .nav-link,
    .float-btn,
    .footer-newsletter-submit {
        min-height: 44px;
        padding-top: 10px !important;
        padding-bottom: 10px !important;
    }

    .form-group {
        margin-bottom: 20px;
    }

    /* Floating Buttons Spacing & Overlap Fixes */
    .floating-container {
        bottom: 20px !important;
        right: 20px !important;
        gap: 12px !important;
        z-index: 9998;
    }

    .float-btn {
        width: 48px !important;
        height: 48px !important;
    }

    .float-btn i {
        font-size: 1.4rem !important;
    }

    /* Footer bottom padding to clear floating buttons */
    footer,
    .footer-section {
        padding-bottom: 90px !important;
    }

    /* Grid system layout stacking — grid-4 keeps 2 cols on mobile for product browsing */
    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .grid-4 {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 16px !important;
    }

    /* Hero title resizing to avoid cropping */
    .hero-title {
        font-size: clamp(1.8rem, 7vw, 2.8rem) !important;
        line-height: 1.2 !important;
    }

    /* Centered alignments */
    .brand-logo {
        margin-right: auto;
    }

    /* Quote basket table — prevent quantity input from inheriting mobile min-height */
    #cartTableContainer input[type="number"] {
        min-height: unset !important;
        padding: 4px 6px !important;
        height: 36px;
        width: 70px;
    }

    /* Quote table scroll container */
    #cartTableContainer {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* Very Small Mobile — tighten glass-card padding so table doesn't overflow */
@media (max-width: 480px) {
    .glass-card {
        padding: 16px !important;
    }

    /* Quote table on tiny screens — ensure horizontal scroll works */
    #cartTableContainer table {
        min-width: 440px;
    }

    #cartTableContainer td,
    #cartTableContainer th {
        padding: 8px 5px !important;
        font-size: 0.8rem !important;
    }

    /* Hide product image in quote table on tiny screens to save column width */
    #cartTableContainer .cart-item-img {
        display: none !important;
    }
}

/* Logo placeholder in product cards — contain instead of cover */
.prod-image.is-placeholder {
    object-fit: contain !important;
    padding: 15% !important;
    background: rgba(255, 215, 0, 0.03);
}

/* Very Small Mobile Viewports (< 375px) */
@media (max-width: 375px) {
    .brand-logo .logo-text {
        font-size: 0.85rem !important;
    }

    .hero-title {
        font-size: 1.7rem !important;
    }

    .section-title {
        font-size: 1.8rem !important;
    }
}

/* Admin Dashboard Table and Sidebar Responsiveness */
.admin-table-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 768px) {
    .sidebar {
        width: 100% !important;
        height: auto !important;
        position: relative !important;
    }

    .main-content {
        margin-left: 0 !important;
        padding: 15px !important;
    }

    .admin-grid {
        grid-template-columns: 1fr !important;
    }
}

/* --- Mobile Table Fix --- */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* --- Showcase Logo Transformation Classes --- */
.logo-state-initial {
    position: relative;
    z-index: 2;
    opacity: 1;
    transform: scale(1);
}

.logo-state-scrolled {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    opacity: 0;
    transform: scale(0.8);
}

/* ==========================================
   Phase 5 — Premium Product Experience CSS
   ========================================== */

/* Card Actions Top Right (Wishlist / Compare) */
.card-actions-top-right {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 15;
}

.wishlist-toggle-btn,
.compare-toggle-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(7, 7, 10, 0.8) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--primary-color) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    font-size: 1.1rem;
    padding: 0 !important;
}

.wishlist-toggle-btn:hover,
.compare-toggle-btn:hover {
    background: var(--primary-gradient) !important;
    color: var(--button-text-color) !important;
    border-color: var(--primary-color) !important;
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 4px 12px color-mix(in srgb, var(--primary-color) 25%, transparent);
}

.wishlist-toggle-btn.active,
.compare-toggle-btn.active {
    background: var(--primary-gradient) !important;
    color: var(--button-text-color) !important;
    border-color: var(--primary-color) !important;
}

.wishlist-toggle-btn.active i {
    font-weight: bold;
}

/* Card Glare Overlay */
.card-glare {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle at 0px 0px, rgba(255, 215, 0, 0.15) 0%, transparent 60%);
    z-index: 12;
    border-radius: 12px;
    opacity: 0;
    transition: opacity 0.3s;
}

/* Floating Bottom Compare Bar */
.floating-compare-bar {
    position: fixed;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%) translateY(120px);
    width: 90%;
    max-width: 750px;
    background: var(--bg-card);
    border: 1.5px solid var(--primary-color);
    border-radius: 20px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.6), 0 0 20px rgba(255, 215, 0, 0.15);
    padding: 15px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    z-index: 9998;
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.floating-compare-bar.active {
    transform: translateX(-50%) translateY(0);
}

.compare-items-list {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.compare-bar-item {
    position: relative;
    width: 46px;
    height: 46px;
    border-radius: 10px;
    overflow: hidden;
    border: 1.5px solid var(--border-color);
    background: rgba(0, 0, 0, 0.3);
}

.compare-bar-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.compare-bar-remove {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--danger);
    color: #fff;
    font-size: 0.65rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 1px solid #000;
}

.compare-bar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.floating-compare-bar {
    color: var(--text-main) !important;
}

.floating-compare-bar .btn-outline-gold {
    color: var(--text-main) !important;
    border-color: var(--border-color) !important;
}

.floating-compare-bar .btn-outline-gold:hover {
    color: var(--button-hover-text-color) !important;
    background: var(--button-hover-color) !important;
}

/* Compare Page Table Layout */
.compare-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    color: var(--text-main);
}

.compare-table th,
.compare-table td {
    padding: 18px;
    border-bottom: 1px solid var(--border-color);
    text-align: center;
}

.compare-table th {
    background: var(--bg-card);
    font-family: var(--font-heading);
    color: var(--text-main);
    font-weight: 700;
    font-size: 1.05rem;
}

.compare-table th:first-child,
.compare-table td:first-child {
    font-weight: 700;
    color: var(--text-main) !important;
    text-align: left;
    background: color-mix(in srgb, var(--primary-color) 12%, transparent) !important;
    width: 180px;
    border-right: 1.5px solid var(--border-color);
}

.compare-table tr:hover td {
    background: color-mix(in srgb, var(--primary-color) 6%, transparent);
}

.compare-feature-value {
    font-size: 0.95rem;
    line-height: 1.5;
}

.compare-product-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.compare-product-img {
    width: 120px;
    height: 120px;
    border-radius: 12px;
    object-fit: cover;
    border: 1px solid var(--border-color);
    background: rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {

    /* Issue 1: Mobile Toast Notification Positioning (Directly ABOVE Bottom Compare Bar) */
    .global-toast-msg {
        top: auto !important;
        bottom: 130px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        max-width: 90vw !important;
        width: auto !important;
        text-align: center !important;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8) !important;
        z-index: 99999 !important;
    }

    /* Mobile Compare Popup Close (X) Button UI Fix (Perfect Circle, Centered Icon, Touch Friendly) */
    .compare-table th {
        position: relative !important;
    }

    .compare-table th button,
    .compare-remove-btn {
        position: absolute !important;
        top: 8px !important;
        right: 8px !important;
        width: 32px !important;
        height: 32px !important;
        min-width: 32px !important;
        min-height: 32px !important;
        max-width: 32px !important;
        max-height: 32px !important;
        aspect-ratio: 1 / 1 !important;
        flex-shrink: 0 !important;
        border-radius: 50% !important;
        background: rgba(239, 68, 68, 0.12) !important;
        color: #ef4444 !important;
        border: 1.5px solid rgba(239, 68, 68, 0.35) !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 1.1rem !important;
        font-weight: 700 !important;
        line-height: 1 !important;
        cursor: pointer !important;
        z-index: 10 !important;
        box-sizing: border-box !important;
        padding: 0 !important;
        margin: 0 !important;
        text-align: center !important;
        transform: none !important;
        transition: all 0.2s ease !important;
    }

    .modal-close-btn,
    .compare-modal-close,
    .compare-close-btn {
        top: 12px !important;
        right: 12px !important;
        width: 36px !important;
        height: 36px !important;
        border-radius: 50% !important;
        background: rgba(255, 255, 255, 0.1) !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 1.25rem !important;
        color: var(--text-muted) !important;
        border: 1px solid rgba(255, 255, 255, 0.15) !important;
        z-index: 10 !important;
    }

    .floating-compare-bar {
        flex-direction: column;
        align-items: stretch;
        bottom: 15px;
        padding: 12px 18px;
        gap: 12px;
    }

    .compare-bar-actions {
        width: 100%;
        justify-content: space-between;
    }

    .compare-bar-actions .btn-premium {
        flex-grow: 1;
    }

    .compare-table th,
    .compare-table td {
        padding: 10px 8px;
        font-size: 0.82rem;
    }

    /* Issue 3: Left Column Labels Horizontal Width & Text Wrap Fix */
    .compare-table th:first-child,
    .compare-table td:first-child {
        width: 130px !important;
        min-width: 130px !important;
        max-width: 140px !important;
        white-space: normal !important;
        word-break: normal !important;
        overflow-wrap: break-word !important;
        writing-mode: horizontal-tb !important;
        font-size: 0.82rem !important;
    }

    .compare-product-img {
        width: 70px;
        height: 70px;
    }
}

/* --- CTA Section --- */
.cta-section {
    text-align: center;
    padding: 60px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    box-shadow: 0 10px 30px var(--shadow-color, rgba(0, 0, 0, 0.4));
    transition: all 0.4s ease;
}

.cta-section:hover {
    box-shadow: 0 15px 35px color-mix(in srgb, var(--primary-color) 15%, transparent);
}

/* Alias missing ri-git-compare-line in Remix Icon v4.2.0 to a valid compare icon glyph */
.ri-git-compare-line::before {
    content: "\ea62" !important;
}

/* ── Global Button Improvement (Issue 3) ── */
.btn-premium,
.showcase-tab,
.btn-showcase-product,
.lang-btn,
.chatbot-send-btn,
.footer-newsletter-submit,
.quick-view-btn,
.add-to-quote-btn,
.view-btn,
.quote-btn,
.whatsapp-btn {
    outline: 1.5px solid #000000 !important;
    outline-offset: 0px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25) !important;
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease !important;
}

.wishlist-toggle-btn,
.compare-toggle-btn {
    outline: none !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25) !important;
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease !important;
}

.btn-premium:hover,
.showcase-tab:hover,
.btn-showcase-product:hover,
.lang-btn:hover,
.chatbot-send-btn:hover,
.footer-newsletter-submit:hover,
.quick-view-btn:hover,
.add-to-quote-btn:hover,
.view-btn:hover,
.quote-btn:hover,
.whatsapp-btn:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35) !important;
}

.wishlist-toggle-btn:hover,
.compare-toggle-btn:hover {
    transform: scale(1.1) translateY(-3px) !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35) !important;
}

.category-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

/* ===========================================/* Catalog Layout Container & Sidebar Defaults (Desktop & Tablet Default) */
.mobile-filter-bar,
.mobile-drawer-header,
.mobile-drawer-backdrop {
    display: none !important;
}

.desktop-sidebar-header {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 10px;
}

.catalog-layout-container {
    display: grid !important;
    grid-template-columns: 280px 1fr !important;
    gap: 40px !important;
    align-items: start !important;
}

.mobile-drawer-inner {
    display: block !important;
    height: auto !important;
    overflow: visible !important;
}

.mobile-drawer-body {
    display: block !important;
    overflow: visible !important;
    padding: 0 !important;
}

.cms-mobile-filter-section,
.cms-mobile-category-section {
    display: block !important;
}

/* Body Scroll Lock when Mobile Drawer is active */
html.body-scroll-lock,
body.body-scroll-lock {
    overflow: hidden !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    touch-action: none !important;
    overscroll-behavior: none !important;
}

/* ==========================================================================
   WE TWO FIREWORKS — Mobile Responsive UI Optimization (Max 768px Only)
   ========================================================================== */
@media (max-width: 768px) {

    /* 1. Browse Product Categories - 2 per row */
    .category-cards-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }

    /* 2. Featured & Best Sellers Showcases - Horizontal Touch Swipe Carousel */
    #featured-products .showcase-track,
    #best-sellers .showcase-track {
        display: flex !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory !important;
        -webkit-overflow-scrolling: touch !important;
        gap: 16px !important;
        padding-bottom: 15px !important;
        margin-right: -15px !important;
        padding-right: 15px !important;
        scrollbar-width: none !important;
        /* Firefox */
    }

    #featured-products .showcase-track::-webkit-scrollbar,
    #best-sellers .showcase-track::-webkit-scrollbar {
        display: none !important;
        /* Chrome / Safari / Edge */
    }

    #featured-products .showcase-track .product-card,
    #best-sellers .showcase-track .product-card {
        flex: 0 0 240px !important;
        width: 240px !important;
        scroll-snap-align: start !important;
    }

    /* 3. Recommended Products & Catalog Grid - 2 per row */
    .grid-4,
    #catalog-container,
    .products-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }

    /* 4. Product Card Typography & Spacing Optimization for 2-column mobile layout */
    .prod-info {
        padding: 12px 10px !important;
    }

    .prod-name {
        font-size: 0.92rem !important;
        line-height: 1.3 !important;
        min-height: 2.4rem !important;
    }

    .prod-category {
        font-size: 0.72rem !important;
    }

    .prod-price {
        font-size: 0.95rem !important;
    }

    .prod-moq {
        font-size: 0.7rem !important;
    }

    .prod-badge {
        font-size: 0.65rem !important;
        padding: 2px 6px !important;
        top: 8px !important;
        left: 8px !important;
    }

    /* Wishlist & Compare Mobile Circular Buttons Fix (Issue 3) */
    .card-actions-top-right {
        top: 8px !important;
        right: 8px !important;
        gap: 6px !important;
    }

    .wishlist-toggle-btn,
    .compare-toggle-btn {
        width: 34px !important;
        height: 34px !important;
        min-width: 34px !important;
        min-height: 34px !important;
        max-width: 34px !important;
        max-height: 34px !important;
        border-radius: 50% !important;
        aspect-ratio: 1 / 1 !important;
        flex-shrink: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0 !important;
        box-sizing: border-box !important;
        outline: none !important;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3) !important;
    }

    .wishlist-toggle-btn i,
    .compare-toggle-btn i {
        font-size: 0.95rem !important;
        line-height: 1 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    /* 5. Videos Section */
    #video-showcase .grid-2 {
        display: flex !important;
        flex-direction: column !important;
        gap: 16px !important;
    }

    #video-showcase .video-wrapper {
        aspect-ratio: 16/9;
        width: 100%;
    }

    #video-showcase div[style*="padding-left"] {
        padding-left: 0 !important;
    }

    /* 6. Gallery Section - 2 cards per row */
    .gallery-grid,
    #gallery .grid-3,
    #gallery .grid-4 {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }

    /* Mobile Filter Drawer System */
    .mobile-filter-bar {
        display: block !important;
        margin-bottom: 16px;
    }

    .mobile-filter-trigger {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        gap: 8px;
        width: 100%;
        padding: 12px 20px;
        font-size: 0.95rem;
        font-weight: 700;
        border-radius: 30px;
    }

    .mobile-drawer-header {
        display: flex !important;
        justify-content: space-between;
        align-items: center;
        padding: 16px 20px !important;
        border-bottom: 1px solid var(--border-color);
        flex-shrink: 0 !important;
    }

    .desktop-sidebar-header {
        display: none !important;
    }

    .mobile-drawer-backdrop {
        display: block !important;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.75);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
        z-index: 99998;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.35s ease, visibility 0.35s ease;
    }

    .mobile-drawer-backdrop.active {
        opacity: 1 !important;
        visibility: visible !important;
    }

    .catalog-layout-container {
        display: block !important;
    }

    .catalog-layout-container aside {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 320px !important;
        max-width: 85vw !important;
        height: 100dvh !important;
        max-height: 100dvh !important;
        z-index: 99999 !important;
        background: var(--bg-card, #121218) !important;
        transform: translateX(-100%);
        transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
        overflow: hidden !important;
        padding: 0 !important;
        box-shadow: 5px 0 30px rgba(0, 0, 0, 0.8) !important;
        box-sizing: border-box !important;
    }

    .catalog-layout-container aside.drawer-open {
        transform: translateX(0) !important;
    }

    .catalog-layout-container aside .glass-card {
        position: relative !important;
        top: 0 !important;
        padding: 0 !important;
        background: none !important;
        border: none !important;
        box-shadow: none !important;
        border-radius: 0 !important;
    }

    .mobile-drawer-inner {
        display: flex !important;
        flex-direction: column !important;
        height: 100% !important;
        height: 100dvh !important;
        max-height: 100dvh !important;
        width: 100% !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }

    .mobile-drawer-body {
        flex: 1 1 0% !important;
        min-height: 0 !important;
        max-height: calc(100dvh - 60px) !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        -webkit-overflow-scrolling: touch !important;
        overscroll-behavior: contain !important;
        padding: 20px !important;
        box-sizing: border-box !important;
    }
}

/* =========================================================
   MOBILE POLISH RULES (@media (max-width: 768px))
   ========================================================= */
@media (max-width: 768px) {

    /* 1. HOME: Why Global Distributors Choose Us -> 1 card/row */
    #why-choose-us .grid-3,
    #why-choose-us div[class*="grid-"] {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    /* 2. HOME: Wholesale Distributor Benefits -> 1 card/row */
    #wholesale-benefits .grid-3,
    #wholesale-benefits div[class*="grid-"] {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    /* 3. HOME: Safety Standards & Certifications -> 1 card/row */
    #safety-standards .grid-3,
    #safety-standards div[class*="grid-"] {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    /* 4. HOME: Recommended For You -> Exactly 2 Products Per Row */
    #recommendationsGrid,
    #recSkeletonLoader {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }

    .rec-product-card {
        display: flex !important;
        flex-direction: column !important;
        height: 100% !important;
    }

    .rec-product-card img {
        height: 130px !important;
        object-fit: cover !important;
    }

    .rec-product-card .rec-info {
        padding: 10px 12px !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
        flex: 1 1 auto !important;
    }

    .rec-product-card .rec-name {
        font-size: 0.85rem !important;
        line-height: 1.3 !important;
        min-height: 2.2rem !important;
    }

    /* 5. HOME: Gallery Section -> 2 Gallery Images Per Row */
    #gallery div[style*="display:grid"],
    #gallery div[style*="display: grid"] {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }

    /* 6. HOME: Videos Section -> 2 Video Cards Per Row */
    #videos div[style*="display:grid"],
    #videos div[style*="display: grid"] {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }

    /* ABOUT PAGE POLISH */
    /* 1. Premier B2B Fireworks Provider -> Row 1: 1987 & Factories, Row 2: 250+ Products CENTERED */
    .about-section .grid-3 {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
    }

    .about-section .grid-3 .stat-card:nth-child(3) {
        grid-column: 1 / -1 !important;
        justify-self: center !important;
        width: 65% !important;
        margin: 0 auto !important;
    }

    /* 2. ABOUT: Safety, Quality & Innovation -> 1 card/row */
    .about-section-alt .grid-3,
    .val-card {
        width: 100% !important;
    }

    .about-section-alt .grid-3 {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    /* 3 & 4. ABOUT: Display Firework Requirements & Terms of Business -> 1 card/row */
    .req-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

}

/* ==========================================================================
   PRODUCTS PAGE — Premium Desktop & Responsive Pagination Controls
   ========================================================================== */
.products-pagination-wrapper {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 10px !important;
    margin-top: 45px !important;
    margin-bottom: 20px !important;
    width: 100% !important;
    flex-wrap: wrap !important;
    padding: 0 10px !important;
    box-sizing: border-box !important;
}

.products-pagination-wrapper .pagination-btn {
    min-width: 44px !important;
    height: 44px !important;
    padding: 0 12px !important;
    border-radius: 50% !important;
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.15)) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #FFFFFF !important;
    text-decoration: none !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    font-family: var(--font-heading, inherit) !important;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    background: rgba(255, 255, 255, 0.03) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    flex-shrink: 0 !important;
    box-sizing: border-box !important;
    cursor: pointer !important;
    line-height: 1 !important;
}

.products-pagination-wrapper .pagination-btn.active {
    background: var(--primary-gradient, linear-gradient(135deg, #FFD700 0%, #FFA500 100%)) !important;
    color: #07070A !important;
    border-color: transparent !important;
    font-weight: 800 !important;
    box-shadow: 0 0 16px rgba(255, 215, 0, 0.45) !important;
    transform: none !important;
}

.products-pagination-wrapper .pagination-btn:hover:not(.active) {
    background: rgba(255, 215, 0, 0.1) !important;
    border-color: var(--primary-color, #FFD700) !important;
    color: var(--primary-color, #FFD700) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 14px rgba(255, 215, 0, 0.2) !important;
}

.products-pagination-wrapper .pagination-prev,
.products-pagination-wrapper .pagination-next {
    font-size: 1.25rem !important;
    width: 44px !important;
    height: 44px !important;
    padding: 0 !important;
    border-radius: 50% !important;
}

.products-pagination-wrapper .pagination-ellipsis {
    color: var(--text-muted, #AAAAAA) !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    min-width: 32px !important;
    height: 44px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    user-select: none !important;
    letter-spacing: 0.1em !important;
}

@media (max-width: 768px) {
    .products-pagination-wrapper {
        gap: 6px !important;
        margin-top: 35px !important;
    }

    .products-pagination-wrapper .pagination-btn {
        min-width: 38px !important;
        height: 38px !important;
        padding: 0 8px !important;
        font-size: 0.85rem !important;
    }

    .products-pagination-wrapper .pagination-prev,
    .products-pagination-wrapper .pagination-next {
        width: 38px !important;
        height: 38px !important;
        font-size: 1.1rem !important;
    }

    .products-pagination-wrapper .pagination-ellipsis {
        min-width: 24px !important;
        height: 38px !important;
        font-size: 0.9rem !important;
    }
}

@media (max-width: 360px) {

    .grid-4,
    #catalog-container {
        gap: 8px !important;
    }

    .prod-info {
        padding: 10px 8px !important;
    }

    .prod-name {
        font-size: 0.85rem !important;
        min-height: 2rem !important;
    }
}

/* ==========================================================================
   TESTIMONIALS / DISTRIBUTOR FEEDBACK — Mobile Full Content Display
   ========================================================================== */
.testimonial-read-more-btn {
    display: none !important;
}

@media (max-width: 768px) {
    .testimonial-card .testimonial-content {
        position: relative;
        max-height: none !important;
        overflow: visible !important;
        display: block !important;
        -webkit-line-clamp: unset !important;
        margin-bottom: 12px !important;
    }
}

/* ==========================================================================
   MOBILE DISTRIBUTOR FEEDBACK SINGLE-CARD CAROUSEL (Issue 1)
   ========================================================================== */
.testimonials-slider-container {
    width: 100%;
    overflow: hidden;
    position: relative;
}

@media (max-width: 768px) {
    .testimonials-slider-container {
        padding: 5px 0 15px 0;
        touch-action: pan-y;
        user-select: none;
        -webkit-user-select: none;
    }

    #testimonials .testimonials-track,
    .testimonials-slider-container .testimonials-track {
        display: flex !important;
        flex-direction: row !important;
        grid-template-columns: none !important;
        gap: 0 !important;
        width: 100% !important;
        transition: transform 0.45s cubic-bezier(0.25, 1, 0.5, 1);
        align-items: stretch;
        will-change: transform;
    }

    #testimonials .testimonial-card,
    .testimonials-slider-container .testimonial-card {
        flex: 0 0 100% !important;
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        margin: 0 !important;
    }

    .testimonial-carousel-dots {
        display: none !important;
    }

    .testimonial-simple-indicator {
        display: flex !important;
        justify-content: center;
        align-items: center;
        gap: 8px;
        margin-top: 14px;
        font-size: 1.1rem;
        line-height: 1;
        letter-spacing: 2px;
        user-select: none;
    }

    .testimonial-simple-indicator span {
        transition: color 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
        opacity: 0.35;
        color: var(--text-muted, #A0A0A0);
        font-weight: 700;
    }

    .testimonial-simple-indicator span.active {
        opacity: 1;
        color: var(--primary-color, #FFD700);
        transform: scale(1.35);
    }
}

/* ==========================================================================
   READY TO ORDER CTA BUTTONS RESPONSIVE FIX (Issue 2)
   ========================================================================== */
.cta-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    width: 100%;
}

@media (max-width: 576px) {
    .cta-section {
        padding: 40px 16px !important;
        box-sizing: border-box !important;
    }

    .cta-buttons {
        flex-direction: column !important;
        align-items: center !important;
        gap: 12px !important;
        width: 100% !important;
    }

    /* Target both with or without .cta-buttons wrapper */
    .cta-buttons .btn-premium,
    .cta-section > a.btn-premium,
    .cta-section > .btn-premium {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        max-width: 280px !important;
        padding: 13px 20px !important;
        font-size: 0.9rem !important;
        box-sizing: border-box !important;
        margin-left: auto !important;
        margin-right: auto !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        text-align: center !important;
    }

    /* If directly child of cta-section without flex wrapper */
    .cta-section > a.btn-premium + a.btn-premium,
    .cta-section > .btn-premium + .btn-premium {
        margin-top: 12px !important;
    }
}