﻿/* ============================================================
   Luther Wheels â€” style.css
   Green/white premium cycling aesthetic (matching reference site)
   ============================================================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --green: #009416;
    --green-hover: #007d12;
    --green-light: #00a81c;
    --dark: #222222;
    --dark-2: #333333;
    --dark-3: #444444;
    --dark-4: #555555;
    --dark-5: #666666;
    --text: #333333;
    --text-muted: #666666;
    --text-dim: #999999;
    --white: #ffffff;
    --bg: #ffffff;
    --bg-alt: #f7f7f7;
    --bg-light: #fafafa;
    --border: #e0e0e0;
    --border-light: #eee;
    --danger: #e74c3c;
    --success: #27ae60;
    --warning: #f39c12;
    --info: #3498db;
    --radius: 8px;
    --radius-lg: 12px;
    --shadow: 0 2px 12px rgba(0,0,0,.08);
    --shadow-lg: 0 8px 30px rgba(0,0,0,.1);
    --transition: .25s ease;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Montserrat', 'Inter', sans-serif;
    --container: 1200px;

    /* Admin-only dark colors (used by admin scoped styles) */
    --admin-dark: #0a0a0a;
    --admin-dark-2: #111111;
    --admin-dark-3: #1a1a1a;
    --admin-dark-4: #222222;
    --admin-dark-5: #2a2a2a;
    --admin-text: #e0e0e0;
    --admin-border: #333333;
    --admin-gold: #c8a86e;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--text); text-decoration: none; transition: color var(--transition); }

main { flex: 1; min-height: 60vh; }
a:hover { color: var(--green); }

.container { max-width: var(--container); margin: 0 auto; padding: 0 1.5rem; }
.text-center { text-align: center; }
.section { padding: 4rem 0; }
.section-alt { background: var(--bg-alt); }

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5 { font-family: var(--font-display); color: var(--dark); line-height: 1.2; }
h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.4rem; }

.section-title { text-align: center; margin-bottom: 1rem; }
.section-text { text-align: center; color: var(--text-muted); max-width: 650px; margin: 0 auto 2.5rem; line-height: 1.7; }
.page-title { font-size: 2.5rem; margin-bottom: .5rem; color: var(--dark); }
.page-subtitle { color: var(--text-muted); font-size: 1.1rem; max-width: 700px; margin: 0 auto; line-height: 1.7; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-block; padding: .75rem 2rem; border-radius: var(--radius);
    font-weight: 600; font-size: .95rem; cursor: pointer;
    transition: all var(--transition); border: 2px solid transparent;
    text-align: center; line-height: 1.4;
}
.btn-green { background: var(--green); color: var(--white); border-color: var(--green); }
.btn-green:hover { background: var(--green-hover); border-color: var(--green-hover); color: var(--white); }
.btn-gold { background: var(--dark); color: var(--white); border-color: var(--dark); }
.btn-gold:hover { background: #111; border-color: #111; color: var(--white); }
.btn-outline { background: transparent; color: var(--dark); border-color: var(--dark); }
.btn-outline:hover { background: var(--dark); color: var(--white); }
.btn-outline-white { background: transparent; color: var(--white); border-color: var(--white); }
.btn-outline-white:hover { background: var(--white); color: var(--dark); }
.btn-dark { background: var(--dark); color: var(--white); border-color: var(--dark); }
.btn-dark:hover { background: #111; border-color: #111; color: var(--white); }
.btn-sm { padding: .5rem 1.25rem; font-size: .85rem; }
.btn-lg { padding: 1rem 2.5rem; font-size: 1.05rem; }
.btn-block { display: block; width: 100%; }
.btn-danger { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn-danger:hover { opacity: .85; }
.btn-success { background: var(--success); color: #fff; border-color: var(--success); }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 1000;
    background: var(--green);
    border-bottom: none;
}
.header-inner {
    display: flex; align-items: center; justify-content: space-between;
    padding: 1rem 1.5rem; max-width: var(--container); margin: 0 auto;
}
.logo { display: flex; align-items: center; gap: .75rem; }
.logo img, .logo-img { height: 50px; width: auto; }
.logo-white { filter: brightness(0) invert(1); }
.logo-text { font-family: var(--font-display); font-size: 1.4rem; color: var(--white); font-weight: 700; letter-spacing: .01em; }

.main-nav { display: flex; gap: 2rem; align-items: center; }
.main-nav a {
    color: rgba(255,255,255,.9); font-size: .85rem; font-weight: 500;
    text-transform: uppercase; letter-spacing: .06em;
    transition: color var(--transition);
}
.main-nav a:hover, .main-nav a.active { color: var(--white); }

.header-actions { display: flex; align-items: center; gap: 1.25rem; }
.lang-switcher, .lang-switch { display: flex; gap: .35rem; align-items: center; }
.lang-switcher a, .lang-switch a, .lang-link {
    padding: .3rem .5rem; font-size: .72rem; border-radius: 4px;
    color: rgba(255,255,255,.7); text-transform: uppercase; font-weight: 600;
    transition: all var(--transition); display: flex; align-items: center;
}
.lang-switcher a:hover, .lang-switch a:hover, .lang-link:hover { color: var(--white); }
.lang-switcher a.active, .lang-switch a.active, .lang-link.active { color: var(--white); background: rgba(255,255,255,.15); }
.lang-flag { height: 18px; width: auto; display: inline-block; border-radius: 2px; }
.lang-flag-emoji { font-size: 1.2rem; line-height: 1; }

/* Nav Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown-toggle { cursor: pointer; }
.nav-dropdown-toggle::after { content: '\25BE'; margin-left: .3rem; font-size: .7rem; }
.nav-dropdown-menu {
    position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
    background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-lg);
    min-width: 200px; padding: .5rem 0; opacity: 0; visibility: hidden;
    transition: all .25s ease; z-index: 1001; margin-top: .75rem;
}
.nav-dropdown:hover .nav-dropdown-menu { opacity: 1; visibility: visible; margin-top: .5rem; }
.nav-dropdown-menu a {
    display: block; padding: .6rem 1.25rem; color: var(--text) !important;
    font-size: .85rem; text-transform: none; letter-spacing: 0;
}
.nav-dropdown-menu a:hover { background: var(--bg-alt); color: var(--green) !important; }
.nav-dropdown-menu .mobile-only-link { display: none; }
.nav-dropdown-group { padding: .25rem 0; }
.nav-dropdown-group + .nav-dropdown-group { border-top: 1px solid var(--border-light); }
.nav-dropdown-group-title { font-weight: 600 !important; font-size: .85rem !important; padding: .6rem 1.25rem !important; }
.nav-dropdown-child { padding: .4rem 1.25rem .4rem 2.75rem !important; font-size: .8rem !important; color: var(--text-muted) !important; }

/* Cart Drawer (full-height slide-in from right) */
.cart-drawer-wrapper { position: relative; }
.cart-drawer-wrapper .cart-icon { background: none; border: none; cursor: pointer; font-family: var(--font); }

.cart-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,.5);
    z-index: 1100; opacity: 0; visibility: hidden;
    transition: opacity .3s ease, visibility .3s ease;
}
.cart-overlay.open { opacity: 1; visibility: visible; }

.cart-drawer {
    position: fixed; top: 0; right: 0; bottom: 0;
    width: 460px; max-width: 100vw; background: var(--white);
    z-index: 1101; transform: translateX(100%);
    transition: transform .35s cubic-bezier(.4,0,.2,1);
    display: flex; flex-direction: column;
    box-shadow: -4px 0 20px rgba(0,0,0,.15);
}
.cart-drawer.open { transform: translateX(0); }

.cart-drawer-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 1.5rem 1.5rem 1rem; border-bottom: 1px solid var(--border-light);
}
.cart-drawer-header h2 { font-size: 1.3rem; font-family: var(--font-display); font-weight: 700; margin: 0; }
.cart-drawer-close { background: none; border: none; font-size: 1.8rem; cursor: pointer; color: var(--text-muted); line-height: 1; padding: .25rem; }
.cart-drawer-close:hover { color: var(--dark); }

.cart-drawer-items { flex: 1; overflow-y: auto; padding: 1rem 1.5rem; }

.cart-drawer-empty {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    height: 100%; gap: 1rem; color: var(--text-muted); text-align: center;
}
.cart-drawer-empty p { font-size: 1rem; }

