:root {
  --blue-dark: #1B5EA6;
  --blue-mid: #2272C3;
  --blue-light: #4A9DBF;
  --gold: #F0A500;
  --gold-light: #FFB830;
  --white: #FFFFFF;
  --bg: #F4F7FB;
  --text: #0D1B2A;
  --text-muted: #5A6A7E;
  --card-bg: #FFFFFF;
  --border: #DDE6F0;
  --green: #16A34A;
  --radius: 14px;
  --shadow: 0 4px 24px rgba(27, 94, 166, 0.10);
  --shadow-lg: 0 12px 48px rgba(27, 94, 166, 0.16);
}

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

/* Global text overflow protection */
p,
h1,
h2,
h3,
h4,
h5,
h6,
div,
span,
td,
li,
a,
label,
small {
  overflow-wrap: break-word;
  word-wrap: break-word;
}

body {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  padding: 0 48px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--blue-dark);
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-logo-img {
  height: 52px;
  width: auto;
  object-fit: contain;
  display: block;
}

.footer-logo-img {
  background: white;
  padding: 6px 12px;
  border-radius: 8px;
  height: 56px;
  width: auto;
  object-fit: contain;
  display: inline-block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin-left: 36px;
}

.nav-links a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--blue-dark);
}

.nav-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

/* ── NAV SEARCH BAR ── */
.nav-search-bar {
  position: relative;
  width: 280px;
  margin: 0 16px;
  display: flex;
  align-items: center;
}

.nav-search-bar input {
  width: 100%;
  padding: 8px 16px 8px 36px;
  border-radius: 50px;
  border: 1px solid var(--border);
  font-family: inherit;
  font-size: 0.85rem;
  background: var(--bg);
  color: var(--text);
  transition: all 0.25s ease;
}

.nav-search-bar input:focus {
  outline: none;
  border-color: var(--blue-dark);
  background: white;
  box-shadow: 0 4px 12px rgba(27, 94, 166, 0.08);
}

.nav-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.82rem;
  pointer-events: none;
  opacity: 0.6;
}

.nav-search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: white;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  max-height: 320px;
  overflow-y: auto;
  display: none;
  z-index: 999;
}

.nav-search-results.show {
  display: block;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  cursor: pointer;
  transition: background 0.2s ease;
  border-bottom: 1px solid rgba(221, 230, 240, 0.4);
  text-decoration: none;
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-item:hover {
  background: rgba(27, 94, 166, 0.04);
}

.search-result-icon {
  font-size: 1.1rem;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: rgba(27, 94, 166, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.search-result-details {
  flex: 1;
  min-width: 0;
}

.search-result-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-result-category {
  font-size: 0.68rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
  margin-top: 1px;
}

.search-result-price {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--blue-dark);
}

.search-result-free {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--green);
}

.search-no-results {
  padding: 16px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.btn-ghost {
  padding: 8px 18px;
  border-radius: 8px;
  border: 1.5px solid var(--border);
  background: transparent;
  color: var(--text);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-ghost:hover {
  border-color: var(--blue-dark);
  color: var(--blue-dark);
}

.btn-cart {
  padding: 8px 20px;
  border-radius: 8px;
  background: var(--blue-dark);
  color: white;
  border: none;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
}

.btn-cart:hover {
  background: var(--blue-mid);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(27, 94, 166, 0.25);
}

#my-requests-btn {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease !important;
}

#my-requests-btn:hover {
  background: rgba(27, 94, 166, 0.2) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(27, 94, 166, 0.12);
}

.cart-badge {
  background: var(--gold);
  color: #000;
  font-size: 0.7rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── HERO ── */
.hero-wrap {
  padding-top: 68px;
  background: linear-gradient(160deg, #EEF4FC 0%, #F4F7FB 60%, #FEFCF3 100%);
  position: relative;
  overflow: hidden;
}

.hero-wrap::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(27, 94, 166, 0.07) 0%, transparent 70%);
  pointer-events: none;
}

.hero-wrap::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: -60px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(240, 165, 0, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 48px 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(240, 165, 0, 0.12);
  border: 1px solid rgba(240, 165, 0, 0.3);
  color: #A06800;
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 22px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
}

.hero h1 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(2.2rem, 3.8vw, 3.2rem);
  font-weight: 800;
  line-height: 1.13;
  color: var(--text);
  margin-bottom: 20px;
}

