/* =============================
   RESET & BASE
   ============================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    direction: ltr;
}

/* =============================
   STICKY HEADER
   ============================= */
.header {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 1000;
    background: white;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s ease;
}

.header.scrolled {
    box-shadow: 0 4px 20px rgba(14, 165, 233, 0.15);
}

/* Phone next to Contact (desktop) — plain look; tel from [data-nav-tel] in script.js */
.navbar-phone-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.28rem 0.65rem 0.28rem 0.4rem;
    border-radius: 999px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #475569 !important;
    text-decoration: none !important;
    white-space: nowrap;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.navbar-phone-pill:hover,
.navbar-phone-pill:focus-visible {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #334155 !important;
}

.navbar-phone-pill__icon {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: #e2e8f0;
    color: #64748b;
    font-size: 0.65rem;
}

.navbar-phone-pill__text {
    font-variant-numeric: tabular-nums;
}

/* Same chip on home + products: beat Bootstrap navbar link defaults */
#mainHeader #navbarNav a.navbar-phone-pill,
#mainHeader #navbarNav a.navbar-phone-pill:link,
#mainHeader #navbarNav a.navbar-phone-pill:visited,
#mainHeader #navbarNav a.navbar-phone-pill:hover,
#mainHeader #navbarNav a.navbar-phone-pill:focus {
    text-decoration: none !important;
}

#mainHeader #navbarNav a.navbar-phone-pill .navbar-phone-pill__text {
    color: #475569 !important;
}

#mainHeader #navbarNav a.navbar-phone-pill:hover .navbar-phone-pill__text,
#mainHeader #navbarNav a.navbar-phone-pill:focus-visible .navbar-phone-pill__text {
    color: #334155 !important;
}

/* Centered phone on mobile (under logo row) */
/* Mobile inline phone — sits between logo and hamburger */
.navbar-mobile-phone-inline {
    align-items: center;
    gap: 0.4rem;
    flex: 1 1 auto;
    justify-content: center;
    color: #475569 !important;
    font-size: 0.82rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    text-decoration: none !important;
    white-space: nowrap;
    padding: 0 0.5rem;
}

.navbar-mobile-phone-inline:hover,
.navbar-mobile-phone-inline:focus-visible {
    color: #1e40af !important;
}

.navbar-mobile-phone-inline .fa-phone {
    font-size: 0.75rem;
    color: #64748b;
}

.navbar-nav .nav-item--with-phone {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    column-gap: 0.55rem;
    row-gap: 0.35rem;
}

.navbar-nav .nav-item--with-phone > .nav-link {
    padding-right: 0.2rem;
}

.navbar-brand-stack {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-right: auto;
    max-width: calc(100% - 3.5rem);
}

.navbar-brand-stack .navbar-brand {
    margin-bottom: 0;
}

.navbar-auth-below {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    column-gap: 10px;
    row-gap: 2px;
    margin-top: 4px;
}

.navbar-end-actions {
    flex-shrink: 0;
}

.navbar-welcome {
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 991.98px) {
    .navbar-welcome {
        max-width: 100%;
    }
}

.header-nav-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.5rem 0.95rem;
    border: 1px solid #bae6fd;
    background: #f0f9ff;
    border-radius: 10px;
    color: #0284c7;
    font-weight: 600;
    font-size: 0.9rem;
    line-height: 1.2;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

a.header-nav-pill {
    text-decoration: none;
}

.header-nav-pill:hover {
    background: #e0f2fe;
    border-color: #7dd3fc;
    color: #0369a1;
}

.header-nav-pill-muted {
    color: #475569;
    border-color: #e2e8f0;
    background: #f8fafc;
}

.header-nav-pill-muted:hover {
    color: #334155;
    border-color: #cbd5e1;
    background: #f1f5f9;
}

.header-nav-pill-danger {
    color: #b91c1c;
    border-color: #fecaca;
    background: #fef2f2;
}

.header-nav-pill-danger:hover {
    color: #991b1b;
    border-color: #fca5a5;
    background: #fee2e2;
}

.header-nav-pill-badge {
    min-width: 1.4rem;
    height: 1.4rem;
    padding: 0 5px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #bae6fd;
    color: #0284c7;
    font-size: 0.72rem;
    font-weight: 800;
    display: none;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.floating-shop-dock {
    position: fixed;
    right: var(--floating-cart-right, 18px);
    z-index: 5000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    top: var(--floating-cart-top, 55%);
    transform: translateY(-50%);
    pointer-events: none;
}

.floating-shop-dock > * {
    pointer-events: auto;
}

.floating-cart {
    position: relative;
    right: auto;
    top: auto;
    transform: none;
    z-index: 0;
    display: none;
    border: 1px solid #bae6fd;
    background: #f0f9ff;
    color: #0369a1;
    border-radius: 999px;
    width: 54px;
    min-height: 54px;
    padding: 0;
    box-shadow: 0 10px 30px rgba(2, 132, 199, 0.12);
    cursor: pointer;
    user-select: none;
    overflow: visible;
    transition: width 0.22s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

a.floating-whatsapp,
.floating-whatsapp {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 54px;
    min-height: 54px;
    padding: 0;
    border-radius: 999px;
    border: 1px solid #bbf7d0;
    background: #ecfdf5;
    box-shadow: 0 10px 30px rgba(4, 120, 87, 0.12);
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
    text-decoration: none !important;
    color: inherit !important;
    -webkit-tap-highlight-color: transparent;
    overflow: visible;
    transition: width 0.22s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.floating-whatsapp:visited,
.floating-whatsapp:hover,
.floating-whatsapp:focus,
.floating-whatsapp:focus-visible {
    text-decoration: none !important;
    color: inherit !important;
}

.floating-whatsapp-inner {
    display: flex;
    align-items: center;
    gap: 9px;
    width: 100%;
    justify-content: flex-start;
    padding: 7px;
}

.floating-whatsapp-icon {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #22c55e;
    color: #fff !important;
    font-size: 1.05rem;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(21, 128, 61, 0.25);
}

.floating-whatsapp-meta {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
    text-align: left;
    max-width: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-width 0.22s ease, opacity 0.18s ease;
}

.floating-whatsapp-title {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: #047857 !important;
}

.floating-cart:hover {
    width: 154px;
    background: #e0f2fe;
    border-color: #7dd3fc;
}

.floating-cart:focus-visible {
    width: 154px;
    outline: 2px solid rgba(14, 165, 233, 0.3);
    outline-offset: 3px;
}

.floating-cart-inner {
    display: flex;
    align-items: center;
    gap: 9px;
    width: 100%;
    justify-content: flex-start;
    padding: 7px;
}

.floating-cart-icon {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #0ea5e9;
    color: #fff;
    flex: 0 0 auto;
}

.floating-cart-meta {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
    text-align: left;
    max-width: 0;
    opacity: 0;
    overflow: hidden;
    white-space: nowrap;
    transition: max-width 0.22s ease, opacity 0.18s ease;
}

.floating-cart-title {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.floating-cart-total {
    font-size: 12px;
    font-weight: 900;
}

.floating-cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    margin-left: 0;
    font-size: 11px;
    font-weight: 900;
    min-width: 24px;
    height: 24px;
    padding: 0 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(125, 211, 252, 0.95);
    color: #0369a1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: opacity 0.16s ease;
}

.floating-cart:hover .floating-cart-meta,
.floating-cart:focus-visible .floating-cart-meta {
    max-width: 92px;
    opacity: 1;
}

@media (hover: hover) and (pointer: fine) {
    .floating-whatsapp:hover {
        width: 154px;
        background: #d1fae5;
        border-color: #86efac;
    }

    .floating-whatsapp:focus-visible {
        width: 154px;
        outline: 2px solid rgba(34, 197, 94, 0.3);
        outline-offset: 3px;
    }

    .floating-whatsapp:hover .floating-whatsapp-title {
        color: #065f46 !important;
    }

    .floating-whatsapp:hover .floating-whatsapp-meta,
    .floating-whatsapp:focus-visible .floating-whatsapp-meta {
        max-width: 92px;
        opacity: 1;
    }
}

.floating-cart:hover .floating-cart-count,
.floating-cart:focus-visible .floating-cart-count {
    opacity: 0;
}

@media (max-width: 767px) {
    .floating-shop-dock {
        top: auto;
        bottom: var(--floating-shop-dock-bottom, 88px);
        transform: none;
        right: var(--floating-cart-right, 12px);
    }

    /* Floating cart overlaps product options on small screens */
    body.product-options-modal-open #floatingCart {
        display: none !important;
    }

    body.product-options-modal-open .floating-whatsapp {
        display: none !important;
    }
}

.user-buttons {
    display: flex;
}

.btn-admin {
    background: #0ea5e9;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.btn-admin:hover {
    background: #0284c7;
    transform: translateY(-2px);
}

.navbar {
    background: white;
    padding: 12px 0;
    border-bottom: 1px solid #e0f2fe;
}

.navbar-brand {
    font-size: 22px;
    font-weight: 700;
    color: #0284c7 !important;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.navbar-brand > img {
    width: 132px !important;
    height: 76px !important;
    padding: 4px;
    background: #fff;
    background-color: #fff;
    border: 2px solid #fff;
    border-radius: 4px !important;
    box-sizing: border-box;
    display: block;
    isolation: isolate;
    mix-blend-mode: normal;
    object-fit: contain;
    object-position: center;
    box-shadow: none;
}

.brand-logo-mini {
    width: 64px;
    height: 26px;
    display: inline-flex;
    align-items: center;
}

.brand-logo-mini img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.nav-link {
    font-weight: 600;
    color: #334155 !important;
    margin: 0 10px;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #0ea5e9;
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: #0ea5e9 !important;
}

.search-box {
    display: flex;
    align-items: center;
    background: #f0f9ff;
    border-radius: 25px;
    padding: 4px;
    border: 1.5px solid #bae6fd;
    transition: border-color 0.3s ease;
}

.search-box:focus-within {
    border-color: #0ea5e9;
}

.search-box input {
    border: none;
    background: transparent;
    padding: 6px 15px;
    outline: none;
    width: 200px;
    font-family: 'Inter', sans-serif;
    color: #0f172a;
}

.search-box input::placeholder {
    color: #94a3b8;
}

.search-box button {
    background: #0ea5e9;
    border: none;
    color: white;
    padding: 7px 11px;
    border-radius: 50%;
    cursor: pointer;
    font-weight: 700;
    transition: background 0.3s ease;
}

.search-box button:hover {
    background: #0284c7;
}

@media (min-width: 769px) and (max-width: 991.98px) {
    .navbar > .container {
        align-items: flex-start;
    }

    .navbar > .container.d-lg-none {
        display: block !important;
        width: 100%;
    }

    .navbar > .container.d-lg-none .search-box {
        width: 100%;
        min-width: 0;
        display: grid;
        grid-template-columns: minmax(0, 1fr) 42px;
        gap: 8px;
        padding: 7px 10px;
        border-radius: 18px;
    }

    .navbar > .container.d-lg-none .search-box input {
        width: 100%;
        min-width: 0;
        padding: 9px 12px;
        font-size: 14px;
    }

    .navbar > .container.d-lg-none .search-box button {
        width: 42px;
        height: 38px;
        padding: 0;
        border-radius: 12px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}

.nav-quick-actions {
    display: inline-flex;
    align-items: center;
    margin-left: 8px;
    margin-right: 8px;
    padding: 3px 8px;
    border: 1px solid #dbeafe;
    border-radius: 10px;
    background: #ffffff;
    white-space: nowrap;
}

/* =============================
   HOME HERO SLIDER
   ============================= */
.home-hero-slider-section {
    padding: 8px 0 0;
    background: #f8fbff;
}

.home-hero-carousel {
    width: 100%;
    max-width: none;
    margin: 0;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.08);
}

.home-hero-slider-img {
    width: 100%;
    height: min(78vh, 680px);
    object-fit: contain;
    object-position: center center;
    display: block;
    filter: brightness(0.97) contrast(1.06) saturate(1.12);
}

.home-hero-carousel .carousel-item {
    background: #f8fbff;
}

.home-hero-carousel .carousel-inner {
    position: relative;
    background: #f8fbff;
}

.home-hero-carousel .carousel-control-prev,
.home-hero-carousel .carousel-control-next,
.home-hero-carousel .carousel-indicators {
    z-index: 2;
}

.home-hero-carousel .carousel-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

/* Mobile stacked hero: portrait composite — full width, natural height (overrides fixed heights below) */
.home-hero-carousel--mobile .home-hero-slider-img {
    height: auto;
    max-height: none;
    object-fit: contain;
    object-position: top center;
}

@media (max-width: 992px) {
    .home-hero-slider-img {
        height: min(62vh, 500px);
    }
}

@media (max-width: 576px) {
    .home-hero-slider-section {
        padding-top: 6px;
    }

    .home-hero-slider-img {
        height: min(54vh, 420px);
    }
}

/* =============================
   HOME — Best category banners
   ============================= */
.best-category-section {
    padding: 32px 0 42px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 45%, #f1f5f9 100%);
    border-bottom: 1px solid #e2e8f0;
}

.best-category-inner {
    max-width: 1180px;
    margin-inline: auto;
}

.best-category-head {
    max-width: 42rem;
    margin-inline: auto;
    margin-bottom: 1.75rem;
}

.best-category-head .section-eyebrow {
    display: inline-block;
    margin-bottom: 6px;
}

.best-category-head h2 {
    font-size: clamp(1.65rem, 4.2vw, 2.05rem);
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #0c2748;
    margin-bottom: 0.35rem;
}

.best-category-subtitle {
    font-size: clamp(0.95rem, 2.4vw, 1.08rem);
    line-height: 1.55;
}

.best-category-grid {
    margin-top: 0.25rem;
}

.best-category-card {
    display: block;
    border-radius: 16px;
    overflow: hidden;
    background: #f8fafc;
    box-shadow: 0 10px 32px rgba(15, 23, 42, 0.1), 0 2px 8px rgba(15, 23, 42, 0.06);
    border: 1px solid rgba(148, 163, 184, 0.35);
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.best-category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.14), 0 4px 12px rgba(15, 23, 42, 0.08);
}

.best-category-card:focus-visible {
    outline: 3px solid #2563eb;
    outline-offset: 4px;
}

.best-category-card img {
    width: 100%;
    height: auto;
    display: block;
    vertical-align: middle;
}

@media (max-width: 767px) {
    .best-category-section {
        padding: 26px 0 34px;
    }

    .best-category-head {
        margin-bottom: 1.25rem;
    }
}

/* Home — “View all products” CTA */
/* Home - important customers strip */
.important-customers-section {
    padding: 34px 0 38px;
    border-bottom: 1px solid #e2e8f0;
}

.important-customers-head {
    margin-bottom: 1.25rem;
}

.important-customers-strip {
    overflow: hidden;
    padding: 4px 2px 12px;
    position: relative;
    cursor: grab;
    touch-action: pan-y;
    overscroll-behavior-inline: contain;
    user-select: none;
}

.important-customers-strip.is-dragging {
    cursor: grabbing;
}

.important-customers-strip.is-paused .important-customers-track {
    animation-play-state: paused;
}

.important-customers-strip::before,
.important-customers-strip::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 40px;
    z-index: 2;
    pointer-events: none;
}