.cart-drawer-item {
    display: flex; gap: 1rem; padding: 1rem 0;
    border-bottom: 1px solid var(--border-light);
}
.cart-drawer-item:last-child { border-bottom: none; }
.cart-drawer-item-img { flex-shrink: 0; }
.cart-drawer-item-img img { width: 60px; height: 60px; object-fit: cover; border-radius: var(--radius); }
.cart-drawer-item-info { flex: 1; min-width: 0; }
.cart-drawer-item-name {
    display: block; font-weight: 600; font-size: .9rem; color: var(--dark);
    margin-bottom: .2rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cart-drawer-item-name:hover { color: var(--green); }
.cart-drawer-item-price { font-size: .85rem; color: var(--text-muted); }
.cart-drawer-item-options { margin-top: .25rem; }
.cart-drawer-item-options span { font-size: .75rem; color: var(--text-dim); display: block; }
.cart-drawer-item-qty { display: flex; align-items: center; gap: .5rem; margin-top: .5rem; }
.cart-drawer-item-total { font-weight: 700; font-size: .95rem; color: var(--dark); white-space: nowrap; align-self: flex-start; padding-top: .2rem; }

.quantity-control-sm button { width: 28px; height: 28px; font-size: .9rem; }
.quantity-control-sm input { width: 36px; height: 28px; font-size: .8rem; }

.cart-drawer-footer {
    padding: 1.25rem 1.5rem; border-top: 1px solid var(--border-light);
    background: var(--bg-alt);
}
.cart-drawer-subtotal {
    display: flex; justify-content: space-between; font-weight: 700;
    font-size: 1.05rem; margin-bottom: .5rem;
}
.cart-drawer-note { font-size: .8rem; color: var(--text-muted); margin-bottom: 1rem; font-style: italic; }
.cart-drawer-footer .btn + .btn { margin-top: .5rem; }

/* Nav Dropdown Groups */
.nav-dropdown-group { padding: .25rem 0; }
.nav-dropdown-label {
    display: block; padding: .4rem 1.25rem; font-size: .7rem;
    text-transform: uppercase; letter-spacing: .08em; color: var(--text-dim);
    font-weight: 700;
}
.nav-dropdown-group a { padding-left: 1.75rem !important; }

/* Flash Message (centered banner) */
.flash-toast {
    position: fixed; top: 0; left: 0; right: 0;
    z-index: 9999; padding: 1rem;
    text-align: center; font-weight: 600; font-size: .95rem;
    animation: flashSlideDown .35s ease;
}
.flash-toast.flash-success { background: var(--green); color: var(--white); }
.flash-toast.flash-error { background: var(--danger); color: var(--white); }
@keyframes flashSlideDown {
    from { transform: translateY(-100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.cart-link, .cart-icon {
    position: relative; color: var(--white); font-size: 1.2rem;
    display: flex; align-items: center; gap: .4rem;
}
.cart-badge {
    position: absolute; top: -8px; right: -10px;
    background: var(--white); color: var(--green); font-size: .65rem;
    width: 18px; height: 18px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-weight: 700;
}
.cart-total { color: var(--white); font-size: .9rem; font-weight: 600; }
.cart-total-label { color: var(--white); font-size: .85rem; font-weight: 600; white-space: nowrap; cursor: pointer; }
.cart-drawer-wrapper { display: flex; align-items: center; gap: .5rem; }

.menu-toggle, .mobile-menu-toggle {
    display: none; background: none; border: none; color: var(--white); cursor: pointer;
    width: 28px; height: 22px; position: relative; flex-direction: column; justify-content: space-between;
    z-index: 1002;
}
.mobile-menu-toggle span {
    display: block; height: 2px; background: var(--white); border-radius: 1px;
    transition: all .3s ease;
}
.mobile-menu-toggle.active span:nth-child(1) { transform: translateY(10px) rotate(45deg); }
.mobile-menu-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-menu-toggle.active span:nth-child(3) { transform: translateY(-10px) rotate(-45deg); }

/* Mobile-only elements (hidden on desktop) */
.mobile-nav-cart, .mobile-nav-lang { display: none; }

/* Mobile cart icon (next to hamburger) */
.mobile-cart-icon {
    display: none; position: relative; background: none; border: none;
    color: var(--white); cursor: pointer; z-index: 1002;
}
.mobile-cart-icon .cart-badge {
    position: absolute; top: -6px; right: -8px;
    background: var(--white); color: var(--green); font-size: .6rem;
    width: 16px; height: 16px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-weight: 700;
}

/* Payment option logos */
.payment-label { display: flex; align-items: center; gap: .75rem; }
.payment-logos { display: flex; align-items: center; gap: .4rem; }
.payment-logo { height: 24px; width: auto; }
.mobile-dropdown-toggle { display: none; }
.mobile-nav-links { display: contents; }
.mobile-nav-header { display: none; }

/* Page sub-header (breadcrumb bar) */
.page-sub-header {
    background: var(--bg-alt); padding: .75rem 0; border-bottom: 1px solid var(--border-light);
    font-size: .9rem; color: var(--text-muted);
}

/* ---------- Hero ---------- */
.hero {
    position: relative; min-height: 550px;
    display: flex; align-items: center; justify-content: center;
    text-align: center; overflow: hidden;
    background: var(--green);
}
.hero::before {
    content: ''; position: absolute; inset: 0;
    background: rgba(0,0,0,.35);
    z-index: 1;
}
.hero-content { position: relative; z-index: 2; max-width: 700px; padding: 2rem; }
.hero h1 { font-size: 2.8rem; margin-bottom: 1rem; letter-spacing: -.01em; color: var(--white); }
.hero p { font-size: 1.05rem; color: rgba(255,255,255,.85); margin-bottom: 2rem; max-width: 550px; margin-left: auto; margin-right: auto; line-height: 1.7; }
.hero .btn { border-radius: var(--radius); }
.hero-mini { padding: 1rem 0; background: var(--bg-alt); border-bottom: 1px solid var(--border-light); }
.hero-mini h1, .hero-mini .page-title { color: var(--dark); font-size: 1.1rem; font-family: var(--font); font-weight: 600; }

.page-header-section {
    padding: 1rem 0; text-align: left;
    background: var(--bg-alt); border-bottom: 1px solid var(--border-light);
}
.page-header-section .page-title { font-size: 2.5rem; margin-top: .5rem; margin-bottom: 0; }
.page-header-section .page-subtitle { color: var(--text-muted); font-size: 1rem; line-height: 1.6; margin: .15rem 0 .25rem; text-align: left; max-width: none; }
.page-header-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; }
.page-header-search { display: flex; gap: .5rem; align-items: center; flex-shrink: 0; }
.page-header-search .input { min-width: 200px; }
.breadcrumb-back { font-size: .85rem; color: var(--text-muted); text-decoration: none; display: inline-block; margin-bottom: .25rem; }
.breadcrumb-back:hover { color: var(--green); }

/* Hero with background image */
.hero-banner {
    position: relative; min-height: 650px;
    display: flex; align-items: center; justify-content: center;
    text-align: center; overflow: hidden; background-size: cover; background-position: center;
}
.hero-banner::before {
    content: ''; position: absolute; inset: 0;
    background: rgba(0,0,0,.45);
    z-index: 1;
}
.hero-banner .hero-content { position: relative; z-index: 2; }
.hero-banner h1 { color: var(--white); }
.hero-banner h2 { color: var(--white); font-size: 2.2rem; margin-bottom: .75rem; }
.hero-banner p { color: rgba(255,255,255,.85); margin-bottom: 1.5rem; }

/* ---------- Product Grid ---------- */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 2rem; }

.product-card {
    background: var(--white); border-radius: var(--radius-lg);
    overflow: hidden; border: 1px solid var(--border-light);
    transition: transform .4s ease, box-shadow .4s ease;
    display: flex; flex-direction: column; color: var(--text);
}
.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.product-card-image {
    position: relative; aspect-ratio: 1; background: var(--bg-alt); overflow: hidden;
}
.product-card-image img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .6s ease;
}
.product-card:hover .product-card-image img { transform: scale(1.04); }
.product-card-badge { position: absolute; top: .5rem; left: .5rem; background: var(--danger); color: #fff; font-size: .7rem; font-weight: 700; padding: .2rem .5rem; border-radius: 4px; z-index: 2; }

.product-card-placeholder {
    display: flex; align-items: center; justify-content: center;
    width: 100%; height: 100%; background: #f0f0f0; aspect-ratio: 1;
}
.product-card-placeholder img {
    width: 40%; height: auto; object-fit: contain; opacity: .18;
    transition: none;
}
.product-card:hover .product-card-placeholder img { transform: none; }

.product-card-overlay {
    position: absolute; bottom: 0; left: 0; right: 0;
    padding: 1rem; text-align: center;
    opacity: 0; transition: opacity .4s ease;
    background: linear-gradient(to top, rgba(0,0,0,.5) 0%, transparent 100%);
}
.product-card:hover .product-card-overlay { opacity: 1; }

.product-card-info {
    padding: 1.25rem 1.25rem 1.5rem; display: flex; flex-direction: column; gap: .3rem; flex: 1;
}
.product-card-info h3 {
    font-family: var(--font); font-size: 1rem; color: var(--dark);
    line-height: 1.35; margin: 0; font-weight: 600;
}
.product-card-cat {
    font-size: .7rem; color: var(--text-muted); text-transform: uppercase;
    letter-spacing: .08em; font-weight: 600; order: -1;
}
.product-card-price {
    font-size: 1rem; font-weight: 600; color: var(--text-muted); margin-top: auto;
    padding-top: .5rem;
}
.price-old {
    color: var(--text-dim); text-decoration: line-through;
    font-size: .85rem; font-weight: 400; margin-right: .5rem;
}

.product-card-body { padding: 1.25rem; }
.product-card-category { font-size: .7rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .08em; margin-bottom: .25rem; font-weight: 600; }
.product-card-title { font-size: 1.05rem; margin-bottom: .5rem; font-family: var(--font); }
.product-card-title a { color: var(--dark); }
.product-card-title a:hover { color: var(--green); }

/* ---------- Product Detail ---------- */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }

.gallery-carousel {
    position: relative;
}
.gallery-main {
    border-radius: var(--radius-lg); overflow: hidden; background: var(--bg-alt);
    border: 3px solid var(--white); box-shadow: 0 0 0 1px var(--border-light);
    position: relative; user-select: none; cursor: grab;
}
.gallery-slide { display: none; }
.gallery-slide.active { display: block; }
.gallery-slide img { width: 100%; max-width: 100%; aspect-ratio: 1; object-fit: cover; display: block; pointer-events: none; -webkit-user-drag: none; user-select: none; }
.gallery-slide.fade-out img { opacity: 0; transition: opacity .2s ease; }
.gallery-slide.fade-in img { opacity: 1; transition: opacity .2s ease; }
.product-gallery { max-width: 100%; overflow: hidden; }
.gallery-arrow {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
    width: 40px; height: 40px; border-radius: 50%;
    background: rgba(255,255,255,.85); border: 1px solid var(--border-light);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; opacity: 0; transition: opacity .2s ease, background .2s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,.1);
}
.gallery-carousel:hover .gallery-arrow { opacity: 1; }
.gallery-arrow:hover { background: #fff; }
.gallery-arrow-left { left: .75rem; }
.gallery-arrow-right { right: .75rem; }
.gallery-thumbs-wrap {
    margin-top: .5rem; overflow-x: auto; overflow-y: hidden;
    scrollbar-width: thin; scrollbar-color: var(--border) transparent;
    -webkit-overflow-scrolling: touch;
}
.gallery-thumbs-wrap::-webkit-scrollbar { height: 4px; }
.gallery-thumbs-wrap::-webkit-scrollbar-track { background: transparent; }
.gallery-thumbs-wrap::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }
.gallery-thumbs { display: flex; gap: .5rem; }
.gallery-thumb {
    flex: 0 0 auto; width: 70px; height: 70px; border-radius: var(--radius); overflow: hidden;
    border: 3px solid var(--white); box-shadow: 0 0 0 1px var(--border-light); cursor: pointer; opacity: .6;
    transition: all var(--transition); padding: 0; background: none;
}
.gallery-thumb.active, .gallery-thumb:hover { border-color: var(--dark); opacity: 1; box-shadow: none; }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.product-info h1, .product-title { font-size: 2.2rem; margin-bottom: .5rem; font-family: var(--font-display); }
.product-price-block { margin: 1rem 0 1.5rem; display: flex; align-items: baseline; gap: .75rem; flex-wrap: wrap; }
.product-price, .price-current { font-size: 1.5rem; color: var(--dark); font-weight: 600; }
.price-old { font-size: 1.2rem; color: var(--text-dim); text-decoration: line-through; font-weight: 400; }
.sale-badge { display: inline-block; background: var(--danger); color: #fff; font-size: .75rem; font-weight: 700; padding: .2rem .5rem; border-radius: 4px; }
.product-price .old-price { font-size: 1.2rem; color: var(--text-dim); text-decoration: line-through; margin-left: .75rem; font-weight: 400; }
.price-vat { font-size: .8rem; color: var(--text-dim); }
.product-description, .product-short-desc { color: var(--text-muted); margin-bottom: 1.5rem; line-height: 1.7; }
.product-question-btn { margin-top: 1rem; width: 100%; font-size: .9rem; }
.product-meta { font-size: .85rem; color: var(--text-muted); margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.product-meta a { color: var(--text-muted); }
.product-meta a:hover { color: var(--green); }
.stock-warning { font-size: .85rem; color: var(--warning); margin-top: .75rem; font-weight: 500; }
.stock-warning.out { color: var(--danger); }

.product-options { margin-bottom: 1.5rem; }
.product-option-group { margin-bottom: 1rem; }
.product-option-group label { display: block; font-weight: 600; margin-bottom: .4rem; font-size: .9rem; }

.quantity-control { display: flex; align-items: center; gap: 0; }
.quantity-control button {
    width: 40px; height: 40px; background: var(--bg-alt); border: 1px solid var(--border);
    color: var(--text); font-size: 1.2rem; cursor: pointer; transition: all var(--transition);
}
.quantity-control button:hover { background: var(--border); }
.quantity-control button:first-child { border-radius: var(--radius) 0 0 var(--radius); }
.quantity-control button:last-child { border-radius: 0 var(--radius) var(--radius) 0; }
.quantity-control input {
    width: 55px; height: 40px; text-align: center; background: var(--white);
    border: 1px solid var(--border); border-left: 0; border-right: 0; color: var(--text);
    font-size: 1rem; -moz-appearance: textfield;
}
.quantity-control input::-webkit-outer-spin-button,
.quantity-control input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.add-to-cart-row, .product-actions { display: flex; gap: 1rem; align-items: center; margin-top: 1.5rem; }
.product-form .form-group { margin-bottom: 1.25rem; }
.product-form .form-group label { font-weight: 600; color: var(--text); }

/* Product Tabs */
.product-tabs { margin-top: 3rem; }
.tab-nav, .tab-headers { display: flex; border-bottom: 2px solid var(--border); gap: 0; }
.tab-nav button, .tab-btn {
    padding: .75rem 1.5rem; background: none; border: none; border-bottom: 2px solid transparent;
    color: var(--text-muted); font-weight: 600; cursor: pointer; transition: all var(--transition);
    margin-bottom: -2px; font-size: .95rem; font-family: var(--font);
}
.tab-nav button.active, .tab-nav button:hover,
.tab-btn.active, .tab-btn:hover { color: var(--dark); border-bottom-color: var(--dark); }
.tab-panel, .tab-content { display: none; padding: 1.5rem 0; }
.tab-panel.active, .tab-content.active { display: block; }

.specs-table { width: 100%; border-collapse: collapse; }
.specs-table th, .specs-table td { padding: .75rem 1rem; text-align: left; border-bottom: 1px solid var(--border); }
.specs-table th { color: var(--text-muted); font-weight: 500; width: 40%; }
.specs-table thead th { color: var(--dark); font-weight: 600; border-bottom: 2px solid var(--border); }

/* ---------- Category Cards ---------- */
.category-cards-heading { font-size: 1.5rem; font-weight: 600; text-align: center; margin-bottom: 2rem; }
.category-cards-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 2rem; }
.category-card {
    display: flex; flex-direction: column; align-items: center; text-align: center;
    background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 2rem 1.5rem; transition: all var(--transition); cursor: pointer; text-decoration: none; color: var(--text);
    width: calc(33.333% - 1.334rem); min-width: 0;
}
.category-card:hover { border-color: var(--green); box-shadow: 0 4px 16px rgba(0,0,0,.08); transform: translateY(-2px); }
.category-card-image { width: 100%; aspect-ratio: 4/3; border-radius: calc(var(--radius) - 4px); overflow: hidden; margin-bottom: 1.25rem; display: flex; align-items: center; justify-content: center; background: var(--bg-alt); }
.category-card-image img { width: 100%; height: 100%; object-fit: cover; }
.category-card-placeholder { background: var(--bg-alt); }
.category-card-title { font-size: 1.1rem; font-weight: 600; margin: 0; }
.category-card-desc { font-size: .9rem; color: var(--text-muted); margin: .35rem 0 0; line-height: 1.5; }

/* ---------- Filter Bar ---------- */
.filter-bar { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; margin-bottom: 2rem; }
.filter-bar .search-input { flex: 1; min-width: 200px; }
.product-filters { margin-bottom: 2.5rem; }
.filter-form { display: flex; flex-direction: column; gap: 1.25rem; }
.filter-search { display: flex; gap: .75rem; max-width: 400px; }
.filter-categories { display: flex; flex-wrap: wrap; gap: .5rem; }
.filter-tag {
    padding: .45rem 1.1rem; font-size: .8rem; border-radius: 50px;
    background: var(--bg-alt); border: 1px solid var(--border); color: var(--text-muted);
    font-weight: 500; transition: all var(--transition); cursor: pointer;
}
.filter-tag:hover { border-color: var(--green); color: var(--green); }
.filter-tag.active { background: var(--green); color: var(--white); border-color: var(--green); font-weight: 600; }

/* ---------- Forms ---------- */
.input, .select, .textarea {
    width: 100%; padding: .75rem 1rem; background: var(--white); border: 1px solid var(--border);
    border-radius: var(--radius); color: var(--text); font-size: .95rem; font-family: var(--font);
    transition: border-color var(--transition);
}
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--green); }
.textarea { resize: vertical; }
.select { cursor: pointer; -webkit-appearance: none; appearance: none; background-image: url("data:image/svg+xml,%3Csvg fill='%23666' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5.23 7.21a.75.75 0 011.06.02L10 11.168l3.71-3.938a.75.75 0 111.08 1.04l-4.25 4.5a.75.75 0 01-1.08 0l-4.25-4.5a.75.75 0 01.02-1.06z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .75rem center; background-size: 16px; padding-right: 2.5rem; }

.form-group { margin-bottom: 1rem; }
.form-group label { display: block; margin-bottom: .35rem; font-weight: 500; font-size: .9rem; color: var(--text-muted); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.checkbox-label { display: flex; align-items: center; gap: .5rem; cursor: pointer; }
.checkbox-label input[type="checkbox"] { accent-color: var(--green); width: 18px; height: 18px; }

/* ---------- Cart ---------- */
.cart-empty { text-align: center; padding: 4rem 0; }
.cart-empty svg { margin-bottom: 1rem; opacity: .4; }
.empty-state { text-align: center; padding: 4rem 0; color: var(--text-muted); }
.empty-state p { margin-bottom: 1.5rem; font-size: 1.1rem; }

.cart-layout { display: grid; grid-template-columns: 1fr 380px; gap: 2rem; align-items: start; }

.cart-items { display: flex; flex-direction: column; gap: 1rem; }
.cart-item {
    display: grid; grid-template-columns: 80px 1fr auto auto auto;
    gap: 1.25rem; align-items: center; padding: 1.25rem;
    background: var(--white); border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    transition: box-shadow var(--transition);
}
.cart-item:hover { box-shadow: var(--shadow); }
.cart-item-image { border-radius: var(--radius); overflow: hidden; }
.cart-item-image img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.cart-item-info h3 { font-size: 1rem; margin-bottom: .25rem; font-family: var(--font); }
.cart-item-info h3 a { color: var(--dark); font-weight: 600; }
.cart-item-info h3 a:hover { color: var(--green); }
.cart-item-info p { font-size: .85rem; color: var(--text-muted); }
.cart-item-options { display: flex; flex-wrap: wrap; gap: .25rem .75rem; margin-top: .35rem; }
.cart-item-options span { font-size: .8rem; color: var(--text-dim); }
.cart-item-price { font-weight: 600; color: var(--text-muted); font-size: .95rem; white-space: nowrap; }
.cart-item-total { font-weight: 700; color: var(--dark); font-size: 1.1rem; white-space: nowrap; }
.cart-item-remove { background: none; border: none; color: var(--text-dim); cursor: pointer; font-size: 1.2rem; transition: color var(--transition); }
.cart-item-remove:hover { color: var(--danger); }
.btn-icon { background: none; border: none; color: var(--text-dim); cursor: pointer; padding: .25rem; transition: color var(--transition); display: flex; align-items: center; }
.btn-icon:hover { color: var(--danger); }

.cart-summary, .cart-sidebar {
    background: var(--white); border-radius: var(--radius-lg);
    border: 1px solid var(--border-light); padding: 1.75rem; position: sticky; top: 100px;
    box-shadow: var(--shadow);
}
.cart-summary h2 { font-size: .85rem; margin-bottom: 1rem; font-family: var(--font); text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); }
.cart-summary .btn-block + .btn-block { margin-top: .75rem; }

.discount-form-wrapper { margin-bottom: 1.5rem; }
.discount-form { display: flex; gap: .5rem; }
.discount-form .input { flex: 1; }
.discount-applied { display: flex; align-items: center; justify-content: space-between; padding: .75rem 1rem; background: rgba(39,174,96,.08); border-radius: var(--radius); font-size: .9rem; color: var(--success); }

/* ---------- Checkout ---------- */
.checkout-layout { display: grid; grid-template-columns: 1fr 400px; gap: 2rem; align-items: start; }
.checkout-form { display: flex; flex-direction: column; gap: 1.5rem; }
.checkout-section {
    background: var(--white); border-radius: var(--radius-lg);
    border: 1px solid var(--border-light); padding: 1.75rem;
}
.checkout-section h2 { font-size: 1.15rem; margin-bottom: 1rem; padding-bottom: .75rem; border-bottom: 1px solid var(--border); font-family: var(--font); font-weight: 700; }

.shipping-methods, .payment-methods { display: flex; flex-direction: column; gap: .75rem; }
.shipping-option, .payment-option {
    display: flex; align-items: center; gap: 1rem; padding: 1rem;
    background: var(--bg-alt); border-radius: var(--radius); border: 1px solid var(--border);
    cursor: pointer; transition: border-color var(--transition), background var(--transition);
}
.shipping-option:hover, .payment-option:hover { border-color: var(--green); }
.shipping-option input, .payment-option input { accent-color: var(--green); }
.shipping-option-info { flex: 1; }
.shipping-option-info strong { display: block; font-size: .95rem; }
.shipping-delivery { font-size: .8rem; color: var(--text-muted); }
.shipping-price { font-weight: 700; color: var(--dark); }

.checkout-summary {
    background: var(--white); border-radius: var(--radius-lg);
    border: 1px solid var(--border-light); padding: 1.75rem; position: sticky; top: 100px;
    box-shadow: var(--shadow);
}
.checkout-summary h2 { font-size: 1.15rem; margin-bottom: 1rem; font-family: var(--font); }

.summary-items { border-bottom: 1px solid var(--border); padding-bottom: 1rem; margin-bottom: 1rem; }
.summary-item { display: flex; justify-content: space-between; padding: .35rem 0; font-size: .9rem; }
.summary-lines { margin-bottom: 1.5rem; }
.summary-line { display: flex; justify-content: space-between; padding: .5rem 0; font-size: .95rem; }
.summary-line.total-line { border-top: 2px solid var(--border); padding-top: .75rem; margin-top: .5rem; font-size: 1.2rem; font-weight: 700; }
.summary-line.total-line span:last-child { color: var(--dark); }
.discount-line span:last-child { color: var(--success); }

/* ---------- Order Success ---------- */
.success-icon { margin-bottom: 1.5rem; }
.order-confirmation { max-width: 800px; margin: 0 auto; }
.order-details-card {
    background: var(--white); border-radius: var(--radius-lg);
    border: 1px solid var(--border-light); padding: 2rem; box-shadow: var(--shadow);
}
.order-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 1.5rem; }

/* ---------- Theses ---------- */
.theses-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; }
.thesis-card {
    padding: 2rem; border-bottom: 1px solid var(--border-light);
}
.thesis-card:nth-child(odd) { border-right: 1px solid var(--border-light); }
.thesis-number { font-family: var(--font-display); font-size: 1rem; color: var(--text-muted); margin-bottom: .25rem; font-weight: 600; }
.thesis-card h3 { font-size: 1.05rem; margin-bottom: .5rem; font-family: var(--font); font-weight: 700; color: var(--dark); }
.thesis-card p { font-size: .9rem; color: var(--text-muted); line-height: 1.6; }

