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

:root {
  --primary: #f68b1e;
  --primary-dark: #e07d12;
  --primary-light: #fff3e0;
  --primary-50: #fff8f0;
  --secondary: #1a1a2e;
  --secondary-light: #2d2d4a;
  --accent: #00b894;
  --accent-light: #e6faf4;
  --accent-dark: #009b7a;
  --danger: #e94560;
  --danger-light: #fde8ec;
  --text: #1a1a2e;
  --text-light: #636e72;
  --text-muted: #b2bec3;
  --bg: #f4f5f7;
  --bg-card: #ffffff;
  --border: #e8eaed;
  --border-light: #f0f1f3;
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.06), 0 2px 4px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08), 0 4px 8px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.1), 0 8px 16px rgba(0, 0, 0, 0.06);
  --shadow-xl: 0 24px 60px rgba(0, 0, 0, 0.14);
  --shadow-glow: 0 0 0 3px rgba(246, 139, 30, 0.15);
  --radius: 8px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 18px;
  --max-width: 1240px;
  --header-height: 72px;
  --topbar-height: 38px;
  --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  padding-top: calc(var(--header-height) + var(--topbar-height));
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  cursor: pointer;
  font-family: inherit;
}

input,
select,
textarea {
  font-family: inherit;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

/* ── Animations ── */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

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

@keyframes slideUp {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(-16px) scale(0.96); }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

@keyframes shimmer {
  0% { background-position: -400px 0; }
  100% { background-position: calc(400px + 100%) 0; }
}

@keyframes cartBounce {
  0% { transform: scale(1); }
  25% { transform: scale(1.3) rotate(-8deg); }
  50% { transform: scale(0.95) rotate(4deg); }
  75% { transform: scale(1.1) rotate(-2deg); }
  100% { transform: scale(1) rotate(0); }
}

@keyframes checkmark {
  0% { stroke-dashoffset: 50; }
  100% { stroke-dashoffset: 0; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes ripple {
  to { transform: scale(4); opacity: 0; }
}

@keyframes badgePop {
  0% { transform: scale(0); }
  60% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

.animate-in {
  animation: fadeIn 0.5s ease both;
}

.animate-slide-up {
  animation: fadeInUp 0.6s ease both;
}

.animate-scale {
  animation: scaleIn 0.35s ease both;
}

/* ── Skeleton Loading ── */
.skeleton {
  background: linear-gradient(90deg, #e8eaed 25%, #f0f1f3 50%, #e8eaed 75%);
  background-size: 400px 100%;
  animation: shimmer 1.8s infinite;
  border-radius: var(--radius);
}

.skeleton-text {
  height: 14px;
  margin-bottom: 10px;
  width: 100%;
}

.skeleton-text-sm {
  height: 12px;
  width: 60%;
  margin-bottom: 8px;
}

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

.skeleton-price {
  height: 22px;
  width: 40%;
  margin-bottom: 14px;
}

/* ── Toast Notifications ── */
.toast-container {
  position: fixed;
  top: calc(var(--header-height) + var(--topbar-height) + 16px);
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  font-size: 14px;
  font-weight: 500;
  min-width: 320px;
  max-width: 440px;
  animation: slideDown 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform-origin: top right;
  border: 1px solid var(--border-light);
}

.toast.toast-success { border-left: 4px solid var(--accent); }
.toast.toast-error { border-left: 4px solid var(--danger); }
.toast.toast-info { border-left: 4px solid var(--primary); }

.toast .toast-icon {
  font-size: 22px;
  flex-shrink: 0;
  line-height: 1;
}

.toast .toast-close {
  margin-left: auto;
  background: none;
  border: none;
  font-size: 20px;
  color: var(--text-muted);
  padding: 0 4px;
  cursor: pointer;
  line-height: 1;
  transition: color var(--transition);
}

.toast .toast-close:hover { color: var(--text); }

.toast.removing {
  animation: slideUp 0.3s ease forwards;
}

/* ── Top Bar ── */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--topbar-height);
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  color: rgba(255, 255, 255, 0.85);
  font-size: 12px;
  font-weight: 500;
  z-index: 1001;
  display: flex;
  align-items: center;
  letter-spacing: 0.01em;
}

.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.topbar-links {
  display: flex;
  gap: 24px;
}

.topbar-links a {
  opacity: 0.75;
  transition: opacity var(--transition);
  text-decoration: none;
}

.topbar-links a:hover { opacity: 1; }

/* ── Header / Nav ── */
.header {
  position: fixed;
  top: var(--topbar-height);
  left: 0;
  right: 0;
  height: var(--header-height);
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
  z-index: 1000;
  display: flex;
  align-items: center;
}

.header::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 10%;
  right: 10%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--primary), var(--secondary), transparent);
  border-radius: 2px;
}