.important-customers-strip::before {
    left: 0;
    background: linear-gradient(90deg, #ffffff 0%, rgba(255, 255, 255, 0) 100%);
}

.important-customers-strip::after {
    right: 0;
    background: linear-gradient(270deg, #ffffff 0%, rgba(255, 255, 255, 0) 100%);
}

@keyframes importantCustomersMarquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

.important-customers-track {
    display: flex;
    width: max-content;
    /* Fallback animation; enhanced JS controls drag + seamless autoplay. */
    animation: importantCustomersMarquee 20s linear infinite;
    will-change: transform;
}

.important-customers-strip.is-js-marquee .important-customers-track {
    animation: none;
}

.important-customers-set {
    display: flex;
    flex: 0 0 auto;
    gap: 14px;
    padding-right: 14px;
}

.important-customer-card {
    flex: 0 0 190px;
    min-height: 112px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #ffffff;
    color: #0f172a;
    text-decoration: none;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
    scroll-snap-align: start;
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
    -webkit-user-drag: none;
}

.important-customer-card:hover {
    color: #0f172a;
    text-decoration: none;
    border-color: #93c5fd;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.1);
    transform: translateY(-3px);
}

@media (hover: none) {
    .important-customer-card:hover {
        transform: none;
        box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
    }
}

.important-customer-card-inner {
    width: 100%;
    display: grid;
    justify-items: center;
    gap: 10px;
}

.important-customer-visual {
    height: 54px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.important-customer-logo {
    max-width: 150px;
    max-height: 54px;
    object-fit: contain;
    -webkit-user-drag: none;
    pointer-events: none;
}

.important-customer-initials,
.important-customer-card.logo-failed .important-customer-visual::before {
    width: 52px;
    height: 52px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #eff6ff;
    color: #1d4ed8;
    font-weight: 800;
    border: 1px solid #bfdbfe;
}

.important-customer-card.logo-failed .important-customer-visual::before {
    content: "\f0c0";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
}

.important-customer-name {
    font-size: 0.94rem;
    line-height: 1.25;
    min-height: 2.35em;
    display: flex;
    align-items: center;
    text-align: center;
    word-break: break-word;
}

@media (max-width: 576px) {
    .important-customers-section {
        padding: 28px 0 32px;
    }

    .important-customers-strip::before,
    .important-customers-strip::after {
        width: 24px;
    }

    .important-customer-card {
        flex-basis: 160px;
        min-height: 104px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .important-customers-track {
        animation-play-state: paused;
    }
}

.seo-fallback-list {
    margin-top: 32px;
    padding: 24px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #ffffff;
}

.seo-fallback-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.seo-product-page {
    padding-top: 32px;
    padding-bottom: 48px;
}

.seo-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    color: #64748b;
    font-size: 0.95rem;
}

.seo-breadcrumb a {
    color: #0369a1;
    text-decoration: none;
}

.seo-product-detail {
    display: grid;
    grid-template-columns: minmax(280px, 420px) minmax(0, 1fr);
    gap: 36px;
    align-items: center;
}

.seo-product-media {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.seo-product-media img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    display: block;
}

.seo-product-copy h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    color: #0f172a;
    margin: 8px 0 16px;
}

.seo-product-copy p {
    color: #475569;
    font-size: 1.05rem;
    line-height: 1.7;
}

.seo-product-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

.seo-product-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.seo-product-action-status {
    flex: 1 0 100%;
    min-height: 24px;
    font-weight: 700;
    color: #0f766e;
}

.seo-product-action-status:empty {
    display: none;
}

.seo-product-action-status-error {
    color: #b91c1c;
}

.seo-product-action-pulse {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(37, 99, 235, 0.24);
}

.seo-product-share-fallback {
    display: none;
    flex: 1 0 100%;
    max-width: 560px;
    padding: 10px 12px;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    color: #1e293b;
    background: #f8fbff;
}

.seo-product-share-fallback.is-visible {
    display: block;
}

@media (max-width: 768px) {
    .seo-fallback-columns,
    .seo-product-detail {
        grid-template-columns: 1fr;
    }

    .seo-product-actions .btn {
        flex: 1 1 100%;
    }
}

.home-view-all-products {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1.2rem;
    font-weight: 800;
    font-size: 1.05rem;
    letter-spacing: 0.02em;
    color: #ffffff;
    text-decoration: none;
    border-radius: 999px;
    border: 2px solid rgba(255, 255, 255, 0.28);
    background: linear-gradient(135deg, #0369a1 0%, #0ea5e9 45%, #0284c7 100%);
    background-size: 220% 220%;
    box-shadow: 0 4px 18px rgba(2, 132, 199, 0.45);
    transition: border-color 0.25s ease, box-shadow 0.3s ease, transform 0.28s ease;
    animation: home-view-all-bg-shift 5s ease-in-out infinite;
}

.home-view-all-products:hover {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 10px 32px rgba(2, 132, 199, 0.55);
    transform: translateY(-3px);
}

.home-view-all-products:focus-visible {
    outline: 3px solid rgba(255, 255, 255, 0.65);
    outline-offset: 3px;
}

.home-view-all-products__text {
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    animation: home-view-all-text-glow 2.6s ease-in-out infinite;
}

.home-view-all-products:hover .home-view-all-products__text {
    animation-duration: 1.4s;
}

.home-view-all-products__icon {
    color: #e0f2fe;
    font-size: 0.88em;
    animation: home-view-all-arrow 1.35s ease-in-out infinite;
}

.home-view-all-products:hover .home-view-all-products__icon {
    color: #ffffff;
}

@keyframes home-view-all-bg-shift {
    0%,
    100% {
        background-position: 0% 40%;
    }

    50% {
        background-position: 100% 60%;
    }
}

@keyframes home-view-all-text-glow {
    0%,
    100% {
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    }

    50% {
        text-shadow: 0 0 16px rgba(255, 255, 255, 0.45), 0 1px 2px rgba(0, 0, 0, 0.15);
    }
}

@keyframes home-view-all-arrow {
    0%,
    100% {
        transform: translateX(0);
        opacity: 0.85;
    }

    50% {
        transform: translateX(6px);
        opacity: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-view-all-products {
        transition: none;
        animation: none;
        background: linear-gradient(135deg, #0284c7, #0ea5e9);
        background-size: auto;
    }

    .home-view-all-products__text,
    .home-view-all-products__icon {
        animation: none !important;
    }

    .home-view-all-products__text {
        color: #ffffff;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    }

    .home-view-all-products__icon {
        color: #e0f2fe;
    }
}


/* =============================
   PROMO SECTION — Home Depot Style
   ============================= */
.promo-section {
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 22px 0 34px;
}

.promo-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    margin-bottom: 10px;
}

.promo-hero-card {
    position: relative;
    min-height: 380px;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 10px 34px rgba(2, 6, 23, 0.16);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.promo-hero-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(2, 6, 23, 0.22);
}

.promo-hero-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s ease;
}

.promo-hero-card:hover img {
    transform: scale(1.05);
}

.promo-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(15, 23, 42, 0.82) 0%, rgba(15, 23, 42, 0.55) 45%, rgba(15, 23, 42, 0.28) 100%),
        linear-gradient(180deg, rgba(2, 132, 199, 0.08) 0%, rgba(2, 132, 199, 0.16) 100%);
    transition: background 0.3s ease;
}

.promo-hero-card:hover .promo-hero-overlay {
    background:
        linear-gradient(90deg, rgba(15, 23, 42, 0.55) 0%, rgba(15, 23, 42, 0.32) 45%, rgba(15, 23, 42, 0.12) 100%),
        linear-gradient(180deg, rgba(2, 132, 199, 0.05) 0%, rgba(2, 132, 199, 0.1) 100%);
}

.promo-hero-content {
    position: absolute;
    left: 20px;
    bottom: 20px;
    z-index: 2;
    max-width: 430px;
    padding: 18px 18px 16px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.26);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0.72;
    transform: translateY(8px);
    transition: opacity 0.28s ease, transform 0.28s ease;
}

.promo-hero-card:hover .promo-hero-content {
    opacity: 1;
    transform: translateY(0);
}

.promo-badge {
    display: inline-block;
    background: rgba(125, 211, 252, 0.22);
    border: 1px solid rgba(125, 211, 252, 0.5);
    color: #e0f2fe;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 11px;
    border-radius: 999px;
    margin-bottom: 8px;
}

.promo-hero-content h2 {
    margin: 0;
    font-size: 1.9rem;
    line-height: 1.13;
    color: #f8fafc;
    font-weight: 800;
}

.promo-hero-content h2 span {
    color: #7dd3fc;
}

.promo-hero-content p {
    margin: 10px 0 14px;
    color: rgba(248, 250, 252, 0.92);
    font-size: 14px;
}

.promo-side-stack {
    display: none;
}

.promo-mini-card {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    min-height: 153px;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(2, 6, 23, 0.14);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.promo-mini-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(2, 6, 23, 0.2);
}

.promo-mini-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.promo-mini-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.06) 0%, rgba(15, 23, 42, 0.68) 100%);
}

