/* ===== Tenza Shop - Temu-Inspired Design ===== */
:root {
  --orange: #f97316;
  --orange-dark: #ea580c;
  --orange-light: #fff7ed;
  --orange-50: #fff7ed;
  --red: #e8380d;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --white: #ffffff;
  --green: #16a34a;
  --yellow: #eab308;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 32px rgba(0,0,0,0.12);
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #0a0a0a;
  color: #e5e5e5;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 70px;
}

.container { max-width: 100%; margin: 0 auto; padding: 0 16px; }

/* Announcement Bar */
.announcement-bar {
  background: linear-gradient(90deg, var(--slate-900), var(--slate-800));
  color: white;
  text-align: center;
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3px;
  overflow: hidden;
}
.announcement-inner { animation: marquee 20s linear infinite; white-space: nowrap; }
@keyframes marquee {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}
.announcement-text { color: var(--orange); }

/* Header — handled by Tailwind utility classes in index.html */
.header {
  background: #0a0a0a;
  border-bottom: 1px solid #262626;
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 16px;
  max-width: 1320px;
  margin: 0 auto;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--orange), var(--red));
  color: white;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 18px;
}
.logo-text {
  font-weight: 800;
  font-size: 22px;
  color: var(--slate-900);
  letter-spacing: -0.5px;
}

/* Search Bar */
.search-bar {
  flex: 1;
  display: flex;
  max-width: 600px;
  position: relative;
}
.search-input {
  width: 100%;
  padding: 10px 48px 10px 16px;
  border: 2px solid var(--orange);
  border-radius: 24px;
  font-size: 14px;
  outline: none;
  background: var(--slate-50);
  transition: all 0.2s;
}
.search-input:focus {
  background: white;
  box-shadow: 0 0 0 3px rgba(249,115,22,0.15);
}
.search-btn {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--orange);
  color: white;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.search-btn:hover { background: var(--orange-dark); }

/* Header Actions */
.header-actions { display: flex; gap: 8px; align-items: center; flex-shrink: 0; }
.header-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--slate-700);
  font-size: 11px;
  font-weight: 500;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}
.header-btn:hover { color: var(--orange); background: var(--orange-50); }
.cart-btn { position: relative; }
.cart-count {
  position: absolute;
  top: -2px;
  right: 0;
  background: var(--red);
  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 4px;
}

/* Categories Nav */
.categories-nav {
  background: #0a0a0a;
  border-bottom: 1px solid #262626;
  overflow-x: auto;
  scrollbar-width: none;
}
.categories-nav::-webkit-scrollbar { display: none; }
.categories-scroll {
  display: flex;
  gap: 8px;
  padding: 10px 16px;
  white-space: nowrap;
}
.cat-pill {
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}
.cat-pill:hover {
  border-color: #f97316;
}

/* Hero Carousel */
.hero-carousel {
  position: relative;
  margin: 12px 16px;
  border-radius: var(--radius);
  overflow: hidden;
  max-width: 1320px;
  margin-left: auto;
  margin-right: auto;
}
.hero-slide {
  background: linear-gradient(135deg, var(--orange), var(--red), #c2185b);
  padding: 40px 32px;
  color: white;
  min-height: 200px;
  display: flex;
  align-items: center;
  border-radius: var(--radius);
}
.hero-content { max-width: 500px; }
.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(8px);
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 12px;
}
.hero-title {
  font-size: 32px;
  font-weight: 900;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}
.hero-subtitle { font-size: 16px; opacity: 0.9; margin-bottom: 16px; }
.hero-cta {
  background: white;
  color: var(--orange-dark);
  border: none;
  padding: 10px 28px;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}
.hero-cta:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(0,0,0,0.2); }
.hero-dots {
  display: flex;
  gap: 6px;
  justify-content: center;
  padding: 8px;
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
}
.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: all 0.3s;
}
.hero-dot.active { background: white; width: 20px; border-radius: 4px; }

/* Quick Actions */
.quick-actions { padding: 16px 0; }
.quick-grid {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 0 4px;
}
.quick-grid::-webkit-scrollbar { display: none; }
.quick-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  cursor: pointer;
  min-width: 72px;
  flex-shrink: 0;
}
.quick-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
}
.quick-item:hover .quick-icon { transform: scale(1.08); }
.quick-item span { font-size: 11px; font-weight: 600; color: var(--slate-700); }

/* Section Headers */
.section { padding: 8px 0 16px; }
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding: 0 4px;
}
.section-title-group { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.section-title {
  font-size: 18px;
  font-weight: 800;
  color: #e5e5e5;
  display: flex;
  align-items: center;
  gap: 6px;
}
.see-all {
  color: var(--orange);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.see-all:hover { text-decoration: underline; }

/* Countdown */
.countdown { display: flex; align-items: center; gap: 4px; }
.cd-label { font-size: 12px; color: var(--slate-500); margin-right: 4px; }
.cd-block {
  background: var(--slate-900);
  color: white;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* Horizontal Product Scroll (Flash Deals) */
.products-scroll {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 4px 4px 8px;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
}
.products-scroll::-webkit-scrollbar { display: none; }
.products-scroll .product-card {
  min-width: 90px;
  max-width: 100px;
  flex-shrink: 0;
  scroll-snap-align: start;
}
.products-scroll .product-card .product-info { padding: 4px; }
.products-scroll .product-card .product-name { font-size: 10px; margin-bottom: 2px; }
.products-scroll .product-card .product-price { font-size: 11px; }
.products-scroll .product-card .product-price-original { font-size: 9px; }
.products-scroll .product-card .product-discount { font-size: 9px; }
.products-scroll .product-card .product-badge { font-size: 8px; padding: 1px 4px; top: 4px; left: 4px; }
.products-scroll .product-card .wishlist-btn,
.products-scroll .product-card .product-wishlist { width: 20px; height: 20px; top: 3px; right: 3px; }
.products-scroll .product-card .product-category-tag { font-size: 8px; padding: 1px 4px; }

/* Product Grid (Recommended For You) */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
  padding: 0 8px;
}
.product-grid .product-card .product-info { padding: 4px; }
.product-grid .product-card .product-name { font-size: 10px; margin-bottom: 2px; }
.product-grid .product-card .product-price { font-size: 11px; }
.product-grid .product-card .product-price-original { font-size: 9px; }
.product-grid .product-card .product-discount { font-size: 9px; }
.product-grid .product-card .product-badge { font-size: 8px; padding: 1px 4px; top: 4px; left: 4px; }
.product-grid .product-card .wishlist-btn,
.product-grid .product-card .product-wishlist { width: 20px; height: 20px; top: 3px; right: 3px; }
.product-grid .product-card .product-category-tag { font-size: 8px; padding: 1px 4px; }

/* Product Card */
.product-card {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transform: scale(1);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  border: 1px solid var(--slate-100);
}
.product-card:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  z-index: 10;
}
.product-image,
.product-img-wrap {
  position: relative;
  aspect-ratio: 1;
  background: var(--slate-100);
  overflow: hidden;
}
.product-image img,
.product-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.product-card:hover .product-image img,
.product-card:hover .product-img-wrap img { transform: scale(1.05); }
.product-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--red);
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 0.3px;
}
.product-badge.new { background: var(--green); }
.product-badge.hot { background: var(--orange); }
.product-wishlist {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 30px;
  height: 30px;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(4px);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  color: var(--slate-400);
}
.product-wishlist:hover { color: var(--red); background: white; }
.product-sold {
  position: absolute;
  bottom: 8px;
  left: 8px;
  right: 8px;
  height: 4px;
  background: rgba(255,255,255,0.5);
  border-radius: 2px;
  overflow: hidden;
}
.product-sold-bar {
  height: 100%;
  background: var(--orange);
  border-radius: 2px;
  transition: width 0.3s;
}
.product-info { padding: 8px; }
.wishlist-btn {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 28px;
  height: 28px;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(4px);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  color: var(--slate-400);
  z-index: 2;
}
.wishlist-btn:hover { color: var(--red); background: white; }
.wishlist-btn.wishlisted { color: var(--orange); }
.product-category-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  color: var(--slate-500);
  background: var(--slate-100);
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: capitalize;
  margin-bottom: 4px;
  letter-spacing: 0.3px;
}
.product-category-tag {
  display: inline-block;
  font-size: 9px;
  color: var(--orange);
  background: var(--orange-light);
  padding: 1px 6px;
  border-radius: 3px;
  margin-bottom: 3px;
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 0.2px;
  text-transform: capitalize;
  transition: background 0.15s, color 0.15s;
}
.product-category-tag:hover {
  background: var(--orange);
  color: #fff;
}

