/* ============================================
   WEKENDS.COM - Main Stylesheet
   Colors: Orange #FF6B00 | Dark #1a1a1a | Gray #f5f5f5
   ============================================ */

:root {
  --orange:     #FF6B00;
  --orange-dk:  #e05e00;
  --orange-lt:  #fff3eb;
  --dark:       #1a1a1a;
  --dark2:      #2d2d2d;
  --gray:       #f5f5f5;
  --gray2:      #e8e8e8;
  --gray3:      #888;
  --white:      #ffffff;
  --text:       #222222;
  --text2:      #555555;
  --success:    #28a745;
  --danger:     #dc3545;
  --radius:     6px;
  --radius-lg:  12px;
  --shadow:     0 2px 12px rgba(0,0,0,.10);
  --shadow-lg:  0 8px 32px rgba(0,0,0,.15);
  --transition: .2s ease;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif; color: var(--text); background: var(--white); font-size: 14px; line-height: 1.6; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
input, select, textarea, button { font-family: inherit; }

/* ============================================
   TOPBAR
   ============================================ */
.topbar {
  background: var(--white);
  color: var(--text2);
  font-size: 12px;
  padding: 6px 0;
  border-bottom: 1px solid var(--gray2);
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.topbar a { color: var(--text2); }
.topbar a:hover { color: var(--orange); }
.topbar-links { display: flex; gap: 16px; }

/* ============================================
   HEADER
   ============================================ */
.header {
  background: var(--dark2);
  padding: 12px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,.3);
}
.header .container {
  display: flex;
  align-items: center;
  gap: 16px;
}
.header-logo img { height: 48px; width: auto; }
.header-logo { flex-shrink: 0; }

.search-bar {
  flex: 1;
  display: flex;
  min-width: 0;
}
.search-bar select {
  background: var(--gray2);
  border: none;
  border-radius: var(--radius) 0 0 var(--radius);
  padding: 0 12px;
  font-size: 13px;
  color: var(--text);
  cursor: pointer;
  min-width: 120px;
  height: 44px;
}
.search-bar input {
  flex: 1;
  border: none;
  padding: 0 16px;
  font-size: 14px;
  background: var(--white);
  height: 44px;
  outline: none;
}
.search-bar button {
  background: var(--orange);
  border: none;
  color: #fff;
  padding: 0 20px;
  height: 44px;
  cursor: pointer;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 16px;
  transition: background var(--transition);
}
.search-bar button:hover { background: var(--orange-dk); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  margin-left: auto;
}
.header-btn {
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px 12px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--transition);
  position: relative;
  font-size: 11px;
  border: none;
  background: transparent;
  white-space: nowrap;
}
.header-btn:hover { background: rgba(255,255,255,.1); }
.header-btn i { font-size: 20px; }
.header-btn span { font-size: 11px; color: #ddd; }
.cart-count {
  position: absolute;
  top: 2px; right: 8px;
  background: var(--orange);
  color: #fff;
  border-radius: 50%;
  width: 18px; height: 18px;
  font-size: 11px;
  display: flex; align-items: center; justify-content: center;
  font-weight: bold;
}

/* ============================================
   NAV BAR
   ============================================ */
.navbar {
  background: var(--orange);
  padding: 0;
}
.navbar .container {
  display: flex;
  align-items: stretch;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.navbar .container::-webkit-scrollbar { display: none; }
.navbar .container > .all-cats-btn:first-child {
  padding-left: 0;
}
.nav-link {
  color: #fff;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background var(--transition);
}
.nav-link:hover, .nav-link.active { background: rgba(0,0,0,.15); }
.all-cats-btn { font-weight: bold; border-right: 1px solid rgba(255,255,255,.3); }

/* ============================================
   CONTAINER
   ============================================ */
.container { max-width: 1800px; margin: 0 auto; padding: 0 24px; }
/* Header stays edge-to-edge full width */
.topbar .container, .header .container, .navbar .container { max-width: 100%; }
/* Footer content capped narrower */
.footer .container { max-width: 1400px; }
/* Cart, checkout, and account pages */
.container.container-narrow { max-width: 1200px; }

/* Product page: one-line "Deliver to" location (Amazon style) */
.deliver-to-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0 14px;
  font-size: 13px;
  font-weight: 600;
  color: #FF6B00;
  white-space: nowrap;
  overflow: hidden;
  max-width: 100%;
}
.deliver-to-line span { overflow: hidden; text-overflow: ellipsis; }
.deliver-to-line i { color: #1a1a1a; font-size: 15px; flex-shrink: 0; }

/* ============================================
   HERO SLIDER
   ============================================ */
.hero-section { display: flex; gap: 12px; padding: 16px 0; }
.hero-slider { flex: 1; border-radius: var(--radius-lg); overflow: hidden; position: relative; min-height: 340px; background: var(--gray); }
.slide { display: none; position: absolute; inset: 0; }
.slide.active { display: flex; align-items: center; }
.slide-img { width: 100%; height: 340px; object-fit: cover; }
.slide-placeholder {
  width: 100%; height: 340px;
  background: linear-gradient(135deg, var(--dark2) 0%, var(--dark) 60%, var(--orange) 100%);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  flex-direction: column;
  gap: 12px;
}
.slide-placeholder h2 { font-size: 28px; font-weight: 700; }
.slide-placeholder p  { font-size: 16px; color: #ddd; }
.slide-placeholder .btn { margin-top: 8px; }
.slider-dots {
  position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 2px;
}
.dot {
  width: 44px; height: 44px; padding: 0; position: relative;
  cursor: pointer; border: none; background: transparent;
}
.dot::before {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 8px; height: 8px; transform: translate(-50%,-50%);
  border-radius: 50%; background: rgba(255,255,255,.65);
}
.dot.active::before {
  width: 20px; border-radius: 4px; background: var(--orange);
}
.slider-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.9); border: none; width: 36px; height: 36px;
  border-radius: 50%; cursor: pointer; font-size: 16px; color: var(--dark);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow);
  transition: background var(--transition);
  z-index: 5;
}
.slider-arrow:hover { background: var(--orange); color: #fff; }
.slider-prev { left: 12px; }
.slider-next { right: 12px; }

.hero-sidebar { width: 220px; flex-shrink: 0; display: flex; flex-direction: column; gap: 8px; }
.promo-card {
  flex: 1; border-radius: var(--radius); overflow: hidden;
  background: var(--gray); position: relative;
  min-height: 120px; cursor: pointer;
  transition: transform var(--transition);
}
.promo-card:hover { transform: scale(1.02); }
.promo-card img { width: 100%; height: 100%; object-fit: cover; }
.promo-placeholder {
  width: 100%; height: 100%; min-height: 120px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; color: var(--text2); font-size: 13px;
}
.promo-placeholder i { font-size: 28px; color: var(--orange); }

/* ============================================
   PROMO BANNER
   ============================================ */
.promo-banner-wrap {
  margin-bottom: 22px;
}
.promo-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(115deg, rgba(255,107,0,.18) 0%, rgba(255,107,0,0) 30%),
    linear-gradient(135deg, #171717 0%, #252525 58%, #1c1c1c 100%);
  box-shadow: 0 18px 42px rgba(0,0,0,.18);
  isolation: isolate;
}
.promo-grid::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.035) 0 1px, transparent 1px 56px),
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,0) 42%);
  pointer-events: none;
  z-index: -1;
}
.promo-offer {
  position: relative;
  min-height: 260px;
  padding: clamp(24px, 4vw, 46px);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  color: #fff;
}
.promo-offer + .promo-offer {
  border-left: 1px solid rgba(255,255,255,.14);
}
.promo-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,107,0,.14);
  color: var(--orange);
  border: 1px solid rgba(255,107,0,.32);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12);
  font-size: 22px;
}
.promo-copy {
  min-width: 0;
}
/* Full-width layout: center each offer's content and cap copy width on wide screens */
@media (min-width: 1200px) {
  .promo-offer {
    grid-template-columns: auto minmax(0, 560px);
    justify-content: center;
    column-gap: 26px;
  }
  .promo-offer .promo-icon {
    width: 64px;
    height: 64px;
    font-size: 25px;
  }
}
.promo-eyebrow {
  margin-bottom: 8px;
  color: #ff7a1a;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2px;
  line-height: 1.2;
  text-transform: uppercase;
}
.promo-copy h2 {
  margin-bottom: 12px;
  color: #fff;
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 900;
  line-height: 1.16;
}
.promo-note {
  margin-bottom: 22px;
  color: rgba(255,255,255,.68);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
}
.promo-note strong {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 3px 10px;
  border-radius: 6px;
  background: rgba(255,107,0,.18);
  color: #ff7a1a;
  letter-spacing: .4px;
}
.promo-btn {
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 8px;
  font-size: 15px;
}
.promo-grid .btn-outline {
  color: #ff7a1a;
  border-color: var(--orange);
  background: rgba(255,107,0,.04);
}
.promo-grid .btn-outline:hover {
  color: #fff;
  background: var(--orange);
}

/* ============================================
   SECTION HEADERS
   ============================================ */
.section { padding: 20px 0; }
.section-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 16px; padding-bottom: 10px;
  border-bottom: 2px solid var(--orange);
}
.section-header h2 { font-size: 20px; font-weight: 700; color: var(--dark); }
.section-header h2 span { color: var(--orange); }
.see-all { color: var(--orange); font-size: 13px; font-weight: 600; }
.see-all:hover { text-decoration: underline; }

/* ============================================
   CATEGORY GRID
   ============================================ */
.category-section {
  padding-top: 22px;
}
.category-section .section-header {
  align-items: flex-end;
  gap: 14px;
}
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(138px, 158px));
  justify-content: start;
  gap: 14px;
}
.cat-card {
  min-height: 150px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.96) 0%, rgba(255,247,242,.9) 100%);
  border: 1px solid #eee1d8;
  border-radius: 8px;
  padding: 18px 12px 16px;
  text-align: center;
  cursor: pointer;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition), background var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  position: relative;
  overflow: hidden;
}
.cat-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,107,0,.12), transparent 48%);
  opacity: 0;
  transition: opacity var(--transition);
}
.cat-card::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 0;
  height: 3px;
  background: var(--orange);
  border-radius: 999px 999px 0 0;
  transform: scaleX(.35);
  opacity: 0;
  transition: transform var(--transition), opacity var(--transition);
}
.cat-card:hover {
  border-color: rgba(255,107,0,.45);
  background: var(--white);
  transform: translateY(-4px);
  box-shadow: 0 12px 26px rgba(26,26,26,.10);
}
.cat-card:hover::before,
.cat-card:hover::after {
  opacity: 1;
}
.cat-card:hover::after {
  transform: scaleX(1);
}
.cat-card-icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--orange-lt);
  border: 1px solid rgba(255,107,0,.18);
  color: var(--orange);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  transition: background var(--transition), color var(--transition), transform var(--transition);
}
.cat-card:hover .cat-card-icon {
  background: var(--orange);
  color: var(--white);
  transform: scale(1.05);
}
.cat-card-icon i {
  font-size: 27px;
}
.cat-card span:not(.cat-card-icon) {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  overflow-wrap: anywhere;
  position: relative;
  z-index: 1;
}

/* ============================================
   PRODUCT CARDS
   ============================================ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}
.product-card {
  background: var(--white);
  border: 1px solid var(--gray2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  cursor: pointer;
  position: relative;
  display: flex; flex-direction: column;
}
.product-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); border-color: var(--orange); }
.product-img-wrap { position: relative; aspect-ratio: 1; overflow: hidden; background: var(--gray); }
.product-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s cubic-bezier(.25,.46,.45,.94); }
.product-card:hover .product-img-wrap img { transform: scale(1.08); }
.product-badge {
  position: absolute; top: 8px; left: 8px;
  background: var(--danger); color: #fff;
  font-size: 11px; font-weight: bold;
  padding: 2px 8px; border-radius: 20px;
}
.product-badge.featured { background: var(--orange); }
.wishlist-btn {
  position: absolute; top: 8px; right: 8px;
  background: #fff; border: 1px solid var(--gray2);
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 14px; color: var(--gray3);
  transition: all var(--transition), opacity .25s ease;
  z-index: 2;
}
.wishlist-btn:hover, .wishlist-btn.active { color: var(--danger); border-color: var(--danger); }

.product-info { padding: 12px; flex: 1; display: flex; flex-direction: column; }
.product-brand { font-size: 11px; color: var(--gray3); text-transform: uppercase; font-weight: 600; margin-bottom: 4px; }
.product-name { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 6px; line-height: 1.4; flex: 1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-rating { display: flex; align-items: center; gap: 4px; margin-bottom: 8px; }
.stars { color: #f5a623; font-size: 12px; }
.review-count { font-size: 11px; color: var(--gray3); }
.product-price { display: flex; align-items: baseline; gap: 8px; margin-bottom: 10px; }
.price-current { font-size: 18px; font-weight: 700; color: var(--dark); }
.price-original { font-size: 13px; color: var(--gray3); text-decoration: line-through; }
.price-save { font-size: 11px; color: var(--success); font-weight: 600; }
.add-cart-btn {
  background: var(--orange);
  color: #fff; border: none;
  padding: 8px; width: 100%;
  border-radius: var(--radius);
  font-size: 13px; font-weight: 600;
  cursor: pointer;
  transition: background var(--transition);
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.add-cart-btn:hover { background: var(--orange-dk); }
.out-of-stock { background: var(--gray2); color: var(--gray3); cursor: not-allowed; }

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 24px; border-radius: var(--radius);
  font-size: 14px; font-weight: 600; cursor: pointer;
  border: none; transition: all var(--transition); text-decoration: none;
}
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-dk); }
.btn-dark { background: var(--dark); color: #fff; }
.btn-dark:hover { background: var(--dark2); }
.btn-outline { background: transparent; border: 2px solid var(--orange); color: var(--orange); }
.btn-outline:hover { background: var(--orange); color: #fff; }
.btn-sm { padding: 6px 16px; font-size: 13px; }
.btn-lg { padding: 14px 32px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-danger { background: var(--danger); color: #fff; }

/* ============================================
   FLASH DEALS BANNER
   ============================================ */