/* ---------- Info Cards ---------- */
.info-intro { text-align: center; max-width: 700px; margin: 0 auto 3rem; }
.info-intro h2 { font-family: var(--font-display); }
.info-intro p { color: var(--text-muted); line-height: 1.7; }
.info-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; margin-bottom: 3rem; }
.info-card {
    background: var(--white); border-radius: var(--radius-lg); padding: 2rem;
    border: 1px solid var(--border-light); text-align: left;
    transition: box-shadow var(--transition);
}
.info-card:hover { box-shadow: var(--shadow-lg); }
.info-card-icon { font-size: 1.5rem; margin-bottom: 1rem; color: var(--text-muted); }
.info-card h3 { margin-bottom: .75rem; font-family: var(--font); font-weight: 700; }
.info-card p { color: var(--text-muted); margin-bottom: 1.25rem; font-size: .95rem; line-height: 1.6; }

/* ---------- FAQ ---------- */
.faq-section { max-width: 900px; margin: 0 auto; }
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.faq-list { display: flex; flex-direction: column; gap: .5rem; }
.faq-item { border: 1px solid var(--border-light); border-radius: var(--radius); overflow: hidden; background: var(--white); }
.faq-question {
    width: 100%; padding: 1rem 1.25rem; background: var(--white); border: none;
    color: var(--dark); font-size: 1rem; font-weight: 600; text-align: left;
    cursor: pointer; transition: background var(--transition);
    display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq-question::after { content: '+'; font-size: 1.4rem; color: var(--text-muted); transition: transform var(--transition); }
.faq-item.open .faq-question::after { transform: rotate(45deg); }
.faq-question:hover { background: var(--bg-alt); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-item.open .faq-answer { max-height: 300px; }
.faq-answer p { padding: .75rem 1.25rem 1rem; color: var(--text-muted); }

.faq-card {
    padding: 1.5rem; text-align: left;
}
.faq-card-icon { color: var(--green); font-size: 1.5rem; margin-bottom: .75rem; }
.faq-card h3 { font-family: var(--font); font-weight: 700; font-size: 1rem; margin-bottom: .5rem; }
.faq-card p { color: var(--text-muted); font-size: .9rem; line-height: 1.6; }

/* ---------- Download Cards (Manual & Warranty) ---------- */
.download-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; max-width: 800px; margin: 0 auto; }
.download-card {
    background: var(--white); border: 1px solid var(--border-light); border-radius: var(--radius-lg);
    padding: 2rem; text-align: center; transition: box-shadow var(--transition);
}
.download-card:hover { box-shadow: var(--shadow-lg); }
.download-flag { font-size: 2.5rem; margin-bottom: .75rem; }
.download-card h3 { font-family: var(--font); font-weight: 700; margin-bottom: 1rem; }

/* ---------- Why Luther Features ---------- */
.why-features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; max-width: 900px; margin: 0 auto; }
.why-feature {
    background: var(--white); border: 1px solid var(--border-light); border-radius: var(--radius-lg);
    padding: 2rem; text-align: center; transition: box-shadow var(--transition);
}
.why-feature:hover { box-shadow: var(--shadow-lg); }
.why-feature-icon { color: var(--green); margin-bottom: 1rem; }
.why-feature h3 { font-family: var(--font); font-weight: 700; margin-bottom: .5rem; }
.why-feature p { color: var(--text-muted); font-size: .95rem; line-height: 1.6; }

