/* ============================================================
   ShopZen — Amazon-Style CSS
   ============================================================ */

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

:root {
  --navy: #131921;
  --navy-mid: #232f3e;
  --orange: #ff9900;
  --orange-dark: #e47911;
  --blue: #007185;
  --blue-dark: #005a6a;
  --text: #111;
  --text-muted: #565959;
  --border: #d5d9d9;
  --bg: #eaeded;
  --white: #fff;
  --red: #cc0000;
  --green: #007600;
  --radius: 8px;
  --shadow: 0 2px 8px rgba(0,0,0,0.12);
  --shadow-hover: 0 4px 20px rgba(0,0,0,0.18);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
}

a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

/* ---- CONTAINER ---- */
.container { max-width: 1440px; margin: 0 auto; padding: 0 20px; }

/* ---- NAVBAR ---- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--navy);
  box-shadow: 0 2px 6px rgba(0,0,0,.4);
}

.nav-top {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
  max-width: 1440px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: white;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
  white-space: nowrap;
  flex-shrink: 0;
}
.logo-icon { font-size: 24px; }

/* Search */
.search-bar {
  flex: 1;
  display: flex;
  align-items: center;
  border-radius: 4px;
  overflow: hidden;
  border: 2px solid transparent;
  transition: border-color .2s;
  max-width: 700px;
}
.search-bar:focus-within { border-color: var(--orange); }

.search-cat {
  background: #f3f3f3;
  border: none;
  padding: 0 8px;
  height: 40px;
  font-size: 12px;
  color: #111;
  cursor: pointer;
  border-right: 1px solid #cdcdcd;
  flex-shrink: 0;
}

.search-input {
  flex: 1;
  border: none;
  outline: none;
  padding: 0 12px;
  height: 40px;
  font-size: 14px;
  background: white;
}

.search-btn {
  background: var(--orange);
  border: none;
  width: 46px;
  height: 40px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
  flex-shrink: 0;
}
.search-btn:hover { background: var(--orange-dark); }

/* Nav Actions */
.nav-actions { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }

.nav-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  color: white;
  padding: 6px 10px;
  border-radius: 3px;
  cursor: pointer;
  transition: background .15s;
  white-space: nowrap;
}
.nav-btn:hover { background: rgba(255,255,255,.1); outline: 1px solid white; }
.nav-btn-top { font-size: 11px; opacity: .9; }
.nav-btn-bot { font-size: 13px; font-weight: 700; }

.cart-nav-btn { flex-direction: column; align-items: center; gap: 0; padding: 4px 12px; }
.cart-icon-wrap { position: relative; }
.cart-count {
  position: absolute;
  top: -8px; right: -10px;
  background: var(--orange);
  color: var(--navy);
  font-size: 13px;
  font-weight: 800;
  border-radius: 50%;
  min-width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

/* Nav Bottom */
.nav-bottom {
  background: var(--navy-mid);
  padding: 0 20px;
  display: flex;
  gap: 4px;
  overflow-x: auto;
}
.nav-link {
  color: white;
  padding: 8px 12px;
  font-size: 13px;
  border-radius: 2px;
  transition: background .15s;
  white-space: nowrap;
}
.nav-link:hover, .nav-link.active { background: rgba(255,255,255,.15); outline: 1px solid rgba(255,255,255,.5); }
.nav-deal { color: #90ee90; font-weight: 600; }

/* ---- HERO ---- */
.hero {
  position: relative;
  overflow: hidden;
  height: 420px;
}

.hero-slides { position: relative; width: 100%; height: 100%; }

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 80px;
  opacity: 0;
  transform: translateX(60px);
  transition: all .6s cubic-bezier(0.4,0,0.2,1);
  pointer-events: none;
}
.hero-slide.active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.hero-content { color: white; max-width: 500px; }
.hero-tag {
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: .8;
  margin-bottom: 12px;
  color: var(--orange);
}
.hero-content h1 {
  font-size: 44px;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 16px;
}
.hero-sub { font-size: 16px; opacity: .85; margin-bottom: 28px; }
.hero-cta {
  display: inline-block;
  background: var(--orange);
  color: var(--navy);
  font-weight: 700;
  padding: 14px 32px;
  border-radius: 4px;
  font-size: 15px;
  transition: background .2s, transform .2s;
}
.hero-cta:hover { background: var(--orange-dark); transform: translateY(-2px); }

.hero-img {
  width: 360px;
  height: 300px;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
  animation: float 3s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.hero-prev, .hero-next {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  background: rgba(0,0,0,.4);
  color: white;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  transition: background .2s;
  z-index: 10;
}
.hero-prev { left: 16px; }
.hero-next { right: 16px; }
.hero-prev:hover, .hero-next:hover { background: rgba(0,0,0,.7); }

.hero-dots {
  position: absolute;
  bottom: 16px; left: 50%;
  transform: translateX(-50%);
  display: flex; gap: 8px;
}
.dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.4);
  cursor: pointer;
  transition: background .2s, transform .2s;
}
.dot.active { background: white; transform: scale(1.3); }