.promo-mini-content {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 12px;
    z-index: 2;
}

.promo-mini-content h4 {
    margin: 0 0 3px;
    color: #fff;
    font-size: 1.05rem;
    font-weight: 700;
}

.promo-mini-content p {
    margin: 0;
    color: rgba(241, 245, 249, 0.92);
    font-size: 12px;
}

.promo-info-strip {
    display: none;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    padding: 14px 16px;
    border-radius: 12px;
    margin-bottom: 14px;
    background: linear-gradient(135deg, #0369a1 0%, #0ea5e9 100%);
    color: #e0f2fe;
    box-shadow: 0 8px 22px rgba(2, 132, 199, 0.24);
    cursor: pointer;
}

.promo-info-photo {
    width: 66px;
    height: 46px;
    flex-shrink: 0;
    border-radius: 9px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 14px rgba(2, 6, 23, 0.25);
}

.promo-info-photo img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.promo-info-item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.promo-info-item i {
    color: #fef9c3;
    font-size: 12px;
}

.promo-cards-row {
    display: none;
}

.promo-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.promo-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
}

.promo-card-highlight {
    background: #fef9c3;
}

.promo-card-img {
    height: 150px;
    overflow: hidden;
    background: #f8fafc;
}

.promo-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.promo-card-text {
    padding: 16px 18px;
    text-align: left;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.promo-card-off {
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
}

.promo-card-off span {
    font-size: 1.9rem;
    font-weight: 900;
    color: #0f172a;
    line-height: 1;
    display: inline-block;
}

.promo-card-highlight .promo-card-off span {
    color: #0284c7;
}

.promo-card-text h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

.promo-card-text p {
    font-size: 12px;
    color: #64748b;
    margin: 0;
}

.promo-btn {
    display: inline-block;
    background: #0ea5e9;
    color: white;
    border: none;
    padding: 10px 22px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: background 0.2s ease;
    width: fit-content;
    margin-top: 4px;
}

.promo-btn:hover {
    background: #0284c7;
}

.promo-btn-light {
    background: white;
    color: #0284c7;
    margin-left: auto;
}

.promo-btn-light:hover {
    background: #f0f9ff;
    color: #0369a1;
}

.promo-btn-sm {
    padding: 8px 16px;
    font-size: 13px;
    margin-top: auto;
}

@media (max-width: 992px) {
    .promo-layout {
        grid-template-columns: 1fr;
    }

    .promo-hero-card {
        min-height: 300px;
    }

    .promo-hero-content {
        left: 14px;
        right: 14px;
        bottom: 14px;
        max-width: none;
        padding: 14px 14px 12px;
    }

    .promo-hero-content h2 {
        font-size: 1.45rem;
    }

    .promo-side-stack {
        display: none;
    }

    .promo-mini-card {
        min-height: 145px;
    }

    .promo-cards-row {
        display: none;
    }
}

@media (max-width: 576px) {
    .promo-section {
        padding: 16px 0 24px;
    }

    .promo-layout {
        gap: 10px;
        margin-bottom: 10px;
    }

    .promo-hero-card {
        min-height: 230px;
        border-radius: 12px;
    }

    .promo-hero-content h2 {
        font-size: 1.22rem;
    }

    .promo-hero-content p {
        font-size: 12px;
        margin: 8px 0 10px;
    }

    .promo-side-stack {
        display: none;
    }

    .promo-mini-card {
        min-height: 130px;
        border-radius: 12px;
    }

    .promo-info-strip {
        gap: 8px;
        padding: 12px;
        margin-bottom: 10px;
    }

    .promo-info-photo {
        width: 58px;
        height: 40px;
    }

    .promo-info-item {
        font-size: 12px;
    }

    .promo-cards-row {
        display: none;
    }

    .promo-btn {
        padding: 8px 16px;
        font-size: 12px;
    }

    .promo-btn-light {
        margin-left: 0;
    }
}

/* =============================
   HERO
   ============================= */
.hero {
    background: linear-gradient(135deg, #0369a1 0%, #0284c7 50%, #0ea5e9 100%);
    color: white;
    padding: 0;
    min-height: 520px;
    display: flex;
    align-items: stretch;
    overflow: hidden;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -120px;
    right: 200px;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    pointer-events: none;
}

.hero .container {
    padding-top: 60px;
    padding-bottom: 60px;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: white;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 20px;
    animation: fadeInUp 0.8s ease both;
}

.hero-badge i {
    font-size: 12px;
    color: #bae6fd;
}

.hero-content h1 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.25;
    animation: fadeInUp 0.9s ease 0.1s both;
}

.hero-content h1 .sub-headline {
    display: block;
    font-size: 1.4rem;
    font-weight: 400;
    opacity: 0.88;
    margin-top: 6px;
}

.hero-content p {
    font-size: 1.05rem;
    margin-bottom: 32px;
    opacity: 0.88;
    line-height: 1.7;
    max-width: 440px;
    animation: fadeInUp 0.9s ease 0.2s both;
}

.hero-buttons {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    animation: fadeInUp 0.9s ease 0.3s both;
}

.hero-content .btn-primary-white {
    background: white;
    color: #0ea5e9;
    border: none;
    padding: 14px 30px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 50px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
}

.hero-content .btn-primary-white:hover {
    background: #f0f9ff;
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.2);
    color: #0284c7;
}

.hero-content .btn-ghost {
    border: 2px solid rgba(255, 255, 255, 0.6);
    color: white;
    padding: 13px 26px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    background: transparent;
    transition: all 0.3s ease;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
}

.hero-content .btn-ghost:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: white;
}

.hero-stats {
    display: flex;
    gap: 28px;
    margin-top: 40px;
    animation: fadeInUp 0.9s ease 0.4s both;
    flex-wrap: wrap;
    align-items: center;
}

.hero-stat strong {
    display: block;
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1;
}

.hero-stat span {
    font-size: 12px;
    opacity: 0.8;
    margin-top: 3px;
    display: block;
}

.hero-stat-divider {
    width: 1px;
    height: 36px;
    background: rgba(255, 255, 255, 0.35);
}

.hero-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeInRight 1s ease 0.3s both;
}

.hero-products-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    max-width: 360px;
    width: 100%;
}

.hero-product-card {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    padding: 18px 14px;
    text-align: center;
    color: white;
    transition: transform 0.3s ease, background 0.3s ease;
    cursor: pointer;
    position: relative;
}

.hero-product-card:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-5px);
}

.hero-product-card.featured {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 14px;
    text-align: left;
    padding: 16px 20px;
}

.hero-product-icon {
    font-size: 2.2rem;
    margin-bottom: 8px;
    display: block;
}

.hero-product-card.featured .hero-product-icon {
    font-size: 2.5rem;
    margin-bottom: 0;
    flex-shrink: 0;
}

.hero-product-name {
    font-size: 13px;
    font-weight: 600;
    opacity: 0.95;
    display: block;
}

.hero-product-price {
    font-size: 12px;
    opacity: 0.8;
    display: block;
    margin-top: 3px;
}

.hero-product-card.featured .hero-product-name {
    font-size: 14px;
}

.hero-product-card.featured .hero-product-price {
    font-size: 13px;
    opacity: 0.85;
}

.hero-discount-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #fbbf24;
    color: #78350f;
    font-size: 11px;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 50px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    animation: float 2.5s ease-in-out infinite;
    white-space: nowrap;
}

.hero-free-ship {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: white;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 18px;
    border-radius: 50px;
    white-space: nowrap;
}

/* =============================
   HOME — Best sellers
   ============================= */
.home-best-section {
    padding: 32px 0 42px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 40%, #f1f5f9 100%);
    border-bottom: 1px solid #e2e8f0;
}

.home-best-section .best-category-head .section-eyebrow {
    font-size: 14px;
    font-weight: 700;
    padding: 8px 18px;
    margin-bottom: 12px;
}

.home-best-products-inner {
    max-width: 1180px;
}

.home-best-section .home-best-grid.cols-4 {
    max-width: min(1120px, 100%);
    margin-inline: auto;
}

@media (max-width: 768px) {
    .home-best-section {
        padding: 16px 0 28px;
    }

    .home-best-section .best-category-head {
        margin-bottom: 0.6rem;
    }

    .home-best-section .best-category-head .section-eyebrow {
        margin-bottom: 8px;
    }
}


.products-browse-panel .products-inline-category-sidebar.category-sidebar {
    top: 88px;
    max-height: calc(100vh - 100px);
}

/* Category gallery tiles (home previously; primary use: products page) */
.category-gallery-section {
    margin-bottom: 1rem;
}

.category-gallery-intro {
    max-width: 38rem;
    margin-bottom: 1.75rem;
}

.category-gallery-heading {
    font-size: clamp(1.65rem, 3vw, 2.15rem);
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
    margin: 0.35rem 0 0.5rem;
}

.category-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 1.35rem;
}

.category-gallery-grid>.category-gallery-tile.category-item {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 0;
    margin: 0;
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    box-shadow: 0 10px 32px rgba(15, 23, 42, 0.07);
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.2s ease;
    border-left: none;
    font-size: inherit;
}

.category-gallery-grid>.category-gallery-tile.category-item:hover {
    transform: translateY(-6px);
    border-color: #bae6fd;
    box-shadow: 0 18px 42px rgba(14, 165, 233, 0.18);
    background: #ffffff;
}

.category-gallery-grid>.category-gallery-tile.category-item.active {
    border-color: #0284c7;
    box-shadow: 0 14px 36px rgba(2, 132, 199, 0.22);
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 55%);
}

