/* =============================================================================
   KEPLA ENGINEERING LTD - Modern Solar E-Commerce Theme v2.0
   Design System: Navy #0A244A | Orange #EF7D21 | Light #F7F8FC
   Mobile-first · Conversion-optimized · SEO-ready
   ============================================================================= */

/* ─── DESIGN TOKENS ─────────────────────────────────────────────────────── */
:root {
    --kp-navy: #0A244A;
    --kp-navy-dark: #06162F;
    --kp-navy-light: #163E78;
    --kp-navy-50: rgba(10, 36, 74, 0.05);
    --kp-navy-100: rgba(10, 36, 74, 0.10);
    --kp-orange: #EF7D21;
    --kp-orange-light: #F69D53;
    --kp-orange-dark: #C76210;
    --kp-orange-50: rgba(239, 125, 33, 0.06);
    --kp-orange-100: rgba(239, 125, 33, 0.12);
    --kp-white: #FFFFFF;
    --kp-light: #F7F8FC;
    --kp-light-alt: #EEF1F8;
    --kp-gray-100: #F1F3F7;
    --kp-gray-200: #E2E6EE;
    --kp-gray-300: #CDD3DF;
    --kp-gray-400: #9CA3B4;
    --kp-gray-500: #6B7280;
    --kp-gray-600: #4B5563;
    --kp-gray-700: #374151;
    --kp-gray-800: #1F2937;
    --kp-gray-900: #111827;
    --kp-success: #10B981;
    --kp-danger: #EF4444;
    --kp-warning: #F59E0B;
    --kp-info: #3B82F6;
    /* Industrial / catalog accent (solar & water — inspired by clean B2B storefronts) */
    --kp-solar-gold: #D4A012;
    --kp-solar-gold-light: #F0C94C;
    --shadow-xs: 0 1px 2px rgba(27, 54, 93, 0.04);
    --shadow-sm: 0 2px 8px rgba(27, 54, 93, 0.06);
    --shadow-md: 0 4px 20px rgba(27, 54, 93, 0.08);
    --shadow-lg: 0 12px 40px rgba(27, 54, 93, 0.12);
    --shadow-xl: 0 20px 60px rgba(27, 54, 93, 0.16);
    --shadow-orange: 0 8px 30px rgba(232, 134, 42, 0.25);
    --shadow-card-hover: 0 12px 32px rgba(27, 54, 93, 0.14);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
    --duration-fast: 0.15s;
    --duration-normal: 0.3s;
    --duration-slow: 0.5s;
    --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --bs-primary: #0A244A;
    --bs-primary-rgb: 10, 36, 74;
    --bs-body-font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ─── RESET & BASE ───────────────────────────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body {
    font-family: var(--font-sans);
    color: var(--kp-gray-800);
    background: var(--kp-white);
    line-height: 1.7;
    margin: 0;
    overflow-x: hidden;
    font-size: 0.95rem;
}

a {
    color: var(--kp-navy);
    text-decoration: none;
    transition: color var(--duration-fast) var(--ease-out);
}

a:hover {
    color: var(--kp-orange);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    color: var(--kp-gray-900);
    line-height: 1.25;
    margin-bottom: 0.5em;
}

h1 {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
}

h2 {
    font-size: clamp(1.5rem, 3.5vw, 2.25rem);
}

h3 {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
}

img {
    max-width: 100%;
    height: auto;
}

::selection {
    background: var(--kp-orange-100);
    color: var(--kp-navy);
}

.site-logo {
    max-height: 44px;
    width: auto;
    transition: var(--transition);
}

/* Full wordmark from admin (horizontal logo — not a square icon) */
.site-logo-navbar {
    max-height: 48px;
    height: auto;
    width: auto;
    max-width: min(260px, 62vw);
}
/* ─── BRAND UTILITIES ────────────────────────────────────────────────── */
.text-navy { color: var(--kp-navy) !important; }
.text-orange { color: var(--kp-orange) !important; }
.bg-navy { background-color: var(--kp-navy) !important; }
.bg-orange { background-color: var(--kp-orange) !important; }

.btn-navy {
    background-color: var(--kp-navy);
    border-color: var(--kp-navy);
    color: var(--kp-white);
}

.btn-navy:hover {
    background-color: var(--kp-navy-light);
    border-color: var(--kp-navy-light);
    color: var(--kp-white);
}

.btn-orange {
    background-color: var(--kp-orange);
    border-color: var(--kp-orange);
    color: var(--kp-white);
}

.btn-orange:hover {
    background-color: var(--kp-orange-dark);
    border-color: var(--kp-orange-dark);
    color: var(--kp-white);
}

.fw-800 { font-weight: 800 !important; }
.fw-900 { font-weight: 900 !important; }

/* ─── PROMO BAR ──────────────────────────────────────────────────────── */
/* In document flow (scrolls away); fixed navbar top follows promo bottom in viewport (main.js) */
#promoBar {
    background: var(--kp-orange);
    font-size: 0.8rem;
    letter-spacing: 0.8px;
    padding: 10px 0 !important;
    width: 100%;
    flex-shrink: 0;
}

#promoBar .promo-text-display {
    transition: opacity 0.3s ease;
    font-size: 0.82rem;
    font-weight: 600;
}

/* ─── OFFCANVAS (above promo bar) ────────────────────────────────────── */
.offcanvas {
    z-index: 1080 !important;
}

.offcanvas-backdrop {
    z-index: 1070 !important;
}

/* ─── NAVBAR (Kepla Engineering — solar & water B2B storefront) ─────── */
header.navbar {
    padding: 14px 0;
    transition: var(--transition);
    z-index: 1040;
    border-top: 3px solid var(--kp-solar-gold);
    border-bottom: 1px solid transparent;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    overflow: visible;
}

header.navbar > .container {
    overflow: visible;
}

/* Account / compact menus must paint above page content (and not clip inside navbar) */
header.navbar .navbar-nav .dropdown-menu:not(.nav-shop-megamenu) {
    z-index: 1075;
}

header.navbar.bg-white {
    background: rgba(255, 255, 255, 0.97) !important;
    border-bottom-color: rgba(10, 36, 74, 0.08);
    box-shadow: 0 2px 24px rgba(10, 36, 74, 0.06);
}

header.navbar .navbar-brand {
    font-weight: 800;
    font-size: 1rem;
    color: var(--kp-navy);
    letter-spacing: -0.02em;
    flex-shrink: 1;
    min-width: 0;
    max-width: min(320px, 72vw);
}

header.navbar .brand-lockup {
    text-align: left;
    min-width: 0;
}

header.navbar .brand-name {
    display: block;
    font-size: clamp(1.05rem, 2.8vw, 1.35rem);
    font-weight: 800;
    color: var(--kp-navy);
    letter-spacing: -0.03em;
    line-height: 1.15;
}

header.navbar .brand-name-line {
    color: var(--kp-navy-light);
    font-weight: 700;
}

header.navbar .brand-tagline {
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--kp-gray-500);
    margin-top: 4px;
    line-height: 1.3;
}

header.navbar .nav-link {
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--kp-gray-800);
    padding: 8px 16px !important;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    position: relative;
    letter-spacing: 0.01em;
}

/* Solid bar: stronger contrast than gray-700 (WCAG-friendly on white) */
header.navbar.bg-white .navbar-nav > .nav-item > .nav-link:not(.btn-cart-header) {
    color: var(--kp-gray-900);
}

header.navbar .nav-link i,
header.navbar .nav-link .bi {
    opacity: 1;
}

header.navbar .nav-link:hover {
    color: var(--kp-navy);
    background-color: var(--kp-navy-50);
}

header.navbar .nav-link:focus-visible {
    outline: 2px solid var(--kp-orange);
    outline-offset: 2px;
    box-shadow: none;
}

header.navbar .nav-link.active {
    color: var(--kp-navy);
    font-weight: 600;
    background-color: rgba(212, 160, 18, 0.12);
}

header.navbar .nav-link.active:not(.btn-cart-header)::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 22px;
    height: 2px;
    background: var(--kp-solar-gold);
    border-radius: var(--radius-full);
}

/* Home hero: glass header over the slider; scroll script removes this class for a normal solid bar */
header.transparent-header {
    background: rgba(10, 36, 74, 0.22) !important;
    border-bottom-color: rgba(255, 255, 255, 0.14) !important;
    border-top-color: rgba(212, 160, 18, 0.55) !important;
    box-shadow: none !important;
    backdrop-filter: blur(16px) saturate(1.15);
    -webkit-backdrop-filter: blur(16px) saturate(1.15);
}

header.transparent-header .nav-link {
    color: #fff !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55), 0 0 1px rgba(0, 0, 0, 0.4);
}

header.transparent-header .nav-link:hover,
header.transparent-header .nav-link:focus {
    color: #fff !important;
    background-color: rgba(255, 255, 255, 0.12) !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.65);
}

header.transparent-header .nav-link.active {
    color: #fff !important;
    background-color: rgba(255, 255, 255, 0.14) !important;
}

header.transparent-header .nav-link.active:not(.btn-cart-header)::after {
    background: var(--kp-solar-gold-light);
}

header.transparent-header .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.35);
}

header.transparent-header .navbar-toggler-icon {
    filter: brightness(0) invert(1);
    opacity: 0.95;
}

header.transparent-header .btn-cart-header {
    border-color: rgba(255, 255, 255, 0.4) !important;
    background: rgba(255, 255, 255, 0.12) !important;
    color: #fff !important;
}