.flash-banner {
  background: linear-gradient(90deg, var(--dark) 0%, var(--dark2) 50%, var(--orange) 100%);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  display: flex; align-items: center; gap: 20px;
  margin: 8px 0;
  color: #fff;
}
.flash-banner h3 { font-size: 22px; font-weight: 800; }
.flash-banner p  { font-size: 13px; color: #ddd; }
.countdown { display: flex; gap: 8px; }
.count-box {
  background: var(--orange); border-radius: var(--radius);
  padding: 8px 12px; text-align: center; min-width: 52px;
}
.count-box .num { font-size: 22px; font-weight: 800; line-height: 1; display: block; }
.count-box .lbl { font-size: 10px; text-transform: uppercase; display: block; }

/* ============================================
   PRODUCT PAGE
   ============================================ */
.product-detail { display: grid; grid-template-columns: minmax(320px, 620px) minmax(0, 1fr); gap: 40px; padding: 24px 0; align-items: start; }

/* ── Amazon-style buy box (≥1500px only) ── */
.buy-box { display: none; }
@media (min-width: 1500px) {
  .product-detail { grid-template-columns: minmax(320px, 560px) minmax(0, 1fr) 320px; gap: 32px; }
  .buy-box {
    display: block;
    position: sticky;
    top: 88px;
    border: 1px solid var(--gray2);
    border-radius: 12px;
    background: var(--white);
    padding: 18px;
  }
  .buy-box .price-block { margin: 0 0 4px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
  .buy-box .deliver-to-line { margin: 10px 0 6px; white-space: normal; }
  .buy-box .deliver-to-line span { white-space: normal; overflow: visible; }
  .buy-box #productStockStatus { display: block; font-size: 17px !important; font-weight: 700; margin: 8px 0 12px !important; }
  .buy-box .qty-row { margin: 0 0 14px; }
  .buy-box .action-row { display: flex; flex-direction: column; gap: 10px; margin: 0; }
  .buy-box .action-row .btn { width: 100%; justify-content: center; }
  .buy-box .action-row .btn-outline { display: none; } /* heart replaced by Add to List below */
  .buy-box .bb-meta { border-top: 1px solid var(--gray2); margin-top: 16px; padding-top: 12px; font-size: 13px; }
  .buy-box .bb-meta > div { display: flex; justify-content: space-between; align-items: center; padding: 4px 0; }
  .buy-box .bb-meta span { color: #888; }
  .buy-box .bb-secure { color: #0066c0; font-weight: 600; }
  .buy-box .bb-secure i { font-size: 11px; margin-right: 4px; }
  .buy-box .bb-list { width: 100%; margin-top: 14px; justify-content: center; font-size: 13px; }
}
.product-gallery { position: sticky; top: 88px; align-self: start; height: fit-content; }
.product-detail-info { min-width: 0; }
.main-img { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--gray2); aspect-ratio: 1; }
.main-img img { width: 100%; height: 100%; object-fit: contain; background: var(--gray); }
.thumb-row { display: flex; gap: 8px; margin-top: 12px; }
.thumb { width: 72px; height: 72px; border-radius: var(--radius); overflow: hidden; border: 2px solid var(--gray2); cursor: pointer; }
.thumb:hover, .thumb.active { border-color: var(--orange); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-detail-info h1 { font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.price-block { margin: 16px 0; }
.price-block .main-price { font-size: 28px; font-weight: 800; color: var(--dark); }

/* ── Amazon-style price format: small symbol, big whole, superscript decimals ── */
.amz-price { display: inline-flex; align-items: flex-start; line-height: 1; color: var(--dark); }
.amz-price .amz-from { font-size: 12px; font-weight: 600; color: #666; align-self: center; margin-right: 4px; }
.amz-price .aed-sym.amz-cur { width: 13px; height: 11px; max-width: 13px; object-fit: contain; margin: 3px 2px 0 0; top: 0; }
.amz-price .amz-whole { font-size: 26px; font-weight: 700; letter-spacing: -0.5px; }
.amz-price .amz-frac { font-size: 12px; font-weight: 700; margin-top: 2px; }
.amz-dash { font-size: 20px; font-weight: 600; margin: 0 6px; align-self: center; }
/* Product cards: smaller scale */
.product-card .amz-price .amz-whole { font-size: 19px; }
.product-card .amz-price .amz-frac { font-size: 10px; margin-top: 1px; }
.product-card .amz-price .aed-sym.amz-cur { width: 11px; height: 9px; max-width: 11px; margin-top: 2px; }
/* Product page main price: larger scale */
.price-block .amz-price .amz-whole { font-size: 34px; }
.price-block .amz-price .amz-frac { font-size: 14px; margin-top: 3px; }
.price-block .amz-price .aed-sym.amz-cur { width: 16px; height: 13px; max-width: 16px; margin-top: 4px; }

/* Product description content: cap width on desktop */
@media (min-width: 1024px) {
  .product-rich-desc { margin-left: auto; margin-right: auto; }
}
.price-block .old-price { font-size: 16px; color: var(--gray3); text-decoration: line-through; margin-left: 10px; }
.price-block .save-badge { background: var(--success); color: #fff; font-size: 12px; padding: 2px 8px; border-radius: 20px; font-weight: 600; }
.variant-group { margin: 12px 0; }
.variant-group label { font-size: 13px; font-weight: 600; color: var(--text2); display: block; margin-bottom: 6px; }
.variant-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.variant-opt {
  border: 2px solid var(--gray2); border-radius: var(--radius);
  padding: 6px 14px; font-size: 13px; cursor: pointer;
  transition: all var(--transition);
  background: #fff; color: var(--text);
}
.variant-opt:hover, .variant-opt.selected { border-color: var(--orange); background: var(--orange-lt); color: var(--orange); }
.variant-opt.unavailable, .variant-opt:disabled { opacity: .38; cursor: not-allowed; text-decoration: line-through; }
.color-variant-opt { display:inline-flex; align-items:center; gap:8px; padding:6px 11px 6px 7px; }
.product-color-swatch {
  width:22px; height:22px; border-radius:50%; flex:0 0 22px;
  border:1px solid rgba(0,0,0,.22); box-shadow:inset 0 0 0 1px rgba(255,255,255,.4);
}
.color-variant-opt.selected .product-color-swatch { box-shadow:0 0 0 2px #fff,0 0 0 4px var(--orange); }
.swatch-dot {
  width:18px; height:18px; border-radius:50%; flex:0 0 18px;
  border:1px solid rgba(0,0,0,.2); box-shadow:inset 0 0 0 1px rgba(255,255,255,.35);
}
.variation-reset { border:0; background:transparent; color:var(--orange); padding:4px 0; font-size:12px; cursor:pointer; }
.variation-message { min-height:20px; margin-top:6px; color:var(--text2); font-size:12px; }
.qty-row { display: flex; align-items: center; gap: 12px; margin: 16px 0; }
.qty-input { display: flex; align-items: center; border: 1px solid var(--gray2); border-radius: var(--radius); overflow: hidden; }
.qty-btn { width: 36px; height: 36px; background: var(--gray); border: none; font-size: 18px; cursor: pointer; }
.qty-num { width: 48px; text-align: center; border: none; font-size: 15px; font-weight: 600; }
.action-row { display: flex; gap: 12px; margin: 16px 0; }
.action-row .btn { flex: 1; }
.delivery-info { background: var(--gray); border-radius: var(--radius); padding: 14px 16px; margin: 16px 0; }
.delivery-row { display: flex; gap: 12px; align-items: center; margin-bottom: 8px; font-size: 13px; }
.delivery-row i { color: var(--orange); font-size: 18px; width: 20px; }
.delivery-row:last-child { margin-bottom: 0; }

/* ============================================
   CART PAGE
   ============================================ */
.cart-layout { display: grid; grid-template-columns: 1fr 340px; gap: 24px; padding: 24px 0; }
.cart-item {
  display: flex; gap: 16px; padding: 16px;
  border: 1px solid var(--gray2); border-radius: var(--radius-lg);
  margin-bottom: 12px; background: var(--white);
}
.cart-item-img { width: 90px; height: 90px; border-radius: var(--radius); overflow: hidden; flex-shrink: 0; }
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-info { flex: 1; }
.cart-item-name { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.cart-item-meta { font-size: 12px; color: var(--gray3); margin-bottom: 8px; }
.cart-item-price { font-size: 16px; font-weight: 700; color: var(--orange); }
.cart-item-actions { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.remove-btn { color: var(--danger); font-size: 12px; cursor: pointer; background: none; border: none; }
.order-summary {
  background: var(--white); border: 1px solid var(--gray2);
  border-radius: var(--radius-lg); padding: 20px;
  position: sticky; top: 80px; height: fit-content;
}
.order-summary h3 { font-size: 18px; font-weight: 700; margin-bottom: 16px; border-bottom: 1px solid var(--gray2); padding-bottom: 10px; }
.summary-row { display: flex; justify-content: space-between; font-size: 14px; padding: 6px 0; }
.summary-total { font-size: 18px; font-weight: 700; border-top: 2px solid var(--dark); padding-top: 10px; margin-top: 8px; }
.coupon-row { display: flex; gap: 8px; margin: 12px 0; }
.coupon-row input { flex: 1; padding: 8px 12px; border: 1px solid var(--gray2); border-radius: var(--radius); font-size: 13px; }

/* ============================================
   CHECKOUT
   ============================================ */
.checkout-layout { display: grid; grid-template-columns: 1fr 360px; gap: 24px; padding: 24px 0; }
.checkout-section { background: var(--white); border: 1px solid var(--gray2); border-radius: var(--radius-lg); padding: 20px; margin-bottom: 16px; }
.checkout-section h3 { font-size: 16px; font-weight: 700; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 1px solid var(--gray2); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-group { margin-bottom: 12px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 4px; color: var(--text2); }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 10px 12px;
  border: 1px solid var(--gray2); border-radius: var(--radius);
  font-size: 14px; outline: none; transition: border var(--transition);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--orange); }
.payment-opts { display: flex; flex-direction: column; gap: 10px; }
.payment-opt {
  border: 2px solid var(--gray2); border-radius: var(--radius);
  padding: 12px 16px; cursor: pointer; display: flex; gap: 12px; align-items: center;
  transition: all var(--transition);
}
.payment-opt:hover, .payment-opt.selected { border-color: var(--orange); background: var(--orange-lt); }
.payment-opt input { accent-color: var(--orange); }
.payment-opt-info strong { display: block; font-size: 14px; }
.payment-opt-info span { font-size: 12px; color: var(--gray3); }

/* ============================================
   USER ACCOUNT
   ============================================ */
.account-layout { display: grid; grid-template-columns: 240px 1fr; gap: 24px; padding: 24px 0; }
.account-sidebar { background: var(--white); border: 1px solid var(--gray2); border-radius: var(--radius-lg); padding: 20px; height: fit-content; }
.account-avatar { text-align: center; margin-bottom: 16px; }
.account-avatar img { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; border: 3px solid var(--orange); margin: 0 auto 8px; }
.account-avatar h4 { font-size: 15px; font-weight: 700; }
.account-avatar p { font-size: 12px; color: var(--gray3); }
.account-nav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--radius); font-size: 14px; color: var(--text); transition: all var(--transition); margin-bottom: 4px; }
.account-nav a:hover, .account-nav a.active { background: var(--orange-lt); color: var(--orange); }
.account-nav a i { width: 18px; text-align: center; }
.order-card { border: 1px solid var(--gray2); border-radius: var(--radius-lg); padding: 16px; margin-bottom: 12px; }
.order-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.order-status { padding: 3px 12px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.status-pending    { background: #fff3cd; color: #856404; }
.status-confirmed  { background: #cce5ff; color: #004085; }
.status-processing { background: #e2d9f3; color: #6f42c1; }
.status-shipped    { background: #d4edda; color: #155724; }
.status-delivered  { background: #d4edda; color: #155724; }
.status-cancelled  { background: #f8d7da; color: #721c24; }

/* ============================================
   BREADCRUMB
   ============================================ */
.breadcrumb { padding: 12px 0; font-size: 13px; color: var(--gray3); }
.breadcrumb a { color: var(--gray3); }
.breadcrumb a:hover { color: var(--orange); }
.breadcrumb span { margin: 0 6px; }

/* ============================================
   FILTERS SIDEBAR
   ============================================ */
.shop-layout { display: grid; grid-template-columns: 260px 1fr; gap: 24px; padding: 20px 0; }

/* Shop & category pages: full-width grid — 5 per row on desktop */
.shop-layout .products-grid { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 1399px) {
  .shop-layout .products-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 1023px) {
  .shop-layout .products-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 767px) {
  .shop-layout .products-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .container { padding: 0 16px; }
}
@media (max-width: 480px) {
  .shop-layout .products-grid { gap: 8px; }
}
.filters-sidebar { height: fit-content; }
.filter-section { border: 1px solid var(--gray2); border-radius: var(--radius-lg); padding: 16px; margin-bottom: 12px; background: var(--white); }
.filter-section h4 { font-size: 14px; font-weight: 700; margin-bottom: 12px; }
.filter-check { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 13px; cursor: pointer; }
.filter-check input { accent-color: var(--orange); }
.price-range { display: flex; align-items: center; gap: 8px; }
.price-range input { width: 80px; padding: 6px 8px; border: 1px solid var(--gray2); border-radius: var(--radius); font-size: 13px; }

/* ── Amazon-style shop filters ── */
.filter-link { display: block; font-size: 13px; color: #333; padding: 4px 0; text-decoration: none; }
.filter-link:hover { color: var(--orange); }
.filter-link.active { color: var(--orange); font-weight: 700; }
.filter-count { color: #999; font-size: 12px; }
.rating-filter { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #333; padding: 4px 0; text-decoration: none; }
.rating-filter .stars { color: #FF9900; letter-spacing: 1px; font-size: 14px; }
.rating-filter:hover, .rating-filter.active { color: var(--orange); font-weight: 600; }
.rating-filter.active .stars { text-shadow: 0 0 1px var(--orange); }
.see-more-btn { background: none; border: none; color: var(--orange); font-size: 13px; cursor: pointer; padding: 6px 0 0; display: flex; align-items: center; gap: 6px; }
.brand-extra.hidden { display: none; }
.price-slider-label { font-size: 14px; margin-bottom: 14px; }
.price-slider { position: relative; height: 20px; margin: 0 10px; }
.price-slider .ps-track { position: absolute; top: 8px; left: 0; right: 0; height: 4px; background: var(--gray2); border-radius: 4px; }
.price-slider .ps-range { position: absolute; top: 8px; height: 4px; background: var(--orange); border-radius: 4px; }
.price-slider input[type=range] { position: absolute; top: 0; left: 0; width: 100%; height: 20px; margin: 0; background: none; -webkit-appearance: none; appearance: none; pointer-events: none; }
.price-slider input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; pointer-events: auto; width: 20px; height: 20px; border-radius: 50%; background: var(--white); border: 5px solid var(--orange); cursor: grab; box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.price-slider input[type=range]::-moz-range-thumb { pointer-events: auto; width: 12px; height: 12px; border-radius: 50%; background: var(--white); border: 5px solid var(--orange); cursor: grab; box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.price-bands { margin-top: 12px; border-top: 1px solid var(--gray2); padding-top: 10px; }
.filter-chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 16px; }
.filter-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; background: #FFF3EA; border: 1px solid var(--orange); color: #7a3a00; padding: 5px 10px; border-radius: 20px; text-decoration: none; }
.filter-chip:hover { background: #ffe4d1; }
.filter-chip .chip-x { font-weight: 700; color: var(--orange); }
.filter-chip-clear { font-size: 12px; color: var(--orange); text-decoration: underline; }
.filters-mobile-head { display: none; }
.filters-backdrop { display: none; }
.mobile-filter-btn { display: none; align-items: center; gap: 8px; background: var(--white); border: 1px solid var(--gray2); border-radius: var(--radius); padding: 8px 14px; font-size: 13px; font-weight: 600; cursor: pointer; }
.sort-bar-left { display: flex; align-items: center; gap: 12px; }
.sort-bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.sort-bar select { padding: 8px 12px; border: 1px solid var(--gray2); border-radius: var(--radius); font-size: 13px; }
.results-count { font-size: 13px; color: var(--gray3); }

/* ============================================
   FOOTER
   ============================================ */
.footer { background: var(--dark); color: #ccc; padding: 40px 0 0; margin-top: 40px; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px; margin-bottom: 32px;
}
.footer-brand img { height: 44px; margin-bottom: 14px; }
.footer-brand p { font-size: 13px; line-height: 1.7; color: #aaa; }
.footer-social { display: flex; gap: 10px; margin-top: 14px; }
.footer-social a {
  width: 36px; height: 36px; background: var(--dark2);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: #ccc; font-size: 16px; transition: all var(--transition);
}
.footer-social a:hover { background: var(--orange); color: #fff; }
.footer-heading {
  color: var(--white); font-size: 15px; margin-bottom: 16px;
  border-bottom: 2px solid var(--orange); padding-bottom: 8px;
  display: inline-block;
}
.footer-heading-spaced { margin-top: 20px; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { color: #aaa; font-size: 13px; transition: color var(--transition); }
.footer-col ul li a:hover { color: var(--orange); }
.footer-bottom { border-top: 1px solid #333; padding: 16px 0; display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: #777; }
.payment-icons { display: flex; gap: 8px; }
.payment-icons img { height: 24px; border-radius: 4px; }

/* ============================================
   TOAST NOTIFICATION
   ============================================ */
.toast-container { position: fixed; top: 80px; right: 16px; z-index: 9999; display: flex; flex-direction: column; gap: 8px; }
.toast {
  background: var(--dark); color: #fff;
  padding: 12px 18px; border-radius: var(--radius);
  font-size: 13px; box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 10px;
  animation: slideIn .3s ease;
  max-width: 300px;
}
.toast.success { border-left: 4px solid var(--success); }
.toast.error   { border-left: 4px solid var(--danger); }
.toast.info    { border-left: 4px solid var(--orange); }
@keyframes slideIn { from { transform: translateX(120%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ============================================
   MODAL
   ============================================ */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.6);
  z-index: 2000; display: none; align-items: center; justify-content: center;
}
.modal-overlay.open { display: flex; }
.modal {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 32px;
  width: 100%;
  max-width: 440px;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  position: relative;
  animation: modalIn .3s ease;
}
@keyframes modalIn { from { transform: scale(.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.modal-close { position: absolute; top: 16px; right: 16px; background: none; border: none; font-size: 20px; cursor: pointer; color: var(--gray3); }
.modal h2 { font-size: 22px; margin-bottom: 6px; }
.modal p.sub { font-size: 13px; color: var(--gray3); margin-bottom: 20px; }
.modal-tabs { display: flex; gap: 4px; margin-bottom: 20px; border-bottom: 2px solid var(--gray2); }
.modal-tab { padding: 8px 20px; cursor: pointer; font-size: 14px; font-weight: 600; border-bottom: 2px solid transparent; margin-bottom: -2px; color: var(--gray3); }
.modal-tab.active { color: var(--orange); border-bottom-color: var(--orange); }
.divider { text-align: center; color: var(--gray3); font-size: 12px; margin: 14px 0; position: relative; }
.divider::before, .divider::after { content: ''; position: absolute; top: 50%; width: 45%; height: 1px; background: var(--gray2); }
.divider::before { left: 0; } .divider::after { right: 0; }

/* ============================================
   ADMIN PANEL
   ============================================ */
.admin-layout { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.admin-sidebar { background: var(--dark); color: #ccc; padding: 0; }
.admin-logo { padding: 20px 16px; border-bottom: 1px solid #333; }
.admin-logo img { height: 40px; }
.admin-logo span { display: block; font-size: 11px; color: var(--orange); margin-top: 4px; }
.admin-nav a { display: flex; align-items: center; gap: 12px; padding: 12px 20px; font-size: 13px; color: #aaa; transition: all var(--transition); border-left: 3px solid transparent; }
.admin-nav a:hover, .admin-nav a.active { background: rgba(255,107,0,.1); color: #fff; border-left-color: var(--orange); }
.admin-nav a i { width: 18px; }
.admin-nav .nav-section { padding: 20px 20px 6px; font-size: 10px; color: #555; text-transform: uppercase; letter-spacing: 1px; }
.admin-content { background: #f0f0f0; padding: 24px; overflow-y: auto; }
.admin-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.admin-header h1 { font-size: 22px; font-weight: 700; color: var(--dark); }
.stat-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.stat-card { background: var(--white); border-radius: var(--radius-lg); padding: 20px; box-shadow: var(--shadow); display: flex; align-items: center; gap: 16px; }
.stat-card-link { color: inherit; text-decoration: none; transition: transform var(--transition), box-shadow var(--transition); }
.stat-card-link:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.10); }
.stat-icon { width: 52px; height: 52px; border-radius: var(--radius); display: flex; align-items: center; justify-content: center; font-size: 22px; color: #fff; flex-shrink: 0; }
.stat-icon.orange { background: var(--orange); }
.stat-icon.dark   { background: var(--dark); }
.stat-icon.green  { background: var(--success); }
.stat-icon.blue   { background: #3498db; }
.stat-info h3 { font-size: 22px; font-weight: 800; color: var(--dark); }
.stat-info p  { font-size: 12px; color: var(--gray3); }
.admin-card { background: var(--white); border-radius: var(--radius-lg); padding: 20px; box-shadow: var(--shadow); margin-bottom: 20px; }
.admin-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.admin-card-header h3 { font-size: 16px; font-weight: 700; }
.new-order-notice {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 18px;
  margin-bottom: 18px;
  color: #7a3500;
  background: linear-gradient(135deg, #fff3e8, #fffaf5);
  border: 1px solid #ffd1ad;
  border-left: 5px solid var(--orange);
  border-radius: var(--radius-lg);
  box-shadow: 0 2px 10px rgba(255,107,0,.08);
}
.new-order-notice > i { color: var(--orange); font-size: 22px; }
.new-order-notice-text { flex: 1; min-width: 0; }
.new-order-notice-text strong { display: block; color: var(--dark); font-size: 15px; }
.new-order-notice-text span { display: block; color: #8a674d; font-size: 12px; margin-top: 1px; }
.low-stock-dashboard-card {
  border-left: 5px solid #ff8a1f;
}
.low-stock-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}
.low-stock-dashboard-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  padding: 11px 13px;
  border: 1px solid #ececec;
  border-radius: 8px;
  background: #fcfcfc;
  color: inherit;
}
.low-stock-dashboard-item:hover {
  border-color: #ffd1ad;
  background: #fff9f3;
}
.low-stock-dashboard-item span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 700;
}
.low-stock-dashboard-item strong {
  flex-shrink: 0;
  padding: 4px 10px;
  border-radius: 999px;
  background: #fff3cd;
  color: #856404;
  font-size: 12px;
}
.low-stock-dashboard-item strong.empty {
  background: #f8d7da;
  color: #721c24;
}
.low-stock-dashboard-item strong.critical {
  background: #fff0c2;
  color: #7a4d00;
}
.data-table { width: 100%; border-collapse: collapse; }
.data-table th { background: var(--gray); padding: 10px 12px; text-align: left; font-size: 12px; font-weight: 700; text-transform: uppercase; color: var(--gray3); }
.data-table td { padding: 12px; border-bottom: 1px solid var(--gray); font-size: 13px; }
.data-table tr:hover td { background: var(--gray); }
.data-table img { width: 44px; height: 44px; border-radius: var(--radius); object-fit: cover; }

.analytics-dashboard { overflow: hidden; }
.analytics-dashboard-header { gap: 14px; }
.analytics-dashboard-header > div:first-child p {
  color: var(--gray3);
  font-size: 12px;
  margin-top: 3px;
}
.analytics-header-actions {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.analytics-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #eaf7ef;
  color: #247245;
  font-size: 12px;
  font-weight: 800;
}
.analytics-live-pill span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22a55b;
  box-shadow: 0 0 0 4px rgba(34,165,91,.16);
}
.analytics-updated {
  color: var(--gray3);
  font-size: 12px;
}
.analytics-refresh-btn {
  width: 34px;
  height: 34px;
  border: 1px solid var(--gray2);
  border-radius: 8px;
  background: #fff;
  color: var(--dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
}
.analytics-refresh-btn:hover { border-color: var(--orange); color: var(--orange); }
.analytics-refresh-btn.loading i { animation: analyticsSpin .7s linear infinite; }
@keyframes analyticsSpin { to { transform: rotate(360deg); } }
.analytics-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  margin: -2px 0 16px;
  border: 1px solid #ececec;
  border-radius: 8px;
  background: #fbfbfb;
}
.analytics-filter-presets,
.analytics-custom-dates {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.analytics-filter-option input { position: absolute; opacity: 0; pointer-events: none; }
.analytics-filter-option span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 11px;
  border: 1px solid #e3e3e3;
  border-radius: 8px;
  background: #fff;
  color: var(--dark);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: all var(--transition);
}
.analytics-filter-option input:checked + span {
  border-color: var(--orange);
  background: #fff3e8;
  color: #a54400;
}
.analytics-custom-dates label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--gray3);
  font-size: 12px;
  font-weight: 700;
}
.analytics-custom-dates input {
  height: 34px;
  max-width: 140px;
  border: 1px solid #e3e3e3;
  border-radius: 8px;
  padding: 0 8px;
  color: var(--dark);
  background: #fff;
  font-size: 12px;
}
.analytics-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 12px;
  margin-bottom: 18px;
}
.analytics-metric {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  border: 1px solid #ececec;
  border-radius: 8px;
  padding: 13px;
  background: #fcfcfc;
}
.analytics-metric-icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}
.analytics-metric-icon.live { background: #247245; }
.analytics-metric-icon.visitor { background: #246a9e; }
.analytics-metric-icon.views { background: var(--orange); }
.analytics-metric-icon.channel { background: #1f2933; }
.analytics-metric strong {
  display: block;
  color: var(--dark);
  font-size: 20px;
  line-height: 1.15;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.analytics-metric span:last-child {
  display: block;
  color: var(--gray3);
  font-size: 12px;
  margin-top: 3px;
}
.analytics-body-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, .85fr);
  gap: 16px;
  align-items: start;
}
.analytics-primary-column {
  display: grid;
  gap: 16px;
  min-width: 0;
}
.analytics-traffic-panel,
.analytics-country-map-panel,
.analytics-breakdown-panel,
.analytics-lower-grid > div {
  border: 1px solid #ececec;
  border-radius: 8px;
  background: #fff;
  padding: 16px;
  min-width: 0;
}
.analytics-country-map-panel {
  margin-top: 0;
}
.analytics-section-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.analytics-section-title h4 {
  color: var(--dark);
  font-size: 14px;
  font-weight: 800;
}
.analytics-section-title span {
  color: var(--gray3);
  font-size: 12px;
}
.analytics-section-title.compact { align-items: center; margin-bottom: 10px; }
.analytics-change {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}
.analytics-change.positive { background: #eaf7ef; color: #247245; }
.analytics-change.negative { background: #fff1eb; color: #b74b22; }
.analytics-line-chart {
  position: relative;
  height: 238px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #edf0ee;
  padding: 8px 12px 30px;
  overflow: hidden;
}
.analytics-line-chart svg {
  display: block;
  width: 100%;
  height: 100%;
}
.analytics-line {
  fill: none;
  stroke: #28784d;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.analytics-area { fill: url(#analyticsAreaGradient); }
.analytics-grid-line {
  stroke: rgba(31,41,51,.08);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}
.analytics-point {
  fill: #fff;
  stroke: #28784d;
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}
.analytics-point.is-empty {
  fill: #d7e5dc;
  stroke: #d7e5dc;
  opacity: .65;
}
.analytics-point.has-views {
  filter: drop-shadow(0 1px 2px rgba(36,114,69,.18));
}
.analytics-point-label {
  fill: #1f2933;
  font-size: 10.5px;
  font-weight: 800;
  paint-order: stroke;
  stroke: #fff;
  stroke-width: 5px;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.analytics-y-axis {
  position: absolute;
  top: 42px;
  bottom: 48px;
  left: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #8d9690;
  font-size: 10px;
  font-weight: 700;
  pointer-events: none;
}
.analytics-line-labels {
  position: absolute;
  left: 40px;
  right: 40px;
  bottom: 8px;
  display: flex;
  justify-content: space-between;
  color: #818b84;
  font-size: 11px;
  font-weight: 700;
}
.analytics-chart-stats {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 9px;
}
.analytics-chart-stats span {
  border: 1px solid #e8eeeb;
  border-radius: 999px;
  padding: 5px 9px;
  background: #fbfdfc;
  color: #6d7670;
  font-size: 11.5px;
  font-weight: 700;
}
.analytics-chart-stats b { color: var(--dark); }
.analytics-country-title h4 {
  display: flex;
  align-items: center;
  gap: 8px;
}
.analytics-country-title h4 span,
.analytics-country-title h4::after {
  display: inline-flex;
  align-items: center;
}
.analytics-country-title h4 span::after,
.analytics-country-title h4::after {
  content: "";
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid #6b7178;
  margin-left: 4px;
}
.analytics-status-pill {
  width: 44px;
  height: 32px;
  border: 1px solid #dfe3e7;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #247245 !important;
  background: #fff;
}
.analytics-status-pill i {
  border: 2px solid currentColor;
  border-radius: 50%;
  width: 21px;
  height: 21px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}
.analytics-country-map-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  align-items: center;
}
.analytics-world-map {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
}
.analytics-world-map svg {
  display: block;
  width: 100%;
  height: 360px;
  transition: transform .18s ease;
}
.analytics-geo-chart {
  position: absolute;
  inset: 0;
  z-index: 2;
  transition: transform .18s ease;
}
.analytics-geo-chart > div,
.analytics-geo-chart svg {
  width: 100% !important;
  height: 100% !important;
}
.analytics-world-map.has-geo-chart > svg {
  opacity: 0;
}
.analytics-map-empty {
  position: absolute;
  inset: 18px;
  z-index: 4;
  display: none;
  align-content: center;
  justify-items: center;
  gap: 8px;
  border: 1px solid #e7ecef;
  border-radius: 8px;
  background:
    linear-gradient(rgba(255,255,255,.92), rgba(255,255,255,.92)),
    radial-gradient(circle at 34% 34%, rgba(36,114,69,.10), transparent 26%),
    radial-gradient(circle at 70% 62%, rgba(255,107,0,.10), transparent 25%);
  color: var(--dark);
  text-align: center;
}
.analytics-world-map.has-empty-state > svg,
.analytics-world-map.has-empty-state .analytics-geo-chart,
.analytics-world-map.has-empty-state .analytics-map-controls {
  display: none;
}
.analytics-world-map.has-empty-state .analytics-map-empty {
  display: grid;
}
.analytics-map-empty span {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #eef8f2;
  color: #247245;
  font-size: 18px;
}
.analytics-map-empty strong {
  font-size: 14px;
  font-weight: 900;
}
.analytics-map-empty em {
  max-width: 260px;
  color: var(--gray3);
  font-size: 12px;
  font-style: normal;
  line-height: 1.45;
}
.analytics-continent {
  fill: #eef1f4 !important;
  stroke: #fff !important;
  stroke-width: 2;
}
.analytics-country-marker {
  fill: #2878e6;
  stroke: rgba(255,255,255,.9);
  stroke-width: 2;
}
.analytics-country-pulse {
  fill: #2878e6;
}
.analytics-map-controls {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 3;
  width: 38px;
  border: 1px solid #ececec;
  border-radius: 3px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(0,0,0,.12);
  color: #666;
  font-size: 22px;
  font-weight: 500;
  line-height: 1;
}
.analytics-map-controls button {
  height: 36px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
}
.analytics-map-controls button + button {
  border-top: 1px solid #e5e5e5;
}
.analytics-country-table {
  display: grid;
  gap: 10px;
  min-width: 0;
}
.analytics-country-head,
.analytics-country-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 96px;
  gap: 10px;
  align-items: center;
}
.analytics-country-head {
  color: #5f656d;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  border-bottom: 1px solid #e6e8eb;
  padding-bottom: 7px;
}
.analytics-country-head span {
  border-bottom: 2px dashed #cfd4da;
  width: max-content;
  max-width: 100%;
}
.analytics-country-head span:last-child {
  justify-self: end;
}
.analytics-country-rows {
  display: grid;
}
.analytics-country-rows .analytics-show-more,
.analytics-breakdown-list .analytics-show-more {
  justify-self: start;
  border: 1px solid #d7e5ff;
  border-radius: 999px;
  background: #f5f9ff;
  color: #2878e6;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  margin-top: 10px;
}
.analytics-country-rows .analytics-show-more:hover,
.analytics-breakdown-list .analytics-show-more:hover {
  border-color: #2878e6;
  background: #edf5ff;
}
.analytics-country-row {
  min-height: 46px;
  border-bottom: 1px solid #e6e8eb;
}
.analytics-country-name {
  display: grid;
  gap: 8px;
  min-width: 0;
}
.analytics-country-name strong {
  overflow: hidden;
  color: var(--dark);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.analytics-country-name span {
  height: 4px;
  width: 100%;
  background: #edf0f3;
  overflow: hidden;
}
.analytics-country-name i {
  display: block;
  height: 100%;
  background: #2878e6;
}
.analytics-country-users {
  display: flex;
  justify-content: flex-end;
  align-items: baseline;
  gap: 6px;
  min-width: 0;
}
.analytics-country-users strong {
  color: var(--dark);
  font-size: 14px;
}
.analytics-country-users em {
  color: #247245;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}
.analytics-country-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
}
.analytics-country-footer span {
  color: #5f656d;
  font-size: 13px;
  font-weight: 700;
}
.analytics-country-footer a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #2878e6;
  font-size: 15px;
  font-weight: 900;
}
.analytics-breakdown-list {
  display: grid;
  gap: 10px;
}
.analytics-breakdown-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 88px 42px;
  align-items: center;
  gap: 10px;
}
.analytics-breakdown-label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.analytics-breakdown-label strong,
.analytics-breakdown-label em,
.analytics-page-row strong,
.analytics-page-row em,
.analytics-recent-row strong,
.analytics-recent-row em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.analytics-breakdown-label strong {
  color: var(--dark);
  font-size: 13px;
  min-width: 0;
}
.analytics-breakdown-label em {
  color: var(--gray3);
  font-size: 11px;
  font-style: normal;
  flex-shrink: 0;
}
.analytics-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--orange);
  flex-shrink: 0;
}
.analytics-dot-organic-search { background: #247245; }
.analytics-dot-social { background: #246a9e; }
.analytics-dot-referral { background: #8b5cf6; }
.analytics-dot-direct { background: var(--orange); }
.analytics-dot-app { background: #1f2933; }
.analytics-bar {
  height: 8px;
  border-radius: 999px;
  background: #efefef;
  overflow: hidden;
}
.analytics-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--orange), #ff9a3d);
}
.analytics-breakdown-row b {
  color: var(--dark);
  font-size: 12px;
  text-align: right;
}
.devices-title { margin-top: 18px; }
.countries-title { margin-top: 18px; }
.analytics-device-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.analytics-device-card {
  display: grid;
  gap: 4px;
  justify-items: center;
  border: 1px solid #ececec;
  border-radius: 8px;
  padding: 10px 6px;
  background: #fcfcfc;
  text-align: center;
}
.analytics-device-card i { color: var(--orange); font-size: 18px; }
.analytics-device-card strong { color: var(--dark); font-size: 12px; }
.analytics-device-card span { color: var(--gray3); font-size: 11px; }
.analytics-lower-grid {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,1fr);
  gap: 16px;
  margin-top: 16px;
}
.analytics-top-pages,
.analytics-recent-list {
  display: grid;
  gap: 8px;
}
.analytics-page-row,
.analytics-recent-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  border: 1px solid #f0f0f0;
  border-radius: 8px;
  padding: 10px;
  background: #fcfcfc;
}
.analytics-page-row { justify-content: space-between; color: inherit; }
.analytics-page-row:hover { border-color: #ffd1ad; background: #fff9f3; }
.analytics-page-row span,
.analytics-recent-row span:nth-child(2) {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.analytics-page-row strong,
.analytics-recent-row strong {
  color: var(--dark);
  font-size: 13px;
}
.analytics-page-row em,
.analytics-recent-row em {
  color: var(--gray3);
  font-size: 11px;
  font-style: normal;
}
.analytics-page-row b,
.analytics-recent-row b {
  color: var(--dark);
  font-size: 12px;
  flex-shrink: 0;
}
.analytics-recent-row b { margin-left: auto; }
.analytics-empty {
  border: 1px dashed #ddd;
  border-radius: 8px;
  color: var(--gray3);
  font-size: 12px;
  padding: 14px;
  text-align: center;
}

/* ============================================
   MISC
   ============================================ */
.page-header { background: var(--gray); padding: 24px 0; margin-bottom: 0; }
.page-header h1 { font-size: 24px; font-weight: 700; }
.shop-page-header {
  --category-bg: linear-gradient(135deg, #242424 0%, #4a4a4a 52%, #ff6b00 100%);
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,.08) 0 1px, transparent 1px 18px),
    var(--category-bg);
  color: #fff;
  overflow: hidden;
  padding: 28px 0;
  position: relative;
}
.shop-page-header::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.42) 0%, rgba(0,0,0,.18) 48%, rgba(0,0,0,.06) 100%);
  pointer-events: none;
}
.shop-page-header .container {
  position: relative;
  z-index: 1;
}
.shop-page-header .breadcrumb,
.shop-page-header .breadcrumb a {
  color: rgba(255,255,255,.82);
}
.shop-page-header .breadcrumb a:hover {
  color: #fff;
}
.shop-page-header h1 {
  color: #fff;
  text-shadow: 0 2px 12px rgba(0,0,0,.22);
}
.category-header--fashion { --category-bg: linear-gradient(135deg, #201f28 0%, #8b3655 54%, #f59e0b 100%); }
.category-header--electronics { --category-bg: linear-gradient(135deg, #101826 0%, #2563eb 56%, #22d3ee 100%); }
.category-header--home-kitchen { --category-bg: linear-gradient(135deg, #263126 0%, #6c8b50 54%, #d9a441 100%); }
.category-header--perfumes-beauty { --category-bg: linear-gradient(135deg, #3a243b 0%, #b04c86 55%, #f0b7c9 100%); }
.category-header--sports { --category-bg: linear-gradient(135deg, #123326 0%, #1f8f57 55%, #f4b942 100%); }
.category-header--books { --category-bg: linear-gradient(135deg, #33291f 0%, #8b5e34 54%, #d6b16a 100%); }
.category-header--toys-games { --category-bg: linear-gradient(135deg, #173153 0%, #e04875 55%, #f7c948 100%); }
.category-header--automotive { --category-bg: linear-gradient(135deg, #191d23 0%, #455a64 54%, #d94a38 100%); }
.category-header--groceries { --category-bg: linear-gradient(135deg, #20422f 0%, #63a35c 55%, #f1c453 100%); }
.category-header--health { --category-bg: linear-gradient(135deg, #173837 0%, #279b8f 55%, #a8dadc 100%); }
.category-header--perfume { --category-bg: linear-gradient(135deg, #30233a 0%, #8d4f9c 54%, #e7c4a8 100%); }
.category-header--office { --category-bg: linear-gradient(135deg, #1f2933 0%, #4f6d7a 56%, #e3b23c 100%); }
.category-header--bathroom-accessories { --category-bg: linear-gradient(135deg, #12364a 0%, #35a7c9 56%, #d9f2f4 100%); }
.category-header--search { --category-bg: linear-gradient(135deg, #1f2933 0%, #64748b 55%, #ff6b00 100%); }
.category-header--all { --category-bg: linear-gradient(135deg, #202020 0%, #555 54%, #ff6b00 100%); }
.empty-state { text-align: center; padding: 60px 20px; color: var(--gray3); }
.empty-state i { font-size: 64px; margin-bottom: 16px; color: var(--gray2); }
.empty-state h3 { font-size: 20px; color: var(--text); margin-bottom: 8px; }
.badge { display: inline-flex; align-items: center; padding: 2px 10px; border-radius: 20px; font-size: 11px; font-weight: 700; }
.pagination { display: flex; gap: 6px; justify-content: center; padding: 24px 0; }
.page-btn { width: 36px; height: 36px; border-radius: var(--radius); display: flex; align-items: center; justify-content: center; border: 1px solid var(--gray2); cursor: pointer; font-size: 13px; transition: all var(--transition); background: var(--white); }
.page-btn:hover, .page-btn.active { background: var(--orange); color: #fff; border-color: var(--orange); }
.alert { padding: 12px 16px; border-radius: var(--radius); margin-bottom: 16px; font-size: 13px; }
.alert-success { background: #d4edda; color: #155724; border-left: 4px solid var(--success); }
.alert-error   { background: #f8d7da; color: #721c24; border-left: 4px solid var(--danger); }
.alert-info    { background: var(--orange-lt); color: var(--orange-dk); border-left: 4px solid var(--orange); }

/* BLOG */
.blog-card-grid { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px; }
.blog-image-card { position:relative;display:block;aspect-ratio:16/10;border-radius:12px;overflow:hidden;background:#eee;box-shadow:var(--shadow); }
.blog-image-card img,.blog-image-placeholder { width:100%;height:100%;object-fit:cover;display:flex;align-items:center;justify-content:center;font-size:40px;color:#bbb;transition:transform .3s ease; }
.blog-image-card:hover img { transform:scale(1.04); }
.blog-image-overlay { position:absolute;inset:0;background:linear-gradient(transparent 45%,rgba(0,0,0,.86));display:flex;align-items:flex-end;padding:18px; }
.blog-image-overlay h3 { color:#fff;font-size:17px;line-height:1.35;text-shadow:0 1px 3px #000; }
.blog-list-grid { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;align-items:stretch; }
.blog-list-card { background:#fff;border:1px solid var(--gray2);border-radius:12px;overflow:hidden;box-shadow:var(--shadow);display:flex;flex-direction:column;height:100%; }
.blog-list-image { display:block;aspect-ratio:16/10;background:#f3f3f3; }
.blog-list-image img,.blog-list-image span { width:100%;height:100%;object-fit:cover;display:flex;align-items:center;justify-content:center;color:#bbb;font-size:42px; }
.blog-list-body { padding:18px;display:flex;flex-direction:column;flex:1; }
.blog-list-body h2 { font-size:18px;line-height:1.35;margin:6px 0 9px; }
.blog-list-body p { color:#666;font-size:13px;line-height:1.65;margin-bottom:12px;display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden; }
.blog-list-body .see-all { margin-top:auto; }
.blog-date { color:var(--orange);font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.5px; }
.blog-page-layout { display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:28px;align-items:start;margin-bottom:35px; }
.blog-article { background:#fff;border:1px solid var(--gray2);border-radius:12px;padding:28px;min-width:0; }
.blog-article h1 { font-size:clamp(28px,4vw,42px);line-height:1.15;margin:8px 0 12px; }
.blog-lead { font-size:17px;color:#666;line-height:1.7; }
.blog-hero-image { width:100%;max-height:520px;object-fit:cover;border-radius:10px;margin:22px 0; }
.blog-content { font-size:16px;line-height:1.85;color:#333;overflow-wrap:anywhere; }
.blog-content h2,.blog-content h3 { margin:26px 0 10px;line-height:1.3; }
.blog-content p,.blog-content ul,.blog-content ol,.blog-content blockquote { margin-bottom:16px; }
.blog-content ul,.blog-content ol { padding-left:24px; }
.blog-content a { color:var(--orange);text-decoration:underline; }
.sidebar-card { background:#fff;border:1px solid var(--gray2);border-radius:12px;padding:18px;margin-bottom:18px; }
.sidebar-card h2 { font-size:17px;margin-bottom:12px; }
.sidebar-product { display:flex;gap:10px;align-items:center;padding:10px 0;border-bottom:1px solid #eee; }
.sidebar-product img { width:58px;height:58px;object-fit:cover;border-radius:7px;flex-shrink:0; }
.sidebar-product span { min-width:0; }
.sidebar-product strong { display:block;font-size:12px;line-height:1.35; }
.sidebar-product small { display:block;color:var(--orange);font-weight:700;margin-top:3px; }
.sidebar-product small .aed-sym { width:13px;height:11px;max-width:13px;object-fit:contain;vertical-align:-1px;top:0;margin-right:2px; }
.sidebar-category { display:flex;justify-content:space-between;padding:9px 0;border-bottom:1px solid #eee;font-size:13px; }
.product-tags { display:flex;flex-wrap:wrap;gap:7px;margin-top:14px; }
.product-tags a { font-size:12px;background:#fff3e8;color:#b84d00;padding:5px 9px;border-radius:20px; }
.responsive-table-wrap { width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch; }

/* SOCIAL FEEDS */
.social-showcase { background:linear-gradient(180deg,#fff 0%,#fafafa 100%);padding:6px 0 10px; }
.social-section { padding-top:22px; }
.social-section-header { align-items:center;gap:14px; }
.social-section-header h2 { display:flex;align-items:center;gap:9px; }
.social-section-header h2 i { color:var(--dark);font-size:21px; }
.social-section-instagram .social-section-header h2 i { color:#dc2743; }
.social-controls { display:flex;align-items:center;gap:8px; }
.social-scroll-btn {
  width:34px;height:34px;border:1px solid var(--gray2);border-radius:50%;background:#fff;color:var(--dark);
  display:inline-flex;align-items:center;justify-content:center;cursor:pointer;box-shadow:0 2px 8px rgba(0,0,0,.06);
  transition:all var(--transition);
}
.social-scroll-btn:hover { background:var(--orange);border-color:var(--orange);color:#fff; }
.tiktok-rail {
  display:grid;grid-auto-flow:column;grid-auto-columns:minmax(190px,230px);gap:14px;
  overflow-x:auto;overscroll-behavior-inline:contain;scroll-snap-type:x mandatory;scroll-padding:2px 16px 14px 2px;
  padding:2px 2px 14px;-webkit-overflow-scrolling:touch;
  scrollbar-width:none;-ms-overflow-style:none;
}
.tiktok-rail::-webkit-scrollbar { display:none; }
.tiktok-video-card {
  scroll-snap-align:start;position:relative;aspect-ratio:9/16;border-radius:12px;overflow:hidden;background:#050505;
  border:1px solid #111;box-shadow:0 10px 28px rgba(0,0,0,.14);
}
.tiktok-video-card video,
.tiktok-video-card iframe,
.instagram-media-card video,
.instagram-media-card img { width:100%;height:100%;object-fit:cover;display:block; }
.tiktok-video-card video,
.tiktok-video-card iframe { background:#000;border:0; }
.tiktok-video-card video:fullscreen,
.tiktok-video-card video:-webkit-full-screen {
  object-fit:contain;
  background:#000;
}
.instagram-grid {
  display:grid;grid-auto-flow:column;grid-auto-columns:calc((100% - 36px) / 4);gap:12px;
  overflow-x:auto;overscroll-behavior-inline:contain;scroll-snap-type:x mandatory;scroll-padding:2px 16px 14px 2px;
  padding:2px 2px 14px;-webkit-overflow-scrolling:touch;
  scrollbar-width:none;-ms-overflow-style:none;
}
.instagram-grid::-webkit-scrollbar { display:none; }
.instagram-media-card {
  position:relative;aspect-ratio:1;border-radius:12px;overflow:hidden;background:#eee;border:1px solid var(--gray2);
  box-shadow:0 4px 18px rgba(0,0,0,.08);scroll-snap-align:start;
}
.instagram-media-card::after {
  content:"";position:absolute;inset:0;border:1px solid rgba(255,255,255,.24);border-radius:inherit;pointer-events:none;
}
.instagram-media-card img,
.instagram-media-card video { object-fit:contain;background:#111; }
.instagram-media-card img { transition:transform .35s ease; }
.instagram-media-card:hover img { transform:scale(1.04); }
.instagram-media-card video { background:#111; }
.instagram-media-type {
  position:absolute;top:9px;right:9px;width:30px;height:30px;border-radius:50%;background:rgba(0,0,0,.62);color:#fff;
  display:flex;align-items:center;justify-content:center;font-size:11px;pointer-events:none;
}

/* ADMIN FORM TABS */
.admin-form-tabs { display:flex;gap:6px;padding:5px;background:#f3f3f3;border-radius:9px;margin-bottom:18px; }
.admin-form-tab { flex:1;border:0;background:transparent;color:#777;padding:10px 12px;border-radius:7px;font-size:13px;font-weight:700;cursor:pointer;transition:.2s ease; }
.admin-form-tab.active { background:#fff;color:var(--orange);box-shadow:0 2px 8px rgba(0,0,0,.08); }
.admin-tab-panel { display:none; }
.admin-tab-panel.active { display:block; }
.admin-dnd-upload {
  position: relative;
  width: 100%;
  margin-top: 6px;
}
.admin-dnd-native {
  position: absolute !important;
  inset: 0 !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  opacity: 0 !important;
  cursor: pointer !important;
  z-index: 2;
}
.admin-dnd-zone {
  min-height: 118px;
  border: 2px dashed #f2b06c;
  border-radius: 10px;
  background: #fff9f4;
  padding: 16px;
  display: grid;
  grid-template-columns: 46px minmax(0,1fr) auto;
  gap: 5px 12px;
  align-items: center;
  color: #7a4000;
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.admin-dnd-upload:hover .admin-dnd-zone,
.admin-dnd-upload.is-dragover .admin-dnd-zone {
  border-color: var(--orange);
  background: #fff3eb;
  box-shadow: 0 0 0 3px rgba(255,107,0,.10);
}
.admin-dnd-icon {
  grid-row: span 3;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: var(--orange);
  font-size: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
}
.admin-dnd-title {
  display: block;
  min-width: 0;
  font-size: 14px;
  font-weight: 800;
  color: #222;
}
.admin-dnd-subtitle,
.admin-dnd-filename {
  display: block;
  min-width: 0;
  font-size: 12px;
  line-height: 1.45;
}
.admin-dnd-subtitle { color: #8a5a2d; }
.admin-dnd-filename {
  color: #777;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.admin-dnd-upload.has-file .admin-dnd-filename {
  color: #d65300;
  font-weight: 700;
}
.admin-dnd-preview {
  grid-column: 3;
  grid-row: 1 / span 3;
  position: relative;
  width: 76px;
  height: 76px;
  border-radius: 9px;
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(255,107,0,.20);
  overflow: hidden;
}
.admin-dnd-preview:empty::before {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255,107,0,.12), rgba(255,255,255,.84));
}
.admin-dnd-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.admin-dnd-preview span {
  position: absolute;
  right: 5px;
  bottom: 5px;
  background: rgba(0,0,0,.68);
  color: #fff;
  border-radius: 999px;
  padding: 2px 7px;
  font-size: 11px;
  font-weight: 800;
}

/* SEARCHABLE MULTI-SELECT DROPDOWN */
.multi-dropdown { position:relative; }
.multi-dropdown-toggle {
  width:100%;min-height:44px;border:1px solid var(--gray2);background:#fff;border-radius:7px;
  padding:10px 12px;display:flex;align-items:center;justify-content:space-between;gap:10px;
  color:#555;font-size:13px;text-align:left;cursor:pointer;
}
.multi-dropdown-toggle:hover,.multi-dropdown.open .multi-dropdown-toggle { border-color:var(--orange); }
.multi-dropdown-toggle .selection-summary { overflow:hidden;text-overflow:ellipsis;white-space:nowrap; }
.multi-dropdown-toggle i { color:#999;transition:transform .2s ease; }
.multi-dropdown.open .multi-dropdown-toggle i { transform:rotate(180deg); }
.multi-dropdown-menu {
  display:none;position:absolute;z-index:50;top:calc(100% + 6px);left:0;right:0;
  background:#fff;border:1px solid var(--gray2);border-radius:9px;box-shadow:0 12px 30px rgba(0,0,0,.16);
  padding:10px;max-height:330px;overflow:hidden;
}
.multi-dropdown.open .multi-dropdown-menu { display:block; }
.multi-dropdown-search { width:100%;padding:9px 10px;border:1px solid var(--gray2);border-radius:6px;margin-bottom:8px;font-size:13px; }
.multi-dropdown-options { max-height:245px;overflow-y:auto;overscroll-behavior:contain; }
.multi-dropdown-option {
  display:flex!important;align-items:center;gap:9px;padding:8px;border-radius:6px;cursor:pointer;
  font-size:13px;font-weight:500!important;margin:0!important;
}
.multi-dropdown-option:hover { background:#fff5ed; }
.multi-dropdown-option input { width:17px!important;height:17px;flex:0 0 17px;accent-color:var(--orange); }
.multi-dropdown-option img,.multi-option-placeholder { width:34px;height:34px;object-fit:cover;border-radius:5px;flex:0 0 34px;background:#f1f1f1;display:flex;align-items:center;justify-content:center;color:#aaa; }
.multi-dropdown-empty { display:none;padding:15px;text-align:center;color:#999;font-size:12px; }
.multi-selected-chips { display:flex;flex-wrap:wrap;gap:6px;margin-top:9px; }
.multi-selected-chip { display:inline-flex;align-items:center;gap:6px;max-width:100%;background:#fff3e8;color:#9b4300;border:1px solid #ffd6b7;padding:5px 8px;border-radius:20px;font-size:11px; }
.multi-selected-chip span { overflow:hidden;text-overflow:ellipsis;white-space:nowrap; }
.multi-selected-chip button { border:0;background:none;color:#b54c00;padding:0;cursor:pointer;font-size:12px; }
.multi-dropdown-help { display:block;color:#888;font-size:11px;margin-top:7px; }

.admin-image-section { border-top:1px solid #eee;padding-top:14px;margin-top:14px; }
.admin-image-section:first-of-type { border-top:0;padding-top:0; }


/* ============================================
   ADMIN MOBILE SIDEBAR — slide-in drawer
   ============================================ */
.admin-menu-toggle {
  display: none;
  background: var(--orange);
  border: none;
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.admin-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  z-index: 1998;
}
.admin-overlay.open { display: block; }

.mobile-admin-bar {
  display: none;
  align-items: center;
  gap: 12px;
  background: #fff;
  padding: 10px 16px;
  border-bottom: 1px solid #e0e0e0;
  position: sticky;
  top: 0;
  z-index: 100;
}
.mobile-admin-bar .page-title {
  font-weight: 700;
  font-size: 16px;
  flex: 1;
}

/* ============================================
   RESPONSIVE — 1024px (tablet landscape)
   ============================================ */
@media (max-width: 1024px) {
  .footer-grid         { grid-template-columns: 1fr 1fr; }
  .hero-sidebar        { display: none; }
  .stat-cards          { grid-template-columns: repeat(2, 1fr); }
  .admin-layout        { grid-template-columns: 200px 1fr; }
  .product-detail      { grid-template-columns: 1fr; }
  .product-gallery     { position: static; }
  .cart-layout         { grid-template-columns: 1fr; }
  .checkout-layout     { grid-template-columns: 1fr; }
  .instagram-grid      { grid-auto-columns:calc((100% - 24px) / 3); }
  .promo-offer {
    grid-template-columns: 1fr;
    align-items: start;
    min-height: 240px;
  }
  .promo-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
  }

  /* Image popup is removed on mobile/tablet — hide its trigger + zoom cursor */
  .product-fullview-hint { display: none !important; }
  .product-slide-button  { cursor: default !important; }
}

/* ============================================
   RESPONSIVE — 768px (tablet portrait + mobile)
   ============================================ */
@media (max-width: 768px) {
  /* Prevent horizontal overflow on everything */
  html, body { overflow-x: hidden; max-width: 100vw; }
  * { max-width: 100%; }
  img { max-width: 100%; height: auto; }

  /* Gallery: undo the global * { max-width:100% } for slider internals */
  .product-slider-wrap { max-width: none; overflow: hidden; }
  .product-slides { max-width: none; overflow: visible; }
  .product-slide { max-width: none; overflow: hidden; }
  .product-slide img { max-width: none !important; height: 100% !important; }

  /* STOREFRONT HEADER */
  .topbar { display: none; }
  .header { padding: 10px 0; }
  .header .container { flex-wrap: wrap; gap: 8px; }
  .header-logo img   { height: 40px; }
  .search-bar  { order: 3; width: 100%; min-width: 0; }
  .search-bar select { min-width: 70px; font-size: 12px; padding: 0 8px; }
  .header-actions { margin-left: auto; gap: 4px; }
  .header-btn { padding: 6px 8px; }

  /* NAVBAR */
  .navbar .container { overflow-x: auto; scrollbar-width: none; }
  .navbar .container::-webkit-scrollbar { display: none; }
  .nav-link { white-space: nowrap; padding: 10px 12px; font-size: 12px; }

  /* SHOP / PRODUCTS */
  .products-grid       { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .shop-layout         { grid-template-columns: 1fr; }
  .filters-sidebar     { position: fixed; top: 0; left: -100%; width: 85%; max-width: 340px; height: 100dvh; background: var(--white); z-index: 1200; overflow-y: auto; padding: 16px; transition: left .28s ease; box-shadow: 4px 0 20px rgba(0,0,0,.15); }
  .filters-sidebar.open { left: 0; }
  .filters-mobile-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--gray2); }
  .filters-mobile-head h3 { font-size: 16px; }
  .filters-close { background: none; border: none; font-size: 26px; line-height: 1; cursor: pointer; color: #333; }
  .filters-backdrop.open { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 1199; }
  .mobile-filter-btn   { display: inline-flex; }
  .product-detail      { grid-template-columns: 1fr; }
  .cart-layout         { grid-template-columns: 1fr; }
  .checkout-layout     { grid-template-columns: 1fr; }
  .account-layout      { grid-template-columns: 1fr; }
  .form-row            { grid-template-columns: 1fr; }
  .footer-grid         { grid-template-columns: 1fr 1fr; }

  /* HERO */
  .hero-section        { flex-direction: column; }
  .hero-sidebar        { display: none; }
  .slide-placeholder h2 { font-size: 20px; }
  .category-section .section-header {
    align-items: center;
    margin-bottom: 14px;
  }
  .cat-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }
  .cat-card {
    min-height: 132px;
    padding: 14px 8px;
  }
  .cat-card-icon {
    width: 50px;
    height: 50px;
  }
  .cat-card-icon i {
    font-size: 23px;
  }
  .cat-card span:not(.cat-card-icon) {
    min-height: 38px;
    font-size: 12px;
  }
  .promo-banner-wrap {
    margin-bottom: 16px;
  }
  .promo-grid {
    grid-template-columns: 1fr;
    border-radius: 10px;
  }
  .promo-offer {
    min-height: auto;
    padding: 24px 20px;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 14px;
  }
  .promo-offer + .promo-offer {
    border-left: 0;
    border-top: 1px solid rgba(255,255,255,.14);
  }
  .promo-icon {
    width: 44px;
    height: 44px;
    font-size: 18px;
  }
  .promo-eyebrow {
    font-size: 11px;
    letter-spacing: 1.5px;
    margin-bottom: 6px;
  }
  .promo-copy h2 {
    font-size: 25px;
    margin-bottom: 10px;
  }
  .promo-note {
    font-size: 13px;
    margin-bottom: 16px;
  }
  .promo-btn {
    width: 100%;
    min-height: 46px;
    padding: 11px 16px;
  }
  .social-showcase     { padding-top:0; }
  .social-section      { padding-top:18px; }
  .social-section-header { align-items:flex-start; }
  .social-section-header h2 { font-size:18px; }
  .social-controls     { gap:6px; }
  .social-scroll-btn   { display:none; }
  .tiktok-rail {
    grid-auto-columns:minmax(158px,68vw);
    gap:10px;
    margin-right:-16px;
    padding-right:16px;
    scroll-padding-right:16px;
  }
  .instagram-grid      {
    grid-auto-columns:calc((100% - 9px) / 2);
    gap:9px;
    margin-right:-16px;
    padding-right:16px;
    scroll-padding-right:16px;
  }

  /* TRUST BADGES — 2 columns on mobile */
  .trust-badges-grid   { grid-template-columns: 1fr 1fr !important; }

  /* CART */
  .cart-item { gap: 10px; }
  .cart-item-img { width: 70px; height: 70px; }

  /* PRODUCT CARD */
  .product-card .price-current { font-size: 15px; }
  .add-cart-btn { font-size: 12px; padding: 8px 4px; }

  /* ---- ADMIN PANEL MOBILE ---- */
  /* Switch to single column, sidebar off-screen */
  .admin-layout {
    display: block;        /* single column, no grid */
  }
  .admin-sidebar {
    position: fixed;
    top: 0;
    left: -280px;          /* hidden off left edge */
    width: 260px;
    height: 100vh;
    z-index: 1999;
    transition: left .28s cubic-bezier(.4,0,.2,1);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-shadow: 4px 0 24px rgba(0,0,0,.5);
  }
  .admin-sidebar.open { left: 0; }

  /* Mobile top bar — shown only on mobile */
  .mobile-admin-bar {
    display: flex !important;
  }

  /* hamburger button */
  .admin-menu-toggle {
    display: inline-flex !important;
  }

  /* Admin content area */
  .admin-content {
    padding: 0;           /* bar handles top spacing */
    min-height: 100vh;
  }
  .admin-inner {
    padding: 16px;
  }

  .admin-header {
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 0 12px;
  }
  .admin-header h1 { font-size: 20px; }

  /* Stat cards 2-col */
  .stat-cards {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 16px;
  }
  .stat-card  { padding: 12px; gap: 10px; }
  .stat-icon  { width: 40px; height: 40px; font-size: 17px; flex-shrink: 0; }
  .stat-info h3 { font-size: 16px; }
  .stat-info p  { font-size: 11px; }
  .analytics-dashboard-header {
    align-items: flex-start;
  }
  .analytics-header-actions {
    width: 100%;
    justify-content: flex-start;
  }
  .analytics-filter-bar {
    align-items: flex-start;
    flex-direction: column;
  }
  .analytics-custom-dates {
    width: 100%;
  }
  .analytics-metrics {
    grid-template-columns: 1fr 1fr;
    gap: 9px;
  }
  .analytics-metric {
    padding: 10px;
    gap: 9px;
  }
  .analytics-metric-icon {
    width: 34px;
    height: 34px;
  }
  .analytics-metric strong {
    font-size: 16px;
  }
  .analytics-body-grid,
  .analytics-lower-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .analytics-traffic-panel,
  .analytics-country-map-panel,
  .analytics-breakdown-panel,
  .analytics-lower-grid > div {
    padding: 12px;
  }
  .analytics-section-title {
    flex-wrap: wrap;
  }
  .analytics-line-chart {
    height: 210px;
  }
  .analytics-country-map-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .analytics-world-map {
    min-height: 300px;
  }
  .analytics-world-map svg {
    height: 300px;
  }
  .analytics-map-controls {
    right: 10px;
    bottom: 34px;
    width: 38px;
    font-size: 22px;
  }
  .analytics-map-controls button {
    height: 36px;
  }
  .analytics-country-head,
  .analytics-country-row {
    grid-template-columns: minmax(0, 1fr) 94px;
    gap: 10px;
  }
  .analytics-country-head {
    font-size: 10px;
    letter-spacing: .08em;
  }
  .analytics-country-name strong,
  .analytics-country-users strong {
    font-size: 13px;
  }
  .analytics-country-users {
    gap: 6px;
  }
  .analytics-country-footer a {
    font-size: 13px;
  }
  .analytics-breakdown-row {
    grid-template-columns: minmax(0, 1fr) 70px 38px;
    gap: 8px;
  }
  .analytics-breakdown-label {
    flex-wrap: wrap;
  }
  .analytics-device-grid {
    grid-template-columns: repeat(3, minmax(76px, 1fr));
  }

  /* Admin cards scroll horizontally for tables */
  .admin-card { padding: 14px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .data-table { min-width: 520px; font-size: 12px; }
  .data-table th, .data-table td { padding: 8px 6px; }
  .blog-card-grid,.blog-list-grid { grid-template-columns:1fr; }
  .blog-page-layout { grid-template-columns:1fr;gap:18px; }
  .blog-article { padding:18px; }
  .variant-admin-row { grid-template-columns:1fr 1fr!important; }
  .variant-admin-row button { grid-column:2;justify-self:end; }
  .responsive-admin-table { min-width:0;display:block; }
  .responsive-admin-table thead { display:none; }
  .responsive-admin-table tbody,.responsive-admin-table tr,.responsive-admin-table td { display:block;width:100%; }
  .responsive-admin-table tr { background:#fff;border:1px solid #e8e8e8;border-radius:10px;padding:10px;margin-bottom:12px; }
  .responsive-admin-table td { border:0;padding:7px 0!important;display:flex;align-items:center;justify-content:space-between;gap:12px;text-align:right; }
  .responsive-admin-table td::before { content:attr(data-label);font-size:11px;font-weight:700;color:#888;text-transform:uppercase;text-align:left; }
  .responsive-admin-table td[data-label="Product"] { align-items:flex-start; }
  .responsive-admin-table td[data-label="Actions"] > div { justify-content:flex-end!important; }
  .multi-dropdown-menu { position:fixed;left:14px;right:14px;top:18%;max-height:64vh; }
  .multi-dropdown-options { max-height:calc(64vh - 72px); }
  .admin-form-tabs { position:sticky;top:0;z-index:3; }
}

/* Customer profile */
.account-avatar-image,
.account-avatar-fallback {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  margin: 0 auto 10px;
}
.account-avatar-image {
  display: block;
  object-fit: cover;
  border: 3px solid #fff;
  box-shadow: 0 0 0 1px var(--gray2);
}
.account-avatar-fallback {
  background: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: #fff;
  font-weight: 700;
}
.profile-card {
  background: #fff;
  border: 1px solid var(--gray2);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 24px;
}
.profile-card h3 { font-size: 18px; margin-bottom: 4px; }
.profile-help { color: #777; font-size: 13px; margin-bottom: 18px; }
.profile-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 18px;
}
.profile-card .form-group { margin-bottom: 0; }
.profile-card label small,
.profile-password-fields h4 small { color: #999; font-weight: 400; }
.profile-password-fields {
  border-top: 1px solid var(--gray2);
  margin-top: 18px;
  padding-top: 18px;
  margin-bottom: 18px;
}
.profile-password-fields h4 { font-size: 14px; margin-bottom: 14px; }
@media (max-width: 768px) {
  .profile-form-grid { grid-template-columns: 1fr; }
}

/* Admin product-form: keep the right sidebar from being pushed off-screen,
   and stack to one column on narrower admin viewports. */
.admin-two-col { grid-template-columns: minmax(0,1fr) 320px; }
.admin-two-col > * { min-width: 0; }
@media (max-width: 1100px) {
  .admin-two-col { grid-template-columns: 1fr !important; }
}
.address-page-head { display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:20px; }
.address-page-head h2 { font-size:20px;margin-bottom:3px; }
.address-page-head p,.address-location-row p { color:#777;font-size:13px; }
.address-grid { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-bottom:22px; }
.address-card { position:relative;background:#fff;border:1px solid var(--gray2);border-radius:12px;padding:20px; }
.address-card.is-default { border:2px solid var(--orange); }
.address-card h3 { font-size:16px;margin-bottom:10px;padding-right:60px; }
.address-card p { color:#666;font-size:13px;line-height:1.55;margin:2px 0; }
.address-default-badge { position:absolute;top:14px;right:14px;background:#fff0e6;color:var(--orange);font-size:11px;font-weight:700;padding:4px 8px;border-radius:20px; }
.address-card-actions { display:flex;gap:8px;margin-top:16px; }
.address-empty { grid-column:1/-1;background:#fff;border:1px solid var(--gray2);border-radius:12px; }
.address-location-row { display:flex;align-items:center;justify-content:space-between;gap:16px;background:#f8f9fa;border-radius:8px;padding:12px;margin:14px 0 18px; }
.address-default-check { display:flex!important;align-items:center;gap:8px;margin:18px 0;color:#555!important;font-weight:500!important; }
.address-default-check input { width:auto!important; }
@media (max-width: 768px) {
  .address-grid { grid-template-columns:1fr; }
  .address-page-head,.address-location-row { align-items:flex-start;flex-direction:column; }
}

/* ============================================
   RESPONSIVE — 480px (small phones)
   ============================================ */
@media (max-width: 480px) {
  .section-header h2 { font-size: 18px; }
  .see-all { font-size: 12px; }
  .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .cat-card { min-height: 124px; gap: 10px; }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .footer-grid   { grid-template-columns: 1fr; }
  .stat-cards    { grid-template-columns: 1fr 1fr; gap: 8px; }
  .flash-banner  { flex-wrap: wrap; gap: 10px; }
  .flash-banner h3 { font-size: 18px; }
  .count-box .num { font-size: 18px; }
  .product-card .product-name { font-size: 12px; }
}

/* Trust badges grid */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
/* Full-width layout: center each badge's content on desktop */
@media (min-width: 769px) {
  .trust-grid > div { justify-content: center; }
}
@media (max-width: 768px) {
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 400px) {
  .trust-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
}

/* Admin inner content padding */
.admin-inner {
  padding: 20px 24px;
}
@media (max-width: 768px) {
  .admin-inner { padding: 14px; }
  /* Fix stat cards: always 2 columns, never overflow */
  .stat-cards {
    grid-template-columns: 1fr 1fr !important;
    gap: 10px;
  }
  /* Admin cards scroll properly */
  .admin-card { border-radius: 10px; }
  /* Orders table scroll */
  .admin-card div[style*="overflow-x"] { -webkit-overflow-scrolling: touch; }
  /* Admin header fits mobile */
  .admin-header { margin-bottom: 16px; }
  .admin-header h1 { font-size: 20px; }
  .new-order-notice { align-items: flex-start; flex-wrap: wrap; padding: 13px 14px; gap: 10px; }
  .new-order-notice .btn { margin-left: 32px; }
  .analytics-filter-option span,
  .analytics-custom-dates input {
    min-height: 32px;
  }
  .analytics-custom-dates label {
    flex: 1 1 130px;
  }
  .analytics-custom-dates input {
    max-width: none;
    width: 100%;
  }
}

/* Fix header search bar — keep on second row, not displaced */
@media (max-width: 768px) {
  .header .container {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    gap: 8px;
    align-items: center;
  }
  .header-logo { grid-column: 1; grid-row: 1; }
  .header-actions { grid-column: 2; grid-row: 1; }
  .search-bar {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
  }
}

/* ============================================
   PRODUCT GALLERY — DESKTOP (left thumbs + right slider)
   ============================================ */

/* Shell: 2-column grid — thumb rail | main slider */
.product-gallery-shell {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}
.product-gallery-shell.single-media { display: block; }

/* ── Thumbnail rail (left column, vertical) ── */
.product-thumb-rail {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 600px;
  overflow-y: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}
.product-thumb-rail .thumb {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 2px solid #e0e0e0;
  background: #fff;
  overflow: hidden;
  padding: 1px;
  cursor: pointer;
  transition: border-color .2s;
  position: relative;
}
.product-thumb-rail .thumb:hover,
.product-thumb-rail .thumb.active { border-color: #FF6B00; }
.product-thumb-rail .thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 7px;
  display: block;
}
.product-show-more-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  border-color: #cfd6d8 !important;
  color: #222;
  background: #f7f9f9 !important;
  text-align: center;
}
.product-show-more-thumb:hover { border-color: #FF6B00 !important; }
.product-show-more-thumb span {
  font-size: 11px;
  line-height: 1;
  font-weight: 800;
}

/* ── Video thumb ── */
.product-video-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}
.product-video-thumb video,
.product-video-only video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #111;
  border-radius: 8px;
  display: block;
}
.product-video-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.28);
  border-radius: 8px;
}
.product-video-thumb .video-play-mark,
.product-video-only span {
  position: absolute;
  z-index: 2;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.85);
  background: rgba(0,0,0,.32);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}
.product-video-thumb .video-play-mark {
  width: 16px;
  height: 16px;
  border-width: 1px;
  font-size: 7px;
}

/* ── Main slider (right column) ── */
.product-slider-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
  touch-action: pan-y;
}
/* Slides container: each child slide is exactly one gallery width. */
.product-slides {
  display: flex;
  flex-wrap: nowrap;
  width: 100%;
  height: 100%;
  transition: transform .35s cubic-bezier(.4,0,.2,1);
  will-change: transform;
}
/* Each slide: one full gallery panel, moved by JS or native mobile scroll. */
.product-slide {
  flex: 0 0 100%;
  width: 100%;
  min-width: 100%;
  height: 100%;
  overflow: hidden;
  flex-shrink: 0;
}
.product-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
  display: block;
}
.product-video-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
}
.product-video-slide video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
  display: block;
}
.product-slide-button {
  border: 0;
  padding: 0;
  background: transparent;
  cursor: zoom-in;
  display: block;
  width: 100%;
  height: 100%;
}

/* ── Inline zoom controls (+/-) on the main slider ── */
.product-zoom-controls {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.product-zoom-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.85);
  background: rgba(0,0,0,.6);
  color: #fff;
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,.3);
  transition: background .15s, border-color .15s;
}
.product-zoom-btn:hover:not(:disabled) { background: #FF6B00; border-color: #FF6B00; }
.product-zoom-btn:disabled { opacity: .4; cursor: not-allowed; }

/* "Click to see full view" — desktop only, below slider */
.product-fullview-hint {
  grid-column: 2;
  justify-self: center;
  border: 0;
  background: transparent;
  margin: 10px 0 0;
  padding: 0;
  text-align: center;
  color: #23629f;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: block;
}

/* Arrow buttons (hidden — swipe/click on thumbs instead) */
.product-slider-arrow { display: none !important; }

/* Video-only product */
.product-video-only {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border: 0;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  cursor: pointer;
}
.product-video-only strong {
  position: absolute;
  left: 0; right: 0; bottom: 16px;
  color: #fff;
  font-size: 13px;
  letter-spacing: .04em;
  text-align: center;
}

.product-brand-lockup {
  margin-bottom: 10px;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
}
.product-brand-lockup img {
  max-width: 130px;
  max-height: 46px;
  object-fit: contain;
  display: block;
}
.product-brand-lockup span {
  font-size: 12px;
  color: #FF6B00;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.product-media-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.72);
  padding: 22px;
}
.product-media-modal.open { display: flex; }
.product-media-box {
  position: relative;
  z-index: 1;
  width: min(1180px, 100%);
  max-height: min(88vh, 820px);
  background: #fff;
  border-radius: 8px;
  padding: 30px 46px 36px;
  overflow: auto;
  box-shadow: 0 16px 55px rgba(0,0,0,.28);
}
.product-media-tabs {
  display: flex;
  gap: 22px;
  border-bottom: 2px solid #e6e6e6;
  margin-bottom: 20px;
}
.product-media-tabs button {
  border: 0;
  background: transparent;
  color: #697174;
  padding: 0 28px 14px;
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
  border-bottom: 3px solid transparent;
}
.product-media-tabs button.active {
  color: #003946;
  border-bottom-color: #007385;
}
.product-media-tabs button:disabled { opacity: .35; cursor: not-allowed; }
.product-media-view {
  display: grid;
  grid-template-columns: minmax(0,1fr) 410px;
  gap: 34px;
  align-items: start;
}
.product-media-image-stage {
  position: relative;
  min-height: min(62vh, 620px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow: hidden;
}
.product-media-image-stage img {
  max-width: 100%;
  max-height: min(62vh, 620px);
  object-fit: contain;
  display: block;
  transition: transform .15s ease-out;
}
.product-media-image-stage.zoomed img { cursor: zoom-out; }
.product-media-main video {
  width: 100%;
  height: min(50vw, 560px);
  max-height: 560px;
  object-fit: contain;
  background: #000;
  display: block;
  border-radius: 4px;
}
.product-media-helpful {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #f4eeee;
  padding: 12px 18px;
  font-size: 17px;
}
.product-media-helpful .fa-share-from-square { margin-left: auto; font-size: 22px; color: #111; }
.product-media-main h2 { font-size: 22px; line-height: 1.25; margin: 20px 10px 10px; }
.product-media-main p { margin: 0 10px; color: #333; font-weight: 700; }
.product-media-side {
  min-width: 0;
}
.product-media-side h2 {
  font-size: 21px;
  line-height: 1.25;
  margin: 14px 0 18px;
}
.product-media-side p { color: #777; font-weight: 700; margin-bottom: 22px; }
.product-media-side h3 {
  background: #f1f2f2;
  border-radius: 4px;
  padding: 16px 18px;
  font-size: 20px;
  margin-bottom: 16px;
}
.product-media-zoom {
  display: flex;
  flex-direction: row;
  gap: 12px;
  float: none;
  margin: 0 0 16px;
}
.product-media-zoom button {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 1px solid #bfc6c8;
  background: #f7f9f9;
  font-size: 21px;
  color: #111;
}
.product-media-image-thumbs {
  clear: both;
  display: grid;
  grid-template-columns: repeat(4, 64px);
  gap: 14px;
}
.product-media-image-thumbs button {
  width: 64px;
  height: 64px;
  border: 2px solid #d9dedf;
  background: #fff;
  padding: 0;
  cursor: pointer;
}
.product-media-image-thumbs button.active { border-color: #007385; }
.product-media-image-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-media-video-item {
  display: grid;
  grid-template-columns: 150px minmax(0,1fr);
  gap: 12px;
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  padding: 8px 4px;
  cursor: pointer;
}
.product-media-video-item span {
  position: relative;
  height: 78px;
  border: 2px solid transparent;
  border-radius: 6px;
  overflow: hidden;
  background: #111;
  grid-row: span 2;
}
.product-media-video-item.active span { border-color: #ff6b00; }
.product-media-video-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.product-media-video-item b {
  position: absolute;
  right: 6px;
  bottom: 5px;
  color: #fff;
  font-size: 11px;
  text-shadow: 0 1px 3px #000;
}
.product-media-video-item strong {
  font-size: 15px;
  line-height: 1.3;
  color: #222;
}
.product-media-video-item em {
  font-style: normal;
  font-size: 13px;
  color: #222;
  font-weight: 700;
}
.product-media-close {
  position: fixed;
  top: 20px;
  right: 24px;
  z-index: 100000;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: #111;
  color: #fff;
  cursor: pointer;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0,0,0,.35);
  transition: background .2s;
}
.product-media-close:hover { background: #333; }
.product-media-helpful {
  display: flex;
  align-items: center;
  gap: 14px;
  background: transparent;
  padding: 14px 10px 0;
}
.product-media-share {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #cfd6d8;
  background: #f7f9f9;
  color: #111;
  font-size: 15px;
  font-weight: 700;
  padding: 9px 18px;
  border-radius: 6px;
  cursor: pointer;
  transition: background .2s, border-color .2s;
}
.product-media-share:hover { background: #eef2f2; border-color: #007385; }
.product-description-video {
  width: min(100%, 1100px);
  height: clamp(230px, 44vw, 520px);
  margin: 0 auto 24px;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.product-description-video video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
  display: block;
}

/* Mobile product gallery: full-width, consistent height, no image cropping. */
/* [mobile gallery block replaced] */

/* Admin mobile: stack grid columns */
@media (max-width: 768px) {
  /* All 2-col admin grids become 1-col */
  .admin-inner > div[style*="grid-template-columns: 1fr 3"] {
    display: flex !important;
    flex-direction: column !important;
  }
  .admin-inner > div[style*="grid-template-columns:1fr 3"] {
    display: flex !important;
    flex-direction: column !important;
  }
}

/* ============================================
   ADMIN TWO-COL → SINGLE COL ON MOBILE
   ============================================ */
@media (max-width: 768px) {
  .admin-two-col {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
  }
  .admin-inner .form-row {
    grid-template-columns: 1fr !important;
  }
  /* Ensure tables scroll */
  .admin-card { overflow-x: auto; }
  .data-table  { min-width: 480px; }
  .responsive-admin-table { min-width:0!important; }
}

/* ============================================
   FIX 1: AED CURRENCY SYMBOL IMAGE
   ============================================ */
.aed-sym {
  display: inline-block;
  height: 0.85em;
  width: auto;
  vertical-align: middle;
  position: relative;
  top: -0.08em;
  margin-right: 1px;
  /* Invert to match text color in dark contexts */
  filter: invert(0);
}
/* Dark/price contexts — match surrounding text */
.price-current .aed-sym,
.main-price .aed-sym { filter: none; }
.price-original .aed-sym { opacity: 0.55; }

/* [FIX2 replaced] */

/* ============================================
   FIX 6: PRODUCT CARD HOVER — ZOOM & HIDE WISHLIST
   ============================================ */
.product-img-wrap img {
  transition: transform .4s cubic-bezier(.25,.46,.45,.94);
}
.product-card:hover .product-img-wrap img {
  transform: scale(1.08);
}
/* Wishlist always visible — never hidden on hover */
.wishlist-btn {
  transition: color .2s, border-color .2s, background .2s;
}

/* ============================================
   RICH TEXT EDITOR (FIX 5) — WYSIWYG Toolbar
   ============================================ */
.rich-editor-wrap {
  border: 1px solid #dfe3e8;
  border-radius: 10px;
  overflow: hidden;
  background:#fff;
  box-shadow:0 2px 10px rgba(30,40,55,.04);
}
.rich-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 9px;
  background: #f7f8fa;
  border-bottom: 1px solid #dfe3e8;
}
.rich-toolbar button {
  background: #fff;
  border: 1px solid #dfe3e8;
  border-radius: 6px;
  padding: 6px 8px;
  font-size: 13px;
  cursor: pointer;
  color: #444;
  transition: all .15s;
  line-height: 1.4;
}
.rich-toolbar button:hover { background: #fff3eb; border-color: #ffb37d; color:#d65300; }
.rich-toolbar button.active { background: #FF6B00; color: #fff; border-color: #FF6B00; }
.rich-toolbar .rich-sep { width: 1px; background: #ddd; margin: 2px 4px; align-self: stretch; }
.rich-toolbar select {
  border: 1px solid #dfe3e8; border-radius: 6px;
  padding: 6px 9px; font-size: 12px; background: #fff;
  cursor: pointer; color: #444;
}
[contenteditable].rich-content {
  min-height: 260px;
  padding: 18px;
  outline: none;
  font-size: 14px;
  line-height: 1.8;
  color: #333;
}
[contenteditable].rich-content h2 { font-size: 20px; font-weight: 700; margin: 16px 0 8px; color: #1a1a1a; }
[contenteditable].rich-content h3 { font-size: 17px; font-weight: 700; margin: 14px 0 6px; color: #1a1a1a; }
[contenteditable].rich-content h4 { font-size: 15px; font-weight: 600; margin: 12px 0 4px; }
[contenteditable].rich-content p  { margin: 0 0 10px; }
[contenteditable].rich-content ul,
[contenteditable].rich-content ol { padding-left: 22px; margin: 0 0 10px; }
[contenteditable].rich-content li { margin-bottom: 4px; }
[contenteditable].rich-content a  { color: #FF6B00; }
[contenteditable].rich-content table { width: 100%; border-collapse: collapse; margin: 12px 0; }
[contenteditable].rich-content td,
[contenteditable].rich-content th { border: 1px solid #ddd; padding: 6px 10px; font-size: 13px; }
[contenteditable].rich-content th { background: #f5f5f5; font-weight: 700; }
[contenteditable].rich-content img { max-width: 100%; border-radius: 6px; margin: 8px 0; }
[contenteditable].rich-content blockquote {
  border-left: 3px solid #FF6B00; margin: 12px 0;
  padding: 8px 14px; background: #fff9f6; color: #555; font-style: italic;
}

/* ============================================
   BULK EDIT VARIATIONS (FIX 3)
   ============================================ */
.bulk-edit-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 10px;
  padding: 14px;
  background: linear-gradient(135deg,#fff9f5,#fff);
  border: 1px solid #ffd8bc;
  border-radius: 10px;
  margin: 14px 0;
  max-width: 100%;
  min-width: 0;
}
.bulk-edit-bar > * { min-width: 0; flex: 1 1 160px; }
.bulk-edit-bar label { flex: 1 1 220px; font-size: 13px; font-weight: 700; color: #d65300; align-self:center; overflow-wrap:anywhere; }
.bulk-edit-bar input[type=number],.bulk-edit-bar select { width:100%;height:40px;padding:8px 10px;border:1px solid #ddd;border-radius:7px;font-size:13px;background:#fff; }
.bulk-edit-bar .btn-bulk { min-height:40px;background:#FF6B00;color:#fff;border:none;padding:8px 12px;border-radius:7px;font-size:13px;cursor:pointer;font-weight:700;white-space:normal;line-height:1.2; }
.bulk-edit-bar .btn-bulk:hover { background: #e05500; }
@media(max-width:900px){
  .bulk-edit-bar > * { flex-basis: calc(50% - 10px); }
  .bulk-edit-bar label { flex-basis: 100%; }
}
@media(max-width:560px){
  .bulk-edit-bar > * { flex-basis: 100%; }
  .bulk-edit-bar label { flex-basis: 100%; }
}

.product-about { margin:14px 0 18px;padding:16px 18px;background:#fff;border:1px solid #ececec;border-radius:10px; }
.product-about h2 { font-size:17px;margin:0 0 10px; }
.product-about ul { list-style:none;padding:0;margin:0;display:grid;gap:8px; }
.product-about li { position:relative;padding-left:22px;color:#444;font-size:14px;line-height:1.55; }
.product-about li::before { content:"";position:absolute;left:2px;top:.55em;width:8px;height:8px;border-radius:50%;background:#FF6B00;box-shadow:0 0 0 4px #fff0e5; }
.product-group-buy {
  margin-top: 28px;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}
.product-group-buy-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  background: #fbfbfb;
  border-bottom: 1px solid #e8e8e8;
}
.product-group-buy-head span {
  color: #d65300;
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.product-group-buy-head h2 {
  font-size: 19px;
  line-height: 1.25;
  margin: 3px 0 0;
}
.product-group-buy-total {
  text-align: right;
  white-space: nowrap;
}
.product-group-buy-total small {
  color: var(--gray3);
  display: block;
  font-size: 12px;
}
.product-group-buy-total strong {
  color: var(--orange);
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  font-size: 20px;
  margin-top: 2px;
}
.product-group-buy-list {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(260px,1fr));
  gap: 0;
}
.product-group-buy-item {
  display: grid;
  grid-template-columns: 34px 74px minmax(0,1fr);
  gap: 12px;
  align-items: center;
  min-width: 0;
  padding: 16px;
  border-right: 1px solid #f0f0f0;
  border-bottom: 1px solid #f0f0f0;
}
.product-group-buy-item.current { background: #fffaf6; }
.product-group-check {
  width: 28px;
  height: 28px;
  cursor: pointer;
}
.product-group-check input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.product-group-check span {
  width: 28px;
  height: 28px;
  border: 2px solid #d4d7da;
  border-radius: 50%;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: .18s ease;
}
.product-group-check input:checked + span {
  background: var(--orange);
  border-color: var(--orange);
}
.product-group-check input:disabled + span {
  background: #f1f1f1;
  border-color: #e0e0e0;
  color: #bbb;
  cursor: not-allowed;
}
.product-group-buy-image {
  width: 74px;
  height: 74px;
  border: 1px solid #ececec;
  border-radius: 8px;
  background: #f7f7f7;
  color: #bbb;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.product-group-buy-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-group-buy-info {
  min-width: 0;
}
.product-group-buy-info > a {
  color: var(--dark);
  display: block;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.35;
}
.product-group-buy-info > a:hover { color: var(--orange); }
.product-group-buy-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}
.product-group-buy-meta strong {
  color: var(--orange);
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 13px;
}
.product-group-buy-meta span {
  color: var(--gray3);
  font-size: 11px;
  font-weight: 700;
}
.product-group-buy-meta .unavailable { color: var(--danger); }
.product-group-buy-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 20px;
}
.product-group-buy-actions .btn {
  flex: 0 0 auto;
}
.product-group-buy-actions small {
  color: var(--gray3);
  font-size: 12px;
  line-height: 1.5;
  text-align: right;
}
.product-content-tabs { width:100%;max-width:1200px;margin:34px auto 0;border:1px solid #e8e8e8;border-radius:12px;background:#fff;overflow:hidden; }
.product-tab-list { display:flex;gap:0;border-bottom:1px solid #e8e8e8;background:#fafafa; }
.product-tab-button { border:0;background:transparent;padding:15px 22px;font-size:15px;font-weight:750;color:#777;cursor:pointer;border-bottom:3px solid transparent; }
.product-tab-button.active { color:#d65300;background:#fff;border-bottom-color:#FF6B00; }
.product-tab-panel { display:none;padding:22px; }
.product-tab-panel.active { display:block; }
.product-reviews-layout {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}
.product-review-overview {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.review-score-box {
  border-bottom: 1px solid #ececec;
  padding-bottom: 16px;
}
.review-score-box strong {
  display: block;
  font-size: 42px;
  line-height: 1;
  color: var(--dark);
  margin-bottom: 8px;
}
.review-score-box .stars { font-size: 18px; margin-bottom: 5px; }
.review-score-box span { color: var(--gray3); font-size: 13px; }
.review-bars {
  display: grid;
  gap: 8px;
}
.review-bar-row {
  display: grid;
  grid-template-columns: 48px minmax(0,1fr) 26px;
  align-items: center;
  gap: 8px;
  color: var(--text2);
  font-size: 12px;
}
.review-bar-row div {
  height: 7px;
  background: #edf0f1;
  border-radius: 999px;
  overflow: hidden;
}
.review-bar-row b {
  display: block;
  height: 100%;
  background: #f5a623;
  border-radius: inherit;
}
.review-bar-row em {
  color: var(--gray3);
  font-style: normal;
  text-align: right;
}
.product-review-form {
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  padding: 16px;
  background: #fbfbfb;
}
.product-review-form h3 {
  font-size: 17px;
  margin-bottom: 12px;
}
.product-review-form .btn {
  width: 100%;
  justify-content: center;
}
.product-review-form small {
  display: block;
  margin-top: 9px;
  color: var(--gray3);
  font-size: 12px;
  text-align: center;
}
.review-signed-in {
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 6px;
  color: var(--text2);
  font-size: 13px;
  margin-bottom: 12px;
  padding: 10px 12px;
}
.review-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.review-rating-field {
  border: 0;
  margin: 0 0 12px;
  padding: 0;
}
.review-rating-field legend {
  color: var(--text2);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 4px;
}
.review-rating-choice {
  display: inline-flex;
  flex-direction: row-reverse;
  gap: 3px;
}
.review-rating-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.review-rating-choice label {
  color: #cfd3d6;
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
  transition: color .15s ease;
}
.review-rating-choice input:checked ~ label,
.review-rating-choice label:hover,
.review-rating-choice label:hover ~ label {
  color: #f5a623;
}
.customer-review-list {
  display: grid;
  gap: 14px;
}
.customer-review-card {
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  padding: 16px;
  background: #fff;
}
.customer-review-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.customer-review-person {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.customer-review-person > span {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #eef6f4;
  color: #176657;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  flex-shrink: 0;
}
.customer-review-person strong {
  display: block;
  font-size: 14px;
  line-height: 1.25;
}
.customer-review-person time {
  color: var(--gray3);
  display: block;
  font-size: 12px;
  margin-top: 2px;
}
.customer-review-stars {
  color: #f5a623;
  font-size: 14px;
  letter-spacing: 1px;
  white-space: nowrap;
}
.customer-review-meta {
  min-height: 20px;
  margin-bottom: 4px;
}
.customer-review-meta span {
  color: var(--success);
  font-size: 12px;
  font-weight: 700;
}
.customer-review-card h3 {
  font-size: 15px;
  margin: 0 0 5px;
}
.customer-review-card p {
  color: var(--text2);
  font-size: 13px;
  line-height: 1.7;
}
.reviews-empty-state {
  border: 1px dashed #d8d8d8;
  border-radius: 8px;
  color: var(--gray3);
  padding: 46px 18px;
  text-align: center;
}
.reviews-empty-state i {
  color: #c2c7ca;
  font-size: 42px;
  margin-bottom: 12px;
}
.reviews-empty-state h3 {
  color: var(--dark);
  font-size: 18px;
  margin-bottom: 4px;
}
.reviews-empty-state p {
  margin: 0;
}

/* ============================================
   FIX 5: RICH CONTENT DISPLAY (Frontend)
   ============================================ */
.product-rich-desc h2,
.blog-rich-content h2 { font-size: 20px; font-weight: 700; margin: 18px 0 8px; color: #1a1a1a; }
.product-rich-desc h3,
.blog-rich-content h3 { font-size: 17px; font-weight: 700; margin: 14px 0 6px; color: #1a1a1a; }
.product-rich-desc h4,
.blog-rich-content h4 { font-size: 15px; font-weight: 600; margin: 12px 0 4px; }
.product-rich-desc p,
.blog-rich-content p  { margin: 0 0 10px; }
.product-rich-desc ul,
.product-rich-desc ol,
.blog-rich-content ul,
.blog-rich-content ol { padding-left: 22px; margin: 0 0 10px; }
.product-rich-desc li,
.blog-rich-content li { margin-bottom: 4px; }
.product-rich-desc a,
.blog-rich-content a  { color: #FF6B00; }
.product-rich-desc table,
.blog-rich-content table { width: 100%; border-collapse: collapse; margin: 14px 0; }
.product-rich-desc td,
.product-rich-desc th,
.blog-rich-content td,
.blog-rich-content th { border: 1px solid #ddd; padding: 7px 10px; font-size: 13px; }
.product-rich-desc th,
.blog-rich-content th { background: #f5f5f5; font-weight: 700; }
.product-rich-desc img,
.blog-rich-content img { max-width: 100%; border-radius: 8px; margin: 8px 0; }
.product-rich-desc blockquote,
.blog-rich-content blockquote {
  border-left: 3px solid #FF6B00; margin: 14px 0;
  padding: 10px 16px; background: #fff9f6; color: #555; font-style: italic;
}

/* ============================================
   MOBILE PRODUCT GALLERY & PAGE — FINAL
   ============================================ */
@media (max-width: 768px) {

  /* ── Gallery: stack vertically (image above thumbs) ── */
  .product-gallery {
    position: static;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }
  .product-detail {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  .product-gallery-shell {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }

  /* Order: main image first, thumb rail second */
  .product-gallery-shell .product-slider-wrap { order: 1; }
  .product-thumb-rail                          { order: 2; }
  .product-fullview-hint                       { display: none !important; }

  /* ── Main image: perfect square, full image always visible ── */
  .product-slider-wrap {
    position: relative !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    aspect-ratio: 1 / 1 !important;
    height: auto !important;
    padding-bottom: 0 !important;
    border: 1px solid #e8e8e8 !important;
    border-radius: 12px !important;
    background: #fff !important;
    overflow: hidden !important;
    touch-action: pan-x pan-y !important;
  }

  /* Slides container = native horizontal scroll-snap carousel */
  .product-slides {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    min-width: 100% !important;
    max-width: none !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x mandatory !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    transform: none !important;   /* ignore desktop translateX on mobile */
    touch-action: pan-x pan-y !important;
  }
  .product-slides::-webkit-scrollbar { display: none !important; }

  /* Each slide: exactly one viewport-wide square panel */
  .product-slide,
  .product-slide-button {
    flex: 0 0 100% !important;
    width: 100% !important;
    min-width: 100% !important;
    max-width: none !important;
    height: 100% !important;
    overflow: hidden !important;
    background: #fff !important;
    scroll-snap-align: start !important;
    scroll-snap-stop: always !important;
  }
  .product-slide img,
  .product-video-slide video {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: contain !important;
    object-position: center !important;
    display: block !important;
  }
  .product-slide img {
    background: #fff !important;
  }
  .product-video-slide,
  .product-video-slide video { background: #000 !important; }

  /* ── Thumbnail rail: horizontal scroll ── */
  .product-thumb-rail {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    gap: 8px !important;
    padding: 10px 0 4px !important;
    margin-top: 10px !important;
    max-height: none !important;
  }
  .product-thumb-rail::-webkit-scrollbar { display: none !important; }

  .product-thumb-rail .thumb {
    flex: 0 0 68px !important;
    width: 68px !important;
    height: 68px !important;
    border-radius: 10px !important;
    border: 2px solid #e0e0e0 !important;
    background: #fff !important;
    overflow: hidden !important;
    padding: 2px !important;
    cursor: pointer !important;
  }
  .product-thumb-rail .thumb.active { border-color: #FF6B00 !important; }
  .product-thumb-rail .thumb img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    border-radius: 7px !important;
    display: block !important;
  }

  /* ── Media modal: full-screen ── */
  .product-media-modal {
    padding: 0 !important;
    background: rgba(0,0,0,.9) !important;
    align-items: stretch !important;
    justify-content: stretch !important;
  }
  .product-media-box {
    position: relative !important;
    width: 100% !important;
    height: 100% !important;
    max-height: 100% !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: #fff !important;
    padding: 0 !important;
    overflow-y: auto !important;
    display: flex !important;
    flex-direction: column !important;
  }

  /* Close X — fixed top-right circle */
  .product-media-close {
    position: fixed !important;
    top: 10px !important;
    right: 12px !important;
    z-index: 9999 !important;
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    background: rgba(0,0,0,.72) !important;
    color: #fff !important;
    border: none !important;
    font-size: 18px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
  }

  /* VIDEOS / IMAGES tabs — sticky */
  .product-media-tabs {
    display: flex !important;
    flex-direction: row !important;
    gap: 0 !important;
    border-bottom: 2px solid #e0e0e0 !important;
    background: #fff !important;
    padding: 0 16px !important;
    margin-bottom: 0 !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 20 !important;
  }
  .product-media-tabs button {
    flex: 1 !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    letter-spacing: .05em !important;
    padding: 13px 0 !important;
    border: none !important;
    border-bottom: 3px solid transparent !important;
    background: transparent !important;
    color: #697174 !important;
    margin-bottom: -2px !important;
    cursor: pointer !important;
  }
  .product-media-tabs button.active {
    color: #003946 !important;
    border-bottom-color: #007385 !important;
  }
  .product-media-tabs button:disabled { opacity: .35; cursor: not-allowed; }

  /* View area */
  .product-media-view {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: unset !important;
    gap: 0 !important;
    align-items: unset !important;
  }

  /* Image stage */
  .product-media-image-stage {
    width: 100% !important;
    min-height: 60vw !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 16px !important;
    background: #fff !important;
  }
  .product-media-image-stage img {
    max-width: 100% !important;
    max-height: 72vw !important;
    object-fit: contain !important;
    display: block !important;
  }

  /* Side panel (name + thumbs) below image */
  .product-media-side {
    width: 100% !important;
    min-width: 0 !important;
    border-left: none !important;
    border-top: 1px solid #e8e8e8 !important;
    padding: 14px 16px 20px !important;
    background: #fff !important;
  }
  .product-media-side h2 {
    font-size: 15px !important;
    font-weight: 700 !important;
    margin: 0 0 4px !important;
    line-height: 1.3 !important;
  }
  .product-media-side p {
    font-size: 13px !important;
    color: #777 !important;
    margin-bottom: 14px !important;
  }
  .product-media-zoom { display: none !important; }

  /* Thumbnail strip inside modal */
  .product-media-image-thumbs {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    grid-template-columns: unset !important;
    clear: none !important;
  }
  .product-media-image-thumbs button {
    width: 60px !important;
    height: 60px !important;
    border: 2px solid #d0d0d0 !important;
    border-radius: 6px !important;
    background: #fafafa !important;
    padding: 2px !important;
    cursor: pointer !important;
    overflow: hidden !important;
  }
  .product-media-image-thumbs button.active {
    border-color: #007385 !important;
  }
  .product-media-image-thumbs img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    display: block !important;
  }

  /* Video modal */
  .product-media-main { padding: 0 !important; }
  .product-media-main video {
    width: 100% !important;
    height: auto !important;
    min-height: 50vw !important;
    max-height: 60vw !important;
    background: #000 !important;
  }
  .product-media-video-item { grid-template-columns: 96px minmax(0,1fr) !important; }
  .product-media-video-item span { height: 54px !important; }

  .product-description-video {
    height: clamp(200px, 60vw, 400px);
    margin-bottom: 16px;
  }

  /* ── Product info: About this item BELOW Add to Cart ── */
  .product-detail-info { display: flex; flex-direction: column; }
  .product-brand-lockup   { order: 1; }
  .product-detail-info h1 { order: 2; }
  .product-rating         { order: 3; }
  .price-block            { order: 4; }
  .variant-group          { order: 5; }
  .variation-reset        { order: 5; }
  #variationMessage       { order: 5; }
  .qty-row                { order: 6; }
  .action-row             { order: 7; }

  /* Action buttons: keep labels on one line, heart = compact square */
  .action-row {
    flex-wrap: nowrap !important;
    gap: 8px !important;
    align-items: stretch !important;
  }
  .action-row .btn-lg {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    padding: 13px 8px !important;
    font-size: 15px !important;
    white-space: nowrap !important;
  }
  .action-row .btn-lg i { margin-right: 2px; }
  .action-row .btn-outline {
    flex: 0 0 52px !important;
    width: 52px !important;
    min-width: 52px !important;
    padding: 0 !important;
    font-size: 18px !important;
  }
  .product-about          { order: 8; margin-top: 12px; }
  .delivery-info          { order: 9; }
  .product-detail-info > p { order: 10; }

  /* ── Tabs (Description / Reviews) ── */
  .product-group-buy { margin-top: 20px; border-radius: 10px; }
  .product-group-buy-head { align-items: flex-start; padding: 15px; }
  .product-group-buy-head h2 { font-size: 16px; }
  .product-group-buy-total strong { font-size: 17px; }
  .product-group-buy-list { grid-template-columns: 1fr; }
  .product-group-buy-item { grid-template-columns: 32px 66px minmax(0,1fr); padding: 13px; border-right: 0; }
  .product-group-buy-image { width: 66px; height: 66px; }
  .product-group-buy-actions { align-items: stretch; flex-direction: column; padding: 14px; }
  .product-group-buy-actions .btn { width: 100%; justify-content: center; }
  .product-group-buy-actions small { text-align: left; }
  .product-content-tabs { margin-top: 20px; }
  .product-tab-button { white-space: nowrap; padding: 12px 16px; font-size: 14px; }
  .product-tab-panel  { padding: 16px 14px; font-size: 14px; line-height: 1.65; }
  .product-reviews-layout { grid-template-columns: 1fr !important; gap: 18px !important; }
  .product-review-form { padding: 14px; }
  .customer-review-head { flex-direction: column; }
  .customer-review-stars { font-size: 13px; }
}