.category-gallery-tile-visual {
    height: 148px;
    background: linear-gradient(145deg, #0c2847 0%, #0369a1 42%, #0ea5e9 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 2.75rem;
    opacity: 0.96;
}

.category-gallery-grid>.category-gallery-tile.category-item.active .category-gallery-tile-visual {
    background: linear-gradient(145deg, #082f49 0%, #075985 50%, #0284c7 100%);
}

.category-gallery-tile-title {
    font-size: 1.14rem;
    font-weight: 800;
    color: #0f172a;
    margin: 1rem 1rem 0.35rem;
    line-height: 1.3;
    letter-spacing: -0.02em;
    text-transform: none;
}

.category-gallery-tile-meta {
    margin: 0 1rem 0.85rem;
    font-size: 0.82rem;
    color: #64748b;
}

.category-gallery-tile-meta .cat-count {
    font-weight: 700;
    color: #0369a1;
}

.category-gallery-grid>.category-gallery-tile.category-item:not(.active) .cat-count {
    background: transparent;
    color: #0369a1;
    padding: 0;
    border-radius: 0;
}

.category-gallery-grid>.category-gallery-tile.category-item.active .cat-count {
    background: transparent;
    color: #0284c7;
}

.category-gallery-tile-cta {
    display: block;
    margin-top: auto;
    padding: 0.85rem 1rem;
    border-top: 1px solid #eef2f7;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #0369a1;
}

.category-gallery-grid>.category-gallery-tile.category-item:hover .category-gallery-tile-cta {
    color: #0284c7;
}

.home-best-grid {
    gap: 18px;
}

@media (max-width: 991px) {
    .category-gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 1rem;
    }

    .category-gallery-tile-visual {
        height: 118px;
        font-size: 2.2rem;
    }

    .home-best-grid.cols-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 991px) and (min-width: 769px) {
    .home-best-section {
        padding: 22px 0 30px;
    }
}

@media (max-width: 576px) {
    .home-best-grid.cols-4 {
        grid-template-columns: 1fr;
    }
}

/* =============================
   PRODUCTS SECTION
   ============================= */
.products-section {
    padding: 60px 0;
    background: #f8f9fa;
}

/* Products page: category gallery panel — full width on desktop, drawer on mobile */
.products-section .products-category-sidebar.category-sidebar {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    max-height: none;
    transform: none;
    margin-bottom: 0;
}

.category-gallery-section--products .category-gallery-intro {
    margin-bottom: 1.25rem;
}

@media (min-width: 769px) {
    .products-section .products-category-sidebar .category-sidebar-header {
        display: none;
    }
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

.section-header p {
    font-size: 1.1rem;
    color: #666;
}

/* =============================
   CATEGORY SIDEBAR
   ============================= */
.category-sidebar {
    background: white;
    border-radius: 12px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    position: sticky;
    top: 90px;
    max-height: calc(100vh - 110px);
    overflow-y: auto;
}

/* Improve sidebar scrollbar */
.category-sidebar::-webkit-scrollbar {
    width: 4px;
}

.category-sidebar::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.category-sidebar::-webkit-scrollbar-thumb {
    background: #0ea5e9;
    border-radius: 10px;
}

.category-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    color: #334155;
    padding: 12px 18px;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.02em;
    border-bottom: 1px solid var(--we-border, #dbeafe);
}

.category-sidebar-header i {
    color: var(--we-primary-dark, #0284c7);
}

.products-section .products-category-sidebar .category-sidebar-header .mobile-categories-close {
    color: #475569;
    opacity: 0.9;
}

.products-section .products-category-sidebar .category-sidebar-header .mobile-categories-close:hover {
    color: var(--we-primary-dark, #0284c7);
    opacity: 1;
}

.category-list {
    list-style: none;
    padding: 8px 0;
    margin: 0;
}

.category-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    cursor: pointer;
    transition: all 0.25s ease;
    border-left: 3px solid transparent;
    font-size: 14px;
    color: #555;
}

.category-item:hover {
    background: #f0f9ff;
    color: #0ea5e9;
    border-left-color: #0ea5e9;
}

.category-item.active {
    background: #f0f9ff;
    color: #0ea5e9;
    font-weight: 700;
    border-left-color: #0ea5e9;
}

.category-item i {
    font-size: 14px;
    width: 18px;
    text-align: center;
    color: inherit;
}

.category-item span:nth-child(2) {
    flex: 1;
}

/* Product count in each category */
.cat-count {
    background: #0ea5e9 !important;
    color: white !important;
    border-radius: 12px;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 700;
    min-width: 24px;
    text-align: center;
}

.category-item:not(.active) .cat-count {
    background: #e9ecef !important;
    color: #666 !important;
}

/* =============================
   PRODUCTS TOOLBAR
   ============================= */
.products-toolbar {
    background: white;
    padding: 12px 18px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    gap: 10px;
    flex-wrap: wrap;
}

.products-sticky-controls {
    position: static;
    top: auto;
    z-index: auto;
    background: transparent;
    padding-bottom: 8px;
}

.results-info {
    font-size: 14px;
    color: #666;
}

.products-breadcrumb-bar {
    position: sticky;
    top: 92px;
    z-index: 8;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px 12px;
    margin-bottom: 14px;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
}

.products-breadcrumb-bar a {
    color: #475569;
}

.products-breadcrumb-bar a:hover {
    color: #0284c7;
}

.category-columns-control {
    display: none;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.category-columns-control .form-label {
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
}

.category-columns-control .form-select {
    width: auto;
    min-width: 138px;
}

#categoriesGrid > .category-grid-breadcrumb {
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
}

.category-grid-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.category-grid-card-image {
    height: 210px;
    overflow: hidden;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.category-grid-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.category-grid-card-image .fade-in-img {
    opacity: 1;
    animation: none;
}

.category-grid-card-body {
    min-width: 0;
    padding: 16px 14px 18px;
}

.category-grid-card-title {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: normal;
    line-height: 1.18;
}

@media (max-width: 768px) {
    .category-grid-toolbar {
        align-items: center;
        margin-bottom: 14px !important;
    }

    .category-grid-toolbar h4 {
        font-size: 18px;
    }

    .category-columns-control {
        display: flex;
    }

    #categoriesGrid.category-grid-cols-2 > .col {
        flex: 0 0 auto;
        width: 50%;
    }

    #categoriesGrid.category-grid-cols-3 > .col {
        flex: 0 0 auto;
        width: 33.333333%;
    }

    #categoriesGrid {
        --bs-gutter-x: 0.75rem;
        --bs-gutter-y: 0.75rem;
    }

    .category-grid-card-image {
        height: 132px;
        padding: 10px;
    }

    .category-grid-card-body {
        padding: 10px 8px 12px;
    }

    .category-grid-card-title {
        font-size: 13px;
        line-height: 1.15;
        margin-bottom: 4px !important;
    }

    .category-grid-card .card-text {
        font-size: 11px;
        line-height: 1.2;
    }

    #categoriesGrid.category-grid-cols-3 {
        --bs-gutter-x: 0.55rem;
        --bs-gutter-y: 0.65rem;
    }

    #categoriesGrid.category-grid-cols-3 .category-grid-card-image {
        height: 104px;
        padding: 7px;
    }

    #categoriesGrid.category-grid-cols-3 .category-grid-card-body {
        padding: 8px 5px 10px;
    }

    #categoriesGrid.category-grid-cols-3 .category-grid-card-title {
        font-size: 11px;
    }

    #categoriesGrid.category-grid-cols-3 .category-grid-card .card-text {
        font-size: 10px;
    }
}

/* =============================
   PRODUCTS GRID
   ============================= */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    margin-top: 0;
    align-items: stretch;
}

.products-grid.cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.products-grid.cols-6 {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.products-grid.cols-5 {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.products-grid.cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.products-grid.cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.products-grid.cols-1 {
    grid-template-columns: 1fr;
}

/* Tablet / iPad (769px–1024px): exactly two columns — matches script.js breakpoints */
@media (min-width: 769px) and (max-width: 991.98px) {
    .products-grid.cols-1 {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .products-grid.cols-2,
    .products-grid.cols-6 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .products-grid.cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 12px;
    }

    .products-grid.cols-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 9px;
    }

    .products-grid.cols-3 .product-card .product-info {
        padding: 10px 10px 12px;
    }

    .products-grid.cols-3 .product-card h4 {
        font-size: 13px;
        line-height: 1.25;
    }

    .products-grid.cols-3 .product-card .btn {
        font-size: 12px;
        padding: 7px 8px;
    }

    .products-grid.cols-4 .product-card .product-info {
        padding: 8px 7px 9px;
    }

    .products-grid.cols-4 .product-card h4 {
        font-size: 11px;
        line-height: 1.2;
    }

    .products-grid.cols-4 .product-card .price,
    .products-grid.cols-4 .product-card .product-price {
        font-size: 12px;
    }

    .products-grid.cols-4 .product-card .btn {
        font-size: 10px;
        padding: 6px 6px;
    }

    #productsBrowsePanel {
        width: 100%;
        max-width: 100%;
        flex: 0 0 100%;
    }

    .products-toolbar-row {
        align-items: stretch !important;
        gap: 10px;
        flex-wrap: wrap;
    }

    .products-toolbar-row .results-info {
        flex: 1 1 100%;
        font-size: 13px;
    }

    .products-view-controls {
        width: 100%;
        display: grid !important;
        grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, .9fr);
        gap: 8px !important;
    }

    .products-view-controls .form-select {
        width: 100% !important;
        min-height: 42px;
        font-size: 13px;
        padding-right: 30px;
        touch-action: manipulation;
    }
}

/* iPad Pro / large tablet: user can choose 3, 4, or 5 products per row. */
@media (min-width: 992px) and (max-width: 1180px) {
    .products-grid.cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 16px;
    }

    .products-grid.cols-4,
    .products-grid.cols-6 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 14px;
    }

    .products-grid.cols-5 {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 10px;
    }

    .products-grid.cols-5 .product-card .product-info {
        padding: 9px 8px 10px;
    }

    .products-grid.cols-5 .product-card h4 {
        font-size: 12px;
        line-height: 1.22;
    }

    .products-grid.cols-5 .product-card .price,
    .products-grid.cols-5 .product-card .product-price {
        font-size: 13px;
    }

    .products-grid.cols-5 .product-card .btn {
        font-size: 11px;
        padding: 6px 7px;
    }

    .products-view-controls .form-select {
        min-height: 38px;
        touch-action: manipulation;
    }
}

.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.14);
}

.product-title-link {
    color: inherit;
    text-decoration: none;
}

.product-title-link:hover,
.product-title-link:focus-visible {
    color: #0369a1;
    text-decoration: underline;
}

@media (hover: none) {
    .product-card:hover {
        transform: none;
        box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    }
}

.product-image {
    aspect-ratio: 1 / 1;
    width: 100%;
    flex-shrink: 0;
    background: linear-gradient(45deg, #0369a1, #0284c7);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.5rem;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    /* Decode off main thread where supported; avoids “hang” while large files decode on mobile */
    decoding: async;
}

.product-card--thumb-by-title .product-image {
    display: none;
}

.product-card--thumb-by-title .product-info {
    flex: 1;
}

.product-title-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 6px;
}

.product-thumb-inline {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 10px;
    flex-shrink: 0;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    decoding: async;
}

.product-thumb-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 1.35rem;
}

.product-title-text {
    flex: 1;
    min-width: 0;
}

.product-card--thumb-by-title .product-title-text .badge {
    margin-bottom: 6px;
}

.product-card--thumb-by-title .product-title-text h4 {
    margin-bottom: 0;
}

.admin-products-thumb-cell {
    width: 76px;
    vertical-align: middle;
    text-align: center;
}

.admin-products-table-thumb {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid #dee2e6;
    display: inline-block;
    vertical-align: middle;
}

.admin-products-thumb-placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 10px;
    background: #f8f9fa;
    border: 1px dashed #ced4da;
    font-size: 1.25rem;
}

/* Product modal: allow full-resolution preview (was 200px — looked pixelated). */
.product-option-preview-img {
    width: 100%;
    max-height: min(72vh, 560px);
    object-fit: contain;
    background: #f8fafc;
}

.product-info {
    padding: 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-card .product-info .badge {
    align-self: flex-start;
    width: auto;
    max-width: 100%;
    display: inline-block;
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.2;
    margin-bottom: 10px !important;
}

.product-info h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
    line-height: 1.3;
    white-space: normal;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    min-height: 2.6em;
}