.header .container {
  display: flex;
  align-items: center;
  gap: 28px;
  width: 100%;
}

.logo {
  font-size: 28px;
  font-weight: 800;
  color: var(--primary);
  flex-shrink: 0;
  letter-spacing: -0.75px;
  line-height: 1;
  text-decoration: none;
  position: relative;
}

.logo span { color: var(--secondary); }

.logo:hover { opacity: 0.9; }

.search-bar {
  flex: 1;
  display: flex;
  max-width: 520px;
  position: relative;
}

.search-bar input {
  flex: 1;
  padding: 11px 18px;
  border: 2px solid var(--border);
  border-right: none;
  border-radius: var(--radius) 0 0 var(--radius);
  font-size: 14px;
  outline: none;
  background: var(--bg);
  transition: all var(--transition);
}

.search-bar input:focus {
  border-color: var(--primary);
  background: var(--bg-card);
  box-shadow: var(--shadow-glow);
}

.search-bar button {
  padding: 11px 22px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-weight: 600;
  font-size: 14px;
  transition: background var(--transition);
  white-space: nowrap;
}

.search-bar button:hover { background: var(--primary-dark); }

.search-bar button:active { transform: scale(0.97); }

.search-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 44px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  box-shadow: var(--shadow-md);
  z-index: 100;
  max-height: 360px;
  overflow-y: auto;
  display: none;
}

.search-suggestions.active { display: block; }

.search-suggestion {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
  font-size: 14px;
  cursor: pointer;
  transition: background var(--transition);
  border-bottom: 1px solid var(--border-light);
}

.search-suggestion:last-child { border-bottom: none; }

.search-suggestion:hover { background: var(--primary-50); }

.search-suggestion img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 6px;
  background: var(--bg);
}

.search-suggestion .suggestion-name { flex: 1; font-weight: 500; }

.search-suggestion .suggestion-price {
  font-weight: 700;
  color: var(--danger);
  font-size: 13px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}

.header-action {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  padding: 10px 14px;
  border-radius: var(--radius);
  transition: all var(--transition);
  position: relative;
}

.header-action:hover {
  background: var(--bg);
}

.header-action .icon {
  font-size: 20px;
  line-height: 1;
}

.cart-count {
  position: absolute;
  top: 3px;
  right: 5px;
  background: var(--danger);
  color: white;
  font-size: 10px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  animation: badgePop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 2px 6px rgba(233, 69, 96, 0.3);
}

/* ── Floating Cart (Mobile) ── */
.floating-cart {
  display: none;
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  border: none;
  box-shadow: var(--shadow-lg);
  font-size: 26px;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-spring);
  animation: float 4s ease-in-out infinite;
}

.floating-cart:hover {
  transform: scale(1.1);
  animation: none;
}

.floating-cart:active { transform: scale(0.95); animation: none; }

.floating-cart .cart-count {
  top: -1px;
  right: -1px;
  width: 24px;
  height: 24px;
  font-size: 11px;
  min-width: 24px;
}