header.transparent-header .btn-cart-header:hover,
header.transparent-header .btn-cart-header:focus {
    background: rgba(255, 255, 255, 0.2) !important;
    border-color: rgba(255, 255, 255, 0.55) !important;
    color: #fff !important;
}

header.transparent-header .btn-cart-header.active {
    background: rgba(255, 255, 255, 0.22) !important;
    border-color: var(--kp-solar-gold-light) !important;
    color: #fff !important;
}

header.transparent-header .navbar-brand .brand-name {
    color: #fff !important;
}

header.transparent-header .user-avatar-header {
    border-color: rgba(255, 255, 255, 0.55) !important;
}

/* Bootstrap caret: explicit color so “Shop” / account chevrons stay visible on glass */
header.navbar.bg-white .nav-link.dropdown-toggle::after {
    border-top-color: var(--kp-navy);
    opacity: 0.75;
}

header.transparent-header .nav-link.dropdown-toggle::after {
    border-top-color: #fff;
    opacity: 0.95;
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.45));
}

header.navbar .btn-cart-header {
    border: 1px solid var(--kp-gray-200);
    border-radius: var(--radius-full);
    color: var(--kp-navy) !important;
    background: var(--kp-white);
    padding: 6px 14px !important;
}

header.navbar .btn-cart-header:hover {
    border-color: var(--kp-solar-gold);
    background: rgba(212, 160, 18, 0.08);
    color: var(--kp-navy) !important;
}

header.navbar .btn-cart-header.active {
    border-color: var(--kp-solar-gold);
    background: rgba(212, 160, 18, 0.14);
    font-weight: 600;
}

header.navbar .user-avatar-header {
    background: var(--kp-navy);
    color: #fff;
    border: 2px solid rgba(212, 160, 18, 0.55);
}

/* Shop mega-menu — Kepla catalog panel */
.nav-shop-dropdown .dropdown-menu.nav-shop-megamenu {
    width: min(100vw - 2rem, 1120px);
    max-width: none;
    margin-top: 0.65rem !important;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(10, 36, 74, 0.12) !important;
    box-shadow: 0 28px 70px rgba(6, 22, 47, 0.18), 0 10px 24px rgba(10, 36, 74, 0.08) !important;
    animation: navShopReveal 0.22s var(--ease-out);
    z-index: 1080 !important;
    background: #fff !important;
    opacity: 1 !important;
    --bs-dropdown-bg: #fff;
}

@keyframes navShopReveal {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

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

.nav-shop-panel {
    display: flex;
    flex-direction: column;
    max-height: min(78vh, 680px);
    background: linear-gradient(180deg, #ffffff 0%, #f7f9fd 100%);
}

.nav-shop-panel__head {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.15rem;
    background:
        radial-gradient(circle at 14% 0%, rgba(239, 125, 33, 0.25), transparent 28%),
        linear-gradient(135deg, var(--kp-navy-dark), var(--kp-navy));
    color: #fff;
}

.nav-shop-panel__logo {
    flex-shrink: 0;
    background: #fff;
    padding: 6px 10px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.nav-shop-panel__logo img {
    display: block;
    max-height: 42px;
    max-width: 148px;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: left center;
}

.nav-shop-panel__head-main {
    flex: 1;
    min-width: min(100%, 200px);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 1.5rem;
}

.nav-shop-panel__head-main--ctas-only {
    justify-content: flex-end;
}

.nav-shop-panel__ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.nav-shop-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.52rem 0.95rem;
    font-size: 0.78rem;
    font-weight: 700;
    border-radius: var(--radius-full);
    text-decoration: none;
    transition: var(--transition);
    white-space: nowrap;
}

.nav-shop-cta--primary {
    background: var(--kp-orange);
    color: #fff !important;
    box-shadow: 0 4px 14px rgba(244, 121, 32, 0.35);
}

.nav-shop-cta--primary:hover {
    background: var(--kp-orange-dark);
    color: #fff !important;
    transform: translateY(-1px);
}

.nav-shop-cta--ghost {
    background: rgba(255, 255, 255, 0.12);
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.nav-shop-cta--ghost:hover {
    background: rgba(255, 255, 255, 0.22);
    color: #fff !important;
}

.nav-shop-panel__body {
    padding: 1rem;
    overflow-y: auto;
    background:
        linear-gradient(90deg, rgba(10, 36, 74, 0.035) 1px, transparent 1px),
        linear-gradient(180deg, var(--kp-light) 0%, #fff 100%) !important;
    background-size: 24px 24px, auto;
    flex: 1;
    scrollbar-color: rgba(10, 36, 74, 0.28) transparent;
    scrollbar-width: thin;
}

.nav-shop-cat-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
    align-items: stretch;
}

.nav-shop-cat-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(10, 36, 74, 0.09);
    border-radius: 16px;
    padding: 0;
    transition: var(--transition);
    box-shadow: 0 8px 22px rgba(10, 36, 74, 0.055);
    overflow: hidden;
    border-top: 0;
}

.nav-shop-cat-card:hover {
    border-color: rgba(239, 125, 33, 0.3);
    box-shadow: 0 16px 36px rgba(10, 36, 74, 0.1);
    transform: translateY(-2px);
}

.nav-shop-cat-card__title {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin: 0;
    padding: 0.85rem 0.9rem;
    border-bottom: 1px solid rgba(10, 36, 74, 0.07);
    background: linear-gradient(180deg, #fff 0%, rgba(247, 248, 252, 0.9) 100%);
}

.nav-shop-cat-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, rgba(239, 125, 33, 0.16), rgba(212, 160, 18, 0.12));
    color: var(--kp-orange);
    font-size: 0.95rem;
    flex-shrink: 0;
}

.nav-shop-cat-card__name {
    font-size: 0.84rem;
    font-weight: 800;
    text-transform: none;
    letter-spacing: -0.01em;
    color: var(--kp-navy);
    line-height: 1.3;
}

.nav-shop-cat-card__list {
    list-style: none;
    margin: 0;
    padding: 0.3rem 0.45rem 0.45rem;
    flex: 1;
}

.nav-shop-cat-card__list li {
    margin: 0;
    padding: 0;
    border-bottom: 0;
}

.nav-shop-cat-card__list li:last-child {
    border-bottom: none;
}

.nav-shop-cat-card__empty {
    font-size: 0.8rem;
    color: var(--kp-gray-500);
    padding: 0.75rem 1rem;
    margin: 0;
}

.nav-shop-sublink {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.42rem 0.5rem;
    margin: 0.05rem 0;
    border-radius: 10px;
    color: var(--kp-gray-700);
    text-decoration: none;
    font-size: 0.76rem;
    font-weight: 600;
    transition: var(--transition);
}

.nav-shop-sublink__text {
    flex: 1;
    min-width: 0;
    line-height: 1.35;
}

.nav-shop-sublink__arrow {
    font-size: 0.65rem;
    opacity: 0.35;
    flex-shrink: 0;
    transition: var(--transition);
}

.nav-shop-sublink:hover {
    color: var(--kp-navy);
    background: rgba(239, 125, 33, 0.08);
}

.nav-shop-sublink:hover .nav-shop-sublink__arrow {
    opacity: 1;
    transform: translateX(2px);
}

.nav-shop-panel__empty {
    padding: 2rem 1.5rem;
    text-align: center;
    background: var(--kp-light);
}

.nav-shop-panel__empty-icon {
    font-size: 2rem;
    color: var(--kp-gray-300);
    display: block;
    margin-bottom: 0.75rem;
}

@media (max-width: 991.98px) {
    .navbar-collapse .nav-shop-dropdown .dropdown-menu.nav-shop-megamenu {
        position: static !important;
        inset: auto !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        transform: none !important;
        float: none !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin: 0.5rem 0 0 !important;
        box-shadow: 0 8px 24px rgba(10, 36, 74, 0.12);
    }

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

    .navbar-collapse .nav-shop-panel {
        max-height: min(65vh, 420px);
    }

    .nav-shop-panel__head {
        flex-direction: column;
        align-items: stretch;
    }

    .nav-shop-panel__head-main {
        flex-direction: column;
        min-width: 0;
        width: 100%;
    }

    .nav-shop-panel__head-main--ctas-only {
        justify-content: stretch;
    }

    .nav-shop-panel__logo {
        align-self: flex-start;
        max-width: 100%;
    }

    .nav-shop-panel__logo img {
        max-width: min(200px, 100%);
    }

    .nav-shop-panel__ctas {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .nav-shop-cta {
        white-space: normal;
        justify-content: center;
        text-align: center;
        width: 100%;
    }

    .nav-shop-cat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .nav-shop-sublink {
        gap: 0.35rem;
    }
}

@media (min-width: 1200px) {
    .nav-shop-cat-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .navbar-collapse .nav-shop-dropdown .dropdown-menu.nav-shop-megamenu {
        border-radius: var(--radius-md);
    }

    .nav-shop-dropdown .dropdown-menu.nav-shop-megamenu {
        width: calc(100vw - 1rem);
    }

    .nav-shop-panel__head {
        padding: 0.85rem 0.9rem;
    }

    .nav-shop-cat-grid {
        grid-template-columns: 1fr;
    }

    .nav-shop-cat-card__title {
        padding: 0.8rem;
    }
}

.static-article-body a {
    color: var(--kp-navy-light);
    font-weight: 600;
}

.static-article-body a:hover {
    color: var(--kp-orange);
}

.brand-tile {
    transition: var(--transition);
    border-color: var(--kp-gray-200) !important;
}

.brand-tile:hover {
    border-color: rgba(212, 160, 18, 0.65) !important;
    box-shadow: var(--shadow-md);
}

.cart-count {
    background: var(--kp-orange);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 800;
    min-width: 18px;
    height: 18px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: -2px;
    right: -2px;
    padding: 0 4px;
    border: 2px solid var(--kp-white);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    z-index: 2;
    line-height: 1;
}

.mobile-cart-icon {
    position: relative;
    padding: 8px !important;
}

.mobile-cart-icon .cart-count {
    top: -2px;
    right: -2px;
}

.dropdown-menu {
    border: 1px solid var(--kp-gray-200);
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-md);
    padding: 8px;
    animation: dropdownFade 0.2s var(--ease-out);
}

@keyframes dropdownFade {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

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

.dropdown-item {
    border-radius: var(--radius-sm);
    padding: 10px 16px;
    font-size: 0.88rem;
    font-weight: 500;
}

.dropdown-item:hover {
    background-color: var(--kp-orange-50);
    color: var(--kp-orange);
}

/* ─── HERO SECTION ───────────────────────────────────────────────────── */
.modern-hero-carousel {
    position: relative;
    overflow: hidden;
}

.modern-hero-carousel .carousel-item {
    min-height: 520px;
}

.hero-banner-img {
    width: 100%;
    height: 92vh;
    max-height: 720px;
    object-fit: cover;
    filter: brightness(0.55);
    transition: transform 8s ease;
}

.carousel-item.active .hero-banner-img {
    transform: scale(1.04);
}

.modern-carousel-caption {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
}

.hero-content-overlay {
    max-width: 740px;
    animation: heroFadeUp 1s var(--ease-out) 0.2s both;
}

@keyframes heroFadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

.hero-content-overlay .hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    padding: 8px 18px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.04em;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-content-overlay h2 {
    color: white;
    font-size: clamp(1.8rem, 5vw, 3.2rem);
    font-weight: 800;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    margin-bottom: 16px;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.hero-content-overlay p {
    font-size: clamp(0.95rem, 2vw, 1.15rem);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    margin-bottom: 28px;
    color: rgba(255, 255, 255, 0.92);
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.hero-button-group {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-button-group .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 14px 36px;
    font-weight: 600;
    border-radius: var(--radius-full);
    font-size: 0.95rem;
    transition: var(--transition);
    letter-spacing: normal;
    line-height: 1.25;
    text-rendering: auto;
}

.hero-button-group .btn i {
    flex-shrink: 0;
    line-height: 1;
}

.hero-button-group .btn-warning {
    background: var(--kp-orange);
    border-color: var(--kp-orange);
    color: #fff;
    box-shadow: 0 4px 20px rgba(232, 134, 42, 0.4);
}

.hero-button-group .btn-warning:hover {
    background: var(--kp-orange-dark);
    border-color: var(--kp-orange-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(232, 134, 42, 0.5);
}

.hero-button-group .btn-outline-light {
    border-width: 2px;
    backdrop-filter: blur(4px);
    background: rgba(255, 255, 255, 0.08);
}

.hero-button-group .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.hero-fallback {
    background: var(--kp-navy);
    min-height: 550px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    position: relative;
    overflow: hidden;
}

.hero-fallback::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(239, 125, 33, 0.12);
}

.hero-fallback h1 {
    color: #fff;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    position: relative;
    z-index: 1;
}

.hero-fallback p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.15rem;
    position: relative;
    z-index: 1;
}

.modern-hero-carousel .carousel-indicators button {
    width: 10px;
    height: 10px;
    border-radius: var(--radius-full);
    border: none;
    background-color: rgba(255, 255, 255, 0.4);
    transition: var(--transition);
    margin: 0 5px;
}

.modern-hero-carousel .carousel-indicators button.active {
    background-color: var(--kp-orange);
    width: 32px;
    border-radius: 5px;
}

.carousel-control-prev,
.carousel-control-next {
    width: 48px;
    height: 48px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    border-radius: var(--radius-full);
    opacity: 0;
    transition: var(--transition);
    margin: 0 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.modern-hero-carousel:hover .carousel-control-prev,
.modern-hero-carousel:hover .carousel-control-next {
    opacity: 1;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background: var(--kp-orange);
    border-color: var(--kp-orange);
}

/* ─── MAIN CONTENT WRAPPER ──────────────────────────────────────────── */
:root {
    --promo-offset: 0px;
    /* Safe clearance for fixed navbar (border + padding + logo); footer script may refine. */
    --header-clearance: 104px;
}

.main-content-wrapper {
    padding-top: calc(var(--header-clearance) + var(--promo-offset)) !important;
    min-height: 65vh;
    scroll-margin-top: var(--header-clearance);
}

.page-no-promo .main-content-wrapper {
    padding-top: var(--header-clearance) !important;
}

/* Home hero only: full-bleed under fixed header (see index.ejs + footer home detection) */
body:has(header.transparent-header:not(.bg-white)) .main-content-wrapper {
    padding-top: 0 !important;
    scroll-margin-top: 0;
}

/* Legacy products.ejs hero: extra top padding when body has promo class (--promo-offset stays 0; promo is in flow) */
body:not(.page-no-promo) .catalog-header {
    padding-top: calc(50px + var(--promo-offset));
}

/* ─── AUTH: login / signup (Kepla storefront) ───────────────────────── */
.auth-page {
    background: var(--kp-light);
}

.auth-pg-header {
    background: var(--kp-navy);
    padding: 40px 0 56px;
    position: relative;
    overflow: hidden;
}

.auth-pg-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 36px;
    background: var(--kp-light);
    clip-path: ellipse(55% 100% at 50% 100%);
}

.auth-pg-inner {
    position: relative;
    z-index: 1;
    text-align: center;
}

.auth-pg-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(239, 125, 33, 0.18);
    color: var(--kp-orange);
    padding: 4px 14px;
    border-radius: var(--radius-full);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    margin-bottom: 12px;
    border: 1px solid rgba(239, 125, 33, 0.25);
}

.auth-pg-title {
    font-size: clamp(1.65rem, 4vw, 2rem);
    font-weight: 800;
    color: #fff;
    margin: 0 0 8px;
    letter-spacing: -0.02em;
}

.auth-pg-sub {
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.95rem;
    margin: 0;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.55;
}

.auth-section {
    padding: 0 0 72px;
    margin-top: -20px;
    position: relative;
    z-index: 2;
}

.auth-card {
    max-width: 440px;
    margin: 0 auto;
    background: #fff;
    border-radius: 20px;
    border: 1px solid var(--kp-gray-200);
    box-shadow: 0 16px 48px rgba(10, 36, 74, 0.1), 0 4px 12px rgba(10, 36, 74, 0.04);
    overflow: hidden;
}

.auth-card__accent {
    height: 4px;
    background: var(--kp-orange);
}

.auth-card__body {
    padding: 2rem 1.75rem 2.25rem;
}

@media (min-width: 576px) {
    .auth-card__body {
        padding: 2.25rem 2.25rem 2.5rem;
    }
}

.auth-card__title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--kp-navy);
    margin: 0 0 6px;
    letter-spacing: -0.02em;
    text-align: center;
}