.product-info p {
    color: #666;
    margin-bottom: 12px;
    font-size: 0.85rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price {
    font-size: 1.15rem;
    font-weight: 600;
    color: #0284c7;
    margin-top: auto;
    margin-bottom: 12px;
}

.btn-add-cart {
    width: 100%;
    background: #0ea5e9;
    color: white;
    border: none;
    padding: 9px;
    border-radius: 8px;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    white-space: nowrap;
    padding-left: 6px;
    padding-right: 6px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.product-actions {
    margin-top: auto;
}

/* If actions immediately follows price, the price absorbs the free space, 
   so actions should stick tightly to the price. */
.product-price+.product-actions {
    margin-top: 0;
}

.btn-add-cart:hover {
    background: #0284c7;
    transform: translateY(-1px);
}

/* No results */
.no-results {
    text-align: center;
    padding: 60px 20px;
    color: #999;
    font-size: 1.1rem;
}

/* =============================
   PAGINATION
   ============================= */
.pagination-wrapper {
    margin-top: 40px;
    padding: 20px 0;
}

.pagination {
    gap: 6px;
    flex-wrap: wrap;
}

.pagination .page-item .page-link {
    border-radius: 8px !important;
    border: 2px solid #e9ecef;
    color: #555;
    font-weight: 600;
    padding: 8px 14px;
    font-family: 'Inter', sans-serif;
    transition: all 0.25s ease;
    min-width: 42px;
    text-align: center;
}

.pagination .page-item .page-link:hover {
    background: #f0f9ff;
    border-color: #0ea5e9;
    color: #0ea5e9;
}

.pagination .page-item.active .page-link {
    background: #0ea5e9;
    border-color: #0ea5e9;
    color: white;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.35);
}

.pagination .page-item.disabled .page-link {
    opacity: 0.4;
    cursor: not-allowed;
}

.page-info {
    font-size: 13px;
    color: #888;
}

/* =============================
   ABOUT SECTION
   ============================= */
.about-section {
    padding: 80px 0;
    background: white;
}

.about-content h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
}

.about-content p {
    font-size: 1.05rem;
    color: #666;
    margin-bottom: 25px;
    line-height: 1.8;
}

.features {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 12px;
}

.feature i {
    color: #0ea5e9;
    font-size: 1.2rem;
}

.feature span {
    font-weight: 500;
    color: #333;
}

.about-image {
    text-align: center;
}

.about-icon {
    font-size: 10rem;
    color: #0ea5e9;
    opacity: 0.1;
}

/* =============================
   CONTACT SECTION (home)
   ============================= */
.contact-section {
    padding-top: 0.5rem;
    padding-bottom: clamp(2.5rem, 6vw, 4rem);
}

/* =============================
   CONTACT GRID
   ============================= */
.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.contact-item {
    background: white;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-5px);
}

.contact-item i {
    font-size: 2.2rem;
    color: #0ea5e9;
    margin-bottom: 15px;
}

.contact-item h4 {
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.contact-item p {
    color: #666;
    margin: 0;
}

a.contact-item {
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

a.contact-item:hover {
    color: inherit;
}

a.contact-item:focus-visible {
    outline: 3px solid rgba(14, 165, 233, 0.55);
    outline-offset: 3px;
}

/* =============================
   ADMIN PANEL
   ============================= */
.admin-tabs .nav-tabs {
    border-bottom: 2px solid rgba(14, 165, 233, 0.2);
}

.admin-tabs .nav-link {
    border: none;
    color: #666;
    font-weight: 500;
    padding: 12px 18px;
}

.admin-tabs .nav-link.active {
    background: #0ea5e9;
    color: white;
    border-radius: 10px 10px 0 0;
    border-bottom: 2px solid #0284c7;
}

/* Wide admin tables: horizontal scroll on phones (Categories, Staff Accounts, etc.) */
.admin-table-scroll-x {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
}

.admin-table-scroll-x .table {
    min-width: max-content;
    margin-bottom: 0;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
    margin-top: 20px;
}

.stat-card {
    background: white;
    padding: 22px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    gap: 18px;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
}

.stat-card i {
    font-size: 2.2rem;
    color: #0ea5e9;
}

.stat-info h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 4px;
}

.stat-info p {
    color: #666;
    margin: 0;
}

.quick-actions {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.quick-actions h4 {
    margin-bottom: 18px;
    color: #333;
}

.quick-actions .btn {
    margin-right: 10px;
    margin-bottom: 10px;
}

/* =============================
   FOOTER
   ============================= */
.footer {
    background: #0369a1;
    color: white;
    padding: 2.25rem 0 0.5rem;
    margin-top: 0;
}

.footer-section h4,
.footer-section h5 {
    position: relative;
    display: block;
    width: 100%;
    max-width: 100%;
    margin-bottom: 10px;
    padding-bottom: 10px;
    font-size: 1.05rem;
    color: #e0f2fe;
}

.footer-section h4::after,
.footer-section h5::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, #7dd3fc, #bae6fd, rgba(240, 249, 255, 0.9));
    box-shadow: 0 0 10px rgba(125, 211, 252, 0.28);
}

.footer-section h4 {
    font-size: 1.15rem;
}

/* Underline accents — same cool theme as footer (#0369a1), subtle shift per column */
.footer-section .row > [class*='col-']:nth-child(1) h4::after,
.footer-section .row > [class*='col-']:nth-child(1) h5::after {
    background: linear-gradient(90deg, #e0f2fe, #7dd3fc, #38bdf8);
    box-shadow: 0 0 10px rgba(224, 242, 254, 0.35);
}

.footer-section .row > [class*='col-']:nth-child(2) h5::after {
    background: linear-gradient(90deg, #38bdf8, #bae6fd, #e0f2fe);
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.3);
}

.footer-section .row > [class*='col-']:nth-child(3) h5::after {
    background: linear-gradient(90deg, #0ea5e9, #7dd3fc, #f0f9ff);
    box-shadow: 0 0 10px rgba(14, 165, 233, 0.28);
}

.footer-section .row > [class*='col-']:nth-child(4) h5::after {
    background: linear-gradient(90deg, #22d3ee, #a5f3fc, #f8fafc);
    box-shadow: 0 0 10px rgba(34, 211, 238, 0.22);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 4px;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: white;
}

.footer-section .contact-info p {
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 4px;
    font-size: 0.9rem;
}

.footer-section .contact-info a {
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-section .contact-info .footer-contact-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 28px;
    max-width: 100%;
    overflow-wrap: anywhere;
}

.footer-section .contact-info a:hover {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.footer-section > .container > .row > div > p {
    font-size: 0.9rem;
    line-height: 1.45;
    margin-bottom: 0;
}

.footer-section .contact-info i {
    color: #bae6fd;
    margin-right: 0;
    flex: 0 0 auto;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: 10px;
    padding: 8px 0 0;
    text-align: center;
    color: #bdc3c7;
    font-size: 0.85rem;
}

.footer-bottom p {
    margin: 0;
}

.footer-location-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(186, 230, 253, 0.25);
    border-radius: 10px;
    padding: 8px;
    box-shadow: 0 6px 18px rgba(2, 132, 199, 0.14);
}

.footer-location-map {
    height: 110px;
    border-radius: 12px;
    border: 1px dashed rgba(186, 230, 253, 0.45);
    background: rgba(0, 0, 0, 0.12);
    display: block;
    margin-bottom: 10px;
    overflow: hidden;
}

.footer-location-map-embed {
    height: auto;
    padding: 0;
    border-style: solid;
    border-color: rgba(186, 230, 253, 0.35);
    background: rgba(0, 0, 0, 0.08);
}

.footer-location-map-embed iframe {
    display: block;
    width: 100%;
    height: 140px;
    border: 0;
    border-radius: 8px;
}

/* Google blocks most Maps URLs inside iframes unless you use Share → Embed. Use a tap-to-open card instead. */
a.footer-location-map-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-decoration: none;
    color: #e0f2fe;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.35), rgba(2, 132, 199, 0.25));
    border: 1px solid rgba(186, 230, 253, 0.35);
    border-style: solid;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

a.footer-location-map-link:hover {
    color: #fff;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.55), rgba(2, 132, 199, 0.45));
    border-color: rgba(125, 211, 252, 0.65);
    transform: translateY(-1px);
}

.footer-location-map-icon {
    font-size: 28px;
    color: #bae6fd;
    line-height: 1;
}

.footer-location-map-cta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.2;
}

.footer-location-map-title {
    font-weight: 800;
    font-size: 14px;
    letter-spacing: 0.02em;
}

.footer-location-map-sub {
    font-size: 12px;
    font-weight: 600;
    opacity: 0.9;
}

.footer-location-text {
    min-height: 0;
    margin-top: 6px;
    color: rgba(255, 255, 255, 0.75);
    font-weight: 600;
    font-size: 13px;
    line-height: 1.35;
}

.footer-location-text:empty {
    display: none;
    margin-top: 0;
}

/* Shopping cart — product thumbnail in table row */
.cart-line-product {
    min-width: 0;
}

.cart-line-thumb-wrap {
    flex: 0 0 64px;
    width: 64px;
    height: 64px;
    border-radius: 10px;
    overflow: hidden;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.cart-line-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cart-line-thumb-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    color: #94a3b8;
}

.cart-quantity-control {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.cart-quantity-btn {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.cart-quantity-input {
    width: 70px;
    min-width: 70px;
    height: 42px;
    text-align: center;
    font-weight: 700;
    font-size: 1rem;
    padding-left: 8px;
    padding-right: 8px;
}

.cart-quantity-input::-webkit-outer-spin-button,
.cart-quantity-input::-webkit-inner-spin-button {
    margin: 0;
}

.cart-quantity-input {
    -moz-appearance: textfield;
}

@media (max-width: 767px) {
    #cartModal .cart-items-scroll {
        overflow-x: visible !important;
    }

    #cartModal .cart-items-table {
        display: block;
        min-width: 0;
        margin-bottom: 0;
    }

    #cartModal .cart-items-table thead {
        display: none;
    }

    #cartModal .cart-items-table tbody {
        display: grid;
        gap: 12px;
    }

    #cartModal .cart-items-table tr {
        display: grid;
        gap: 12px;
        padding: 12px;
        border: 1px solid #e2e8f0;
        border-radius: 10px;
        background: #ffffff;
        box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    }

    #cartModal .cart-items-table td {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        border: 0;
        padding: 0;
        color: #0f172a;
        font-size: 0.95rem;
    }

    #cartModal .cart-items-table td::before {
        content: attr(data-label);
        flex: 0 0 auto;
        color: #64748b;
        font-size: 0.78rem;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 0;
    }

    #cartModal .cart-item-product-cell {
        display: block;
    }

    #cartModal .cart-item-product-cell::before,
    #cartModal .cart-item-actions-cell::before {
        display: none;
    }

    #cartModal .cart-line-product {
        gap: 10px !important;
        align-items: flex-start !important;
    }

    #cartModal .cart-line-thumb-wrap {
        flex-basis: 58px;
        width: 58px;
        height: 58px;
        border-radius: 8px;
    }

    #cartModal .cart-quantity-control {
        gap: 6px;
    }

    #cartModal .cart-quantity-btn {
        width: 38px;
        height: 38px;
    }

    #cartModal .cart-quantity-input {
        width: 58px;
        min-width: 58px;
        height: 38px;
    }

    #cartModal .cart-item-actions-cell {
        justify-content: flex-end;
    }

    #cartModal .cart-checkout-btn {
        order: 1;
    }

    #cartModal .cart-continue-btn {
        order: 2;
    }

    #checkoutModal .checkout-confirm-btn {
        order: 1;
    }

    #checkoutModal .checkout-cancel-btn {
        order: 2;
    }
}