/* Product Card Hover Overlay */
.product-hover-tile {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.1));
  opacity: 0;
  transition: opacity 0.2s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 10px;
  color: #fff;
  pointer-events: none;
  border-radius: var(--radius);
}
.product-card:hover .product-hover-tile,
[onclick]:hover > .product-hover-tile {
  opacity: 1;
}
.product-hover-tile .hover-line {
  font-size: 11px;
  margin-bottom: 4px;
}
.product-hover-tile .hover-cta {
  font-size: 12px;
  font-weight: 700;
  color: #ffeb3b;
}

/* Product price yellow accent */
.product-price-yellow {
  color: #ffeb3b;
  font-size: 15px;
  font-weight: 700;
}
.product-old-price-dim {
  text-decoration: line-through;
  font-size: 11px;
  color: #999;
  margin-left: 4px;
}
.product-tag-accent {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #ffab40;
}
.product-badge-shipping {
  position: absolute;
  top: 6px;
  left: 6px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 999px;
  z-index: 2;
}

/* Flash Sale Countdown Banner */
.hero-tile-badge {
  position: absolute;
  bottom: 4px;
  left: 4px;
  background: rgba(0, 0, 0, 0.62);
  color: #fff;
  font-size: 9px;
  font-weight: 600;
  line-height: 1;
  padding: 3px 6px;
  border-radius: 999px;
  white-space: nowrap;
  pointer-events: none;
}

.countdown-banner {
  background: linear-gradient(90deg, #ff6a00, #ff3c00);
  color: #fff;
  padding: 12px;
  font-size: 18px;
  font-weight: 700;
  text-align: center;
  border-radius: 6px;
  margin: 10px 8px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}
.countdown-banner .cb-label {
  font-size: 16px;
}
.countdown-banner .cb-timer {
  font-family: 'SF Mono', Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
  font-variant-numeric: tabular-nums;
  font-size: 18px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.25);
}
@media (max-width: 480px) {
  .countdown-banner { font-size: 16px; padding: 10px 8px; }
  .countdown-banner .cb-label { font-size: 15px; }
  .countdown-banner .cb-timer { font-size: 18px; }
}
@media (min-width: 1024px) {
  .countdown-banner { font-size: 20px; }
}

/* Live Deals Hero Wrapper */
.live-hero-wrapper {
  margin: 0 0 14px;
  border-radius: 10px;
  overflow: hidden;
  background: linear-gradient(90deg, #ff6a00, #ff3c00);
  position: relative;
}
.live-hero-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px 4px;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
}
.live-hero-header-left {
  display: flex;
  align-items: center;
  gap: 6px;
}
.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ffeb3b;
  box-shadow: 0 0 8px rgba(255, 235, 59, 0.9);
  animation: livePulse 1.5s ease-in-out infinite;
}
@keyframes livePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
.live-hero-sub {
  font-size: 11px;
  font-weight: 500;
  opacity: 0.9;
}
.live-hero-header-right {
  font-size: 11px;
  opacity: 0.9;
  font-weight: 500;
}
.live-carousel-inner {
  overflow: hidden;
  padding: 8px 0 10px;
}
.live-track {
  display: flex;
  gap: 16px;
  padding: 0 12px 6px;
  animation: scrollLeft 25s linear infinite;
  width: max-content;
}
.live-track:hover {
  animation-play-state: paused;
}
@keyframes scrollLeft {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.live-track .live-tile {
  min-width: 120px;
  max-width: 140px;
  flex-shrink: 0;
  background: rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s;
  padding: 6px;
  color: #fff;
  font-size: 11px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.live-track .live-tile:hover {
  transform: scale(1.06);
}
.live-track .live-tile img {
  width: 100%;
  height: 68px;
  object-fit: cover;
  display: block;
  border-radius: 6px;
  background: #fff;
}
.live-track .live-tile .live-tile-info {
  padding: 0;
  color: #fff;
}
.live-track .live-tile .live-tile-info .live-tile-name {
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  max-height: 2.4em;
  overflow: hidden;
}
.live-track .live-tile .live-tile-info .live-tile-price {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}
.live-track .live-tile .live-tile-info .live-tile-pricing {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
}
.live-track .live-tile .live-tile-info .live-tile-now {
  font-size: 14px;
  font-weight: 800;
  color: #fff;
}
.live-track .live-tile .live-tile-info .live-tile-was {
  font-size: 11px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.72);
  text-decoration: line-through;
}
.live-track .live-tile .live-tile-info .live-tile-tag {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #ffe082;
}
@media (max-width: 480px) {
  .live-track .live-tile { min-width: 100px; max-width: 120px; }
  .live-track .live-tile img { height: 53px; }
}
@media (min-width: 1024px) {
  .live-track .live-tile { min-width: 140px; }
}

/* Trending Now Section */
.trending-section {
  padding: 0;
}
.section-title {
  font-size: 16px;
  font-weight: 700;
  color: #e5e5e5;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.section-badge {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #999;
  font-weight: 500;
}
.trending-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}

.product-name {
  font-size: 12px;
  font-weight: 500;
  color: var(--slate-800);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 4px;
  min-height: unset;
}
.product-pricing { display: flex; align-items: baseline; gap: 4px; margin-bottom: 4px; }
.product-price {
  font-size: 15px;
  font-weight: 800;
  color: var(--red);
}
.product-price-original {
  font-size: 12px;
  color: var(--slate-400);
  text-decoration: line-through;
}
.product-discount {
  font-size: 11px;
  font-weight: 700;
  color: var(--orange-dark);
  background: var(--orange-light);
  padding: 1px 6px;
  border-radius: 4px;
}
.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
}
.product-sold-text {
  font-size: 11px;
  color: var(--slate-400);
}
.product-rating {
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: 11px;
  color: var(--yellow);
}
.product-add-btn {
  width: 100%;
  padding: 6px;
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 4px;
  transition: opacity 0.2s;
}
.product-add-btn:hover { opacity: 0.9; }

/* Sort Controls */
.sort-controls { display: flex; gap: 8px; }
.sort-select {
  padding: 6px 12px;
  border: 1.5px solid var(--slate-200);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--slate-700);
  background: white;
  cursor: pointer;
  outline: none;
}
.sort-select:focus { border-color: var(--orange); }

/* Load More */
.load-more-wrap { text-align: center; padding: 20px 0; }
.load-more-btn {
  background: white;
  color: var(--orange);
  border: 2px solid var(--orange);
  padding: 10px 40px;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}
.load-more-btn:hover { background: var(--orange); color: white; }