.auth-card__hint {
    text-align: center;
    color: var(--kp-gray-500);
    font-size: 0.9rem;
    margin: 0 0 1.5rem;
    line-height: 1.5;
}

.auth-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--kp-gray-700);
    margin-bottom: 6px;
}

.auth-input {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid var(--kp-gray-200);
    border-radius: 12px;
    font-size: 0.92rem;
    color: var(--kp-navy);
    outline: none;
    background: #fff;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.auth-input:focus {
    border-color: var(--kp-navy);
    box-shadow: 0 0 0 3px rgba(10, 36, 74, 0.08);
}

.auth-submit {
    width: 100%;
    padding: 13px 20px;
    border-radius: 12px;
    background: var(--kp-navy);
    color: #fff !important;
    border: none;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.2s, transform 0.15s;
}

.auth-submit:hover {
    background: var(--kp-navy-light);
    color: #fff !important;
}

.auth-alert {
    padding: 13px 16px;
    border-radius: 12px;
    font-size: 0.88rem;
    font-weight: 500;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 1.25rem;
    line-height: 1.45;
}

.auth-alert--danger {
    background: rgba(220, 38, 38, 0.08);
    color: #b91c1c;
    border: 1px solid rgba(220, 38, 38, 0.2);
}

.auth-alert--success {
    background: rgba(5, 150, 105, 0.08);
    color: #047857;
    border: 1px solid rgba(5, 150, 105, 0.2);
}

.auth-footer-link {
    text-align: center;
    margin: 1.5rem 0 0;
    padding-top: 1.25rem;
    border-top: 1px solid var(--kp-gray-100);
    font-size: 0.9rem;
    color: var(--kp-gray-600);
}

.auth-footer-link a {
    color: var(--kp-orange);
    font-weight: 700;
    text-decoration: none;
}

.auth-footer-link a:hover {
    color: var(--kp-orange-dark);
    text-decoration: underline;
}

/* ─── SECTION LABEL ──────────────────────────────────────────────────── */
.section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--kp-orange);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.section-label::before {
    content: '';
    width: 28px;
    height: 2px;
    background: var(--kp-orange);
    border-radius: 2px;
}

/* ─── INTRO / VALUE PROP ────────────────────────────────────────────── */
.intro-section-modern {
    text-align: center;
    padding: 80px 0 50px;
}

.intro-heading {
    color: var(--kp-gray-900);
    font-size: clamp(1.5rem, 3.5vw, 2.25rem);
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.intro-text {
    font-size: 1.05rem;
    color: var(--kp-gray-500);
    max-width: 620px;
    margin: 0 auto 48px;
    line-height: 1.8;
}

.trust-indicators-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 32px;
    max-width: 900px;
    margin: 0 auto;
}

