/* ========================================
   Fayzishopping — Tech Accessories E-Commerce
   Palette: Deep navy (#0f172a), Electric blue (#2563eb),
   Neon accent (#06b6d4), Warm orange (#f97316)
   ======================================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --navy: #0f172a;
    --navy-light: #1e293b;
    --blue: #2563eb;
    --blue-dark: #1d4ed8;
    --blue-light: #dbeafe;
    --cyan: #06b6d4;
    --orange: #f97316;
    --green: #22c55e;
    --red: #ef4444;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    --white: #ffffff;
    --radius: 12px;
    --radius-sm: 8px;
    --radius-xs: 6px;
    --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
    --transition: 0.2s ease;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

html { scroll-behavior: smooth; }
body {
    font-family: var(--font);
    background: var(--gray-50);
    color: var(--gray-800);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--blue); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--blue-dark); }
img { max-width: 100%; height: auto; display: block; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 1rem; }
.container-narrow { max-width: 800px; }

/* ============ BUTTONS ============ */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0.6rem 1.2rem; border-radius: var(--radius-sm);
    font-family: var(--font); font-weight: 600; font-size: 0.9rem;
    border: 2px solid transparent; cursor: pointer;
    transition: all var(--transition); gap: 0.4rem; text-align: center;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--blue); color: var(--white); border-color: var(--blue); }
.btn-primary:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: var(--white); }
.btn-outline { background: transparent; color: var(--gray-700); border-color: var(--gray-300); }
.btn-outline:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-light); }
.btn-outline-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.4); }
.btn-outline-light:hover { background: rgba(255,255,255,0.1); color: var(--white); }
.btn-danger { background: var(--red); color: var(--white); border-color: var(--red); }
.btn-danger:hover { background: #dc2626; color: var(--white); }
.btn-success { background: var(--green); color: var(--white); border-color: var(--green); }
.btn-sm { padding: 0.35rem 0.8rem; font-size: 0.8rem; }
.btn-lg { padding: 0.8rem 1.6rem; font-size: 1rem; }
.btn-block { width: 100%; }

/* ============ HEADER / NAVBAR ============ */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--navy); }
.navbar { display: flex; align-items: center; padding: 0.6rem 0; }
.nav-container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.logo { display: flex; align-items: center; gap: 0.4rem; color: var(--white); font-size: 1.3rem; text-decoration: none; }
.logo:hover { color: var(--white); }
.logo-icon { font-size: 1.5rem; color: var(--cyan); }
.logo-text { font-weight: 300; letter-spacing: -0.02em; }
.logo-text strong { font-weight: 700; color: var(--cyan); }

.search-bar { flex: 1; max-width: 420px; margin: 0 1.5rem; }
.search-form { display: flex; position: relative; }
.search-input {
    width: 100%; padding: 0.55rem 1rem; padding-right: 2.5rem;
    border: 2px solid rgba(255,255,255,0.1); border-radius: 50px;
    background: rgba(255,255,255,0.08); color: var(--white); font-size: 0.9rem;
    font-family: var(--font); transition: border-color var(--transition);
}
.search-input::placeholder { color: var(--gray-400); }
.search-input:focus { outline: none; border-color: var(--cyan); background: rgba(255,255,255,0.12); }
.search-btn {
    position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
    background: none; border: none; color: var(--gray-400); font-size: 1.1rem; cursor: pointer;
    padding: 0.4rem;
}

.nav-actions { display: flex; align-items: center; gap: 0.8rem; }
.cart-link { color: var(--white); position: relative; font-size: 1.4rem; padding: 0.3rem; }
.cart-link:hover { color: var(--cyan); }
.cart-count {
    position: absolute; top: -4px; right: -6px;
    background: var(--orange); color: var(--white); font-size: 0.65rem; font-weight: 700;
    width: 18px; height: 18px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
}