/* =============================
   MODAL
   ============================= */
.modal-content {
    border-radius: 15px;
    border: none;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

#adminModal .admin-modal-dialog {
    width: min(96vw, 1680px);
    max-width: none;
    margin: 1rem auto;
}

#adminModal .modal-content {
    min-height: calc(100vh - 2rem);
}

.modal-header {
    background: linear-gradient(135deg, #0284c7, #0ea5e9);
    color: white;
    border-radius: 15px 15px 0 0;
    border-bottom: none;
}

.modal-title {
    font-weight: 600;
}

.btn-close {
    filter: brightness(0) invert(1);
}

/* Color swatches in product options modal */
.color-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.color-swatch {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    outline: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.color-swatch:hover {
    transform: scale(1.08);
}

.color-swatch.active {
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.35);
    transform: scale(1.08);
}

/* Admin RGB color picker */
.admin-colors-picker-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-color-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.admin-color-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    background: #f8fafc;
    font-size: 12px;
}

.admin-color-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 1px solid #cbd5e1;
}

.admin-color-text {
    color: #334155;
}

.admin-color-remove {
    background: transparent;
    border: none;
    color: #64748b;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
}

.admin-color-remove:hover {
    color: #dc2626;
}

.variant-builder-row {
    display: grid;
    grid-template-columns: 1fr 1.4fr auto;
    gap: 10px;
}

.variant-map-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.variant-map-item {
    display: grid;
    grid-template-columns: 1fr 1.5fr auto;
    gap: 8px;
    align-items: center;
    padding: 8px 10px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
}

.variant-map-key {
    font-family: monospace;
    font-size: 12px;
    color: #0f172a;
    word-break: break-all;
}

.variant-map-url {
    font-size: 12px;
    color: #475569;
    word-break: break-all;
}

/* =============================
   TABLE
   ============================= */
.table {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.table th {
    background: #0284c7;
    color: white;
    border: none;
    padding: 14px;
    font-weight: 600;
}

.table td {
    padding: 13px;
    border-color: #e9ecef;
    vertical-align: middle;
}

.btn-sm {
    padding: 5px 10px;
    font-size: 0.875rem;
    margin: 0 2px;
}

/* =============================
   ADMIN TABLE PAGINATION
   ============================= */
/* Fix modal body scroll — shows pagination */
.modal-body {
    max-height: 75vh;
    overflow-y: auto;
}

.admin-pagination-wrapper .pagination {
    gap: 4px;
}

.admin-pagination-wrapper .pagination .page-link {
    border-radius: 6px !important;
    border: 2px solid #e9ecef;
    color: #555;
    font-weight: 600;
    padding: 5px 11px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    transition: all 0.2s ease;
    min-width: 36px;
    text-align: center;
}

.admin-pagination-wrapper .pagination .page-link:hover {
    background: #f0f9ff;
    border-color: #0ea5e9;
    color: #0ea5e9;
}

.admin-pagination-wrapper .pagination .page-item.active .page-link {
    background: #0ea5e9;
    border-color: #0ea5e9;
    color: white;
    font-weight: 700;
    box-shadow: 0 3px 8px rgba(14, 165, 233, 0.3);
}

.admin-pagination-wrapper .pagination .page-item.disabled .page-link {
    opacity: 0.4;
    cursor: not-allowed;
}

/* =============================
   ALERTS
   ============================= */
.alert {
    border-radius: 10px;
    border: none;
    padding: 14px 18px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
}

.alert-danger {
    background: #f8d7da;
    color: #721c24;
}

/* =============================
   ANIMATIONS
   ============================= */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* =============================
   RESPONSIVE
   ============================= */
.mobile-filter-toggle,
.mobile-categories-close,
.mobile-categories-overlay,
.mobile-filter-fab {
    display: none;
}

@media (max-width: 768px) {

    /*
     * Sticky header: do not set overflow-x: hidden on BOTH html and body — iOS Safari
     * (and some Chromium builds) stop honoring position:sticky on #mainHeader when body
     * clips overflow. Keep horizontal clip on html only; body stays visible on x-axis.
     */
    html {
        overflow-x: hidden;
    }

    body {
        overflow-x: visible;
    }

    .navbar-brand {
        font-size: 18px;
        gap: 8px;
    }

    .navbar-brand > img {
        width: 96px !important;
        height: 56px !important;
        padding: 2px;
    }

    .brand-logo-mini {
        width: 48px;
        height: 22px;
    }

    .navbar-collapse {
        overflow-x: hidden;
    }

    .nav-quick-actions {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: flex-start;
        gap: 6px;
        margin: 10px 0 8px;
        padding: 6px;
        white-space: normal;
    }

    .nav-quick-actions>.btn,
    .nav-quick-actions #authButtons,
    .nav-quick-actions #userButtons {
        flex: 1 1 auto;
        min-width: 0;
    }

    #authButtons .btn,
    #userButtons .btn,
    .nav-quick-actions>.btn {
        width: 100%;
        font-size: 13px;
        padding: 7px 10px;
        white-space: nowrap;
    }

    #userButtons {
        flex-wrap: wrap;
        gap: 6px;
        width: 100%;
    }

    /* Hide when inline style uses either "display:none" or "display: none" */
    #userButtons[style*="display:none"],
    #userButtons[style*="display: none"] {
        display: none !important;
    }

    #welcomeMessage {
        width: 100%;
        display: block;
        margin: 0 0 2px 0 !important;
        font-size: 12px !important;
        line-height: 1.3;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    #adminPanelBtn {
        margin-right: 0 !important;
    }

    .search-box {
        width: 100%;
        min-width: 0;
        display: grid;
        grid-template-columns: 1fr auto;
        gap: 8px;
        padding: 6px 8px;
        border-radius: 18px;
    }

    .search-box input {
        width: 100%;
        min-width: 0;
        padding: 8px 10px;
        font-size: 16px;
    }

    input[type="text"],
    input[type="search"],
    input[type="tel"],
    input[type="email"],
    input[type="number"],
    textarea {
        font-size: 16px !important;
    }

    .search-box button {
        border-radius: 10px;
        padding: 8px 12px;
        line-height: 1;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content h1 .sub-headline {
        font-size: 1.1rem;
    }

    .hero-visual {
        margin-top: 20px;
    }

    .hero-products-grid {
        max-width: 100%;
    }

    .hero-free-ship {
        bottom: -30px;
        font-size: 11px;
    }

    .hero-stats {
        gap: 16px;
    }

    .hero-stat strong {
        font-size: 1.3rem;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .mobile-filter-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        border: 1px solid #dbeafe;
        background: #ffffff;
        color: #0f172a;
        font-weight: 700;
        border-radius: 12px;
        padding: 11px 14px;
        box-shadow: 0 6px 18px rgba(2, 6, 23, 0.08);
    }

    .mobile-filter-fab {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        position: fixed;
        left: 10px;
        bottom: 22%;
        width: 42px;
        height: 42px;
        border: 1px solid #bae6fd;
        background: #ffffff;
        color: #0284c7;
        border-radius: 12px;
        box-shadow: 0 10px 24px rgba(2, 132, 199, 0.2);
        z-index: 1070;
        opacity: 0;
        transform: translateX(-16px) scale(0.92);
        pointer-events: none;
        transition: opacity 0.24s ease, transform 0.24s ease;
    }

    .mobile-filter-fab.is-visible {
        opacity: 1;
        transform: translateX(0) scale(1);
        pointer-events: auto;
        animation: mobileFilterPop 0.35s ease;
    }

    @keyframes mobileFilterPop {
        0% {
            transform: translateX(-16px) scale(0.9);
        }

        55% {
            transform: translateX(0) scale(1.08);
        }

        100% {
            transform: translateX(0) scale(1);
        }
    }

    .category-sidebar {
        position: fixed;
        top: env(safe-area-inset-top, 0px);
        bottom: env(safe-area-inset-bottom, 0px);
        left: 0;
        width: min(82vw, 300px);
        margin-bottom: 0;
        border-radius: 0 14px 14px 0;
        overflow-y: auto;
        z-index: 1085;
        transform: translateX(-110%);
        transition: transform 0.28s ease;
        background: #fff;
        box-sizing: border-box;
    }

    /* Wider drawer for category tile grid */
    .products-section .products-category-sidebar.category-sidebar {
        width: min(94vw, 440px);
    }

    .category-sidebar-header {
        position: sticky;
        top: 0;
        z-index: 2;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .mobile-categories-close {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 30px;
        height: 30px;
        border: none;
        border-radius: 50%;
        background: #e2e8f0;
        color: #475569;
        cursor: pointer;
    }

    .mobile-categories-close:hover {
        background: #dbeafe;
        color: #0284c7;
    }

    .mobile-categories-overlay {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(2, 6, 23, 0.45);
        z-index: 1080;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.25s ease;
    }

    .category-list {
        display: block;
        padding: 8px 0;
        gap: 0;
        min-width: 0;
    }

    .category-item {
        border-left: 3px solid transparent;
        border-bottom: none;
        border-radius: 0;
        white-space: normal;
        padding: 10px 12px;
        font-size: 12px;
        gap: 8px;
    }

    .category-item.active,
    .category-item:hover {
        border-left-color: #0ea5e9;
        border-bottom-color: transparent;
    }

    .category-item span:nth-child(2) {
        overflow-wrap: anywhere;
    }

    .cat-count {
        min-width: 20px;
        padding: 2px 6px;
        font-size: 10px;
    }

    /* Phones / narrow: user can choose 1, 2 or 3 columns; 4/6 fall back to 2 columns. */
    .products-grid.cols-1 {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .products-grid.cols-2,
    .products-grid.cols-4,
    .products-grid.cols-5,
    .products-grid.cols-6 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .products-grid.cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }

    /* Trim down product cards when packed 3-up on phones so prices/buttons fit. */
    .products-grid.cols-3 .product-card .product-info {
        padding: 8px 8px 10px;
    }

    .products-grid.cols-3 .product-card h4 {
        font-size: 12px;
        line-height: 1.25;
    }

    .products-grid.cols-3 .product-card .price,
    .products-grid.cols-3 .product-card .product-price {
        font-size: 13px;
    }

    .products-grid.cols-3 .product-card .btn {
        font-size: 11px;
        padding: 6px 8px;
    }

    .products-toolbar {
        padding: 10px 12px;
        flex-wrap: wrap;
    }

    .category-sidebar-header {
        padding: 10px 12px;
        font-size: 13px;
    }

    .products-sticky-controls {
        top: auto;
        padding-bottom: 6px;
    }

    .results-info {
        font-size: 12px;
    }

    .sort-box {
        flex-wrap: wrap;
        justify-content: flex-end;
    }

    .sort-box .form-select {
        font-size: 12px;
    }

    .search-box input {
        width: 130px;
    }

    .dashboard-stats {
        grid-template-columns: 1fr 1fr;
    }

    .quick-actions .btn {
        display: block;
        width: 100%;
        margin: 8px 0;
    }

    /* Admin modal on mobile should look like full page */
    #adminModal .modal-dialog {
        margin: 0;
        max-width: 100%;
        width: 100%;
        height: 100%;
    }

    #adminModal .modal-content {
        border-radius: 0;
        border: none;
        box-shadow: none;
        min-height: 100vh;
        background: #f8f9fa;
    }

    #adminModal .modal-body {
        max-height: none;
        overflow-y: auto;
        padding: 14px 12px 20px;
    }

    #adminModal .modal-header {
        border-radius: 0;
        position: sticky;
        top: 0;
        z-index: 2;
    }

    body.mobile-categories-open {
        overflow: hidden;
    }

    body.mobile-categories-open .category-sidebar {
        transform: translateX(0);
    }

    body.mobile-categories-open .mobile-categories-overlay {
        opacity: 1;
        visibility: visible;
    }

    .products-grid {
        padding-bottom: 80px;
    }

    #products {
        width: 100%;
        max-width: 100%;
        overflow-x: clip;
    }

    #products > .row {
        --bs-gutter-x: 0;
        margin-left: 0;
        margin-right: 0;
    }

    #productsBrowsePanel {
        padding-left: 0;
        padding-right: 0;
    }

    .products-toolbar-row {
        width: 100%;
        max-width: 100%;
        display: grid !important;
        grid-template-columns: minmax(0, 1fr);
        align-items: stretch !important;
        justify-content: stretch !important;
        gap: 8px !important;
        margin-bottom: 12px !important;
    }

    .products-toolbar-row .results-info {
        width: 100%;
        min-width: 0;
        font-size: 12px;
        line-height: 1.35;
    }

    .products-view-controls {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 0.85fr);
        gap: 6px !important;
    }

    .products-view-controls .form-select {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100%;
        min-height: 36px;
        padding-left: 6px;
        padding-right: 24px;
        font-size: 11px;
        line-height: 1.2;
    }

    .product-card .product-info .badge {
        max-width: 100%;
        font-size: 10px !important;
        padding: 3px 6px !important;
    }

    .footer iframe,
    .footer img,
    .footer-location-card,
    .footer-location-map {
        max-width: 100%;
    }
}

