/* ═══════════════════════════════════════════════════════════
   LENSCRAFT — style.css
   Dark minimalist theme (CoreDash inspired)

   Contents
   01. Tokens
   02. Reset
   03. Typography
   04. Layout (containers, main)
   05. Site Navbar (standard)
   06. Mobile bottom nav
   07. Dropdowns
   08. Buttons
   09. Forms & inputs
   10. Dashboard header / section headers
   11. Product card (compact + 3D)
   12. Category card
   13. Package card
   14. Pricing card
   15. Product detail (compact + 3D)
   16. Cart & checkout
   17. Tables
   18. Info pages (About / History / Contact / FAQ)
   19. Team, Store, Timeline
   20. Toasts
   21. Empty state
   22. Footer
   23. Utilities
   24. Responsive
   25. Motion & print
   ═══════════════════════════════════════════════════════════ */

/* ═══════════════ 01. TOKENS ═══════════════ */
:root {
    /* Palette */
    --bg-base:      #1e272e;
    --bg-elevated:  #232d35;
    --bg-hover:     rgba(255, 255, 255, .06);
    --bg-active:    rgba(109, 139, 255, .15);

    --text-primary:   #e8eef5;
    --text-secondary: #b8c4d0;
    --text-muted:     #7e8c9a;

    --accent:       #6d8bff;
    --accent-hover: #8aa3ff;
    --accent-soft:  rgba(109, 139, 255, .15);

    --border-subtle: rgba(255, 255, 255, .08);
    --border-input:  rgba(255, 255, 255, .20);
    --border-focus:  #6d8bff;

    --success: #2ecc71;  --success-bg: rgba(46, 204, 113, .15);
    --warning: #f1c40f;  --warning-bg: rgba(241, 196, 15, .15);
    --danger:  #ff5b5b;  --danger-bg:  rgba(255, 91, 91, .15);
    --info:    #3498db;  --info-bg:    rgba(52, 152, 219, .15);

    /* Motion */
    --transition:    all .2s ease;
    --transition-lg: all .4s cubic-bezier(.2, .9, .3, 1.2);

    /* Layout */
    --topnav-h:      56px;
    --bottom-nav-h:  58px;
    --container-pad: 10px;

    /* Compact sizing */
    --input-h:       32px;
    --btn-h:         30px;
    --input-pad-x:   5px;
}

@media (min-width: 768px) {
    :root { --container-pad: 12px; }
}
@media (min-width: 1200px) {
    :root { --container-pad: 14px; --topnav-h: 60px; }
}

/* ═══════════════ 02. RESET ═══════════════ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

html, body {
    background: var(--bg-base);
    min-height: 100vh;
    color: var(--text-primary);
}

body {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    line-height: 1.55;
    overscroll-behavior-y: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }

a {
    color: var(--accent);
    text-decoration: none;
    transition: var(--transition);
}
a:hover { color: var(--accent-hover); }

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, .12);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ═══════════════ 03. TYPOGRAPHY ═══════════════ */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -.3px;
    line-height: 1.3;
}

h1 { font-size: 1.4rem; }
h2 { font-size: 1.15rem; }
h3 { font-size: 1rem; }
h4 { font-size: .9rem; }

.page-title {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -.5px;
}
.page-title span { color: var(--accent); }

.text-muted    { color: var(--text-muted) !important; }
.text-gradient { color: var(--accent) !important; }

/* ═══════════════ 04. LAYOUT ═══════════════ */
.main-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: .75rem .5rem 1.5rem;
    width: 100%;
    min-height: calc(100vh - var(--topnav-h) - 100px);
}

/* ═══════════════ 05. SITE NAVBAR (standard) ═══════════════ */
.site-navbar {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1040;
    background: var(--bg-base);
    border-bottom: 1px solid var(--border-subtle);
    padding: .4rem 0;
    padding-top: env(safe-area-inset-top, 0);
}

.site-navbar > .container-fluid {
    padding-left: var(--container-pad);
    padding-right: var(--container-pad);
    display: flex;
    align-items: center;
    gap: .75rem;
    flex-wrap: wrap;
}

/* Brand */
.site-navbar .navbar-brand {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    font-weight: 700;
    font-size: .98rem;
    color: var(--text-primary);
    padding: 0;
    margin: 0;
    letter-spacing: -.3px;
    flex-shrink: 0;
}
.site-navbar .navbar-brand:hover { color: var(--text-primary); }
.site-navbar .brand-icon { color: var(--accent); font-size: 1.15rem; }
.site-navbar .brand-name span { color: var(--accent); }

/* Toggler */
.site-navbar .navbar-toggler {
    border: 1px solid var(--border-input);
    background: transparent;
    color: var(--text-secondary);
    padding: .3rem .5rem;
    border-radius: 0;
    box-shadow: none !important;
    font-size: .9rem;
    margin-left: auto;
    transition: var(--transition);
}
.site-navbar .navbar-toggler:hover {
    color: var(--accent);
    border-color: var(--accent);
}
.site-navbar .navbar-toggler:focus { box-shadow: none; }

/* Collapse region — do NOT override display on desktop */
.site-navbar .navbar-collapse {
    flex-basis: auto;
    flex-grow: 1;
}

/* Primary nav (center) */
.nav-primary {
    display: flex;
    align-items: center;
    gap: .05rem;
    flex-direction: row;
    margin: 0;
}
.nav-primary .nav-item { margin: 0; }
.nav-primary .nav-link {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .45rem .55rem;
    font-size: .76rem;
    font-weight: 500;
    color: var(--text-secondary) !important;
    border-bottom: 1px solid transparent;
    transition: var(--transition);
    white-space: nowrap;
    text-decoration: none;
}
.nav-primary .nav-link i {
    font-size: .72rem;
    color: var(--text-muted);
    transition: var(--transition);
}
.nav-primary .nav-link:hover {
    color: var(--text-primary) !important;
    border-bottom-color: var(--border-input);
}
.nav-primary .nav-link:hover i { color: var(--accent); }
.nav-primary .nav-link.active {
    color: var(--accent) !important;
    font-weight: 600;
    border-bottom-color: var(--accent);
}
.nav-primary .nav-link.active i { color: var(--accent); }

/* Actions (right) */
.nav-actions {
    display: flex;
    align-items: center;
    gap: .2rem;
    flex-direction: row;
    margin: 0 0 0 auto;
}
.nav-actions .nav-item {
    margin: 0;
    display: flex;
    align-items: center;
}

/* ---------- Inline search (≥992px) ---------- */
.nav-search-item { padding-right: .35rem; }

.nav-search {
    display: flex;
    align-items: center;
    gap: .4rem;
    padding: .25rem 0;
    border-bottom: 1px solid var(--border-input);
    transition: var(--transition);
    width: 500px;
    flex-shrink: 0;
}
.nav-search:focus-within {
    border-bottom-color: var(--accent);
    width: 500px;
}
.nav-search i {
    color: var(--text-muted);
    font-size: .72rem;
    flex-shrink: 0;
}
.nav-search input {
    flex: 1;
    min-width: 0;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: .76rem;
    font-family: inherit;
    width: 100%;
}
.nav-search input::placeholder {
    color: var(--text-muted);
    opacity: .6;
}