.category-nav { background: var(--navy-light); border-top: 1px solid rgba(255,255,255,0.06); }
.category-nav .container { display: flex; gap: 0; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.cat-link {
    padding: 0.6rem 1rem; color: var(--gray-400); font-size: 0.85rem; font-weight: 500;
    white-space: nowrap; border-bottom: 2px solid transparent; transition: all var(--transition);
}
.cat-link:hover, .cat-link.active { color: var(--cyan); border-bottom-color: var(--cyan); }

.mobile-menu-btn { display: none; background: none; border: none; cursor: pointer; padding: 0.3rem; }
.mobile-menu-btn span { display: block; width: 22px; height: 2px; background: var(--white); margin: 5px 0; transition: all var(--transition); border-radius: 2px; }

.mobile-menu {
    display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
    background: var(--navy); z-index: 200; padding: 5rem 1.5rem 2rem;
    overflow-y: auto; animation: slideDown 0.3s ease;
}
.mobile-menu.active { display: block; }
.mobile-search { margin-bottom: 1.5rem; }
.mobile-search .search-input { border-color: var(--gray-600); }
.mobile-nav-links { display: flex; flex-direction: column; gap: 0; }
.mobile-nav-links a {
    padding: 0.85rem 0; color: var(--gray-300); font-size: 1.1rem; font-weight: 500;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.mobile-nav-links a:hover { color: var(--cyan); }
.mobile-socials { margin-top: 2rem; display: flex; gap: 1rem; }
.mobile-socials a { color: var(--gray-400); font-weight: 500; }

@keyframes slideDown { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }

/* ============ HERO ============ */
.hero-banner {
    background: linear-gradient(135deg, var(--navy) 0%, #1a2744 50%, #0d1f3c 100%);
    color: var(--white); padding: 4rem 0 3.5rem; position: relative; overflow: hidden;
}
.hero-banner::before {
    content: ''; position: absolute; top: -50%; right: -20%; width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(6,182,212,0.15) 0%, transparent 70%);
    border-radius: 50%;
}
.hero-banner::after {
    content: ''; position: absolute; bottom: -30%; left: -10%; width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(37,99,235,0.12) 0%, transparent 70%);
    border-radius: 50%;
}
.hero-content { position: relative; z-index: 1; max-width: 640px; }
.hero-badge {
    display: inline-block; background: rgba(6,182,212,0.15); color: var(--cyan);
    padding: 0.3rem 0.9rem; border-radius: 50px; font-size: 0.8rem; font-weight: 600;
    letter-spacing: 0.05em; margin-bottom: 1rem;
}
.hero-content h1 { font-size: clamp(1.8rem, 5vw, 3rem); font-weight: 800; line-height: 1.15; margin-bottom: 0.8rem; }
.hero-content p { font-size: 1.05rem; color: var(--gray-300); margin-bottom: 1.5rem; max-width: 500px; }
.hero-actions { display: flex; gap: 0.8rem; flex-wrap: wrap; }

/* ============ FEATURES STRIP ============ */
.features-strip { background: var(--white); border-bottom: 1px solid var(--gray-200); padding: 1rem 0; }
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.5rem; }
.feature-item { display: flex; align-items: center; gap: 0.6rem; padding: 0.5rem; text-align: center; justify-content: center; }
.feature-icon { font-size: 1.5rem; }
.feature-item strong { display: block; font-size: 0.82rem; color: var(--gray-800); }
.feature-item small { display: block; font-size: 0.72rem; color: var(--gray-500); }

/* ============ SECTIONS ============ */
.section { padding: 2.5rem 0; }
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }
.section-title { font-size: 1.5rem; font-weight: 700; color: var(--gray-900); }
.section-link { font-weight: 600; font-size: 0.9rem; color: var(--blue); }

/* ============ CATEGORIES GRID ============ */
.categories-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 1rem; }
.category-card {
    display: flex; flex-direction: column; align-items: center; padding: 1.5rem 1rem;
    background: var(--white); border-radius: var(--radius); border: 1px solid var(--gray-200);
    text-align: center; transition: all var(--transition); text-decoration: none;
}
.category-card:hover { border-color: var(--blue); transform: translateY(-3px); box-shadow: var(--shadow-md); color: var(--gray-800); }
.category-card-icon { font-size: 2.2rem; margin-bottom: 0.5rem; }
.category-card h3 { font-size: 0.9rem; font-weight: 600; margin-bottom: 0.2rem; }
.category-card small { color: var(--gray-500); }

/* ============ PRODUCTS GRID ============ */
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }

.product-card {
    background: var(--white); border-radius: var(--radius); border: 1px solid var(--gray-200);
    overflow: hidden; transition: all var(--transition); position: relative;
    display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--gray-300); }
.product-card-link { text-decoration: none; color: inherit; display: block; flex: 1; }
.product-card-link:hover { color: inherit; }

.product-card-image { position: relative; aspect-ratio: 1; overflow: hidden; background: var(--gray-100); }
.product-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.product-card:hover .product-card-image img { transform: scale(1.05); }

.badge {
    position: absolute; top: 10px; left: 10px; padding: 0.2rem 0.6rem;
    border-radius: var(--radius-xs); font-size: 0.7rem; font-weight: 700; z-index: 1;
}
.badge-sale { background: var(--red); color: var(--white); }
.badge-new { background: var(--cyan); color: var(--white); }

.product-card-info { padding: 0.8rem 1rem 0.5rem; }
.product-card-category { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--blue); font-weight: 600; }
.product-card-name { font-size: 0.92rem; font-weight: 600; color: var(--gray-800); margin: 0.2rem 0 0.4rem; line-height: 1.3;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-card-price { display: flex; align-items: baseline; gap: 0.5rem; }
.price-current { font-size: 1.05rem; font-weight: 700; color: var(--navy); }
.price-compare { font-size: 0.8rem; color: var(--gray-400); text-decoration: line-through; }

.product-card-actions { padding: 0 1rem 1rem; }

.btn-wishlist {
    position: absolute; top: 10px; right: 10px; z-index: 2;
    width: 34px; height: 34px; border-radius: 50%;
    background: rgba(255,255,255,0.9); border: none;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; font-size: 1.1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1); transition: all var(--transition);
    backdrop-filter: blur(4px);
}
.btn-wishlist:hover { transform: scale(1.1); background: var(--white); }
.heart-icon { transition: color 0.2s; }
.btn-add-cart { width: 100%; background: var(--blue); color: var(--white); border: none; padding: 0.55rem; border-radius: var(--radius-sm); font-weight: 600; font-size: 0.85rem; cursor: pointer; transition: background var(--transition); font-family: var(--font); }
.btn-add-cart:hover { background: var(--blue-dark); }
.out-of-stock-label { display: block; text-align: center; color: var(--gray-400); font-size: 0.82rem; padding: 0.55rem; }