/* Features Bar */
.features-bar {
  background: white;
  padding: 20px 0;
  margin: 8px 0;
  border-top: 1px solid var(--slate-100);
  border-bottom: 1px solid var(--slate-100);
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
@media (min-width: 768px) { .features-grid { grid-template-columns: repeat(4, 1fr); } }
.feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px;
}
.feature-item strong { display: block; font-size: 13px; font-weight: 700; color: var(--slate-900); }
.feature-item span { display: block; font-size: 11px; color: var(--slate-500); }

/* Footer */
.footer {
  background: #0a0a0a;
  color: white;
  padding: 40px 0 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  margin-top: 10px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin-bottom: 28px;
}
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.footer-logo .logo-text { color: white; }
.footer-desc { font-size: 13px; color: var(--slate-400); line-height: 1.6; }
.footer-col h4 { font-size: 14px; font-weight: 700; margin-bottom: 12px; color: var(--slate-200); }
.footer-col a {
  display: block;
  color: var(--slate-400);
  text-decoration: none;
  font-size: 13px;
  padding: 4px 0;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--orange); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding-top: 16px;
  text-align: center;
  font-size: 11px;
  color: #999;
}
.footer-trust {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  padding: 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}
@media (min-width: 640px) { .footer-trust { grid-template-columns: repeat(2, 1fr); } }
.footer-trust-col h4 { font-size: 14px; font-weight: 700; margin-bottom: 12px; color: var(--slate-200); }
.footer-trust-list { list-style: none; margin: 0; padding: 0; }
.footer-trust-list li {
  font-size: 13px;
  color: var(--slate-400);
  padding: 3px 0 3px 20px;
  position: relative;
}
.footer-trust-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--orange);
  font-weight: 700;
}

/* Category hub + We Accept (payment symbols) */
.footer-hub {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  padding: 4px 0 28px;
}
@media (min-width: 900px) {
  .footer-hub { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.5fr); align-items: start; }
}
.footer-hub-cats h4,
.footer-accept h4 { font-size: 14px; font-weight: 700; margin-bottom: 14px; color: var(--slate-200); }
/* Double-stacked, left-to-right wrapping list of categories */
.il-cat-links { display: flex; flex-wrap: wrap; gap: 6px 22px; }
#il-category-hub .il-cat-links a {
  display: inline-block;
  color: var(--slate-400);
  text-decoration: none;
  font-size: 13px;
  padding: 3px 0;
  white-space: nowrap;
  transition: color 0.2s;
}
#il-category-hub .il-cat-links a:hover { color: var(--orange); }
/* The "We Accept" rectangle */
.footer-accept {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 18px 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.01));
}
.footer-accept-note { margin: 14px 0 0; font-size: 12px; color: var(--slate-400); }
.pay-strip { gap: 10px; }
.pay-card {
  width: 46px;
  height: 30px;
  background: #fff;
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}
.pay-card svg { width: 100%; height: 100%; display: block; }

.footer-pay { display: flex; flex-wrap: wrap; gap: 8px; }
.footer-pay span {
  font-size: 12px;
  color: var(--slate-200);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 4px 10px;
}
.footer-app-note { font-size: 13px; color: var(--slate-400); line-height: 1.6; }

/* Policies — spaced away from the trust info and made to stand out */
.footer-policies {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-top: 36px;
  padding: 28px 0 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-policies-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--slate-200);
}
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px 14px;
}
.footer-legal a {
  color: var(--slate-200);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  padding: 9px 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.footer-legal a:hover {
  color: #fff;
  border-color: var(--orange);
  background: rgba(249, 115, 22, 0.14);
}

/* Cart Drawer */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}
.cart-overlay.open { opacity: 1; visibility: visible; }
.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(380px, 90vw);
  background: #171717;
  z-index: 201;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  box-shadow: -4px 0 24px rgba(0,0,0,0.1);
}
.cart-drawer.open { transform: translateX(0); }
.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #262626;
}
.cart-header h3 { font-size: 16px; font-weight: 700; color: #e5e5e5; }
.cart-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.cart-edit-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  background: var(--slate-100);
  border: 1px solid var(--slate-200);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--slate-700);
  cursor: pointer;
  transition: all 0.2s;
}
.cart-edit-btn:hover {
  background: var(--orange-light);
  color: var(--orange);
  border-color: var(--orange);
}
.cart-edit-btn svg { flex-shrink: 0; }
.cart-close {
  width: 32px;
  height: 32px;
  border: none;
  background: var(--slate-100);
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--slate-500);
}
.cart-items { flex: 1; overflow-y: auto; padding: 16px 20px; }
.cart-empty {
  text-align: center;
  padding: 40px 0;
  color: var(--slate-400);
}
.cart-empty p { font-size: 15px; font-weight: 600; margin-top: 12px; color: var(--slate-500); }
.cart-empty span { font-size: 13px; }
.cart-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--slate-100);
}
.cart-item-image {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--slate-100);
}
.cart-item-image img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-img {
  width: 96px;
  height: 96px;
  max-width: 96px;
  max-height: 96px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  background: var(--slate-100);
}
.cart-item-details { flex: 1; min-width: 0; }
.cart-item-name { font-size: 13px; font-weight: 500; margin-bottom: 4px; }
.cart-item-price { font-size: 15px; font-weight: 700; color: var(--red); }
.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}
.qty-btn {
  width: 26px;
  height: 26px;
  border: 1px solid var(--slate-200);
  background: white;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.qty-btn:hover { background: var(--slate-50); }
.cart-item-remove {
  background: none;
  border: none;
  color: var(--slate-400);
  font-size: 12px;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
  align-self: flex-start;
}
.cart-item-remove:hover { color: var(--red); }
.cart-item-qty-view {
  font-size: 12px;
  color: var(--slate-500);
  margin-top: 4px;
}
.cart-item-line-total {
  font-size: 14px;
  font-weight: 700;
  color: var(--slate-900);
  align-self: center;
  flex-shrink: 0;
  margin-left: auto;
}
.cart-done-edit-btn {
  background: var(--slate-800) !important;
}
.cart-done-edit-btn:hover {
  background: var(--slate-900) !important;
}
.cart-drawer.edit-mode .cart-header {
  border-bottom: 2px solid var(--orange);
}
.cart-footer {
  padding: 16px 20px;
  border-top: 1px solid #262626;
  background: #0a0a0a;
}
.cart-subtotal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-size: 15px;
}
.cart-subtotal strong { font-size: 20px; color: var(--red); }
.checkout-btn {
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, var(--orange), var(--red));
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s;
}
.checkout-btn:hover { opacity: 0.9; }
.cart-note {
  text-align: center;
  font-size: 11px;
  color: var(--slate-500);
  margin-top: 8px;
}

/* Auth Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 300;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  z-index: 301;
  background: #171717;
  border-radius: 20px;
  border: 1px solid #262626;
  width: min(420px, 92vw);
  padding: 32px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}
.modal.open { opacity: 1; visibility: visible; transform: translate(-50%, -50%) scale(1); }
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border: none;
  background: #262626;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  color: #a3a3a3;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Category subpage — opened from the All Categories list. Sized ~4x6 inches. */