.trust-item-modern {
    text-align: center;
    padding: 40px 24px;
    background: var(--kp-white);
    border-radius: var(--radius-xl);
    border: none;
    box-shadow: 0 8px 30px rgba(10, 36, 74, 0.04);
    transition: var(--transition);
}

.trust-item-modern:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(10, 36, 74, 0.08);
}

.trust-icon-wrapper {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-lg);
    background: var(--kp-orange);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    box-shadow: var(--shadow-orange);
    transition: var(--transition);
}

.trust-icon-wrapper i {
    font-size: 1.6rem;
    color: #fff;
}

.trust-item-modern:hover .trust-icon-wrapper {
    transform: scale(1.08) rotate(4deg);
}

.trust-item-modern h5 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--kp-gray-900);
    margin-bottom: 6px;
}

.trust-item-modern p {
    font-size: 0.85rem;
    color: var(--kp-gray-500);
    line-height: 1.6;
    margin: 0;
}

/* ─── SECTION HEADERS ────────────────────────────────────────────────── */
.section-header-modern {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--kp-gray-200);
}

.section-title-modern {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--kp-gray-900);
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.section-title-modern i {
    color: var(--kp-orange);
    font-size: 1.15rem;
}

.section-link-modern {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--kp-orange);
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
    white-space: nowrap;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    background: var(--kp-orange-50);
}

.section-link-modern:hover {
    color: #fff;
    background: var(--kp-orange);
    gap: 10px;
}

/* ─── PRODUCT CARD ───────────────────────────────────────────────────── */
.product-card-modern {
    background: var(--kp-white);
    border-radius: var(--radius-md);
    border: 1px solid var(--kp-gray-200);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    position: relative;
    height: 100%;
}

.product-card-modern:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-card-hover);
    border-color: transparent;
}

.product-badge {
    position: absolute;
    z-index: 5;
    padding: 5px 12px;
    font-size: 0.68rem;
    font-weight: 700;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.featured-badge {
    top: 12px;
    left: 12px;
    background: var(--kp-orange);
    color: #fff;
    box-shadow: 0 2px 10px rgba(232, 134, 42, 0.3);
}

.stock-badge {
    top: 12px;
    right: 12px;
}

.stock-badge.low-stock {
    background-color: var(--kp-warning);
    color: var(--kp-gray-900);
}

.stock-badge.out-of-stock {
    background-color: var(--kp-danger);
    color: #fff;
}

.product-image-container {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    background: var(--kp-gray-100);
}

.product-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease-out);
}

.product-card-modern:hover .product-cover-img {
    transform: scale(1.08);
}

.product-overlay {
    position: absolute;
    inset: 0;
    background: rgba(27, 54, 93, 0.65);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 20px;
    opacity: 0;
    transition: opacity var(--duration-normal) var(--ease-out);
}

.product-card-modern:hover .product-overlay {
    opacity: 1;
}

.btn-quick-view {
    background: #fff;
    color: var(--kp-navy);
    padding: 10px 24px;
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
    transform: translateY(10px);
    box-shadow: var(--shadow-sm);
}

.product-card-modern:hover .btn-quick-view {
    transform: translateY(0);
}

.btn-quick-view:hover {
    background: var(--kp-orange);
    color: #fff;
}

.product-details {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-title-modern {
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 4px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-title-modern a {
    color: var(--kp-gray-800);
}

.product-title-modern a:hover {
    color: var(--kp-orange);
}

.product-brand-modern {
    font-size: 0.78rem;
    color: var(--kp-gray-400);
    margin-bottom: 10px;
}

.product-price-section {
    margin-top: auto;
}

.product-price-modern {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--kp-orange);
}

.product-action-footer {
    padding: 0 16px 16px;
}

.btn-add-cart-modern {
    width: 100%;
    padding: 10px;
    border: 2px solid var(--kp-navy);
    background: transparent;
    color: var(--kp-navy);
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-add-cart-modern:hover:not(:disabled) {
    background: var(--kp-navy);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(27, 54, 93, 0.25);
}

.btn-add-cart-modern:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    border-color: var(--kp-gray-300);
    color: var(--kp-gray-400);
}

.btn-add-cart-modern.adding {
    background: var(--kp-orange);
    border-color: var(--kp-orange);
    color: #fff;
}

.btn-add-cart-modern.adding i {
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ─── SPOTLIGHT / HORIZONTAL CAROUSEL ────────────────────────────────── */
.product-section-modern {
    padding: 30px 0;
    margin-bottom: 10px;
}

.bg-light-modern {
    background: var(--kp-light);
    border-radius: var(--radius-xl);
    padding: 32px 20px;
    margin-bottom: 20px;
    border: 1px solid var(--kp-gray-200);
}

.spotlight-carousel-wrapper {
    position: relative;
}

.spotlight-carousel-track {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 4px 2px 8px;
}

.spotlight-carousel-track::-webkit-scrollbar {
    display: none;
}

.spotlight-item {
    flex: 0 0 210px;
    max-width: 210px;
}

.carousel-nav-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border-radius: var(--radius-full);
    border: none;
    background: var(--kp-white);
    color: var(--kp-navy);
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    opacity: 0;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}

.carousel-nav-control.show-nav {
    opacity: 1;
}

.carousel-nav-control:hover {
    background: var(--kp-orange);
    color: #fff;
    box-shadow: var(--shadow-orange);
}

.carousel-nav-prev {
    left: -6px;
}

.carousel-nav-next {
    right: -6px;
}

/* ─── CATEGORY CARDS ─────────────────────────────────────────────────── */
.curriculum-sections-wrapper {
    padding: 60px 0;
}

.category-card-modern {
    background: var(--kp-white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--kp-gray-200);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.category-card-modern:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-6px);
    border-color: transparent;
}

.category-card-header {
    background: var(--kp-navy);
    color: #fff;
    padding: 28px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.category-card-header::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-full);
}

.category-icon-wrapper {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    transition: var(--transition);
}

.category-card-modern:hover .category-icon-wrapper {
    background: rgba(255, 255, 255, 0.22);
    transform: scale(1.1);
}

.category-icon-wrapper i {
    font-size: 1.4rem;
    color: var(--kp-orange-light);
}

.category-title {
    color: #fff;
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.category-count {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
}

.category-card-body {
    padding: 18px 20px;
    flex: 1;
}

.subcategory-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.subcategory-list li a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 0;
    color: var(--kp-gray-600);
    font-size: 0.88rem;
    border-bottom: 1px solid var(--kp-gray-100);
    transition: var(--transition);
}

.subcategory-list li:last-child a {
    border-bottom: none;
}

.subcategory-list li a:hover {
    color: var(--kp-orange);
    padding-left: 8px;
}

.subcategory-list li a i {
    color: var(--kp-orange);
    font-size: 0.7rem;
    transition: var(--transition);
}

.subcategory-list li a:hover i {
    transform: translateX(4px);
}

.category-card-footer {
    padding: 14px 20px;
    border-top: 1px solid var(--kp-gray-100);
}

.btn-view-all {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: var(--kp-orange);
    font-weight: 600;
    font-size: 0.88rem;
    padding: 10px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.btn-view-all:hover {
    color: #fff;
    background: var(--kp-orange);
}

/* Catalog Header */
.catalog-header {
    background: var(--kp-navy);
    color: #fff;
    padding: 80px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-bottom: 4px solid var(--kp-solar-gold);
}

.catalog-header::before {
    display: none;
}

.catalog-header::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: 0;
    right: 0;
    height: 100px;
    background: var(--kp-white);
    transform: skewY(-2deg);
}

/* Modern Sidebar Styling */
.catalog-sidebar {
    background: var(--kp-white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--kp-gray-200);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.catalog-sidebar:hover {
    box-shadow: var(--shadow-md);
}

.catalog-sidebar .section-label {
    padding: 20px 20px 10px;
    margin-bottom: 0;
    display: flex;
    font-size: 0.75rem;
    color: var(--kp-navy-light);
}

.catalog-sidebar .list-group-item {
    border: none;
    border-bottom: 1px solid var(--kp-gray-100);
    padding: 12px 20px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--kp-gray-700);
    transition: all 0.2s ease;
}

.catalog-sidebar .list-group-item:last-child {
    border-bottom: none;
}

.catalog-sidebar .list-group-item i {
    width: 20px;
    color: var(--kp-gray-400);
    transition: color 0.2s;
}

.catalog-sidebar .list-group-item:hover {
    background-color: var(--kp-orange-50);
    color: var(--kp-orange);
    padding-left: 24px;
}

.catalog-sidebar .list-group-item:hover i {
    color: var(--kp-orange);
}

.catalog-sidebar .list-group-item.active {
    background-color: var(--kp-navy-50) !important;
    color: var(--kp-navy) !important;
    font-weight: 700;
    border-left: 4px solid var(--kp-orange);
}

.catalog-sidebar .list-group-item-secondary {
    background-color: var(--kp-light) !important;
    color: var(--kp-navy) !important;
    font-weight: 800 !important;
    font-size: 0.72rem !important;
    padding-top: 15px !important;
    padding-bottom: 8px !important;
    letter-spacing: 1.2px !important;
}

/* Enhanced Grid Layout */
.product-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 24px;
}

.list-group-item.active {
    background-color: var(--kp-navy);
    border-color: var(--kp-navy);
}