.hero h1 .blue {
  background: linear-gradient(135deg, var(--blue-dark), var(--blue-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero h1 .gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 1.02rem;
  color: var(--text-muted);
  line-height: 1.72;
  margin-bottom: 34px;
  max-width: 460px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-hero {
  padding: 13px 28px;
  border-radius: 10px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.96rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s;
}

.btn-hero-primary {
  background: var(--blue-dark);
  color: white;
  border: none;
  box-shadow: 0 4px 20px rgba(27, 94, 166, 0.28);
}

.btn-hero-primary:hover {
  background: var(--blue-mid);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(27, 94, 166, 0.35);
}

.btn-hero-secondary {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}

.btn-hero-secondary:hover {
  border-color: var(--gold);
  color: #A06800;
}

.hero-stats {
  display: flex;
  gap: 28px;
  margin-top: 44px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.stat-num {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--blue-dark), var(--blue-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
}

.stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Hero Visual — floating cards */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-card-stack {
  position: relative;
  width: 380px;
  height: 400px;
}

.hcard {
  position: absolute;
  background: white;
  border-radius: 16px;
  padding: 22px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}

.hcard:nth-child(1) {
  top: 0;
  left: 10px;
  width: 300px;
  animation: float1 4s ease-in-out infinite;
}

.hcard:nth-child(2) {
  top: 110px;
  left: 70px;
  width: 280px;
  animation: float2 4s ease-in-out infinite 1s;
  background: var(--blue-dark);
  border-color: transparent;
}

.hcard:nth-child(3) {
  top: 230px;
  left: 20px;
  width: 310px;
  animation: float1 4s ease-in-out infinite 2s;
}

@keyframes float1 {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

@keyframes float2 {

  0%,
  100% {
    transform: translateY(-4px);
  }

  50% {
    transform: translateY(-14px);
  }
}

.hcard-tag {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--blue-light);
  margin-bottom: 6px;
}

.hcard:nth-child(2) .hcard-tag {
  color: rgba(255, 255, 255, 0.55);
}

.hcard-title {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 8px;
}

.hcard:nth-child(2) .hcard-title {
  color: white;
}

.hcard-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 10px;
  overflow-wrap: break-word;
  word-break: break-word;
}

.hcard:nth-child(2) .hcard-desc {
  color: rgba(255, 255, 255, 0.65);
}

.hcard-price {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--gold);
}

.hcard-pill {
  display: inline-block;
  background: rgba(74, 157, 191, 0.12);
  color: var(--blue-light);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 100px;
}

/* ── SECTION COMMON ── */
.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 50px 48px 80px;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--blue-light);
  margin-bottom: 10px;
}

.section-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(1.7rem, 2.5vw, 2.3rem);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 40px;
  line-height: 1.2;
}