.category-modal {
  width: min(384px, 92vw);
  height: min(576px, 88vh);
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.category-modal-title {
  font-size: 18px;
  font-weight: 800;
  color: #e5e5e5;
  margin: 0 0 14px;
  padding-right: 28px;
}
.category-modal-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  overflow-y: auto;
  align-content: start;
  padding-right: 4px;
}
.category-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: #0a0a0a;
  border: 1px solid #262626;
  border-radius: 12px;
  padding: 8px;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.2s, transform 0.2s;
}
.category-card:hover { border-color: var(--orange); transform: translateY(-2px); }
.category-card-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  overflow: hidden;
  background: linear-gradient(135deg, #1f1f1f, #2b2b2b);
}
.category-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.category-card-name {
  font-size: 12px;
  font-weight: 600;
  color: #e5e5e5;
  line-height: 1.25;
}
.auth-header { text-align: center; margin-bottom: 24px; }
.auth-header h2 { font-size: 20px; font-weight: 800; margin-top: 12px; color: #e5e5e5; }
.auth-header p { font-size: 13px; color: #737373; margin-top: 4px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: #d4d4d4; }
.form-input {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid #404040;
  border-radius: 10px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
  background: #0a0a0a;
  color: #e5e5e5;
}
.form-input:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(249,115,22,0.15); }
.auth-submit-btn {
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s;
  margin-top: 4px;
}
.auth-submit-btn:hover { opacity: 0.9; }
.auth-submit-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.auth-toggle { text-align: center; margin-top: 16px; font-size: 13px; color: #737373; }
.auth-toggle a { color: var(--orange); font-weight: 600; text-decoration: none; }
.auth-toggle a:hover { text-decoration: underline; }
.auth-message {
  margin-top: 12px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
  display: none;
}
.auth-message.error { display: block; background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }
.auth-message.success { display: block; background: #f0fdf4; color: #16a34a; border: 1px solid #bbf7d0; }

/* Mobile Bottom Nav */
.mobile-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #171717;
  border-top: 1px solid #262626;
  display: flex;
  justify-content: space-around;
  padding: 6px 0 env(safe-area-inset-bottom, 8px);
  z-index: 99;
}
@media (min-width: 768px) { .mobile-nav { display: none; } body { padding-bottom: 0; } }
.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  text-decoration: none;
  color: #737373;
  font-size: 10px;
  font-weight: 600;
  padding: 4px 0;
  transition: color 0.2s;
}
.mobile-nav-item.active, .mobile-nav-item:hover { color: var(--orange); }

/* Loading skeleton */
.skeleton {
  background: linear-gradient(90deg, var(--slate-100) 25%, var(--slate-50) 50%, var(--slate-100) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }

/* Responsive */
@media (max-width: 639px) {
  .header-btn span { display: none; }
  .logo-text { font-size: 18px; }
  .hero-title { font-size: 24px; }
  .hero-subtitle { font-size: 14px; }
  .hero-slide { padding: 28px 20px; min-height: 160px; }
  .section-title { font-size: 16px; }
  .features-grid { gap: 8px; }
  .feature-item { padding: 4px; gap: 8px; }
  .feature-item svg { width: 22px; height: 22px; }
}

/* Flash deals section bg */
.flash-deals {
  background: linear-gradient(180deg, var(--orange-50), var(--slate-50));
  padding: 10px 0;
  margin: 0 -16px;
  padding-left: 16px;
  padding-right: 16px;
}

/* ===== Product Detail Full Page ===== */
.product-detail-page {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: #0a0a0a;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.35s ease;
}
.product-detail-page.open {
  transform: translateX(0);
}
.product-detail-page-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #171717;
  border-bottom: 1px solid #262626;
  padding: 12px 16px;
}
.pd-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  font-size: 14px;
  font-weight: 600;
  color: #d4d4d4;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 8px;
  transition: background 0.2s;
}
.pd-back-btn:hover {
  background: #262626;
}
.product-detail-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  max-width: 1100px;
  margin: 24px auto;
  background: #171717;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #262626;
}
@media (max-width: 768px) {
  .product-detail-content { grid-template-columns: 1fr; }
}
.product-detail-image {
  position: relative;
  background: var(--slate-100);
  overflow: hidden;
}
.product-detail-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Image Gallery */
.pd-gallery { display: flex; flex-direction: column; }
.pd-gallery-main {
  position: relative;
  aspect-ratio: 1;
  background: var(--slate-100);
  overflow: hidden;
}
.pd-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: white;
  transition: opacity 0.2s ease;
}
.pd-gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  z-index: 2;
  transition: background 0.2s;
}
.pd-gallery-nav:hover { background: white; }
.pd-gallery-prev { left: 10px; }
.pd-gallery-next { right: 10px; }
.pd-gallery-counter {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(0,0,0,0.6);
  color: white;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 12px;
  z-index: 2;
}
.pd-gallery-thumbs {
  display: flex;
  gap: 6px;
  padding: 10px;
  overflow-x: auto;
  background: white;
  scrollbar-width: thin;
}
.pd-gallery-thumbs:empty { display: none; }
.pd-gallery-thumb {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  border-radius: 8px;
  border: 2px solid transparent;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.2s;
}
.pd-gallery-thumb.active { border-color: var(--orange); }
.pd-gallery-thumb:hover { border-color: var(--slate-400); }
.pd-gallery-thumb.active:hover { border-color: var(--orange); }
.pd-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-detail-info {
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pd-category-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--orange);
  background: var(--orange-light);
  padding: 3px 10px;
  border-radius: 4px;
  text-transform: capitalize;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.pd-category-tag:hover {
  background: var(--orange);
  color: #fff;
}
.pd-name {
  font-size: 20px;
  font-weight: 800;
  color: var(--slate-900);
  line-height: 1.3;
}
.pd-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}
.pd-reviews {
  color: var(--slate-500);
  font-size: 13px;
}
.pd-pricing {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}
.pd-pricing .product-price { font-size: 26px; }
.pd-description {
  font-size: 14px;
  color: var(--slate-500);
  line-height: 1.6;
}
.pd-stock {
  font-size: 13px;
  color: var(--slate-500);
}
.pd-in-stock { color: var(--green); font-weight: 600; }
.pd-out-stock { color: var(--red); font-weight: 600; }

/* Product Attributes */
.pd-attributes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 16px;
  padding: 12px;
  background: var(--slate-50);
  border-radius: 8px;
  font-size: 13px;
}
.pd-attr-item {
  display: flex;
  gap: 6px;
}
.pd-attr-key {
  color: var(--slate-500);
  font-weight: 500;
  white-space: nowrap;
}
.pd-attr-val {
  color: var(--slate-800);
  font-weight: 600;
}

/* SKU Display */
.pd-sku {
  font-size: 12px;
  color: var(--slate-500);
  font-family: monospace;
  margin-bottom: 4px;
}

/* Store Details */
.pd-store-details {
  margin-top: 16px;
  padding: 12px 16px;
  background: var(--slate-50);
  border-radius: 8px;
  border: 1px solid var(--slate-200);
}
.pd-store-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
}
.pd-store-header svg { color: var(--orange); flex-shrink: 0; }
.pd-store-label { color: var(--slate-500); }
.pd-store-name { color: var(--slate-800); font-weight: 600; }
.pd-store-meta {
  margin-top: 6px;
  font-size: 12px;
  color: var(--slate-500);
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Product Video */
.pd-video-section {
  margin-top: 24px;
  padding: 0;
}
.pd-section-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--slate-800);
  margin-bottom: 12px;
}
.pd-video-container {
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  background: #000;
}
.pd-video-container video {
  width: 100%;
  max-height: 400px;
  display: block;
}

/* Variant Options */
.pd-variant-section { margin-top: 4px; }
.pd-variant-options {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.pd-variant-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1.5px solid var(--slate-200);
  background: white;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--slate-700);
  cursor: pointer;
  transition: all 0.15s;
}
.pd-variant-btn:hover { border-color: var(--orange); }
.pd-variant-btn.active { border-color: var(--orange); background: var(--orange-light); color: var(--orange-dark); }
.pd-variant-btn img {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  object-fit: cover;
}