/* ---- Tablet + Mobile: force tile/grid-only category layout ---- */
/* Applies to screens ≤1100px (mobile + tablet + small laptops).    */
/* Desktop >1100px is completely unaffected.                        */
@media (max-width: 1100px) {

    /* Hide the column/list category sidebar */
    #categorySidebar {
        display: none !important;
    }

    /* Hide the FAB that opens the sidebar drawer */
    #mobileFilterFab {
        display: none !important;
    }

    /* Tile grid fills full width without the sidebar */
    #categoriesGridPanel {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
    }

    #productsBrowsePanel {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
    }
}

@media (max-width: 1024px) {
    #adminModal .modal-dialog {
        margin: 0;
        max-width: 100%;
        width: 100%;
        height: 100%;
    }

    #adminModal .modal-content {
        border-radius: 0;
        border: none;
        box-shadow: none;
        min-height: 100vh;
        background: #f8f9fa;
    }

    #adminModal .modal-body {
        max-height: none;
        overflow-y: auto;
        padding: 14px 12px 20px;
    }

    #adminModal .modal-header {
        border-radius: 0;
        position: sticky;
        top: 0;
        z-index: 2;
    }
}

/* =============================
   CREATIVE MODERN REFRESH
   (same color theme, improved shapes/layout)
   ============================= */
:root {
    --we-primary: #0ea5e9;
    --we-primary-dark: #0284c7;
    --we-surface: #ffffff;
    --we-soft: #f8fbff;
    --we-border: #dbeafe;
    --we-shadow: 0 10px 30px rgba(14, 165, 233, 0.08);
}

html {
    scroll-behavior: smooth;
}

body {
    background: #ffffff;
}

.navbar {
    position: relative;
}

.navbar::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(14, 165, 233, 0.5), transparent);
}

.promo-section,
.products-section,
.about-section {
    position: relative;
}

.products-section {
    border-top-left-radius: 26px;
    border-top-right-radius: 26px;
    margin-top: -12px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.section-header h2 {
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.section-header h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--we-primary-dark), var(--we-primary));
}

.products-toolbar {
    border: 1px solid var(--we-border);
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: var(--we-shadow);
}

.category-sidebar {
    border: 1px solid var(--we-border);
    box-shadow: var(--we-shadow);
}

.product-card {
    border: 1px solid #eaf3ff;
    box-shadow: 0 8px 22px rgba(2, 6, 23, 0.08);
}

.product-card:hover {
    border-color: #bae6fd;
    box-shadow: 0 16px 32px rgba(14, 165, 233, 0.16);
}

.product-info {
    position: relative;
}

.product-info::before {
    content: '';
    position: absolute;
    left: 15px;
    right: 15px;
    top: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #dbeafe, transparent);
}

.about-section {
    background:
        linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.about-content {
    background: #ffffff;
    border: 1px solid var(--we-border);
    border-radius: 18px;
    padding: 26px;
    box-shadow: var(--we-shadow);
}

.about-image {
    background: linear-gradient(145deg, #f0f9ff, #e0f2fe);
    border: 1px solid #bae6fd;
    border-radius: 18px;
    padding: 18px;
    box-shadow: var(--we-shadow);
}

.contact-item {
    border: 1px solid #dbeafe;
    box-shadow: var(--we-shadow);
}

.contact-item:hover {
    border-color: #7dd3fc;
    box-shadow: 0 12px 26px rgba(14, 165, 233, 0.14);
}

.footer {
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -90px;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: rgba(125, 211, 252, 0.12);
}

.footer::after {
    content: '';
    position: absolute;
    bottom: -140px;
    left: -90px;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: rgba(125, 211, 252, 0.06);
}

.footer .container {
    position: relative;
    z-index: 1;
}

.modal-content {
    border: 1px solid #dbeafe;
}

.table {
    border: 1px solid #e2e8f0;
}

.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #e0f2fe;
    color: #0369a1;
    border: 1px solid #bae6fd;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.3px;
    padding: 5px 12px;
    margin-bottom: 10px;
}

.products-highlight-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.highlight-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    border: 1px solid #dbeafe;
    border-radius: 999px;
    color: #0f172a;
    font-size: 12px;
    font-weight: 600;
    padding: 8px 12px;
    box-shadow: 0 5px 15px rgba(14, 165, 233, 0.08);
}

.highlight-chip i {
    color: #0ea5e9;
}

.about-mini-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 0 0 16px;
}

.about-mini-stat {
    background: #f0f9ff;
    border: 1px solid #dbeafe;
    border-radius: 12px;
    padding: 10px;
    text-align: center;
}

.about-mini-stat strong {
    display: block;
    color: #0284c7;
    font-size: 18px;
    line-height: 1.1;
}

.about-mini-stat span {
    font-size: 12px;
    color: #475569;
    font-weight: 600;
}

.contact-block {
    margin-top: 22px;
}

.contact-header {
    margin-bottom: 0;
}

.admin-tabs .nav-link {
    border-radius: 10px 10px 0 0;
    position: relative;
    overflow: hidden;
}

.admin-tabs .nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: transparent;
    transition: background 0.25s ease;
}

.admin-tabs .nav-link.active::before {
    background: rgba(255, 255, 255, 0.9);
}

.quick-actions {
    background:
        linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.quick-actions .btn {
    border-radius: 10px;
    font-weight: 700;
    box-shadow: 0 6px 14px rgba(2, 132, 199, 0.14);
}

@media (max-width: 768px) {
    .about-mini-stats {
        grid-template-columns: 1fr;
    }
}

/* =============================
   HERO REFRESH (2 images + smooth motion)
   ============================= */
.promo-layout {
    display: grid;
    grid-template-columns: 1.65fr 1fr;
    gap: 14px;
    margin-bottom: 12px;
}

.promo-hero-card {
    min-height: 360px;
}

.promo-side-stack {
    display: grid;
    gap: 14px;
}

.promo-mini-card {
    min-height: 360px;
}

.promo-mini-card:nth-child(n+2) {
    display: none;
}

.promo-cards-row {
    display: none;
}

.promo-info-strip {
    display: flex;
}

.promo-hero-card img,
.promo-mini-card img {
    animation: gentleZoom 11s ease-in-out infinite alternate;
}

.promo-mini-card img {
    animation-duration: 13s;
}

.promo-hero-content {
    opacity: 0.9;
    transform: translateY(0);
    animation: softFloat 3.8s ease-in-out infinite;
}

.promo-mini-content {
    animation: softFloat 4.2s ease-in-out infinite;
}

.promo-hero-card:hover .promo-hero-overlay,
.promo-mini-card:hover .promo-mini-overlay {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.08) 0%, rgba(15, 23, 42, 0.45) 100%);
}

@keyframes gentleZoom {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.07);
    }
}

@keyframes softFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-4px);
    }
}

@media (max-width: 992px) {
    .promo-layout {
        grid-template-columns: 1fr;
    }

    .promo-hero-card,
    .promo-mini-card {
        min-height: 260px;
    }
}

/* Reverse hover behavior for promo images */
.promo-hero-card img,
.promo-mini-card img {
    transform: scale(1.06);
    transition: transform 0.4s ease;
}

.promo-hero-card:hover img,
.promo-mini-card:hover img {
    transform: scale(1);
}

.promo-hero-overlay,
.promo-mini-overlay {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.08) 0%, rgba(15, 23, 42, 0.28) 100%);
    transition: background 0.28s ease;
}

.promo-hero-card:hover .promo-hero-overlay,
.promo-mini-card:hover .promo-mini-overlay {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.22) 0%, rgba(15, 23, 42, 0.58) 100%);
}

/* Offer item builder (vertical layout) */
.offer-item-builder {
    display: grid;
    gap: 12px;
    padding: 14px;
    border: 1px solid #dbeafe;
    border-radius: 12px;
    background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
    box-shadow: 0 8px 20px rgba(2, 132, 199, 0.08);
}

.offer-item-builder-title {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.2px;
    color: #0369a1;
    text-transform: uppercase;
}

.offer-item-field .form-control {
    border-color: #bfdbfe;
    border-radius: 10px;
}

.offer-item-field .form-control:focus {
    border-color: #38bdf8;
    box-shadow: 0 0 0 0.2rem rgba(14, 165, 233, 0.15);
}

/* Invoice modal — searchable product picker (combo) */
.invoice-customer-combo {
    position: relative;
}

.invoice-customer-results {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 4px);
    z-index: 1090;
    max-height: 260px;
    overflow-y: auto;
    border: 1px solid #bfdbfe;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(2, 132, 199, 0.18);
}

.invoice-customer-combo.is-open .invoice-customer-results {
    display: block;
}

.invoice-customer-option {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border: 0;
    border-bottom: 1px solid #f1f5f9;
    padding: 0.65rem 0.75rem;
    background: #fff;
    color: #0f172a;
    text-align: left;
}

.invoice-customer-option:hover,
.invoice-customer-option:focus,
.invoice-customer-option.is-active {
    background: #e0f2fe;
    outline: none;
}

.invoice-customer-option small {
    color: #64748b;
    white-space: nowrap;
}

.invoice-customer-add {
    color: #0369a1;
    font-weight: 700;
}

.invoice-customer-add i {
    margin-right: 6px;
}

.invoice-customer-empty {
    padding: 0.75rem;
    font-size: 0.9rem;
}

.invoice-phone-field {
    display: grid;
    gap: 0.45rem;
}

.invoice-phone-toggle {
    min-height: 0;
    margin: 0;
    padding: 0.4rem 0.5rem 0.4rem 2rem;
    border: 1px solid #dbeafe;
    border-radius: 8px;
    background: #f8fafc;
    color: #334155;
    font-size: 0.92rem;
}

.invoice-phone-toggle .form-check-input {
    margin-top: 0.2rem;
}

.invoice-field-error {
    outline: 2px solid rgba(220, 53, 69, 0.55);
    outline-offset: 2px;
    border-radius: 10px;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.12);
}

.invoice-product-combo-trigger {
    cursor: pointer;
    background: #fff;
}