/* ── Hero Section ── */
.hero {
  background: linear-gradient(135deg, var(--secondary) 0%, #16213e 50%, var(--secondary-light) 100%);
  color: white;
  padding: 64px 0 56px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -15%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(246, 139, 30, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 184, 148, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero .container { position: relative; z-index: 1; }

.hero h1 {
  font-size: 44px;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -1px;
  line-height: 1.15;
}

.hero h1 span { color: var(--primary); }

.hero p {
  font-size: 17px;
  opacity: 0.8;
  margin-bottom: 28px;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.hero-search {
  display: flex;
  max-width: 520px;
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.hero-search input {
  flex: 1;
  padding: 16px 22px;
  border: none;
  font-size: 16px;
  outline: none;
}

.hero-search button {
  padding: 16px 32px;
  background: var(--primary);
  color: white;
  border: none;
  font-weight: 700;
  font-size: 16px;
  transition: background var(--transition);
}

.hero-search button:hover { background: var(--primary-dark); }

/* ── Trust Badges ── */
.trust-bar {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-light);
  padding: 20px 0;
}

.trust-bar .container {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
}

.trust-item .trust-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.trust-item .trust-text span { display: block; }

.trust-item .trust-text small {
  font-weight: 400;
  color: var(--text-light);
  font-size: 11px;
  display: block;
  margin-top: 1px;
}

/* ── Brand Strip ── */
.brand-strip {
  padding: 24px 0;
  text-align: center;
}

.brand-strip .brand-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 2.5px;
  margin-bottom: 14px;
  font-weight: 600;
}

.brand-logos {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  opacity: 0.5;
}

.brand-logos span {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-light);
  letter-spacing: 1px;
  transition: opacity var(--transition);
}

.brand-logos span:hover { opacity: 1; }

/* ── Why Us Section ── */
.why-us {
  padding: 48px 0;
}

.why-us-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.why-us-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-slow);
  border: 1px solid var(--border-light);
}

.why-us-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.why-us-card .why-icon {
  font-size: 40px;
  margin-bottom: 14px;
  display: block;
}

.why-us-card h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.why-us-card p {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.6;
}

/* ── Category Pills ── */
.categories {
  padding: 20px 0 12px;
}

.categories-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 10px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.categories-scroll::-webkit-scrollbar { display: none; }

.category-pill {
  flex-shrink: 0;
  padding: 9px 22px;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  transition: all var(--transition);
  cursor: pointer;
  white-space: nowrap;
}

.category-pill:hover,
.category-pill.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(246, 139, 30, 0.25);
}

/* ── Product Grid ── */
.section-title {
  font-size: 24px;
  font-weight: 700;
  margin: 28px 0 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -0.3px;
}

.section-title .count {
  font-size: 15px;
  font-weight: 400;
  color: var(--text-light);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 48px;
}

.product-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-slow);
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-light);
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.product-card .badge {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  z-index: 2;
  letter-spacing: 0.5px;
}

.badge-new {
  background: var(--accent);
  color: white;
  box-shadow: 0 2px 8px rgba(0, 184, 148, 0.35);
}

.badge-refurb {
  background: var(--primary);
  color: white;
}

.badge-sale {
  background: var(--danger);
  color: white;
}

.badge-low-stock {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 5px 10px;
  background: var(--danger-light);
  color: var(--danger);
  border-radius: 6px;
  font-size: 10px;
  font-weight: 600;
  z-index: 2;
}

.product-card .image-wrap {
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: #f8f8f8;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  position: relative;
}

.product-card .image-wrap::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40px;
  background: linear-gradient(to top, var(--bg-card), transparent);
  pointer-events: none;
}

.product-card .image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.product-card:hover .image-wrap img {
  transform: scale(1.1);
}

.product-card .info {
  padding: 16px 18px 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
}

.product-card .brand {
  font-size: 11px;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 3px;
  font-weight: 600;
}

.product-card .name {
  font-size: 15px;
  font-weight: 600;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 8px;
  min-height: 44px;
  line-height: 1.4;
}

.product-card .spec-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 10px;
}

.product-card .spec-pill {
  font-size: 10px;
  padding: 3px 9px;
  background: var(--bg);
  border-radius: 4px;
  color: var(--text-light);
  font-weight: 500;
  border: 1px solid var(--border-light);
}

.product-card .specs {
  font-size: 12px;
  color: var(--text-light);
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card .price-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  margin-top: auto;
}

.product-card .price {
  font-size: 22px;
  font-weight: 700;
  color: #16a34a;
  letter-spacing: -0.3px;
}

.product-card .price .orig {
  font-size: 13px;
  font-weight: 400;
  color: var(--text-muted);
  text-decoration: line-through;
  margin-left: 6px;
}

.product-card .rating {
  font-size: 12px;
  color: var(--text-muted);
  margin-left: auto;
}

.product-card .add-btn {
  width: 100%;
  padding: 11px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 14px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.product-card .add-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.product-card .add-btn:active::before {
  width: 300px;
  height: 300px;
}

.product-card .add-btn:hover { background: var(--primary-dark); }

.product-card .add-btn:active { transform: scale(0.97); }

.product-card .add-btn .btn-spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  margin: 0 auto;
}