.section-title span {
  background: linear-gradient(135deg, var(--blue-dark), var(--blue-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ── CATEGORIES ── */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.cat-card {
  background: white;
  border-radius: var(--radius);
  padding: 24px 20px;
  border: 1.5px solid var(--border);
  cursor: pointer;
  transition: all 0.22s;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.cat-card:hover {
  border-color: var(--blue-mid);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.cat-card.active {
  border-color: var(--blue-dark);
  background: rgba(27, 94, 166, 0.04);
}

.cat-icon {
  font-size: 1.8rem;
  margin-bottom: 4px;
}

.cat-icon svg {
  width: 32px;
  height: 32px;
  stroke: var(--text);
  display: block;
}

.cat-card.active .cat-icon svg {
  stroke: var(--blue-dark);
}

@keyframes color-shift {
  0% { color: #1B5EA6; }
  50% { color: #D08700; }
  100% { color: #1B5EA6; }
}

.free-addons-text {
  animation: color-shift 3s infinite ease-in-out;
  font-weight: 700;
}

.cat-title {
  font-weight: 700;
  font-size: 0.95rem;
}

.cat-count {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ── SEARCH + FILTER BAR ── */
.shop-controls {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.search-box {
  flex: 1;
  min-width: 220px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: white;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 0 16px;
  height: 44px;
}

.search-box input {
  border: none;
  outline: none;
  background: transparent;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.9rem;
  color: var(--text);
  flex: 1;
}

.search-box input::placeholder {
  color: var(--text-muted);
}

.filter-select {
  height: 44px;
  padding: 0 16px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  background: white;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.88rem;
  color: var(--text);
  cursor: pointer;
  outline: none;
}

/* ── PRODUCTS GRID ── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.product-card {
  background: white;
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  overflow: hidden;
  transition: all 0.25s;
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.product-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: transparent;
}

.product-thumb {
  height: 180px;
  position: relative;
  background: linear-gradient(135deg, var(--blue-dark), var(--blue-mid));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-thumb-placeholder {
  font-size: 3rem;
}

.thumb-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--gold);
  color: #000;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.thumb-badge.free {
  background: var(--green);
  color: white;
}

/* Image loading skeleton */
.img-loading-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.img-loading-wrapper::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(244, 247, 251, 0.3) 25%, rgba(221, 230, 240, 0.5) 37%, rgba(244, 247, 251, 0.3) 63%);
  background-size: 800px 100%;
  animation: shimmer 1.5s infinite linear;
  z-index: 1;
  transition: opacity 0.3s ease;
}

.img-loading-wrapper.loaded::before {
  opacity: 0;
  pointer-events: none;
}

.img-loading-wrapper img {
  opacity: 0 !important;
  transition: opacity 0.3s ease !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

#product-img-box .img-loading-wrapper img {
  object-fit: contain !important;
}

.img-loading-wrapper.loaded img {
  opacity: 1 !important;
}

.product-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.product-cat {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--blue-light);
}

.product-name {
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.35;
  overflow-wrap: break-word;
  word-break: break-word;
}

.product-desc {
  font-size: 0.83rem;
  color: var(--text-muted);
  line-height: 1.6;
  flex: 1;
  overflow-wrap: break-word;
  word-break: break-word;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.product-price {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--blue-dark);
}

.product-price.free-price {
  color: var(--green);
}

.btn-add {
  padding: 8px 18px;
  border-radius: 8px;
  background: var(--blue-dark);
  color: white;
  border: none;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-add:hover {
  background: var(--blue-mid);
  transform: translateY(-1px);
}

.btn-add.added {
  background: var(--green);
}

.btn-add.download {
  background: var(--green);
}

/* ── Free Addon Card Variant ── */
.product-card.free-addon {
  border: 1.5px solid rgba(22, 163, 74, 0.25);
  background: linear-gradient(180deg, #ffffff 0%, rgba(22, 163, 74, 0.02) 100%);
}

.product-card.free-addon:hover {
  border-color: rgba(22, 163, 74, 0.5);
  box-shadow: 0 12px 48px rgba(22, 163, 74, 0.08);
}

.product-card.free-addon .product-cat {
  color: var(--green);
}

.product-card.free-addon .btn-add.download {
  background: var(--green);
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.2);
}

.product-card.free-addon .btn-add.download:hover {
  background: #15803d;
  transform: translateY(-1.5px);
}

/* empty state */
.empty-state {
  grid-column: 1/-1;
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

.empty-state .empty-icon {
  font-size: 3rem;
  margin-bottom: 16px;
}

/* ── CUSTOM TDL SECTION ── */
.custom-section {
  background: linear-gradient(135deg, var(--blue-dark) 0%, #0F3D6E 100%);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.custom-section::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.custom-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.custom-content .section-label {
  color: rgba(255, 184, 48, 0.9);
}

.custom-content .section-title {
  color: white;
  margin-bottom: 20px;
}

.custom-content .section-title span {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.custom-content p {
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.7;
  font-size: 0.95rem;
  margin-bottom: 24px;
}

.custom-checks {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.check-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
}

.check-item::before {
  content: '✓';
  color: var(--gold);
  font-weight: 700;
  font-size: 1rem;
}

.custom-form {
  background: white;
  border-radius: 18px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.custom-form h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--text);
  margin-bottom: 4px;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
}

.form-input {
  width: 100%;
  padding: 10px 14px;
  border-radius: 9px;
  border: 1.5px solid var(--border);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.88rem;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
  background: var(--bg);
}

.form-input:focus {
  border-color: var(--blue-mid);
  background: white;
}

textarea.form-input {
  resize: vertical;
  min-height: 100px;
}

.btn-submit {
  padding: 13px;
  border-radius: 10px;
  background: var(--blue-dark);
  color: white;
  border: none;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.btn-submit:hover {
  background: var(--blue-mid);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(27, 94, 166, 0.3);
}

.form-success {
  display: none;
  background: rgba(22, 163, 74, 0.1);
  border: 1px solid rgba(22, 163, 74, 0.3);
  color: var(--green);
  border-radius: 9px;
  padding: 12px 16px;
  font-size: 0.88rem;
  font-weight: 600;
  text-align: center;
}

/* ── WHY US ── */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.why-card {
  background: white;
  border-radius: var(--radius);
  padding: 28px 24px;
  border: 1.5px solid var(--border);
  transition: all 0.22s;
}

.why-card:hover {
  border-color: var(--blue-light);
  box-shadow: var(--shadow);
}

.why-icon {
  font-size: 1.8rem;
  margin-bottom: 14px;
}

.why-title {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 8px;
}

.why-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ── FOOTER ── */
footer {
  background: var(--text);
  color: rgba(255, 255, 255, 0.7);
  padding: 48px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-logo {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 1.2rem;
  color: white;
}

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--gold);
}

.footer-copy {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 8px;
}

/* ── CART SIDEBAR ── */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 300;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.cart-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.cart-sidebar {
  position: fixed;
  top: 0;
  right: -420px;
  bottom: 0;
  width: 400px;
  background: white;
  z-index: 301;
  transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 40px rgba(0, 0, 0, 0.15);
}

.cart-sidebar.open {
  right: 0;
}

.cart-head {
  padding: 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-head h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
}

.cart-close {
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--text-muted);
  transition: color 0.2s;
}

.cart-close:hover {
  color: var(--text);
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
}

.cart-item-thumb {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--blue-dark), var(--blue-mid));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.cart-item-info {
  flex: 1;
}

.cart-item-name {
  font-weight: 600;
  font-size: 0.88rem;
  line-height: 1.3;
  overflow-wrap: break-word;
  word-break: break-word;
}

.cart-item-price {
  font-weight: 700;
  color: var(--blue-dark);
  font-size: 0.9rem;
  margin-top: 3px;
}

.cart-item-remove {
  background: none;
  border: none;
  color: #e53e3e;
  cursor: pointer;
  font-size: 1rem;
  padding: 4px;
}

.cart-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

.cart-empty .empty-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
  display: block;
}

.cart-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-total span:first-child {
  font-weight: 600;
  font-size: 0.95rem;
}

.cart-total span:last-child {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--blue-dark);
}

.btn-checkout {
  padding: 14px;
  border-radius: 10px;
  background: var(--blue-dark);
  color: white;
  border: none;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.96rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.btn-checkout:hover {
  background: var(--blue-mid);
  transform: translateY(-1px);
}

/* ── CART COUPON TOGGLE + DROPDOWN ── */
.cart-coupon-toggle-wrap {
  position: relative;
  margin-bottom: 2px;
}

.cart-coupon-toggle-btn {
  width: 100%;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1.5px dashed var(--blue-light);
  background: rgba(27, 94, 166, 0.04);
  color: var(--blue-dark);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.cart-coupon-toggle-btn:hover {
  background: rgba(27, 94, 166, 0.08);
  border-color: var(--blue-dark);
}

.coupon-applied-tag {
  background: rgba(22, 163, 74, 0.15);
  color: var(--green);
  padding: 2px 8px;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 700;
}

.coupon-chevron {
  transition: transform 0.2s;
  font-size: 0.8rem;
}

.cart-coupons-dropdown {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-radius: 0 0 10px 10px;
}

.cart-coupons-dropdown.open {
  max-height: 300px;
  overflow-y: auto;
  padding: 8px 0;
}

.cart-coupons-dropdown.open~.cart-coupon-toggle-btn .coupon-chevron,
.cart-coupon-toggle-wrap:has(.cart-coupons-dropdown.open) .coupon-chevron {
  transform: rotate(180deg);
}

.coupon-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: white;
  cursor: pointer;
  transition: all 0.2s;
}

.coupon-item:hover:not(.disabled) {
  border-color: var(--blue-light);
  background: rgba(27, 94, 166, 0.03);
}

.coupon-item.applied {
  border-color: var(--green);
  background: rgba(22, 163, 74, 0.06);
}

.coupon-item.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

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

.coupon-code {
  font-family: monospace;
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--blue-dark);
  letter-spacing: 0.5px;
}

.coupon-desc {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.coupon-action {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--blue-dark);
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(27, 94, 166, 0.08);
  white-space: nowrap;
}

.coupon-item.applied .coupon-action {
  background: rgba(22, 163, 74, 0.12);
  color: var(--green);
}

/* ── CART CHECKOUT FIELDS (serial, phone) ── */
.cart-checkout-fields {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 0 4px;
  border-top: 1px solid var(--border);
  margin-top: 4px;
}

.cart-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cart-field-label {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text);
}

.cart-field-label .required {
  color: #DC2626;
}

.cart-field-input {
  width: 100%;
  padding: 9px 12px;
  border-radius: 8px;
  border: 1.5px solid var(--border);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.84rem;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
  background: var(--bg);
  box-sizing: border-box;
}

.cart-field-input:focus {
  border-color: var(--blue-mid);
  background: white;
}

.cart-field-input#cart-tally-serial {
  font-family: monospace;
  letter-spacing: 1px;
}

.cart-field-hint {
  font-size: 0.68rem;
  color: var(--text-muted);
  line-height: 1.3;
}

.cart-phone-row {
  display: flex;
  gap: 6px;
}

.cart-country-code {
  width: 100px !important;
  flex-shrink: 0;
  cursor: pointer;
  padding: 9px 6px !important;
}

.cart-phone-input {
  flex: 1;
  min-width: 0;
}

.price-row-breakdown {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.price-row-breakdown.discount {
  color: var(--green);
}

/* Make cart footer scrollable if content overflows */
.cart-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 60vh;
  overflow-y: auto;
}


/* ── VIDEO MODAL ── */
.video-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 400;
  display: none;
  align-items: center;
  justify-content: center;
}

.video-overlay.open {
  display: flex;
}

.video-modal {
  background: #000;
  border-radius: 16px;
  overflow: hidden;
  width: min(820px, 92vw);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
  position: relative;
}

.video-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: white;
  font-size: 1.4rem;
  cursor: pointer;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  transition: background 0.2s;
}

.video-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

.video-modal iframe {
  width: 100%;
  aspect-ratio: 16/9;
  display: block;
  border: none;
}

/* ── TOAST ── */
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--text);
  color: white;
  padding: 12px 24px;
  border-radius: 100px;
  font-size: 0.88rem;
  font-weight: 600;
  opacity: 0;
  transition: all 0.3s;
  pointer-events: none;
  z-index: 500;
  white-space: nowrap;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ── PRODUCT DETAIL STYLES ── */
.main-container {
  max-width: 1600px;
  margin: 100px auto 40px;
  padding: 0 48px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 24px;
  transition: color 0.2s;
}

.back-link:hover {
  color: var(--blue-dark);
}

.product-details-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  background: white;
  border: 1.5px solid var(--border);
  border-radius: 20px;
  padding: 40px;
  box-shadow: var(--shadow);
  margin-bottom: 40px;
  overflow: hidden;
}

