@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');
:root {
  --primary: #09090b;
  --primary-light: #27272a;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-light: #eff6ff;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --text: #3f3f46;
  --text-light: #71717a;
  --text-muted: #a1a1aa;
  --bg: #fafafa;
  --white: #ffffff;
  --card: #ffffff;
  --border: #e4e4e7;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -2px rgba(0,0,0,0.05);
  --shadow-lg: 0 10px 25px -3px rgba(0,0,0,0.05), 0 4px 10px -4px rgba(0,0,0,0.03);
  --shadow-xl: 0 20px 40px -5px rgba(0,0,0,0.06);
  --radius: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --max-w: 1280px;
}
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{font-family:'Inter',system-ui,sans-serif;color:var(--text);background:var(--bg);line-height:1.6;-webkit-font-smoothing:antialiased}
a{text-decoration:none;color:inherit}
img{max-width:100%;height:auto;display:block}
button{cursor:pointer;border:none;font-family:inherit;background:none}
ul{list-style:none}
.container{max-width:var(--max-w);margin:0 auto;padding:0 20px}
/* HEADER */
.header { background: rgba(255, 255, 255, 0.98); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; transition: var(--transition); box-shadow: 0 1px 2px rgba(0,0,0,0.02); }
.header.scrolled { box-shadow: var(--shadow-md); border-bottom-color: transparent; }
.header-inner { display: flex; align-items: center; padding: 16px 20px; max-width: var(--max-w); margin: 0 auto; gap: 24px; }
.mobile-menu-toggle { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; font-size: 1.25rem; color: var(--primary); border-radius: var(--radius); transition: var(--transition); }
.logo { display: flex; align-items: center; gap: 12px; font-size: 1.5rem; font-weight: 800; color: var(--primary); letter-spacing: -0.03em; flex-shrink: 0; max-width: 200px; word-break: break-word; line-height: 1.2; }
.logo-icon { width: 40px; height: 40px; background: linear-gradient(135deg, var(--accent), #818cf8); border-radius: 12px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.1rem; box-shadow: 0 4px 10px rgba(99,102,241,0.3); }
.logo-img { height: 40px; width: auto; }
.main-nav { display: flex; align-items: center; gap: 8px; margin-left: 16px; }
.nav-link { padding: 10px 18px; border-radius: var(--radius-full); font-size: 0.9rem; font-weight: 600; color: var(--text-light); transition: var(--transition); }
.nav-link:hover, .nav-link.active { color: var(--accent); background: var(--accent-light); }
.header-search { flex: 1; max-width: 500px; position: relative; display: flex; align-items: center; margin-left: auto; }
.header-search input { width: 100%; height: 46px; padding: 0 50px 0 20px; border-radius: var(--radius-full); border: 1.5px solid var(--border); background: var(--bg); transition: var(--transition); font-size: 0.95rem; font-weight: 500; }
.header-search input:focus { background: #fff; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1); outline: none; }
.search-submit-btn { position: absolute; right: 5px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border-radius: 50%; background: var(--primary); color: #fff; border: none; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: var(--transition); }
.search-submit-btn:hover { background: var(--accent); transform: translateY(-50%) scale(1.05); }
.search-results { position: absolute; top: calc(100% + 12px); left: 0; right: 0; background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-xl); border: 1px solid var(--border); display: none; max-height: 400px; overflow-y: auto; z-index: 200; }
.search-results.active { display: block; animation: fadeIn 0.2s ease-out; }
.search-result-item { display: flex; align-items: center; gap: 16px; padding: 16px; transition: var(--transition); border-bottom: 1px solid var(--border); }
.search-result-item:hover { background: var(--bg); }
.search-result-item img { width: 56px; height: 56px; object-fit: cover; border-radius: 10px; background: #fff; padding: 4px; border: 1px solid var(--border); }
.search-result-item .sr-info { flex: 1; }
.search-result-item .sr-name { font-weight: 600; font-size: 0.95rem; color: var(--primary); margin-bottom: 4px; }
.search-result-item .sr-price { font-size: 0.9rem; color: var(--text-light); font-weight: 700; }
.header-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.header-btn { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.15rem; color: var(--text); transition: var(--transition); position: relative; border: 1px solid transparent; background: var(--bg); }
.header-btn:hover { color: var(--accent); background: var(--accent-light); border-color: rgba(37, 99, 235, 0.1); transform: translateY(-2px); }
.cart-badge { position: absolute; top: -4px; right: -4px; background: var(--accent); color: #fff; font-size: 0.7rem; width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; border: 2px solid #fff; }
.search-toggle{display:none}
/* User Dropdown */
.user-dropdown{position:relative}
.dropdown-menu{position:absolute;top:calc(100% + 8px);right:0;background:var(--white);border-radius:var(--radius);box-shadow:var(--shadow-lg);border:1px solid var(--border);min-width:220px;opacity:0;visibility:hidden;transform:translateY(8px);transition:var(--transition);z-index:200}
.user-dropdown:hover .dropdown-menu{opacity:1;visibility:visible;transform:translateY(0)}
.dropdown-header{padding:14px 16px;border-bottom:1px solid var(--border)}
.dropdown-header strong{display:block;font-size:.9rem;color:var(--primary)}
.dropdown-header small{color:var(--text-muted);font-size:.8rem}
.dropdown-menu a{display:flex;align-items:center;gap:10px;padding:10px 16px;font-size:.88rem;font-weight:500;color:var(--text);transition:var(--transition)}
.dropdown-menu a:hover{background:var(--accent-light);color:var(--accent)}
.dropdown-menu a i{width:18px;text-align:center;font-size:.9rem}
.dropdown-divider{height:1px;background:var(--border);margin:4px 0}
.text-danger{color:var(--danger)!important}
/* Mobile Nav */
.mobile-nav-overlay{display:none;position:fixed;inset:0;z-index:1000}
.mobile-nav-overlay.active{display:block}
.mobile-nav-overlay::before{content:'';position:absolute;inset:0;background:rgba(15,23,42,.5);backdrop-filter:blur(4px)}
.mobile-nav-panel{position:absolute;left:0;top:0;height:100vh;width:300px;max-width:85vw;background:var(--white);z-index:1;animation:slideRight .3s ease;display:flex;flex-direction:column;overflow:hidden}
.mobile-nav-header{display:flex;align-items:center;justify-content:space-between;padding:16px 20px;border-bottom:1px solid var(--border);gap:8px;min-width:0}
.mobile-nav-header .logo{font-size:1.15rem}
.mobile-nav-close{width:36px;height:36px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:1.1rem;transition:var(--transition)}
.mobile-nav-close:hover{background:rgba(239,68,68,.1);color:var(--danger)}
.mobile-user-info{display:flex;align-items:center;gap:12px;padding:16px 20px;background:var(--bg);border-bottom:1px solid var(--border)}
.mobile-user-info i{font-size:2rem;color:var(--accent)}
.mobile-user-info strong{display:block;font-size:.9rem}
.mobile-user-info small{color:var(--text-muted);font-size:.8rem}
.mobile-nav-links{overflow-y:auto;flex:1;padding-bottom:24px;width:100%}
.mobile-nav-links a{display:flex;align-items:center;gap:14px;padding:14px 20px;font-size:.95rem;font-weight:500;color:var(--text);transition:var(--transition);border-bottom:1px solid rgba(0,0,0,.03)}
.mobile-nav-links a:hover{background:var(--accent-light);color:var(--accent)}
.mobile-nav-links a i{width:20px;text-align:center;color:var(--text-muted)}
.mobile-nav-divider{height:1px;background:var(--border);margin:8px 0}
@keyframes slideRight{from{transform:translateX(-100%)}to{transform:translateX(0)}}
/* HERO SLIDER */
.hero-slider { position: relative; overflow: hidden; background: var(--bg); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.hero-slides { display: flex; transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); will-change: transform; }
.hero-slide { min-width: 100%; position: relative; aspect-ratio: 21/9; display: flex; align-items: center; justify-content: center; background: #fff; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-dots { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 10; background: rgba(0, 0, 0, 0.4); padding: 8px 16px; border-radius: 24px; backdrop-filter: blur(8px); }
.hero-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, 0.4); cursor: pointer; transition: var(--transition); }
.hero-dot.active { background: #fff; transform: scale(1.4); }
.hero-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, 0.9); color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; cursor: pointer; transition: var(--transition); box-shadow: var(--shadow-md); z-index: 10; opacity: 0; backdrop-filter: blur(4px); }
.hero-slider:hover .hero-nav { opacity: 1; }
.hero-nav:hover { background: #fff; color: var(--accent); transform: translateY(-50%) scale(1.05); }
.hero-prev { left: 24px; }
.hero-next { right: 24px; }
/* BUTTONS */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 24px; border-radius: 10px; font-size: 0.95rem; font-weight: 600; transition: var(--transition); border: 1.5px solid transparent; cursor: pointer; text-align: center; line-height: 1.4; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-light); transform: translateY(-2px); box-shadow: 0 10px 20px -10px rgba(0,0,0,0.5); }
.btn-outline { background: transparent; border-color: var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); background: rgba(0,0,0,0.02); }
.btn-dark { background: var(--accent); color: #fff; }
.btn-dark:hover { background: var(--accent-hover); transform: translateY(-2px); box-shadow: 0 10px 20px -10px rgba(37, 99, 235, 0.5); }
.btn-success { background: var(--success); color: #fff; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-white { background: #fff; color: var(--primary); font-weight: 700; box-shadow: var(--shadow-sm); }
.btn-white:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-block { width: 100%; }
.btn-lg { padding: 16px 32px; font-size: 1rem; border-radius: 12px; }
.btn-sm { padding: 8px 16px; font-size: 0.85rem; }
/* SECTION */
.section { padding: 80px 0; }
.section-header { text-align: center; margin-bottom: 48px; }
.section-badge { display: inline-flex; align-items: center; gap: 6px; background: var(--accent-light); color: var(--accent); padding: 6px 16px; border-radius: var(--radius-full); font-size: 0.8rem; font-weight: 700; margin-bottom: 16px; border: 1px solid rgba(37, 99, 235, 0.1); text-transform: uppercase; letter-spacing: 1px; }
.section-title { font-size: 2.25rem; font-weight: 800; color: var(--primary); letter-spacing: -0.02em; margin-bottom: 12px; }
.section-subtitle { font-size: 1.1rem; color: var(--text-light); max-width: 600px; margin: 0 auto; line-height: 1.6; }
/* CATEGORIES STRIP */
.cat-strip { padding: 32px 0; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.cat-strip::-webkit-scrollbar { display: none; }
.cat-grid { display: flex; gap: 20px; padding: 4px; }
.cat-card { flex-shrink: 0; text-align: center; padding: 24px 32px; background: var(--white); border-radius: var(--radius-lg); border: 1px solid var(--border); transition: var(--transition); cursor: pointer; min-width: 140px; box-shadow: var(--shadow-sm); }
.cat-card:hover { border-color: var(--accent); transform: translateY(-4px); box-shadow: var(--shadow-md); }
.cat-card.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.cat-card .cat-icon { font-size: 2.25rem; margin-bottom: 12px; transition: transform 0.3s ease; }
.cat-card:hover .cat-icon { transform: scale(1.1); }
.cat-card .cat-name { font-size: 0.9rem; font-weight: 700; }
/* PRODUCT GRID */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 24px; }
.product-card { background: var(--card); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); transition: var(--transition); display: flex; flex-direction: column; position: relative; }
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-xl); border-color: transparent; }
.product-img-wrap { position: relative; aspect-ratio: 1; overflow: hidden; background: #fff; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: center; padding: 0; }
.product-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
.product-card:hover .product-img-wrap img { transform: scale(1.08); }
.product-badge { position: absolute; top: 12px; left: 12px; padding: 6px 12px; border-radius: var(--radius-full); font-size: 0.72rem; font-weight: 700; z-index: 2; color: #fff; text-transform: uppercase; letter-spacing: 0.5px; }
.badge-sale { background: var(--danger); }
.badge-new { background: var(--accent); }
.product-discount { position: absolute; top: 12px; right: 12px; background: rgba(239, 68, 68, 0.1); color: var(--danger); padding: 4px 10px; border-radius: var(--radius-full); font-size: 0.75rem; font-weight: 800; z-index: 2; border: 1px solid rgba(239, 68, 68, 0.2); }
.product-info { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.product-category { font-size: 0.75rem; font-weight: 600; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 8px; }
.product-name { font-size: 1.05rem; font-weight: 700; color: var(--primary); margin-bottom: 8px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; transition: color 0.2s ease; }
.product-card:hover .product-name { color: var(--accent); }
.product-price-row { display: flex; align-items: baseline; gap: 8px; margin-bottom: 16px; margin-top: auto; }
.product-price { font-size: 1.25rem; font-weight: 800; color: var(--primary); }
.product-og-price { font-size: 0.9rem; color: var(--text-muted); text-decoration: line-through; font-weight: 500; }
.product-actions { display: flex; gap: 8px; }
.product-actions .btn { flex: 1; padding: 12px; font-size: 0.85rem; }
/* CART DRAWER */
.cart-drawer{display:none;position:fixed;inset:0;z-index:1000}
.cart-drawer.open{display:block}
.cart-overlay{position:absolute;inset:0;background:rgba(15,23,42,.5);backdrop-filter:blur(4px);animation:fadeIn .3s}
.cart-panel{position:absolute;right:0;top:0;bottom:0;width:90%;max-width:420px;background:var(--white);display:flex;flex-direction:column;animation:slideLeft .3s ease;box-shadow:-10px 0 40px rgba(0,0,0,.15)}
.cart-header{display:flex;align-items:center;justify-content:space-between;padding:20px 24px;border-bottom:1px solid var(--border)}
.cart-header h3{font-size:1.2rem;font-weight:800;color:var(--primary)}
.cart-close{width:38px;height:38px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:1.1rem;transition:var(--transition)}
.cart-close:hover{background:rgba(239,68,68,.1);color:var(--danger)}
.cart-items{flex:1;overflow-y:auto;padding:16px 24px}
.cart-empty{text-align:center;padding:60px 20px;color:var(--text-muted)}
.cart-empty i{font-size:3rem;margin-bottom:16px;opacity:.4}
.cart-empty p{margin-bottom:20px;font-weight:600}
.cart-item{display:flex;align-items:center;gap:14px;padding:14px;border-radius:var(--radius);background:var(--bg);margin-bottom:12px;position:relative;transition:var(--transition)}
.cart-item:hover{background:var(--white);box-shadow:var(--shadow-sm)}
.cart-item-img{width:60px;height:60px;border-radius:10px;object-fit:contain;background:#fff;padding:4px;border:1px solid var(--border);flex-shrink:0}
.cart-item-info{flex:1;min-width:0}
.cart-item-name{font-size:.88rem;font-weight:700;color:var(--primary);margin-bottom:4px;word-wrap:break-word}
.cart-item-price{font-size:.88rem;color:var(--accent);font-weight:800;margin-bottom:8px}
.cart-qty{display:flex;align-items:center;border:1px solid var(--border);border-radius:8px;overflow:hidden;width:fit-content;background:var(--white)}
.cart-qty button{width:30px;height:30px;font-size:1rem;display:flex;align-items:center;justify-content:center;transition:var(--transition);color:var(--text)}
.cart-qty button:hover{background:var(--accent);color:#fff}
.cart-qty span{padding:0 10px;font-weight:700;font-size:.85rem;color:var(--primary)}
.cart-item-remove{position:absolute;top:-4px;right:-4px;width:24px;height:24px;border-radius:50%;background:#fee2e2;color:var(--danger);font-size:.7rem;display:flex;align-items:center;justify-content:center;transition:var(--transition)}
.cart-item-remove:hover{background:var(--danger);color:#fff;transform:scale(1.1)}
.cart-footer{padding:20px 24px;border-top:1px solid var(--border);display:flex;flex-direction:column;gap:12px}
.cart-total{display:flex;justify-content:space-between;font-size:1rem;font-weight:600;color:var(--text-light)}
.cart-total-price{font-size:1.4rem;color:var(--primary);font-weight:800}
@keyframes fadeIn{from{opacity:0}to{opacity:1}}
@keyframes slideLeft{from{transform:translateX(100%)}to{transform:translateX(0)}}
/* PRODUCT DETAIL */
.product-detail{padding:30px 0 60px}
.breadcrumb{display:flex;align-items:center;gap:8px;padding:16px 0;font-size:.85rem;color:var(--text-muted);flex-wrap:wrap}
.breadcrumb a{color:var(--text-light);font-weight:500;transition:var(--transition)}
.breadcrumb a:hover{color:var(--accent)}
.breadcrumb .sep{color:var(--border)}
.detail-grid{display:grid;grid-template-columns:1fr;gap:40px}
.detail-gallery{border-radius:var(--radius-lg);overflow:hidden;background:var(--white);border:1px solid var(--border)}
.detail-main-img{width:100%;aspect-ratio:1;object-fit:contain;padding:32px;background:#fff}
.detail-thumbs{display:flex;gap:8px;padding:12px;overflow-x:auto}
.detail-thumb{width:64px;height:64px;border-radius:10px;object-fit:contain;background:#fff;padding:6px;cursor:pointer;border:2px solid var(--border);transition:var(--transition);opacity:.6}
.detail-thumb:hover,.detail-thumb.active{opacity:1;border-color:var(--accent)}
.detail-info{padding:8px 0}
.detail-badge-row{display:flex;gap:8px;margin-bottom:16px;flex-wrap:wrap}
.detail-badge{padding:6px 14px;border-radius:var(--radius-full);font-size:.78rem;font-weight:700}
.detail-badge.b-accent{background:var(--accent-light);color:var(--accent)}
.detail-badge.b-green{background:rgba(16,185,129,.1);color:var(--success)}
.detail-badge.b-red{background:rgba(239,68,68,.1);color:var(--danger)}
.detail-name{font-size:1.8rem;font-weight:800;color:var(--primary);margin-bottom:10px;line-height:1.2}
.detail-rating{display:flex;align-items:center;gap:8px;margin-bottom:16px;font-size:.95rem;font-weight:600}
.detail-rating .stars{color:#f59e0b;font-size:1.1rem}
.detail-price-box{background:var(--bg);padding:20px;border-radius:var(--radius);margin-bottom:20px;display:flex;align-items:center;gap:16px;flex-wrap:wrap;border:1px solid var(--border)}
.detail-price{font-size:2.2rem;font-weight:800;color:var(--primary)}
.detail-og-price{font-size:1.1rem;color:var(--text-muted);text-decoration:line-through}
.detail-save{background:#fef2f2;color:var(--danger);padding:6px 14px;border-radius:var(--radius-full);font-size:.82rem;font-weight:800}
.detail-desc{font-size:1rem;color:var(--text-light);line-height:1.8;margin-bottom:24px}
.detail-tags{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:32px}
.detail-tag{background:var(--white);border:1px solid var(--border);color:var(--text-light);padding:6px 16px;border-radius:var(--radius-full);font-size:.8rem;font-weight:600;box-shadow:var(--shadow-sm)}
.qty-row{display:flex;align-items:center;gap:16px;margin-bottom:24px}
.qty-label{font-size:.95rem;font-weight:700;color:var(--primary)}
.qty-control{display:flex;align-items:center;border:2px solid var(--border);border-radius:12px;overflow:hidden;background:var(--white)}
.qty-btn{width:44px;height:44px;display:flex;align-items:center;justify-content:center;font-size:1.25rem;color:var(--primary);transition:var(--transition);background:var(--bg);cursor:pointer}
.qty-btn:hover{background:var(--border);color:var(--primary)}
.qty-val{width:50px;height:44px;text-align:center;border:none;font-size:1.05rem;font-weight:700;color:var(--primary);border-left:1px solid var(--border);border-right:1px solid var(--border);background:transparent}
.detail-actions{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-bottom:24px}
.detail-actions .btn{padding:16px;font-size:1rem;border-radius:12px}
/* FOOTER */
.footer{background:var(--primary);color:#fff;padding:64px 0 0}
.footer-top{display:grid;grid-template-columns:1fr;gap:40px;padding-bottom:40px;border-bottom:1px solid rgba(255,255,255,.1)}
.footer-brand{max-width:320px}
.footer-logo{display:flex;align-items:center;gap:10px;font-size:1.4rem;font-weight:800;margin-bottom:16px;color:#f8fafc}
.footer-logo i{color:var(--accent)}
.footer-desc{font-size:.9rem;color:#94a3b8;line-height:1.7;margin-bottom:20px}
.footer-social{display:flex;gap:10px}
.footer-social a{width:38px;height:38px;border-radius:50%;background:rgba(255,255,255,.06);display:flex;align-items:center;justify-content:center;font-size:1rem;color:#94a3b8;transition:var(--transition);border:1px solid rgba(255,255,255,.08)}
.footer-social a:hover{background:var(--accent);color:#fff;border-color:var(--accent);transform:translateY(-3px)}
.footer-title{font-size:.95rem;font-weight:700;color:#f8fafc;text-transform:uppercase;letter-spacing:.5px;margin-bottom:16px}
.footer-links{display:flex;flex-direction:column;gap:10px}
.footer-links a{font-size:.9rem;color:#94a3b8;transition:var(--transition);font-weight:500}
.footer-links a:hover{color:#818cf8;transform:translateX(4px)}
.footer-contact li{display:flex;align-items:flex-start;gap:10px;font-size:.9rem;color:#94a3b8;margin-bottom:12px}
.footer-contact i{color:var(--accent);margin-top:3px}
.footer-contact a{color:#94a3b8;transition:var(--transition)}
.footer-contact a:hover{color:#818cf8}
.footer-bottom{padding:24px 0;display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;font-size:.85rem;color:#64748b}
.footer-bottom-links{display:flex;gap:16px}
.footer-bottom-links a{color:#64748b;transition:var(--transition)}
.footer-bottom-links a:hover{color:#f8fafc}
/* BACK TO TOP */
.back-to-top{position:fixed;bottom:30px;right:30px;width:46px;height:46px;border-radius:50%;background:var(--accent);color:#fff;display:flex;align-items:center;justify-content:center;font-size:1rem;box-shadow:0 4px 20px rgba(99,102,241,.4);transition:var(--transition);opacity:0;visibility:hidden;transform:translateY(10px);z-index:99}
.back-to-top.visible{opacity:1;visibility:visible;transform:translateY(0)}
.back-to-top:hover{transform:translateY(-4px);box-shadow:0 8px 30px rgba(99,102,241,.5)}
/* TOAST */
.toast-container{position:fixed;top:auto;bottom:80px;right:16px;left:16px;z-index:9999;display:flex;flex-direction:column;gap:8px;align-items:center}
.toast{background:var(--primary);color:#fff;padding:12px 20px;border-radius:var(--radius);font-size:.88rem;font-weight:600;box-shadow:var(--shadow-lg);animation:toastIn .3s ease;display:flex;align-items:center;gap:10px;min-width:250px;max-width:340px;width:100%}
.toast.success{border-left:4px solid var(--success)}
.toast.error{border-left:4px solid var(--danger)}
@keyframes toastIn{from{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}
@media(min-width:600px){
  .toast-container{bottom:auto;top:20px;right:20px;left:auto;align-items:flex-end}
  .toast{max-width:360px;width:auto}
  @keyframes toastIn{from{opacity:0;transform:translateX(40px)}to{opacity:1;transform:translateX(0)}}
}
/* FORMS */
.form-group{margin-bottom:20px}
.form-label{display:block;font-size:.88rem;font-weight:700;margin-bottom:8px;color:var(--text)}
.form-input,.form-select,.form-textarea{width:100%;padding:12px 16px;border:1.5px solid var(--border);border-radius:var(--radius);font-size:.92rem;font-family:inherit;transition:var(--transition);outline:none;background:var(--white);color:var(--primary)}
.form-input:focus,.form-select:focus,.form-textarea:focus{border-color:var(--accent);box-shadow:0 0 0 3px rgba(99,102,241,.1)}
.form-textarea{resize:vertical;min-height:100px}
.form-row{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.form-hint{font-size:.78rem;color:var(--text-muted);margin-top:4px}
.form-error{font-size:.78rem;color:var(--danger);margin-top:4px}
/* AUTH PAGES */
.auth-wrapper{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:40px 20px;background:var(--bg)}
.auth-card{background:var(--white);border-radius:var(--radius-lg);padding:40px;max-width:440px;width:100%;box-shadow:var(--shadow-lg);border:1px solid var(--border)}
.auth-logo{text-align:center;margin-bottom:32px}
.auth-logo i{font-size:2.5rem;color:var(--accent)}
.auth-logo h1{font-size:1.6rem;font-weight:800;color:var(--primary);margin-top:8px}
.auth-logo p{color:var(--text-muted);font-size:.92rem}
.auth-footer{text-align:center;margin-top:24px;font-size:.88rem;color:var(--text-muted)}
.auth-footer a{color:var(--accent);font-weight:600}
/* CHECKOUT */
.checkout-grid{display:grid;grid-template-columns:1fr;gap:32px}
.checkout-card{background:var(--white);border-radius:var(--radius-lg);padding:28px;border:1px solid var(--border)}
.checkout-card h3{font-size:1.15rem;font-weight:800;color:var(--primary);margin-bottom:20px;display:flex;align-items:center;gap:10px}
.checkout-card h3 i{color:var(--accent)}
.order-summary-item{display:flex;align-items:center;gap:14px;padding:12px 0;border-bottom:1px solid var(--border)}
.order-summary-item img{width:56px;height:56px;border-radius:10px;object-fit:cover}
.order-summary-item .osi-info{flex:1}
.order-summary-item .osi-name{font-weight:600;font-size:.9rem;color:var(--primary)}
.order-summary-item .osi-qty{font-size:.8rem;color:var(--text-muted)}
.order-summary-item .osi-price{font-weight:800;color:var(--primary)}
.summary-row{display:flex;justify-content:space-between;padding:10px 0;font-size:.92rem}
.summary-row.total{border-top:2px solid var(--border);margin-top:8px;padding-top:16px;font-size:1.15rem;font-weight:800;color:var(--primary)}
.payment-option{display:flex;align-items:center;gap:14px;padding:16px;border:2px solid var(--border);border-radius:var(--radius);cursor:pointer;transition:var(--transition);margin-bottom:12px}
.payment-option:hover,.payment-option.selected{border-color:var(--accent);background:var(--accent-light)}
.payment-option input[type=radio]{accent-color:var(--accent);width:18px;height:18px}
.payment-option .po-info{flex:1}
.payment-option .po-title{font-weight:700;color:var(--primary);font-size:.95rem}
.payment-option .po-desc{font-size:.82rem;color:var(--text-muted)}
.qr-section{text-align:center;padding:20px;background:var(--bg);border-radius:var(--radius);margin-top:16px}
.qr-section img{max-width:200px;margin:0 auto 16px;border-radius:var(--radius)}
.upload-area{border:2px dashed var(--border);border-radius:var(--radius);padding:32px;text-align:center;cursor:pointer;transition:var(--transition);margin-top:16px}
.upload-area:hover{border-color:var(--accent);background:var(--accent-light)}
.upload-area i{font-size:2rem;color:var(--text-muted);margin-bottom:8px}
/* ORDER CONFIRMATION */
.confirmation-card{max-width:600px;margin:60px auto;text-align:center;background:var(--white);padding:48px;border-radius:var(--radius-lg);border:1px solid var(--border);box-shadow:var(--shadow-lg)}
.confirmation-icon{width:80px;height:80px;border-radius:50%;background:rgba(16,185,129,.1);color:var(--success);font-size:2.5rem;display:flex;align-items:center;justify-content:center;margin:0 auto 24px}
/* PAGINATION */
.pagination{display:flex;justify-content:center;gap:6px;padding:32px 0}
.page-btn{width:40px;height:40px;border-radius:var(--radius);display:flex;align-items:center;justify-content:center;font-size:.88rem;font-weight:600;transition:var(--transition);border:1px solid var(--border);background:var(--white);color:var(--text)}
.page-btn:hover{border-color:var(--accent);color:var(--accent)}
.page-btn.active{background:var(--accent);color:#fff;border-color:var(--accent)}
/* EMPTY STATE */
.empty-state{text-align:center;padding:80px 20px;background:var(--white);border-radius:var(--radius-lg);border:2px dashed var(--border)}
.empty-state i{font-size:3rem;color:var(--text-muted);margin-bottom:16px;opacity:.5}
.empty-state h3{font-size:1.3rem;font-weight:800;color:var(--primary);margin-bottom:8px}
.empty-state p{color:var(--text-muted);margin-bottom:20px}
/* OFFER BANNER */
.offer-banner{background:linear-gradient(135deg,var(--accent),#818cf8);border-radius:var(--radius-lg);padding:48px;text-align:center;color:#fff;position:relative;overflow:hidden}
.offer-banner::before{content:'';position:absolute;top:-50%;right:-20%;width:400px;height:400px;background:radial-gradient(circle,rgba(255,255,255,.1),transparent 70%);border-radius:50%}
.offer-banner h2{font-size:2rem;font-weight:900;margin-bottom:12px;position:relative}
.offer-banner p{font-size:1.05rem;opacity:.9;margin-bottom:24px;position:relative}
/* NEWSLETTER */
.newsletter{background:var(--primary);padding:60px 0}
.newsletter-inner{text-align:center;max-width:540px;margin:0 auto}
.newsletter h3{font-size:1.6rem;font-weight:800;color:#fff;margin-bottom:8px}
.newsletter p{color:#94a3b8;margin-bottom:24px}
.newsletter-form{display:flex;gap:8px}
.newsletter-form input{flex:1;padding:14px 20px;border-radius:var(--radius-full);border:none;font-size:.95rem;outline:none}
.newsletter-form button{padding:14px 28px;border-radius:var(--radius-full);background:var(--accent);color:#fff;font-weight:700;font-size:.92rem;transition:var(--transition)}
.newsletter-form button:hover{background:var(--accent-hover);transform:translateY(-2px)}
/* REVIEWS */
.review-card{background:var(--white);border-radius:var(--radius);padding:24px;border:1px solid var(--border)}
.review-header{display:flex;align-items:center;gap:12px;margin-bottom:12px}
.review-avatar{width:44px;height:44px;border-radius:50%;background:var(--accent-light);color:var(--accent);display:flex;align-items:center;justify-content:center;font-weight:800;font-size:1.1rem}
.review-meta .review-name{font-weight:700;font-size:.92rem;color:var(--primary)}
.review-meta .review-date{font-size:.78rem;color:var(--text-muted)}
.review-stars{color:#f59e0b;margin-bottom:8px}
.review-text{font-size:.92rem;color:var(--text-light);line-height:1.6}
/* ─── RESPONSIVE ─── */

/* Extra small phones (< 480px) */
@media(max-width:479px){
  .container{padding:0 12px}
  .header-inner{padding:10px 12px;gap:6px}
  .logo-img{max-height:32px}
  .header-btn{width:34px;height:34px;font-size:.95rem}
  .mobile-menu-toggle{width:34px;height:34px}
  .hero-slide{aspect-ratio:4/3}
  .hero-nav{display:none}
  .hero-dots{padding:4px 8px}
  .hero-dot{width:6px;height:6px}
  .section{padding:28px 0}
  .section-title{font-size:1.25rem}
  .section-title::after{width:40px;height:3px}
  .product-grid{grid-template-columns:repeat(2,1fr);gap:8px}
  .product-card{border-radius:10px}
  .product-img-wrap{height:160px}
  .product-img-wrap img{padding:10px}
  .product-info{padding:10px}
  .product-name{font-size:.78rem;line-height:1.3}
  .product-price{font-size:.9rem}
  .product-original{font-size:.75rem}
  .product-card .btn{padding:8px 10px;font-size:.75rem;gap:4px}
  .category-grid{grid-template-columns:repeat(2,1fr);gap:8px}
  .cat-card{padding:20px 12px}
  .cat-card h3{font-size:.9rem}
  .checkout-card{padding:16px}
  .form-row{grid-template-columns:1fr}
  .checkout-grid{grid-template-columns:1fr}
  .summary-row{font-size:.88rem}
  .auth-card{padding:24px 16px;border-radius:16px}
  .auth-logo h1{font-size:1.4rem}
  .detail-grid{grid-template-columns:1fr;gap:20px}
  .detail-name{font-size:1.2rem}
  .detail-price{font-size:1.4rem}
  .detail-actions{flex-direction:column;gap:10px}
  .detail-actions .btn{width:100%}
  .footer-top{gap:24px}
  .footer-col h4{font-size:.9rem}
  .newsletter-form{flex-direction:column}
  .newsletter-form input,.newsletter-form button{border-radius:var(--radius)!important}
  .offer-banner{padding:24px 16px;text-align:center}
  .offer-banner h2{font-size:1.2rem}
  .offer-banner p{font-size:.88rem}
  .offer-banner .btn{width:100%}
  .btn-lg{padding:14px 20px;font-size:.9rem}
  .breadcrumb{font-size:.8rem}
  .page-hero{padding:40px 0 24px}
  .page-hero h1{font-size:1.5rem}
  .cart-panel{width:100%;max-width:100%}
  .cart-item-img{width:56px;height:56px}
  .cart-item-name{font-size:.82rem}
  .admin-grid{grid-template-columns:1fr!important}
}

/* Tablets and phones (< 768px) */
@media(max-width:768px){
  /* Header */
  .mobile-menu-toggle{display:flex}
  .main-nav{display:none}
  .header-search{display:none;position:absolute;top:100%;left:0;right:0;margin:0;max-width:none;padding:12px 16px;background:var(--white);border-top:1px solid var(--border);box-shadow:var(--shadow-md);z-index:90}
  .search-toggle{display:flex}
  .header-inner{padding:10px 16px;gap:8px}
  .logo-img{max-height:36px}
  .header-btn{width:38px;height:38px;font-size:1rem}
  .mobile-menu-toggle{width:38px;height:38px}
  .cart-badge{width:16px;height:16px;font-size:.6rem}

  /* Hero */
  .hero-slide{aspect-ratio:16/10}
  .hero-nav{opacity:1;width:32px;height:32px;font-size:.85rem}
  .hero-prev{left:8px}
  .hero-next{right:8px}

  /* Section */
  .section{padding:36px 0}
  .section-title{font-size:1.4rem}
  .section-subtitle{font-size:.9rem}

  /* Products */
  .product-grid{grid-template-columns:repeat(2,1fr);gap:10px}
  .product-img-wrap img{padding:12px}
  .product-info{padding:12px}
  .product-name{font-size:.82rem}
  .product-price{font-size:.98rem}

  /* Categories */
  .category-grid{grid-template-columns:repeat(2,1fr);gap:12px}

  /* Detail page */
  .detail-grid{grid-template-columns:1fr;gap:24px}
  .detail-name{font-size:1.4rem}
  .detail-price{font-size:1.6rem}
  .detail-actions{flex-direction:column}
  .detail-actions .btn{min-width:auto;width:100%}
  .detail-tabs{flex-wrap:wrap;gap:4px}
  .detail-tab{padding:8px 16px;font-size:.82rem}

  /* Checkout */
  .checkout-grid{grid-template-columns:1fr;gap:16px}
  .checkout-card{padding:16px}
  .form-row{grid-template-columns:1fr}
  .payment-option{padding:14px}
  .po-title{font-size:.9rem}
  .po-desc{font-size:.8rem}
  .qr-section img{max-width:180px}
  .order-summary-item{gap:10px}
  .osi-name{font-size:.85rem}
  .osi-price{font-size:.9rem}

  /* Auth pages */
  .auth-wrapper{padding:16px}
  .auth-card{padding:28px 20px}
  .auth-logo h1{font-size:1.5rem}

  /* Footer */
  .footer-top{gap:28px}
  .footer-bottom{flex-direction:column;text-align:center;gap:12px}
  .newsletter-form{flex-direction:column}
  .newsletter-form input,.newsletter-form button{border-radius:var(--radius)!important;width:100%}
  .offer-banner{padding:32px 20px;text-align:center}
  .offer-banner h2{font-size:1.4rem}
  .offer-banner .btn{display:inline-flex;margin-top:4px}

  /* Cart drawer */
  .cart-panel{width:100%;max-width:100%;border-radius:0}

  /* Tables → cards on mobile */
  .table-responsive{overflow-x:auto;-webkit-overflow-scrolling:touch}
  .table-responsive table{min-width:540px}

  /* Profile / orders */
  .profile-grid{grid-template-columns:1fr!important;gap:16px}
  .orders-header{flex-direction:column;align-items:flex-start;gap:8px}

  /* Invoice actions */
  .invoice-actions{flex-direction:column;gap:8px}
  .invoice-actions .btn{width:100%}
}

/* Tablets (768px - 1024px) */
@media(min-width:768px){
  .footer-top{grid-template-columns:1.5fr 1fr 1fr 1fr}
}
@media(min-width:768px) and (max-width:1023px){
  .product-grid{grid-template-columns:repeat(3,1fr);gap:16px}
  .hero-slide{aspect-ratio:21/9}
  .checkout-grid{grid-template-columns:1fr}
}

/* Desktop */
@media(min-width:1024px){
  .product-grid{grid-template-columns:repeat(3,1fr);gap:28px}
  .detail-grid{grid-template-columns:1.1fr 1fr;gap:48px}
  .checkout-grid{grid-template-columns:1.2fr .8fr}
  .hero-slide{aspect-ratio:24/9}
  .hero-slider:hover .hero-nav{opacity:1}
  .hero-nav{opacity:0}
}
@media(min-width:1280px){
  .product-grid{grid-template-columns:repeat(4,1fr)}
}

/* FLOATING CART BUTTON */
.floating-cart-btn{position:fixed;bottom:24px;right:24px;width:60px;height:60px;border-radius:50%;background:var(--accent);color:#fff;display:flex;align-items:center;justify-content:center;font-size:1.5rem;box-shadow:var(--shadow-xl);z-index:999;cursor:pointer;transition:var(--transition);border:none}
.floating-cart-btn:hover{transform:translateY(-4px);background:var(--accent-hover)}
.floating-cart-btn .cart-badge{width:22px;height:22px;font-size:.75rem;top:-4px;right:-4px}
@media(max-width:600px){
    .floating-cart-btn{bottom:16px;right:16px;width:54px;height:54px;font-size:1.3rem}
}

/* CART TOAST POPUP */
.cart-toast-popup{position:fixed;bottom:90px;left:50%;transform:translateX(-50%) translateY(0);z-index:10000;transition:opacity .4s,transform .4s;max-width:420px;width:calc(100% - 32px)}
.ctp-inner{background:#fff;border-radius:16px;box-shadow:0 8px 40px rgba(0,0,0,.18);border:1px solid var(--border);display:flex;align-items:center;gap:12px;padding:12px 14px;position:relative}
.ctp-img-wrap{position:relative;flex-shrink:0}
.ctp-img-wrap img{width:56px;height:56px;border-radius:10px;object-fit:cover;border:1px solid var(--border)}
.ctp-check{position:absolute;top:-6px;right:-6px;width:20px;height:20px;border-radius:50%;background:var(--success);color:#fff;font-size:.65rem;display:flex;align-items:center;justify-content:center}
.ctp-info{flex:1;min-width:0}
.ctp-label{font-size:.75rem;font-weight:700;color:var(--success);margin-bottom:2px}
.ctp-name{font-size:.88rem;font-weight:700;color:var(--primary);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ctp-price{font-size:.82rem;color:var(--accent);font-weight:700;margin-top:2px}
.ctp-view-btn{flex-shrink:0;display:inline-flex;align-items:center;gap:6px;padding:8px 14px;border-radius:var(--radius);background:var(--accent);color:#fff;border:none;font-size:.8rem;font-weight:700;cursor:pointer;white-space:nowrap}
.ctp-view-btn:hover{background:var(--accent-hover)}
.ctp-close{position:absolute;top:-8px;right:-8px;width:22px;height:22px;border-radius:50%;background:#1e293b;color:#fff;border:none;font-size:.65rem;display:flex;align-items:center;justify-content:center;cursor:pointer}
@media(max-width:480px){
    .cart-toast-popup{bottom:80px;width:calc(100% - 24px)}
    .ctp-inner{padding:10px 12px;gap:10px}
    .ctp-img-wrap img{width:48px;height:48px}
    .ctp-name{font-size:.82rem}
    .ctp-view-btn{padding:7px 10px;font-size:.76rem}
}


/* ─── MOBILE UTILITY ─── */
@media(max-width:768px){
  /* Text wrapping fallback */
  *{word-wrap:break-word}
  
  /* Text size safety */
  h1{font-size:clamp(1.4rem,5vw,2rem)}
  h2{font-size:clamp(1.2rem,4.5vw,1.8rem)}
  h3{font-size:clamp(1rem,4vw,1.4rem)}
  p{font-size:.9rem}

  /* Prevent horizontal overflow */
  body{overflow-x:hidden}
  img{max-width:100%}

  /* Better tap targets */
  a,button,.btn{min-height:40px}
  .btn-sm{min-height:36px;padding:6px 14px}

  /* Spacing */
  .checkout-card + .checkout-card{margin-top:16px}

  /* Summary row readable on small screens */
  .summary-row{padding:7px 0;font-size:.9rem}
  .summary-row.total{font-size:1rem}

  /* Breadcrumb */
  .breadcrumb{overflow-x:auto;white-space:nowrap;padding-bottom:4px}

  /* Empty state */
  .empty-state{padding:40px 20px}
  .empty-state i{font-size:3rem}
  .empty-state h3{font-size:1.2rem}

  /* Order cards on mobile */
  .order-card-header{flex-direction:column;gap:8px}
  .order-card-meta{text-align:left!important}
}