/* Full Description Section */
.pd-full-description {
  max-width: 1100px;
  margin: 24px auto;
  background: white;
  border-radius: 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.pd-desc-tabs {
  display: flex;
  border-bottom: 2px solid var(--slate-100);
  padding: 0 24px;
}
.pd-desc-tab {
  padding: 14px 20px;
  font-size: 14px;
  font-weight: 700;
  color: var(--slate-500);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  transition: all 0.2s;
}
.pd-desc-tab:hover { color: var(--slate-700); }
.pd-desc-tab.active { color: var(--orange); border-bottom-color: var(--orange); }
.pd-desc-content, .pd-specs-content {
  padding: 24px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--slate-700);
}
.pd-desc-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 12px 0;
}
.pd-desc-content p { margin-bottom: 12px; }
.pd-desc-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
}
.pd-desc-content table td, .pd-desc-content table th {
  padding: 8px 12px;
  border: 1px solid var(--slate-200);
  font-size: 13px;
}
.pd-specs-content table {
  width: 100%;
  border-collapse: collapse;
}
.pd-specs-content td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--slate-100);
  font-size: 13px;
}
.pd-specs-content td:first-child {
  color: var(--slate-500);
  font-weight: 500;
  width: 40%;
}
.pd-specs-content td:last-child {
  color: var(--slate-800);
  font-weight: 600;
}

/* Loading spinner for CJ detail fetch */
.pd-loading-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
}
.pd-loading-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--slate-200);
  border-top-color: var(--orange);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 768px) {
  .pd-gallery-thumb { width: 48px; height: 48px; }
  .pd-attributes { grid-template-columns: 1fr; }
  .pd-full-description { margin: 12px; border-radius: 12px; }
  .pd-desc-content, .pd-specs-content { padding: 16px; }
}

/* Sizes */
.pd-size-section { margin-top: 4px; }
.pd-size-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--slate-700);
  margin-bottom: 8px;
}
.pd-size-options {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.size-btn {
  min-width: 44px;
  height: 38px;
  border: 1.5px solid var(--slate-200);
  background: white;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--slate-700);
  cursor: pointer;
  transition: all 0.2s;
  padding: 0 12px;
}
.size-btn:hover { border-color: var(--orange); color: var(--orange); }
.size-btn.active {
  background: var(--orange);
  color: white;
  border-color: var(--orange);
}

/* Color selector */
.pd-color-section { margin-top: 4px; }
.pd-color-options {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.color-btn {
  min-width: 44px;
  height: 38px;
  border: 1.5px solid var(--slate-200);
  background: white;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--slate-700);
  cursor: pointer;
  transition: all 0.2s;
  padding: 0 12px;
}
.color-btn:hover { border-color: var(--orange); color: var(--orange); }
.color-btn.active {
  background: var(--orange);
  color: white;
  border-color: var(--orange);
}

/* Dynamic option groups (Color / Size / Package / etc. from CJ) */
.pd-options-container { display: flex; flex-direction: column; gap: 12px; margin-top: 4px; }
.pd-option-group { display: flex; flex-direction: column; gap: 6px; }
.pd-option-key { font-weight: 600; color: var(--slate-700); }
.pd-option-value { font-weight: 500; color: var(--slate-600); }
.pd-option-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.pd-option-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 4px 12px;
  border: 1.5px solid var(--slate-200);
  background: white;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--slate-700);
  cursor: pointer;
  transition: all 0.2s;
}
.pd-option-btn img {
  width: 28px;
  height: 28px;
  object-fit: cover;
  border-radius: 4px;
}
.pd-option-btn:hover { border-color: var(--orange); color: var(--orange); }
.pd-option-btn.active {
  border-color: var(--orange);
  background: var(--orange-light, #fff4ec);
  color: var(--orange-dark, #b34800);
}
.pd-selected-variant {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: var(--slate-600);
  margin-top: 4px;
}
.pd-variant-sku { font-family: monospace; }
.pd-variant-warn { color: #b91c1c; font-weight: 600; }

/* Qty row */
.pd-qty-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.pd-qty-row label {
  font-size: 13px;
  font-weight: 700;
  color: var(--slate-700);
}
.pd-qty-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
}

/* Actions */
.pd-actions {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}
.pd-add-btn {
  flex: 1;
  padding: 12px 20px;
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s;
}
.pd-add-btn:hover { opacity: 0.9; }
.pd-tryon-btn {
  flex: 1;
  padding: 12px 20px;
  background: white;
  color: var(--orange);
  border: 2px solid var(--orange);
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}
.pd-tryon-btn:hover {
  background: var(--orange-50);
}

/* Related Products */
.pd-related-section {
  max-width: 1100px;
  margin: 32px auto 48px;
  padding: 0 16px;
}
.pd-related-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--slate-900);
  margin-bottom: 16px;
}
.pd-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}
@media (max-width: 639px) {
  .pd-related-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
}

/* ===== Virtual Try-On Modal ===== */
.tryon-modal {
  width: min(900px, 96vw);
  max-height: 92vh;
  overflow-y: auto;
  padding: 24px;
}
.tryon-header {
  text-align: center;
  margin-bottom: 20px;
}
.tryon-header h2 { font-size: 22px; font-weight: 800; margin-top: 10px; }
.tryon-header p { font-size: 13px; color: var(--slate-500); margin-top: 4px; }
.tryon-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
@media (max-width: 639px) {
  .tryon-content { grid-template-columns: 1fr; }
}
.tryon-left, .tryon-right {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.tryon-product-preview {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--slate-50);
  border-radius: var(--radius);
  border: 1px solid var(--slate-100);
}
.tryon-product-preview img {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}
.tryon-product-preview p {
  font-size: 14px;
  font-weight: 600;
  color: var(--slate-800);
}

/* Upload */
.tryon-upload-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 40px 20px;
  border: 2px dashed var(--slate-200);
  border-radius: var(--radius);
  background: var(--slate-50);
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
  color: var(--slate-500);
}
.tryon-upload-label:hover {
  border-color: var(--orange);
  background: var(--orange-50);
  color: var(--orange);
}
.tryon-upload-label span { font-weight: 600; font-size: 14px; }
.tryon-upload-label small { font-size: 12px; color: var(--slate-400); }

.tryon-photo-preview {
  position: relative;
  text-align: center;
}
.tryon-photo-preview canvas {
  width: 100%;
  max-width: 400px;
  border-radius: var(--radius);
  border: 1px solid var(--slate-200);
  background: var(--slate-100);
}
.tryon-change-photo {
  margin-top: 8px;
  padding: 6px 16px;
  background: white;
  border: 1px solid var(--slate-200);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: var(--slate-500);
  cursor: pointer;
}
.tryon-change-photo:hover { color: var(--orange); border-color: var(--orange); }