.product-card .add-btn.loading .btn-text { display: none; }
.product-card .add-btn.loading .btn-spinner { display: block; }

.product-card .add-btn.added {
  background: var(--accent);
  pointer-events: none;
}

.product-card .add-btn.added:hover { background: var(--accent-dark); }

/* ── Product Detail ── */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding: 40px 0;
  animation: fadeIn 0.5s ease;
}

.product-detail .gallery {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 460px;
  box-shadow: var(--shadow-sm);
  position: relative;
  border: 1px solid var(--border-light);
  overflow: hidden;
}

.product-detail .gallery img {
  max-height: 420px;
  object-fit: contain;
  transition: transform 0.4s ease;
}

.product-detail .gallery:hover img { transform: scale(1.05); }

.product-detail .detail-badges {
  position: absolute;
  top: 20px;
  left: 20px;
  display: flex;
  gap: 10px;
  z-index: 1;
}

.product-detail .detail-info h1 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 6px;
  line-height: 1.3;
  letter-spacing: -0.3px;
}

.product-detail .detail-brand {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 20px;
}

.product-detail .detail-meta {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-bottom: 20px;
  font-size: 14px;
  color: var(--text-light);
}

.product-detail .detail-meta .in-stock {
  color: var(--accent);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.product-detail .detail-meta .out-of-stock {
  color: var(--danger);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.product-detail .detail-price {
  font-size: 36px;
  font-weight: 800;
  color: #16a34a;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.product-detail .detail-price .orig {
  font-size: 20px;
  font-weight: 400;
  color: var(--text-muted);
  text-decoration: line-through;
  margin-left: 12px;
}

.product-detail .detail-specs {
  margin-bottom: 24px;
  width: 100%;
  border-collapse: collapse;
}

.product-detail .detail-specs tr {
  border-bottom: 1px solid var(--border-light);
}

.product-detail .detail-specs tr:last-child { border: none; }

.product-detail .detail-specs th {
  text-align: left;
  padding: 10px 20px 10px 0;
  font-size: 13px;
  color: var(--text-light);
  font-weight: 500;
  width: 130px;
}

.product-detail .detail-specs td {
  padding: 10px 0;
  font-size: 15px;
  font-weight: 500;
}

.product-detail .detail-desc {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.9;
  margin-bottom: 28px;
}

.product-detail .detail-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.product-detail .detail-actions .qty-selector {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.product-detail .detail-actions .qty-selector button {
  width: 44px;
  height: 48px;
  border: none;
  background: var(--bg);
  font-size: 20px;
  font-weight: 600;
  transition: background var(--transition);
}

.product-detail .detail-actions .qty-selector button:hover { background: var(--border); }

.product-detail .detail-actions .qty-selector input {
  width: 52px;
  height: 48px;
  border: none;
  border-left: 1.5px solid var(--border);
  border-right: 1.5px solid var(--border);
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  outline: none;
}

.btn-lg {
  padding: 14px 36px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 700;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all var(--transition);
  line-height: 1;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(246, 139, 30, 0.3);
}

.btn-primary:active { transform: translateY(0); }

.btn-accent {
  background: var(--accent);
  color: white;
}

.btn-accent:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 184, 148, 0.3);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
}

.btn-block {
  width: 100%;
  display: flex;
  text-align: center;
  justify-content: center;
}

.btn-sm {
  padding: 9px 18px;
  font-size: 13px;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ── Related Products ── */
.related-section {
  padding: 32px 0 48px;
}

.related-section h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ── Cart Page ── */
.cart-page {
  padding: 40px 0;
}

.cart-page h1 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.cart-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 28px;
  align-items: start;
}

.cart-items {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cart-empty {
  text-align: center;
  padding: 80px 40px;
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}

.cart-empty .empty-icon {
  font-size: 72px;
  margin-bottom: 20px;
  display: block;
}

.cart-empty h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
}

.cart-empty p {
  color: var(--text-light);
  font-size: 15px;
  margin-bottom: 24px;
}

.cart-item {
  display: flex;
  gap: 20px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
  animation: fadeIn 0.4s ease;
  border: 1px solid var(--border-light);
}

.cart-item:hover { box-shadow: var(--shadow); }

.cart-item img {
  width: 110px;
  height: 110px;
  object-fit: contain;
  background: #f8f8f8;
  border-radius: var(--radius);
  flex-shrink: 0;
}

.cart-item-info {
  flex: 1;
  min-width: 0;
}

.cart-item-info h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-item-info .item-specs {
  font-size: 12px;
  color: var(--text-light);
  margin-bottom: 8px;
}

.cart-item-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
  flex-wrap: wrap;
  gap: 10px;
}