.product-media {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.product-image-container {
  height: 400px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  /* border: 1px solid var(--border); */
  background: #ffffff;
}

.product-image-container img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  /* Prevent Tally screenshots from being cropped */
}

.product-image-placeholder {
  font-size: 6rem;
}

.video-container {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16/9;
  background: #000;
  border: 1.5px solid var(--border);
}

.video-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.product-info-panel {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-width: 0;
}

.product-badge-row {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}

.badge-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-blue {
  background: rgba(27, 94, 166, 0.1);
  color: var(--blue-dark);
}

.badge-gold {
  background: rgba(240, 165, 0, 0.12);
  color: #A06800;
}

.badge-green {
  background: rgba(22, 163, 74, 0.1);
  color: var(--green);
}

.product-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 1.8rem;
  line-height: 1.2;
  margin-bottom: 40px;
  color: var(--text);
  overflow-wrap: break-word;
  word-break: break-word;
}

.product-description {
  font-size: 1.02rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 28px;
  overflow-wrap: break-word;
  word-break: break-word;
}

.product-price-section {
  margin-bottom: 28px;
}

.price-label {
  display: none;
}

.price-value {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--blue-dark);
}

.price-value.free {
  color: var(--green);
}

.actions-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 28px;
}

.btn-action {
  height: 52px;
  border-radius: 10px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-action-primary {
  background: var(--blue-dark);
  color: white;
  box-shadow: 0 4px 18px rgba(27, 94, 166, 0.25);
}

.btn-action-primary:hover {
  background: var(--blue-mid);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(27, 94, 166, 0.32);
}

.btn-action-secondary {
  background: white;
  border: 2px solid var(--blue-dark);
  color: var(--blue-dark);
}

.btn-action-secondary:hover {
  background: rgba(27, 94, 166, 0.05);
  transform: translateY(-2px);
}

.btn-action.added {
  background: var(--green) !important;
  border-color: var(--green) !important;
  color: white !important;
}

.trust-factors {
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-top: 1px solid var(--border);
  padding-top: 24px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.trust-icon {
  font-size: 1.2rem;
}

/* ── REVIEWS SECTION ── */
.reviews-section {
  background: white;
  border: 1.5px solid var(--border);
  border-radius: 20px;
  padding: 40px;
  box-shadow: var(--shadow);
}

.reviews-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 1.6rem;
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.reviews-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
}

.reviews-summary {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.rating-breakdown-card {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--border);
  text-align: center;
}

.avg-rating-num {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 3.2rem;
  font-weight: 800;
  color: var(--blue-dark);
  line-height: 1;
  margin-bottom: 6px;
}

.stars-display {
  color: var(--gold);
  font-size: 1.4rem;
  margin-bottom: 6px;
}

.total-ratings-text {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Submission Form */
.write-review-card {
  background: white;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

.write-review-card h4 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 18px;
}

.star-select {
  display: flex;
  gap: 8px;
  font-size: 1.6rem;
  color: #cbd5e1;
  cursor: pointer;
  margin-bottom: 12px;
}

.star-select span {
  transition: color 0.15s;
}

.star-select span:hover,
.star-select span.selected {
  color: var(--gold);
}

.btn-submit-review {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  background: var(--blue-dark);
  color: white;
  border: none;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.btn-submit-review:hover {
  background: var(--blue-mid);
}

/* Reviews List */
.reviews-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-height: 580px;
  overflow-y: auto;
  padding-right: 10px;
}

.review-item {
  border-bottom: 1px solid var(--border);
  padding-bottom: 20px;
}

.review-item:last-child {
  border-bottom: none;
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.reviewer-name {
  font-weight: 700;
  font-size: 0.95rem;
}

.review-date {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.review-stars {
  color: var(--gold);
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.review-text {
  font-size: 0.88rem;
  color: var(--text);
  line-height: 1.6;
  overflow-wrap: break-word;
  word-break: break-word;
}

.admin-reply-box {
  margin-top: 14px;
  background: var(--bg);
  border-left: 3px solid var(--gold);
  padding: 12px 16px;
  border-radius: 0 8px 8px 0;
}

.admin-reply-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.8rem;
  color: #A06800;
  margin-bottom: 4px;
}

.admin-reply-text {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.no-reviews {
  color: var(--text-muted);
  font-size: 0.9rem;
  text-align: center;
  padding: 40px 20px;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  nav {
    padding: 0 20px;
  }

  .nav-links {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    padding: 60px 20px 60px;
  }

  .hero-visual {
    display: none;
  }

  .section {
    padding: 60px 20px;
  }

  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .custom-inner {
    grid-template-columns: 1fr;
    padding: 0 20px;
  }

  .why-grid {
    grid-template-columns: 1fr;
  }

  footer {
    padding: 40px 20px;
  }

  .cart-sidebar {
    width: 100%;
    right: -100%;
  }

  .main-container {
    padding: 0 20px;
    margin-top: 90px;
  }

  .product-details-grid {
    grid-template-columns: 1fr;
    padding: 24px;
    gap: 32px;
  }

  .reviews-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .product-image-container {
    height: 260px;
  }
}

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

  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ── DUAL PRICING & DISCOUNT BADGES ── */
.product-price-container {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.price-now {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--blue-dark);
}

.price-was {
  font-family: 'Plus Jakarta Sans', sans-serif;
  text-decoration: line-through;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

.discount-badge-sm {
  font-size: 0.72rem;
  color: var(--green);
  font-weight: 700;
}

.price-was-lg {
  text-decoration: line-through;
  font-size: 1.3rem;
  color: var(--text-muted);
  font-weight: 500;
}

.discount-badge-lg {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--green);
  background: rgba(22, 163, 74, 0.1);
  padding: 4px 10px;
  border-radius: 6px;
}

/* ── PRODUCT SCREENSHOTS GALLERY ── */
.gallery-thumbnails-strip {
  position: relative;
  margin: 16px auto 0 auto;
  display: flex;
  gap: 10px;
  background: rgba(15, 23, 42, 0.65);
  /* Glassmorphism dark background */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 8px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  z-index: 10;
  max-width: 90%;
  overflow-x: auto;
  scrollbar-width: none;
  width: fit-content;
}

.gallery-thumbnails-strip::-webkit-scrollbar {
  display: none;
}

.gallery-thumbnail-item {
  width: 54px;
  height: 54px;
  border-radius: 8px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  overflow: hidden;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-thumbnail-item:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.8);
}

.gallery-thumbnail-item.active {
  border-color: var(--gold);
  box-shadow: 0 0 12px rgba(240, 165, 0, 0.6);
}

.gallery-thumbnail-item img {
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
  transition: opacity 0.2s;
}

.gallery-thumbnail-item:hover img {
  opacity: 0.85;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 28px;
  transition: color 0.2s;
}

.back-link:hover {
  color: var(--blue-dark);
}

/* ── PRODUCT BADGE ROW ── */
.product-badge-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.badge-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.badge-blue {
  background: rgba(27, 94, 166, 0.1);
  color: var(--blue-dark);
}

.badge-gold {
  background: rgba(240, 165, 0, 0.12);
  color: #A06800;
}

.badge-green {
  background: rgba(22, 163, 74, 0.1);
  color: var(--green);
}

/* ── VIDEO CONTAINER ── */
.video-container {
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1.5px solid var(--border);
  background: #000;
}

.video-container iframe {
  width: 100%;
  aspect-ratio: 16/9;
  display: block;
  border: none;
}

/* ── AMAZON ZOOM STYLE ── */
.zoom-wrapper {
  position: relative;
  width: 100%;
}

#overlay {
  display: none;
  position: absolute;
  left: 105%;
  top: 0;
  width: 450px;
  height: 400px;
  border: 2px solid #555;
  z-index: 1000;
  background-repeat: no-repeat;
  background-color: #ffffff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

#mouse-overlay {
  cursor: zoom-in;
  position: absolute;
  width: 150px;
  height: 120px;
  transform: translate(-50%, -50%);
  background-color: rgba(255, 255, 255, 0.25);
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.08) 1px, transparent 1px);
  background-size: 8px 8px;
  border-radius: 4px;
  border: 1.5px solid rgba(0, 0, 0, 0.25);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3), 0 4px 12px rgba(0, 0, 0, 0.15);
  pointer-events: none;
  display: none;
  z-index: 100;
}