/* Measurements */
.tryon-right h3 { font-size: 16px; font-weight: 700; color: var(--slate-900); }
.tryon-measure-note { font-size: 12px; color: var(--slate-400); margin-top: -8px; }
.tryon-measurements {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.tryon-measure-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.tryon-measure-row label {
  font-size: 13px;
  font-weight: 600;
  color: var(--slate-700);
  min-width: 60px;
}
.tryon-input-group {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  justify-content: flex-end;
}
.tryon-input {
  width: 72px;
  text-align: center;
  padding: 8px 6px;
  font-size: 14px;
}
.tryon-unit {
  font-size: 12px;
  color: var(--slate-400);
  font-weight: 600;
  min-width: 18px;
}

.tryon-recommend-btn {
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s;
}
.tryon-recommend-btn:hover { opacity: 0.9; }

/* Result */
.tryon-result {
  background: var(--slate-50);
  border: 2px solid var(--green);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
}
.tryon-result-size {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-bottom: 12px;
}
.tryon-result-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--slate-500);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.tryon-result-value {
  font-size: 40px;
  font-weight: 900;
  color: var(--green);
  line-height: 1;
}
.tryon-result-details {
  text-align: left;
  margin-bottom: 12px;
}
.tryon-result-details p {
  font-size: 12px;
  color: var(--slate-500);
  padding: 3px 0;
  border-bottom: 1px solid var(--slate-100);
}
.tryon-result .pd-add-btn {
  margin-top: 8px;
}

/* ===== Camera Mode Button ===== */
.camera-btn {
  width: 100%;
  margin-top: 12px;
  padding: 12px;
  background: #0a84ff;
  color: white;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}
.camera-btn:hover {
  background: #006edc;
}
.camera-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ===== Side-by-Side Compare Mode ===== */
.compare-controls {
  margin-top: 20px;
  display: flex;
  gap: 10px;
}
.compare-btn {
  padding: 10px 14px;
  background: #111;
  color: white;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: background .2s;
}
.compare-btn:hover {
  background: #000;
}
.compare-container {
  display: flex;
  gap: 20px;
  margin-top: 20px;
}
.compare-box {
  flex: 1;
  background: #fafafa;
  border-radius: 12px;
  padding: 10px;
  border: 1px solid #ddd;
  text-align: center;
}
.compare-box img {
  width: 100%;
  border-radius: 10px;
}
.compare-title {
  font-weight: bold;
  margin-bottom: 10px;
  font-size: 14px;
  color: #334155;
}
@media (max-width: 640px) {
  .compare-container {
    flex-direction: column;
    gap: 12px;
  }
}

