/* ============================================================
   STORE — Ecommerce Frontend Design System
   Amazon-like clean, modern, responsive
   ============================================================ */

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

:root {
  --store-primary: #ea551e;
  --store-secondary: #1a1d24;
  --store-bg: #f5f5f7;
  --store-surface: #ffffff;
  --store-text: #1a1a1a;
  --store-text-muted: #666;
  --store-border: #e5e5e7;
  --store-radius: 12px;
  --store-radius-sm: 8px;
  --store-shadow: 0 2px 12px rgba(0,0,0,0.06);
  --store-shadow-md: 0 4px 20px rgba(0,0,0,0.08);
  --store-shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
  --store-font: 'Inter', 'DM Sans', system-ui, sans-serif;
  --store-font-display: 'DM Sans', 'Inter', system-ui, sans-serif;
  --store-transition: 0.25s ease;
  --store-max-width: 1280px;
}

/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
.store-main img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* ─── Layout ─── */
.store-container { max-width: var(--store-max-width); margin: 0 auto; padding: 0 20px; }
.store-main { min-height: 60vh; padding: 24px 0 48px; background: var(--store-bg); }

/* ─── Topbar ─── */
.store-topbar {
  background: var(--store-secondary);
  color: rgba(255,255,255,0.8);
  font-size: 12px;
  padding: 6px 0;
}
.store-topbar .store-container { display: flex; justify-content: space-between; align-items: center; }
.store-topbar-links { display: flex; gap: 16px; }
.store-topbar-links a { color: rgba(255,255,255,0.7); transition: color var(--store-transition); }
.store-topbar-links a:hover { color: #fff; }

/* ─── Header ─── */
.store-header { background: var(--store-surface); box-shadow: var(--store-shadow); position: sticky; top: 0; z-index: 100; }
.store-header-inner { display: flex; align-items: center; gap: 20px; padding: 10px 20px; }
.store-logo { flex-shrink: 0; display: flex; align-items: center; }
.store-logo img {
  height: 80px;
  width: auto;
  max-width: 300px;
  object-fit: contain;
}
@media (max-width: 768px) {
  .store-logo img {
    height: 60px;
    max-width: 240px;
  }
}
@media (max-width: 480px) {
  .store-logo img {
    height: 52px;
    max-width: 200px;
  }
}
.store-logo-text {
  font-family: var(--store-font-display);
  font-size: 32px; font-weight: 700;
  color: var(--store-secondary);
  letter-spacing: -0.5px;
  white-space: nowrap;
}
@media (max-width: 768px) {
  .store-logo-text { font-size: 26px; }
}
@media (max-width: 480px) {
  .store-logo-text { font-size: 24px; }
}
.store-logo-text span { color: var(--store-primary); }

/* Search */
.store-search { flex: 1; max-width: 600px; position: relative; }
.store-search { display: flex; align-items: center; }
#store-search-input {
  flex: 1; height: 42px; border: 2px solid var(--store-border);
  border-right: none; border-radius: var(--store-radius-sm) 0 0 var(--store-radius-sm);
  padding: 0 16px; font-size: 14px; outline: none; transition: border-color var(--store-transition);
  background: var(--store-bg);
}
#store-search-input:focus { border-color: var(--store-primary); background: #fff; }
#store-search-btn {
  height: 42px; width: 48px; border: 2px solid var(--store-primary);
  border-radius: 0 var(--store-radius-sm) var(--store-radius-sm) 0;
  background: var(--store-primary); color: #fff; display: flex; align-items: center; justify-content: center;
}
#store-search-btn svg { width: 20px; height: 20px; }
.store-search-results {
  position: absolute; top: 100%; left: 0; right: 48px; background: #fff;
  border: 1px solid var(--store-border); border-radius: 0 0 var(--store-radius-sm) var(--store-radius-sm);
  box-shadow: var(--store-shadow-md); display: none; z-index: 200; max-height: 400px; overflow-y: auto;
}
.store-search-results.visible { display: block; }
.store-search-result-item {
  display: flex; align-items: center; gap: 12px; padding: 10px 16px;
  border-bottom: 1px solid var(--store-border); transition: background var(--store-transition);
}
.store-search-result-item:hover { background: var(--store-bg); }
.store-search-result-item:last-child { border-bottom: none; }
.store-search-result-item .sr-name { flex: 1; font-size: 14px; font-weight: 500; }
.store-search-result-item .sr-price { font-size: 14px; font-weight: 600; color: var(--store-primary); }