.qty-controls {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.qty-btn {
  width: 36px;
  height: 36px;
  border: none;
  background: var(--bg);
  font-size: 18px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.qty-btn:hover { background: var(--border); }

.qty-controls .qty {
  font-size: 14px;
  font-weight: 600;
  min-width: 32px;
  text-align: center;
  background: var(--bg-card);
}

.cart-item-price {
  font-size: 20px;
  font-weight: 700;
  color: #16a34a;
  white-space: nowrap;
}

.remove-item {
  color: var(--text-muted);
  font-size: 12px;
  cursor: pointer;
  padding: 8px 12px;
  border: none;
  background: none;
  border-radius: var(--radius);
  transition: all var(--transition);
  font-weight: 500;
}

.remove-item:hover {
  color: var(--danger);
  background: var(--danger-light);
}

.cart-summary {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  height: fit-content;
  position: sticky;
  top: calc(var(--header-height) + var(--topbar-height) + 20px);
  border: 1px solid var(--border-light);
}

.cart-summary h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 24px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  font-size: 14px;
}

.summary-row.total {
  border-top: 2px solid var(--border);
  margin-top: 10px;
  padding-top: 16px;
  font-size: 22px;
  font-weight: 700;
}

.summary-row .label { color: var(--text-light); }

.cart-summary .checkout-btn {
  width: 100%;
  padding: 20px 24px;
  background: linear-gradient(135deg, #16a34a, #15803d);
  color: white;
  border: none;
  border-radius: var(--radius-lg);
  font-size: 20px;
  font-weight: 800;
  margin-top: 24px;
  transition: all var(--transition);
  display: block;
  text-align: center;
  letter-spacing: 0.8px;
  box-shadow: 0 6px 20px rgba(22, 163, 74, 0.4);
  text-decoration: none;
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
}

.cart-summary .checkout-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(255,255,255,0.12) 50%, transparent 60%);
  pointer-events: none;
}

.cart-summary .checkout-btn:hover {
  background: linear-gradient(135deg, #15803d, #166534);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(22, 163, 74, 0.55);
}

.cart-summary .checkout-btn:active { transform: translateY(-1px); }

/* ── Checkout Progress ── */
.checkout-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 32px;
  padding: 24px 0;
}

.progress-step {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
}

.progress-step .step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  transition: all var(--transition);
}

.progress-step.active { color: var(--text); }
.progress-step.active .step-num {
  border-color: var(--primary);
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 12px rgba(246, 139, 30, 0.25);
}

.progress-step.done { color: var(--accent); }
.progress-step.done .step-num {
  border-color: var(--accent);
  background: var(--accent);
  color: white;
}

.progress-line {
  width: 80px;
  height: 2.5px;
  background: var(--border);
  margin: 0 16px;
  transition: background var(--transition);
}

.progress-line.done { background: var(--accent); }

/* ── Checkout ── */
.checkout-page {
  padding: 40px 0;
}

.checkout-page h1 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
}

.checkout-page .checkout-subtitle {
  color: var(--text-light);
  font-size: 15px;
  margin-bottom: 28px;
}

.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 28px;
  align-items: start;
}

.checkout-form {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}

.checkout-form h2 {
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-light);
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  outline: none;
  transition: all var(--transition);
  background: var(--bg-card);
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: var(--shadow-glow);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath d='M4 6l3 3 3-3' stroke='%23636e72' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 42px;
}

textarea.form-control {
  resize: vertical;
  min-height: 90px;
}

.checkout-summary-card {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: calc(var(--header-height) + var(--topbar-height) + 20px);
  border: 1px solid var(--border-light);
}

.checkout-summary-card h3 {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 18px;
}

.checkout-summary-card .summary-item {
  display: flex;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 14px;
}