/* ─── PRODUCT DETAIL ─────────────────────────────────────────────────── */
.product-detail-card {
    border: none;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.product-cover-large {
    border-radius: var(--radius-lg);
    max-height: 480px;
    object-fit: cover;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.product-cover-large:hover {
    transform: scale(1.02);
}

.product-detail-title {
    font-size: clamp(1.3rem, 3vw, 2rem);
    font-weight: 800;
    color: var(--kp-gray-900);
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.product-detail-brand {
    font-size: 1rem;
    color: var(--kp-gray-500);
    border-bottom: 2px solid var(--kp-gray-100);
    padding-bottom: 16px;
    margin-bottom: 20px;
}

.product-detail-price {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--kp-orange);
}

.product-detail-stock {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    font-weight: 600;
}

.stock-in {
    background: rgba(16, 185, 129, 0.1);
    color: var(--kp-success);
}

.stock-out {
    background: rgba(239, 68, 68, 0.1);
    color: var(--kp-danger);
}

.product-meta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding: 20px;
    background: var(--kp-light);
    border-radius: var(--radius-md);
}

.product-meta-item label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--kp-gray-400);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
    display: block;
}

.product-meta-item span {
    font-size: 0.92rem;
    color: var(--kp-gray-700);
    font-weight: 500;
}

.product-description-box {
    background: var(--kp-light);
    border-radius: var(--radius-md);
    padding: 24px;
    border-left: 4px solid var(--kp-orange);
}

/* ─── BUTTONS ────────────────────────────────────────────────────────── */
.btn {
    font-weight: 600;
    transition: var(--transition);
    border-radius: var(--radius-sm);
}

.btn-primary {
    background-color: var(--kp-navy);
    border-color: var(--kp-navy);
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--kp-navy-dark);
    border-color: var(--kp-navy-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(27, 54, 93, 0.3);
}

.btn-warning {
    background-color: var(--kp-orange);
    border-color: var(--kp-orange);
    color: #fff;
}

.btn-warning:hover,
.btn-warning:focus {
    background-color: var(--kp-orange-dark);
    border-color: var(--kp-orange-dark);
    color: #fff;
    transform: translateY(-2px);
}

.btn-outline-primary {
    color: var(--kp-navy);
    border-color: var(--kp-navy);
}

.btn-outline-primary:hover {
    background-color: var(--kp-navy);
    border-color: var(--kp-navy);
}

.btn-success {
    background-color: #25D366;
    border-color: #25D366;
}

.btn-success:hover {
    background-color: #128C7E;
    border-color: #128C7E;
    transform: translateY(-2px);
}

.btn-cta {
    background: var(--kp-orange);
    color: #fff;
    border: none;
    padding: 14px 32px;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 1rem;
    box-shadow: var(--shadow-orange);
    transition: var(--transition);
}

.btn-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 36px rgba(232, 134, 42, 0.4);
    color: #fff;
}

/* ─── FORMS ──────────────────────────────────────────────────────────── */
.form-control,
.form-select {
    border-radius: var(--radius-sm);
    border: 2px solid var(--kp-gray-200);
    padding: 12px 16px;
    transition: var(--transition);
    font-size: 0.92rem;
    color: var(--kp-gray-800);
    background: var(--kp-white);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--kp-orange);
    box-shadow: 0 0 0 4px var(--kp-orange-100);
}

.form-label {
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--kp-gray-700);
    margin-bottom: 6px;
}

/* ─── CARDS & ALERTS ─────────────────────────────────────────────────── */
.card {
    border-radius: var(--radius-md);
    border-color: var(--kp-gray-200);
}

.alert {
    border-radius: var(--radius-md);
    border: none;
}

/* ─── FOOTER ─────────────────────────────────────────────────────────── */
.modern-footer {
    background: var(--kp-navy-dark);
    color: rgba(255, 255, 255, 0.85);
    padding: 60px 0 0;
    margin-top: 80px;
    position: relative;
}

.modern-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--kp-orange);
}

.footer-heading {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--kp-gray-400);
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
    text-transform: uppercase;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 32px;
    height: 2px;
    background: var(--kp-orange);
    border-radius: 2px;
}

.footer-brand {
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
}

.footer-description {
    color: var(--kp-gray-400);
    font-size: 0.92rem;
    line-height: 1.8;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    font-size: 0.88rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a::before {
    content: '';
    width: 0;
    height: 2px;
    background: var(--kp-orange);
    transition: width 0.25s ease;
}

.footer-links a:hover::before {
    width: 12px;
}

.footer-links a:hover {
    color: var(--kp-orange);
    padding-left: 8px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.25rem;
    color: rgba(255, 255, 255, 0.7);
}

.contact-item .icon-wrapper {
    width: 40px;
    height: 40px;
    background: rgba(232, 134, 42, 0.1);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-item .icon-wrapper i {
    color: var(--kp-orange);
    font-size: 1rem;
}

.contact-item .contact-text {
    font-size: 0.88rem;
}

.contact-item .contact-text span {
    display: block;
    color: var(--kp-gray-500);
    font-size: 0.75rem;
    margin-bottom: 2px;
}

.contact-item .contact-text a {
    color: #fff;
    text-decoration: none;
}

.contact-item .contact-text a:hover {
    color: var(--kp-orange);
}

.social-icons-modern {
    display: flex;
    gap: 10px;
}

.social-icons-modern a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--kp-gray-400);
    text-decoration: none;
    transition: var(--transition);
}

.social-icons-modern a:hover {
    background: var(--kp-orange);
    color: #fff;
    border-color: var(--kp-orange);
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(232, 134, 42, 0.3);
}

.social-icons-modern a i {
    font-size: 1rem;
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.3);
    padding: 20px 0;
    margin-top: 48px;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-copyright {
    color: var(--kp-gray-500);
    font-size: 0.82rem;
    margin: 0;
}

.footer-dev-credit {
    color: var(--kp-gray-500);
    font-size: 0.78rem;
}

.footer-dev-credit a {
    color: var(--kp-orange) !important;
    text-decoration: none;
}

.footer-dev-credit a:hover {
    color: #fff !important;
}

.admin-link {
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
    padding-bottom: 2px;
    transition: var(--transition);
}

.admin-link:hover {
    color: #fff;
    border-bottom-color: var(--kp-solar-gold-light);
}

/* ─── ABOUT PAGE ─────────────────────────────────────────────────────── */
.about-hero {
    background: var(--kp-navy);
    color: #fff;
    padding: 100px 0 70px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.about-hero::before {
    display: none;
}

.about-hero h1 {
    color: #fff;
    font-size: clamp(2rem, 5vw, 2.8rem);
    font-weight: 800;
    position: relative;
    z-index: 1;
}

.about-hero p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.1rem;
    max-width: 560px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.about-section {
    padding: 70px 0;
}

.about-stat-card {
    text-align: center;
    padding: 32px 20px;
    background: var(--kp-white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--kp-gray-200);
    transition: var(--transition);
}

.about-stat-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-6px);
    border-color: var(--kp-orange-100);
}

.about-stat-number {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--kp-orange);
    line-height: 1;
}

.about-stat-label {
    font-size: 0.85rem;
    color: var(--kp-gray-500);
    margin-top: 8px;
    font-weight: 500;
}

.service-card {
    background: var(--kp-white);
    border-radius: var(--radius-lg);
    padding: 36px 24px;
    text-align: center;
    border: 1px solid var(--kp-gray-200);
    transition: var(--transition);
    height: 100%;
}

.service-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-6px);
    border-color: var(--kp-orange-100);
}

.service-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-lg);
    background: var(--kp-orange-50);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: var(--kp-orange);
    box-shadow: var(--shadow-orange);
}

.service-icon i {
    font-size: 1.6rem;
    color: var(--kp-orange);
    transition: var(--transition);
}

.service-card:hover .service-icon i {
    color: #fff;
}

.service-card h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--kp-gray-900);
    margin-bottom: 10px;
}

.service-card p {
    font-size: 0.88rem;
    color: var(--kp-gray-500);
    line-height: 1.7;
    margin: 0;
}

/* ─── CONTACT PAGE ───────────────────────────────────────────────────── */
.contact-hero {
    background: var(--kp-navy);
    color: #fff;
    padding: 100px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.contact-hero::before {
    display: none;
}

.contact-hero h1 {
    color: #fff;
    font-size: clamp(2rem, 5vw, 2.8rem);
    font-weight: 800;
    position: relative;
    z-index: 1;
}

.contact-hero p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 560px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.contact-section {
    padding: 60px 0;
    background: var(--kp-light);
}

.contact-card {
    background: var(--kp-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 36px;
    transition: var(--transition);
    border: 1px solid var(--kp-gray-200);
}

.contact-card:hover {
    box-shadow: var(--shadow-md);
}

.contact-card h3 {
    color: var(--kp-gray-900);
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.contact-card h3 i {
    color: var(--kp-orange);
    font-size: 1.5rem;
}

.contact-info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    padding: 14px;
    margin-bottom: 10px;
    background: var(--kp-light);
    border-radius: var(--radius-md);
    transition: var(--transition);
    border: 2px solid transparent;
}

.contact-info-item:hover {
    background: var(--kp-white);
    border-color: var(--kp-orange-100);
    transform: translateX(4px);
}

.contact-info-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    background: var(--kp-navy);
    color: white;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 14px;
    font-size: 1.1rem;
}

.contact-info-content strong {
    color: var(--kp-gray-500);
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 2px;
}

.contact-info-content a {
    color: var(--kp-gray-800);
    font-size: 0.95rem;
    font-weight: 500;
}

.contact-info-content a:hover {
    color: var(--kp-orange);
}

.map-container {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    margin-bottom: 0;
    height: 300px;
}

.map-container iframe {
    border: 0;
}

.social-icons-contact .social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    background: var(--kp-navy);
    color: white;
    border-radius: var(--radius-sm);
    font-size: 1.2rem;
    transition: var(--transition);
    text-decoration: none;
    box-shadow: var(--shadow-xs);
}