/* Cart button */
.store-header-actions { display: flex; align-items: center; gap: 16px; }
.store-cart-btn {
  display: flex; align-items: center; gap: 8px; position: relative;
  color: var(--store-secondary); font-weight: 500; font-size: 14px; transition: color var(--store-transition);
}
.store-cart-btn:hover { color: var(--store-primary); }
.store-cart-btn svg { width: 26px; height: 26px; }
.store-cart-count {
  position: absolute; top: -6px; left: 14px; background: var(--store-primary); color: #fff;
  font-size: 11px; font-weight: 700; min-width: 18px; height: 18px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center; padding: 0 4px;
}
.store-cart-label { display: none; }
@media (min-width: 768px) { .store-cart-label { display: inline; } }

/* Nav */
.store-nav { background: var(--store-secondary); }
.store-nav .store-container { display: flex; gap: 4px; overflow-x: auto; padding: 0 20px; }
.store-nav-item {
  color: rgba(255,255,255,0.85); font-size: 13px; font-weight: 500; padding: 10px 16px;
  white-space: nowrap; transition: background var(--store-transition); border-bottom: 2px solid transparent;
}
.store-nav-item:hover { background: rgba(255,255,255,0.1); border-bottom-color: var(--store-primary); }
.store-nav-item.active { border-bottom-color: var(--store-primary); }

/* ─── Breadcrumbs ─── */
.store-breadcrumbs { padding: 12px 0; font-size: 13px; color: var(--store-text-muted); }
.store-breadcrumbs a { color: var(--store-primary); }
.store-breadcrumbs span { margin: 0 6px; }

/* ─── Hero Banner ─── */
.store-hero {
  background: linear-gradient(135deg, var(--store-secondary) 0%, #2a2d36 50%, #1e2128 100%);
  border-radius: var(--store-radius); padding: 56px 48px; margin-bottom: 32px;
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  position: relative; overflow: hidden;
}
.store-hero::before {
  content: ''; position: absolute; top: 0; right: 0; width: 60%; height: 100%;
  background: radial-gradient(circle at 70% 50%, rgba(234,85,30,0.18), transparent 60%);
}
.store-hero::after {
  content: ''; position: absolute; bottom: -50%; left: -10%; width: 40%; height: 200%;
  background: radial-gradient(ellipse at center, rgba(234,85,30,0.08), transparent 70%);
  pointer-events: none;
}
.store-hero-content { flex: 1; position: relative; z-index: 1; }
.store-hero h1 {
  font-family: var(--store-font-display); font-size: 40px; font-weight: 700;
  color: #fff; margin-bottom: 12px; line-height: 1.15; letter-spacing: -1px;
}
.store-hero p { font-size: 18px; color: rgba(255,255,255,0.65); margin-bottom: 28px; max-width: 500px; }
.store-hero-btn {
  display: inline-flex; align-items: center; gap: 8px; background: var(--store-primary);
  color: #fff; padding: 14px 32px; border-radius: var(--store-radius-sm); font-weight: 600;
  font-size: 15px; transition: transform var(--store-transition), box-shadow var(--store-transition);
}
.store-hero-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(234,85,30,0.45); }
.store-hero-image { flex: 0 0 320px; position: relative; z-index: 1; }
.store-hero-image img { width: 100%; border-radius: var(--store-radius); box-shadow: 0 12px 40px rgba(0,0,0,0.3); }

/* ─── Section ─── */
.store-section { margin-bottom: 40px; }
.store-section-header {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px;
}
.store-section-title {
  font-family: var(--store-font-display); font-size: 24px; font-weight: 700;
  color: var(--store-secondary);
}
.store-section-link { color: var(--store-primary); font-size: 14px; font-weight: 500; }
.store-section-link:hover { text-decoration: underline; }