.checkout-summary-card .summary-item:last-child { border: none; }

.checkout-summary-card .summary-item img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  background: var(--bg);
  border-radius: 6px;
  flex-shrink: 0;
}

.checkout-summary-card .summary-item .item-name {
  flex: 1;
  font-weight: 500;
}

.checkout-summary-card .summary-item .item-qty {
  color: var(--text-light);
  font-size: 12px;
}

.checkout-summary-card .summary-item .item-total {
  font-weight: 700;
  color: var(--danger);
  white-space: nowrap;
}

.checkout-summary-card .summary-totals {
  margin-top: 14px;
}

/* ── Orders ── */
.orders-page {
  padding: 40px 0;
}

.orders-page h1 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 24px;
}

.order-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 18px;
  transition: all var(--transition);
  border: 1px solid var(--border-light);
  animation: fadeIn 0.4s ease;
}

.order-card:hover {
  box-shadow: var(--shadow);
  border-color: transparent;
}

.order-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-light);
  flex-wrap: wrap;
  gap: 8px;
}

.order-number {
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.2px;
}

.order-status {
  font-size: 11px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-block;
}

.order-status.pending { background: var(--primary-light); color: var(--primary); }
.order-status.confirmed { background: #e3f2fd; color: #1565c0; }
.order-status.processing { background: var(--primary-light); color: var(--primary-dark); }
.order-status.shipped { background: var(--accent-light); color: var(--accent-dark); }
.order-status.delivered { background: #e8f5e9; color: #2e7d32; }
.order-status.cancelled { background: var(--danger-light); color: var(--danger); }

.order-items {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 10px;
  line-height: 1.8;
}

.order-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border-light);
}

.order-total {
  font-size: 22px;
  font-weight: 700;
  color: var(--danger);
  letter-spacing: -0.3px;
}

.order-actions {
  display: flex;
  gap: 10px;
}

/* ── Order Tracking Timeline ── */
.order-tracking {
  margin-top: 20px;
  padding-left: 4px;
}

.tracking-step {
  display: flex;
  gap: 16px;
  padding-bottom: 24px;
  position: relative;
}

.tracking-step:last-child { padding-bottom: 0; }

.tracking-step:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 12px;
  top: 26px;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.tracking-step.done:not(:last-child)::before { background: var(--accent); }

.tracking-dot {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
  margin-top: 2px;
  transition: all var(--transition);
}

.tracking-step.done .tracking-dot {
  background: var(--accent);
  color: white;
}

.tracking-step.active .tracking-dot {
  background: var(--primary);
  color: white;
  box-shadow: 0 0 0 6px rgba(246, 139, 30, 0.15);
}

.tracking-step .tracking-text {
  font-size: 14px;
  padding-top: 2px;
}

.tracking-step .tracking-text strong {
  display: block;
  font-weight: 600;
}

.tracking-step .tracking-text span {
  color: var(--text-light);
  font-size: 13px;
}

.tracking-step.done .tracking-text strong { color: var(--accent); }

/* ── Footer ── */
.footer {
  background: var(--secondary);
  color: rgba(255, 255, 255, 0.65);
  padding: 56px 0 28px;
  margin-top: 60px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer h4 {
  color: white;
  font-size: 14px;
  margin-bottom: 18px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.footer p,
.footer a {
  font-size: 13px;
  line-height: 2.4;
  display: block;
}

.footer a { transition: color var(--transition); }

.footer a:hover { color: var(--primary); }

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

.footer .footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  transition: all var(--transition);
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 24px;
  text-align: center;
  font-size: 12px;
}

.footer-bottom a {
  display: inline;
  color: var(--primary);
}

/* ── Filters Sidebar ── */
.catalog-layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 28px;
  padding: 28px 0;
  align-items: start;
}

.filters-sidebar {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  height: fit-content;
  position: sticky;
  top: calc(var(--header-height) + var(--topbar-height) + 20px);
  border: 1px solid var(--border-light);
}

.filters-sidebar h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-light);
}

.filter-group {
  margin-bottom: 18px;
}

.filter-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 7px;
}

.filter-group select,
.filter-group input {
  width: 100%;
}

.filter-btn {
  width: 100%;
  padding: 11px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 14px;
  transition: all var(--transition);
}

.filter-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