/* Why Luther Features List (vertical rows with images) */
.why-features-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; margin: 2rem auto 0; }
.why-feature-row {
    display: flex; flex-direction: column; align-items: center; text-align: center; gap: 1.25rem;
    background: var(--white); border: 1px solid var(--border-light); border-radius: var(--radius-lg);
    padding: 1.75rem; transition: box-shadow var(--transition);
}
.why-feature-row:hover { box-shadow: var(--shadow-lg); }
.why-feature-row-text-only { justify-content: center; }
.why-feature-row-text-only .why-feature-text { max-width: 100%; }
.why-feature-img-box {
    flex-shrink: 0; width: 180px; height: 180px;
    background: var(--bg-alt); border-radius: var(--radius-lg);
    overflow: visible;
    display: flex; align-items: center; justify-content: center;
    position: relative; padding: 1rem;
}
.why-feature-img-box > img:first-child { max-width: 100%; max-height: 100%; object-fit: contain; }
.why-feature-badge {
    position: absolute; bottom: -10px; right: -10px;
    width: 40px; height: 40px; object-fit: contain;
}
.why-feature-text { flex: 1; }
.why-feature-text h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; margin-bottom: .4rem; color: var(--dark); }
.why-feature-text p { color: var(--text-muted); font-size: .95rem; line-height: 1.6; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; max-width: var(--container); margin: 0 auto; }
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 0; max-width: var(--container); margin: 0 auto; }
.contact-image { overflow: hidden; }
.contact-image img { width: 100%; height: 100%; object-fit: cover; }
.contact-form-box { padding: 2.5rem; background: var(--bg-alt); }
.contact-info-box {
    background: var(--white); border-radius: var(--radius-lg); padding: 2rem;
    border: 1px solid var(--border-light); height: fit-content;
}
.contact-info-box h3 { margin-bottom: 1rem; font-family: var(--font); }
.contact-info-box p { margin-bottom: .5rem; color: var(--text-muted); }