/* ---------- Icon buttons ---------- */
.nav-icon-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-bottom: 1px solid transparent;
    color: var(--text-secondary);
    font-size: .92rem;
    width: 34px;
    height: 34px;
    cursor: pointer;
    transition: var(--transition);
    padding: 0;
    text-decoration: none;
}
.nav-icon-btn:hover {
    color: var(--accent);
    border-bottom-color: var(--accent);
}
.nav-icon-btn .cart-count {
    position: absolute;
    top: 2px;
    right: 2px;
    background: var(--danger);
    color: #fff;
    font-size: .5rem;
    font-weight: 700;
    min-width: 14px;
    height: 14px;
    padding: 0 3px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* ---------- Avatar ---------- */
.nav-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: var(--accent);
    color: #fff;
    font-weight: 600;
    font-size: .68rem;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    padding: 0;
    margin-left: .15rem;
}
.nav-avatar:hover { background: var(--accent-hover); }
.nav-avatar:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--accent-soft);
}

/* ---------- Dropdown — ensure it sits ABOVE the bottom nav ---------- */
.site-navbar .nav-item.dropdown {
    position: relative;    /* anchor dropdown to nav-item */
}
.site-navbar .dropdown-menu {
    z-index: 1050 !important;   /* above mobile-bottom-nav (1030) */
}

/* ═══════════════ 06. MOBILE BOTTOM NAV ═══════════════ */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--bottom-nav-h);
    background: var(--bg-base);
    border-top: 1px solid var(--border-subtle);
    z-index: 1030;
    padding-bottom: env(safe-area-inset-bottom, 0);
    justify-content: space-around;
    align-items: center;
}
@media (max-width: 991px) {
    .mobile-bottom-nav { display: flex; }
}
.mobile-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .15rem;
    background: transparent;
    border: none;
    border-top: 2px solid transparent;
    color: var(--text-muted);
    padding: .35rem .2rem;
    font-size: .58rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    position: relative;
}
.mobile-nav-item i { font-size: .9rem; }
.mobile-nav-item.active {
    color: var(--accent);
    border-top-color: var(--accent);
}
.mobile-nav-item:active { background: var(--bg-hover); }
.nav-count {
    position: absolute;
    top: 4px;
    right: calc(50% - 18px);
    background: var(--danger);
    color: #fff;
    font-size: .5rem;
    font-weight: 700;
    padding: 1px 4px;
    min-width: 12px;
    text-align: center;
}

/* ═══════════════ 07. DROPDOWNS ═══════════════ */
.site-navbar .dropdown-menu {
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    box-shadow: 0 15px 35px rgba(0, 0, 0, .5);
    padding: .3rem;
    min-width: 210px;
    border-radius: 0;
    margin-top: .5rem;
    z-index: 1050;
}
.site-navbar .dropdown-header {
    padding: .5rem .7rem;
    font-weight: 600;
    font-size: .62rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid var(--border-subtle);
    margin-bottom: .25rem;
}
.site-navbar .dropdown-item {
    display: flex;
    align-items: center;
    gap: .55rem;
    padding: .5rem .7rem;
    color: var(--text-primary);
    font-size: .78rem;
    transition: var(--transition);
    border-bottom: 1px solid transparent;
    border-radius: 0;
}
.site-navbar .dropdown-item i {
    width: 14px;
    color: var(--accent);
    font-size: .74rem;
}
.site-navbar .dropdown-item:hover {
    background: transparent;
    color: var(--accent);
    border-bottom-color: var(--accent);
}
.site-navbar .dropdown-item.item-danger,
.site-navbar .dropdown-item.item-danger i { color: var(--danger); }
.site-navbar .dropdown-item.item-danger:hover {
    color: #ff8080;
    border-bottom-color: #ff8080;
}
.site-navbar .dropdown-divider {
    background: var(--border-subtle);
    margin: .3rem 0;
    border: none;
    height: 1px;
}

/* ═══════════════════════════════════════════════════════════
   HERO CAROUSEL — v2 (left/right/center + dual image + typography)
   ═══════════════════════════════════════════════════════════ */

.hero-carousel { margin-bottom: 1.5rem; }

/* ── Slide shell ── */
.hero-slide {
    position: relative;
    max-height: 380px;
    padding: 4rem 0;
    background-color: var(--bg-elevated);
    background-size: cover;
    background-position: center;
    border-bottom: 1px solid var(--border-subtle);
    overflow: hidden;
    display: flex;
    align-items: center;
}

/* Directional overlay — darker on the text side */
.hero-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}
.hero-slide--left::before {
    background: linear-gradient(90deg,
        rgba(30,39,46, calc(var(--hero-overlay, .7) + .15)) 0%,
        rgba(30,39,46, var(--hero-overlay, .55)) 45%,
        rgba(30,39,46, .15) 100%);
}
.hero-slide--right::before {
    background: linear-gradient(270deg,
        rgba(30,39,46, calc(var(--hero-overlay, .7) + .15)) 0%,
        rgba(30,39,46, var(--hero-overlay, .55)) 45%,
        rgba(30,39,46, .15) 100%);
}
.hero-slide--center::before {
    background: rgba(30, 39, 46, var(--hero-overlay, .6));
}

/* ── Inner layout (text + secondary image) ── */
.hero-slide-inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 2.5rem;
    width: 100%;
}
.hero-slide--left   .hero-slide-inner { flex-direction: row; }
.hero-slide--right  .hero-slide-inner { flex-direction: row-reverse; }
.hero-slide--center .hero-slide-inner { flex-direction: column; text-align: center; }

/* ── Content column ── */
.hero-content {
    flex: 1 1 55%;
    max-width: 640px;
}
.hero-slide--center .hero-content {
    max-width: 780px;
    margin: 0 auto;
}

.hero-content--start  { text-align: left; }
.hero-content--center { text-align: center; }
.hero-content--end    { text-align: right; }

/* ── Secondary image column ── */
.hero-secondary-image {
    flex: 1 1 40%;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 480px;
}
.hero-secondary-image img {
    width: 100%;
    height: auto;
    max-height: 420px;
    object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, .45));
    animation: heroFloat 6s ease-in-out infinite;
}
@keyframes heroFloat {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-10px); }
}

/* ── Badge (uppercase micro-label) ── */
.hero-badge {
    display: inline-block;
    color: var(--accent);
    border: 1px solid var(--accent);
    padding: .35rem 1rem;
    font-family: 'Inter', sans-serif;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
    background: rgba(109, 139, 255, .08);
    backdrop-filter: blur(4px);
}