/* ============ PAGE HEADER ============ */
.page-header { background: var(--navy); color: var(--white); padding: 2rem 0 1.5rem; }
.page-header h1 { font-size: 1.6rem; font-weight: 700; margin-bottom: 0.3rem; }
.breadcrumb { font-size: 0.82rem; color: var(--gray-400); }
.breadcrumb a { color: var(--gray-400); }
.breadcrumb a:hover { color: var(--cyan); }

/* ============ SHOP LAYOUT ============ */
.shop-layout { display: grid; grid-template-columns: 220px 1fr; gap: 2rem; }
.shop-sidebar { position: sticky; top: 80px; align-self: start; }
.filter-group { margin-bottom: 1.5rem; }
.filter-group h3 { font-size: 0.9rem; font-weight: 700; margin-bottom: 0.6rem; text-transform: uppercase; letter-spacing: 0.03em; color: var(--gray-700); }
.filter-list { list-style: none; }
.filter-list a {
    display: block; padding: 0.35rem 0; font-size: 0.88rem; color: var(--gray-600);
    border-bottom: 1px solid var(--gray-100); transition: color var(--transition);
}
.filter-list a:hover, .filter-list a.active { color: var(--blue); font-weight: 600; }
.filter-list .count { color: var(--gray-400); font-size: 0.8rem; }

.shop-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.results-count { font-size: 0.88rem; color: var(--gray-500); }

.filter-form { display: flex; gap: 0.5rem; }
.filter-form select { padding: 0.4rem 0.8rem; border: 1px solid var(--gray-300); border-radius: var(--radius-xs); font-size: 0.85rem; font-family: var(--font); background: var(--white); }

/* ============ PRODUCT DETAIL ============ */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }

.product-gallery { position: sticky; top: 80px; align-self: start; }
.gallery-main {
    border-radius: var(--radius); overflow: hidden; background: var(--gray-100);
    aspect-ratio: 1; margin-bottom: 0.8rem;
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 0.5rem; overflow-x: auto; }
.gallery-thumb {
    width: 70px; height: 70px; border-radius: var(--radius-xs); overflow: hidden;
    border: 2px solid transparent; cursor: pointer; background: none; padding: 0; flex-shrink: 0;
    transition: border-color var(--transition);
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb.active, .gallery-thumb:hover { border-color: var(--blue); }

.product-category-label { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--blue); font-weight: 600; }
.product-title { font-size: 1.6rem; font-weight: 700; margin: 0.4rem 0 1rem; line-height: 1.3; }

.product-price-box { display: flex; align-items: baseline; gap: 0.8rem; margin-bottom: 0.8rem; }
.product-price { font-size: 1.8rem; font-weight: 800; color: var(--navy); }
.product-compare-price { font-size: 1.1rem; color: var(--gray-400); text-decoration: line-through; }
.product-discount { background: var(--red); color: var(--white); padding: 0.15rem 0.5rem; border-radius: var(--radius-xs); font-size: 0.75rem; font-weight: 700; }

.product-stock { margin-bottom: 1rem; }
.in-stock { color: var(--green); font-weight: 600; font-size: 0.9rem; }
.out-of-stock { color: var(--red); font-weight: 600; font-size: 0.9rem; }

.product-description { color: var(--gray-600); font-size: 0.95rem; line-height: 1.7; margin-bottom: 1.2rem; }
.product-meta { margin-bottom: 1.2rem; font-size: 0.9rem; color: var(--gray-600); }
.product-meta strong { color: var(--gray-700); }

.product-variants { margin-bottom: 1.5rem; }
.variant-group label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 0.3rem; margin-top: 0.8rem; }
.variant-group select {
    width: 100%; padding: 0.6rem 0.8rem; border: 1px solid var(--gray-300); border-radius: var(--radius-sm);
    font-size: 0.9rem; font-family: var(--font); background: var(--white);
}

.product-add-section { display: flex; gap: 1rem; align-items: center; margin-bottom: 1.5rem; }
.quantity-control { display: flex; align-items: center; border: 1px solid var(--gray-300); border-radius: var(--radius-sm); overflow: hidden; }
.qty-btn {
    width: 40px; height: 40px; border: none; background: var(--gray-100); font-size: 1.1rem;
    cursor: pointer; font-weight: 600; transition: background var(--transition); font-family: var(--font);
}
.qty-btn:hover { background: var(--gray-200); }
.quantity-control input {
    width: 50px; height: 40px; border: none; text-align: center; font-size: 1rem;
    font-weight: 600; font-family: var(--font); -moz-appearance: textfield;
}
.quantity-control input::-webkit-outer-spin-button,
.quantity-control input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.btn-add-to-cart { flex: 1; }

.product-quantity-section { margin-bottom: 1.2rem; }
.product-quantity-section .section-label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 0.4rem; }
.product-quantity-section .quantity-control { display: inline-flex; }

.product-shipping-section { margin-bottom: 1.2rem; }
.product-shipping-section .section-label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 0.4rem; margin-top: 0.8rem; }
.product-shipping-section .form-control { width: 100%; padding: 0.6rem 0.8rem; border: 1px solid var(--gray-300); border-radius: var(--radius-sm); font-size: 0.9rem; font-family: var(--font); background: var(--white); }