.social-icons-contact .social-link:hover {
    background: var(--kp-orange);
    transform: translateY(-4px);
    box-shadow: var(--shadow-orange);
    color: #fff;
}

/* ─── AUTH PAGES ──────────────────────────────────────────────────────── */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--kp-light);
}

.auth-card {
    max-width: 460px;
    width: 100%;
    background: var(--kp-white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    padding: 48px;
    border: 1px solid var(--kp-gray-200);
}

.auth-card .site-logo {
    max-height: 56px;
    margin-bottom: 24px;
}

/* ─── CART ────────────────────────────────────────────────────────────── */
.cart-item-card {
    border-radius: var(--radius-md) !important;
    border: 1px solid var(--kp-gray-200) !important;
    transition: var(--transition);
}

.cart-item-card:hover {
    box-shadow: var(--shadow-sm);
    border-color: var(--kp-gray-300) !important;
}

/* ─── PROFILE ────────────────────────────────────────────────────────── */
.profile-sidebar {
    background: var(--kp-white);
    border-radius: var(--radius-lg);
    padding: 0;
    border: 1px solid var(--kp-gray-200);
    overflow: hidden;
}

.profile-sidebar .list-group-item {
    border: none;
    border-bottom: 1px solid var(--kp-gray-100);
    padding: 14px 20px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

.profile-sidebar .list-group-item:hover {
    background: var(--kp-orange-50);
    color: var(--kp-orange);
}

.profile-sidebar .list-group-item.active {
    background: var(--kp-navy);
    color: #fff;
}

.profile-sidebar .list-group-item.active i {
    color: var(--kp-solar-gold-light);
}

.profile-sidebar__header {
    background: var(--kp-navy);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
}

.profile-sidebar__header .user-avatar-header {
    background: var(--kp-orange);
    color: #fff !important;
    border: 2px solid rgba(255, 255, 255, 0.35);
}

/* ─── ACCOUNT HUB (dashboard, orders — Kepla navy / orange) ───────────── */
/* Main gets navbar clearance via footer sync (!important); extra air below bar lives on .container */
.kp-account-hub {
    background: var(--kp-light);
    min-height: calc(100vh - 400px);
    padding-top: 0;
    padding-bottom: 5rem;
}

.kp-account-hub > .container {
    padding-top: clamp(2.25rem, 5vw, 3.75rem);
}

.kp-account-hero {
    margin-bottom: 2rem;
}

.kp-account-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--kp-orange);
    margin-bottom: 0.5rem;
}

.kp-account-eyebrow::before {
    content: "";
    display: inline-block;
    width: 22px;
    height: 3px;
    border-radius: 2px;
    background: var(--kp-orange);
}

.kp-account-title {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 800;
    color: var(--kp-navy);
    letter-spacing: -0.04em;
    margin: 0 0 0.75rem;
    line-height: 1.1;
}

.kp-account-lead {
    font-size: 1.05rem;
    color: var(--kp-gray-600);
    max-width: 48rem;
    line-height: 1.6;
    margin: 0;
}

.kp-account-back {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--kp-navy);
    text-decoration: none;
    margin-bottom: 1rem;
    transition: color var(--duration-fast) var(--ease-out);
}

.kp-account-back:hover {
    color: var(--kp-orange);
}

.kp-account-back i {
    font-size: 1.15rem;
    opacity: 0.85;
}

.kp-account-card {
    position: relative;
    height: 100%;
    background: var(--kp-white);
    border: 1px solid var(--kp-gray-200);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s var(--ease-out);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.kp-account-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--kp-navy);
    opacity: 0.95;
}

.kp-account-card--danger::before {
    background: var(--kp-danger);
}

.kp-account-card--danger .kp-account-card__icon {
    background: #FEE2E2;
    color: var(--kp-danger);
}

.kp-account-card--accent::before {
    background: var(--kp-orange);
}

.kp-dash-stats {
    --kp-dash-stat-pad: 1.1rem 1.25rem;
}

.kp-dash-stat {
    background: var(--kp-white);
    border: 1px solid var(--kp-gray-200);
    border-radius: var(--radius-lg);
    padding: var(--kp-dash-stat-pad);
    height: 100%;
    box-shadow: var(--shadow-sm);
}

.kp-dash-stat__value {
    display: block;
    font-size: 1.65rem;
    font-weight: 800;
    color: var(--kp-navy);
    line-height: 1.2;
}

.kp-dash-stat__value i {
    font-size: 1.5rem;
    vertical-align: middle;
}

.kp-dash-stat__label {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--kp-gray-500);
}

.kp-dash-link-all {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--kp-orange);
    text-decoration: none;
}

.kp-dash-link-all:hover {
    color: var(--kp-navy);
}

.kp-dash-table-card thead {
    background: rgba(10, 36, 74, 0.06);
}

.kp-dash-table-card thead th {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 700;
    color: var(--kp-gray-600);
    border: none;
    padding-top: 0.9rem;
    padding-bottom: 0.9rem;
}

.kp-dash-order-row:hover {
    background: rgba(239, 125, 33, 0.07);
}

.kp-dash-empty-inner {
    background: var(--kp-white);
    border: 1px dashed var(--kp-gray-300);
    border-radius: var(--radius-lg);
    padding: 2.5rem 1.5rem;
    text-align: center;
}

.kp-dash-empty-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    border-radius: 16px;
    background: var(--kp-navy-50);
    color: var(--kp-navy);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
}

.kp-account-card:hover {
    box-shadow: var(--shadow-xl);
    border-color: var(--kp-orange-100);
    transform: translateY(-5px);
}

/* Unified card styling - removed specific overrides to keep palette tight */

.kp-account-card__icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
    background: var(--kp-navy-50);
    color: var(--kp-navy);
    transition: var(--transition);
}

/* Consolidating all tile icons to Navy for a professional, uniform look */
.kp-account-card--orders .kp-account-card__icon,
.kp-account-card--security .kp-account-card__icon {
    background: var(--kp-navy-50);
    color: var(--kp-navy);
}

.kp-account-card__title {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--kp-navy);
    margin: 0 0 1rem;
    letter-spacing: -0.02em;
}

.kp-account-dl {
    margin: 0 0 1.25rem;
    flex: 1;
}

.kp-account-dl dt {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--kp-gray-500);
    margin-bottom: 0.2rem;
}

.kp-account-dl dd {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--kp-gray-800);
    margin: 0 0 0.75rem;
    word-break: break-word;
}

.kp-account-dl dd:last-of-type {
    margin-bottom: 0;
}

.kp-account-card__text {
    font-size: 0.9rem;
    color: var(--kp-gray-600);
    line-height: 1.55;
    margin: 0 0 1.25rem;
    flex: 1;
}

.kp-account-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    width: 100%;
    padding: 0.85rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 700;
    border-radius: var(--radius-md);
    border: 2px solid var(--kp-navy);
    background: var(--kp-white);
    color: var(--kp-navy);
    text-decoration: none;
    transition: all 0.3s var(--ease-out);
    margin-top: auto;
    letter-spacing: 0.02em;
}

.kp-account-btn:hover {
    background: var(--kp-navy);
    color: var(--kp-white);
    box-shadow: var(--shadow-md);
}

.kp-account-btn--orange {
    border-color: var(--kp-orange);
    color: var(--kp-orange);
}

.kp-account-btn--orange:hover {
    background: var(--kp-orange);
    color: var(--kp-white);
    border-color: var(--kp-orange);
    box-shadow: var(--shadow-orange);
}

/* Reduced color variants: Using navy/white for secondary actions */
.kp-account-btn--gold {
    border-color: var(--kp-gray-400);
    color: var(--kp-gray-700);
    background: var(--kp-white);
}

.kp-account-btn--gold:hover {
    background: var(--kp-gray-100);
    color: var(--kp-navy);
    border-color: var(--kp-navy);
}

/* Sidebar Styles */
.profile-sidebar {
    background: var(--kp-white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--kp-gray-200);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 100px;
}

.profile-sidebar .list-group-item {
    border: none;
    padding: 14px 24px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--kp-gray-600);
    transition: all 0.2s var(--ease-out);
    display: flex;
    align-items: center;
    gap: 12px;
}

.profile-sidebar .list-group-item i {
    font-size: 1.1rem;
    opacity: 0.7;
}

.profile-sidebar .list-group-item:hover {
    background: var(--kp-navy-50);
    color: var(--kp-navy);
    padding-left: 28px;
}

.profile-sidebar .list-group-item.active {
    background: var(--kp-navy);
    color: var(--kp-white);
    font-weight: 600;
}

.profile-sidebar .list-group-item.active i {
    opacity: 1;
}

.profile-sidebar .list-group-item.text-danger {
    color: #DC2626 !important;
    font-weight: 600;
}

.profile-sidebar .list-group-item.text-danger i {
    color: #DC2626;
    opacity: 1;
}

.profile-sidebar .list-group-item.text-danger:hover {
    background: #FEF2F2 !important;
    color: #B91C1C !important;
    padding-left: 28px;
}