/* ── TITLE (largest, most expressive) ── */
.hero-title {
    font-family: 'Inter', sans-serif;
    font-size: 3.25rem;
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -1.8px;
    color: var(--text-primary);
    margin-bottom: .85rem;
}
.hero-title span,
.hero-title strong {
    color: var(--accent);
    font-weight: 800;
}

/* ── SUBTITLE (medium, lighter weight) ── */
.hero-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 1.15rem;
    font-weight: 400;
    line-height: 1.55;
    letter-spacing: -.2px;
    color: var(--text-secondary);
    max-width: 560px;
    margin-bottom: 1rem;
}
.hero-slide--center .hero-subtitle { margin-left: auto; margin-right: auto; }

/* ── BODY CONTENT (smallest paragraph) ── */
.hero-body {
    font-family: 'Inter', sans-serif;
    font-size: .9rem;
    font-weight: 300;
    line-height: 1.75;
    color: var(--text-muted);
    max-width: 540px;
    margin-bottom: 1.75rem;
}
.hero-slide--center .hero-body { margin-left: auto; margin-right: auto; }

/* ── CTA row ── */
.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}
.hero-slide--center .hero-buttons { justify-content: center; }
.hero-content--end  .hero-buttons { justify-content: flex-end; }

.hero-btn-primary {
    min-height: 44px;
    padding: .65rem 1.6rem;
    font-size: .82rem;
    letter-spacing: .8px;
    text-transform: uppercase;
    border-bottom: none !important;
    background: var(--accent);
    color: #fff !important;
    font-weight: 700;
    transition: var(--transition);
}
.hero-btn-primary:hover {
    background: var(--accent-hover);
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px -8px var(--accent);
}

.hero-btn-secondary {
    min-height: 44px;
    padding: .65rem 1.4rem;
    font-size: .82rem;
    letter-spacing: .8px;
    text-transform: uppercase;
    color: var(--text-primary) !important;
    border: 1px solid var(--border-input) !important;
    border-bottom: 1px solid var(--border-input) !important;
    font-weight: 600;
}
.hero-btn-secondary:hover {
    border-color: var(--accent) !important;
    color: var(--accent) !important;
}

/* ═══════════════════════════════════════════════════════════
   TYPOGRAPHY VARIANTS — set via `hero-type--{style}`
   ═══════════════════════════════════════════════════════════ */

/* ── Default (Inter) — already above ── */

/* ── Serif — elegant editorial ── */
.hero-type--serif .hero-title {
    font-family: 'Playfair Display', 'Georgia', serif;
    font-weight: 900;
    font-style: italic;
    letter-spacing: -1px;
}
.hero-type--serif .hero-subtitle {
    font-family: 'Playfair Display', 'Georgia', serif;
    font-weight: 400;
    font-style: italic;
    font-size: 1.3rem;
}
.hero-type--serif .hero-body {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
}
.hero-type--serif .hero-badge {
    font-family: 'Playfair Display', serif;
    font-style: normal;
    letter-spacing: 3px;
}

/* ── Display — massive, tight, all-caps feel ── */
.hero-type--display .hero-title {
    font-family: 'Inter', sans-serif;
    font-weight: 900;
    font-size: 4rem;
    letter-spacing: -3px;
    text-transform: uppercase;
    line-height: .95;
}
.hero-type--display .hero-subtitle {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 4px;
    font-size: .85rem;
    color: var(--accent);
}
.hero-type--display .hero-body {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: .95rem;
}

/* ── Mono — technical / specs style ── */
.hero-type--mono .hero-title {
    font-family: 'JetBrains Mono', 'SF Mono', 'Courier New', monospace;
    font-weight: 700;
    letter-spacing: -1.5px;
    font-size: 2.6rem;
}
.hero-type--mono .hero-subtitle {
    font-family: 'JetBrains Mono', monospace;
    font-size: .95rem;
    letter-spacing: .5px;
    color: var(--accent);
}
.hero-type--mono .hero-body {
    font-family: 'JetBrains Mono', monospace;
    font-size: .78rem;
    line-height: 1.9;
    letter-spacing: .2px;
}
.hero-type--mono .hero-badge {
    font-family: 'JetBrains Mono', monospace;
    border-style: dashed;
}

/* ── Carousel indicators & controls ── */
.hero-carousel .carousel-indicators {
    bottom: 1.35rem;
    z-index: 2;
}
.hero-carousel .carousel-indicators button {
    width: 34px;
    height: 2px;
    background: var(--border-input);
    border: none;
    margin: 0 .22rem;
    transition: var(--transition);
}
.hero-carousel .carousel-indicators .active {
    background: var(--accent);
    width: 54px;
}

.hero-carousel .carousel-control-prev,
.hero-carousel .carousel-control-next {
    width: 56px;
    opacity: .55;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1.1rem;
    z-index: 2;
    transition: opacity .2s, color .2s;
}
.hero-carousel .carousel-control-prev:hover,
.hero-carousel .carousel-control-next:hover {
    opacity: 1;
    color: var(--accent);
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE — HERO
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 991px) {
    .hero-slide { min-height: 480px; padding: 3rem 0; }
    .hero-slide-inner { gap: 1.5rem; }
    .hero-title { font-size: 2.4rem; letter-spacing: -1.2px; }
    .hero-type--display .hero-title { font-size: 2.8rem; letter-spacing: -2px; }
    .hero-type--serif   .hero-title { font-size: 2.4rem; }
    .hero-type--mono    .hero-title { font-size: 2rem; }
    .hero-subtitle { font-size: 1rem; }
}

@media (max-width: 767px) {
    .hero-slide { min-height: 420px; padding: 2.5rem 0; }
    .hero-slide-inner {
        flex-direction: column !important;
        text-align: center;
        gap: 1.25rem;
    }
    .hero-content,
    .hero-secondary-image {
        flex: 0 0 auto;
        width: 100%;
        max-width: 100%;
        text-align: center !important;
    }
    .hero-secondary-image img { max-height: 220px; }
    .hero-buttons { justify-content: center !important; }

    .hero-title { font-size: 1.9rem; letter-spacing: -1px; }
    .hero-type--display .hero-title { font-size: 2.2rem; letter-spacing: -1.5px; }
    .hero-type--serif   .hero-title { font-size: 1.9rem; }
    .hero-type--mono    .hero-title { font-size: 1.6rem; }
    .hero-subtitle { font-size: .92rem; }
    .hero-body { font-size: .82rem; }
    .hero-badge { font-size: .6rem; padding: .28rem .75rem; letter-spacing: 1.5px; }
    .hero-btn-primary,
    .hero-btn-secondary { min-height: 40px; padding: .55rem 1.2rem; font-size: .72rem; }
}

@media (max-width: 575px) {
    .hero-slide { min-height: 380px; padding: 2rem 0; }
    .hero-title { font-size: 1.6rem; }
    .hero-type--display .hero-title { font-size: 1.85rem; }
    .hero-type--serif   .hero-title { font-size: 1.6rem; }
    .hero-type--mono    .hero-title { font-size: 1.35rem; }
    .hero-secondary-image img { max-height: 160px; }
}