@media (max-width: 900px) {

  #mouse-overlay,
  #overlay {
    display: none !important;
  }
}

/* ── CART COUPONS UI ── */
.cart-coupons-section {
  border-top: 1px dashed var(--border);
  padding: 12px 0 4px;
}

.cart-coupons-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
  letter-spacing: 0.05em;
}

.coupons-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 120px;
  overflow-y: auto;
  margin-bottom: 12px;
}

.coupon-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px dashed var(--border);
  background: var(--bg);
  cursor: pointer;
  transition: all 0.2s;
}

.coupon-item:hover {
  border-color: var(--blue-mid);
  background: rgba(34, 114, 195, 0.02);
}

.coupon-item.applied {
  border-color: var(--green);
  background: rgba(22, 163, 74, 0.05);
}

.coupon-item.disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

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

.coupon-code {
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--text);
  letter-spacing: 0.02em;
}

.coupon-desc {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.coupon-action {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--blue-dark);
}

.coupon-item.applied .coupon-action {
  color: var(--green);
}

.coupon-item.disabled .coupon-action {
  color: var(--text-muted);
}

.price-row-breakdown {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  margin-bottom: 6px;
  color: var(--text-muted);
}

.price-row-breakdown.discount {
  color: var(--green);
  font-weight: 600;
}