/* Status Badges - Optimized for high contrast and restricted palette */
.badge.status-completed { 
    background-color: #D1FAE5; 
    color: #065F46; 
    border: 1px solid #10B981;
}
.badge.status-processing { 
    background-color: #DBEAFE; 
    color: #1E40AF; 
    border: 1px solid #3B82F6;
}
.badge.status-cancelled { 
    background-color: #FEE2E2; 
    color: #991B1B; 
    border: 1px solid #EF4444;
}
.badge.status-pending { 
    background-color: #FEF3C7; 
    color: #92400E; 
    border: 1px solid #F59E0B;
}
.badge.status-shipped { 
    background-color: #E0E7FF; 
    color: #3730A3; 
    border: 1px solid #4F46E5;
}

/* Orders table shell */
.kp-orders-table-card {
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    background: var(--kp-white);
}

.kp-orders-table-card .table {
    margin-bottom: 0;
}

.kp-orders-table-card .table thead th:first-child {
    padding-left: 1.25rem;
}

.kp-orders-table-card .table tbody td:first-child {
    padding-left: 1.25rem;
}

.kp-orders-table-card .btn-info {
    background: var(--kp-navy);
    border-color: var(--kp-navy);
    color: #fff;
    font-weight: 600;
    border-radius: var(--radius-full);
    padding: 0.35rem 0.9rem;
    font-size: 0.82rem;
}

.kp-orders-table-card .btn-info:hover {
    background: var(--kp-navy-light);
    border-color: var(--kp-navy-light);
    color: #fff;
}

.kp-orders-empty {
    max-width: 520px;
    margin: 2rem auto 3rem;
    text-align: center;
    padding: 2.75rem 2rem;
    background: var(--kp-white);
    border: 1px solid var(--kp-gray-200);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
}

.kp-orders-empty__icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 1.25rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    background: var(--kp-orange-50);
    color: var(--kp-navy);
}

.kp-orders-empty h2 {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--kp-navy);
    margin-bottom: 0.5rem;
}

.kp-orders-empty p {
    color: var(--kp-gray-600);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.kp-orders-empty .btn {
    border-radius: var(--radius-full);
    font-weight: 700;
    padding: 0.65rem 1.5rem;
}

/* ─── ADMIN ──────────────────────────────────────────────────────────── */
.admin-dashboard {
    padding-top: 90px !important;
}

.admin-content {
    padding-top: 90px !important;
}

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

.dashboard-card {
    border-radius: var(--radius-md) !important;
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--kp-gray-200);
}

.dashboard-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.table {
    border-radius: var(--radius-md);
    overflow: hidden;
}

.table thead th {
    background: var(--kp-navy);
    color: #fff;
    font-weight: 600;
    font-size: 0.82rem;
    padding: 14px 16px;
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.table tbody td {
    padding: 14px 16px;
    vertical-align: middle;
    font-size: 0.88rem;
    border-bottom: 1px solid var(--kp-gray-100);
}

.table-striped>tbody>tr:nth-of-type(odd) {
    background-color: var(--kp-light);
}

.page-header {
    color: var(--kp-gray-900);
    font-weight: 800;
    margin-bottom: 20px;
}

.status-pending {
    color: var(--kp-warning);
    font-weight: 600;
}

.status-processing {
    color: var(--kp-info);
    font-weight: 600;
}

.status-shipped {
    color: #8B5CF6;
    font-weight: 600;
}

.status-delivered {
    color: var(--kp-success);
    font-weight: 600;
}

.status-cancelled {
    color: var(--kp-danger);
    font-weight: 600;
}

/* Status as pills in order tables */
.badge.status-pending {
    background: rgba(245, 158, 11, 0.16) !important;
}
.badge.status-processing {
    background: rgba(59, 130, 246, 0.14) !important;
}
.badge.status-shipped {
    background: rgba(139, 92, 246, 0.14) !important;
}
.badge.status-delivered,
.badge.status-completed {
    background: rgba(16, 185, 129, 0.15) !important;
}
.badge.status-cancelled {
    background: rgba(239, 68, 68, 0.14) !important;
}

/* ─── PAGINATION ─────────────────────────────────────────────────────── */
.pagination .page-link {
    color: var(--kp-navy);
    border-color: var(--kp-gray-200);
    border-radius: var(--radius-sm);
    margin: 0 3px;
    transition: var(--transition);
    padding: 8px 14px;
    font-weight: 500;
}

.pagination .page-link:hover {
    background: var(--kp-orange);
    border-color: var(--kp-orange);
    color: #fff;
}

.pagination .page-item.active .page-link {
    background: var(--kp-navy);
    border-color: var(--kp-navy);
}

/* ─── MODAL ──────────────────────────────────────────────────────────── */
.modal-content {
    border: none;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
}

.modal-header {
    border-bottom-color: var(--kp-gray-100);
}

.modal-footer {
    border-top-color: var(--kp-gray-100);
}

/* ─── TOAST ──────────────────────────────────────────────────────────── */
.toast-container {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 9999;
}

.toast-notification {
    min-width: 300px;
    max-width: 400px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.toast-notification .toast-header {
    padding: 12px 16px;
    font-weight: 600;
}

.toast-notification .toast-body {
    padding: 12px 16px;
    font-size: 0.92rem;
}

.toast-notification.toast-success .toast-header {
    background: var(--kp-success);
    color: white;
}

.toast-notification.toast-success .toast-header .btn-close {
    filter: brightness(0) invert(1);
}

.toast-notification.toast-error .toast-header {
    background: var(--kp-danger);
    color: white;
}

.toast-notification.toast-error .toast-header .btn-close {
    filter: brightness(0) invert(1);
}

.toast-notification.toast-warning .toast-header {
    background: var(--kp-warning);
    color: var(--kp-gray-900);
}

.toast-notification.toast-info .toast-header {
    background: var(--kp-info);
    color: white;
}

/* ─── CTA BANNER ─────────────────────────────────────────────────────── */
.cta-banner {
    background: var(--kp-navy);
    border-radius: var(--radius-xl);
    padding: 60px 40px;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
    margin: 40px 0;
}

.cta-banner::before {
    display: none;
}

.cta-banner h2 {
    color: #fff;
    font-size: clamp(1.5rem, 3.5vw, 2rem);
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.cta-banner p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.05rem;
    max-width: 500px;
    margin: 0 auto 28px;
    position: relative;
    z-index: 1;
}

.cta-banner .btn {
    position: relative;
    z-index: 1;
}

/* ─── SCROLL REVEAL ──────────────────────────────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ─── RESPONSIVE ─────────────────────────────────────────────────────── */
@media (max-width: 575.98px) {
    .hero-content-overlay h2 {
        font-size: 1.5rem;
    }

    .hero-content-overlay p {
        font-size: 0.9rem;
    }

    .hero-button-group .btn {
        padding: 12px 24px;
        font-size: 0.88rem;
        width: 100%;
        white-space: normal;
        text-align: center;
    }

    .hero-banner-img {
        height: 80vh;
        max-height: 500px;
    }

    .intro-section-modern {
        padding: 50px 0 30px;
    }

    .intro-heading {
        font-size: 1.4rem;
    }

    .intro-text {
        font-size: 0.92rem;
    }

    .trust-indicators-modern {
        gap: 16px;
        grid-template-columns: 1fr;
    }

    .trust-item-modern {
        padding: 24px 16px;
    }

    .section-title-modern {
        font-size: 1.05rem;
    }

    .spotlight-item {
        flex: 0 0 165px;
        max-width: 165px;
    }

    .product-grid-modern {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .catalog-toolbar {
        flex-direction: column;
        padding: 16px;
    }

    .search-box-modern {
        min-width: 100%;
    }

    .filter-controls {
        width: 100%;
        justify-content: space-between;
    }

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }

    .modern-footer {
        padding: 40px 0 0;
        margin-top: 50px;
    }

    .contact-card {
        padding: 24px 20px;
    }

    .cta-banner {
        padding: 40px 24px;
    }

    .about-hero,
    .contact-hero {
        padding: 80px 0 50px;
    }

    .catalog-header {
        padding: 40px 0 30px;
    }
}

@media (min-width: 576px) and (max-width: 767.98px) {
    .hero-content-overlay h2 {
        font-size: 2rem;
    }

    .hero-banner-img {
        height: 85vh;
        max-height: 550px;
    }

    .spotlight-item {
        flex: 0 0 185px;
        max-width: 185px;
    }

    .product-grid-modern {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .hero-banner-img {
        height: 85vh;
        max-height: 600px;
    }

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

@media (min-width: 992px) {
    .hero-banner-img {
        height: 92vh;
        max-height: 720px;
    }

    .product-grid-modern {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (hover: none) {
    .product-overlay {
        display: none;
    }
}

@media print {

    header.navbar,
    .modern-footer,
    .whatsapp-chat-widget,
    #promoBar,
    .carousel-nav-control,
    .cta-banner {
        display: none !important;
    }

    .main-content-wrapper {
        padding-top: 0 !important;
    }
}

/* ─── WHATSAPP CHAT WIDGET ───────────────────────────────────────────── */
.whatsapp-chat-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    font-family: var(--font-sans);
}

.whatsapp-chat-btn {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-full);
    background: #25D366;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    animation: pulse-whatsapp 2s infinite;
}

.whatsapp-chat-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

.whatsapp-chat-btn svg {
    width: 32px;
    height: 32px;
    fill: white;
}

@keyframes pulse-whatsapp {

    0%,
    100% {
        box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    }

    50% {
        box-shadow: 0 4px 25px rgba(37, 211, 102, 0.6);
    }
}

.whatsapp-chat-popup {
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 340px;
    max-width: calc(100vw - 40px);
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transition: var(--transition);
}

.whatsapp-chat-popup.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.whatsapp-chat-header {
    background: #25D366;
    color: white;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.whatsapp-chat-header-icon {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
}

.whatsapp-chat-header-icon svg {
    width: 24px;
    height: 24px;
    fill: white;
}

.whatsapp-chat-header-info h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
}

.whatsapp-chat-header-info p {
    margin: 2px 0 0;
    font-size: 12px;
    opacity: 0.9;
    color: rgba(255, 255, 255, 0.9);
}

.whatsapp-chat-header-close {
    margin-left: auto;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 4px;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.whatsapp-chat-header-close:hover {
    opacity: 1;
}

.whatsapp-chat-body {
    padding: 20px;
    background: #e5ddd5;
    background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23000000' fill-opacity='0.03'%3E%3Cpath d='M0 0h80v80H0V0zm20 20v40h40V20H20zm20 35a15 15 0 1 1 0-30 15 15 0 0 1 0 30z' fill-rule='evenodd'/%3E%3C/g%3E%3C/svg%3E");
    min-height: 100px;
}

.whatsapp-chat-message {
    background: white;
    padding: 12px 16px;
    border-radius: 0 12px 12px 12px;
    max-width: 85%;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    position: relative;
    font-size: 14px;
    line-height: 1.5;
}

.whatsapp-chat-message::before {
    content: '';
    position: absolute;
    top: 0;
    left: -8px;
    border-width: 0 8px 8px 0;
    border-style: solid;
    border-color: transparent white transparent transparent;
}

.whatsapp-chat-message-time {
    font-size: 11px;
    color: #999;
    text-align: right;
    margin-top: 4px;
}

.whatsapp-chat-footer {
    padding: 16px 20px;
    background: #f0f0f0;
}

.whatsapp-chat-input-wrapper {
    display: flex;
    gap: 10px;
}

.whatsapp-chat-input {
    flex: 1;
    border: none;
    border-radius: var(--radius-full);
    padding: 10px 16px;
    font-size: 14px;
    outline: none;
    background: white;
    font-family: var(--font-sans);
}

.whatsapp-chat-input::placeholder {
    color: #999;
}

.whatsapp-chat-send {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: #25D366;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.whatsapp-chat-send:hover {
    background: #128C7E;
    transform: scale(1.05);
}

.whatsapp-chat-send svg {
    width: 20px;
    height: 20px;
    fill: white;
}

.whatsapp-chat-tooltip {
    position: absolute;
    bottom: 70px;
    right: 70px;
    background: white;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px);
    transition: var(--transition);
}

.whatsapp-chat-tooltip.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.whatsapp-chat-tooltip::after {
    content: '';
    position: absolute;
    right: -6px;
    bottom: 12px;
    border-width: 6px 0 6px 6px;
    border-style: solid;
    border-color: transparent transparent transparent white;
}

@media (max-width: 400px) {
    .whatsapp-chat-popup {
        width: calc(100vw - 40px);
        right: -10px;
    }
}

/* ─── CART PAGE ENHANCEMENTS ─────────────────────────────────────────── */
.cart-item-image {
    max-height: 110px;
    width: 100%;
    object-fit: cover;
    border-radius: var(--radius-md);
}

.cart-item-title {
    color: var(--kp-navy);
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
}

.cart-item-title:hover {
    color: var(--kp-orange);
}

.cart-item-brand {
    font-size: 0.82rem;
}

.cart-price-badge {
    font-size: 0.85rem;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-weight: 700;
}

.cart-price-badge--visible {
    background: var(--kp-orange-50);
    color: var(--kp-orange);
}

.cart-price-badge--hidden {
    background: var(--kp-gray-100);
    color: var(--kp-gray-500);
    font-weight: 500;
    font-size: 0.78rem;
}

.cart-qty-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--kp-gray-400);
}

.cart-qty-input {
    width: 68px;
    padding: 6px 4px;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: var(--radius-sm);
}

.cart-stock-info {
    font-size: 0.7rem;
}

.cart-item-subtotal {
    font-weight: 800;
    font-size: 1.05rem;
}

.cart-item-subtotal--visible {
    color: var(--kp-navy);
}

.cart-item-subtotal--hidden {
    color: var(--kp-gray-400);
    font-weight: 700;
    font-size: 1rem;
}

.cart-remove-btn {
    color: var(--kp-danger);
    background: rgba(239, 68, 68, 0.08);
    border: none;
    border-radius: var(--radius-full);
    padding: 4px 14px;
    font-size: 0.8rem;
    font-weight: 600;
    transition: var(--transition);
}

.cart-remove-btn:hover {
    background: rgba(239, 68, 68, 0.18);
    color: var(--kp-danger);
}

.cart-continue-link {
    color: var(--kp-navy);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9rem;
}

.cart-continue-link:hover {
    color: var(--kp-orange);
}

/* Order Summary */
.order-summary-card {
    padding: 1.75rem;
    background: var(--kp-light);
    border: 1px solid var(--kp-gray-200);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.order-summary-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--kp-navy);
    margin-bottom: 1.25rem;
}

.order-summary-row {
    font-size: 0.92rem;
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.order-summary-label {
    color: var(--kp-gray-500);
}

.order-summary-value {
    font-weight: 600;
    color: var(--kp-gray-800);
}

.order-summary-total {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--kp-orange);
}

.order-summary-total--hidden {
    font-size: 1rem;
    font-weight: 700;
    color: var(--kp-gray-400);
}

.order-summary-note {
    font-size: 0.78rem;
    color: var(--kp-gray-400);
    text-align: center;
    margin-top: 0.75rem;
}

/* ─── CHECKOUT PAGE ──────────────────────────────────────────────────── */
.checkout-section-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.checkout-section-icon--contact {
    background: var(--kp-navy-50);
    color: var(--kp-navy);
}

.checkout-section-icon--payment {
    background: var(--kp-orange-50);
    color: var(--kp-orange);
}

.checkout-section-heading {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--kp-gray-800);
    margin: 0;
}

