* { box-sizing: border-box; font-family: var(--font-primary), system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif; }

html, body {
  overflow-x: hidden;
  max-width: 100vw;
}

:root {
  --brand-primary: #007ABA;
  --brand-primary-700: #005a8a;
  --brand-accent: #FF6B35;
  --brand-danger: #d32f2f;
  --brand-ink: #111111;
  --brand-bg: #f8fafb;
  --brand-border: #e8e8e8;
  --brand-muted: #666666;
  --brand-light: #f1f5f9;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
  --grid-cols: 3;
  
  /* Font Variables */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
  --font-display: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
  --font-mono: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
}
body { margin: 0; padding: 0; background: var(--brand-bg); color: var(--brand-ink); line-height: 1.6; font-family: var(--font-primary); font-weight: 400; }

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--brand-ink);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 4vw, 2.5rem); font-weight: 700; letter-spacing: -0.01em; }
h3 { font-size: clamp(1.25rem, 3vw, 1.875rem); font-weight: 600; }
h4 { font-size: clamp(1.125rem, 2.5vw, 1.5rem); font-weight: 600; }
h5 { font-size: clamp(1rem, 2vw, 1.25rem); font-weight: 600; }
h6 { font-size: clamp(0.875rem, 1.5vw, 1rem); font-weight: 600; }

p { margin: 0 0 1rem 0; font-size: 16px; line-height: 1.7; }
p:last-child { margin-bottom: 0; }

/* Text Elements */
.text-xs { font-size: 12px; line-height: 1.4; }
.text-sm { font-size: 14px; line-height: 1.5; }
.text-base { font-size: 16px; line-height: 1.6; }
.text-lg { font-size: 18px; line-height: 1.6; }
.text-xl { font-size: 20px; line-height: 1.6; }
.text-2xl { font-size: 24px; line-height: 1.4; }
.text-3xl { font-size: 30px; line-height: 1.3; }
.text-4xl { font-size: 36px; line-height: 1.2; }

.font-light { font-weight: 300; }
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }
.font-black { font-weight: 900; }

.font-display { font-family: var(--font-display); }
.font-mono { font-family: var(--font-mono); }