/* ── Breadcrumbs ── */
.breadcrumbs {
  padding: 14px 0;
  font-size: 13px;
  color: var(--text-light);
}

.breadcrumbs a {
  color: var(--text-light);
  transition: color var(--transition);
}

.breadcrumbs a:hover { color: var(--primary); }

.breadcrumbs span { margin: 0 8px; }

.breadcrumbs .current {
  color: var(--text);
  font-weight: 500;
}

/* ── Messages / Alerts ── */
.msg {
  padding: 16px 20px;
  border-radius: var(--radius);
  margin-bottom: 18px;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  animation: slideDown 0.35s ease;
}

.msg-success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.msg-error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.msg-info {
  background: #d1ecf1;
  color: #0c5460;
  border: 1px solid #bee5eb;
}

.msg .msg-icon {
  font-size: 20px;
  flex-shrink: 0;
}

/* ── Page Utility Classes ── */
.page-section { padding: 32px 0; }
.page-section-sm { padding: 24px 0; }
.text-center { text-align: center; }
.text-muted { color: var(--text-light); }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-20 { gap: 20px; }
.gap-24 { gap: 24px; }
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-20 { margin-top: 20px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-4 { margin-bottom: 4px; }
.mb-8 { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.mb-20 { margin-bottom: 20px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.p-16 { padding: 16px; }
.p-20 { padding: 20px; }
.p-24 { padding: 24px; }
.p-28 { padding: 28px; }
.w-full { width: 100%; }
.inline-flex { display: inline-flex; }
.block { display: block; }
.text-sm { font-size: 13px; }
.text-md { font-size: 15px; }
.fw-500 { font-weight: 500; }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.text-primary { color: var(--primary); }
.text-danger { color: var(--danger); }

.card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}

.card-padded { padding: 28px; }

/* ── Auth Pages ── */
.auth-page {
  max-width: 420px;
  margin: 60px auto;
}

.auth-page-wide {
  max-width: 520px;
  margin: 40px auto;
}

/* ── Account Page ── */
.account-page { padding: 32px 0; }
.account-page h1 { font-size: 24px; font-weight: 700; margin-bottom: 24px; }

/* ── About Page ── */
.about-page {
  padding: 48px 0;
  max-width: 760px;
  margin: 0 auto;
}

.about-page h1 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 8px;
}

.about-page .about-subtitle {
  color: var(--text-light);
  margin-bottom: 32px;
  font-size: 15px;
}

.about-page .about-content {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  font-size: 15px;
  line-height: 1.8;
}

.about-page .about-content p { margin-bottom: 16px; }

.about-page .about-values {
  list-style: none;
  padding: 0;
  margin-bottom: 24px;
}

.about-page .about-values li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.about-page .about-values li:last-child { border-bottom: none; }

.about-page .about-promise {
  background: var(--primary-light);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 24px;
}

.about-page .about-promise p { margin-bottom: 0; }
.about-page .about-promise .promise-heading {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-top: 32px;
}

/* ── Support Page ── */
.support-page {
  padding: 32px 0;
  max-width: 800px;
  margin: 0 auto;
}

.support-page h1 { font-size: 28px; font-weight: 800; margin-bottom: 8px; }

.support-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 40px;
}

.support-grid .why-us-card { cursor: pointer; }
.support-grid .why-us-card p { font-size: 12px; }
.support-grid .why-us-card .contact-link {
  font-size: 12px;
  color: var(--primary);
  font-weight: 600;
}

/* ── Order Detail ── */
.order-detail-page { padding: 32px 0; }

.order-info-box {
  margin-bottom: 16px;
  padding: 12px;
  background: var(--bg);
  border-radius: var(--radius);
  font-size: 14px;
}

.order-items-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 12px;
}

.order-items-table th {
  text-align: left;
  padding: 10px 0;
  font-size: 12px;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 2px solid var(--border);
}

.order-items-table th.center { text-align: center; }
.order-items-table th.right { text-align: right; }