/* Reduced motion — disable float */
@media (prefers-reduced-motion: reduce) {
    .hero-secondary-image img { animation: none; }
}

/* ═══════════════ 08. BUTTONS (compact) ═══════════════ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    min-height: var(--btn-h);
    padding: .25rem .55rem;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border-input);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: .74rem;
    letter-spacing: .2px;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    white-space: nowrap;
    border-radius: 0;
    box-shadow: none !important;
}
.btn i { font-size: .72rem; }
.btn:hover {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.btn-primary { color: var(--accent); border-bottom-color: var(--accent); }
.btn-primary:hover {
    color: var(--accent-hover);
    border-bottom-color: var(--accent-hover);
}

.btn-danger { color: var(--danger); border-bottom-color: var(--danger); }
.btn-danger:hover { color: #ff8080; border-bottom-color: #ff8080; }

.btn-icon {
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border-input);
    color: var(--text-secondary);
    min-height: var(--btn-h);
    cursor: pointer;
    padding: .25rem .5rem;
    transition: var(--transition);
    font-size: .8rem;
}
.btn-icon:hover {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.action-buttons {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
    align-items: center;
}

/* ═══════════════ 09. FORMS & INPUTS (compact) ═══════════════ */
.form-control,
.form-select,
.input-form,
.input-transparent,
.select-transparent {
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border-input);
    border-radius: 0 !important;
    height: var(--input-h);
    min-height: var(--input-h);
    padding: 0 var(--input-pad-x);
    font-size: .78rem;
    color: var(--text-primary);
    transition: var(--transition);
    width: 100%;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    box-shadow: none !important;
    font-family: inherit;
    line-height: 1;
}

.form-control::placeholder,
.form-select::placeholder,
.input-form::placeholder,
.input-transparent::placeholder {
    color: var(--text-muted);
    opacity: .55;
}

.form-control:focus,
.form-select:focus,
.input-form:focus,
.input-transparent:focus,
.select-transparent:focus {
    border-bottom-color: var(--accent);
    background: transparent;
    color: var(--text-primary);
}

.input-transparent { padding-left: var(--input-pad-x); }

.select-transparent {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%237e8c9a' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'></polyline></svg>");
    background-repeat: no-repeat;
    background-position: right 4px center;
    background-size: 10px;
    padding-right: 20px;
    cursor: pointer;
}
.select-transparent option {
    background: var(--bg-elevated);
    color: var(--text-primary);
    padding: 6px;
}

textarea.input-form,
textarea.form-control {
    height: auto;
    min-height: 70px;
    padding: 6px var(--input-pad-x);
    line-height: 1.5;
    resize: vertical;
}

input[type="file"].input-form {
    height: auto;
    padding: 4px var(--input-pad-x);
}

input[type="date"].input-form { color-scheme: dark; }
input[type="date"].input-form::-webkit-calendar-picker-indicator {
    filter: invert(.6);
    cursor: pointer;
}

input[type="checkbox"],
input[type="radio"] { accent-color: var(--accent); cursor: pointer; }

.form-group {
    display: flex;
    flex-direction: column;
    gap: .15rem;
    position: relative;
    margin-bottom: .6rem;
}
.form-group label {
    font-size: .6rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 1px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: .25rem;
}
.form-group label i { color: var(--accent); font-size: .6rem; }
.form-hint {
    font-size: .62rem;
    color: var(--text-muted);
    margin-top: .15rem;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: .7rem;
}
.form-group.full-width { grid-column: 1 / -1; }

.quantity-input {
    display: inline-flex;
    align-items: center;
    border-bottom: 1px solid var(--border-input);
    height: var(--input-h);
}
.qty-btn {
    width: 26px;
    height: 100%;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: .9rem;
    cursor: pointer;
    transition: var(--transition);
    padding: 0;
}
.qty-btn:hover { color: var(--accent); }
.qty-field {
    width: 42px;
    height: 100%;
    border: none;
    background: transparent;
    color: var(--text-primary);
    text-align: center;
    font-weight: 600;
    font-size: .8rem;
    -moz-appearance: textfield;
    outline: none;
    font-family: inherit;
    padding: 0 var(--input-pad-x);
}
.qty-field::-webkit-inner-spin-button,
.qty-field::-webkit-outer-spin-button { -webkit-appearance: none; }

/* ═══════════════ 10. HEADERS ═══════════════ */
.dashboard-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: .5rem;
    margin-bottom: 1rem;
    padding-bottom: .5rem;
    border-bottom: 1px solid var(--border-subtle);
}

.breadcrumb-nav {
    display: flex;
    align-items: center;
    gap: .35rem;
    font-size: .7rem;
    color: var(--text-muted);
    margin-top: .15rem;
}
.breadcrumb-nav a { color: var(--text-muted); }
.breadcrumb-nav a:hover { color: var(--accent); }
.breadcrumb-nav i { font-size: .5rem; }

.section-header {
    margin-bottom: 1rem;
    padding-bottom: .5rem;
    border-bottom: 1px solid var(--border-subtle);
}
.section-badge {
    display: inline-block;
    color: var(--accent);
    font-size: .62rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: .35rem;
}
.section-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: .2rem;
    line-height: 1.3;
}
.section-subtitle {
    color: var(--text-muted);
    font-size: .75rem;
    line-height: 1.5;
}

/* ═══════════════ 11. PRODUCT CARD (compact + 3D) ═══════════════ */
.product-card {
    display: flex;
    flex-direction: column;
    padding: .5rem 0;
    border-bottom: 1px solid var(--border-subtle);
    transition: transform .35s cubic-bezier(.2, .9, .3, 1.2),
                border-color .25s ease;
    position: relative;
    height: 100%;
    background: transparent;
    transform-style: preserve-3d;
    perspective: 800px;
    will-change: transform;
}
.product-card:hover { border-bottom-color: var(--accent); }

.product-image-wrapper {
    position: relative;
    aspect-ratio: 1 / 1;
    max-height: 140px;
    background: var(--bg-elevated);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: .5rem;
    transform-style: preserve-3d;
    transition: var(--transition);
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
    transition: transform .45s cubic-bezier(.2, .9, .3, 1.2),
                filter .3s ease;
    will-change: transform;
}

.product-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--border-subtle);
    font-size: 2rem;
    width: 100%;
    height: 100%;
}

.badge-discount,
.badge-sale {
    font-size: .55rem;
    padding: .15rem .35rem;
    letter-spacing: .3px;
    font-weight: 700;
    text-transform: uppercase;
}
.badge-discount {
    position: absolute;
    top: 6px; left: 6px;
    background: var(--danger);
    color: #fff;
}
.badge-sale {
    position: absolute;
    top: 6px; right: 6px;
    color: #fff;
}

.product-info {
    display: flex;
    flex-direction: column;
    gap: .15rem;
    flex: 1;
    padding: 0 .1rem;
}