/* ══════════════════════════════════════════════════
   SKELETON LOADERS & LOADING STATES
   ══════════════════════════════════════════════════ */

/* Shimmer animation */
@keyframes shimmer {
  0% {
    background-position: -400px 0;
  }

  100% {
    background-position: 400px 0;
  }
}

.skeleton-shimmer {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 37%, #f0f0f0 63%);
  background-size: 800px 100%;
  animation: shimmer 1.5s infinite linear;
  border-radius: 6px;
}

/* ── Skeleton Product Card (shop + index) ── */
.skeleton-product-card {
  background: white;
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.skeleton-product-card .skel-thumb {
  height: 180px;
  background: linear-gradient(90deg, #e8edf3 25%, #dce3ec 37%, #e8edf3 63%);
  background-size: 800px 100%;
  animation: shimmer 1.5s infinite linear;
}

.skeleton-product-card .skel-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.skeleton-product-card .skel-cat {
  width: 80px;
  height: 12px;
}

.skeleton-product-card .skel-name {
  width: 85%;
  height: 16px;
}

.skeleton-product-card .skel-desc {
  width: 100%;
  height: 12px;
}

.skeleton-product-card .skel-desc2 {
  width: 70%;
  height: 12px;
}

.skeleton-product-card .skel-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.skeleton-product-card .skel-price {
  width: 60px;
  height: 20px;
}

.skeleton-product-card .skel-btn {
  width: 90px;
  height: 34px;
  border-radius: 8px;
}

/* ── Skeleton Category Sidebar ── */
.skeleton-cat-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 8px;
}

.skeleton-cat-item .skel-cat-name {
  width: 120px;
  height: 14px;
}

.skeleton-cat-item .skel-cat-badge {
  width: 28px;
  height: 18px;
  border-radius: 50px;
}

/* ── Skeleton Product Detail Page ── */
.skeleton-detail-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  background: white;
  border: 1.5px solid var(--border);
  border-radius: 20px;
  padding: 40px;
  box-shadow: var(--shadow);
  margin-bottom: 40px;
}