.delivery-options { display: flex; flex-direction: column; gap: 0.6rem; margin-top: 0.5rem; }
.delivery-option {
    display: flex; align-items: center; gap: 0.8rem; padding: 0.7rem 1rem;
    border: 2px solid var(--gray-200); border-radius: var(--radius-sm); cursor: pointer;
    transition: border-color var(--transition), background var(--transition);
}
.delivery-option:hover { border-color: var(--blue); background: var(--blue-light); }
.delivery-option input[type="radio"] { display: none; }
.delivery-option input[type="radio"]:checked ~ .delivery-radio {
    border-color: var(--blue); background: var(--blue);
}
.delivery-option input[type="radio"]:checked ~ .delivery-radio::after {
    content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 8px; height: 8px; border-radius: 50%; background: var(--white);
}
.delivery-option input[type="radio"]:checked ~ .delivery-info .delivery-name { color: var(--blue); }
.delivery-radio {
    width: 18px; height: 18px; border: 2px solid var(--gray-300); border-radius: 50%;
    position: relative; flex-shrink: 0; transition: border-color var(--transition), background var(--transition);
}
.delivery-info { display: flex; flex-direction: column; gap: 0.1rem; }
.delivery-name { font-size: 0.88rem; font-weight: 600; color: var(--gray-700); }
.delivery-price { font-size: 0.82rem; color: var(--gray-500); font-weight: 500; }

.product-total-section {
    background: var(--gray-50); border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm); padding: 1rem; margin-bottom: 1.2rem;
}
.total-line { display: flex; justify-content: space-between; font-size: 0.9rem; color: var(--gray-600); margin-bottom: 0.4rem; }
.total-line:last-child { margin-bottom: 0; }
.total-final { font-size: 1.1rem; font-weight: 700; color: var(--navy); padding-top: 0.5rem; border-top: 1px solid var(--gray-200); }

.product-actions { display: flex; gap: 0.8rem; margin-bottom: 1.5rem; }
.btn-commander { flex: 2; background: var(--orange); color: var(--white); border: none; font-weight: 700; }
.btn-commander:hover { background: #ea580c; }
.btn-commander:disabled { background: var(--gray-300); cursor: not-allowed; }
.product-actions .btn-add-to-cart { flex: 1; }

.product-guarantees { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1.2rem; }
.guarantee-item { font-size: 0.85rem; color: var(--gray-600); }

.product-share { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; font-size: 0.85rem; color: var(--gray-500); }
.share-btn {
    padding: 0.3rem 0.7rem; border-radius: var(--radius-xs); font-size: 0.78rem; font-weight: 600; color: var(--white);
}
.share-facebook { background: #1877f2; }
.share-whatsapp { background: #25d366; }
.share-twitter { background: #1da1f2; }

.related-products { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--gray-200); }

/* ============ CART PAGE ============ */
.cart-layout { display: grid; grid-template-columns: 1fr 340px; gap: 2rem; }
.cart-item {
    display: flex; align-items: center; gap: 1rem; padding: 1rem; background: var(--white);
    border-radius: var(--radius); border: 1px solid var(--gray-200); margin-bottom: 0.8rem;
}
.cart-item-image { width: 80px; height: 80px; border-radius: var(--radius-sm); overflow: hidden; flex-shrink: 0; background: var(--gray-100); }
.cart-item-image img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name { font-weight: 600; font-size: 0.95rem; display: block; color: var(--gray-800); }
.cart-item-name:hover { color: var(--blue); }
.cart-item-variant { font-size: 0.8rem; color: var(--gray-500); display: block; }
.cart-item-price { font-weight: 600; font-size: 0.9rem; margin-top: 0.2rem; display: block; }
.cart-item-controls { display: flex; align-items: center; gap: 1rem; }
.cart-item-subtotal { font-weight: 700; font-size: 0.95rem; white-space: nowrap; }
.btn-remove { background: none; border: none; color: var(--gray-400); cursor: pointer; font-size: 1rem; padding: 0.3rem; }
.btn-remove:hover { color: var(--red); }

.cart-summary-box {
    background: var(--white); border-radius: var(--radius); border: 1px solid var(--gray-200);
    padding: 1.5rem; position: sticky; top: 80px;
}
.cart-summary-box h3 { font-size: 1.1rem; margin-bottom: 1rem; }
.summary-line { display: flex; justify-content: space-between; padding: 0.3rem 0; font-size: 0.9rem; }
.summary-total { font-weight: 700; font-size: 1.05rem; }
.text-muted { color: var(--gray-400); font-size: 0.82rem; }
.cart-summary-box hr { border: none; border-top: 1px solid var(--gray-200); margin: 0.6rem 0; }
.cart-summary-box .btn { margin-top: 0.8rem; }

/* ============ CHECKOUT ============ */
.checkout-layout { display: grid; grid-template-columns: 1fr 380px; gap: 2rem; }
.checkout-form-section { background: var(--white); border-radius: var(--radius); padding: 1.5rem; border: 1px solid var(--gray-200); }
.checkout-form-section h2 { font-size: 1.2rem; margin-bottom: 1rem; }

.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 0.3rem; color: var(--gray-700); }
.form-control {
    width: 100%; padding: 0.65rem 0.9rem; border: 1px solid var(--gray-300); border-radius: var(--radius-sm);
    font-size: 0.92rem; font-family: var(--font); transition: border-color var(--transition);
    background: var(--white);
}
.form-control:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37,99,235,0.1); }
textarea.form-control { resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
small { color: var(--gray-500); font-size: 0.8rem; }

.checkout-item { display: flex; justify-content: space-between; align-items: flex-start; padding: 0.5rem 0; border-bottom: 1px solid var(--gray-100); }
.checkout-item-info { flex: 1; }
.checkout-item-name { font-weight: 600; font-size: 0.88rem; display: block; }
.checkout-item-variant { color: var(--gray-500); display: block; }
.checkout-item-qty { color: var(--gray-500); font-size: 0.82rem; }
.checkout-item-price { font-weight: 600; font-size: 0.88rem; white-space: nowrap; margin-left: 1rem; }

.payment-info {
    display: flex; align-items: center; gap: 0.8rem; background: var(--blue-light);
    padding: 0.8rem 1rem; border-radius: var(--radius-sm); margin: 1rem 0;
}
.payment-icon { font-size: 1.5rem; }
.payment-info strong { font-size: 0.9rem; color: var(--navy); display: block; }
.payment-info small { color: var(--gray-600); }
.checkout-terms { font-size: 0.78rem; color: var(--gray-400); text-align: center; margin-top: 0.5rem; }

/* ============ ORDER CONFIRMATION ============ */
.confirmation-card {
    max-width: 700px; margin: 2rem auto; background: var(--white); border-radius: var(--radius);
    padding: 2.5rem; text-align: center; border: 1px solid var(--gray-200);
}
.confirmation-icon {
    width: 64px; height: 64px; background: var(--green); color: var(--white);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem; margin: 0 auto 1rem;
}
.confirmation-card h1 { font-size: 1.5rem; margin-bottom: 0.3rem; }
.order-number { font-size: 1.1rem; color: var(--gray-600); margin-bottom: 1rem; }

.order-details-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; text-align: left; margin: 1.5rem 0; }
.order-detail-box { background: var(--gray-50); padding: 1rem; border-radius: var(--radius-sm); }
.order-detail-box h4 { font-size: 0.88rem; margin-bottom: 0.5rem; }
.order-detail-box p { font-size: 0.88rem; color: var(--gray-600); line-height: 1.5; }
.payment-mode { font-size: 0.85rem; color: var(--gray-500); margin-top: 0.5rem; font-style: italic; }