.checkout-payment-area {
    background: var(--kp-light);
    border-radius: var(--radius-md);
    padding: 1.25rem;
}

.checkout-payment-option {
    padding: 12px 12px 12px 40px;
    background: var(--kp-white);
    border-radius: var(--radius-sm);
    border: 2px solid var(--kp-gray-200);
}

.checkout-payment-option--disabled {
    opacity: 0.6;
}

.checkout-payment-label {
    font-weight: 600;
    color: var(--kp-gray-700);
    font-size: 0.9rem;
}

.checkout-summary-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--kp-gray-200);
}

.checkout-summary-thumb {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--kp-white);
}

.checkout-summary-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.checkout-summary-name {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--kp-gray-800);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.checkout-summary-qty {
    font-size: 0.78rem;
    color: var(--kp-gray-400);
}

.checkout-summary-price {
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--kp-gray-800);
}

.checkout-edit-link {
    color: var(--kp-navy);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.85rem;
}

.checkout-edit-link:hover {
    color: var(--kp-orange);
}

/* WhatsApp Only Mode */
.whatsapp-mode-icon {
    width: 100px;
    height: 100px;
    border-radius: var(--radius-full);
    background: rgba(37, 211, 102, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.whatsapp-mode-title {
    font-weight: 800;
    color: var(--kp-gray-800);
    margin-bottom: 0.75rem;
    font-size: 1.5rem;
}

.whatsapp-mode-text {
    color: var(--kp-gray-500);
    margin-bottom: 2rem;
    line-height: 1.7;
}

/* ─── CONFIRMATION PAGE ──────────────────────────────────────────────── */
.confirmation-wrapper {
    max-width: 620px;
    margin: 0 auto;
    text-align: center;
}

.confirmation-card {
    background: var(--kp-white);
    border-radius: var(--radius-xl);
    padding: 3rem 2.5rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--kp-gray-100);
}

.confirmation-icon {
    width: 90px;
    height: 90px;
    border-radius: var(--radius-full);
    background: rgba(16, 185, 129, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    animation: confirmPulse 2s ease-in-out infinite;
}

@keyframes confirmPulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.2);
    }

    50% {
        box-shadow: 0 0 0 12px rgba(34, 197, 94, 0);
    }
}

.confirmation-icon i {
    font-size: 2.5rem;
    color: var(--kp-success);
}

.confirmation-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--kp-gray-800);
    margin-bottom: 0.5rem;
}

.confirmation-text {
    color: var(--kp-gray-500);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.confirmation-order-id {
    background: var(--kp-light);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    border: 1px dashed var(--kp-gray-300);
}

.confirmation-order-id-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--kp-gray-400);
    margin-bottom: 0.25rem;
}

.confirmation-order-id-value {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--kp-navy);
}

/* ─── ERROR PAGE ─────────────────────────────────────────────────────── */
.error-wrapper {
    max-width: 620px;
    margin: 0 auto;
    text-align: center;
}

.error-card {
    background: var(--kp-white);
    border-radius: var(--radius-xl);
    padding: 3rem 2.5rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--kp-gray-100);
    border-top: 4px solid var(--kp-danger);
}

.error-code {
    font-size: 6rem;
    font-weight: 900;
    line-height: 1;
    color: var(--kp-navy);
    margin-bottom: 0.5rem;
}

.error-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--kp-gray-700);
    margin-bottom: 1rem;
}

.error-message {
    color: var(--kp-gray-500);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.error-divider {
    border: none;
    border-top: 1px solid var(--kp-gray-200);
    margin: 1.5rem 0;
}