.contact-details-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; max-width: var(--container); margin: 3rem auto; align-items: center; }
.contact-details-image { border-radius: var(--radius-lg); overflow: hidden; }
.contact-details-image img { width: 100%; height: auto; }
.contact-details-info h3 { font-family: var(--font); font-weight: 700; margin-bottom: .5rem; }
.contact-details-info p { color: var(--text-muted); margin-bottom: 1rem; }
.contact-detail-item { display: flex; align-items: center; gap: .75rem; margin-bottom: .75rem; color: var(--text); }
.contact-detail-item svg { color: var(--green); flex-shrink: 0; }

/* ---------- About / CTA Sections ---------- */
.about-split, .split-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.about-image { border-radius: var(--radius-lg); overflow: hidden; }
.about-text h2, .split-text h2 { margin-bottom: 1rem; }
.about-text p, .split-text p { color: var(--text-muted); margin-bottom: 1rem; line-height: 1.7; }
.visual-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.visual-box {
    aspect-ratio: 1; background: var(--bg-alt); border-radius: var(--radius-lg);
    overflow: hidden;
}
.visual-box img { width: 100%; height: 100%; object-fit: cover; }

.image-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 2rem 0; }
.image-row img { width: 100%; height: 200px; object-fit: cover; border-radius: var(--radius-lg); }

.cta-section, .cta-box {
    text-align: center; padding: 4rem 2rem;
    background: var(--bg-alt);
    border-radius: var(--radius-lg); margin: 2rem 0; border: 1px solid var(--border-light);
}
.cta-split {
    display: grid; grid-template-columns: auto 1fr; gap: 3rem; align-items: center;
    padding: 3rem; background: var(--bg-alt); border-radius: var(--radius-lg); margin: 2rem 0;
}
.cta-split img { width: 350px; border-radius: var(--radius-lg); }
.cta-split-text h2 { margin-bottom: .75rem; }
.cta-split-text p { color: var(--text-muted); margin-bottom: 1.5rem; line-height: 1.7; }
.cta-section h2, .cta-box h2, .cta-content h2 { margin-bottom: .75rem; }
.cta-section p, .cta-box p, .cta-content p { color: var(--text-muted); margin-bottom: 1.5rem; max-width: 600px; margin-left: auto; margin-right: auto; }

/* ---------- Homepage Specific ---------- */
.home-hero-banner {
    position: relative; border-radius: var(--radius-lg); overflow: hidden;
    min-height: 420px; display: flex; align-items: center; justify-content: center;
    text-align: center; background-size: cover; background-position: center;
}
.home-hero-banner::before {
    content: ''; position: absolute; inset: 0;
    background: rgba(0,0,0,.4); z-index: 1;
}
.home-hero-content {
    position: relative; z-index: 2; max-width: 600px; padding: 3rem 2rem;
}
.home-hero-content h1, .home-hero-content h2 {
    font-size: 2.2rem; color: var(--white); margin-bottom: .75rem; letter-spacing: -.01em;
}
.home-hero-content p {
    font-size: .95rem; color: rgba(255,255,255,.85); margin-bottom: 1.5rem; line-height: 1.7;
}
.home-section-header {
    display: flex; align-items: flex-start; justify-content: space-between; gap: 2rem;
    margin-bottom: 2rem;
}
.home-section-header .btn { flex-shrink: 0; white-space: nowrap; margin-top: .25rem; }
.home-section-title { margin-bottom: .5rem; text-align: left; }
.home-section-text { color: var(--text-muted); line-height: 1.7; text-align: left; max-width: 600px; }
.home-contact-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center;
}
.home-contact-form {
    max-width: 500px;
    padding: 2.5rem;
    background: var(--bg-alt);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
}
.home-contact-image { border-radius: var(--radius-lg); overflow: hidden; }
.home-contact-image img { width: 100%; height: 100%; object-fit: cover; display: block; }

@media (max-width: 768px) {
    .home-hero-banner { min-height: 300px; }
    .home-hero-content h1 { font-size: 1.6rem; }
    .home-section-header { flex-direction: column; gap: 1rem; }
    .home-contact-grid { grid-template-columns: 1fr; gap: 2rem; }
    .home-contact-form { max-width: 100%; }
    .category-card { width: 100%; }
    .page-header-row { flex-direction: column; align-items: flex-start; }
    .page-header-search { width: 100%; }
    .page-header-search .input { flex: 1; min-width: 0; }
}

/* ---------- Breadcrumbs ---------- */
.breadcrumbs, .breadcrumb { display: flex; gap: .5rem; font-size: .85rem; color: var(--text-muted); margin-bottom: 2rem; flex-wrap: wrap; }
.breadcrumbs a, .breadcrumb a { color: var(--text-muted); text-decoration: underline; }
.breadcrumbs a:hover, .breadcrumb a:hover { color: var(--green); }
.breadcrumbs span, .breadcrumb span { color: var(--text-dim); }

/* ---------- Flash Messages ---------- */
.flash, .flash-message { padding: 1rem 1.25rem; border-radius: 8px; margin-bottom: 0; font-size: .95rem; }
.flash-success { background: rgba(39,174,96,.1); border: 1px solid var(--success); color: var(--success); }
.flash-error { background: rgba(231,76,60,.1); border: 1px solid var(--danger); color: var(--danger); }
.flash-info { background: rgba(52,152,219,.1); border: 1px solid var(--info); color: var(--info); }
.flash-message { position: relative; display: flex; align-items: center; justify-content: space-between; }
.flash-close { background: none; border: none; color: inherit; font-size: 1.3rem; cursor: pointer; opacity: .7; }
.flash-close:hover { opacity: 1; }

/* ---------- Modal ---------- */
.modal-overlay {
    position: fixed; inset: 0; z-index: 1100; background: rgba(0,0,0,.5);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s ease;
}
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal-box {
    background: var(--white); border-radius: var(--radius-lg); width: 90%; max-width: 500px;
    box-shadow: var(--shadow-lg); transform: translateY(20px); transition: transform .3s ease;
}
.modal-overlay.open .modal-box { transform: translateY(0); }
.modal-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--border);
}
.modal-header h3 { font-size: 1.1rem; font-family: var(--font); margin: 0; }
.modal-close {
    background: none; border: none; font-size: 1.5rem; cursor: pointer;
    color: var(--text-muted); line-height: 1;
}
.modal-close:hover { color: var(--text); }
.modal-form { padding: 1.5rem; }
.modal-form .form-group { margin-bottom: 1rem; }
.modal-form .btn-block { margin-top: .5rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--green); padding: 3rem 0 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; text-align: center; }
.footer-logo-img { max-height: 50px; margin: 0 auto 1rem; }
.fpcoding-logo { height: 22px; width: auto; display: inline-block; vertical-align: middle; margin-right: .25rem; }
.footer-bottom a { display: inline-flex; align-items: center; gap: .25rem; }
.footer-bottom a:hover { color: var(--white); }
.footer-logo-img.logo-white { filter: brightness(0) invert(1); }
.footer-col h4 { color: rgba(255,255,255,.8); font-family: var(--font); font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 1rem; }
.footer-col p { color: rgba(255,255,255,.7); font-size: .9rem; line-height: 1.6; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: .4rem; }
.footer-col a { color: rgba(255,255,255,.7); font-size: .9rem; transition: color var(--transition); }
.footer-col a:hover { color: var(--white); }
.footer-logo { font-family: var(--font-display); font-size: 1.4rem; color: var(--white); margin-bottom: .75rem; }
.footer-tagline { font-size: .9rem; color: rgba(255,255,255,.6); }

.footer-brand p { max-width: 300px; }
.footer-social { display: flex; gap: 1rem; justify-content: center; margin-top: .5rem; }
.footer-social a { color: rgba(255,255,255,.6); font-size: 1.2rem; transition: color var(--transition); }
.footer-social a:hover { color: var(--white); }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.2); padding-top: 1.5rem; margin-top: 1.5rem;
    display: flex; justify-content: space-between; align-items: flex-start; color: rgba(255,255,255,.5); font-size: .85rem;
}
.footer-bottom-info p { margin: 0 0 .15rem; color: rgba(255,255,255,.6); line-height: 1.5; }
.footer-bottom-info p strong { color: rgba(255,255,255,.85); }
.footer-bottom-info a { color: rgba(255,255,255,.7); }
.footer-bottom-info a:hover { color: var(--white); }
.footer-bottom a { color: rgba(255,255,255,.85); text-decoration: underline; }
.footer-bottom a:hover { color: var(--white); }