.order-items-list { text-align: left; margin: 1.5rem 0; }
.order-items-list h4 { margin-bottom: 0.5rem; }
.order-item-row { display: flex; justify-content: space-between; padding: 0.4rem 0; border-bottom: 1px solid var(--gray-100); font-size: 0.9rem; }

.confirmation-actions { display: flex; gap: 0.8rem; justify-content: center; margin: 1.5rem 0; }
.confirmation-note { font-size: 0.85rem; color: var(--gray-500); margin-top: 1rem; }
.confirmation-note a { font-weight: 600; }

/* ============ EMPTY STATE ============ */
.empty-state { text-align: center; padding: 4rem 1rem; }
.empty-icon { font-size: 3rem; display: block; margin-bottom: 1rem; }
.empty-state h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.empty-state p { color: var(--gray-500); margin-bottom: 1.5rem; }

/* ============ PAGINATION ============ */
.pagination { display: flex; justify-content: center; align-items: center; gap: 0.3rem; margin-top: 2rem; }
.page-link {
    padding: 0.4rem 0.8rem; border-radius: var(--radius-xs); font-size: 0.85rem; font-weight: 500;
    color: var(--gray-600); border: 1px solid var(--gray-200); transition: all var(--transition);
}
.page-link:hover { border-color: var(--blue); color: var(--blue); }
.page-link.active { background: var(--blue); color: var(--white); border-color: var(--blue); }
.page-ellipsis { padding: 0.4rem 0.5rem; color: var(--gray-400); }