.product-brand {
    font-size: .55rem;
    letter-spacing: .8px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
}

.product-name {
    font-size: .76rem;
    font-weight: 600;
    line-height: 1.35;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.05em;
    transition: transform .35s ease;
}
.product-name a { color: var(--text-primary); }
.product-name a:hover { color: var(--accent); }

.product-rating { font-size: .6rem; color: var(--warning); }
.rating-count {
    color: var(--text-muted);
    font-size: .6rem;
    margin-left: .2rem;
}

.product-price {
    display: flex;
    align-items: baseline;
    gap: .3rem;
    margin: .15rem 0;
    flex-wrap: wrap;
}
.price-current {
    font-size: .88rem;
    font-weight: 700;
    color: var(--text-primary);
}
.price-on-sale { color: var(--accent); }
.price-old {
    font-size: .68rem;
    color: var(--text-muted);
    text-decoration: line-through;
}
.price-unavailable {
    font-size: .65rem;
    color: var(--text-muted);
    font-style: italic;
}

.btn-add-cart {
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border-input);
    color: var(--text-secondary);
    padding: .35rem 0;
    font-size: .66rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: .8px;
    margin-top: .2rem;
    width: 100%;
    min-height: var(--btn-h);
}
.btn-add-cart:hover:not(:disabled) {
    color: var(--accent);
    border-bottom-color: var(--accent);
}
.btn-add-cart:disabled {
    color: var(--text-muted);
    opacity: .4;
    cursor: not-allowed;
}

/* 3D shine sweep */
.product-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        120deg,
        transparent 35%,
        rgba(255, 255, 255, .06) 45%,
        rgba(255, 255, 255, .12) 50%,
        rgba(255, 255, 255, .06) 55%,
        transparent 65%
    );
    background-size: 250% 100%;
    background-position: 200% 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s;
    z-index: 3;
}
.product-card:hover { transform: translateY(-4px); }
.product-card:hover::after {
    opacity: 1;
    background-position: -100% 0;
    transition: background-position .9s ease, opacity .25s;
}
.product-card:hover .product-image {
    transform: scale(1.08) translateZ(18px);
    filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .28));
}
.product-card:hover .product-name { transform: translateZ(6px); }

.tilt-enabled {
    transform-style: preserve-3d;
    transition: transform .15s ease-out, border-color .25s ease;
}
.tilt-enabled.tilt-active {
    transition: transform .06s linear, border-color .25s ease;
}

/* ═══════════════ 12. CATEGORY CARD ═══════════════ */
.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;          /* centers children horizontally */
    justify-content: flex-start;
    text-align: center;           /* centers inline text */
    padding: 1.25rem 1rem;
    height: 100%;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: transform .2s, box-shadow .2s;
}

.category-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,.08);
}

.category-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin: 0 auto .75rem;        /* centered, with bottom spacing */
    overflow: hidden;
    background: transparent;
}

.category-icon img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    display: block;
    margin: 0 auto;
}

.category-card h5 {
    font-size: .95rem;
    font-weight: 700;
    margin: 0 0 .35rem;
    text-align: center;
    line-height: 1.25;
}

.category-card p {
    color: var(--text-muted);
    margin-bottom: .35rem;
    line-height: 1.45;
    text-align: center;
}

.category-link {
    color: var(--accent);
    font-size: .68rem;
    font-weight: 600;
    letter-spacing: .3px;
    text-align: center;
    margin-top: auto;             /* pushes "Browse →" to bottom */
    display: inline-block;
}

/* ═══════════════ 13. PACKAGE CARD ═══════════════ */
.package-card {
    display: flex;
    flex-direction: column;
    padding: .75rem 0;
    border-bottom: 1px solid var(--border-subtle);
    transition: transform .35s cubic-bezier(.2, .9, .3, 1.2),
                border-color .25s ease;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
}
.package-card:hover {
    border-bottom-color: var(--accent);
    transform: translateY(-4px);
}

.package-image-wrapper {
    position: relative;
    aspect-ratio: 16 / 10;
    background: var(--bg-elevated);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: .6rem;
}
.package-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 12px;
    transition: transform .45s ease, filter .3s ease;
}
.package-card:hover .package-image {
    transform: scale(1.06) translateZ(18px);
    filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .25));
}
.package-placeholder { color: var(--border-subtle); font-size: 2.5rem; }

.package-badge {
    position: absolute;
    top: 6px; left: 6px;
    color: #fff;
    font-size: .55rem;
    font-weight: 700;
    padding: .15rem .4rem;
    text-transform: uppercase;
    letter-spacing: .3px;
}
.package-save {
    position: absolute;
    top: 6px; right: 6px;
    background: var(--danger);
    color: #fff;
    padding: .15rem .35rem;
    font-size: .55rem;
    font-weight: 700;
    text-transform: uppercase;
}

.package-info {
    display: flex;
    flex-direction: column;
    gap: .25rem;
    flex: 1;
}
.package-name { font-size: .82rem; font-weight: 600; }
.package-name a { color: var(--text-primary); }
.package-name a:hover { color: var(--accent); }
.package-tagline { font-size: .68rem; color: var(--text-muted); }
.package-items-count {
    color: var(--accent);
    font-size: .62rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}
.package-price {
    display: flex;
    align-items: baseline;
    gap: .4rem;
    margin-top: auto;
    flex-wrap: wrap;
}
.package-price-current {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--accent);
}
.package-price-old {
    font-size: .7rem;
    color: var(--text-muted);
    text-decoration: line-through;
}
.package-savings {
    color: var(--success);
    font-size: .66rem;
    font-weight: 600;
}

.btn-package {
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border-input);
    color: var(--text-secondary);
    padding: .35rem 0;
    font-size: .66rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
    margin-top: .35rem;
    width: 100%;
    min-height: var(--btn-h);
}
.btn-package:hover {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.package-footer-meta {
    display: flex;
    justify-content: space-between;
    margin-top: .4rem;
    padding-top: .4rem;
    border-top: 1px solid var(--border-subtle);
    color: var(--text-muted);
    font-size: .62rem;
}

/* ═══════════════ 14. PRICING CARD ═══════════════ */
.pricing-card {
    display: flex;
    flex-direction: column;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-subtle);
    transition: var(--transition-lg);
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
}
.pricing-card:hover {
    border-bottom-color: var(--accent);
    transform: translateY(-4px);
}

.pricing-header { margin-bottom: .75rem; }
.pricing-icon { font-size: 1.3rem; margin-bottom: .35rem; }
.pricing-name {
    font-size: .92rem;
    font-weight: 700;
    margin-bottom: .15rem;
}
.pricing-tagline { font-size: .68rem; color: var(--text-muted); }
.pricing-price-block {
    padding: .75rem 0;
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
    margin-bottom: .75rem;
}
.pricing-amount {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--accent);
}
.pricing-period {
    font-size: .68rem;
    color: var(--text-muted);
    margin-left: .15rem;
}
.pricing-old {
    font-size: .7rem;
    color: var(--text-muted);
    text-decoration: line-through;
    margin-left: .35rem;
}
.pricing-features {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: .35rem;
    margin-bottom: .75rem;
}
.pricing-features li {
    display: flex;
    gap: .5rem;
    font-size: .72rem;
    color: var(--text-secondary);
    align-items: flex-start;
}
.pricing-features li i {
    margin-top: .15rem;
    font-size: .66rem;
    color: var(--accent);
}
.pricing-features li.feature-excluded { color: var(--text-muted); }
.pricing-features li.feature-excluded i { color: var(--text-muted); }