/* ---------- Page Prose ---------- */
.prose p { margin-bottom: 1rem; color: var(--text-muted); }
.prose h2 { margin: 2rem 0 1rem; }
.prose h3 { margin: 1.5rem 0 .75rem; }
.prose ul, .prose ol { margin: 1rem 0; padding-left: 1.5rem; color: var(--text-muted); }
.prose li { margin-bottom: .5rem; }

/* ============================================================
   ADMIN PANEL â€” Green/White theme matching main site
   ============================================================ */
.admin-layout {
    display: flex; min-height: 100vh;
    --text: #333333;
    --text-muted: #666666;
    --text-dim: #999999;
    --border: #e0e0e0;
    --bg: #f5f5f5;
    --bg-alt: #ffffff;
    --accent: #009416;
    --accent-hover: #007d12;
}
.admin-layout body, .admin-layout { background: var(--bg); color: var(--text); }
.admin-layout h1, .admin-layout h2, .admin-layout h3, .admin-layout h4, .admin-layout h5 { color: var(--dark); }
.admin-layout a { color: var(--accent); }
.admin-layout a:hover { color: var(--accent-hover); }
.admin-layout .input, .admin-layout .select, .admin-layout .textarea {
    background: #fff; border-color: var(--border); color: var(--text);
}
.admin-layout .input:focus, .admin-layout .select:focus, .admin-layout .textarea:focus { border-color: var(--accent); }
.admin-layout .btn-gold, .admin-layout .btn-accent { background: var(--accent); color: #fff; border-color: var(--accent); }
.admin-layout .btn-gold:hover, .admin-layout .btn-accent:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; }
.admin-layout .btn-outline { background: transparent; color: var(--accent); border-color: var(--accent); }
.admin-layout .btn-outline:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.admin-layout .btn-dark { background: #eee; color: var(--text); border-color: #ddd; }
.admin-layout .btn-dark:hover { background: #ddd; color: var(--text); border-color: #ccc; }

.admin-sidebar {
    width: 260px; background: #fff; border-right: 1px solid var(--border);
    position: fixed; top: 0; left: 0; bottom: 0; overflow-y: auto; z-index: 100;
    display: flex; flex-direction: column;
}
.admin-sidebar-header {
    padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--border);
}
.admin-sidebar-header h2 { font-size: 1.1rem; color: var(--accent); }
.admin-sidebar-header small { color: var(--text-dim); font-size: .75rem; }

.admin-nav { flex: 1; padding: 1rem 0; }
.admin-nav a {
    display: flex; align-items: center; gap: .75rem; padding: .65rem 1.5rem;
    color: var(--text-muted); font-size: .9rem; transition: all var(--transition);
}
.admin-nav a svg { width: 18px; height: 18px; flex-shrink: 0; }
.admin-nav a:hover { color: var(--accent); background: rgba(0,155,62,.04); }
.admin-nav a.active { color: var(--accent); background: rgba(0,155,62,.08); border-right: 3px solid var(--accent); }

.admin-sidebar-footer { padding: 1rem 1.5rem; border-top: 1px solid var(--border); }

.admin-main { flex: 1; margin-left: 260px; min-height: 100vh; }
.admin-hamburger { display: none; }
.admin-sidebar-close { display: none; }
.admin-sidebar-overlay { display: none; }
.admin-table-wrap { overflow-x: auto; }
.admin-topbar {
    display: flex; align-items: center; justify-content: space-between;
    padding: 1rem 2rem; background: #fff; border-bottom: 1px solid var(--border);
}
.admin-topbar h1 { font-size: 1.5rem; font-family: var(--font); font-weight: 700; }
.admin-content { padding: 2rem; }

/* Admin Cards */
.admin-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; margin-bottom: 2rem; }
.stat-card {
    background: #fff; border-radius: var(--radius-lg); padding: 1.5rem;
    border: 1px solid var(--border);
}
.stat-card h3 { font-size: .8rem; text-transform: uppercase; color: var(--text-muted); font-family: var(--font); letter-spacing: .05em; margin-bottom: .5rem; }
.stat-card .stat-value { font-size: 2rem; font-weight: 700; color: var(--dark); }
.stat-card .stat-sub { font-size: .8rem; color: var(--text-dim); margin-top: .25rem; }

/* Admin Table */
.admin-card {
    background: #fff; border-radius: var(--radius-lg);
    border: 1px solid var(--border); overflow: hidden;
}
.admin-card-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 1rem 1.5rem; border-bottom: 1px solid var(--border);
}
.admin-card-header h2 { font-size: 1.1rem; font-family: var(--font); }

.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th {
    padding: .75rem 1rem; text-align: left; font-size: .75rem;
    text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted);
    border-bottom: 1px solid var(--border); font-family: var(--font); background: var(--bg);
}
.admin-table td { padding: .75rem 1rem; border-bottom: 1px solid #eee; font-size: .9rem; vertical-align: middle; }
.admin-table tr:hover td { background: #fafafa; }

.admin-table .actions { display: flex; gap: .5rem; align-items: center; }
.admin-table .actions form { display: inline; margin: 0; padding: 0; }
.admin-table .actions a, .admin-table .actions button {
    padding: .35rem .65rem; font-size: .75rem; border-radius: 4px;
    background: #fff; border: 1px solid var(--border); color: var(--text-muted);
    cursor: pointer; transition: all var(--transition); text-decoration: none; line-height: 1;
}
.admin-table .actions a:hover, .admin-table .actions button:hover { border-color: var(--accent); color: var(--accent); }

/* Status Badges */
.badge { display: inline-block; padding: .2rem .6rem; border-radius: 4px; font-size: .75rem; font-weight: 600; }
.badge-success { background: rgba(39,174,96,.1); color: var(--success); }
.badge-warning { background: rgba(243,156,18,.1); color: var(--warning); }
.badge-danger { background: rgba(231,76,60,.1); color: var(--danger); }
.badge-info { background: rgba(52,152,219,.1); color: var(--info); }
.badge-secondary { background: rgba(153,153,153,.1); color: var(--text-muted); }

/* Admin Form */
.admin-form { max-width: 800px; }
.admin-form:has(.admin-form-grid) { max-width: 1100px; }
.admin-form .form-group { margin-bottom: 1.25rem; }
.admin-form .form-actions { display: flex; gap: 1rem; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.admin-form-grid { display: grid; grid-template-columns: 1fr 320px; gap: 1.5rem; }
.admin-form-main { min-width: 0; }
.admin-form-sidebar { min-width: 0; }
@media (max-width: 768px) {
    .admin-form-grid { grid-template-columns: 1fr; }
}

/* Admin Product Options & Specs — compact inline rows */
.spec-row {
    display: flex; align-items: center; gap: .5rem; margin-bottom: .5rem;
}
.spec-row .input { flex: 1; margin-bottom: 0; }

.option-group {
    background: #fafafa; border: 1px solid var(--border); border-radius: var(--radius);
    padding: 1rem; margin-bottom: 1rem;
}
.option-group-header {
    display: flex; align-items: center; gap: .75rem; margin-bottom: .75rem;
}
.option-group-header .input { flex: 1; margin-bottom: 0; }

.option-value-row {
    display: flex; align-items: center; gap: .5rem; margin-bottom: .5rem;
}
.option-value-row .input { flex: 2; margin-bottom: 0; }
.option-value-row .option-price-input { flex: 0 0 90px; }

.btn-remove-row {
    flex-shrink: 0; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
    background: none; border: 1px solid var(--border); border-radius: var(--radius); cursor: pointer;
    color: var(--text-muted); font-size: 1.1rem; transition: all var(--transition); line-height: 1;
}
.btn-remove-row:hover { border-color: var(--danger); color: var(--danger); background: rgba(231,76,60,.05); }

/* Allowed Combinations */
.combination-row {
    display: flex; align-items: center; gap: .75rem; padding: .75rem 1rem;
    background: #fafafa; border: 1px solid var(--border); border-radius: var(--radius);
    margin-bottom: .5rem;
}
.combination-selects { display: flex; gap: 1rem; flex-wrap: wrap; flex: 1; }
.combination-field { display: flex; flex-direction: column; gap: .15rem; }
.combination-value { font-weight: 600; font-size: .9rem; color: var(--dark); }

/* Admin Media Grid */
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 1rem; }
.media-item {
    background: #fafafa; border-radius: var(--radius); overflow: hidden;
    border: 1px solid var(--border); position: relative;
}
.media-item img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.media-item-actions {
    padding: .5rem; display: flex; justify-content: space-between; align-items: center;
    font-size: .75rem; gap: .25rem;
}
.media-item-actions button {
    background: none; border: none; cursor: pointer; color: var(--text-muted);
    padding: .2rem; transition: color var(--transition); font-size: .7rem;
}
.media-item-actions button:hover { color: var(--accent); }
.media-item-actions .btn-del:hover { color: var(--danger); }
.media-item.primary { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(0,155,62,.2); }

/* Drag & Drop Image Reordering */
.sortable-images { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 1rem; }
.sortable-images .media-item { cursor: default; transition: transform .15s ease, opacity .15s ease; }
.drag-handle {
    position: absolute; top: .35rem; left: .35rem; z-index: 2;
    background: rgba(0,0,0,.55); color: #fff; border: none; border-radius: 4px;
    width: 28px; height: 28px; display: flex; align-items: center; justify-content: center;
    font-size: 1rem; cursor: grab; opacity: 0; transition: opacity .15s ease;
    line-height: 1;
}
.media-item:hover .drag-handle { opacity: 1; }
.drag-handle:active { cursor: grabbing; }
.media-item.dragging { opacity: .4; transform: scale(.95); }
.drag-placeholder {
    border: 2px dashed var(--accent); border-radius: var(--radius);
    background: rgba(0,155,62,.06); min-height: 140px;
}

/* Admin Tabs */
.admin-tabs { display: flex; gap: 0; border-bottom: 2px solid var(--border); margin-bottom: 1.5rem; }
.admin-tabs a, .admin-tabs button {
    padding: .75rem 1.25rem; color: var(--text-muted); font-weight: 600; font-size: .9rem;
    border-bottom: 2px solid transparent; margin-bottom: -2px; transition: all var(--transition);
    background: none; border-top: none; border-left: none; border-right: none; cursor: pointer;
    font-family: var(--font);
}
.admin-tabs a.active, .admin-tabs a:hover,
.admin-tabs button.active, .admin-tabs button:hover { color: var(--accent); border-bottom-color: var(--accent); }

/* Pagination */
.pagination { display: flex; gap: .35rem; justify-content: center; margin-top: 2rem; }
.pagination a, .pagination span {
    padding: .5rem .85rem; border-radius: var(--radius); font-size: .85rem;
    border: 1px solid var(--border); color: var(--text-muted);
    transition: all var(--transition);
}
.pagination a:hover { border-color: var(--gold); color: var(--gold); }
.pagination .active { background: var(--gold); color: var(--dark); border-color: var(--gold); }

/* ---------- Admin Login Page ---------- */
.admin-login-page {
    display: flex; min-height: 100vh;
}
.admin-login-left {
    flex: 1; background: var(--green);
    display: flex; align-items: center; justify-content: center;
    padding: 2rem;
}
.admin-login-logo { max-width: 240px; filter: brightness(0) invert(1); }
.admin-login-right {
    flex: 1; display: flex; align-items: center; justify-content: center;
    padding: 2rem; background: var(--bg-alt);
}
.admin-login-box {
    width: 100%; max-width: 380px;
}
.admin-login-box h1 {
    font-family: var(--font-display); font-size: 1.8rem; color: var(--dark);
    margin-bottom: .25rem;
}
.admin-login-subtitle {
    color: var(--text-muted); font-size: .95rem; margin-bottom: 2rem;
}
.admin-login-box .form-group { margin-bottom: 1.25rem; }
.admin-login-box .form-group label { color: var(--text); font-weight: 600; font-size: .9rem; }
.admin-login-box .input {
    background: var(--white); border: 1px solid var(--border);
    padding: .85rem 1rem; font-size: .95rem;
}
.admin-login-box .input:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(0,148,22,.1); }
.admin-login-box .btn { margin-top: .5rem; }
@media (max-width: 768px) {
    .admin-login-page { flex-direction: column; }
    .admin-login-left { min-height: 200px; flex: 0; }
    .admin-login-logo { max-width: 160px; }
}

/* ---------- Skeleton Loading ---------- */
@keyframes skeletonShimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.skeleton-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 2rem; }