/* ============ CTA SECTION ============ */
.cta-section { padding: 2rem 0 3rem; }
.cta-box {
    background: linear-gradient(135deg, var(--navy), #1a2744); color: var(--white);
    border-radius: var(--radius); padding: 3rem 2rem; text-align: center;
}
.cta-box h2 { font-size: 1.4rem; margin-bottom: 0.5rem; }
.cta-box p { color: var(--gray-300); margin-bottom: 1.2rem; }
.cta-actions { display: flex; gap: 0.8rem; justify-content: center; }

/* ============ STATIC PAGES ============ */
.static-page { padding: 2rem 0 4rem; }
.static-content { font-size: 0.95rem; line-height: 1.8; }
.static-content h2 { font-size: 1.3rem; margin: 1.5rem 0 0.8rem; }
.static-content ul { padding-left: 1.5rem; margin: 0.5rem 0; }
.static-content li { margin-bottom: 0.3rem; }
.about-cta { margin-top: 2rem; padding: 1.5rem; background: var(--gray-100); border-radius: var(--radius-sm); text-align: center; }

.contact-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.contact-card {
    display: flex; flex-direction: column; align-items: center; padding: 1.5rem;
    background: var(--white); border-radius: var(--radius); border: 1px solid var(--gray-200);
    text-align: center; transition: all var(--transition); text-decoration: none; color: inherit;
}
.contact-card:hover { border-color: var(--blue); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.contact-icon { font-size: 2rem; margin-bottom: 0.5rem; }
.contact-card h3 { font-size: 1rem; margin-bottom: 0.2rem; }
.contact-card p { color: var(--gray-500); font-size: 0.88rem; }

.faq-item { margin-bottom: 1.2rem; }
.faq-item h3 { font-size: 1rem; margin-bottom: 0.3rem; }
.faq-item p { color: var(--gray-600); font-size: 0.9rem; }

/* ============ ALERTS ============ */
.alert {
    padding: 0.7rem 1rem; border-radius: var(--radius-sm); margin-bottom: 1rem;
    font-size: 0.88rem; font-weight: 500;
}
.alert-success { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.alert-danger { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.alert-warning { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }
.alert-info { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }

/* ============ FOOTER ============ */
.site-footer { background: var(--navy); color: var(--gray-400); padding: 3rem 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2rem; }
.footer-logo { font-size: 1.2rem; color: var(--white); margin-bottom: 0.8rem; }
.footer-logo strong { color: var(--cyan); }
.footer-col h4 { color: var(--white); font-size: 0.9rem; margin-bottom: 0.8rem; }
.footer-col a { display: block; color: var(--gray-400); font-size: 0.88rem; padding: 0.2rem 0; }
.footer-col a:hover { color: var(--cyan); }
.footer-col p { font-size: 0.88rem; line-height: 1.6; }
.footer-payment { margin-top: 1rem; }
.footer-payment p { font-size: 0.82rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); margin-top: 2rem; padding: 1rem 0; text-align: center; font-size: 0.82rem; }

/* ============ ADMIN ============ */
.admin-body { background: var(--gray-100); }
.admin-layout { display: flex; min-height: 100vh; }
.admin-sidebar {
    width: 240px; background: var(--navy); color: var(--gray-400);
    padding: 1rem 0; position: fixed; top: 0; left: 0; height: 100vh; overflow-y: auto;
    display: flex; flex-direction: column;
}
.admin-sidebar-header { padding: 0 1rem 1rem; display: flex; align-items: center; justify-content: space-between; }
.admin-badge {
    background: var(--blue); color: var(--white); padding: 0.15rem 0.5rem;
    border-radius: var(--radius-xs); font-size: 0.7rem; font-weight: 700;
}
.admin-nav { padding: 0 0.5rem; flex: 1; }
.admin-nav-link {
    display: flex; align-items: center; gap: 0.6rem; padding: 0.6rem 0.8rem;
    border-radius: var(--radius-sm); color: var(--gray-400); font-size: 0.88rem;
    transition: all var(--transition); margin-bottom: 2px;
}
.admin-nav-link:hover { background: rgba(255,255,255,0.06); color: var(--white); }
.admin-nav-link.active { background: var(--blue); color: var(--white); }
.admin-divider { border: none; border-top: 1px solid rgba(255,255,255,0.1); margin: 0.5rem 0; }

.admin-main { flex: 1; margin-left: 240px; }
.admin-header {
    background: var(--white); padding: 1rem 1.5rem; border-bottom: 1px solid var(--gray-200);
}
.admin-header h2 { font-size: 1.2rem; }
.admin-content { padding: 1.5rem; }

.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.stat-card {
    background: var(--white); border-radius: var(--radius); padding: 1.2rem;
    display: flex; align-items: center; gap: 1rem; border: 1px solid var(--gray-200);
}
.stat-icon { font-size: 2rem; }
.stat-info h3 { font-size: 1.3rem; font-weight: 700; color: var(--gray-900); }
.stat-info p { font-size: 0.82rem; color: var(--gray-500); }
.stat-warning .stat-icon { color: var(--orange); }
.stat-success .stat-icon { color: var(--green); }

.admin-section { background: var(--white); border-radius: var(--radius); border: 1px solid var(--gray-200); padding: 1.2rem; margin-bottom: 1.5rem; }
.admin-section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }

.admin-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.admin-table th {
    text-align: left; padding: 0.6rem 0.8rem; border-bottom: 2px solid var(--gray-200);
    font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.03em; color: var(--gray-500);
}
.admin-table td { padding: 0.6rem 0.8rem; border-bottom: 1px solid var(--gray-100); }
.admin-table tr:hover { background: var(--gray-50); }
.table-thumb { width: 40px; height: 40px; border-radius: var(--radius-xs); object-fit: cover; }
.actions-cell { white-space: nowrap; }
.actions-cell .btn { margin-right: 0.3rem; }
.clickable-row { cursor: pointer; }
.text-center { text-align: center; }
.text-danger { color: var(--red); font-weight: 600; }

.status-badge {
    display: inline-block; padding: 0.15rem 0.5rem; border-radius: 50px;
    font-size: 0.75rem; font-weight: 600;
}
.status-pending { background: #fef3c7; color: #92400e; }
.status-confirmed { background: #d1fae5; color: #065f46; }
.status-shipped { background: #dbeafe; color: #1e40af; }
.status-delivered { background: #d1fae5; color: #065f46; }
.status-cancelled { background: #fee2e2; color: #991b1b; }

.status-form { display: flex; gap: 0.5rem; margin-top: 0.5rem; }
.status-form select { flex: 1; }

.admin-form { }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.form-section { background: var(--white); padding: 1.2rem; border-radius: var(--radius); border: 1px solid var(--gray-200); }
.form-section h3 { font-size: 1rem; margin-bottom: 1rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--gray-200); }

.form-check { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.5rem; }
.form-check input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--blue); }
.form-check label { font-size: 0.88rem; }

.form-actions { margin-top: 1.5rem; display: flex; gap: 0.8rem; }

.current-images { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
.current-image-thumb { position: relative; width: 80px; height: 80px; border-radius: var(--radius-xs); overflow: hidden; }
.current-image-thumb img { width: 100%; height: 100%; object-fit: cover; }
.btn-remove-img {
    position: absolute; top: 2px; right: 2px; width: 20px; height: 20px;
    background: var(--red); color: var(--white); border: none; border-radius: 50%;
    cursor: pointer; font-size: 0.7rem; display: flex; align-items: center; justify-content: center;
}
.primary-badge {
    position: absolute; bottom: 0; left: 0; right: 0;
    background: rgba(0,0,0,0.7); color: var(--white); font-size: 0.6rem;
    text-align: center; padding: 0.1rem;
}

.order-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-bottom: 1.5rem; }
.order-info-card { background: var(--white); border-radius: var(--radius); border: 1px solid var(--gray-200); padding: 1.2rem; }
.order-info-card h3 { font-size: 1rem; margin-bottom: 0.8rem; }
.detail-list { font-size: 0.88rem; }
.detail-list dt { font-weight: 600; color: var(--gray-600); font-size: 0.82rem; margin-top: 0.5rem; }
.detail-list dd { color: var(--gray-800); margin: 0; }
.detail-list a { color: var(--blue); }

.filter-tabs { display: flex; gap: 0.3rem; flex-wrap: wrap; }
.tab {
    padding: 0.4rem 0.8rem; border-radius: var(--radius-xs); font-size: 0.82rem; font-weight: 500;
    color: var(--gray-600); background: var(--gray-100); transition: all var(--transition);
}
.tab:hover { background: var(--gray-200); }
.tab.active { background: var(--blue); color: var(--white); }

.admin-search { display: flex; gap: 0.5rem; }
.admin-search .form-control { width: auto; flex: 1; }
.form-control-sm { padding: 0.4rem 0.6rem; font-size: 0.85rem; }
.inline-form { display: flex; gap: 0.5rem; align-items: center; }
.admin-form-inline { margin-bottom: 1rem; }

/* ============ LOGIN ============ */
.login-page { display: flex; align-items: center; justify-content: center; min-height: 100vh; background: var(--gray-100); }
.login-container { width: 100%; max-width: 380px; padding: 1rem; }
.login-card { background: var(--white); border-radius: var(--radius); padding: 2rem; text-align: center; box-shadow: var(--shadow-md); }
.login-logo { font-size: 1.5rem; margin-bottom: 0.5rem; color: var(--gray-900); }
.login-logo strong { color: var(--cyan); }
.login-card h2 { font-size: 1.1rem; color: var(--gray-600); margin-bottom: 1.5rem; }
.login-form { text-align: left; }
.login-form .btn { margin-top: 0.5rem; }

/* ============ RESPONSIVE (Mobile-first) ============ */
@media (max-width: 1024px) {
    .shop-layout { grid-template-columns: 1fr; }
    .shop-sidebar { display: none; }
    .product-detail { grid-template-columns: 1fr; gap: 1.5rem; }
    .product-gallery { position: static; }
    .cart-layout { grid-template-columns: 1fr; }
    .checkout-layout { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .admin-sidebar { width: 200px; }
    .admin-main { margin-left: 200px; }
    .form-grid { grid-template-columns: 1fr; }
    .order-detail-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .desktop-only { display: none !important; }
    .mobile-only { display: block !important; }
    .mobile-menu-btn { display: block; }
    .mobile-menu-btn span { display: block; }

    .features-grid { grid-template-columns: 1fr 1fr; }
    .hero-content h1 { font-size: 1.6rem; }
    .hero-banner { padding: 2.5rem 0 2rem; }
    .hero-actions { flex-direction: column; }
    .hero-actions .btn { width: 100%; }

    .categories-grid { grid-template-columns: repeat(3, 1fr); }
    .products-grid { grid-template-columns: repeat(2, 1fr); gap: 0.8rem; }

    .cart-item { flex-wrap: wrap; }
    .cart-item-controls { width: 100%; justify-content: space-between; margin-top: 0.5rem; }
    .order-details-grid { grid-template-columns: 1fr; }

    .form-row { grid-template-columns: 1fr; }

    .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }

    .admin-layout { flex-direction: column; }
    .admin-sidebar { width: 100%; height: auto; position: static; flex-direction: row; overflow-x: auto; padding: 0.5rem; }
    .admin-sidebar-header { display: none; }
    .admin-nav { display: flex; gap: 0; padding: 0; overflow-x: auto; }
    .admin-nav-link { white-space: nowrap; font-size: 0.8rem; padding: 0.5rem 0.7rem; }
    .admin-divider { display: none; }
    .admin-main { margin-left: 0; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .admin-table { font-size: 0.8rem; }
    .admin-table th, .admin-table td { padding: 0.4rem 0.5rem; }

    .product-actions { flex-direction: column; }
    .btn-commander { flex: none; }
    .delivery-options { gap: 0.4rem; }
    .delivery-option { padding: 0.6rem 0.8rem; }
}

@media (max-width: 480px) {
    .categories-grid { grid-template-columns: repeat(2, 1fr); }
    .products-grid { grid-template-columns: 1fr 1fr; gap: 0.6rem; }
    .product-card-info { padding: 0.5rem 0.7rem 0.3rem; }
    .product-card-name { font-size: 0.82rem; }
    .price-current { font-size: 0.92rem; }
    .product-card-actions { padding: 0 0.7rem 0.7rem; }
    .btn-add-cart { font-size: 0.78rem; padding: 0.45rem; }

    .confirmation-card { padding: 1.5rem; }
    .section { padding: 1.5rem 0; }
    .section-title { font-size: 1.2rem; }

    .contact-options { grid-template-columns: 1fr; }
    .track-form-row { flex-direction: column; }
    .track-form-row .btn { width: 100%; }
    .variant-row { grid-template-columns: 1fr !important; }
}

/* ============ TRACK ORDER ============ */
.track-form-box {
    background: var(--white); border-radius: var(--radius); padding: 2rem;
    text-align: center; border: 1px solid var(--gray-200); margin-bottom: 1.5rem;
}
.track-form-box h2 { font-size: 1.3rem; margin-bottom: 0.3rem; }
.track-form-box p { color: var(--gray-500); margin-bottom: 1rem; font-size: 0.9rem; }
.track-form-row { display: flex; gap: 0.8rem; max-width: 500px; margin: 0 auto; }
.track-form-row .form-control { flex: 1; }

.track-results h3 { margin-bottom: 1rem; font-size: 1.1rem; }

.track-order-card {
    background: var(--white); border-radius: var(--radius); border: 1px solid var(--gray-200);
    padding: 1.2rem; margin-bottom: 1rem;
}
.track-order-header {
    display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem;
}
.track-order-header strong { font-size: 1rem; }
.track-date { font-size: 0.82rem; color: var(--gray-500); }

.track-timeline {
    display: flex; justify-content: space-between; margin: 1rem 0; position: relative;
}
.track-timeline::before {
    content: ''; position: absolute; top: 8px; left: 8%; right: 8%; height: 3px;
    background: var(--gray-200); z-index: 0;
}
.timeline-step {
    display: flex; flex-direction: column; align-items: center; gap: 0.3rem;
    position: relative; z-index: 1; flex: 1;
}
.timeline-dot {
    width: 16px; height: 16px; border-radius: 50%; background: var(--gray-300);
    border: 3px solid var(--white); transition: all 0.3s;
}
.timeline-step.completed .timeline-dot { background: var(--green); }
.timeline-step.active .timeline-dot { background: var(--blue); box-shadow: 0 0 0 4px var(--blue-light); }
.timeline-step span { font-size: 0.72rem; font-weight: 600; color: var(--gray-500); text-align: center; }
.timeline-step.completed span, .timeline-step.active span { color: var(--gray-800); }
.timeline-cancelled { color: var(--red); font-weight: 600; text-align: center; padding: 0.5rem; }

.track-order-details { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 0.8rem; margin: 1rem 0; }
.track-detail { font-size: 0.88rem; }
.track-detail span { color: var(--gray-500); }
.track-detail strong { color: var(--navy); }

.track-order-items { border-top: 1px solid var(--gray-100); padding-top: 0.8rem; }
.track-item { display: flex; justify-content: space-between; font-size: 0.85rem; padding: 0.2rem 0; color: var(--gray-600); }

/* ============ VARIANT FORM (Admin) ============ */
.variants-header { margin-bottom: 0.8rem; }
.variant-row {
    display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr auto;
    gap: 0.5rem; align-items: end; padding: 0.5rem 0; border-bottom: 1px solid var(--gray-100);
}
.variant-row label { font-size: 0.78rem; }

/* ============ ADMIN UNREAD MESSAGES ============ */
.msg-badge {
    background: var(--red); color: var(--white); font-size: 0.65rem;
    width: 18px; height: 18px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center; margin-left: 0.3rem;
}
.unread-row { background: #fffbeb !important; }
.message-full { padding: 0.8rem; background: var(--gray-50); border-radius: var(--radius-sm); font-size: 0.88rem; }
.message-full hr { border: none; border-top: 1px solid var(--gray-200); margin: 0.5rem 0; }

/* ============ ADMIN SEARCH ============ */
.admin-toolbar { display: flex; gap: 1rem; align-items: end; margin-bottom: 1rem; flex-wrap: wrap; }
.admin-toolbar .form-group { margin-bottom: 0; }
.admin-toolbar select { padding: 0.45rem 0.7rem; border: 1px solid var(--gray-300); border-radius: var(--radius-xs); font-size: 0.85rem; }

/* ============ FLASH TOAST AUTO-DISMISS ============ */
.alert { position: relative; cursor: pointer; }
.alert::after {
    content: '\00d7'; position: absolute; right: 1rem; top: 50%; transform: translateY(-50%);
    font-size: 1.2rem; opacity: 0.5;
}
.alert:hover::after { opacity: 1; }

/* ============ CONTACT FORM ============ */
.contact-form-section { background: var(--white); border-radius: var(--radius); padding: 1.5rem; border: 1px solid var(--gray-200); margin-top: 1.5rem; }
.contact-form-section h2 { font-size: 1.1rem; margin-bottom: 1rem; }
.form-textarea { min-height: 120px; }