.skeleton-detail-grid .skel-image {
  height: 400px;
  border-radius: var(--radius);
}

.skeleton-detail-grid .skel-info {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.skeleton-detail-grid .skel-badge-row {
  display: flex;
  gap: 10px;
}

.skeleton-detail-grid .skel-badge {
  width: 80px;
  height: 24px;
  border-radius: 100px;
}

.skeleton-detail-grid .skel-title {
  width: 90%;
  height: 32px;
}

.skeleton-detail-grid .skel-desc-line {
  width: 100%;
  height: 14px;
}

.skeleton-detail-grid .skel-desc-line2 {
  width: 75%;
  height: 14px;
}

.skeleton-detail-grid .skel-price-box {
  width: 100%;
  height: 90px;
  border-radius: var(--radius);
  margin-top: 8px;
}

.skeleton-detail-grid .skel-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 8px;
}

.skeleton-detail-grid .skel-action-btn {
  height: 52px;
  border-radius: 10px;
}

@media (max-width: 900px) {
  .skeleton-detail-grid {
    grid-template-columns: 1fr;
    padding: 24px;
  }

  .skeleton-detail-grid .skel-image {
    height: 260px;
  }
}

/* ── Skeleton Order Card ── */
.skeleton-order-card {
  background: white;
  border-radius: 16px;
  border: 1px solid var(--border);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.skeleton-order-card .skel-order-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.skeleton-order-card .skel-order-id {
  width: 140px;
  height: 16px;
}

.skeleton-order-card .skel-order-status {
  width: 80px;
  height: 24px;
  border-radius: 100px;
}

.skeleton-order-card .skel-order-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  background: var(--bg);
  border-radius: 10px;
}

.skeleton-order-card .skel-order-thumb {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  flex-shrink: 0;
}

.skeleton-order-card .skel-order-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.skeleton-order-card .skel-order-name {
  width: 160px;
  height: 14px;
}

.skeleton-order-card .skel-order-price {
  width: 70px;
  height: 12px;
}

.skeleton-order-card .skel-order-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.skeleton-order-card .skel-order-total {
  width: 100px;
  height: 18px;
}

.skeleton-order-card .skel-order-date {
  width: 90px;
  height: 12px;
}

/* ══════════════════════════════════════════════════
   PROCESSING OVERLAY (Payment / Loading)
   ══════════════════════════════════════════════════ */
.processing-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.processing-overlay.active {
  display: flex;
  opacity: 1;
}

.processing-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 40px;
}

/* Spinner */
.processing-spinner {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 4px solid var(--border);
  border-top-color: var(--blue-dark);
  animation: processSpin 0.8s linear infinite;
}

@keyframes processSpin {
  to {
    transform: rotate(360deg);
  }
}

.processing-spinner.success {
  border-color: var(--green);
  border-top-color: var(--green);
  animation: none;
}

.processing-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text);
}

.processing-status {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 600;
  min-height: 24px;
  transition: opacity 0.3s;
}

/* Progress steps */
.processing-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}

.processing-step {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 600;
  transition: color 0.3s, opacity 0.3s;
  opacity: 0.4;
}

