/* ── EarnReturn – Amazon-Inspired Theme ─────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:wght@300;400;500;600;700&family=Noto+Serif:wght@700&display=swap');

:root {
  /* Core palette – Amazon-like */
  --navy:     #131921;
  --navy2:    #1d2636;
  --orange:   #f90;
  --orange2:  #fa8900;
  --orange3:  #e77600;
  --link:     #007185;
  --link-h:   #c7511f;
  --red-sale: #cc0c39;
  --green-ok: #007600;

  /* Surfaces */
  --bg:       #eaeded;
  --bg-white: #fff;
  --bg-card:  #fff;
  --bg-nav:   #131921;
  --bg-subnav:#232f3e;
  --bg-input: #fff;

  /* Text */
  --text:     #0f1111;
  --text-2:   #565959;
  --text-3:   #888c8c;
  --border:   #ddd;
  --border2:  #c8c8c8;

  /* Shadow */
  --shadow-sm: 0 2px 5px rgba(0,0,0,.09);
  --shadow:    0 2px 8px rgba(0,0,0,.14);
  --shadow-lg: 0 4px 16px rgba(0,0,0,.18);

  /* Layout */
  --max-w:    1500px;
  --pad:      max(12px, calc((100vw - var(--max-w)) / 2));
  --radius:   8px;
  --radius-sm:4px;

  /* Transitions */
  --t: .18s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Noto Sans', 'Amazon Ember', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
}
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

/* ══════════════════════════════════════════════════════
   TOP BANNER
══════════════════════════════════════════════════════ */
#top-banner {
  background: var(--navy2);
  color: #fff;
  text-align: center;
  padding: 8px 16px;
  font-size: 13px;
  position: relative;
  z-index: 100;
}
#top-banner .close-banner {
  position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  cursor: pointer; opacity: .6; font-size: 16px;
}
#top-banner .close-banner:hover { opacity: 1; }

/* ══════════════════════════════════════════════════════
   PRIMARY NAV
══════════════════════════════════════════════════════ */
nav.primary-nav {
  background: var(--bg-nav);
  padding: 0 var(--pad);
  height: 60px;
  display: flex;
  align-items: center;
  gap: 16px;
  position: sticky; top: 0; z-index: 90;
}

