/* ===========================
   SOLEBOX – Global Styles
   =========================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Inter:wght@300;400;500;600;700&display=swap');

/* ---------- CSS Variables ---------- */
:root {
  --primary: #0d0d1a;
  --secondary: #1a1a2e;
  --accent: #e94560;
  --accent-dark: #c73652;
  --accent-light: #ff6b8a;
  --gold: #f4c430;
  --gold-dark: #d4a820;
  --white: #ffffff;
  --off-white: #f8f9fc;
  --gray-50: #f0f2f7;
  --gray-100: #e8eaf0;
  --gray-200: #d0d4e0;
  --gray-400: #9aa0b8;
  --gray-600: #5a6282;
  --gray-800: #2d2f3e;
  --text-primary: #1a1a2e;
  --text-secondary: #5a6282;
  --text-muted: #9aa0b8;
  --border: #e8eaf0;

  --font-head: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.10);
  --shadow-lg: 0 16px 48px rgba(0,0,0,0.14);
  --shadow-accent: 0 8px 24px rgba(233,69,96,0.30);
  --shadow-card: 0 4px 20px rgba(0,0,0,0.08);

  --transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
  --transition-slow: all 0.5s cubic-bezier(0.4,0,0.2,1);

  --nav-height: 72px;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--white);
  line-height: 1.65;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; object-fit: cover; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.15rem; }
p { color: var(--text-secondary); }

/* ---------- Container ---------- */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-full);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
  box-shadow: var(--shadow-accent);
}
.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(233,69,96,0.40);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}
.btn-outline:hover {
  background: var(--accent);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-dark {
  background: var(--primary);
  color: var(--white);
  box-shadow: var(--shadow-md);
}
.btn-dark:hover {
  background: var(--secondary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-gold {
  background: var(--gold);
  color: var(--primary);
  font-weight: 700;
}
.btn-gold:hover {
  background: var(--gold-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(244,196,48,0.40);
}

.btn-sm { padding: 8px 20px; font-size: 0.82rem; }
.btn-lg { padding: 16px 40px; font-size: 1rem; }

/* ---------- Badges ---------- */
.badge {
  display: inline-block;
  padding: 3px 12px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.badge-accent { background: rgba(233,69,96,0.12); color: var(--accent); }
.badge-gold { background: rgba(244,196,48,0.15); color: var(--gold-dark); }
.badge-dark { background: var(--primary); color: var(--white); }
.badge-green { background: rgba(34,197,94,0.12); color: #16a34a; }

/* ---------- Section Headers ---------- */
.section-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.section-title {
  font-family: var(--font-head);
  font-weight: 800;
  margin-bottom: 16px;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 560px;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}
.section-header .section-subtitle { margin: 0 auto; }

/* ---------- Product Cards ---------- */
.product-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
  position: relative;
  border: 1px solid var(--border);
}
.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.product-card-img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1/1;
  background: var(--gray-50);
}
.product-card-img img {
  width: 100%;
  height: 100%;
  transition: transform 0.5s cubic-bezier(0.4,0,0.2,1);
}
.product-card:hover .product-card-img img { transform: scale(1.08); }

.product-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(13,13,26,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}
.product-card:hover .product-card-overlay { opacity: 1; }

.product-card-body { padding: 18px; }

.product-card-category {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent);
  margin-bottom: 6px;
}

.product-card-name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 8px;
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card-price {
  display: flex;
  align-items: center;
  gap: 10px;
}
.price-current {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--accent);
}
.price-original {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: line-through;
}
.price-discount {
  font-size: 0.72rem;
  font-weight: 700;
  color: #16a34a;
  background: rgba(34,197,94,0.1);
  padding: 2px 6px;
  border-radius: var(--radius-full);
}

.product-card-wishlist {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  background: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  opacity: 0;
  cursor: pointer;
}
.product-card:hover .product-card-wishlist { opacity: 1; }
.product-card-wishlist:hover { background: var(--accent); color: var(--white); }

/* ---------- Star Rating ---------- */
.stars { display: flex; gap: 2px; align-items: center; }
.star { color: var(--gold); font-size: 0.85rem; }
.star.empty { color: var(--gray-200); }
.rating-count { font-size: 0.78rem; color: var(--text-muted); margin-left: 4px; }

/* ---------- Toast ---------- */
.toast-container {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--primary);
  color: var(--white);
  padding: 14px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  min-width: 280px;
  font-size: 0.9rem;
  font-weight: 500;
  animation: toastIn 0.4s cubic-bezier(0.4,0,0.2,1);
  border-left: 4px solid var(--accent);
}
.toast.success { border-left-color: #22c55e; }
.toast.info { border-left-color: #3b82f6; }
.toast.warning { border-left-color: var(--gold); }
.toast-icon { font-size: 1.2rem; }
.toast-out { animation: toastOut 0.3s cubic-bezier(0.4,0,0.2,1) forwards; }

@keyframes toastIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
@keyframes toastOut {
  from { transform: translateX(0); opacity: 1; }
  to { transform: translateX(120%); opacity: 0; }
}

/* ---------- Scroll Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-left.visible { opacity: 1; transform: translateX(0); }
.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-right.visible { opacity: 1; transform: translateX(0); }

/* ---------- Loading Spinner ---------- */
.page-loader {
  position: fixed;
  inset: 0;
  background: var(--primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
.page-loader.hidden { opacity: 0; visibility: hidden; }
.loader-logo {
  font-family: var(--font-head);
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--white);
  letter-spacing: -1px;
  margin-bottom: 24px;
}
.loader-logo span { color: var(--accent); }
.loader-spinner {
  width: 44px;
  height: 44px;
  border: 4px solid rgba(255,255,255,0.15);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: 20px 0;
}
.breadcrumb a { color: var(--text-muted); transition: var(--transition); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb-sep { color: var(--gray-200); }
.breadcrumb-current { color: var(--text-primary); font-weight: 500; }

/* ---------- Empty State ---------- */
.empty-state {
  text-align: center;
  padding: 80px 24px;
}
.empty-state-icon { font-size: 4rem; margin-bottom: 20px; opacity: 0.5; }
.empty-state h3 { margin-bottom: 10px; }
.empty-state p { margin-bottom: 24px; }

/* ---------- Divider ---------- */
.divider {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  border-radius: var(--radius-full);
  margin: 12px auto 0;
}

/* ---------- Responsive Utilities ---------- */
@media (max-width: 768px) {
  .container { padding: 0 16px; }
  .hide-mobile { display: none !important; }
}
@media (max-width: 480px) {
  .btn-lg { padding: 14px 28px; }
}