/* ---- CATEGORIES ---- */
.categories-section { padding: 36px 20px 0; }
.section-title { font-size: 24px; font-weight: 700; margin-bottom: 20px; color: var(--text); }

.categories-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

.cat-card {
  background: white;
  border-radius: var(--radius);
  padding: 20px 12px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--text);
  border: 1px solid var(--border);
}
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.cat-icon {
  width: 52px; height: 52px;
  background: color-mix(in srgb, var(--c) 15%, white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  border: 2px solid color-mix(in srgb, var(--c) 30%, white);
}
.cat-card span { font-size: 13px; font-weight: 600; }

/* ---- PRODUCTS SECTION ---- */
.products-section { padding: 36px 20px 60px; }

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.sort-row { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.sort-row select {
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: white;
  cursor: pointer;
  font-size: 13px;
}

/* ---- PRODUCTS GRID ---- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 16px;
}

.product-card {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
  display: flex;
  flex-direction: column;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }

.product-img-wrap {
  position: relative;
  height: 220px;
  background: #f7f7f7;
  overflow: hidden;
}
.product-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
  transition: transform .3s;
}
.product-card:hover .product-img { transform: scale(1.05); }

.product-badge {
  position: absolute;
  top: 10px; left: 10px;
  background: #cc0000;
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 3px;
}
.discount-badge {
  position: absolute;
  top: 10px; right: 10px;
  background: var(--orange);
  color: var(--navy);
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 3px;
}

.product-card-body { padding: 14px; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.product-brand-tag { font-size: 11px; color: var(--blue); font-weight: 600; text-transform: uppercase; letter-spacing: .5px; }
.product-card-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
}
.product-card-name a { color: inherit; }

.product-rating { display: flex; align-items: center; gap: 4px; font-size: 13px; }
.rating-num { font-weight: 600; color: #c45500; }
.rating-count { color: var(--blue); font-size: 12px; }

.product-card-price { display: flex; align-items: baseline; gap: 8px; margin-top: 2px; }
.price-main { font-size: 20px; font-weight: 800; color: var(--text); }
.price-original { font-size: 13px; color: var(--text-muted); text-decoration: line-through; }

.delivery-tag { font-size: 12px; color: var(--green); font-weight: 500; }

.product-card-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
  padding-top: 10px;
}

/* ---- BUTTONS ---- */
.btn-primary {
  background: linear-gradient(to bottom, #f7dfa5, #f0c14b);
  color: #111;
  border: 1px solid #a88734;
  border-radius: 4px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s;
  white-space: nowrap;
}
.btn-primary:hover { background: linear-gradient(to bottom, #f5d78e, #e8b429); }
.btn-primary.full { width: 100%; padding: 12px; font-size: 14px; }

.btn-secondary {
  background: linear-gradient(to bottom, #f7f7f7, #e8e8e8);
  color: #111;
  border: 1px solid #aaa;
  border-radius: 4px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s;
  white-space: nowrap;
}
.btn-secondary:hover { background: linear-gradient(to bottom, #e8e8e8, #d8d8d8); }

.btn-icon {
  background: white;
  border: 1px solid var(--border);
  border-radius: 4px;
  width: 36px;
  height: 36px;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .15s;
  flex-shrink: 0;
  color: #555;
}
.btn-icon:hover { background: #fff0e8; border-color: var(--orange); color: var(--orange); }

/* ---- PRODUCT DETAIL ---- */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  background: white;
  padding: 32px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 32px;
}

.product-gallery { display: flex; gap: 12px; }
.thumb-list { display: flex; flex-direction: column; gap: 8px; }
.thumb {
  width: 64px; height: 64px;
  object-fit: contain;
  border: 2px solid var(--border);
  border-radius: 4px;
  cursor: pointer;
  padding: 4px;
  background: #f7f7f7;
  transition: border-color .15s;
}
.thumb.active, .thumb:hover { border-color: var(--orange); }

.main-image-wrap { position: relative; flex: 1; }
.main-image {
  width: 100%;
  max-height: 440px;
  object-fit: contain;
  border-radius: 8px;
  background: #f7f7f7;
  padding: 20px;
}
.badge-large {
  display: none;
  position: absolute;
  top: 12px; left: 12px;
  background: #cc0000;
  color: white;
  font-size: 13px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 4px;
}

.product-info-panel { display: flex; flex-direction: column; gap: 16px; }
.product-brand { color: var(--blue); font-size: 13px; cursor: pointer; }
.product-brand:hover { text-decoration: underline; }
.product-name-detail { font-size: 26px; font-weight: 700; line-height: 1.3; }
.rating-row { display: flex; align-items: center; gap: 10px; }
.stars-large { font-size: 20px; }
.rating-count { color: var(--blue); font-size: 13px; }

.price-panel { display: flex; align-items: baseline; gap: 12px; border-top: 1px solid var(--border); padding-top: 14px; }
.price-large { font-size: 32px; font-weight: 800; }
.original-price-large { font-size: 16px; color: var(--text-muted); text-decoration: line-through; }
.savings-badge { background: #cc0000; color: white; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 3px; }

.stock-status { font-size: 16px; font-weight: 600; }

.qty-row { display: flex; align-items: center; gap: 12px; }
.qty-control {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}
.qty-control button {
  background: #f3f3f3;
  border: none;
  width: 36px; height: 36px;
  font-size: 18px;
  cursor: pointer;
  transition: background .15s;
}
.qty-control button:hover { background: #e8e8e8; }
.qty-control span { padding: 0 16px; font-weight: 600; min-width: 40px; text-align: center; }
.qty-control.small button { width: 28px; height: 28px; font-size: 14px; }
.qty-control.small span { padding: 0 10px; }

.action-btns { display: flex; gap: 10px; }
.action-btns .btn-primary, .action-btns .btn-secondary { flex: 1; padding: 12px; font-size: 14px; }

.delivery-info {
  background: #f7f7f7;
  border-radius: 8px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.delivery-row { display: flex; align-items: flex-start; gap: 12px; font-size: 13px; }
.delivery-row span { font-size: 18px; flex-shrink: 0; margin-top: 1px; }

/* Description Section */
.description-section {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  margin-bottom: 60px;
}
.desc-tabs { display: flex; border-bottom: 2px solid var(--border); margin-bottom: 20px; gap: 0; }
.desc-tab {
  background: none;
  border: none;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-muted);
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: all .15s;
}
.desc-tab.active, .desc-tab:hover { color: var(--text); border-bottom-color: var(--orange); }
.desc-text { font-size: 15px; line-height: 1.8; color: #333; }
.feature-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.feature-list li { display: flex; gap: 10px; font-size: 14px; }
.feature-list li::before { content: "✓"; color: var(--green); font-weight: 700; flex-shrink: 0; }

.review-item {
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}
.review-header { display: flex; gap: 12px; align-items: center; margin-bottom: 8px; }
.star-picker { display: flex; gap: 4px; font-size: 28px; cursor: pointer; margin-bottom: 12px; }
.star-picker span { color: #ccc; transition: color .15s; }
.star-picker span:hover, .star-picker span.active { color: var(--orange); }
#reviewComment {
  width: 100%; padding: 12px; border: 1px solid var(--border);
  border-radius: 4px; font-size: 14px; resize: vertical;
  font-family: inherit; margin-bottom: 12px;
}

/* ---- CART PAGE ---- */
.cart-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
  align-items: start;
}
.cart-items {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
}
.cart-item {
  display: flex;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.cart-item:last-child { border-bottom: none; }
.cart-item-img {
  width: 120px; height: 120px;
  object-fit: contain;
  background: #f7f7f7;
  border-radius: 8px;
  padding: 8px;
  flex-shrink: 0;
}
.cart-item-details { flex: 1; }
.cart-item-name { font-size: 16px; font-weight: 600; color: var(--blue); display: block; margin-bottom: 6px; }
.cart-item-name:hover { text-decoration: underline; }
.cart-item-price { font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.in-stock-label { color: var(--green); font-size: 13px; margin-bottom: 10px; }
.cart-item-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.delete-btn {
  background: none; border: none; color: var(--blue);
  font-size: 13px; cursor: pointer;
}
.delete-btn:hover { text-decoration: underline; }
.wishlist-btn {
  background: none; border: none; color: var(--blue);
  font-size: 13px; cursor: pointer;
}
.wishlist-btn:hover { text-decoration: underline; }
.cart-item-total { font-size: 18px; font-weight: 700; white-space: nowrap; flex-shrink: 0; }

.cart-summary {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  position: sticky;
  top: 80px;
}
.cart-summary h3 { font-size: 20px; margin-bottom: 16px; }
.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.total-row { font-size: 18px; font-weight: 800; border-bottom: none; padding-top: 12px; }
.free-tag { color: var(--green); font-weight: 600; }
.continue-link { display: block; text-align: center; color: var(--blue); font-size: 13px; margin-top: 12px; }
.continue-link:hover { text-decoration: underline; }

/* ---- CHECKOUT ---- */
.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 24px;
  align-items: start;
  padding-bottom: 60px;
}
.checkout-step {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  margin-bottom: 20px;
}
.checkout-step h2 { font-size: 20px; margin-bottom: 20px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.full { grid-column: 1 / -1; }
.form-group label { font-size: 13px; font-weight: 600; }
.form-group input, .form-group select {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 14px;
  font-family: inherit;
  transition: border-color .15s;
}
.form-group input:focus, .form-group select:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(255,153,0,.15);
}

.payment-options { display: flex; flex-direction: column; gap: 10px; }
.payment-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  transition: all .15s;
}
.payment-option.selected { border-color: var(--orange); background: #fff8ee; }
.payment-option input { accent-color: var(--orange); }

.order-summary-panel {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  position: sticky;
  top: 80px;
}
.order-summary-panel h3 { font-size: 18px; margin-bottom: 16px; }
.order-items-list { max-height: 300px; overflow-y: auto; margin-bottom: 16px; }
.order-item-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.order-item-img { width: 48px; height: 48px; object-fit: contain; background: #f7f7f7; border-radius: 4px; flex-shrink: 0; }
.order-item-name { flex: 1; line-height: 1.3; }
.order-item-price { font-weight: 600; }

/* ---- ORDERS PAGE ---- */
.order-card {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  margin-bottom: 16px;
  overflow: hidden;
}
.order-card-header {
  background: #f7f7f7;
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
}
.order-id { font-weight: 700; font-size: 14px; }
.order-date { color: var(--text-muted); font-size: 13px; margin-left: 16px; }
.order-status { font-weight: 700; font-size: 13px; letter-spacing: .5px; }
.order-products { padding: 16px 20px; }
.order-prod-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.order-prod-row:last-child { border-bottom: none; }
.order-prod-img { width: 56px; height: 56px; object-fit: contain; background: #f7f7f7; border-radius: 4px; flex-shrink: 0; }
.order-prod-row span:first-of-type { flex: 1; }
.order-prod-row span:last-child { font-weight: 700; }
.order-card-footer {
  background: #f7f7f7;
  padding: 12px 20px;
  display: flex;
  gap: 20px;
  font-size: 13px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
}

/* ---- AUTH MODAL ---- */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}
.modal {
  background: white;
  border-radius: 12px;
  padding: 32px;
  width: 100%;
  max-width: 420px;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,.4);
  animation: modalIn .25s ease;
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(.95) translateY(-12px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: var(--text-muted);
  line-height: 1;
}
.modal-title { font-size: 22px; font-weight: 700; margin-bottom: 20px; }
.modal-tabs { display: flex; border-bottom: 2px solid var(--border); margin-bottom: 20px; }
.tab-btn {
  flex: 1;
  background: none;
  border: none;
  padding: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-muted);
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: all .15s;
}
.tab-btn.active { color: var(--text); border-bottom-color: var(--orange); }
.form-error { color: var(--red); font-size: 13px; margin-bottom: 10px; min-height: 18px; }

/* ---- SUCCESS MODAL ---- */
.success-modal { text-align: center; }
.success-icon { font-size: 60px; margin-bottom: 16px; }
.success-modal h2 { font-size: 26px; font-weight: 800; margin-bottom: 12px; }
.success-modal p { color: var(--text-muted); margin-bottom: 24px; }
.success-modal .btn-secondary { display: block; width: 100%; }

/* ---- MISC ---- */
.breadcrumb { font-size: 13px; color: var(--text-muted); margin-bottom: 20px; }
.breadcrumb a { color: var(--blue); }
.breadcrumb a:hover { text-decoration: underline; }

.page-title { font-size: 28px; font-weight: 800; margin-bottom: 24px; }

.spinner-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 60px;
  width: 100%;
}
.spinner {
  width: 42px; height: 42px;
  border: 4px solid var(--border);
  border-top-color: var(--orange);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.empty-state {
  text-align: center;
  padding: 60px 20px;
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.empty-icon { font-size: 60px; margin-bottom: 16px; }
.empty-state h2 { font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.empty-state p { color: var(--text-muted); margin-bottom: 24px; }

.no-products { text-align: center; padding: 60px; color: var(--text-muted); font-size: 18px; }

.toast {
  position: fixed;
  bottom: 24px; left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: #111;
  color: white;
  padding: 12px 28px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 500;
  z-index: 99999;
  box-shadow: 0 4px 20px rgba(0,0,0,.3);
  transition: transform .3s cubic-bezier(0.4,0,0.2,1);
  pointer-events: none;
  white-space: nowrap;
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* ---- FOOTER ---- */
.footer { background: var(--navy); color: white; margin-top: 0; }
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding: 48px 20px;
}
.footer-col h3 { font-size: 18px; font-weight: 800; margin-bottom: 12px; }
.footer-col h4 { font-size: 14px; font-weight: 700; margin-bottom: 12px; }
.footer-col p { font-size: 13px; opacity: .7; line-height: 1.7; }
.footer-col a { display: block; font-size: 13px; opacity: .7; margin-bottom: 8px; transition: opacity .15s; }
.footer-col a:hover { opacity: 1; text-decoration: underline; }
.footer-bottom { background: rgba(0,0,0,.3); text-align: center; padding: 16px; font-size: 12px; opacity: .6; }

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .categories-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .checkout-layout { grid-template-columns: 1fr; }
  .order-summary-panel { position: static; }
  .cart-layout { grid-template-columns: 1fr; }
  .cart-summary { position: static; }
}

@media (max-width: 768px) {
  .hero { height: 260px; }
  .hero-slide { padding: 0 40px; }
  .hero-img { display: none; }
  .hero-content h1 { font-size: 28px; }
  .categories-grid { grid-template-columns: repeat(3, 1fr); }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .search-cat { display: none; }
  .product-detail { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 480px) {
  .products-grid { grid-template-columns: 1fr; }
  .nav-bottom { display: none; }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
}