.skeleton-card {
    background: var(--bg-alt); border-radius: var(--radius-lg);
    overflow: hidden; border: 1px solid var(--border-light);
}
.skeleton-image {
    aspect-ratio: 1;
    background: linear-gradient(90deg, #eee 25%, #f5f5f5 37%, #eee 63%);
    background-size: 200% 100%;
    animation: skeletonShimmer 1.6s ease-in-out infinite;
}
.skeleton-body {
    padding: 1.25rem;
    display: flex; flex-direction: column; gap: .6rem;
}
.skeleton-line {
    height: .85rem; border-radius: 4px;
    background: linear-gradient(90deg, #eee 25%, #f5f5f5 37%, #eee 63%);
    background-size: 200% 100%;
    animation: skeletonShimmer 1.6s ease-in-out infinite;
}
.skeleton-line.xs { width: 25%; height: .6rem; }
.skeleton-line.sm { width: 40%; }
.skeleton-line.md { width: 65%; }
.skeleton-line.lg { width: 85%; }
.skeleton-line.xl { width: 100%; }
.skeleton-line.price { width: 30%; height: 1.1rem; margin-top: .35rem; }

/* Skeleton for product detail */
.skeleton-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.skeleton-gallery {
    aspect-ratio: 1; border-radius: var(--radius-lg);
    background: linear-gradient(90deg, #eee 25%, #f5f5f5 37%, #eee 63%);
    background-size: 200% 100%;
    animation: skeletonShimmer 1.6s ease-in-out infinite;
}
.skeleton-thumbs { display: flex; gap: .5rem; margin-top: .75rem; }
.skeleton-thumb {
    width: 70px; height: 70px; border-radius: var(--radius);
    background: linear-gradient(90deg, #eee 25%, #f5f5f5 37%, #eee 63%);
    background-size: 200% 100%;
    animation: skeletonShimmer 1.6s ease-in-out infinite;
}
.skeleton-info { display: flex; flex-direction: column; gap: .75rem; padding-top: .5rem; }

/* Skeleton for cart */
.skeleton-cart-item {
    display: grid; grid-template-columns: 110px 1fr auto; gap: 1.25rem;
    align-items: center; padding: 1.25rem;
    background: var(--bg-alt); border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
}
.skeleton-cart-image {
    aspect-ratio: 1; border-radius: var(--radius);
    background: linear-gradient(90deg, #eee 25%, #f5f5f5 37%, #eee 63%);
    background-size: 200% 100%;
    animation: skeletonShimmer 1.6s ease-in-out infinite;
}

/* Content reveal animation */
.content-hidden {
    opacity: 0;
    height: 0;
    overflow: hidden;
    pointer-events: none;
}
.content-hidden.content-reveal {
    height: auto;
    overflow: visible;
    pointer-events: auto;
    animation: contentFadeIn .4s ease forwards;
}
@keyframes contentFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Staggered card animations */
.product-card.animate-in { animation: cardReveal .4s cubic-bezier(.25,.46,.45,.94) forwards; opacity: 0; }
@keyframes cardReveal {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .product-detail { grid-template-columns: 1fr; }
    .checkout-layout { grid-template-columns: 1fr; }
    .cart-layout { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .order-info-grid { grid-template-columns: 1fr; }
    .about-split { grid-template-columns: 1fr; }
    .contact-layout { grid-template-columns: 1fr; }

    .admin-sidebar { width: 220px; }
    .admin-main { margin-left: 220px; }
}

@media (max-width: 768px) {
    /* === Fullscreen Mobile Nav === */
    .main-nav { display: none; }
    .main-nav.open {
        display: flex; flex-direction: column;
        position: fixed; top: 0; left: 0; right: 0; bottom: 0;
        background: var(--green);
        padding: 0;
        z-index: 1001;
        overflow: hidden;
        gap: 0;
        align-items: stretch;
    }

    /* Mobile header with logo */
    .main-nav.open .mobile-nav-header {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        padding: 1.25rem 2rem;
        flex-shrink: 0;
    }
    .mobile-nav-logo { display: flex; align-items: center; }
    .mobile-nav-logo .logo-img { height: 38px; width: auto; }

    /* Scrollable links area — takes all space between logo and lang */
    .main-nav.open .mobile-nav-links {
        flex: 1 1 auto;
        min-height: 0;
        overflow-y: auto;
        padding: .5rem 0 1rem;
        -webkit-overflow-scrolling: touch;
        display: flex;
        flex-direction: column;
    }

    /* Desktop nav structure invisible on mobile */
    .desktop-dropdown-toggle { display: none !important; }
    .mobile-dropdown-toggle { display: flex !important; }
    .nav-dropdown-menu .mobile-only-link { display: block !important; }

    /* Main nav links — more generous spacing */
    .main-nav.open .mobile-nav-links > a {
        display: block;
        padding: 1.1rem 2rem;
        font-size: 1.15rem;
        font-weight: 600;
        letter-spacing: .04em;
        text-transform: uppercase;
        color: var(--white) !important;
        border-bottom: 1px solid rgba(255,255,255,.08);
    }
    .main-nav.open .mobile-nav-links > a:active {
        background: rgba(255,255,255,.08);
    }

    /* Dropdown toggle button */
    .main-nav.open .mobile-dropdown-toggle {
        width: 100%;
        background: none; border: none;
        padding: 1.1rem 2rem;
        font-size: 1.15rem;
        font-weight: 600;
        letter-spacing: .04em;
        text-transform: uppercase;
        color: var(--white);
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: space-between;
        font-family: var(--font);
        border-bottom: 1px solid rgba(255,255,255,.08);
    }
    .nav-dropdown.mobile-open .mobile-dropdown-toggle {
        border-bottom-color: transparent;
    }
    .main-nav.open .mobile-dropdown-toggle:active {
        background: rgba(255,255,255,.08);
    }
    .mobile-chevron {
        transition: transform .3s ease;
        opacity: .4;
        flex-shrink: 0;
        margin-left: auto;
    }
    .nav-dropdown.mobile-open .mobile-chevron {
        transform: rotate(180deg);
        opacity: .8;
    }

    /* Dropdown sub-items — hidden by default, animated */
    .main-nav.open .nav-dropdown-menu {
        position: static; transform: none;
        box-shadow: none;
        background: rgba(0,0,0,.08);
        padding: 0; margin: 0;
        min-width: unset;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        visibility: hidden;
        transition: max-height .35s ease, opacity .25s ease, padding .25s ease;
    }
    .nav-dropdown.mobile-open .nav-dropdown-menu {
        max-height: 500px;
        opacity: 1;
        visibility: visible;
        padding: .5rem 0;
        border-bottom: 1px solid rgba(255,255,255,.08);
    }
    .main-nav.open .nav-dropdown-menu a {
        display: block;
        font-size: .95rem !important;
        font-weight: 400 !important;
        text-transform: none !important;
        letter-spacing: 0 !important;
        padding: .75rem 2rem .75rem 2.75rem !important;
        color: rgba(255,255,255,.75) !important;
        background: transparent !important;
        transition: color .2s ease;
    }
    .main-nav.open .nav-dropdown-menu a:hover,
    .main-nav.open .nav-dropdown-menu a:active {
        color: var(--white) !important;
        background: rgba(255,255,255,.06) !important;
    }
    .main-nav.open .nav-dropdown-group { padding: .15rem 0; }
    .main-nav.open .nav-dropdown-group + .nav-dropdown-group { border-top: 1px solid rgba(255,255,255,.08); }
    .main-nav.open .nav-dropdown-menu .nav-dropdown-group-title {
        font-weight: 600 !important;
        font-size: .95rem !important;
        padding: .75rem 2rem .4rem 2.75rem !important;
        color: rgba(255,255,255,.9) !important;
    }
    .main-nav.open .nav-dropdown-menu a.nav-dropdown-child {
        font-size: .85rem !important;
        padding: .5rem 2rem .5rem 3.75rem !important;
        color: rgba(255,255,255,.6) !important;
    }

    /* Cart row */
    .main-nav.open .mobile-nav-cart {
        display: flex;
        padding: 1.1rem 2rem;
        margin-top: auto;
        border-top: 1px solid rgba(255,255,255,.12);
    }
    .main-nav.open .mobile-nav-cart .cart-icon {
        display: flex; align-items: center; gap: .75rem;
        background: none; border: none; color: var(--white);
        cursor: pointer; font-family: var(--font); font-size: 1rem;
    }
    .main-nav.open .mobile-nav-cart .cart-badge {
        position: static; background: var(--white); color: var(--green);
        font-size: .7rem; font-weight: 700; padding: .15rem .5rem;
        border-radius: 10px; min-width: 18px; text-align: center;
    }
    .mobile-nav-cart-label {
        color: var(--white); font-size: 1rem; font-weight: 600;
    }

    /* === Fixed language bar — always at the very bottom === */
    .main-nav.open .mobile-nav-lang {
        display: flex; gap: .5rem;
        flex-shrink: 0;
        padding: 1rem 2rem;
        padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
        background: rgba(0,0,0,.12);
        justify-content: center;
        flex-wrap: nowrap;
    }
    .mobile-lang-link {
        display: flex; align-items: center; gap: .5rem;
        color: rgba(255,255,255,.6) !important; font-size: .8rem;
        font-weight: 500;
        padding: .5rem 1rem; border-radius: var(--radius);
        transition: all var(--transition);
        background: rgba(255,255,255,.06);
        border: 1px solid rgba(255,255,255,.12);
        white-space: nowrap;
        justify-content: center;
    }
    .mobile-lang-link:hover, .mobile-lang-link.active {
        color: var(--white) !important;
        background: rgba(255,255,255,.18);
        border-color: rgba(255,255,255,.35);
    }
    .mobile-lang-link .lang-flag-emoji { font-size: 1.1rem; line-height: 1; }

    /* Hide desktop-only elements on mobile */
    .header-actions { display: none !important; }
    .menu-toggle, .mobile-menu-toggle { display: flex; }
    .mobile-cart-icon { display: flex; }
    .nav-dropdown-toggle::after { content: ''; }

    h1 { font-size: 2rem; }
    .hero h1 { font-size: 2.5rem; }
    .page-title { font-size: 2rem; }
    .section { padding: 2.5rem 0; }

    .product-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; }
    .cart-item { grid-template-columns: 80px 1fr auto; gap: 1rem; }
    .cart-item-price { grid-column: 2; }
    .cart-item .cart-remove-form { grid-column: 3; grid-row: 1 / -1; align-self: center; }
    .filter-bar { flex-direction: column; }

    .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; align-items: center; }
    .footer-bottom-info { text-align: center; }
    .theses-grid { grid-template-columns: 1fr; }
    .theses-grid .thesis-card:nth-child(odd) { border-right: none; }
    .contact-layout, .contact-grid, .contact-details-grid { grid-template-columns: 1fr; }
    .split-grid, .cta-split { grid-template-columns: 1fr; }
    .faq-grid { grid-template-columns: 1fr; }
    .download-cards { grid-template-columns: 1fr; }
    .why-features { grid-template-columns: 1fr; }
    .why-features-list { grid-template-columns: 1fr; }
    .why-feature-row { flex-direction: column; text-align: center; gap: 1rem; }
    .why-feature-img-box { width: 150px; height: 150px; }
    .why-feature-text { text-align: center; }

    /* Mobile nav dropdown — handled above */

    /* Cart drawer mobile */
    .cart-drawer { width: 100vw; }

    /* Admin responsive */
    .admin-sidebar { transform: translateX(-100%); transition: transform .3s ease; width: 280px; }
    .admin-sidebar.open { transform: translateX(0); }
    .admin-main { margin-left: 0; }
    .admin-sidebar-overlay {
        display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
        background: rgba(0,0,0,.5); z-index: 99; opacity: 0; transition: opacity .3s ease;
    }
    .admin-sidebar-overlay.active { display: block; opacity: 1; }
    .admin-topbar { padding: .75rem 1rem; }
    .admin-topbar h1 { font-size: 1.15rem; }
    .admin-topbar > div { display: flex; align-items: center; gap: .75rem; }
    .admin-content { padding: 1rem; }
    .admin-hamburger {
        display: flex; flex-direction: column; justify-content: center; gap: 5px;
        background: none; border: none; cursor: pointer; padding: 4px;
        width: 32px; height: 32px;
    }
    .admin-hamburger span {
        display: block; width: 22px; height: 2px; background: var(--text);
        border-radius: 2px; transition: all .3s ease;
    }
    .admin-hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .admin-hamburger.active span:nth-child(2) { opacity: 0; }
    .admin-hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
    .admin-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .admin-card { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .admin-table { min-width: 600px; }
    .admin-card-header { flex-wrap: wrap; gap: .75rem; padding: .75rem 1rem; }
    .admin-stats { grid-template-columns: 1fr 1fr; gap: .75rem; margin-bottom: 1.25rem; }
    .stat-card { padding: 1rem; }
    .stat-card .stat-value { font-size: 1.5rem; }
    .filter-bar .select { width: 100% !important; }
    .filter-bar .btn { width: 100%; justify-content: center; }
    .admin-tabs { overflow-x: auto; -webkit-overflow-scrolling: touch; gap: 0; flex-wrap: nowrap; }
    .admin-tabs a, .admin-tabs button { white-space: nowrap; padding: .6rem .85rem; font-size: .8rem; }
    .pagination { flex-wrap: wrap; gap: .25rem; }
    .pagination a, .pagination span { padding: .4rem .65rem; font-size: .8rem; }
    .admin-sidebar-close {
        display: flex; position: absolute; top: 1rem; right: 1rem;
        background: none; border: none; cursor: pointer; color: var(--text-muted);
        font-size: 1.5rem; line-height: 1; z-index: 101; padding: 4px;
    }
    .admin-sidebar-close:hover { color: var(--text); }
    .option-value-row { flex-wrap: wrap; }
    .option-value-row .input { flex: 1 1 100%; }
    .option-value-row .option-price-input { flex: 1 1 calc(50% - .25rem); }
    .spec-row { flex-wrap: wrap; }
    .media-grid, .sortable-images { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: .5rem; }
    /* Override inline grid layouts for mobile */
    .admin-content [style*="grid-template-columns: 2fr 1fr"],
    .admin-content [style*="grid-template-columns:2fr 1fr"] {
        grid-template-columns: 1fr !important;
    }
    .admin-content [style*="grid-template-columns: 1fr 2fr 2fr 2fr"],
    .admin-content [style*="grid-template-columns:1fr 2fr 2fr 2fr"] {
        grid-template-columns: 1fr !important;
    }
    .admin-content [style*="grid-template-columns: 1fr 1fr 1fr"],
    .admin-content [style*="grid-template-columns:1fr 1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 1.8rem; }
    .form-row { grid-template-columns: 1fr; }
    .product-grid { grid-template-columns: 1fr; }
    .tab-nav { overflow-x: auto; }
    .admin-stats { grid-template-columns: 1fr; }
    .admin-topbar h1 { font-size: 1rem; }
    .admin-sidebar { width: 260px; }
}

/* ========== Admin Front Bar ========== */
.admin-front-bar {
    background: #1a1a1a; color: #fff; font-size: .8rem;
    padding: .4rem 0; position: relative; z-index: 10000;
}
.admin-front-bar a {
    color: #ccc; text-decoration: none; font-size: .8rem; transition: color .2s;
}
.admin-front-bar a:hover { color: #fff; }

/* Admin edit link (pencil icon) */
.admin-edit-link {
    display: inline-flex; align-items: center; justify-content: center;
    width: 28px; height: 28px; background: rgba(0,0,0,.7); color: #fff;
    border-radius: 4px; font-size: .85rem; text-decoration: none;
    cursor: pointer; transition: background .2s; vertical-align: middle;
    margin-left: .5rem; line-height: 1;
}
.admin-edit-link:hover { background: #009416; color: #fff; }

/* Edit link on product cards */
.admin-edit-link.card-edit {
    position: absolute; top: 8px; right: 8px; z-index: 5;
    margin-left: 0; opacity: 0; transition: opacity .2s, background .2s;
}
.product-card:hover .admin-edit-link.card-edit { opacity: 1; }