/* ===== My Try-Ons Dashboard ===== */
.tryons-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 16px;
}
@media (max-width: 640px) {
  .tryons-layout {
    grid-template-columns: 1fr;
  }
}
.tryons-sidebar {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.tryon-profile-btn {
  width: 100%;
  text-align: left;
  border: 1px solid var(--slate-200, #e2e8f0);
  border-radius: 8px;
  padding: 10px 12px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s;
}
.tryon-profile-btn:hover {
  border-color: var(--slate-400, #94a3b8);
}
.tryon-profile-btn.active {
  border-color: var(--slate-900, #0f172a);
}
.tryon-profile-date {
  font-size: 13px;
  font-weight: 600;
  color: var(--slate-800, #1e293b);
}
.tryon-profile-items {
  font-size: 11px;
  color: var(--slate-500, #64748b);
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tryons-detail {
  min-height: 200px;
}
.tryons-detail-img {
  width: 100%;
  border-radius: 8px;
  border: 1px solid var(--slate-200, #e2e8f0);
  margin-bottom: 12px;
}
.tryons-detail-info {
  background: var(--slate-50, #f8fafc);
  border: 1px solid var(--slate-200, #e2e8f0);
  border-radius: 8px;
  padding: 12px;
}
.tryons-measurements-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
@media (max-width: 480px) {
  .tryons-measurements-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
.tryons-measure-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.tryons-measure-label {
  font-size: 10px;
  text-transform: uppercase;
  color: var(--slate-500, #64748b);
  font-weight: 600;
}
.tryons-measure-value {
  font-size: 13px;
  font-weight: 600;
  color: var(--slate-800, #1e293b);
}
.tryons-items-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.tryons-item-row {
  font-size: 12px;
  color: var(--slate-600, #475569);
  padding: 4px 0;
  border-bottom: 1px solid var(--slate-100, #f1f5f9);
}

/* ===== Try-On History Widget ===== */
.tryon-history {
  display: flex;
  gap: 10px;
  margin-top: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.history-thumb {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  object-fit: cover;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.2s, transform 0.2s;
  flex-shrink: 0;
}
.history-thumb:hover {
  border-color: var(--orange, #f97316);
  transform: scale(1.05);
}

/* ===== Share Try-On Widget ===== */
.share-box {
  margin-top: 20px;
  padding: 18px;
  background: var(--slate-50, #f8fafc);
  border-radius: 12px;
  border: 1px solid var(--slate-200, #e2e8f0);
}
.share-box-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--slate-800, #1e293b);
  margin-bottom: 12px;
}
.share-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  background: var(--slate-900, #0f172a);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}
.share-btn:hover {
  background: #000;
  transform: translateY(-1px);
}
.share-btn:active {
  transform: translateY(0);
}
.share-link-row {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.share-link-input {
  flex: 1;
  padding: 9px 12px;
  border-radius: 8px;
  border: 1px solid var(--slate-200, #e2e8f0);
  font-size: 13px;
  color: var(--slate-600, #475569);
  background: #fff;
  outline: none;
}
.share-link-input:focus {
  border-color: var(--orange, #f97316);
}
@media (max-width: 480px) {
  .share-buttons {
    flex-direction: column;
  }
  .share-btn {
    justify-content: center;
  }
}

/* ===== Checkout Modal ===== */
.checkout-modal {
  width: min(520px, 94vw);
  max-height: 90vh;
  overflow-y: auto;
  padding: 28px;
}
.checkout-steps {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
}
.checkout-step {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--slate-400);
  padding: 6px 12px;
  border-radius: 20px;
  background: var(--slate-100);
  transition: all 0.2s;
}
.checkout-step.active {
  background: var(--orange-light);
  color: var(--orange);
}
.checkout-step.completed {
  background: #f0fdf4;
  color: var(--green);
}
.step-number {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  background: var(--slate-200);
  color: var(--slate-500);
}
.checkout-step.active .step-number {
  background: var(--orange);
  color: white;
}
.checkout-step.completed .step-number {
  background: var(--green);
  color: white;
}
.checkout-section-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--slate-800);
}
.form-row {
  display: flex;
  gap: 12px;
}
.form-half {
  flex: 1;
}
.payment-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}
.payment-option {
  cursor: pointer;
}
.payment-option input[type="radio"] {
  display: none;
}
.payment-option-content {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: 2px solid var(--slate-200);
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--slate-700);
  transition: all 0.2s;
}
.payment-option input:checked + .payment-option-content {
  border-color: var(--orange);
  background: var(--orange-light);
  color: var(--orange-dark);
}
.payment-info-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: 10px;
  font-size: 13px;
  color: var(--slate-600);
  margin-bottom: 16px;
  line-height: 1.5;
}
.payment-info-note svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--slate-400);
}
.checkout-nav-btns {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}
.checkout-back-btn {
  padding: 12px 20px;
  background: var(--slate-100);
  color: var(--slate-700);
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.checkout-back-btn:hover {
  background: var(--slate-200);
}
.review-section {
  position: relative;
  padding: 12px 0;
  border-bottom: 1px solid var(--slate-100);
}
.review-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--slate-400);
  margin-bottom: 4px;
}
.review-detail {
  font-size: 13px;
  color: var(--slate-700);
  line-height: 1.5;
}
.review-edit {
  position: absolute;
  top: 12px;
  right: 0;
  font-size: 12px;
  color: var(--orange);
  font-weight: 600;
  text-decoration: none;
}
.review-edit:hover {
  text-decoration: underline;
}
.review-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 6px;
}
.review-item {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--slate-700);
}
.review-item-name {
  flex: 1;
}
.review-item-qty {
  color: var(--slate-400);
  margin: 0 8px;
}
.review-item-price {
  font-weight: 600;
}
.review-totals {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 2px solid var(--slate-200);
}
.review-total-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--slate-600);
  padding: 4px 0;
}
.review-total-final {
  font-size: 16px;
  font-weight: 800;
  color: var(--slate-900);
  padding-top: 8px;
  margin-top: 4px;
  border-top: 1px solid var(--slate-200);
}
.review-total-final span:last-child {
  color: var(--red);
}
.checkout-place-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
@media (max-width: 480px) {
  .checkout-modal { padding: 20px; }
  .form-row { flex-direction: column; gap: 0; }
  .checkout-steps { gap: 4px; }
  .checkout-step span:not(.step-number) { display: none; }
}

/* ===== User Dropdown Menu ===== */
.user-menu-wrapper {
  position: relative;
}
.user-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #171717;
  border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(0,0,0,0.4);
  border: 1px solid #262626;
  min-width: 220px;
  z-index: 500;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.2s;
}
.user-dropdown.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.user-dropdown-header {
  padding: 14px 16px;
  border-bottom: 1px solid #262626;
}
.user-dropdown-header strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #e5e5e5;
}
.user-dropdown-header span {
  display: block;
  font-size: 12px;
  color: #737373;
  margin-top: 2px;
}
.user-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 500;
  color: #d4d4d4;
  text-decoration: none;
  transition: all 0.15s;
}
.user-dropdown-item:hover {
  background: #262626;
  color: var(--orange);
}
.user-dropdown-item.logout {
  color: #ef4444;
}
.user-dropdown-item.logout:hover {
  background: #1c1917;
  color: #dc2626;
}
.user-dropdown-divider {
  height: 1px;
  background: #262626;
  margin: 4px 0;
}

/* ===== Vendor Grid ===== */
.vendors-section {
  padding: 16px 0 8px;
}
.vendor-grid {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 4px 4px 12px;
  scrollbar-width: none;
}
.vendor-grid::-webkit-scrollbar { display: none; }
.vendor-empty-msg {
  color: var(--slate-400);
  font-size: 14px;
  text-align: center;
  padding: 20px;
  width: 100%;
}
.vendor-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 20px;
  background: white;
  border: 1.5px solid var(--slate-200);
  border-radius: var(--radius);
  cursor: pointer;
  min-width: 120px;
  flex-shrink: 0;
  transition: all 0.2s;
}
.vendor-card:hover {
  border-color: var(--orange);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.vendor-logo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange-light), var(--slate-100));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.vendor-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.vendor-logo span {
  font-size: 20px;
  font-weight: 800;
  color: var(--orange);
}
.vendor-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--slate-900);
  text-align: center;
}
.vendor-platform {
  font-size: 11px;
  color: var(--slate-400);
}

/* ===== Page Sections (Wishlist, Orders, etc.) ===== */
.page-section {
  min-height: 60vh;
}
.page-container {
  padding: 20px 0 40px;
}
.page-header {
  margin-bottom: 24px;
}
.page-back-btn {
  background: none;
  border: none;
  color: var(--orange);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  margin-bottom: 12px;
  display: block;
}
.page-back-btn:hover {
  text-decoration: underline;
}
.page-title {
  font-size: 24px;
  font-weight: 800;
  color: #e5e5e5;
}
.page-empty-state {
  text-align: center;
  padding: 60px 20px;
  background: #171717;
  border-radius: var(--radius);
  border: 1px solid #262626;
}
.page-empty-state svg {
  margin-bottom: 16px;
}
.page-empty-state h3 {
  font-size: 18px;
  font-weight: 700;
  color: #d4d4d4;
  margin-bottom: 8px;
}
.page-empty-state p {
  font-size: 14px;
  color: #737373;
  margin-bottom: 20px;
}
.page-action-btn {
  display: inline-block;
  padding: 10px 24px;
  background: var(--orange);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
}
.page-action-btn:hover { opacity: 0.9; }
.page-action-btn.small {
  padding: 6px 14px;
  font-size: 12px;
}
.page-action-btn.outline {
  background: white;
  color: var(--slate-700);
  border: 1px solid var(--slate-200);
}
.page-action-btn.outline:hover {
  background: var(--slate-50);
}

/* Wishlist */
.wishlist-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.wishlist-item {
  display: flex;
  gap: 16px;
  padding: 16px;
  background: white;
  border-radius: var(--radius);
  border: 1px solid var(--slate-100);
}
.wishlist-item-image {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--slate-100);
}
.wishlist-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.wishlist-item-info {
  flex: 1;
  min-width: 0;
}
.wishlist-item-name {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}
.wishlist-item-price {
  font-size: 16px;
  font-weight: 700;
  color: var(--red);
  margin-bottom: 8px;
}
.wishlist-item-actions {
  display: flex;
  gap: 8px;
}
.product-wishlist.wishlisted {
  color: var(--red);
  background: white;
}

/* Order Cards */
.order-card {
  background: white;
  border-radius: var(--radius);
  border: 1px solid var(--slate-100);
  margin-bottom: 12px;
  overflow: hidden;
}
.order-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: var(--slate-50);
  border-bottom: 1px solid var(--slate-100);
}
.order-card-header strong {
  font-size: 14px;
}
.order-date {
  font-size: 12px;
  color: var(--slate-500);
  margin-left: 8px;
}
.order-card-items {
  padding: 12px 16px;
}
.order-item {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  font-size: 13px;
  color: var(--slate-700);
}
.order-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-top: 1px solid var(--slate-100);
  font-size: 14px;
}.status-badge.status-pending { background: #fef3c7; color: #d97706; }
.status-badge.status-processing { background: #fff7ed; color: #f97316; }
.status-badge.status-shipped { background: #dbeafe; color: #2563eb; }
.status-badge.status-delivered { background: #dcfce7; color: #16a34a; }

/* Cancelled */
.status-badge.status-cancelled,
.status-badge.cancelled {
  background: #fef2f2;
  color: #ef4444;
}

/* Refunded */
.status-badge.status-refunded,
.status-badge.refunded {
  background: #fee2e2;
  color: #dc2626;
}

.status-badge.status-confirmed { background: #dcfce7; color: #16a34a; }
.status-badge.status-paid { background: #dcfce7; color: #16a34a; }
.status-badge.status-partially_shipped { background: #e0e7ff; color: #4f46e5; }
.status-badge.status-payment_pending { background: #fff7ed; color: #f97316; }
.status-badge.status-payment_failed { background: #fef2f2; color: #ef4444; }
.status-badge.status-payment_expired { background: #f1f5f9; color: #64748b; }

/* Order Tracking */
.tracking-search {
  background: white;
  border-radius: var(--radius);
  border: 1px solid var(--slate-100);
  padding: 20px;
  margin-bottom: 20px;
}
.tracking-input-row {
  display: flex;
  gap: 10px;
}
.tracking-input-row .form-input {
  flex: 1;
}
.tracking-result {
  margin-bottom: 20px;
}
.tracking-timeline {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 20px 0;
}
.tracking-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.tracking-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--slate-200);
  border: 3px solid var(--slate-200);
  transition: all 0.3s;
}
.tracking-step.active .tracking-dot {
  background: var(--green);
  border-color: #bbf7d0;
}
.tracking-step span {
  font-size: 11px;
  font-weight: 600;
  color: var(--slate-400);
  text-transform: capitalize;
}
.tracking-step.active span {
  color: var(--green);
}
.tracking-line {
  flex: 1;
  height: 3px;
  background: var(--slate-200);
  margin: 0 -4px;
  margin-bottom: 24px;
}
.tracking-line.active {
  background: var(--green);
}
.tracking-order-row {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
  padding: 10px 16px;
  background: white;
  border-radius: var(--radius-sm);
  border: 1px solid var(--slate-100);
  margin-bottom: 6px;
  font-size: 13px;
}
.tracking-order-row code {
  font-weight: 600;
  color: var(--slate-800);
}

/* Info Pages (Shipping, Returns, Contact) */
.info-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
@media (max-width: 768px) { .info-cards { grid-template-columns: 1fr; } }
.info-card {
  background: white;
  border-radius: var(--radius);
  border: 1px solid var(--slate-100);
  padding: 24px;
}
.info-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--slate-900);
}
.info-card p {
  font-size: 14px;
  color: var(--slate-600);
  line-height: 1.6;
  margin-bottom: 6px;
}
.info-card a {
  color: var(--orange);
  text-decoration: none;
  font-weight: 600;
}
.info-card a:hover { text-decoration: underline; }
.info-list {
  list-style: none;
  padding: 0;
}
.info-list li {
  font-size: 14px;
  color: var(--slate-600);
  padding: 6px 0;
  border-bottom: 1px solid var(--slate-100);
}
.info-list li:last-child { border-bottom: none; }

/* Contact Page Grid */
.contact-page-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 20px;
}
@media (max-width: 768px) { .contact-page-grid { grid-template-columns: 1fr; } }
.contact-details {
  margin-top: 16px;
}
.contact-detail-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 14px;
  color: var(--slate-700);
}

/* Status Badge */
.status-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: capitalize;
}

/* Notification Animation */
@keyframes slideDown {
  from { transform: translateX(-50%) translateY(-20px); opacity: 0; }
  to { transform: translateX(-50%) translateY(0); opacity: 1; }
}

/* ============================================================
   MY VIRTUAL TRY-ONS DASHBOARD
   ============================================================ *//* New Try-On Dashboard Styles */
.tryon-dash-loading {
  text-align: center;
  padding: 40px 0;
  color: var(--slate-500);
  font-size: 14px;
}

.tryon-dash-error {
  text-align: center;
  padding: 20px;
  color: var(--red);
  font-size: 14px;
}

.tryon-dash-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 20px;
  min-height: 300px;
}

.tryon-dash-sidebar {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 600px;
  overflow-y: auto;
}

.tryon-dash-item {
  display: block;
  width: 100%;
  text-align: left;
  border: 1px solid var(--slate-200);
  border-radius: 8px;
  padding: 10px 12px;
}

/* Legacy Try-On Profiles Styles */
.tryons-dashboard {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 1.5rem;
  margin-top: 1rem;
}

.tryons-sidebar {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-height: 600px;
  overflow-y: auto;
}

.tryon-profile-btn {
  width: 100%;
  text-align: left;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s;
}

/* ============================================================
   PRODUCT REVIEWS
   ============================================================ */
.pd-reviews-section {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--slate-200);
}

.pd-reviews-summary {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.reviews-avg-rating {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--slate-900);
  line-height: 1;
}

.reviews-avg-stars {
  color: #f59e0b;
  font-size: 1.2rem;
  letter-spacing: 2px;
}

.reviews-count {
  color: var(--slate-500);
  font-size: 0.9rem;
}

.reviews-bar-chart {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 180px;
}

.reviews-bar-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--slate-500);
}