/* ═══════════════ 15. PRODUCT DETAIL (compact + 3D) ═══════════════ */
.main-image-wrapper {
    background: var(--bg-elevated);
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: .6rem;
    max-height: 340px;
    max-width: 340px;
    margin-left: auto;
    margin-right: auto;
    transform-style: preserve-3d;
    perspective: 1000px;
    transition: transform .4s ease, box-shadow .35s ease;
    will-change: transform;
}

.main-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 18px;
    transition: transform .5s cubic-bezier(.2, .9, .3, 1.2),
                filter .3s ease;
    will-change: transform;
}

.main-image-wrapper:hover {
    transform: translateY(-3px);
    box-shadow:
        0 18px 36px -18px rgba(109, 139, 255, .35),
        0 6px 16px -8px rgba(0, 0, 0, .4);
}
.main-image-wrapper:hover .main-image {
    transform: scale(1.05) translateZ(28px);
    filter: drop-shadow(0 14px 18px rgba(0, 0, 0, .28));
}

.product-placeholder-lg {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--border-subtle);
    font-size: 3rem;
    width: 100%;
    height: 100%;
}

.thumbnail-list {
    display: flex;
    gap: .4rem;
    overflow-x: auto;
    padding-bottom: .25rem;
    justify-content: center;
}
.thumbnail {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    background: var(--bg-elevated);
    border: 1px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}
.thumbnail.active { border-color: var(--accent); }
.thumbnail:hover { border-color: var(--border-input); }
.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 5px;
}

.product-brand-badge {
    display: inline-block;
    color: var(--accent);
    font-size: .62rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: .4rem;
}
.product-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: .5rem;
    letter-spacing: -.4px;
}
.product-rating-lg i { color: var(--warning); }

.price-section {
    display: flex;
    align-items: baseline;
    gap: .6rem;
    flex-wrap: wrap;
    margin: .75rem 0;
    padding-bottom: .65rem;
    border-bottom: 1px solid var(--border-subtle);
}
.price-current-lg {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent);
}
.price-old-lg {
    font-size: .9rem;
    color: var(--text-muted);
    text-decoration: line-through;
}
.badge-sale-lg {
    color: var(--accent);
    font-size: .6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .8px;
    border: 1px solid var(--accent);
    padding: .15rem .5rem;
}

.product-short-desc {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: .8rem;
}

.product-meta {
    background: transparent;
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
    padding: .55rem 0;
    margin-top: .65rem;
    font-size: .74rem;
    line-height: 1.85;
    color: var(--text-muted);
}
.product-meta strong { color: var(--text-primary); }

.product-tabs {
    margin-top: 1rem;
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}
.product-tabs .nav-tabs {
    border: none;
    padding: 0;
    flex-wrap: nowrap;
    overflow-x: auto;
    background: transparent;
    scrollbar-width: none;
}
.product-tabs .nav-tabs::-webkit-scrollbar { display: none; }
.product-tabs .nav-link {
    border: none;
    color: var(--text-muted);
    font-weight: 600;
    font-size: .72rem;
    padding: .65rem .85rem;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: .8px;
    background: transparent;
    transition: var(--transition);
}
.product-tabs .nav-link:hover { color: var(--text-secondary); }
.product-tabs .nav-link.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
    background: transparent;
}
.product-tabs .tab-content { padding: .85rem 0; }

.review-item {
    border-bottom: 1px solid var(--border-subtle);
    padding: .75rem 0;
}
.review-item:last-child { border-bottom: none; }
.product-rating-sm i { color: var(--warning); font-size: .68rem; }
.review-form-box {
    border-top: 1px solid var(--border-subtle);
    padding-top: 1rem;
    margin-top: .75rem;
}

/* ═══════════════ 16. CART & CHECKOUT ═══════════════ */
.cart-items { border-top: 1px solid var(--border-subtle); }
.cart-item {
    display: grid;
    grid-template-columns: 70px 1fr auto;
    gap: .75rem;
    align-items: center;
    padding: .65rem 0;
    border-bottom: 1px solid var(--border-subtle);
}
.cart-item-image {
    width: 70px;
    height: 70px;
    background: var(--bg-elevated);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
}
.product-placeholder-sm { color: var(--border-subtle); font-size: 1.4rem; }

.cart-item-info h5 {
    font-size: .8rem;
    margin-bottom: .2rem;
    font-weight: 600;
}
.cart-item-info h5 a { color: var(--text-primary); }
.cart-item-info h5 a:hover { color: var(--accent); }
.cart-item-actions {
    display: flex;
    align-items: center;
    gap: .6rem;
}
.item-total {
    font-weight: 700;
    min-width: 60px;
    text-align: right;
    font-size: .82rem;
}

.cart-summary {
    border-top: 1px solid var(--border-subtle);
    padding-top: .85rem;
    position: sticky;
    top: calc(var(--topnav-h) + 12px);
}
.summary-row {
    display: flex;
    justify-content: space-between;
    padding: .45rem 0;
    font-size: .78rem;
    border-bottom: 1px solid var(--border-subtle);
    color: var(--text-secondary);
}
.summary-row.total {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    border-bottom: none;
    border-top: 1px solid var(--border-subtle);
    padding-top: .7rem;
    margin-top: .35rem;
}

/* ═══════════════ 17. TABLES ═══════════════ */
.table-responsive { overflow-x: auto; }
.table {
    width: 100%;
    border-collapse: collapse;
    background: transparent;
}
.table thead th {
    text-align: left;
    font-weight: 600;
    font-size: .62rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    padding: .5rem .35rem;
    background: transparent;
    border-bottom: 1px solid var(--border-subtle);
    white-space: nowrap;
}
.table tbody td {
    padding: .6rem .35rem;
    background: transparent;
    color: var(--text-primary);
    font-size: .78rem;
    border-bottom: 1px solid var(--border-subtle);
    transition: var(--transition);
}
.table tbody tr:hover td { background: rgba(255, 255, 255, .02); }
.table tbody tr:last-child td { border-bottom: none; }