.processing-step.active {
  color: var(--blue-dark);
  opacity: 1;
}

.processing-step.done {
  color: var(--green);
  opacity: 1;
}

.processing-step-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 800;
  background: var(--border);
  color: var(--text-muted);
  flex-shrink: 0;
  transition: background 0.3s, color 0.3s;
}

.processing-step.active .processing-step-icon {
  background: var(--blue-dark);
  color: white;
  animation: stepPulse 1.2s ease-in-out infinite;
}

.processing-step.done .processing-step-icon {
  background: var(--green);
  color: white;
  animation: none;
}

@keyframes stepPulse {

  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(27, 94, 166, 0.3);
  }

  50% {
    transform: scale(1.1);
    box-shadow: 0 0 0 8px rgba(27, 94, 166, 0);
  }
}

/* Success checkmark */
.processing-checkmark {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2rem;
  animation: checkPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes checkPop {
  0% {
    transform: scale(0);
    opacity: 0;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* ── Page-level loading placeholder ── */
.page-loading-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  gap: 16px;
}

.page-loading-spinner {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 3px solid var(--border);
  border-top-color: var(--blue-dark);
  animation: processSpin 0.8s linear infinite;
}

.page-loading-text {
  font-size: 0.92rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* ── Customer Auth Modal Additions ── */
.btn-google {
  width: 100%;
  padding: 12px 16px;
  border-radius: 10px;
  background: white;
  border: 1px solid #747775;
  color: #1f1f1f;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.92rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transition: background-color 0.2s, border-color 0.2s, box-shadow 0.2s;
  margin-top: 8px;
}

.btn-google:hover {
  background: #f8fafd;
  border-color: #747775;
  box-shadow: 0 1px 2px 0 rgba(60, 64, 67, 0.3), 0 1px 3px 1px rgba(60, 64, 67, 0.15);
}

.password-requirements {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 0;
  text-align: left;
}

.password-requirements.visible {
  max-height: 250px;
  opacity: 1;
  margin-top: 12px;
  padding: 14px;
  background: #fdfefe;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.requirement-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
}

.req-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 500;
  color: #e53e3e;
  transition: color 0.2s ease;
}

.req-item.valid {
  color: #38a169;
}

.req-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  font-size: 0.65rem;
  font-weight: 800;
  background-color: #fed7d7;
  color: #c53030;
  transition: all 0.2s ease;
}

.req-item.valid .req-icon {
  background-color: #c6f6d5;
  color: #22543d;
}

/* Premium Continue to Shop Button */
.btn-shop-redirect {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--blue-dark), var(--blue-mid));
  color: white;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 14px 32px;
  border-radius: 50px;
  box-shadow: 0 4px 18px rgba(27, 94, 166, 0.22);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  cursor: pointer;
}

.btn-shop-redirect:hover {
  background: linear-gradient(135deg, var(--blue-mid), var(--blue-light));
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(27, 94, 166, 0.3);
  color: white;
}

.btn-shop-redirect svg {
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-shop-redirect:hover svg {
  transform: translateX(5px);
}

/* Nav Account Dropdown */
.nav-dropdown-wrap {
  position: relative;
  display: inline-block;
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: white;
  min-width: 180px;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
}

.nav-dropdown-wrap:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-item {
  padding: 10px 18px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text) !important;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background 0.2s ease;
  cursor: pointer;
  text-align: left;
}

.nav-dropdown-item:hover {
  background: rgba(27, 94, 166, 0.05);
  color: var(--blue-dark) !important;
}

.nav-dropdown-item.logout-item:hover {
  background: rgba(220, 38, 38, 0.05);
  color: var(--red) !important;
}

/* Account Info Card Modal */
.account-card-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}

.account-card-overlay.open {
  display: flex;
}

.account-card {
  background: white;
  border-radius: 18px;
  width: min(360px, 90vw);
  padding: 28px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  text-align: center;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.account-card-overlay.open .account-card {
  transform: translateY(0);
}

.account-card-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--text-muted);
  line-height: 1;
}

/* Hide login button in navigation by default to prevent flashing before auth state resolves */
nav #login-btn {
  display: none;
}

/* ── PRODUCT FEATURES LIST ── */
.product-features-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-right: 0;
}

.product-features-list li {
  position: relative;
  padding-left: 32px;
  font-size: 1.05rem;
  line-height: 1.5;
  color: var(--text);
  overflow-wrap: break-word;
  word-break: break-word;
}

.product-features-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 1px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ccircle cx='50' cy='50' r='50' fill='%2322c55e'/%3E%3Cpath d='M25 50 L42 67 L75 33' stroke='white' stroke-width='10' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  width: 22px;
  height: 22px;
  background-size: contain;
  background-repeat: no-repeat;
  display: inline-block;
}

.product-features-list::-webkit-scrollbar {
  width: 6px;
}

.product-features-list::-webkit-scrollbar-track {
  background: var(--bg);
  border-radius: 3px;
}

.product-features-list::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

.product-features-list::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}