.text-muted { color: var(--brand-muted); }
.text-primary { color: var(--brand-primary); }
.text-accent { color: var(--brand-accent); }
.text-danger { color: var(--brand-danger); }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Modern Topbar (Back Navigation) */
.topbar { background: linear-gradient(135deg, var(--brand-ink) 0%, #1e293b 100%); color: #fff; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; gap: 16px; }
.topbar-left { font-family: var(--font-display); font-size: 18px; font-weight: 700; letter-spacing: -0.01em; display: flex; align-items: center; gap: 10px; }
.topbar-left::before { content: ''; display: inline-block; width: 4px; height: 20px; background: var(--brand-primary); border-radius: 2px; }
.topbar-right { display: flex; align-items: center; }
.topbar-right a, .back-link { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.15); border-radius: var(--radius-lg); color: #fff; text-decoration: none; font-family: var(--font-primary); font-size: 14px; font-weight: 600; transition: all 0.2s ease; }
.topbar-right a:hover, .back-link:hover { background: rgba(255,255,255,0.18); border-color: rgba(255,255,255,0.25); transform: translateX(-2px); }
.topbar-right a::before, .back-link::before { content: '←'; font-size: 16px; }

/* Announcement Bar */
.announcement-bar { background: linear-gradient(135deg, var(--brand-ink) 0%, #1e293b 100%); color: #e2e8f0; font-size: 13px; overflow: hidden; }
.announcement-inner { padding: 10px 0; }
.announcement-scroll { display: flex; align-items: center; justify-content: center; gap: 24px; flex-wrap: wrap; }
.announcement-item { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.announcement-item strong { color: #fff; }
.announcement-divider { color: #475569; }

@media (max-width: 768px) {
  .announcement-scroll { justify-content: flex-start; animation: scroll-left 20s linear infinite; }
  @keyframes scroll-left { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
}

.banner-chips { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.chip { display:inline-flex; align-items:center; gap:8px; padding:6px 10px; border-radius:999px; background: rgba(255,255,255,0.10); border: 1px solid rgba(255,255,255,0.16); color:#e2e8f0; font-weight:800; letter-spacing:0.2px; }
.chip.link { text-decoration:none; background: rgba(34,197,94,0.14); border-color: rgba(34,197,94,0.22); }
.chip.link:hover { background: rgba(34,197,94,0.20); }

.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,0.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--brand-border); box-shadow: 0 1px 3px rgba(0,0,0,0.05); }
.header-inner { display:flex; align-items:center; gap:14px; padding: 12px 0; }
.brand { display:flex; align-items:center; text-decoration:none; }
.brand-logo { height: 44px; width: auto; display:block; }
.search { flex: 1; }
.search input { width: 100%; padding: 12px 16px; border: 2px solid #e2e8f0; border-radius: 12px; outline: none; background: #fff; font-size: 15px; font-weight: 500; color: var(--brand-ink); transition: all 0.2s ease; }
.search input:focus { border-color: var(--brand-primary); box-shadow: 0 0 0 4px rgba(11,120,182,0.1); }
.search input::placeholder { color: #94a3b8; font-weight: 400; }
.header-actions { display:flex; align-items:center; gap:12px; }
.header-link { color:#0f172a; text-decoration:none; font-weight:600; font-size:14px; padding:8px 10px; border-radius:10px; }
.header-link:hover { background:#f1f5f9; color: var(--brand-primary); }

.icon-link { position: relative; display:inline-flex; align-items:center; gap:8px; padding:8px 10px; border-radius:12px; border: 1px solid transparent; background: transparent; color: var(--brand-ink); text-decoration:none; cursor:pointer; }
.icon-link:hover { background:#f1f5f9; border-color:#e2e8f0; color: var(--brand-primary); }
.icon-label { font-size:12px; font-weight:800; letter-spacing:0.2px; }
.account { position: relative; }

.dropdown { position: absolute; right: 0; top: calc(100% + 8px); width: 220px; background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; box-shadow: 0 18px 40px rgba(0,0,0,0.12); padding: 8px; z-index: 120; }
.dropdown-item { display:flex; width:100%; align-items:center; padding: 10px 10px; border-radius: 10px; border: 0; background: transparent; color: var(--brand-ink); text-decoration:none; cursor:pointer; font-weight:700; font-size:13px; }
.dropdown-item:hover { background:#f1f5f9; color: var(--brand-primary); }
.dropdown-item.danger { color:#b91c1c; }
.dropdown-item.danger:hover { background:#fee2e2; color:#b91c1c; }

.category-nav { display:flex; gap:12px; padding: 0 0 12px 0; overflow:auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.category-nav::-webkit-scrollbar { display:none; }
.category-nav-link { display:inline-flex; align-items:center; gap:8px; padding:8px 12px; border:1px solid #e8f0f7; border-radius:999px; background:#fff; color:#0f172a; cursor:pointer; text-decoration:none; transition: background .15s ease, border-color .15s ease, color .15s ease, transform .15s ease; font-size:14px; font-weight:700; white-space: nowrap; }
.category-nav-link:hover { border-color: rgba(0,122,186,0.35); background:#f8fcff; transform: translateY(-1px); color:#0f172a; }
.category-nav-link.active { background: var(--brand-primary); color:#fff; border-color: var(--brand-primary); }

.category-item { position: relative; }
.mega { position:absolute; left:0; top: calc(100% + 10px); min-width: 520px; background:#fff; border:1px solid #e2e8f0; border-radius: 16px; box-shadow: 0 24px 60px rgba(0,0,0,0.12); padding: 16px; display:none; gap: 18px; z-index: 110; }
.category-item:hover .mega { display:flex; }
.mega-col { min-width: 220px; }
.mega-title { font-size: 12px; font-weight: 900; color: #64748b; text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 10px; }
.mega-link { display:block; padding: 10px 10px; border-radius: 12px; color: var(--brand-ink); text-decoration:none; font-weight: 700; font-size: 13px; }
.mega-link:hover { background:#f1f5f9; color: var(--brand-primary); }

header { background: linear-gradient(90deg, #fff 0%, #f0f7ff 100%); padding: 12px 18px; display:flex; justify-content:space-between; align-items:center; border-bottom: 1px solid #e6eef6; box-shadow: 0 1px 3px rgba(0,0,0,0.05); }
header > * { display:flex; align-items:center; gap:12px; }
.icon-btn { background:#fff; border:1px solid #e2e8f0; border-radius:8px; padding:8px 10px; cursor:pointer; transition: all .15s ease; }
.icon-btn:hover { border-color:#0f172a; }
.cart-link { position:relative; display:inline-flex; align-items:center; gap:6px; text-decoration:none; color:#111; transition: color .15s ease; }
.cart-link:hover { color:#007ABA; }
.cart-icon { font-size:20px; }
.badge { position:absolute; top:-6px; right:-8px; background:#d32f2f; color:#fff; font-size:12px; font-weight:600; line-height:1; padding:3px 5px; border-radius:999px; }

/* side drawer */
#side-drawer { position:fixed; top:56px; left:0; bottom:0; width:280px; background:#fff; border-right:1px solid #e5e7eb; box-shadow: 2px 0 8px rgba(0,0,0,0.08); transform: translateX(-100%); transition: transform 0.2s ease; z-index: 999; padding:12px; overflow-y:auto; }
#side-drawer.open { transform: translateX(0); }
.backdrop { position:fixed; inset:0; background:rgba(0,0,0,0.4); z-index: 998; opacity:0; transition: opacity 0.2s ease; pointer-events:none; }
.backdrop.open { opacity:1; pointer-events:auto; }
.drawer-header { display:flex; align-items:center; justify-content:space-between; margin-bottom:12px; font-weight:600; }
.drawer-categories { display:flex; flex-direction:column; gap:6px; }
.drawer-categories .category-chip { width:100%; justify-content:flex-start; }

/* drawer section styling */
.drawer-section { margin-bottom:20px; }
.drawer-section h3 { margin:0 0 12px 0; font-size:14px; font-weight:700; color:#0f172a; text-transform:uppercase; letter-spacing:0.5px; }
.drawer-link { display:flex; align-items:center; justify-content:space-between; padding:10px 12px; color:#475569; text-decoration:none; font-size:14px; border-radius:6px; transition: all 0.15s ease; }
.drawer-link:hover { background:#f1f5f9; color: var(--brand-primary); }
.drawer-link.active { background:#f1f5f9; color: var(--brand-primary); }
.drawer-link svg { width:18px; height:18px; opacity:0.6; }

/* Hero Section - Modern */
.hero-section { background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 50%, #f0f9ff 100%); padding: 60px 0; position: relative; overflow: visible; }
.hero-section::before { content: ''; position: absolute; top: -50%; right: -20%; width: 600px; height: 600px; background: radial-gradient(circle, rgba(11,120,182,0.08) 0%, transparent 70%); border-radius: 50%; }
.hero-section::after { content: ''; position: absolute; bottom: -30%; left: -10%; width: 400px; height: 400px; background: radial-gradient(circle, rgba(34,197,94,0.06) 0%, transparent 70%); border-radius: 50%; }

.hero-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; position: relative; z-index: 1; }
.hero-content { position: relative; width: 100%; max-width: 100%; }
.hero-tag { display: inline-flex; align-items: center; gap: 8px; background: linear-gradient(135deg, var(--brand-primary-light) 0%, #dbeafe 100%); color: var(--brand-primary); padding: 8px 16px; border-radius: 999px; font-size: 14px; font-weight: 600; margin-bottom: 20px; }
.hero-title { font-size: 52px; font-weight: 800; line-height: 1.2; margin: 0 0 20px 0; color: var(--brand-ink); overflow: visible; white-space: normal; word-wrap: break-word; display: block; width: 100%; }
.hero-title span { display: inline; }
.gradient-text { 
  color: #0b78b6 !important;
  -webkit-text-fill-color: #0b78b6 !important;
}
.hero-desc { font-size: 18px; color: #64748b; margin: 0 0 32px 0; line-height: 1.7; }

.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 40px; }
.btn-primary { display: inline-flex; align-items: center; gap: 10px; background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-700) 100%); color: #fff; padding: 16px 28px; border-radius: var(--radius-lg); font-size: 16px; font-weight: 700; text-decoration: none; transition: all 0.2s ease; box-shadow: 0 4px 14px rgba(11,120,182,0.35); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(11,120,182,0.45); }
.btn-outline { display: inline-flex; align-items: center; gap: 10px; background: #fff; color: var(--brand-ink); padding: 16px 28px; border-radius: var(--radius-lg); font-size: 16px; font-weight: 700; text-decoration: none; border: 2px solid var(--brand-border); transition: all 0.2s ease; }
.btn-outline:hover { border-color: var(--brand-primary); color: var(--brand-primary); }

.hero-stats { display: flex; gap: 40px; }
.stat-item { text-align: left; }
.stat-number { display: block; font-size: 28px; font-weight: 800; color: var(--brand-ink); }
.stat-label { font-size: 14px; color: #64748b; }

.hero-visual { position: relative; height: 400px; }
.hero-card-stack { position: relative; width: 100%; height: 100%; }
.floating-card { position: absolute; background: #fff; border-radius: 16px; padding: 20px; box-shadow: 0 20px 40px rgba(0,0,0,0.15); animation: float 3s ease-in-out infinite; text-decoration: none; display: block; cursor: pointer; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.floating-card:hover { transform: translateY(-5px) scale(1.02); box-shadow: 0 25px 50px rgba(0,0,0,0.2); }
.card-1 { top: 10%; left: 10%; transform: rotate(-3deg); z-index: 3; }
.card-2 { top: 35%; right: 5%; transform: rotate(4deg); z-index: 2; }
.card-3 { bottom: 5%; left: 20%; transform: rotate(-2deg); z-index: 1; }
.card-badge { display: inline-flex; padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--brand-primary-light); color: var(--brand-primary); margin-bottom: 10px; }
.card-badge.sale { background: var(--brand-danger); }
.card-badge.new { background: var(--brand-accent); }
.card-badge.sale { background: #fef2f2; color: var(--brand-danger); }
.card-badge.new { background: #f0fdf4; color: var(--brand-accent); }
.card-title { font-size: 18px; font-weight: 700; color: var(--brand-ink); margin-bottom: 4px; }
.card-price { font-size: 14px; color: #64748b; }

/* Features Bar */
.features-bar { background: #fff; border-bottom: 1px solid var(--brand-border); padding: 24px 0; }
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.feature-item { display: flex; align-items: center; gap: 14px; }
.feature-icon { font-size: 28px; }
.feature-text { display: flex; flex-direction: column; }
.feature-text strong { font-size: 14px; font-weight: 700; color: var(--brand-ink); }
.feature-text span { font-size: 13px; color: #64748b; }

/* Section Headers */
.section-header { text-align: center; padding: 48px 20px 24px; max-width: 1200px; margin: 0 auto; }
.section-title { font-size: 32px; font-weight: 800; color: var(--brand-ink); margin: 0 0 8px 0; }
.section-subtitle { font-size: 16px; color: #64748b; margin: 0; }

@media (max-width: 968px) {
  .hero-container { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .hero-title { font-size: 38px; }
  .hero-buttons { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-visual { height: 300px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .hero-section { padding: 40px 0; }
  .hero-title { font-size: 32px; }
  .hero-desc { font-size: 16px; }
  .hero-stats { flex-direction: column; gap: 16px; }
  .hero-visual { display: none; }
  .features-grid { grid-template-columns: 1fr; }
  .btn-primary, .btn-outline { width: 100%; justify-content: center; }
}

/* categories bar */
.categories-bar { max-width:1100px; margin:0 auto; padding: 12px 20px; display:flex; gap:8px; flex-wrap:wrap; }
.category-chip { display:inline-flex; align-items:center; gap:8px; padding:8px 12px; border:1px solid #e8f0f7; border-radius:999px; background:#fff; color:#0f172a; cursor:pointer; transition: background .15s ease, border-color .15s ease, color .15s ease, transform .15s ease; font-size:14px; font-weight:700; }
.category-chip:hover { border-color: rgba(0,122,186,0.35); background:#f8fcff; transform: translateY(-1px); }
.category-chip.active { background: var(--brand-primary); color:#fff; border-color: var(--brand-primary); }

/* toolbar */
.products-toolbar { max-width:1200px; margin:0 auto; padding:0 20px 20px; display:flex; justify-content:space-between; align-items:center; gap:16px; flex-wrap:wrap; }
.toolbar-left, .toolbar-right { display: flex; align-items: center; gap: 12px; }
.product-count { font-size: 14px; color: #64748b; font-weight: 500; }
.view-btn { display: inline-flex; align-items: center; gap: 6px; background:#fff; border:1px solid var(--brand-border); padding:10px 16px; border-radius:var(--radius-md); cursor:pointer; color:#64748b; transition: all 0.15s ease; font-size:14px; font-weight: 500; }
.view-btn:hover { border-color: var(--brand-primary); color: var(--brand-primary); }
.view-btn[aria-pressed="true"] { background: var(--brand-primary); border-color: var(--brand-primary); color:#fff; }
.view-btn svg { width: 18px; height: 18px; }
.products-toolbar select { padding:10px 16px; border-radius:var(--radius-md); border:1px solid var(--brand-border); font-size:14px; color:var(--brand-ink); background:#fff; cursor:pointer; font-weight: 500; min-width: 180px; }
.products-toolbar select:focus { outline: none; border-color: var(--brand-primary); box-shadow: 0 0 0 3px rgba(11,120,182,0.1); }

/* Products Grid */
#products { display: grid; grid-template-columns: repeat(var(--grid-cols), minmax(0, 1fr)); gap: 24px; padding: 0 20px 40px; max-width:1200px; margin:0 auto; scroll-margin-top:80px; }

#products.list { grid-template-columns: 1fr; }
#products.list .card { display:grid; grid-template-columns: 220px 1fr; gap: 20px; align-items: start; }
#products.list .card img { height: 180px; }
#products.list .actions { justify-content:flex-start; }

@media (max-width: 1024px) {
  #products { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
}

@media (max-width: 768px) {
  #products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
}

@media (max-width: 480px) {
  #products { grid-template-columns: 1fr; }
  #products.list .card { grid-template-columns: 1fr; }
}

/* Product Cards - Modern */
.card { 
  background: #fff; 
  padding: 0; 
  border-radius: var(--radius-lg); 
  box-shadow: var(--shadow-sm); 
  transition: all 0.25s ease; 
  border: 1px solid var(--brand-border); 
  overflow: hidden;
}
.card:hover { 
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: var(--brand-primary);
}

/* 3D Product Image */
.product-media {
  perspective: 800px;
  overflow: hidden;
}
.product-media img {
  transition: transform 0.1s ease-out;
  transform-style: preserve-3d;
  will-change: transform;
}
.product-media.tilt-active img {
  transition: none;
}

/* 3D Shine Effect on Image */
.product-media::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(255, 255, 255, 0.3) 45%,
    rgba(255, 255, 255, 0.5) 50%,
    rgba(255, 255, 255, 0.3) 55%,
    transparent 60%
  );
  transform: translateX(-150%);
  transition: transform 0.8s ease;
  pointer-events: none;
  z-index: 5;
}
.product-media:hover::after {
  transform: translateX(150%);
}
.card img { width:100%; height:220px; object-fit:cover; display: block; }
.card-body { padding: 16px; }
.card .price { color: var(--brand-primary); font-weight: 800; font-size: 20px; }
.card .title { color: var(--brand-ink); font-size: 16px; font-weight: 600; margin: 8px 0 0 0; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.product-media { position: relative; overflow: hidden; }
.product-badge { position:absolute; left:12px; top:12px; background: var(--brand-primary); color:#fff; padding:6px 12px; border-radius:999px; font-size:11px; font-weight:700; text-transform: uppercase; letter-spacing: 0.5px; box-shadow: var(--shadow-md); }
.product-badge.sale { background: var(--brand-danger); }
.product-badge.new { background: var(--brand-accent); }
.product-fav { position:absolute; right:12px; top:12px; width:38px; height:38px; border-radius:999px; border:none; background: rgba(255,255,255,0.95); display:flex; align-items:center; justify-content:center; cursor:pointer; transition: all .2s ease; box-shadow: var(--shadow-md); }
.product-fav:hover { transform: scale(1.1); background:#fff; }
.product-fav.active { background: #fef2f2; color: var(--brand-danger); }
.quick-view { position:absolute; left:12px; right:12px; bottom:12px; padding:12px 16px; border-radius: var(--radius-md); border: none; background: rgba(255,255,255,0.98); font-weight: 700; font-size: 14px; cursor:pointer; opacity:0; transform: translateY(8px); transition: all .2s ease; box-shadow: var(--shadow-lg); }
.quick-view:hover { background: var(--brand-primary); color: #fff; }
.card:hover .quick-view { opacity:1; transform: translateY(0); }

/* Quick Add to Cart Button */
.quick-add-btn { position: absolute; right: 12px; bottom: 12px; width: 44px; height: 44px; border-radius: 50%; border: none; background: var(--brand-primary); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; opacity: 0; transform: scale(0.8); transition: all 0.2s ease; box-shadow: var(--shadow-lg); z-index: 5; }
.quick-add-btn:hover { background: #0369a1; transform: scale(1.1) !important; }
.card:hover .quick-add-btn { opacity: 1; transform: scale(1); }
.quick-add-btn:disabled { background: #94a3b8; cursor: not-allowed; }
.quick-add-btn svg { width: 20px; height: 20px; }

/* Product Actions Overlay */
.product-actions-overlay { position: absolute; top: 12px; right: 12px; display: flex; flex-direction: column; gap: 8px; z-index: 10; }
.product-action-btn { width: 38px; height: 38px; border-radius: 50%; border: none; background: rgba(255,255,255,0.95); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.2s ease; box-shadow: var(--shadow-md); opacity: 0; transform: translateX(10px); }
.product-action-btn:nth-child(1) { transition-delay: 0s; }
.product-action-btn:nth-child(2) { transition-delay: 0.05s; }
.product-action-btn:nth-child(3) { transition-delay: 0.1s; }
.card:hover .product-action-btn { opacity: 1; transform: translateX(0); }
.product-action-btn:hover { background: var(--brand-primary); color: #fff; transform: scale(1.1) translateX(0) !important; }
.product-action-btn.active { background: #fef2f2; color: var(--brand-danger); }
.product-action-btn svg { width: 18px; height: 18px; }

/* Spin Animation */
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.spin { animation: spin 1s linear infinite; }

/* ========== CATEGORY BANNERS ========== */
.category-banners { padding: 40px 0; }
.banners-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 180px);
  gap: 16px;
}
.banner-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  text-decoration: none;
  color: #fff;
  transition: all 0.3s ease;
}
.banner-card:nth-child(2) { background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%); }
.banner-card:nth-child(3) { background: linear-gradient(135deg, #ee0979 0%, #ff6a00 100%); }
.banner-card:nth-child(4) { background: linear-gradient(135deg, #2193b0 0%, #6dd5ed 100%); }
.banner-card:nth-child(5) { background: linear-gradient(135deg, #f12711 0%, #f5af19 100%); }
.banner-card.banner-large {
  grid-column: span 2;
  grid-row: span 2;
}
.banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,0.7) 100%);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.banner-card:hover .banner-overlay { background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.8) 100%); }
.banner-card:hover { transform: translateY(-8px) scale(1.02); box-shadow: 0 20px 40px rgba(0,0,0,0.25); }

/* Modern Banner Content */
.banner-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px;
  z-index: 2;
  transform: translateY(20px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.banner-card:hover .banner-content { transform: translateY(0); }

.banner-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(255,255,255,0.95);
  color: #0f172a;
  border-radius: 30px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.banner-tag::before {
  content: '✦';
  font-size: 10px;
  color: var(--brand-primary);
}

.banner-content h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
  letter-spacing: -0.5px;
}
.banner-large .banner-content h3 { font-size: 32px; }

.banner-content p {
  margin: 8px 0 0;
  font-size: 14px;
  color: rgba(255,255,255,0.9);
  font-weight: 500;
  text-shadow: 0 1px 5px rgba(0,0,0,0.2);
}

.banner-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 10px 20px;
  background: #fff;
  color: #0f172a;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 700;
  opacity: 0;
  transform: translateY(15px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}
.banner-link:hover { background: var(--brand-primary); color: #fff; transform: translateY(0) scale(1.05) !important; }
.banner-card:hover .banner-link { opacity: 1; transform: translateY(0); }

/* Decorative elements */
.banner-card::before {
  content: '';
  position: absolute;
  top: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  border: 2px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  z-index: 1;
  transition: all 0.4s ease;
}
.banner-card:hover::before { transform: scale(1.2); border-color: rgba(255,255,255,0.4); }

.banner-card::after {
  content: '';
  position: absolute;
  top: 30px;
  right: 30px;
  width: 40px;
  height: 40px;
  border: 2px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  z-index: 1;
  transition: all 0.4s ease 0.1s;
}
.banner-card:hover::after { transform: scale(1.3); border-color: rgba(255,255,255,0.3); }

@media (max-width: 900px) {
  .banners-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
  }
  .banner-card { min-height: 160px; }
  .banner-card.banner-large { grid-column: span 2; grid-row: span 1; min-height: 200px; }
}
@media (max-width: 600px) {
  .banners-grid { grid-template-columns: 1fr; }
  .banner-card.banner-large { grid-column: span 1; }
}

.price-row { display:flex; align-items: baseline; gap: 10px; margin-top: 8px; }
.price-old { color:#94a3b8; text-decoration: line-through; font-weight:600; font-size: 14px; }
.card h3 { margin:10px 0 8px; font-size:16px; font-weight: 600; color: var(--brand-ink); line-height: 1.4; }
.card p { margin:0 0 12px; color:#64748b; font-size:14px; line-height: 1.5; }
.card .actions { display:flex; justify-content:space-between; align-items:center; gap:10px; margin-top:14px; padding-top: 14px; border-top: 1px solid var(--brand-border); }

/* Product Rating */
.product-rating { display: flex; align-items: center; gap: 6px; padding: 10px 16px 0; }
.product-rating .stars { color: #fbbf24; font-size: 14px; letter-spacing: 1px; }
.product-rating .review-count { color: var(--brand-muted); font-size: 12px; }

/* Stock Badges */
.stock-badge { position: absolute; left: 12px; bottom: 12px; padding: 6px 12px; border-radius: 999px; font-size: 11px; font-weight: 700; }
.stock-badge.out { background: #1e293b; color: #fff; }
.stock-badge.low { background: #fef3c7; color: #92400e; }

/* Out of Stock Card */
.card.out-of-stock { opacity: 0.7; }
.card.out-of-stock img { filter: grayscale(50%); }
.card.out-of-stock .btn { background: #94a3b8; cursor: not-allowed; }
.card.out-of-stock .btn:hover { transform: none; box-shadow: none; }

/* Product Links */
.product-link { display: block; }
.product-title-link { text-decoration: none; color: inherit; display: block; transition: color 0.2s; }
.product-title-link:hover { color: var(--brand-primary); }

/* Filter Panel */
.filter-panel { background: #fff; border: 1px solid var(--brand-border); border-radius: var(--radius-lg); padding: 20px; margin: 0 20px 20px; display: flex; flex-wrap: wrap; gap: 30px; animation: slideDown 0.3s ease; }
@keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
.filter-section { min-width: 180px; }
.filter-section h4 { font-size: 14px; font-weight: 700; margin: 0 0 12px; color: var(--brand-ink); }
.price-range { display: flex; align-items: center; gap: 8px; }
.price-range input { width: 100px; padding: 8px 12px; border: 1px solid #ddd; border-radius: 6px; font-size: 14px; }
.price-range span { color: var(--brand-muted); }
.rating-filter label, .stock-filter label { display: flex; align-items: center; gap: 8px; font-size: 14px; margin-bottom: 8px; cursor: pointer; }
.rating-filter input, .stock-filter input { width: 16px; height: 16px; accent-color: var(--brand-primary); }
.filter-actions { display: flex; gap: 10px; align-items: flex-end; margin-left: auto; }
@media (max-width: 768px) { .filter-panel { flex-direction: column; gap: 20px; } .filter-actions { margin-left: 0; width: 100%; } .filter-actions .btn { flex: 1; } }

/* Order Timeline */
.order-timeline { display: flex; align-items: center; justify-content: center; padding: 20px 0; gap: 0; }
.timeline-step { display: flex; flex-direction: column; align-items: center; gap: 8px; position: relative; }
.timeline-dot { width: 36px; height: 36px; border-radius: 50%; background: #e2e8f0; color: #64748b; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; transition: all 0.3s; }
.timeline-step.active .timeline-dot { background: var(--brand-primary); color: #fff; }
.timeline-step.current .timeline-dot { box-shadow: 0 0 0 4px rgba(11,120,182,0.2); transform: scale(1.1); }
.timeline-label { font-size: 12px; color: #64748b; text-align: center; max-width: 80px; }
.timeline-step.active .timeline-label { color: var(--brand-ink); font-weight: 600; }
.timeline-line { width: 60px; height: 3px; background: #e2e8f0; margin: 0 -5px; margin-bottom: 28px; }
.timeline-line.active { background: var(--brand-primary); }
@media (max-width: 600px) { .order-timeline { flex-wrap: wrap; gap: 10px; } .timeline-line { width: 30px; } .timeline-label { font-size: 10px; max-width: 60px; } }

/* Notification Dropdown */
.notification-wrapper { position: relative; }
.notification-dropdown { position: absolute; top: 100%; right: 0; width: 320px; max-height: 400px; background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-xl); border: 1px solid var(--brand-border); z-index: 1000; overflow: hidden; }
.notif-header { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--brand-border); background: #f8fafc; }
.notif-header span { font-weight: 700; font-size: 14px; }
.notif-mark-all { background: none; border: none; color: var(--brand-primary); font-size: 12px; cursor: pointer; }
.notif-mark-all:hover { text-decoration: underline; }
.notif-list { max-height: 320px; overflow-y: auto; }
.notif-item { display: flex; gap: 12px; padding: 12px 16px; border-bottom: 1px solid #f1f5f9; cursor: pointer; transition: background 0.2s; }
.notif-item:hover { background: #f8fafc; }
.notif-item.unread { background: #eff6ff; }
.notif-item.unread:hover { background: #dbeafe; }
.notif-icon { width: 36px; height: 36px; border-radius: 50%; background: var(--brand-primary); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }
.notif-icon.order { background: #3b82f6; }
.notif-icon.shipped { background: #8b5cf6; }
.notif-icon.delivered { background: #22c55e; }
.notif-icon.cancelled { background: #ef4444; }
.notif-content { flex: 1; min-width: 0; }
.notif-title { font-weight: 600; font-size: 13px; color: var(--brand-ink); margin-bottom: 2px; }
.notif-message { font-size: 12px; color: var(--brand-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.notif-time { font-size: 11px; color: var(--brand-muted); margin-top: 4px; }
.notif-empty { padding: 40px 20px; text-align: center; color: var(--brand-muted); font-size: 14px; }
@media (max-width: 480px) { .notification-dropdown { width: 280px; right: -50px; } }

/* Toast Notifications */
.toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 9999; display: flex; flex-direction: column; gap: 12px; pointer-events: none; }
.toast { display: flex; align-items: center; gap: 12px; padding: 14px 20px; background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-xl); border-left: 4px solid var(--brand-primary); pointer-events: auto; animation: toast-in 0.3s ease; max-width: 360px; }
.toast.success { border-left-color: var(--brand-accent); }
.toast.error { border-left-color: var(--brand-danger); }
.toast.warning { border-left-color: #f59e0b; }
.toast-icon { font-size: 20px; flex-shrink: 0; }
.toast-content { flex: 1; }
.toast-title { font-weight: 700; font-size: 14px; color: var(--brand-ink); }
.toast-message { font-size: 13px; color: var(--brand-muted); margin-top: 2px; }
.toast-close { background: none; border: none; font-size: 18px; color: var(--brand-muted); cursor: pointer; padding: 4px; margin: -4px; }
.toast-close:hover { color: var(--brand-ink); }
.toast.hiding { animation: toast-out 0.3s ease forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateX(100%); } to { opacity: 1; transform: translateX(0); } }
@keyframes toast-out { from { opacity: 1; transform: translateX(0); } to { opacity: 0; transform: translateX(100%); } }

/* Buttons */
.btn { background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-700) 100%); color:#fff; padding:10px 18px; border:none; border-radius: var(--radius-md); cursor:pointer; transition: all 0.2s ease; font-size:14px; font-weight:600; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 4px 14px rgba(11,120,182,0.35); }
.btn:active { transform: scale(0.98); }
.btn.secondary { background: var(--brand-bg); color: var(--brand-ink); border: 1px solid var(--brand-border); }
.btn.secondary:hover { background: #fff; border-color: var(--brand-primary); color: var(--brand-primary); box-shadow: none; }
.btn.small { padding:6px 10px; font-size:13px; }

.modal { position: fixed; inset: 0; z-index: 200; }
.modal-backdrop { position:absolute; inset:0; background: rgba(15,23,42,0.55); }
.modal-panel { position: relative; max-width: 900px; margin: 6vh auto; background:#fff; border-radius: 18px; border: 1px solid #e2e8f0; box-shadow: 0 30px 80px rgba(0,0,0,0.22); overflow: hidden; }
.modal-close { position:absolute; right: 12px; top: 12px; width: 38px; height: 38px; border-radius: 999px; border: 1px solid #e2e8f0; background:#fff; cursor:pointer; }
.modal-body { display:grid; grid-template-columns: 1fr 1fr; gap: 0; }
.modal-media { background:#f8fafb; padding: 18px; }
.modal-media img { width:100%; height: 420px; object-fit: cover; border-radius: 14px; }
.modal-content { padding: 18px; }
.modal-title { font-size: 22px; font-weight: 1000; color: var(--brand-ink); }
.modal-price { margin-top: 10px; font-size: 18px; font-weight: 900; color: #065f46; }
.modal-desc { margin-top: 10px; color:#475569; font-size: 14px; line-height: 1.5; }
.modal-actions { margin-top: 14px; display:flex; gap: 10px; flex-wrap: wrap; }

/* Footer - Modern */
.site-footer { background: linear-gradient(180deg, #0f172a 0%, #020617 100%); color: #cbd5e1; margin-top: 60px; }
.footer-top { border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-grid { display:grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; padding: 60px 20px; max-width: 1200px; margin: 0 auto; }
.footer-brand { max-width: 280px; }
.footer-brand img { height: 40px; margin-bottom: 16px; filter: brightness(0) invert(1); }
.footer-brand p { color: #94a3b8; font-size: 14px; line-height: 1.7; margin: 0 0 20px 0; }
.footer-social { display: flex; gap: 12px; }
.footer-social a { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; color: #fff; text-decoration: none; transition: all 0.2s ease; }
.footer-social a:hover { background: var(--brand-primary); transform: translateY(-2px); }
.footer-col { min-width: 140px; }
.footer-title { font-weight: 700; color: #fff; margin-bottom: 20px; font-size: 16px; }
.footer-text { color:#94a3b8; line-height: 1.7; font-size: 14px; }
.footer-link { display: flex; align-items: center; gap: 8px; color: #94a3b8; text-decoration: none; padding: 8px 0; font-weight: 500; font-size: 14px; transition: all 0.2s ease; }
.footer-link:hover { color: #fff; transform: translateX(4px); }
.footer-bottom { padding: 24px 20px; text-align: center; border-top: 1px solid rgba(255,255,255,0.1); }
.footer-bottom p { color: #64748b; font-size: 14px; margin: 0; }

@media (max-width: 968px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; padding: 40px 20px; }
}

@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 860px) {
  .mega { display:none !important; }
  .icon-label { display:none; }
  .modal-body { grid-template-columns: 1fr; }
  .modal-media img { height: 320px; }
}

/* Toast Notification - Enhanced */
.toast { position:fixed; bottom:24px; right:24px; background:#fff; border-left:4px solid var(--brand-accent); padding:16px 24px; border-radius:var(--radius-md); box-shadow: var(--shadow-xl); display:flex; align-items:center; gap:12px; z-index:1000; animation: slideIn 0.3s ease; max-width: 400px; }
.toast.success { border-left-color: var(--brand-accent); }
.toast.success::before { content:"✓"; color: var(--brand-accent); font-weight:700; font-size:20px; }
.toast.error { border-left-color: var(--brand-danger); }
.toast.error::before { content:"✕"; color: var(--brand-danger); font-weight:700; font-size:20px; }
.toast.info { border-left-color: var(--brand-primary); }
.toast.info::before { content:"ℹ"; color: var(--brand-primary); font-weight:700; font-size:20px; }
.toast-message { color: var(--brand-ink); font-size:14px; font-weight:500; }

@keyframes slideIn {
  from { transform: translateX(400px); opacity:0; }
  to { transform: translateX(0); opacity:1; }
}

@keyframes slideOut {
  from { transform: translateX(0); opacity:1; }
  to { transform: translateX(400px); opacity:0; }
}

.toast.remove { animation: slideOut 0.3s ease forwards; }

/* Empty State */
.empty-state { grid-column: 1 / -1; text-align: center; padding: 60px 20px; background: #fff; border-radius: var(--radius-lg); border: 2px dashed var(--brand-border); }
.empty-icon { font-size: 64px; margin-bottom: 16px; }
.empty-state h3 { font-size: 20px; font-weight: 700; color: var(--brand-ink); margin: 0 0 8px 0; }
.empty-state p { color: #64748b; margin: 0 0 20px 0; }

/* Modal Enhancements */
.modal-badges { display: flex; gap: 8px; margin-bottom: 12px; }
.badge-sale { background: #fef2f2; color: var(--brand-danger); padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.badge-new { background: #f0fdf4; color: var(--brand-accent); padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.modal-category { color: #64748b; font-size: 14px; margin-bottom: 12px; }
.modal-price-row { display: flex; align-items: baseline; gap: 12px; margin-bottom: 16px; }
.modal-price { font-size: 28px; font-weight: 800; color: var(--brand-primary); }
.modal-price-old { font-size: 18px; color: #94a3b8; text-decoration: line-through; }
.modal-discount { background: #fef2f2; color: var(--brand-danger); padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.modal-header { padding: 20px; border-bottom: 1px solid var(--brand-border); }
.modal-header h2 { margin: 0; font-size: 20px; font-weight: 700; }

/* Quantity Selector */
.modal-quantity { margin: 20px 0; }
.modal-quantity label { display: block; font-size: 14px; font-weight: 600; color: var(--brand-ink); margin-bottom: 8px; }
.quantity-selector { display: inline-flex; align-items: center; border: 1px solid var(--brand-border); border-radius: var(--radius-md); overflow: hidden; }
.qty-btn { width: 40px; height: 40px; border: none; background: var(--brand-bg); color: var(--brand-ink); font-size: 18px; cursor: pointer; transition: all 0.15s ease; }
.qty-btn:hover { background: var(--brand-primary); color: #fff; }
.quantity-selector input { width: 60px; height: 40px; border: none; text-align: center; font-size: 16px; font-weight: 600; -moz-appearance: textfield; }
.quantity-selector input::-webkit-outer-spin-button,
.quantity-selector input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* Modal Features */
.modal-features { display: flex; gap: 16px; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--brand-border); flex-wrap: wrap; }
.modal-features .feature { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #64748b; }
.modal-features .feature span { font-size: 16px; }

/* Button Variants */
.btn-large { padding: 14px 28px; font-size: 16px; }
.btn-danger { background: var(--brand-danger); }
.btn-danger:hover { box-shadow: 0 4px 14px rgba(239,68,68,0.35); }

/* Favorites Modal */
.favorites-panel { max-width: 600px; max-height: 80vh; overflow: hidden; display: flex; flex-direction: column; }
.favorites-body { padding: 20px; overflow-y: auto; flex: 1; }
.fav-item { display: flex; align-items: center; gap: 16px; padding: 16px; background: var(--brand-bg); border-radius: var(--radius-md); margin-bottom: 12px; }
.fav-item img { width: 80px; height: 80px; object-fit: cover; border-radius: var(--radius-sm); }
.fav-info { flex: 1; }
.fav-info h4 { margin: 0 0 4px 0; font-size: 15px; font-weight: 600; color: var(--brand-ink); }
.fav-price { font-size: 16px; font-weight: 700; color: var(--brand-primary); }
.fav-actions { display: flex; gap: 8px; flex-direction: column; }

/* Card Body */
.card-body { padding: 16px; }

/* Modern Form Elements */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="tel"],
input[type="search"],
textarea,
select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  outline: none;
  background: #fff;
  font-size: 15px;
  font-weight: 500;
  color: var(--brand-ink);
  transition: all 0.2s ease;
  font-family: inherit;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
input[type="search"]:focus,
textarea:focus,
select:focus {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 4px rgba(11,120,182,0.1);
}

input::placeholder,
textarea::placeholder {
  color: #94a3b8;
  font-weight: 400;
  opacity: 1;
}

/* Select Styling */
select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 12px center;
  background-repeat: no-repeat;
  background-size: 20px;
  padding-right: 44px;
  cursor: pointer;
}

/* Textarea Specific */
textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.5;
}

/* Number Input Styling */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type="number"] {
  -moz-appearance: textfield;
}

/* Checkbox & Radio */
input[type="checkbox"],
input[type="radio"] {
  width: 20px;
  height: 20px;
  border: 2px solid #e2e8f0;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  background: #fff;
}

input[type="checkbox"]:checked,
input[type="radio"]:checked {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
}

input[type="radio"] {
  border-radius: 50%;
}

/* Form Groups */
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 14px;
  color: var(--brand-ink);
}

/* Form Grid */
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }

/* Scrollbar Styling */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--brand-bg); }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

@media (max-width:900px){
  #products { grid-template-columns:repeat(auto-fill,minmax(180px,1fr)); padding:12px; }
  .card img, .product-thumb { height:140px; }
  .products-toolbar { flex-direction:column; align-items:stretch; }
}
@media (max-width:700px){
  #products { grid-template-columns:repeat(auto-fill,minmax(160px,1fr)); padding:12px; }
  .card img, .product-thumb { height:110px; }
  header { flex-direction:column; gap:8px; }
  .hero-grid { grid-template-columns: 1fr; }
  .topbar-inner { flex-direction:column; align-items:flex-start; }
}

/* ========== PROFESSIONAL FOOTER ========== */
.site-footer {
  background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
  color: #e2e8f0;
  margin-top: 60px;
}

.footer-top {
  padding: 60px 20px 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
}

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
}

@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
}

.footer-brand img {
  height: 40px;
  width: auto;
  margin-bottom: 16px;
  filter: brightness(0) invert(1);
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.7;
  color: #94a3b8;
  margin-bottom: 20px;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.1);
  border-radius: 10px;
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  transition: all 0.2s ease;
}

.footer-social a:hover {
  background: var(--brand-primary);
  transform: translateY(-2px);
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-title {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.footer-link {
  color: #94a3b8;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-link:hover {
  color: #fff;
  transform: translateX(4px);
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: #94a3b8;
}

.footer-contact-item strong {
  color: #fff;
  display: block;
  margin-bottom: 2px;
}

.footer-newsletter {
  margin-top: 16px;
}

.footer-newsletter p {
  font-size: 13px;
  color: #94a3b8;
  margin-bottom: 12px;
}

.newsletter-form {
  display: flex;
  gap: 8px;
}

.newsletter-form input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  background: rgba(255,255,255,0.05);
  color: #fff;
  font-size: 14px;
}

.newsletter-form input::placeholder {
  color: #64748b;
}

.newsletter-form input:focus {
  outline: none;
  border-color: var(--brand-primary);
}

.newsletter-form button {
  padding: 12px 20px;
  background: var(--brand-primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.newsletter-form button:hover {
  background: #0369a1;
}

.footer-badges {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.footer-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  font-size: 12px;
  color: #94a3b8;
}

.footer-badge svg {
  width: 20px;
  height: 20px;
}

.footer-middle {
  border-top: 1px solid rgba(255,255,255,0.1);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding: 24px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-payments {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-payments span {
  font-size: 13px;
  color: #64748b;
}

.payment-icons {
  display: flex;
  gap: 8px;
}

.payment-icon {
  width: 48px;
  height: 30px;
  background: rgba(255,255,255,0.1);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
}

.footer-bottom {
  padding: 20px;
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-bottom p {
  font-size: 13px;
  color: #64748b;
  margin: 0;
}

.footer-bottom-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 12px;
}

.footer-bottom-links a {
  color: #64748b;
  text-decoration: none;
  font-size: 12px;
  transition: color 0.2s;
}

.footer-bottom-links a:hover {
  color: #fff;
}

/* ========== BREADCRUMB NAVIGATION ========== */
.breadcrumb {
  margin-bottom: 24px;
}

.breadcrumb-list {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 14px;
}

.breadcrumb-list li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.breadcrumb-list li:not(:last-child)::after {
  content: '›';
  color: #94a3b8;
  font-size: 16px;
}

.breadcrumb-list a {
  color: var(--brand-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumb-list a:hover {
  color: var(--brand-primary);
}

.breadcrumb-list li.current span {
  color: var(--brand-ink);
  font-weight: 600;
}

/* ========== SKELETON LOADING ========== */
.skeleton {
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: var(--radius-md);
}

@keyframes skeleton-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.skeleton-card {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--brand-border);
  overflow: hidden;
}

.skeleton-image {
  width: 100%;
  height: 220px;
}

.skeleton-text {
  height: 16px;
  margin: 16px;
}

.skeleton-text.short {
  width: 60%;
}

.skeleton-text.price {
  height: 24px;
  width: 40%;
}

/* ========== RECENTLY VIEWED ========== */
.recently-viewed-section {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
}

.recently-viewed-section h2 {
  font-size: 22px;
  margin: 0 0 20px;
  font-weight: 700;
}

.recently-viewed-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}

.recently-viewed-item {
  background: #fff;
  border: 1px solid var(--brand-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  transition: all 0.2s;
}

.recently-viewed-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--brand-primary);
}

.recently-viewed-item img {
  width: 100%;
  height: 140px;
  object-fit: cover;
}

.recently-viewed-item .item-info {
  padding: 12px;
}

.recently-viewed-item .item-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--brand-ink);
  margin: 0 0 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.recently-viewed-item .item-price {
  font-size: 16px;
  font-weight: 700;
  color: var(--brand-primary);
}

/* ========== STOCK NOTIFICATION ========== */
.stock-notify-form {
  background: #fef3c7;
  border: 1px solid #fcd34d;
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-top: 16px;
}

.stock-notify-form h4 {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 700;
  color: #92400e;
}

.stock-notify-form p {
  font-size: 13px;
  color: #a16207;
  margin: 0 0 12px;
}

.stock-notify-form .input-group {
  display: flex;
  gap: 8px;
}

.stock-notify-form input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid #fcd34d;
  border-radius: var(--radius-md);
  font-size: 14px;
}

.stock-notify-form button {
  padding: 10px 16px;
  background: #f59e0b;
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.stock-notify-form button:hover {
  background: #d97706;
}

/* ========== 404 PAGE ========== */
.error-page {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
}

.error-page .error-code {
  font-size: 120px;
  font-weight: 900;
  color: var(--brand-primary);
  line-height: 1;
  margin-bottom: 16px;
  font-family: var(--font-display);
}

.error-page h1 {
  font-size: 28px;
  margin: 0 0 12px;
}

.error-page p {
  color: var(--brand-muted);
  font-size: 16px;
  margin: 0 0 24px;
  max-width: 400px;
}

.error-page .error-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ========== PASSWORD RESET ========== */
.forgot-password-link {
  display: block;
  text-align: right;
  margin-top: -10px;
  margin-bottom: 16px;
  font-size: 13px;
  color: var(--brand-primary);
  text-decoration: none;
}

.forgot-password-link:hover {
  text-decoration: underline;
}