.nav-brand {
  font-family: 'Noto Serif', Georgia, serif;
  font-size: 20px; font-weight: 700;
  color: #fff;
  white-space: nowrap;
  padding: 4px 8px;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  transition: border-color var(--t);
}
.nav-brand:hover { border-color: #fff; }
.nav-brand .dot { color: var(--orange); }

/* Searchbar */
.nav-search {
  flex: 1;
  display: flex;
  border-radius: var(--radius-sm);
  overflow: hidden;
  max-width: 820px;
  height: 40px;
  border: 2px solid transparent;
  transition: border-color var(--t);
}
.nav-search:focus-within { border-color: var(--orange); }
.nav-search-cat {
  background: #e3e6e6;
  border: none; border-right: 1px solid var(--border2);
  padding: 0 10px;
  font-size: 12px; color: var(--text);
  cursor: pointer; white-space: nowrap;
  display: flex; align-items: center; gap: 4px;
}
.nav-search-cat:hover { background: #d5d9d9; }
.nav-search input {
  flex: 1;
  border: none; outline: none;
  padding: 0 12px;
  font-size: 15px; color: var(--text);
  background: var(--bg-white);
}
.nav-search-btn {
  background: var(--orange);
  border: none; cursor: pointer;
  padding: 0 14px;
  display: flex; align-items: center;
  transition: background var(--t);
}
.nav-search-btn:hover { background: var(--orange2); }
.nav-search-btn svg { color: var(--text); }

/* Nav actions */
.nav-actions {
  display: flex;
  align-items: stretch;
  gap: 4px;
  margin-left: auto;
  height: 100%;
}
.nav-action {
  display: flex; flex-direction: column; justify-content: center;
  padding: 4px 10px;
  color: #fff;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  white-space: nowrap;
  transition: border-color var(--t);
  min-width: 60px; text-align: center;
}
.nav-action:hover { border-color: #fff; }
.nav-action .line1 { font-size: 11px; color: #ccc; }
.nav-action .line2 { font-size: 13px; font-weight: 700; }
.nav-cart {
  display: flex; align-items: center; gap: 6px;
  padding: 4px 10px;
  color: #fff; font-weight: 700; font-size: 14px;
  border: 2px solid transparent; border-radius: var(--radius-sm);
  transition: border-color var(--t);
}
.nav-cart:hover { border-color: #fff; }
.cart-count {
  background: var(--orange);
  color: var(--text);
  font-size: 16px; font-weight: 700;
  line-height: 1;
}

/* ══════════════════════════════════════════════════════
   SUB NAV
══════════════════════════════════════════════════════ */
.sub-nav {
  background: var(--bg-subnav);
  padding: 0 var(--pad);
  display: flex; align-items: center;
  height: 38px; gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.sub-nav::-webkit-scrollbar { display: none; }
.sub-nav a {
  color: #fff; font-size: 13px; font-weight: 500;
  padding: 0 12px; height: 100%;
  display: flex; align-items: center;
  white-space: nowrap;
  border: 1px solid transparent; border-radius: var(--radius-sm);
  transition: border-color var(--t);
}
.sub-nav a:hover { border-color: #fff; }
.sub-nav a.highlight { color: var(--orange); font-weight: 700; }

/* ══════════════════════════════════════════════════════
   HERO BANNER
══════════════════════════════════════════════════════ */
.hero-banner {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #1a3a5c 0%, #0f2d4a 40%, #1a3c2c 100%);
  min-height: 340px;
  display: flex; align-items: center;
  padding: 40px var(--pad);
}
.hero-banner::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 80px;
  background: linear-gradient(to bottom, transparent, var(--bg));
  pointer-events: none;
}
.hero-content { position: relative; z-index: 1; max-width: 560px; }
.hero-badge {
  display: inline-block;
  background: var(--orange);
  color: var(--text);
  font-size: 11px; font-weight: 700;
  padding: 3px 10px; border-radius: 2px;
  text-transform: uppercase; letter-spacing: 1px;
  margin-bottom: 16px;
}
.hero-content h1 {
  font-family: 'Noto Serif', serif;
  font-size: clamp(26px, 4vw, 42px);
  color: #fff; line-height: 1.2;
  margin-bottom: 12px;
}
.hero-content p { color: rgba(255,255,255,.8); font-size: 16px; margin-bottom: 24px; }
.hero-search-bar {
  display: flex;
  background: #fff;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  max-width: 520px;
}
.hero-search-bar input {
  flex: 1; border: none; outline: none;
  padding: 12px 16px; font-size: 15px; color: var(--text);
}
.hero-search-bar button {
  background: var(--orange); border: none; cursor: pointer;
  padding: 12px 20px; font-size: 14px; font-weight: 700;
  color: var(--text); transition: background var(--t);
  display: flex; align-items: center; gap: 6px;
}
.hero-search-bar button:hover { background: var(--orange2); }

/* ══════════════════════════════════════════════════════
   CASHBACK HIGHLIGHT STRIP
══════════════════════════════════════════════════════ */
.cashback-strip {
  background: linear-gradient(90deg, #f0c14b, #f90, #f0c14b);
  background-size: 200% 100%;
  animation: strip-shift 4s ease infinite;
  padding: 10px var(--pad);
  display: flex; align-items: center; justify-content: center;
  gap: 32px; flex-wrap: wrap;
}
@keyframes strip-shift { 0%,100%{background-position:0%} 50%{background-position:100%} }
.strip-item { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: #111; }
.strip-icon { font-size: 18px; }

/* ══════════════════════════════════════════════════════
   LAYOUT WRAPPER
══════════════════════════════════════════════════════ */
.page-wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* ══════════════════════════════════════════════════════
   SECTION HEADINGS
══════════════════════════════════════════════════════ */
.section-box {
  background: var(--bg-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 18px 20px;
  margin-bottom: 20px;
}
.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 16px; padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.section-head h2 {
  font-family: 'Noto Serif', serif;
  font-size: 20px; font-weight: 700;
  color: var(--text);
}
.section-head .see-all {
  color: var(--link); font-size: 13px;
  transition: color var(--t);
}
.section-head .see-all:hover { color: var(--link-h); text-decoration: underline; }

/* ══════════════════════════════════════════════════════
   CATEGORY PILLS
══════════════════════════════════════════════════════ */
.cat-pills {
  display: flex; gap: 8px; flex-wrap: wrap;
  padding: 16px var(--pad);
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
}
.cat-pill {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 14px;
  background: var(--bg);
  border: 1px solid var(--border2);
  border-radius: 20px;
  color: var(--text); font-size: 13px; font-weight: 500;
  cursor: pointer; transition: all var(--t);
  white-space: nowrap;
}
.cat-pill:hover { background: #f0c14b33; border-color: var(--orange3); color: var(--link-h); }
.cat-pill.active { background: var(--orange); border-color: var(--orange3); color: var(--text); font-weight: 700; }

/* ══════════════════════════════════════════════════════
   PRODUCT GRID
══════════════════════════════════════════════════════ */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}
.product-grid.dense {
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}

/* ── Product Card ── */
.product-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: box-shadow var(--t), border-color var(--t), transform var(--t);
  position: relative;
  cursor: pointer;
}
.product-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--border2);
  transform: translateY(-2px);
  z-index: 2;
}
.card-badge-wrap {
  position: absolute; top: 8px; left: 8px;
  display: flex; flex-direction: column; gap: 4px; z-index: 1;
}
.card-badge {
  font-size: 11px; font-weight: 700;
  padding: 2px 8px; border-radius: 2px;
  display: inline-block;
}
.badge-cashback { background: var(--orange); color: #111; }
.badge-hot      { background: var(--red-sale); color: #fff; }
.badge-new      { background: var(--link); color: #fff; }

.card-img {
  aspect-ratio: 1;
  background: #f7f8f8;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  padding: 8px;
  position: relative;
}
.card-img img {
  width: 100%; height: 100%; object-fit: contain;
  transition: transform .4s var(--t);
}
.product-card:hover .card-img img { transform: scale(1.06); }

.card-body { padding: 10px 12px; flex: 1; display: flex; flex-direction: column; gap: 4px; }
.card-brand { font-size: 11px; color: var(--text-2); text-transform: uppercase; letter-spacing: .5px; }
.card-title {
  font-size: 13px; font-weight: 500; line-height: 1.4;
  color: var(--text);
  overflow: hidden;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.product-card:hover .card-title { color: var(--link); }

.card-stars { display: flex; align-items: center; gap: 4px; font-size: 11px; color: var(--text-2); }
.stars { color: #f90; letter-spacing: -1px; font-size: 13px; }
.card-price { font-size: 15px; font-weight: 700; color: var(--text); }
.card-price .orig { font-size: 12px; color: var(--text-3); text-decoration: line-through; font-weight: 400; }

.card-cashback-row {
  background: #fffbf0;
  border: 1px solid #f0c14b;
  border-radius: var(--radius-sm);
  padding: 5px 8px;
  display: flex; align-items: center; gap: 6px;
  font-size: 12px;
}
.cashback-icon { font-size: 14px; }
.cashback-text { font-weight: 700; color: var(--green-ok); }
.cashback-sub  { color: var(--text-2); }

.card-footer { padding: 8px 12px; border-top: 1px solid var(--border); }
.btn-buy-now {
  width: 100%;
  background: linear-gradient(to bottom, #f7dfa5, #f0c14b);
  border: 1px solid #a88734;
  border-radius: 3px;
  padding: 7px 12px;
  font-size: 13px; font-weight: 600; color: var(--text);
  cursor: pointer; transition: all var(--t);
  letter-spacing: .3px;
}
.btn-buy-now:hover {
  background: linear-gradient(to bottom, #f5d78e, #eeba35);
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.btn-add-cart {
  width: 100%;
  background: linear-gradient(to bottom, #f5f6f6, #e8e9e9);
  border: 1px solid #adb1b8;
  border-radius: 3px;
  padding: 7px 12px;
  font-size: 13px; font-weight: 500; color: var(--text);
  cursor: pointer; transition: all var(--t);
  margin-top: 6px;
}
.btn-add-cart:hover { background: linear-gradient(to bottom, #e8e9e9, #d8d9d9); }

/* ══════════════════════════════════════════════════════
   PRODUCT DETAIL PAGE
══════════════════════════════════════════════════════ */
.product-detail-layout {
  display: grid;
  grid-template-columns: 1fr 2fr 320px;
  gap: 20px;
  padding: 20px var(--pad);
  max-width: var(--max-w);
  margin: 0 auto;
  align-items: start;
}
@media(max-width:1100px){ .product-detail-layout{grid-template-columns:1fr 2fr; } .product-buy-box{grid-column:1/-1;max-width:400px;} }
@media(max-width:768px) { .product-detail-layout{grid-template-columns:1fr;} }

/* Gallery */
.gallery-col { position: sticky; top: 70px; }
.gallery-main-wrap {
  background: #f7f8f8;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden; aspect-ratio: 1;
  display: flex; align-items: center; justify-content: center;
  padding: 12px;
}
.gallery-main-wrap img,
.gallery-main-wrap video {
  max-width: 100%; max-height: 100%; object-fit: contain;
  border-radius: var(--radius-sm);
}
.gallery-thumbs { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.gallery-thumb {
  width: 54px; height: 54px;
  border: 2px solid var(--border); border-radius: var(--radius-sm);
  overflow: hidden; cursor: pointer;
  background: #f7f8f8;
  display: flex; align-items: center; justify-content: center;
  padding: 3px; transition: border-color var(--t);
}
.gallery-thumb:hover { border-color: var(--orange3); }
.gallery-thumb.active { border-color: var(--orange); }
.gallery-thumb img, .gallery-thumb video { width:100%;height:100%;object-fit:contain;pointer-events:none; }

/* Product info column */
.product-info-col { }
.breadcrumb-bar {
  font-size: 12px; color: var(--text-2);
  margin-bottom: 12px;
  display: flex; align-items: center; gap: 4px; flex-wrap: wrap;
}
.breadcrumb-bar a { color: var(--link); }
.breadcrumb-bar a:hover { color: var(--link-h); text-decoration: underline; }
.breadcrumb-bar span { color: var(--text-3); }

.product-title-h { font-size: clamp(18px,2.5vw,24px); font-weight: 500; line-height: 1.3; margin-bottom: 8px; }
.product-brand-link { font-size: 13px; color: var(--link); margin-bottom: 10px; }
.product-brand-link:hover { color: var(--link-h); text-decoration: underline; }

.product-rating-row { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.rating-stars { color: var(--orange3); font-size: 18px; letter-spacing: -2px; }
.rating-count { color: var(--link); font-size: 13px; }
.rating-count:hover { color: var(--link-h); text-decoration: underline; }

.product-price-section { margin-bottom: 16px; }
.price-big { font-size: 26px; font-weight: 400; }
.price-big .currency { font-size: 16px; vertical-align: super; }
.price-was { font-size: 13px; color: var(--text-2); margin-top: 2px; }
.price-was del { color: var(--text-3); }

/* Cashback highlight box */
.cashback-highlight {
  background: #fffdf0;
  border: 1px solid #f0c14b;
  border-left: 4px solid var(--orange);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-bottom: 16px;
}
.cashback-highlight .ch-label { font-size: 12px; color: var(--text-2); text-transform: uppercase; letter-spacing: .5px; }
.cashback-highlight .ch-amount { font-size: 28px; font-weight: 700; color: var(--green-ok); margin: 4px 0; }
.cashback-highlight .ch-note { font-size: 12px; color: var(--text-2); }
.cashback-highlight .ch-warning {
  background: #fff3cd; border: 1px solid #ffc107;
  border-radius: var(--radius-sm); padding: 8px 10px;
  font-size: 12px; color: #856404;
  display: flex; align-items: flex-start; gap: 6px;
  margin-top: 10px;
}

/* About / description */
.product-bullets { padding-left: 18px; }
.product-bullets li { margin-bottom: 6px; font-size: 14px; line-height: 1.5; }

/* Tabs */
.tabs-bar {
  display: flex; gap: 0;
  border-bottom: 2px solid var(--border);
  margin: 24px 0 0;
}
.tab-btn {
  padding: 10px 18px;
  background: none; border: none;
  font-size: 14px; font-weight: 500;
  color: var(--text-2); cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px; transition: color var(--t), border-color var(--t);
}
.tab-btn:hover { color: var(--link); }
.tab-btn.active { color: var(--text); border-bottom-color: var(--orange); }
.tab-pane { padding: 20px 0; display: none; }
.tab-pane.active { display: block; }

/* Specs table */
.specs-table { border-collapse: collapse; width: 100%; }
.specs-table tr:nth-child(odd)  td { background: #f7f8f8; }
.specs-table tr:nth-child(even) td { background: #fff; }
.specs-table td { padding: 10px 14px; font-size: 13px; border-bottom: 1px solid var(--border); }
.specs-table td:first-child { color: var(--text-2); width: 35%; font-weight: 500; }

/* FAQ */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%; text-align: left; background: none; border: none;
  padding: 14px 0; font-size: 14px; font-weight: 600; color: var(--text);
  cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq-q svg { transition: transform .2s; flex-shrink: 0; color: var(--text-2); }
.faq-item.open .faq-q svg { transform: rotate(180deg); }
.faq-a { padding: 0 0 14px; font-size: 13px; line-height: 1.65; color: var(--text-2); display: none; }
.faq-item.open .faq-a { display: block; }

/* Buy box (right column) */
.product-buy-box {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
}
.buy-box-price { font-size: 22px; font-weight: 400; margin-bottom: 6px; }
.buy-box-price .sym { font-size: 13px; vertical-align: super; }
.buy-box-stock { color: var(--green-ok); font-size: 16px; margin-bottom: 10px; }
.buy-box-cashback {
  background: #fffdf0; border: 1px solid #f0c14b;
  border-radius: var(--radius-sm); padding: 10px;
  margin-bottom: 14px; font-size: 13px;
}
.buy-box-cashback .bbc-earn { font-weight: 700; color: var(--green-ok); }
.timer-row {
  background: #fff3cd; border: 1px solid #ffc107;
  border-radius: var(--radius-sm); padding: 8px 10px;
  font-size: 12px; color: #856404;
  display: flex; align-items: center; gap: 6px;
  margin-bottom: 14px;
}
.btn-buy-lg {
  width: 100%;
  background: linear-gradient(to bottom, #f7dfa5, #f0c14b);
  border: 1px solid #a88734;
  border-radius: 20px;
  padding: 10px; font-size: 14px; font-weight: 700;
  color: var(--text); cursor: pointer; transition: all var(--t);
  margin-bottom: 8px;
}
.btn-buy-lg:hover { background: linear-gradient(to bottom, #f5d78e, #eeba35); box-shadow: 0 2px 5px rgba(0,0,0,.2); }
.btn-cart-lg {
  width: 100%;
  background: linear-gradient(to bottom, #f5f6f6, #e8e9e9);
  border: 1px solid #adb1b8; border-radius: 20px;
  padding: 10px; font-size: 14px; font-weight: 500;
  color: var(--text); cursor: pointer; transition: all var(--t);
}
.btn-cart-lg:hover { background: linear-gradient(to bottom, #e8e9e9, #d8d9d9); }

/* ══════════════════════════════════════════════════════
   SHOP PAGE LAYOUT
══════════════════════════════════════════════════════ */
.shop-layout {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 16px;
  padding: 16px var(--pad);
  max-width: var(--max-w);
  margin: 0 auto;
  align-items: start;
}
@media(max-width:800px){ .shop-layout{grid-template-columns:1fr;} .shop-sidebar{display:none;} }

.shop-sidebar {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  position: sticky; top: 70px;
}
.sidebar-section { margin-bottom: 20px; }
.sidebar-section h4 {
  font-size: 16px; font-weight: 700;
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px; margin-bottom: 12px;
}
.sidebar-section label {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--text); cursor: pointer;
  padding: 3px 0;
}
.sidebar-section label:hover { color: var(--link); }
.sidebar-section input[type=range] { width: 100%; accent-color: var(--orange); }
.sidebar-section .price-display { font-size: 12px; color: var(--text-2); margin-top: 4px; }

.shop-main { }
.shop-toolbar {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 14px;
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px; flex-wrap: wrap; gap: 8px;
}
.shop-results { font-size: 14px; color: var(--text-2); }
.shop-results strong { color: var(--text); }
.shop-sort { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.shop-sort select {
  border: 1px solid var(--border2); border-radius: var(--radius-sm);
  padding: 4px 10px; font-size: 13px; background: var(--bg-white); cursor: pointer;
}

/* ══════════════════════════════════════════════════════
   FORMS
══════════════════════════════════════════════════════ */
.form-wrap {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 32px;
  max-width: 620px; margin: 0 auto;
}
.form-wrap h2 { font-family: 'Noto Serif', serif; font-size: 22px; margin-bottom: 20px; }

.form-group { margin-bottom: 16px; }
.form-label {
  display: block; font-size: 13px; font-weight: 600;
  color: var(--text-2); margin-bottom: 5px;
}
.form-control {
  width: 100%;
  background: var(--bg-white);
  border: 1px solid var(--border2);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  font-size: 14px; color: var(--text); outline: none;
  font-family: inherit;
  transition: border-color var(--t), box-shadow var(--t);
}
.form-control:focus {
  border-color: #e77600;
  box-shadow: 0 0 0 3px rgba(231,118,0,.15);
}
textarea.form-control { resize: vertical; min-height: 90px; }
select.form-control { cursor: pointer; }

.upload-area {
  border: 2px dashed var(--border2); border-radius: var(--radius-sm);
  padding: 24px; text-align: center; cursor: pointer;
  transition: border-color var(--t), background var(--t);
}
.upload-area:hover { border-color: var(--orange3); background: #fffbf0; }
.upload-area input { display: none; }

.btn-submit {
  background: linear-gradient(to bottom, #f7dfa5, #f0c14b);
  border: 1px solid #a88734; border-radius: 3px;
  padding: 10px 24px; font-size: 14px; font-weight: 700;
  color: var(--text); cursor: pointer; transition: all var(--t);
  width: 100%;
}
.btn-submit:hover { background: linear-gradient(to bottom, #f5d78e, #eeba35); }

/* ══════════════════════════════════════════════════════
   ALERTS
══════════════════════════════════════════════════════ */
.alert {
  border-radius: var(--radius-sm); padding: 12px 16px;
  font-size: 14px; margin-bottom: 14px;
  display: flex; align-items: flex-start; gap: 8px;
}
.alert-success { background: #ddffdd; border: 1px solid #067606; color: #067606; }
.alert-error   { background: #fff0f0; border: 1px solid #c40000; color: #c40000; }
.alert-warning { background: #fff8e1; border: 1px solid #f9a825; color: #795548; }
.alert-info    { background: #e8f4fd; border: 1px solid #007185; color: #007185; }

/* ══════════════════════════════════════════════════════
   STATUS BADGES
══════════════════════════════════════════════════════ */
.status-badge {
  display: inline-block; padding: 2px 10px;
  border-radius: 20px; font-size: 12px; font-weight: 600;
  text-transform: capitalize;
}
.status-pending  { background: #fff3cd; color: #856404; border: 1px solid #ffc107; }
.status-review   { background: #cfe2ff; color: #084298; border: 1px solid #9ec5fe; }
.status-approved { background: #d1e7dd; color: #0a3622; border: 1px solid #75b798; }
.status-rejected { background: #f8d7da; color: #842029; border: 1px solid #f1aeb5; }
.status-paid     { background: #d4edda; color: #155724; border: 1px solid #28a745; }

/* ══════════════════════════════════════════════════════
   DASHBOARD
══════════════════════════════════════════════════════ */
.dashboard-wrap {
  display: grid; grid-template-columns: 240px 1fr;
  gap: 20px;
  padding: 20px var(--pad);
  max-width: var(--max-w); margin: 0 auto;
}
@media(max-width:800px){ .dashboard-wrap{grid-template-columns:1fr;} }

.dash-sidebar {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  position: sticky; top: 70px;
}
.dash-user-box {
  background: var(--bg-nav);
  padding: 20px; text-align: center; color: #fff;
}
.dash-avatar {
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--orange); margin: 0 auto 10px;
  overflow: hidden; display: flex; align-items: center; justify-content: center;
  font-size: 24px; font-weight: 700; color: var(--text);
}
.dash-avatar img { width:100%;height:100%;object-fit:cover; }
.dash-user-box h3 { font-size: 15px; margin-bottom: 2px; }
.dash-user-box p  { font-size: 12px; color: #aaa; }
.dash-nav { padding: 8px; }
.dash-nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: var(--radius-sm);
  color: var(--text); font-size: 14px;
  transition: background var(--t), color var(--t);
}
.dash-nav a:hover  { background: var(--bg); color: var(--link); }
.dash-nav a.active { background: #fff3cd; color: var(--orange3); font-weight: 600; }

.dash-main { }
.dash-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin-bottom: 20px; }
@media(max-width:600px){ .dash-stats{grid-template-columns:1fr 1fr;} }
.stat-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px;
}
.stat-card .stat-n { font-size: 28px; font-weight: 700; }
.stat-card .stat-l { font-size: 12px; color: var(--text-2); margin-top: 4px; text-transform: uppercase; letter-spacing: .5px; }
.stat-card.green .stat-n { color: var(--green-ok); }
.stat-card.orange .stat-n { color: var(--orange2); }

/* ══════════════════════════════════════════════════════
   TABLES
══════════════════════════════════════════════════════ */
.tbl-wrap { overflow-x: auto; }
table.data-tbl {
  width: 100%; border-collapse: collapse; font-size: 13px;
  background: var(--bg-white); border-radius: var(--radius); overflow: hidden;
}
.data-tbl thead th {
  background: #f7f8f8; padding: 10px 14px;
  text-align: left; font-weight: 700; font-size: 12px;
  color: var(--text-2); text-transform: uppercase; letter-spacing: .5px;
  border-bottom: 2px solid var(--border);
}
.data-tbl td { padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.data-tbl tbody tr:hover td { background: #f7f8f8; }
.data-tbl tbody tr:last-child td { border-bottom: none; }

/* ══════════════════════════════════════════════════════
   ADMIN
══════════════════════════════════════════════════════ */
.admin-wrap { display: flex; min-height: 100vh; background: var(--bg); }
.admin-sidebar {
  width: 240px; background: var(--bg-nav); flex-shrink: 0;
  padding: 0 0 24px;
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.admin-sidebar-brand {
  background: #000;
  padding: 18px 20px;
  font-family: 'Noto Serif', serif;
  font-size: 16px; color: var(--orange);
  font-weight: 700; border-bottom: 1px solid #333;
  letter-spacing: .5px;
}
.admin-sidebar-brand span { color: #fff; }
.admin-nav { padding: 12px 8px; }
.admin-nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: var(--radius-sm);
  color: #ccc; font-size: 13px;
  transition: background var(--t), color var(--t);
  margin-bottom: 2px;
}
.admin-nav a:hover  { background: #222; color: #fff; }
.admin-nav a.active { background: #f90; color: #111; font-weight: 700; }
.admin-nav .nav-section {
  font-size: 10px; color: #555; text-transform: uppercase; letter-spacing: 1px;
  padding: 12px 12px 4px;
}
.admin-content { flex: 1; padding: 28px 32px; overflow-y: auto; }
.admin-content h1 {
  font-family: 'Noto Serif', serif; font-size: 24px;
  margin-bottom: 20px; color: var(--text);
}
.admin-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px;
  margin-bottom: 20px;
}
.admin-card h2 { font-size: 16px; font-weight: 700; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.admin-stats { display: grid; grid-template-columns: repeat(auto-fill,minmax(160px,1fr)); gap: 12px; margin-bottom: 20px; }
.admin-stat { background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; }
.admin-stat .n { font-size: 30px; font-weight: 700; color: var(--orange2); }
.admin-stat .l { font-size: 11px; color: var(--text-2); text-transform: uppercase; letter-spacing: .5px; }

/* ══════════════════════════════════════════════════════
   MODAL / POPUP
══════════════════════════════════════════════════════ */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,.55);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity .25s;
}
.modal-overlay.show { opacity: 1; pointer-events: all; }
.modal-box {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 32px;
  max-width: 460px; width: calc(100% - 32px);
  transform: translateY(16px) scale(.97);
  transition: transform .25s;
  box-shadow: var(--shadow-lg);
}
.modal-overlay.show .modal-box { transform: none; }
.modal-box h2 { font-family: 'Noto Serif',serif; font-size: 20px; margin-bottom: 10px; }
.modal-box p  { font-size: 13px; color: var(--text-2); line-height: 1.65; margin-bottom: 14px; }
.modal-warning {
  background: #fff8e1; border: 1px solid #ffc107;
  border-radius: var(--radius-sm); padding: 10px 12px;
  font-size: 13px; color: #795548; margin-bottom: 18px;
}
.modal-actions { display: flex; gap: 10px; }
.modal-actions button {
  flex: 1; padding: 10px; border-radius: 3px;
  font-size: 14px; font-weight: 600; cursor: pointer;
  transition: all var(--t);
}
.btn-modal-cancel {
  background: #f5f6f6; border: 1px solid #adb1b8; color: var(--text);
}
.btn-modal-cancel:hover { background: #e8e9e9; }
.btn-modal-go {
  background: linear-gradient(to bottom, #f7dfa5, #f0c14b);
  border: 1px solid #a88734; color: var(--text);
}
.btn-modal-go:hover { background: linear-gradient(to bottom, #f5d78e, #eeba35); }

/* ══════════════════════════════════════════════════════
   HOW IT WORKS
══════════════════════════════════════════════════════ */
.steps-row { display: grid; grid-template-columns: repeat(auto-fill,minmax(200px,1fr)); gap: 16px; }
.step-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px;
  text-align: center;
}
.step-num {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--orange); color: var(--text);
  font-size: 18px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 12px;
}
.step-card h3 { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.step-card p  { font-size: 13px; color: var(--text-2); line-height: 1.6; }

/* ══════════════════════════════════════════════════════
   VIDEO SECTION
══════════════════════════════════════════════════════ */
.video-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(160px,1fr)); gap: 10px; }
.reel-card {
  border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 9/16; background: #f7f8f8;
  position: relative; cursor: pointer;
  border: 1px solid var(--border);
}
.reel-card video { width:100%;height:100%;object-fit:cover; }
.reel-play-overlay {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.2); opacity: 0;
  transition: opacity var(--t);
}
.reel-card:hover .reel-play-overlay { opacity: 1; }

/* ══════════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════════ */
.footer-top { background: #37475a; padding: 16px var(--pad); text-align: center; margin-top: 40px; }
.footer-top a { color: #fff; font-size: 14px; }
.footer-mid {
  background: #232f3e;
  padding: 32px var(--pad);
  display: grid; grid-template-columns: repeat(auto-fit,minmax(160px,1fr));
  gap: 24px;
}
.footer-col h4 { color: #fff; font-size: 15px; font-weight: 700; margin-bottom: 12px; }
.footer-col a {
  display: block; color: #ddd; font-size: 13px;
  margin-bottom: 8px; transition: color var(--t);
}
.footer-col a:hover { color: var(--orange); }
.footer-bot {
  background: #131921;
  padding: 16px var(--pad);
  display: flex; align-items: center; justify-content: center; gap: 20px;
  flex-wrap: wrap;
}
.footer-bot a { color: #aaa; font-size: 12px; transition: color var(--t); }
.footer-bot a:hover { color: #fff; }
.footer-brand-name { font-family: 'Noto Serif',serif; color: var(--orange); font-size: 16px; font-weight: 700; }

/* ══════════════════════════════════════════════════════
   LOGIN PAGE
══════════════════════════════════════════════════════ */
.login-wrap {
  max-width: 380px; margin: 40px auto; padding: 0 16px;
}
.login-box {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px;
}
.login-box h1 { font-family:'Noto Serif',serif; font-size: 24px; margin-bottom: 20px; }
.btn-google {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  background: var(--bg-white); border: 1px solid var(--border2);
  border-radius: 3px; padding: 12px;
  font-size: 14px; font-weight: 600; color: var(--text);
  width: 100%; cursor: pointer; transition: background var(--t);
}
.btn-google:hover { background: #f7f8f8; }

/* ══════════════════════════════════════════════════════
   MISC
══════════════════════════════════════════════════════ */
.page-section { padding: 20px var(--pad); max-width: var(--max-w); margin: 0 auto; }
.card-box { background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; margin-bottom: 16px; }

.empty-state { text-align: center; padding: 48px 20px; color: var(--text-2); }
.empty-state .empty-icon { font-size: 56px; margin-bottom: 12px; }
.empty-state h3 { font-size: 18px; color: var(--text); margin-bottom: 6px; }
.empty-state p   { font-size: 14px; }

.divider { height: 1px; background: var(--border); margin: 16px 0; }
.text-link { color: var(--link); }
.text-link:hover { color: var(--link-h); text-decoration: underline; }
.text-muted { color: var(--text-2); }
.text-green { color: var(--green-ok); }
.text-orange { color: var(--orange2); }

/* ══════════════════════════════════════════════════════
   ANIMATIONS
══════════════════════════════════════════════════════ */
@keyframes fadeIn { from{opacity:0;transform:translateY(10px)} to{opacity:1;transform:none} }
.fade-in { animation: fadeIn .35s ease both; }
.fade-in:nth-child(2){animation-delay:.05s}
.fade-in:nth-child(3){animation-delay:.1s}
.fade-in:nth-child(4){animation-delay:.15s}
.fade-in:nth-child(5){animation-delay:.2s}
.fade-in:nth-child(6){animation-delay:.25s}
.fade-in:nth-child(7){animation-delay:.3s}
.fade-in:nth-child(8){animation-delay:.35s}

/* ══════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════ */
@media(max-width:900px) {
  .primary-nav .nav-search { max-width: 300px; }
  .hero-banner { min-height: 260px; }
}
@media(max-width:640px) {
  .primary-nav .nav-search { display: none; }
  .sub-nav { display: none; }
  .product-grid { grid-template-columns: repeat(2,1fr); gap: 8px; }
  .hero-banner { padding: 28px 16px 48px; min-height: 220px; }
  .hero-content h1 { font-size: 22px; }
  .hero-search-bar { max-width: 100%; }
  .footer-mid { grid-template-columns: 1fr 1fr; }
  .form-wrap { padding: 20px 16px; }
  .admin-content { padding: 16px; }
  .admin-sidebar { display: none; }
  .dash-stats { grid-template-columns: 1fr 1fr; }
}
@media(max-width:400px) {
  .product-grid { grid-template-columns: repeat(2,1fr); }
}
