/* ============================================================
   Online Sports Fitness — Main Stylesheet
   ============================================================ */

:root {
  --primary: #ff1a1a;
  --primary-dark: #cc0000;
  --primary-light: #ff4d4d;
  --black: #0a0a0a;
  --white: #ffffff;
  --grey: #f5f5f5;
  --light-grey: #e8e8e8;
  --mid-grey: #9ca3af;
  --dark-grey: #374151;
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;
  --shadow: 0 4px 24px rgba(0,0,0,.08);
  --shadow-lg: 0 12px 48px rgba(0,0,0,.15);
  --shadow-red: 0 8px 32px rgba(255,26,26,.25);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --transition: all .3s cubic-bezier(.4,0,.2,1);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--white); color: var(--black); line-height: 1.6; overflow-x: hidden; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* ── Layout ── */
.container { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }
.section-header { text-align: center; margin-bottom: 3rem; }
.section-header h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 800; margin-bottom: .75rem; }
.section-header p { color: var(--mid-grey); font-size: 1.1rem; }
.section-label { display: inline-block; color: var(--primary); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: .85rem; margin-bottom: .5rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-1 { gap: .5rem; }
.gap-2 { gap: 1rem; }
.text-center { text-align: center; }
.text-red { color: var(--primary); }
.fw-bold { font-weight: 700; }
.mb-1 { margin-bottom: .5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .8rem 2rem; border-radius: var(--radius-sm); font-weight: 700;
  font-size: .95rem; transition: var(--transition); letter-spacing: .03em; cursor: pointer;
}
.btn-primary { background: var(--primary); color: var(--white); box-shadow: var(--shadow-red); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 12px 40px rgba(255,26,26,.4); }
.btn-black { background: var(--black); color: var(--white); }
.btn-black:hover { background: #333; transform: translateY(-2px); }
.btn-outline { border: 2px solid var(--primary); color: var(--primary); background: transparent; }
.btn-outline:hover { background: var(--primary); color: var(--white); }
.btn-white { background: var(--white); color: var(--black); }
.btn-white:hover { background: var(--grey); }
.btn-sm { padding: .5rem 1.25rem; font-size: .85rem; }
.btn-lg { padding: 1.1rem 2.5rem; font-size: 1.1rem; }
.btn-full { width: 100%; }
.btn-icon { width: 44px; height: 44px; border-radius: 50%; padding: 0; }

/* ── Flash / Toast ── */
.flash-toast {
  position: fixed; top: 1.5rem; right: 1.5rem; z-index: 9999;
  padding: 1rem 1.5rem; border-radius: var(--radius-sm); font-weight: 600;
  display: flex; align-items: center; gap: .75rem; box-shadow: var(--shadow-lg);
  animation: slideInRight .4s ease;
}
.flash-success { background: #d1fae5; color: #065f46; }
.flash-error   { background: #fee2e2; color: #991b1b; }
@keyframes slideInRight { from { opacity:0; transform: translateX(100%); } to { opacity:1; transform:translateX(0); } }

/* ── Header ── */
.header-top { background: var(--black); color: #aaa; font-size: .82rem; padding: .5rem 0; }
.header-top .container { display: flex; align-items: center; gap: 2rem; }
.header-top span { display: flex; align-items: center; gap: .4rem; }
.header-top a { color: #ccc; }
.header-top a:hover { color: var(--primary); }
.header-top-right { margin-left: auto; display: flex; gap: 1rem; }

.site-header { position: sticky; top: 0; z-index: 900; }
.navbar { background: var(--white); box-shadow: 0 2px 20px rgba(0,0,0,.08); }
.nav-inner { display: flex; align-items: center; gap: 2rem; padding: .9rem 1.5rem; }

.logo { display: flex; align-items: center; gap: .75rem; flex-shrink: 0; }
.logo-osf {
  background: linear-gradient(135deg, var(--primary), #cc0000);
  color: #fff; font-weight: 900; font-size: 1.4rem; padding: .3rem .6rem;
  border-radius: var(--radius-sm); letter-spacing: -.02em;
}
.logo-text { font-size: .95rem; font-weight: 600; line-height: 1.2; }

.nav-links { display: flex; align-items: center; gap: .25rem; margin: 0 auto; }
.nav-links > li { position: relative; }
.nav-links > li > a {
  padding: .6rem 1rem; border-radius: var(--radius-sm); font-weight: 600;
  font-size: .9rem; color: var(--dark-grey); transition: var(--transition);
}
.nav-links > li > a:hover, .nav-links > li > a.active { color: var(--primary); background: #fff5f5; }
.has-dropdown:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown {
  position: absolute; top: calc(100% + .5rem); left: 0; min-width: 200px;
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: .5rem; opacity: 0; visibility: hidden; transform: translateY(-10px);
  transition: var(--transition); z-index: 100;
}
.dropdown li a { display: block; padding: .6rem 1rem; border-radius: var(--radius-sm); font-size: .9rem; }
.dropdown li a:hover { background: #fff5f5; color: var(--primary); }

.nav-actions { display: flex; align-items: center; gap: .5rem; flex-shrink: 0; }
.nav-icon {
  display: flex; align-items: center; justify-content: center; width: 44px; height: 44px;
  border-radius: 50%; font-size: 1.1rem; color: var(--dark-grey); transition: var(--transition);
  position: relative;
}
.nav-icon:hover { background: #fff5f5; color: var(--primary); }
.cart-count {
  position: absolute; top: 2px; right: 2px; background: var(--primary); color: #fff;
  border-radius: 50%; width: 18px; height: 18px; font-size: .7rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.hamburger { display: none; width: 44px; height: 44px; border-radius: var(--radius-sm); }
.hamburger:hover { background: var(--grey); }

/* ── Hero Section ── */
.hero {
  min-height: 90vh; background: linear-gradient(135deg, #0a0a0a 0%, #1a0000 50%, #0a0a0a 100%);
  display: flex; align-items: center; position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -50%; right: -20%; width: 70%; height: 200%;
  background: radial-gradient(ellipse, rgba(255,26,26,.15) 0%, transparent 70%); pointer-events: none;
}
.hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; padding: 4rem 0; }
.hero-badge {
  display: inline-flex; align-items: center; gap: .5rem; background: rgba(255,26,26,.15);
  border: 1px solid rgba(255,26,26,.3); color: var(--primary-light); border-radius: 50px;
  padding: .35rem 1rem; font-size: .85rem; font-weight: 600; margin-bottom: 1.5rem;
}
.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 900; color: var(--white);
  line-height: 1.1; margin-bottom: 1.5rem; letter-spacing: -.03em;
}
.hero h1 span { color: var(--primary); display: block; }
.hero p { color: #aaa; font-size: 1.1rem; margin-bottom: 2rem; max-width: 480px; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 2rem; margin-top: 3rem; }
.hero-stat { text-align: center; }
.hero-stat strong { display: block; font-size: 1.8rem; font-weight: 900; color: var(--white); }
.hero-stat span { font-size: .8rem; color: #666; text-transform: uppercase; letter-spacing: .05em; }
.hero-img-wrap { position: relative; display: flex; align-items: center; justify-content: center; }
.hero-img-glow {
  width: 450px; height: 450px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,26,26,.2) 0%, transparent 70%);
  display: flex; align-items: center; justify-content: center;
}

/* ── Product Card ── */
.product-card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: var(--transition); position: relative; border: 1px solid var(--light-grey);
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.product-img {
  position: relative; background: var(--grey); aspect-ratio: 1; overflow: hidden; cursor: pointer;
}
.product-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.product-card:hover .product-img img { transform: scale(1.06); }
.product-badges { position: absolute; top: .75rem; left: .75rem; display: flex; flex-direction: column; gap: .35rem; }
.badge {
  display: inline-block; padding: .2rem .65rem; border-radius: 50px; font-size: .72rem;
  font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
}
.badge-sale { background: var(--primary); color: var(--white); }
.badge-new { background: var(--success); color: var(--white); }
.badge-hot { background: #f59e0b; color: var(--white); }
.product-actions {
  position: absolute; top: .75rem; right: .75rem; display: flex; flex-direction: column; gap: .5rem;
  opacity: 0; transform: translateX(10px); transition: var(--transition);
}
.product-card:hover .product-actions { opacity: 1; transform: translateX(0); }
.product-action-btn {
  width: 38px; height: 38px; border-radius: 50%; background: var(--white);
  box-shadow: 0 2px 10px rgba(0,0,0,.1); display: flex; align-items: center; justify-content: center;
  font-size: .9rem; transition: var(--transition);
}
.product-action-btn:hover { background: var(--primary); color: var(--white); }
.product-info { padding: 1.25rem; }
.product-category { font-size: .78rem; color: var(--mid-grey); text-transform: uppercase; letter-spacing: .05em; margin-bottom: .35rem; }
.product-name { font-weight: 700; font-size: .95rem; margin-bottom: .75rem; color: var(--black); line-height: 1.3; }
.product-name a:hover { color: var(--primary); }
.product-price { display: flex; align-items: center; gap: .75rem; }
.price-sale { font-size: 1.1rem; font-weight: 800; color: var(--primary); }
.price-original { font-size: .9rem; color: var(--mid-grey); text-decoration: line-through; }
.price-regular { font-size: 1.1rem; font-weight: 800; color: var(--black); }
.product-footer { padding: 0 1.25rem 1.25rem; }
.add-cart-btn { width: 100%; }

/* ── Category Card ── */
.category-card {
  border-radius: var(--radius); overflow: hidden; position: relative; aspect-ratio: 4/3;
  cursor: pointer; transition: var(--transition);
}
.category-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.category-img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.category-card:hover .category-img { transform: scale(1.08); }
.category-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.8) 0%, rgba(0,0,0,.2) 60%, transparent 100%);
}
.category-info { position: absolute; bottom: 1.5rem; left: 1.5rem; color: var(--white); }
.category-info h3 { font-size: 1.2rem; font-weight: 700; }
.category-info span { font-size: .85rem; color: #ccc; }

/* ── Stats ── */
.stats-section { background: var(--black); padding: 4rem 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 2rem; }
.stat-item { text-align: center; }
.stat-number { font-size: 3rem; font-weight: 900; color: var(--primary); line-height: 1; margin-bottom: .5rem; }
.stat-label { color: #aaa; font-size: .9rem; text-transform: uppercase; letter-spacing: .05em; }

/* ── Deal of Day ── */
.deal-section { background: linear-gradient(135deg, #0a0a0a, #1a0000); padding: 5rem 0; }
.deal-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.deal-img { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-red); }
.deal-img img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.deal-content { color: var(--white); }
.deal-content h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 900; margin-bottom: 1rem; }
.deal-price { display: flex; gap: 1rem; align-items: center; margin: 1.5rem 0; }
.deal-price .price-sale { font-size: 2rem; color: var(--primary); }
.deal-price .price-original { font-size: 1.2rem; color: #666; }
.countdown { display: flex; gap: 1rem; margin: 1.5rem 0; }
.countdown-item { text-align: center; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius-sm); padding: .75rem 1.25rem; min-width: 70px; }
.countdown-item strong { display: block; font-size: 1.8rem; font-weight: 900; line-height: 1; }
.countdown-item span { font-size: .7rem; color: #888; text-transform: uppercase; }

/* ── Page Hero ── */
.page-hero { background: linear-gradient(135deg, var(--black), #1a0000); padding: 4rem 0; text-align: center; color: var(--white); }
.page-hero h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 900; margin-bottom: .75rem; }
.page-hero p { color: #aaa; font-size: 1.1rem; }
.breadcrumb { display: flex; justify-content: center; gap: .5rem; color: #888; font-size: .9rem; margin-top: 1rem; }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span { color: #555; }

/* ── Forms ── */
.form-group { margin-bottom: 1.25rem; }
.form-label { display: block; font-weight: 600; margin-bottom: .5rem; font-size: .9rem; color: var(--dark-grey); }
.form-control {
  width: 100%; padding: .85rem 1rem; border: 2px solid var(--light-grey); border-radius: var(--radius-sm);
  font-size: .95rem; transition: var(--transition); background: var(--white);
}
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(255,26,26,.1); }
.form-control::placeholder { color: #c0c0c0; }
textarea.form-control { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-hint { font-size: .8rem; color: var(--mid-grey); margin-top: .25rem; }
.form-error { font-size: .8rem; color: var(--error); margin-top: .25rem; }

/* ── Card generic ── */
.card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 2rem; border: 1px solid var(--light-grey); }
.card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; padding-bottom: 1rem; border-bottom: 1px solid var(--light-grey); }
.card-header h3 { font-size: 1.1rem; font-weight: 700; }

/* ── Auth pages ── */
.auth-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--grey); padding: 2rem; }
.auth-card { width: 100%; max-width: 460px; background: var(--white); border-radius: var(--radius-lg); padding: 3rem 2.5rem; box-shadow: var(--shadow-lg); }
.auth-logo { text-align: center; margin-bottom: 2rem; }
.auth-logo .logo-osf { font-size: 2rem; margin: 0 auto .5rem; display: inline-block; }
.auth-card h2 { font-size: 1.6rem; font-weight: 800; text-align: center; margin-bottom: .5rem; }
.auth-card p { text-align: center; color: var(--mid-grey); margin-bottom: 2rem; }
.auth-divider { text-align: center; position: relative; margin: 1.5rem 0; color: var(--mid-grey); font-size: .85rem; }
.auth-divider::before, .auth-divider::after { content: ''; position: absolute; top: 50%; width: 42%; height: 1px; background: var(--light-grey); }
.auth-divider::before { left: 0; }
.auth-divider::after { right: 0; }

/* ── Shop/Filters ── */
.shop-layout { display: grid; grid-template-columns: 260px 1fr; gap: 2rem; padding: 2rem 0; }
.filter-sidebar { position: sticky; top: 120px; height: fit-content; }
.filter-block { background: var(--white); border-radius: var(--radius); border: 1px solid var(--light-grey); overflow: hidden; margin-bottom: 1rem; }
.filter-block-header { padding: 1rem 1.25rem; font-weight: 700; border-bottom: 1px solid var(--light-grey); display: flex; justify-content: space-between; align-items: center; cursor: pointer; }
.filter-block-body { padding: 1.25rem; }
.filter-option { display: flex; align-items: center; gap: .5rem; margin-bottom: .6rem; cursor: pointer; font-size: .9rem; }
.filter-option input { width: 16px; height: 16px; accent-color: var(--primary); }
.products-toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; }
.products-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }

/* ── Product detail ── */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; padding: 3rem 0; align-items: start; }
.product-gallery { position: sticky; top: 120px; }
.gallery-main { border-radius: var(--radius); overflow: hidden; background: var(--grey); aspect-ratio: 1; margin-bottom: 1rem; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; padding: 2rem; }
.gallery-thumbs { display: flex; gap: .5rem; }
.gallery-thumb { width: 80px; height: 80px; border-radius: var(--radius-sm); border: 2px solid var(--light-grey); overflow: hidden; cursor: pointer; transition: var(--transition); }
.gallery-thumb:hover, .gallery-thumb.active { border-color: var(--primary); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-title { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 800; margin-bottom: .5rem; }
.product-rating { display: flex; align-items: center; gap: .5rem; margin-bottom: 1rem; color: #f59e0b; }
.product-price-detail { margin: 1.5rem 0; }
.product-price-detail .price-sale { font-size: 2rem; }
.variant-label { font-weight: 700; margin-bottom: .5rem; font-size: .95rem; }
.variant-options { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.variant-btn { padding: .5rem 1.25rem; border: 2px solid var(--light-grey); border-radius: 50px; font-size: .85rem; font-weight: 600; transition: var(--transition); }
.variant-btn:hover, .variant-btn.active { border-color: var(--primary); color: var(--primary); background: #fff5f5; }
.qty-control { display: flex; align-items: center; gap: 0; border: 2px solid var(--light-grey); border-radius: var(--radius-sm); overflow: hidden; width: fit-content; }
.qty-btn { width: 44px; height: 44px; font-size: 1.1rem; font-weight: 700; transition: var(--transition); }
.qty-btn:hover { background: var(--primary); color: var(--white); }
.qty-input { width: 60px; height: 44px; text-align: center; border: none; border-left: 2px solid var(--light-grey); border-right: 2px solid var(--light-grey); font-size: 1rem; font-weight: 700; }
.product-cta { display: flex; gap: 1rem; margin: 1.5rem 0; }

/* ── Cart ── */
.cart-page { display: grid; grid-template-columns: 1fr 360px; gap: 2rem; padding: 2rem 0; }
.cart-item { display: flex; gap: 1rem; padding: 1.25rem; background: var(--white); border-radius: var(--radius); border: 1px solid var(--light-grey); margin-bottom: 1rem; }
.cart-item-img { width: 90px; height: 90px; border-radius: var(--radius-sm); overflow: hidden; flex-shrink: 0; background: var(--grey); }
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-info { flex: 1; }
.cart-item-name { font-weight: 700; margin-bottom: .25rem; }
.cart-item-meta { font-size: .85rem; color: var(--mid-grey); margin-bottom: .75rem; }
.cart-item-bottom { display: flex; align-items: center; justify-content: space-between; }
.cart-summary { background: var(--white); border-radius: var(--radius); border: 1px solid var(--light-grey); padding: 1.5rem; height: fit-content; position: sticky; top: 120px; }
.summary-row { display: flex; justify-content: space-between; padding: .75rem 0; border-bottom: 1px solid var(--light-grey); font-size: .95rem; }
.summary-row:last-child { border-bottom: none; font-weight: 800; font-size: 1.1rem; }
.coupon-input { display: flex; gap: .5rem; margin: 1rem 0; }

/* ── Cart Sidebar ── */
.cart-sidebar {
  position: fixed; right: -400px; top: 0; height: 100vh; width: 380px; background: var(--white);
  box-shadow: -8px 0 40px rgba(0,0,0,.15); z-index: 1000; display: flex; flex-direction: column;
  transition: right .3s ease;
}
.cart-sidebar.open { right: 0; }
.cart-sidebar-header { display: flex; align-items: center; justify-content: space-between; padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--light-grey); font-weight: 700; font-size: 1.1rem; }
.cart-sidebar-body { flex: 1; overflow-y: auto; padding: 1rem 1.5rem; }
.cart-sidebar-footer { padding: 1.25rem 1.5rem; border-top: 1px solid var(--light-grey); }
.overlay { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 999; opacity: 0; visibility: hidden; transition: var(--transition); }
.overlay.show { opacity: 1; visibility: visible; }

/* ── Admin Panel ── */
.admin-layout { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }
.admin-sidebar { background: var(--black); color: var(--white); padding: 0; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.admin-logo { padding: 1.5rem; border-bottom: 1px solid rgba(255,255,255,.1); display: flex; align-items: center; gap: .75rem; }
.admin-nav { padding: 1rem 0; }
.admin-nav-group { margin-bottom: 1.5rem; }
.admin-nav-group-label { padding: .5rem 1.25rem; font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: #666; font-weight: 700; }
.admin-nav a { display: flex; align-items: center; gap: .75rem; padding: .7rem 1.25rem; color: #aaa; font-size: .9rem; font-weight: 500; transition: var(--transition); }
.admin-nav a:hover, .admin-nav a.active { color: var(--white); background: rgba(255,255,255,.07); padding-left: 1.5rem; }
.admin-nav a.active { border-left: 3px solid var(--primary); color: var(--primary); }
.admin-nav a i { width: 20px; text-align: center; }
.admin-content { padding: 2rem; background: #f9fafb; overflow-y: auto; }
.admin-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 2rem; }
.admin-header h1 { font-size: 1.5rem; font-weight: 800; }
.stats-cards { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.5rem; margin-bottom: 2rem; }
.stat-card { background: var(--white); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); border: 1px solid var(--light-grey); }
.stat-card-icon { width: 52px; height: 52px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; margin-bottom: 1rem; }
.stat-card-icon.red { background: #fff5f5; color: var(--primary); }
.stat-card-icon.blue { background: #eff6ff; color: #3b82f6; }
.stat-card-icon.green { background: #f0fdf4; color: #22c55e; }
.stat-card-icon.yellow { background: #fffbeb; color: #f59e0b; }
.stat-card h3 { font-size: 1.8rem; font-weight: 800; margin-bottom: .25rem; }
.stat-card p { color: var(--mid-grey); font-size: .85rem; }

/* ── Table ── */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--light-grey); }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th { background: var(--grey); padding: .75rem 1rem; text-align: left; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--dark-grey); border-bottom: 1px solid var(--light-grey); white-space: nowrap; }
.data-table td { padding: .85rem 1rem; border-bottom: 1px solid var(--light-grey); font-size: .9rem; vertical-align: middle; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: #fafafa; }
.status-badge { display: inline-block; padding: .25rem .75rem; border-radius: 50px; font-size: .75rem; font-weight: 700; text-transform: uppercase; }
.status-pending  { background: #fef3c7; color: #92400e; }
.status-approved { background: #d1fae5; color: #065f46; }
.status-rejected { background: #fee2e2; color: #991b1b; }
.status-processing { background: #dbeafe; color: #1e40af; }
.status-shipped  { background: #e0e7ff; color: #3730a3; }
.status-delivered{ background: #d1fae5; color: #065f46; }

/* ── Blog ── */
.blog-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--light-grey); transition: var(--transition); }
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.blog-img { aspect-ratio: 16/9; overflow: hidden; background: var(--grey); }
.blog-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.blog-card:hover .blog-img img { transform: scale(1.05); }
.blog-info { padding: 1.5rem; }
.blog-meta { display: flex; gap: 1rem; font-size: .82rem; color: var(--mid-grey); margin-bottom: .75rem; }
.blog-title { font-size: 1.1rem; font-weight: 700; margin-bottom: .75rem; line-height: 1.4; }
.blog-title a:hover { color: var(--primary); }

/* ── Services ── */
.service-card { text-align: center; padding: 2.5rem 2rem; background: var(--white); border-radius: var(--radius); border: 1px solid var(--light-grey); box-shadow: var(--shadow); transition: var(--transition); }
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--primary); }
.service-icon { width: 72px; height: 72px; border-radius: 50%; background: #fff5f5; display: flex; align-items: center; justify-content: center; margin: 0 auto 1.5rem; font-size: 1.8rem; color: var(--primary); transition: var(--transition); }
.service-card:hover .service-icon { background: var(--primary); color: var(--white); }
.service-card h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: .75rem; }
.service-card p { color: var(--mid-grey); font-size: .9rem; }

/* ── Testimonials ── */
.testimonial-card { background: var(--white); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow); border: 1px solid var(--light-grey); }
.testimonial-stars { color: #f59e0b; margin-bottom: 1rem; }
.testimonial-text { font-size: .95rem; color: var(--dark-grey); line-height: 1.7; margin-bottom: 1.5rem; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: .75rem; }
.testimonial-avatar { width: 48px; height: 48px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), #cc0000); display: flex; align-items: center; justify-content: center; color: var(--white); font-weight: 700; }
.testimonial-name { font-weight: 700; font-size: .9rem; }
.testimonial-role { font-size: .8rem; color: var(--mid-grey); }

/* ── Profile ── */
.profile-layout { display: grid; grid-template-columns: 260px 1fr; gap: 2rem; padding: 2rem 0; }
.profile-sidebar-nav a { display: flex; align-items: center; gap: .75rem; padding: .85rem 1.25rem; border-radius: var(--radius-sm); font-size: .9rem; font-weight: 500; transition: var(--transition); color: var(--dark-grey); }
.profile-sidebar-nav a:hover, .profile-sidebar-nav a.active { background: #fff5f5; color: var(--primary); }
.profile-sidebar-nav a i { width: 18px; text-align: center; }

/* ── B2B ── */
.b2b-hero { background: linear-gradient(135deg, var(--black), #0a0a2a); padding: 5rem 0; color: var(--white); text-align: center; }
.b2b-form-wrap { max-width: 700px; margin: 3rem auto 0; }
.upload-label { display: block; border: 2px dashed var(--light-grey); border-radius: var(--radius); padding: 2rem; text-align: center; cursor: pointer; transition: var(--transition); }
.upload-label:hover { border-color: var(--primary); background: #fff5f5; }
.upload-label i { font-size: 2rem; color: var(--mid-grey); margin-bottom: .75rem; }

/* ── Coupon ── */
.coupon-card { background: var(--white); border-radius: var(--radius); padding: 1.5rem; border: 2px dashed var(--light-grey); transition: var(--transition); display: flex; gap: 1rem; align-items: center; }
.coupon-card:hover { border-color: var(--primary); }
.coupon-icon { width: 56px; height: 56px; border-radius: 50%; background: #fff5f5; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; color: var(--primary); flex-shrink: 0; }
.coupon-code { font-family: monospace; font-size: 1.2rem; font-weight: 900; color: var(--primary); letter-spacing: .1em; }

/* ── Carousel ── */
.carousel-wrap { position: relative; overflow: hidden; }
.carousel-track { display: flex; transition: transform .4s ease; will-change: transform; }
.carousel-nav { position: absolute; top: 50%; transform: translateY(-50%); background: var(--white); border-radius: 50%; width: 44px; height: 44px; box-shadow: var(--shadow); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: var(--transition); z-index: 10; border: 1px solid var(--light-grey); }
.carousel-nav:hover { background: var(--primary); color: var(--white); }
.carousel-prev { left: -22px; }
.carousel-next { right: -22px; }

/* ── Footer ── */
.site-footer { background: var(--black); color: #ccc; }
.footer-top { padding: 4rem 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; }
.footer-logo { display: flex; align-items: center; gap: .75rem; margin-bottom: 1rem; font-size: 1.1rem; font-weight: 700; color: var(--white); }
.footer-about { font-size: .9rem; line-height: 1.7; margin-bottom: 1.5rem; color: #888; }
.social-links { display: flex; gap: .75rem; }
.social-link { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.07); display: flex; align-items: center; justify-content: center; transition: var(--transition); }
.social-link:hover { background: var(--primary); }
.footer-col h4 { color: var(--white); font-weight: 700; margin-bottom: 1.25rem; font-size: .95rem; }
.footer-col ul { display: flex; flex-direction: column; gap: .5rem; }
.footer-col ul a { color: #888; font-size: .9rem; }
.footer-col ul a:hover { color: var(--primary); padding-left: .25rem; }
.footer-col p { font-size: .85rem; color: #888; display: flex; align-items: center; gap: .5rem; margin-top: .5rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 1.5rem 0; }
.footer-bottom .container { display: flex; align-items: center; justify-content: space-between; font-size: .85rem; color: #666; }

/* ── Back to top ── */
.back-to-top {
  position: fixed; bottom: 2rem; right: 2rem; width: 48px; height: 48px; border-radius: 50%;
  background: var(--primary); color: var(--white); box-shadow: var(--shadow-red); font-size: 1rem;
  display: none; align-items: center; justify-content: center; transition: var(--transition); z-index: 500;
}
.back-to-top.show { display: flex; }
.back-to-top:hover { transform: translateY(-4px); }

/* ── Alerts ── */
.alert { padding: 1rem 1.5rem; border-radius: var(--radius-sm); margin-bottom: 1rem; font-size: .95rem; font-weight: 500; }
.alert-success { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }
.alert-error { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }
.alert-info { background: #dbeafe; color: #1e40af; border: 1px solid #93c5fd; }
.alert-warning { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }

/* ── Pagination ── */
.pagination { display: flex; justify-content: center; gap: .5rem; margin-top: 2rem; }
.page-btn { width: 40px; height: 40px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; border: 2px solid var(--light-grey); font-weight: 600; transition: var(--transition); font-size: .9rem; }
.page-btn:hover, .page-btn.active { border-color: var(--primary); background: var(--primary); color: var(--white); }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-img-wrap { display: none; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .stats-cards { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .products-grid { grid-template-columns: repeat(2,1fr); }
  .shop-layout { grid-template-columns: 1fr; }
  .filter-sidebar { position: static; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { height: auto; position: static; }
}
@media (max-width: 768px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .nav-links { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: var(--white); flex-direction: column; justify-content: center; align-items: center; z-index: 800; gap: 1rem; }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; }
  .deal-inner { grid-template-columns: 1fr; }
  .product-detail { grid-template-columns: 1fr; }
  .cart-page { grid-template-columns: 1fr; }
  .profile-layout { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: repeat(2,1fr); }
  .hero-stats { flex-wrap: wrap; gap: 1rem; }
}
@media (max-width: 480px) {
  .products-grid { grid-template-columns: 1fr; }
  .container { padding: 0 1rem; }
}

/* ── USP Section ── */
.usp-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.5rem; }
.usp-item { text-align: center; padding: 2rem 1rem; }
.usp-icon { font-size: 2.5rem; color: var(--primary); margin-bottom: 1rem; }
.usp-item h4 { font-weight: 700; margin-bottom: .5rem; }
.usp-item p { font-size: .88rem; color: var(--mid-grey); }

/* ── Checkbox/Radio ── */
.checkbox-label { display: flex; align-items: center; gap: .75rem; cursor: pointer; font-size: .95rem; }
.checkbox-label input { width: 18px; height: 18px; accent-color: var(--primary); }

/* ── Empty state ── */
.empty-state { text-align: center; padding: 4rem 2rem; }
.empty-state i { font-size: 4rem; color: var(--light-grey); margin-bottom: 1rem; }
.empty-state h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: .5rem; }
.empty-state p { color: var(--mid-grey); margin-bottom: 1.5rem; }

/* ── Spinner ── */
.spinner { width: 40px; height: 40px; border: 4px solid var(--light-grey); border-top-color: var(--primary); border-radius: 50%; animation: spin .7s linear infinite; margin: 0 auto; }
@keyframes spin { to { transform: rotate(360deg); } }