/* ═══════════════ 18. INFO PAGES ═══════════════ */
.info-hero {
    padding: 1.75rem .5rem 1.25rem;
    border-bottom: 1px solid var(--border-subtle);
    position: relative;
    overflow: hidden;
}
.info-hero::before {
    content: '';
    position: absolute;
    top: -30%; right: -20%;
    width: 50vw;
    height: 50vw;
    max-width: 500px;
    max-height: 500px;
    background: radial-gradient(circle, var(--accent-soft), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.info-hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
}
.info-hero-title {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -.6px;
    margin-bottom: .5rem;
    line-height: 1.25;
}
.info-hero-sub {
    color: var(--text-secondary);
    font-size: .85rem;
    max-width: 560px;
    line-height: 1.6;
}

/* ═══════════════ 19. TEAM, STORE, TIMELINE ═══════════════ */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 1rem 0;
}
.timeline-line {
    position: absolute;
    left: 18px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: var(--border-input);
}
.timeline-item {
    position: relative;
    padding-left: 58px;
    margin-bottom: 1.25rem;
}
.timeline-dot {
    position: absolute;
    left: 0;
    top: 4px;
    width: 36px;
    height: 36px;
    background: var(--bg-base);
    border: 1px solid var(--accent);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .78rem;
    z-index: 2;
}
.timeline-major .timeline-dot {
    background: var(--accent);
    color: var(--bg-base);
}
.timeline-content {
    padding-bottom: .75rem;
    border-bottom: 1px solid var(--border-subtle);
}
.timeline-year {
    display: inline-block;
    color: var(--accent);
    font-size: .62rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    margin-bottom: .2rem;
}
.timeline-content h4 { font-size: .9rem; margin-bottom: .25rem; }
.timeline-content p {
    color: var(--text-secondary);
    font-size: .75rem;
    line-height: 1.65;
}

.team-card {
    padding: .75rem 0;
    border-bottom: 1px solid var(--border-subtle);
    transition: var(--transition);
}
.team-card:hover { border-bottom-color: var(--accent); }
.team-photo {
    aspect-ratio: 1;
    background: var(--bg-elevated);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: .5rem;
}
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-photo-placeholder {
    color: var(--border-subtle);
    font-size: 2.5rem;
}
.team-info h5 { font-size: .82rem; margin-bottom: .15rem; }
.team-role {
    color: var(--accent);
    font-size: .62rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}
.team-info p {
    color: var(--text-muted);
    font-size: .7rem;
    margin-top: .35rem;
    line-height: 1.5;
}

.store-card {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-subtle);
    transition: var(--transition);
}
.store-card:hover { border-bottom-color: var(--accent); }
.store-hq-badge {
    display: inline-block;
    color: var(--warning);
    font-size: .58rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid var(--warning);
    padding: .1rem .35rem;
    margin-bottom: .35rem;
}
.store-card h5 { font-size: .85rem; margin-bottom: .2rem; }
.store-address {
    color: var(--text-secondary);
    font-size: .72rem;
    line-height: 1.6;
    margin-bottom: .5rem;
}
.store-info {
    list-style: none;
    padding: 0;
    margin: 0;
    border-top: 1px solid var(--border-subtle);
    padding-top: .5rem;
}
.store-info li {
    font-size: .68rem;
    padding: .15rem 0;
    color: var(--text-muted);
}
.store-info i {
    color: var(--accent);
    margin-right: .4rem;
    width: 12px;
}

.sticky-top-safe {
    position: sticky;
    top: calc(var(--topnav-h) + 16px);
}

/* ═══════════════ 20. TOASTS ═══════════════ */
.toast-container {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: .5rem;
    pointer-events: none;
    max-width: 320px;
}
.toast {
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-left: 3px solid var(--accent);
    padding: .65rem .85rem;
    display: flex;
    gap: .6rem;
    min-width: 240px;
    animation: slideIn .3s ease;
    pointer-events: auto;
}
.toast.removing { animation: slideOut .3s ease forwards; }
@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to   { transform: translateX(0);    opacity: 1; }
}
@keyframes slideOut {
    from { transform: translateX(0);    opacity: 1; }
    to   { transform: translateX(100%); opacity: 0; }
}

.toast-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: .72rem;
}
.toast-icon.success { background: var(--success-bg); color: var(--success); }
.toast-icon.error   { background: var(--danger-bg);  color: var(--danger); }
.toast-icon.info    { background: var(--info-bg);    color: var(--info); }
.toast-content { flex: 1; }
.toast-title {
    font-size: .72rem;
    font-weight: 600;
    color: var(--text-primary);
}
.toast-message {
    font-size: .66rem;
    color: var(--text-muted);
    margin-top: 1px;
}
.toast-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: .68rem;
    cursor: pointer;
    transition: var(--transition);
}
.toast-close:hover { color: var(--text-primary); }

/* ═══════════════ 21. EMPTY STATE ═══════════════ */
.empty-state {
    text-align: center;
    padding: 1.75rem .75rem;
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}
.empty-state i {
    color: var(--border-input);
    font-size: 2.5rem;
    margin-bottom: .65rem;
    display: block;
}
.empty-state h4 { font-size: .9rem; margin-bottom: .3rem; }
.empty-state p {
    color: var(--text-muted);
    font-size: .75rem;
    margin-bottom: .75rem;
}

/* ═══════════════ 22. FOOTER ═══════════════ */
.site-footer {
    border-top: 1px solid var(--border-subtle);
    padding: 2rem .5rem 1rem;
    color: var(--text-secondary);
    background: var(--bg-base);
}
.footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}
.footer-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--border-subtle);
}
.footer-brand {
    font-size: .95rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: .5rem;
}
.footer-brand i { color: var(--accent); margin-right: .3rem; }
.footer-brand span { color: var(--accent); }
.footer-text {
    font-size: .72rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: .5rem;
}
.footer-heading {
    font-size: .62rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--text-primary);
    margin-bottom: .5rem;
}
.footer-link {
    display: block;
    color: var(--text-muted);
    font-size: .72rem;
    padding: .15rem 0;
    transition: var(--transition);
}
.footer-link:hover { color: var(--accent); padding-left: 3px; }
.footer-social { display: flex; gap: .5rem; }
.footer-social a {
    color: var(--text-muted);
    font-size: .78rem;
    padding: .25rem 0;
    border-bottom: 1px solid transparent;
    transition: var(--transition);
}
.footer-social a:hover {
    color: var(--accent);
    border-bottom-color: var(--accent);
}
.footer-newsletter {
    display: flex;
    gap: .4rem;
    align-items: center;
    border-bottom: 1px solid var(--border-input);
    padding-bottom: .35rem;
}
.footer-newsletter input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: .75rem;
    padding: .15rem 0;
    font-family: inherit;
}
.footer-newsletter input::placeholder { color: var(--text-muted); }
.footer-newsletter button {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: .15rem;
    transition: var(--transition);
}
.footer-newsletter button:hover { color: var(--accent); }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: .5rem;
    flex-wrap: wrap;
    padding-top: .75rem;
    font-size: .68rem;
    color: var(--text-muted);
}
.footer-bottom a { color: var(--text-muted); }
.footer-bottom a:hover { color: var(--accent); }

/* ═══════════════ 23. UTILITIES ═══════════════ */
.d-none { display: none !important; }
.text-truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