/* ─── Category Cards ─── */
.store-cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; }
.store-cat-card {
  background: var(--store-surface); border-radius: var(--store-radius); padding: 28px 16px;
  text-align: center; transition: transform var(--store-transition), box-shadow var(--store-transition), border-color var(--store-transition);
  border: 1px solid var(--store-border); position: relative; overflow: hidden;
}
.store-cat-card::before {
  content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(234,85,30,0.06), transparent);
  opacity: 0; transition: opacity var(--store-transition);
}
.store-cat-card:hover { transform: translateY(-4px); box-shadow: var(--store-shadow-md); border-color: var(--store-primary); }
.store-cat-card:hover::before { opacity: 1; }
.store-cat-card .icon { font-size: 40px; margin-bottom: 10px; position: relative; z-index: 1; }
.store-cat-card .name { font-weight: 600; font-size: 14px; color: var(--store-secondary); position: relative; z-index: 1; }
.store-cat-card img { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 10px; object-fit: cover; position: relative; z-index: 1; }

/* ─── Product Grid ─── */
.store-product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.store-product-card {
  background: var(--store-surface); border-radius: var(--store-radius); overflow: hidden;
  transition: transform var(--store-transition), box-shadow var(--store-transition);
  border: 1px solid var(--store-border); position: relative; display: flex; flex-direction: column;
}
.store-product-card:hover { transform: translateY(-4px); box-shadow: var(--store-shadow-lg); }
.store-product-card .card-badge {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  background: var(--store-primary); color: #fff; font-size: 11px; font-weight: 600;
  padding: 4px 10px; border-radius: 20px;
}
.store-product-card .card-badge.stock-out { background: #999; }
.store-product-link { display: flex; flex-direction: column; flex: 1; }
.store-product-image {
  width: 100%; aspect-ratio: 1; background: var(--store-bg); overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.store-product-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.store-product-card:hover .store-product-image img { transform: scale(1.08); }
.store-product-image .placeholder {
  font-size: 48px; color: #ccc; display: flex; align-items: center; justify-content: center; width: 100%; height: 100%;
}
.store-product-info { padding: 14px; flex: 1; display: flex; flex-direction: column; }
.store-product-brand { font-size: 12px; color: var(--store-text-muted); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 4px; }
.store-product-name { font-size: 15px; font-weight: 600; color: var(--store-secondary); margin-bottom: 6px; line-height: 1.35; }
.store-product-attrs { font-size: 12px; color: var(--store-text-muted); margin-bottom: 8px; }
.store-product-price { font-size: 20px; font-weight: 700; color: var(--store-primary); margin-top: auto; }
.store-product-price small { font-size: 12px; color: var(--store-text-muted); font-weight: 400; }
.store-product-add {
  margin: 0 14px 14px; padding: 10px; border: none; border-radius: var(--store-radius-sm);
  background: var(--store-secondary); color: #fff; font-weight: 600; font-size: 13px;
  transition: background var(--store-transition); display: flex; align-items: center; justify-content: center; gap: 6px;
}
.store-product-add:hover { background: var(--store-primary); }
.store-product-add svg { width: 18px; height: 18px; }
.store-product-add:disabled { background: #ccc; cursor: not-allowed; }

/* ─── Filters Sidebar ─── */
.store-catalog-layout { display: grid; grid-template-columns: 240px 1fr; gap: 24px; }
.store-filters { background: var(--store-surface); border-radius: var(--store-radius); padding: 20px; height: fit-content; position: sticky; top: 120px; }
.store-filters h3 { font-size: 16px; font-weight: 600; margin-bottom: 12px; color: var(--store-secondary); }
.store-filter-group { margin-bottom: 20px; }
.store-filter-group h4 { font-size: 13px; font-weight: 600; margin-bottom: 8px; color: var(--store-text); }
.store-filter-item { display: flex; align-items: center; gap: 8px; padding: 4px 0; font-size: 14px; }
.store-filter-item a { color: var(--store-text-muted); transition: color var(--store-transition); }
.store-filter-item a:hover { color: var(--store-primary); }
.store-filter-item.active a { color: var(--store-primary); font-weight: 600; }

.store-catalog-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.store-catalog-header select {
  padding: 8px 12px; border: 1px solid var(--store-border); border-radius: var(--store-radius-sm);
  font-size: 14px; background: var(--store-surface); outline: none;
}
.store-catalog-count { font-size: 14px; color: var(--store-text-muted); }

/* ─── Product Detail ─── */
.store-product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.store-product-gallery { display: flex; flex-direction: column; gap: 12px; }
.store-gallery-main {
  width: 100%; aspect-ratio: 1; border-radius: var(--store-radius); overflow: hidden;
  background: var(--store-surface); border: 1px solid var(--store-border);
}
.store-gallery-main img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.store-gallery-main .placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 80px; color: #ddd; }
.store-gallery-thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.store-gallery-thumb {
  width: 64px; height: 64px; border-radius: var(--store-radius-sm); overflow: hidden;
  border: 2px solid transparent; cursor: pointer; transition: border-color var(--store-transition);
}
.store-gallery-thumb.active { border-color: var(--store-primary); }
.store-gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }

.store-product-details h1 { font-family: var(--store-font-display); font-size: 28px; font-weight: 700; color: var(--store-secondary); margin-bottom: 8px; }
.store-product-details .brand { font-size: 14px; color: var(--store-text-muted); text-transform: uppercase; margin-bottom: 16px; }
.store-product-details .price { font-size: 32px; font-weight: 700; color: var(--store-primary); margin-bottom: 16px; }
.store-product-details .attrs { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin-bottom: 24px; }
.store-product-details .attr-item { background: var(--store-surface); padding: 12px 14px; border-radius: var(--store-radius-sm); border: 1px solid var(--store-border); }
.store-product-details .attr-item .label { font-size: 11px; color: var(--store-text-muted); text-transform: uppercase; letter-spacing: 0.4px; }
.store-product-details .attr-item .value { font-size: 14px; font-weight: 600; color: var(--store-secondary); }
.store-product-details .description { font-size: 15px; line-height: 1.6; color: var(--store-text); margin-bottom: 24px; }
.store-product-details .stock-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: #22C55E; margin-bottom: 20px; }
.store-product-details .stock-badge::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #22C55E; }
.store-buy-btn {
  width: 100%; padding: 16px; border: none; border-radius: var(--store-radius-sm);
  background: var(--store-primary); color: #fff; font-size: 16px; font-weight: 700;
  transition: transform var(--store-transition), box-shadow var(--store-transition);
}
.store-buy-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(234,85,30,0.4); }
.store-add-cart-btn {
  width: 100%; padding: 14px; border: 2px solid var(--store-secondary); border-radius: var(--store-radius-sm);
  background: transparent; color: var(--store-secondary); font-size: 15px; font-weight: 600;
  margin-top: 10px; transition: all var(--store-transition);
}
.store-add-cart-btn:hover { background: var(--store-secondary); color: #fff; }

/* ─── Cart ─── */
.store-cart-layout { display: grid; grid-template-columns: 1fr 360px; gap: 24px; }
.store-cart-items { background: var(--store-surface); border-radius: var(--store-radius); padding: 20px; }
.store-cart-item { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--store-border); }
.store-cart-item:last-child { border-bottom: none; }
.store-cart-item-img { width: 80px; height: 80px; border-radius: var(--store-radius-sm); overflow: hidden; background: var(--store-bg); flex-shrink: 0; }
.store-cart-item-img img { width: 100%; height: 100%; object-fit: cover; }
.store-cart-item-img .placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 28px; color: #ccc; }
.store-cart-item-info { flex: 1; }
.store-cart-item-name { font-weight: 600; font-size: 15px; color: var(--store-secondary); margin-bottom: 4px; }
.store-cart-item-attrs { font-size: 13px; color: var(--store-text-muted); }
.store-cart-item-price { font-weight: 700; color: var(--store-primary); font-size: 16px; }
.store-cart-item-remove { color: #999; font-size: 13px; background: none; border: none; margin-top: 6px; }
.store-cart-item-remove:hover { color: var(--danger, #EF4444); }
.store-cart-summary {
  background: var(--store-surface); border-radius: var(--store-radius); padding: 24px;
  height: fit-content; position: sticky; top: 120px;
  border: 1px solid var(--store-border); box-shadow: var(--store-shadow);
}
.store-cart-summary h3 { font-size: 18px; font-weight: 700; margin-bottom: 4px; color: var(--store-secondary); }
.store-cart-summary h3 + p { font-size: 12px; color: var(--store-text-muted); margin-bottom: 16px; }
.store-cart-summary-row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 14px; color: var(--store-text); }
.store-cart-summary-row .label { color: var(--store-text-muted); }
.store-cart-summary-row .value { font-weight: 600; }
.store-cart-summary-row.total { border-top: 2px solid var(--store-border); margin-top: 12px; padding-top: 16px; font-size: 22px; font-weight: 800; }
.store-cart-summary-row.total .amount { color: var(--store-primary); }
.store-cart-summary-divider { height: 1px; background: var(--store-border); margin: 16px 0; }
.store-checkout-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 16px; border: none; border-radius: var(--store-radius-sm);
  background: linear-gradient(135deg, var(--store-primary), #d4450f);
  color: #fff; font-size: 16px; font-weight: 700; letter-spacing: .3px;
  margin-top: 16px;
  box-shadow: 0 4px 14px rgba(234,85,30,0.3);
  transition: transform var(--store-transition), box-shadow var(--store-transition), filter var(--store-transition);
}
.store-checkout-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(234,85,30,0.4);
  filter: brightness(1.05);
}
.store-checkout-btn:active { transform: translateY(0); }
.store-checkout-btn:disabled { background: #ccc; cursor: not-allowed; box-shadow: none; transform: none; }
.store-checkout-btn svg { width: 20px; height: 20px; }
.store-checkout-btn .arrow { transition: transform var(--store-transition); }
.store-checkout-btn:hover .arrow { transform: translateX(4px); }
.store-continue-shopping {
  display: block; text-align: center; margin-top: 12px; font-size: 14px;
  color: var(--store-text-muted); font-weight: 500; transition: color var(--store-transition);
}
.store-continue-shopping:hover { color: var(--store-primary); }
.store-free-shipping-bar {
  background: linear-gradient(90deg, rgba(34,197,94,.08), rgba(34,197,94,.04));
  border: 1px solid rgba(34,197,94,.2); border-radius: var(--store-radius-sm);
  padding: 10px 14px; margin-bottom: 16px; font-size: 13px; color: #16a34a; font-weight: 600;
  display: flex; align-items: center; gap: 8px;
}
.store-free-shipping-bar.warn { background: linear-gradient(90deg, rgba(245,158,11,.08), rgba(245,158,11,.04)); border-color: rgba(245,158,11,.2); color: #d97706; }

.store-empty { text-align: center; padding: 60px 20px; }
.store-empty .icon { font-size: 64px; margin-bottom: 16px; }
.store-empty h3 { font-size: 20px; font-weight: 600; margin-bottom: 8px; color: var(--store-secondary); }
.store-empty p { color: var(--store-text-muted); margin-bottom: 20px; }
.store-empty-btn { display: inline-block; padding: 12px 28px; background: var(--store-primary); color: #fff; border-radius: var(--store-radius-sm); font-weight: 600; }

/* ─── Checkout ─── */
.store-checkout-layout { display: grid; grid-template-columns: 1fr 380px; gap: 24px; }
.store-checkout-form { background: var(--store-surface); border-radius: var(--store-radius); padding: 24px; }
.store-form-section { margin-bottom: 28px; }
.store-form-section h3 { font-size: 18px; font-weight: 700; margin-bottom: 16px; color: var(--store-secondary); padding-bottom: 8px; border-bottom: 2px solid var(--store-border); }
.store-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.store-form-field { margin-bottom: 14px; }
.store-form-field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 4px; color: var(--store-text); }
.store-form-field label .req { color: var(--store-primary); }
.store-form-field input, .store-form-field textarea, .store-form-field select {
  width: 100%; padding: 10px 14px; border: 1px solid var(--store-border);
  border-radius: var(--store-radius-sm); font-size: 14px; outline: none; transition: border-color var(--store-transition);
}
.store-form-field input:focus, .store-form-field textarea:focus { border-color: var(--store-primary); }
.store-form-field.full { grid-column: 1 / -1; }
.store-payment-options { display: flex; gap: 12px; flex-wrap: wrap; }
.store-payment-option {
  flex: 1; min-width: 140px; border: 2px solid var(--store-border); border-radius: var(--store-radius-sm);
  padding: 16px; text-align: center; cursor: pointer; transition: border-color var(--store-transition);
}
.store-payment-option.selected { border-color: var(--store-primary); background: rgba(234,85,30,0.05); }
.store-payment-option .icon { font-size: 28px; margin-bottom: 8px; }
.store-payment-option .label { font-weight: 600; font-size: 14px; }

.store-coupon-input { display: flex; gap: 8px; }
.store-coupon-input input { flex: 1; }
.store-coupon-input button { padding: 0 20px; border: 1px solid var(--store-border); border-radius: var(--store-radius-sm); background: var(--store-surface); font-weight: 600; font-size: 14px; }
.store-coupon-input button:hover { background: var(--store-bg); }
.store-coupon-msg { font-size: 13px; margin-top: 8px; }
.store-coupon-msg.ok { color: #22C55E; }
.store-coupon-msg.err { color: #EF4444; }

/* ─── Confirmation ─── */
.store-confirmation { max-width: 700px; margin: 0 auto; text-align: center; }
.store-confirmation .icon { font-size: 72px; margin-bottom: 16px; }
.store-confirmation h1 { font-family: var(--store-font-display); font-size: 32px; font-weight: 700; color: #22C55E; margin-bottom: 12px; }
.store-confirmation p { font-size: 16px; color: var(--store-text-muted); margin-bottom: 24px; }
.store-confirmation-card { background: var(--store-surface); border-radius: var(--store-radius); padding: 24px; text-align: left; margin-bottom: 24px; }
.store-confirmation-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 16px; padding-bottom: 8px; border-bottom: 1px solid var(--store-border); }
.store-confirmation-row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 14px; }
.store-confirmation-row.total { border-top: 1px solid var(--store-border); margin-top: 8px; padding-top: 12px; font-size: 18px; font-weight: 700; }

/* ─── Pagination ─── */
.store-pagination { display: flex; gap: 4px; justify-content: center; margin-top: 32px; }
.store-pagination a, .store-pagination span {
  padding: 8px 14px; border: 1px solid var(--store-border); border-radius: var(--store-radius-sm);
  font-size: 14px; font-weight: 500; background: var(--store-surface);
}
.store-pagination a:hover { border-color: var(--store-primary); color: var(--store-primary); }
.store-pagination .active { background: var(--store-primary); color: #fff; border-color: var(--store-primary); }

/* ─── Skeleton ─── */
.skeleton { background: linear-gradient(90deg, #eee 25%, #f5f5f5 50%, #eee 75%); background-size: 200% 100%; animation: skeletonShimmer 1.5s infinite; border-radius: var(--store-radius-sm); }
@keyframes skeletonShimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.store-skeleton-card { height: 300px; border-radius: var(--store-radius); }

/* ─── Toast ─── */
.store-toast {
  position: fixed; bottom: 24px; right: 24px; background: var(--store-secondary); color: #fff;
  padding: 14px 24px; border-radius: var(--store-radius-sm); font-size: 14px; font-weight: 500;
  box-shadow: var(--store-shadow-lg); z-index: 9999; transform: translateY(100px); opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.store-toast.visible { transform: translateY(0); opacity: 1; }
.store-toast.success { background: #22C55E; }
.store-toast.error { background: #EF4444; }

/* ─── Footer ─── */
.store-footer { background: var(--store-secondary); color: rgba(255,255,255,0.7); padding: 40px 0 20px; margin-top: 40px; }
.store-footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; margin-bottom: 24px; }
.store-footer-col h4 { color: #fff; font-size: 16px; font-weight: 600; margin-bottom: 12px; }
.store-footer-col a { display: block; padding: 4px 0; font-size: 14px; color: rgba(255,255,255,0.6); transition: color var(--store-transition); }
.store-footer-col a:hover { color: var(--store-primary); }
.store-footer-col p { font-size: 14px; padding: 2px 0; }
.store-footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; text-align: center; font-size: 13px; }

/* ─── Responsive ─── */
@media (max-width: 900px) {
  .store-product-detail { grid-template-columns: 1fr; }
  .store-cart-layout { grid-template-columns: 1fr; }
  .store-checkout-layout { grid-template-columns: 1fr; }
  .store-catalog-layout { grid-template-columns: 1fr; }
  .store-filters { position: static; }
  .store-hero { flex-direction: column; text-align: center; padding: 32px 20px; }
  .store-hero-image { flex: 0 0 auto; width: 100%; max-width: 300px; }
  .store-hero h1 { font-size: 26px; }
}
@media (max-width: 600px) {
  .store-header-inner { flex-wrap: wrap; gap: 10px; }
  .store-search { order: 3; flex: 1 1 100%; }
  .store-product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .store-product-info { padding: 10px; }
  .store-product-name { font-size: 13px; }
  .store-product-price { font-size: 17px; }
  .store-form-grid { grid-template-columns: 1fr; }
  .store-nav .store-container { gap: 0; }
  .store-nav-item { padding: 8px 12px; font-size: 12px; }
  .store-topbar .store-container { flex-direction: column; gap: 4px; }
  .store-footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 400px) {
  .store-product-grid { grid-template-columns: 1fr; }
}