.invoice-product-combo-panel {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 2px);
    z-index: 1080;
    flex-direction: column;
    max-height: 300px;
    overflow: hidden;
    border-radius: 10px;
    border: 1px solid #bfdbfe;
    background: #fff;
    box-shadow: 0 12px 28px rgba(2, 132, 199, 0.18);
}

.invoice-product-combo-shell.is-open .invoice-product-combo-panel {
    display: flex;
}

.invoice-product-combo-shell.is-open .invoice-product-combo-trigger {
    border-color: #38bdf8;
    box-shadow: 0 0 0 0.2rem rgba(14, 165, 233, 0.15);
}

.invoice-product-combo-shell.is-open #itemProductTriggerIcon {
    transform: rotate(180deg);
}

#itemProductTriggerIcon {
    transition: transform 0.2s ease;
}

.invoice-product-combo-search {
    border-radius: 10px 10px 0 0 !important;
    border: 0 !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

.invoice-product-combo-list {
    overflow-y: auto;
    max-height: 220px;
}

.invoice-product-combo-option {
    display: block;
    width: 100%;
    text-align: left;
    border: 0;
    border-bottom: 1px solid #f1f5f9;
    padding: 0.5rem 0.75rem;
    background: #fff;
    font-size: 0.875rem;
    line-height: 1.35;
    color: #0f172a;
}

.invoice-product-combo-option:hover,
.invoice-product-combo-option:focus {
    background: #e0f2fe;
    outline: none;
}

.invoice-product-combo-option.invoice-product-combo-clear {
    font-size: 0.8rem;
}

.invoice-product-combo-empty {
    padding: 0.75rem;
    font-size: 0.85rem;
}

.offer-item-action .btn {
    width: 100%;
    border-radius: 10px;
    font-weight: 700;
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    border-color: #0284c7;
}

.offer-btn-primary,
.offer-btn-secondary {
    min-height: 40px;
}

.invoice-item-name-input {
    min-width: 230px;
}

.invoice-item-price-input {
    min-width: 110px;
    text-align: right;
}

.invoice-item-qty-input {
    min-width: 90px;
    text-align: center;
}

.invoice-item-image-input {
    min-width: 210px;
}

.invoice-list-shell {
    border: 1px solid #dbeafe;
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    padding: 12px;
}

.invoice-list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.invoice-search-card {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 10px;
    background: #ffffff;
}

.invoice-search-card .input-group-text {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #475569;
}

.invoice-layout {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
}

.invoice-type-sidebar {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 10px;
    border: 1px solid #dbeafe;
    border-radius: 14px;
    background: linear-gradient(180deg, #f8fbff 0%, #eef6ff 100%);
}

.invoice-type-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    background: #ffffff;
    color: #334155;
    font-weight: 700;
    padding: 10px 12px;
    transition: all 0.2s ease;
}

.invoice-type-btn strong {
    border-radius: 999px;
    min-width: 28px;
    text-align: center;
    padding: 2px 8px;
    font-size: 12px;
    background: #f1f5f9;
    color: #0f172a;
}

.invoice-type-btn:hover {
    transform: translateX(2px);
    border-color: #93c5fd;
    box-shadow: 0 8px 16px rgba(14, 165, 233, 0.12);
}

.invoice-type-btn.active {
    color: #ffffff;
    border-color: transparent;
}

.invoice-type-btn.active strong {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.invoice-type-btn.active.all {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
}

.invoice-type-btn.active.cash {
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
}

.invoice-type-btn.active.credit {
    background: linear-gradient(135deg, #eab308 0%, #ca8a04 100%);
}

.invoice-type-btn.active.offer {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
}

.invoice-table-wrap {
    border: 1px solid #dbeafe;
    border-radius: 12px;
    background: #ffffff;
    padding: 0;
}

.process-type-toolbar {
    display: flex;
    gap: 8px;
    padding: 10px;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fbff;
}

.process-mini-btn {
    width: auto;
    min-width: 140px;
    padding: 8px 10px;
    font-size: 13px;
}

.invoice-admin-table {
    margin-bottom: 0;
}

.invoice-admin-table thead th {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    color: #ffffff;
    font-weight: 700;
    border-bottom: 0;
    white-space: nowrap;
    vertical-align: middle;
}

.invoice-admin-table tbody td {
    vertical-align: middle;
    padding-top: 12px;
    padding-bottom: 12px;
}

.invoice-customer-cell {
    max-width: 240px;
    white-space: normal;
    word-break: break-word;
    font-weight: 600;
    color: #334155;
}

.invoice-amount-cell {
    text-align: right;
    font-weight: 700;
    white-space: nowrap;
}

.invoice-actions {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.invoice-actions .btn {
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.invoice-items-edit-table th,
.invoice-items-edit-table td {
    vertical-align: middle;
}

.invoice-items-edit-table thead th {
    white-space: nowrap;
}

.invoice-items-edit-table tfoot th {
    background: #f8fafc;
    font-weight: 700;
}

@media (max-width: 992px) {
    .invoice-layout {
        grid-template-columns: 1fr;
    }

    .invoice-type-sidebar {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    }

    .invoice-list-header {
        flex-direction: column;
        align-items: stretch;
    }

    .invoice-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .process-type-toolbar {
        flex-wrap: wrap;
    }

    .process-mini-btn {
        min-width: 120px;
        flex: 1 1 auto;
    }

    .invoice-item-image-input {
        min-width: 170px;
    }
}

/* =============================
   HERO BANNER RESPONSIVENESS
   ============================= */
.hero-image {
    width: 100%;
    height: auto;
    min-height: 250px;
    max-height: 80vh;
    object-fit: cover;
    object-position: center center;
    z-index: 2;
    position: relative;
    display: block;
}

.hero-picture {
    aspect-ratio: 2103 / 748;
    line-height: 0;
    overflow: hidden;
}

.hero-picture .hero-image {
    height: 100%;
    min-height: 0;
    max-height: none;
}

@media (max-width: 1024px) {
    .hero-picture {
        min-height: 320px;
    }

    .hero-image {
        object-position: center top;
        min-height: 320px;
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: auto !important;
    }

    .hero-picture {
        aspect-ratio: 1024 / 682;
        min-height: 0;
    }

    .hero-image {
        min-height: auto;
        height: 100%;
    }
}

/* =============================
   FEATURED CATEGORIES SECTION
   ============================= */
.featured-categories-section {
    position: relative;
    z-index: 1;
}

body,
.home-hero-slider-section,
.best-category-section,
.home-best-section,
.important-customers-section,
.promo-section,
.products-section,
.about-section,
.contact-section,
.featured-categories-section,
#products {
    background: #ffffff !important;
}

.modal-backdrop {
    background-color: #ffffff;
}

.modal-backdrop.show {
    opacity: 0.72;
}

.category-banner-card {
    display: block;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(14, 165, 233, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    border: 1px solid #e0f2fe;
}

.category-banner-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(14, 165, 233, 0.15);
    text-decoration: none;
}

.category-banner-image-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #f1f5f9;
}

.category-banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    decoding: async;
}

.category-banner-card:hover .category-banner-image {
    transform: scale(1.03);
}

@media (hover: none) {
    .category-banner-card:hover .category-banner-image {
        transform: none;
    }
}

.category-banner-content {
    padding: 20px;
    text-align: left;
    background: #ffffff;
}

.category-banner-title {
    color: #0369a1;
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.category-banner-desc {
    color: #475569;
    font-size: 14px;
    margin-bottom: 0;
    line-height: 1.5;
}

@media (max-width: 768px) {
    #homeFeaturedCategoryGrid {
        --bs-gutter-x: 0.75rem;
        --bs-gutter-y: 0.75rem;
    }

    #homeFeaturedCategoryGrid > .home-featured-category-col {
        flex: 0 0 auto;
        width: 50%;
    }

    .featured-categories-section {
        padding: 28px 0 !important;
    }

    .category-banner-image-wrap {
        aspect-ratio: 1 / 1;
        background: #ffffff;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 10px;
    }

    .category-banner-image {
        object-fit: contain;
    }

    .category-banner-content {
        padding: 10px 8px 12px;
    }

    .category-banner-title {
        font-size: 13px;
        line-height: 1.15;
        margin-bottom: 0;
        display: block;
        text-align: center;
        overflow-wrap: anywhere;
    }

    .category-banner-desc {
        display: none;
    }

    .category-banner-card {
        border-radius: 8px;
    }
}

/* Added for Category Admin Image UI */
@keyframes fadeInImg {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Fade only on larger screens — many animated imgs on mobile overload compositor during scroll */
.fade-in-img {
    opacity: 1;
}

@media (min-width: 769px) and (prefers-reduced-motion: no-preference) {
    .fade-in-img {
        opacity: 0;
        animation: fadeInImg 0.35s ease-out forwards;
    }
}


/* Auth & Nav Actions */
.nav-action-text {
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
    font-weight: 500;
    color: inherit;
    transition: opacity 0.2s ease, color 0.2s ease;
    text-decoration: none;
    cursor: pointer;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;


    /* Auth & Nav Actions */
    .nav-action-text {
        background: transparent;
        border: none;
        padding: 0;
        margin: 0;
        font-weight: 500;
        color: inherit;
        transition: opacity 0.2s ease, color 0.2s ease;
        text-decoration: none;
        cursor: pointer;
        font-size: 0.95rem;
        display: inline-flex;
        align-items: center;
        gap: 0.4rem;
    }

    .nav-action-text:hover {
        opacity: 0.7;
        text-decoration: underline;
    }

    .nav-action-text.text-danger:hover {
        color: var(--bs-danger);
    }

    .nav-action-text.text-primary:hover {
        color: var(--bs-primary);
    }

    .nav-action-text.text-secondary:hover {
        color: var(--bs-secondary);
    }

    /* =============================
   MOBILE CART MODAL FIX
   ============================= */
    @media (max-width: 767px) {

        /* Prevent the entire modal container from scrolling */
        #cartModal.modal {
            overflow: hidden !important;
            padding-right: 0 !important;
        }

        /* Constrain the dialog strictly to the viewport height minus margins */
        #cartModal .modal-dialog {
            margin: 0.5rem;
            height: calc(100vh - 1rem) !important;
            height: calc(100dvh - 1rem) !important;
            max-height: none !important;
            display: flex;
            flex-direction: column;
        }

        /* Force content to fill the dialog and clip anything outside */
        #cartModal .modal-content {
            height: 100% !important;
            max-height: 100% !important;
            display: flex;
            flex-direction: column;
            overflow: hidden !important;
        }

        /* Body flexes to take available space but cannot expand beyond it */
        #cartModal .modal-body {
            flex: 1 1 auto;
            display: flex;
            flex-direction: column;
            overflow: hidden !important;
            padding: 0 !important;
            min-height: 0 !important;
            /* Critical: allows flex child to shrink below content size */
        }

        /* ONLY cart items scroll */
        #cartModal #cartItems {
            flex: 1 1 auto;
            overflow-y: auto !important;
            padding: 1rem;
            -webkit-overflow-scrolling: touch;
            min-height: 0 !important;
        }

        /* Footer total docked at bottom of the body */
        #cartModal .modal-body>.text-end {
            flex: 0 0 auto;
            padding: 1rem;
            margin-top: 0 !important;
            border-top: 1px solid #dee2e6;
            background: #fff;
        }

        /* Main modal footer docked at bottom of modal-content */
        #cartModal .modal-footer {
            flex: 0 0 auto;
            background: #fff;
            padding-bottom: max(env(safe-area-inset-bottom, 1rem), 1rem) !important;
        }
    }
}