.reviews-bar-row span:first-child {
  width: 30px;
  text-align: right;
}

.reviews-bar-track {
  flex: 1;
  height: 8px;
  background: var(--slate-100);
  border-radius: 4px;
  overflow: hidden;
}

.reviews-bar-fill {
  height: 100%;
  background: #f59e0b;
  border-radius: 4px;
  transition: width 0.3s;
}

.pd-review-form-wrapper {
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.pd-review-form-wrapper h4 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  color: var(--slate-900);
}

.pd-review-stars-input {
  display: flex;
  gap: 4px;
  margin-bottom: 0.75rem;
}

.review-star-btn {
  font-size: 1.75rem;
  color: var(--slate-300);
  cursor: pointer;
  transition: color 0.15s;
  user-select: none;
}

.review-star-btn.active,
.review-star-btn:hover {
  color: #f59e0b;
}

.review-input {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--slate-200);
  border-radius: 8px;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  font-family: inherit;
  background: #fff;
}

.review-textarea {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--slate-200);
  border-radius: 8px;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
  font-family: inherit;
  resize: vertical;
  min-height: 80px;
  background: #fff;
}

.review-submit-btn {
  font-size: 0.9rem;
  padding: 10px 24px;
}

.review-form-note {
  font-size: 0.8rem;
  color: var(--slate-500);
  margin-top: 0.5rem;
}

.pd-reviews-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.review-card {
  background: #fff;
  border: 1px solid var(--slate-100);
  border-radius: 10px;
  padding: 1rem 1.25rem;
}

.review-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.review-author {
  font-weight: 600;
  color: var(--slate-900);
  font-size: 0.9rem;
}

.review-verified {
  display: inline-block;
  background: #f0fdf4;
  color: #16a34a;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 10px;
  margin-left: 8px;
}

.review-date {
  color: var(--slate-400);
  font-size: 0.8rem;
}

.review-stars {
  color: #f59e0b;
  font-size: 0.9rem;
  letter-spacing: 1px;
}

.review-title {
  font-weight: 600;
  color: var(--slate-800);
  font-size: 0.95rem;
  margin: 0.25rem 0;
}

.review-comment {
  color: var(--slate-600);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-top: 0.25rem;
}

/* ============================================================
   RESTOCK ALERT BUTTON
   ============================================================ */
.pd-restock-btn {
  padding: 12px 20px;
  background: linear-gradient(135deg, #8b5cf6, #6d28d9);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
}

.pd-restock-btn:hover {
  opacity: 0.9;
}

.pd-restock-btn.subscribed {
  background: linear-gradient(135deg, #16a34a, #15803d);
}

/* ============================================================
   MY ACCOUNT PAGE
   ============================================================ */
.account-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.account-grid .info-card {
  padding: 1.5rem;
}

.account-detail-row {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--slate-100);
  font-size: 0.9rem;
}

.account-detail-label {
  color: var(--slate-500);
}

.account-detail-value {
  color: var(--slate-900);
  font-weight: 500;
}

.account-order-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem;
  border: 1px solid var(--slate-100);
  border-radius: 8px;
  margin-bottom: 0.5rem;
  cursor: pointer;
  transition: border-color 0.15s;
}

.account-order-item:hover {
  border-color: var(--orange);
}

.account-order-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.account-order-id {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--slate-900);
}

.account-order-date {
  font-size: 0.8rem;
  color: var(--slate-400);
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--slate-700);
  margin-bottom: 0.25rem;
}

.checkbox-label {
  display: flex !important;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-weight: 400 !important;
  color: var(--slate-600) !important;
}

.checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--orange);
}

.restock-alert-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0.5rem;
  border: 1px solid var(--slate-100);
  border-radius: 8px;
  margin-bottom: 0.5rem;
}

.restock-alert-item img {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  object-fit: cover;
}

.restock-alert-item span {
  flex: 1;
  font-size: 0.85rem;
  color: var(--slate-700);
}

.restock-alert-item button {
  background: none;
  border: none;
  color: var(--slate-400);
  cursor: pointer;
  font-size: 1.1rem;
  padding: 0 4px;
}

@media (max-width: 768px) {
  .account-grid {
    grid-template-columns: 1fr;
  }
}