.order-items-table td {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.order-items-table td:first-child { font-weight: 500; }
.order-items-table td.center { text-align: center; color: var(--text-light); }
.order-items-table td.right { text-align: right; font-weight: 600; }

.order-totals {
  text-align: right;
  padding-top: 12px;
  border-top: 2px solid var(--border);
}

.order-totals .totals-row {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 4px;
}

.order-totals .totals-grand {
  font-size: 22px;
  font-weight: 800;
  color: var(--danger);
}

.order-actions-bar {
  margin-top: 20px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ── Flash Messages ── */
.flash-msg { min-height: 0; }

/* ── M-Pesa Payment Card ── */
.payment-card {
  background: #f0fdf4;
  border: 2px solid #22c55e;
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.payment-card .payment-icon { font-size: 36px; }

.payment-card .payment-label { font-size: 16px; font-weight: 600; }
.payment-card .payment-label .payment-sub {
  font-size: 12px;
  font-weight: 400;
  color: var(--text-light);
}

.payment-card .payment-desc {
  font-size: 13px;
  color: var(--text-light);
  margin-top: 2px;
}

/* ── Delivery Info Sidebar ── */
.delivery-info-card {
  margin-top: 16px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  font-size: 13px;
  color: var(--text-light);
}

.delivery-info-card strong {
  color: var(--text);
  display: block;
  margin-bottom: 8px;
}

/* ── Spinner ── */
.spinner {
  width: 28px;
  height: 28px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  margin: 48px auto;
}

.btn-spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  vertical-align: middle;
}

/* ── Ripple effect on buttons ── */
.ripple {
  position: relative;
  overflow: hidden;
}

.ripple::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  width: 100px;
  height: 100px;
  margin-top: -50px;
  margin-left: -50px;
  top: 50%;
  left: 50%;
  transform: scale(0);
  opacity: 0;
}

.ripple:active::after {
  animation: ripple 0.6s ease-out;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .checkout-layout {
    grid-template-columns: 1fr;
  }
  .checkout-summary-card {
    position: static;
  }
  .product-detail {
    gap: 32px;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 64px;
    --topbar-height: 34px;
  }

  .search-bar { display: none; }

  .catalog-layout {
    grid-template-columns: 1fr;
  }

  .filters-sidebar { position: static; }

  .cart-layout {
    grid-template-columns: 1fr;
  }

  .product-detail {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .product-grid .product-card .specs,
  .product-grid .product-card .spec-pills { display: none; }

  .product-grid .product-card .image-wrap { height: 170px; padding: 16px; }
  .product-grid .product-card .price { font-size: 17px; }
  .product-grid .product-card .name { font-size: 13px; min-height: 36px; }
  .product-grid .product-card .add-btn { padding: 9px; font-size: 12px; }
  .product-grid .product-card .info { padding: 12px 14px 14px; }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }

  .hero h1 { font-size: 28px; }
  .hero p { font-size: 15px; }

  .header-actions .action-label { display: none; }
  .header-actions { gap: 0; }
  .header-action { padding: 8px; }

  .trust-bar .container { gap: 20px; }
  .trust-item { font-size: 12px; }
  .trust-item .trust-text span { font-size: 11px; }
  .trust-item .trust-text small { font-size: 10px; }

  .progress-line { width: 40px; }
  .progress-step .step-label { display: none; }

  .about-page { padding: 24px 16px; }

  .floating-cart { display: flex; }

  .checkout-progress { gap: 4px; }
  .form-row { grid-template-columns: 1fr; }
  .container { padding: 0 14px; }
}

@media (max-width: 480px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .product-card .image-wrap { height: 140px; padding: 12px; }
  .product-card .info { padding: 10px 12px 12px; }
  .product-card .name { font-size: 12px; min-height: auto; -webkit-line-clamp: 1; }
  .product-card .price { font-size: 15px; }
  .product-card .add-btn { padding: 8px; font-size: 11px; }
  .product-card .spec-pills { display: none; }

  .hero { padding: 40px 0; }
  .hero h1 { font-size: 22px; }
  .hero p { font-size: 14px; }

  .section-title { font-size: 19px; }
  .product-detail .detail-price { font-size: 28px; }
  .product-detail .gallery { min-height: 280px; padding: 16px; }
  .product-detail .gallery img { max-height: 260px; }

  .cart-item { flex-direction: column; gap: 12px; }
  .cart-item img { width: 80px; height: 80px; }

  .order-card { padding: 18px 20px; }

  .toast { min-width: auto; max-width: calc(100vw - 32px); }
  .toast-container { right: 8px; left: 8px; }
}