:focus-visible {
    outline: 1px solid var(--accent);
    outline-offset: 2px;
}

.row { --bs-gutter-x: .5rem; --bs-gutter-y: .5rem; }
.row.g-3 { --bs-gutter-x: .5rem; --bs-gutter-y: .5rem; }
.row.g-4 { --bs-gutter-x: .5rem; --bs-gutter-y: .5rem; }

@media (min-width: 768px) {
    .row     { --bs-gutter-x: .65rem; --bs-gutter-y: .65rem; }
    .row.g-3 { --bs-gutter-x: .65rem; --bs-gutter-y: .65rem; }
    .row.g-4 { --bs-gutter-x: .65rem; --bs-gutter-y: .65rem; }
}

/* Section spacing in main content */
.main-content > section { margin-top: 1.25rem !important; }
.main-content section[style*="margin-top:3rem"]  { margin-top: 1.25rem !important; }
.main-content section[style*="margin-top: 3rem"] { margin-top: 1.25rem !important; }

/* ═══════════════ 24. RESPONSIVE ═══════════════ */

/* --------- Narrow desktop (992–1199px) --------- */
@media (min-width: 992px) and (max-width: 1199px) {
    .nav-primary .nav-link {
        padding: .4rem .45rem;
        font-size: .72rem;
    }
    .nav-primary .nav-link i { display: none; }
    .nav-search { width: 140px; }
    .nav-search:focus-within { width: 180px; }
}

/* --------- Mobile / tablet (≤991px) --------- */
@media (max-width: 991px) {
    :root { --topnav-h: 56px; }     /* keep it numeric */

    .site-navbar { padding: .4rem 0; }

    .site-navbar > .container-fluid {
        flex-wrap: wrap;
        gap: .5rem;
    }

    /* Collapse region becomes a vertical stack */
    .site-navbar .navbar-collapse {
        flex-basis: 100%;
        width: 100%;
        margin-top: .5rem;
        padding-top: .5rem;
        border-top: 1px solid var(--border-subtle);
    }

    /* Primary nav — vertical */
    .nav-primary {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        gap: 0;
        margin: 0;
    }
    .nav-primary .nav-link {
        padding: .6rem .3rem;
        font-size: .82rem;
        border-bottom: 1px solid transparent;
        border-left: 2px solid transparent;
    }
    .nav-primary .nav-link i {
        font-size: .8rem;
        width: 18px;
        text-align: center;
    }
    .nav-primary .nav-link.active {
        border-bottom-color: transparent;
        border-left-color: var(--accent);
        padding-left: .55rem;
        background: rgba(109, 139, 255, .06);
    }

    /* Actions row — horizontal, wraps below nav */
    .nav-actions {
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
        gap: .15rem;
        width: 100%;
        margin: .5rem 0 0 0;
        padding-top: .5rem;
        border-top: 1px solid var(--border-subtle);
    }

    /* Hide inline desktop search — mobile toggle replaces it */
    .nav-search-item { display: none !important; }

    .nav-icon-btn { width: 36px; height: 36px; font-size: 1rem; }
    .nav-avatar {
        width: 34px;
        height: 34px;
        font-size: .72rem;
        margin-left: auto;
    }

    /* Dropdown — pin inside the visible viewport on mobile */
    .site-navbar .dropdown-menu {
        position: absolute !important;
        right: 0;
        left: auto;
        min-width: 200px;
    }

    /* Main content padding includes bottom nav */
    .main-content {
        padding: .6rem .4rem calc(1.25rem + var(--bottom-nav-h) + env(safe-area-inset-bottom, 0));
    }

    .mobile-bottom-nav { display: flex; }
}

/* --------- Small tablet / large phone (≤767px) --------- */
@media (max-width: 767px) {
    .site-navbar { padding: .3rem 0; }
    .site-navbar .navbar-brand { font-size: .92rem; }
    .site-navbar .brand-icon { font-size: 1rem; }
    .site-navbar .navbar-toggler { padding: .25rem .4rem; font-size: .85rem; }

    .nav-icon-btn { width: 34px; height: 34px; font-size: .9rem; }
    .nav-avatar { width: 30px; height: 30px; font-size: .66rem; }

    .mobile-search-bar { padding: .45rem var(--container-pad); }

    .main-content {
        padding: .5rem .35rem calc(1rem + var(--bottom-nav-h) + env(safe-area-inset-bottom, 0));
    }

    .mobile-nav-item { font-size: .55rem; }
    .mobile-nav-item i { font-size: .85rem; }
}

/* --------- Phone (≤575px) --------- */
@media (max-width: 575px) {
    .site-navbar { padding: .25rem 0; }
    .nav-primary .nav-link { padding: .55rem .25rem; font-size: .78rem; }
    .nav-actions { gap: .05rem; }
    .nav-icon-btn { width: 32px; height: 32px; font-size: .85rem; }
    .nav-avatar { width: 28px; height: 28px; font-size: .64rem; }

    .main-content {
        padding: .45rem .3rem calc(.7rem + var(--bottom-nav-h) + env(safe-area-inset-bottom, 0));
    }

    .product-image-wrapper { max-height: 120px; }
    .product-image { padding: 8px; }
    .thumbnail { width: 40px; height: 40px; }

    .main-image-wrapper { max-height: 240px; max-width: 240px; }
    .main-image { padding: 10px; }

    .price-current { font-size: .8rem; }
    .btn-add-cart { font-size: .6rem; }
}

/* --------- Landscape phone --------- */
@media (max-height: 500px) and (orientation: landscape) {
    .main-content { padding-top: .35rem; }
    :root { --bottom-nav-h: 48px; }
    .mobile-nav-item { font-size: .52rem; }
    .mobile-nav-item i { font-size: .8rem; }
}

/* ═══════════════ 25. MOTION & PRINT ═══════════════ */

/* Touch devices — disable 3D transforms */
@media (hover: none) {
    .product-card:hover,
    .main-image-wrapper:hover,
    .package-card:hover,
    .pricing-card:hover { transform: none; }
    .product-card:hover .product-image,
    .main-image-wrapper:hover .main-image,
    .package-card:hover .package-image {
        transform: none;
        filter: none;
    }
    .product-card::after { display: none; }
}

/* Reduced motion — disable animations */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .001ms !important;
        transition-duration: .001ms !important;
    }
    .product-card, .product-image,
    .main-image-wrapper, .main-image,
    .package-card, .package-image,
    .product-name {
        transition: none !important;
        transform: none !important;
        filter: none !important;
    }
    .product-card::after { display: none; }
}

/* Print */
@media print {
    .site-navbar, .site-footer, .mobile-bottom-nav,
    .toast-container, .btn, .btn-add-cart,
    .hero-carousel, .announcement-bar { display: none !important; }
    body { background: #fff; color: #000; padding: 0; font-size: 11pt; }
    a { color: #000; text-decoration: underline; }
    .main-content { padding: 0; }
}