/* ================================================================
   PHP Store — Main Stylesheet
   Satu --gutter variable dipakai di header, main, footer
   supaya tepi kiri-kanan selalu lurus dari atas ke bawah.
   ================================================================ */

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #f8fafc;
  color: #111827;
  line-height: 1.55;
  min-height: 100vh;
}
a      { color: inherit; text-decoration: none; }
img    { max-width: 100%; display: block; }
button { cursor: pointer; font: inherit; }
h1,h2,h3,h4,h5,h6 { line-height: 1.25; }

/* ── Design tokens ──────────────────────────────────────────── */
:root {
  --max-w:      1200px;   /* lebar konten maksimal */
  --gutter:     0.875rem; /* padding kiri-kanan — SAMA di header/main/footer */
  --header-h:   56px;
  --yellow:     #eab308;
  --yellow-d:   #ca8a04;
  --radius-sm:  .5rem;
  --radius-md:  .75rem;
  --radius-lg:  1rem;
}
/* tablet ≥ 640px */
@media (min-width: 640px) {
  :root { --gutter: 1.5rem; --header-h: 64px; }
}
/* desktop ≥ 1024px */
@media (min-width: 1024px) {
  :root { --gutter: 2.5rem; --header-h: 68px; }
}

/* ── Shared centering mixin ─────────────────────────────────── */
/* Dipakai oleh nav-inner, main-content, footer-inner */
.centered {
  width: 100%;
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* ── Full-page flex wrapper ─────────────────────────────────── */
.flex-col-screen {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ================================================================
   HEADER
   ================================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
}
.nav-inner {
  /* reuse centering — padding kiri/kanan = --gutter */
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
}

/* Logo */
.brand img {
  height: 2.25rem;
  border-radius: .375rem;
  object-fit: contain;
  flex-shrink: 0;
}
@media (min-width: 640px) { .brand img { height: 2.75rem; } }
@media (min-width: 1024px) { .brand img { height: 3.25rem; } }

/* Desktop nav */
.main-nav {
  display: none;
  align-items: center;
  gap: 2rem;
  flex: 1;
  justify-content: center;
}
@media (min-width: 768px) { .main-nav { display: flex; } }
.main-nav a {
  font-size: .9rem;
  font-weight: 500;
  color: #374151;
  white-space: nowrap;
  transition: color .15s;
}
.main-nav a:hover,
.main-nav a.active { color: var(--yellow); font-weight: 700; }

/* Mobile dropdown */
.main-nav.mobile-active {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  position: absolute;
  top: calc(var(--header-h) + 2px);
  left: var(--gutter);
  right: var(--gutter);
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius-md);
  box-shadow: 0 8px 24px rgba(15,23,42,.1);
  padding: .375rem;
  z-index: 60;
}
.main-nav.mobile-active a {
  display: block;
  padding: .75rem 1rem;
  border-radius: .5rem;
  font-size: .9375rem;
  color: #374151;
}
.main-nav.mobile-active a:hover,
.main-nav.mobile-active a.active { background: #fef9c3; color: var(--yellow-d); font-weight: 700; }

/* Right tools */
.nav-tools { display: flex; align-items: center; gap: .125rem; flex-shrink: 0; }
@media (min-width: 640px) { .nav-tools { gap: .375rem; } }

/* Hamburger */
.mobile-menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  padding: .4rem;
  border-radius: var(--radius-sm);
  color: #374151;
  flex-shrink: 0;
}
.mobile-menu-btn svg { width: 1.375rem; height: 1.375rem; }
.mobile-menu-btn:hover { background: #f3f4f6; }
@media (min-width: 768px) { .mobile-menu-btn { display: none; } }

/* Cart icon */
.cart-link {
  position: relative;
  display: flex;
  align-items: center;
  padding: .4rem;
  border-radius: 9999px;
  color: #374151;
  transition: background .15s;
}
.cart-link:hover { background: #f3f4f6; }
.cart-link svg { width: 1.25rem; height: 1.25rem; }
.cart-badge {
  position: absolute;
  top: 0; right: 0;
  background: #ef4444;
  color: #fff;
  font-size: .6rem;
  font-weight: 700;
  line-height: 1;
  padding: .1rem .28rem;
  border-radius: 9999px;
  min-width: 1rem;
  text-align: center;
}

/* Language select */
.lang-wrap { position: relative; }
.lang-select {
  cursor: pointer;
  appearance: none;
  border: 1px solid #e5e7eb;
  background: #fff;
  border-radius: 9999px;
  padding: .25rem .5rem;
  padding-right: 1.25rem;
  font-size: .75rem;
  font-weight: 600;
  color: #374151;
  transition: border-color .15s;
  max-width: 4.5rem;
}
@media (min-width: 640px) {
  .lang-select { font-size: .8125rem; padding-right: 1.5rem; max-width: 5.5rem; }
}
.lang-select:hover { border-color: #facc15; }
.lang-select:focus { outline: none; border-color: var(--yellow); box-shadow: 0 0 0 2px rgba(234,179,8,.2); }
.lang-arrow {
  pointer-events: none;
  position: absolute;
  right: .35rem; top: 50%;
  transform: translateY(-50%);
  color: #6b7280;
}
.lang-arrow svg { width: .625rem; height: .625rem; }

/* Track order btn */
.btn-register {
  display: none;
  align-items: center;
  background: #5D6AC0;
  color: #fff;
  border-radius: .375rem;
  padding: .375rem .875rem;
  font-size: .8125rem;
  font-weight: 700;
  white-space: nowrap;
  transition: background .15s;
}
.btn-register:hover { background: #4a5ab0; }
@media (min-width: 768px) { .btn-register { display: inline-flex; } }

/* ================================================================
   MAIN CONTENT
   padding kiri/kanan = --gutter (sama dengan nav-inner)
   ================================================================ */
main, .main-content {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  flex: 1;
  padding-top: 1.25rem;
  padding-bottom: 4rem;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* Alerts */
.alert { padding: .75rem 1rem; border-radius: var(--radius-sm); margin-bottom: 1rem; font-size: .875rem; border: 1px solid transparent; }
.alert-success { background: #dcfce7; color: #166534; border-color: #86efac; }
.alert-error   { background: #fee2e2; color: #dc2626; border-color: #fca5a5; }

/* ── Section helpers ────────────────────────────────────────── */
.section { padding: 2rem 0; }
.section + .section { border-top: 1px solid #f3f4f6; }

.section-head { display: flex; align-items: center; gap: .5rem; margin-bottom: 1.25rem; }
.section-dot { width: .3rem; height: .3rem; border-radius: 9999px; background: var(--yellow); flex-shrink: 0; }
.section-head h2 { font-size: 1.25rem; font-weight: 700; color: var(--yellow-d); }

.section-head-between {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1rem; gap: .5rem;
}
.section-head-between h2 { font-size: 1rem; font-weight: 700; color: #1f2937; }
@media (min-width: 640px) { .section-head-between h2 { font-size: 1.125rem; } }

.view-all-link { font-size: .8125rem; font-weight: 600; color: var(--yellow-d); white-space: nowrap; }
.view-all-link:hover { text-decoration: underline; }

.title-gold    { color: var(--yellow); font-size: 1.25rem; font-weight: 800; text-align: center; }
.subtitle-gray { color: #4b5563; text-align: center; font-size: .9375rem; margin-top: .375rem; }
@media (min-width: 640px) { .title-gold { font-size: 1.5rem; } }

/* ================================================================
   GOLD PRICE CARD
   ================================================================ */
.gold-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: .875rem;
  margin-bottom: 2rem;
}
@media (min-width: 480px) { .gold-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .gold-grid { grid-template-columns: repeat(4, 1fr); } }

.gold-price-card {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  border-radius: var(--radius-lg);
  border: 1px solid #e5e7eb;
  background: #fff;
  padding: 1.25rem 1rem;
  text-align: center;
  box-shadow: 0 2px 8px rgba(15,23,42,.06);
  transition: box-shadow .2s, transform .2s;
}
@media (min-width: 640px) { .gold-price-card { padding: 1.75rem 1.5rem; } }
.gold-price-card:hover { box-shadow: 0 8px 24px rgba(15,23,42,.11); transform: translateY(-2px); }
.gold-icon  { font-size: 1.75rem; }
.gold-title { font-size: .9375rem; font-weight: 700; color: #111827; }
.gold-subtitle { font-size: .75rem; color: #6b7280; }
.gold-price-val { font-size: clamp(1.25rem, 5vw, 2rem); font-weight: 800; color: var(--yellow-d); }
.gold-per-gram  { font-size: .75rem; color: #6b7280; }

/* ================================================================
   PRODUCT SLIDER
   ================================================================ */
.slider-wrap {
  display: flex;
  gap: .75rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -ms-overflow-style: none;
  scrollbar-width: none;
  padding-bottom: .5rem;
}
.slider-wrap::-webkit-scrollbar { display: none; }

.slider-item {
  position: relative;
  width: 82%;
  flex-shrink: 0;
  scroll-snap-align: start;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,.1);
}
@media (min-width: 640px)  { .slider-item { width: 58%; } }
@media (min-width: 1024px) { .slider-item { width: 44%; } }

.slider-item img { width: 100%; height: 16rem; object-fit: cover; }
@media (min-width: 640px)  { .slider-item img { height: 20rem; } }
@media (min-width: 1024px) { .slider-item img { height: 24rem; } }

.slider-overlay {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: .625rem;
  background: rgba(0,0,0,.45);
  border-radius: var(--radius-lg);
  transition: opacity .3s;
}
@media (min-width: 768px) { .slider-overlay { opacity: 0; } }
.slider-item:hover .slider-overlay { opacity: 1; }
.slider-title { color: #fff; font-weight: 700; padding: 0 1rem; text-align: center; font-size: .9375rem; }
.slider-price { font-size: 1.125rem; font-weight: 700; color: #fde047; }

/* ================================================================
   CATEGORY GRID
   ================================================================ */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .625rem;
}
@media (min-width: 480px) { .cat-grid { grid-template-columns: repeat(3, 1fr); gap: 1rem; } }
@media (min-width: 1024px) { .cat-grid { grid-template-columns: repeat(4, 1fr); gap: 1.25rem; } }

.cat-card {
  display: block;
  border-radius: var(--radius-md);
  border: 1px solid #e5e7eb;
  background: #fff;
  padding: .625rem;
  text-align: center;
  color: inherit;
  transition: border-color .2s, box-shadow .2s;
}
@media (min-width: 640px) { .cat-card { padding: .875rem; } }
.cat-card:hover { border-color: #facc15; box-shadow: 0 6px 18px rgba(0,0,0,.08); }

.cat-card img {
  width: 100%; height: 4.5rem;
  object-fit: cover;
  border-radius: .375rem;
  margin-bottom: .5rem;
}
@media (min-width: 640px) { .cat-card img { height: 7rem; } }
@media (min-width: 1024px) { .cat-card img { height: 9rem; } }

.cat-card .cat-emoji {
  width: 3rem; height: 3rem;
  display: flex; align-items: center; justify-content: center;
  border-radius: .5rem;
  background: #fefce8;
  font-size: 1.25rem;
  margin: 0 auto .5rem;
}
@media (min-width: 640px) { .cat-card .cat-emoji { width: 4rem; height: 4rem; font-size: 1.5rem; } }
.cat-card:hover .cat-emoji { background: #fef9c3; }

.cat-name { font-size: .75rem; font-weight: 600; color: #1f2937; line-height: 1.3; }
@media (min-width: 640px) { .cat-name { font-size: .875rem; } }

/* ================================================================
   PRODUCT GRID
   ================================================================ */
.prod-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .625rem;
}
@media (min-width: 640px)  { .prod-grid { grid-template-columns: repeat(3, 1fr); gap: 1rem; } }
@media (min-width: 1024px) { .prod-grid { grid-template-columns: repeat(4, 1fr); gap: 1.25rem; } }

.prod-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-md);
  border: 1px solid #e5e7eb;
  background: #fff;
  padding: .625rem;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
@media (min-width: 640px) { .prod-card { padding: .875rem; border-radius: var(--radius-lg); } }
.prod-card:hover { border-color: #facc15; box-shadow: 0 10px 28px rgba(15,23,42,.1); transform: translateY(-2px); }

.prod-card-link { text-decoration: none; color: inherit; display: block; flex: 1; }

.prod-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: .5rem;
  background: #f3f4f6;
}

.prod-title {
  margin-top: .4rem;
  font-size: .75rem;
  font-weight: 600;
  color: #1f2937;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.35;
}
@media (min-width: 640px) { .prod-title { font-size: .875rem; margin-top: .5rem; } }

.prod-price { font-weight: 700; color: var(--yellow-d); font-size: .875rem; margin-top: .25rem; }
@media (min-width: 640px) { .prod-price { font-size: 1rem; } }
.prod-price-old { font-size: .7rem; color: #9ca3af; text-decoration: line-through; }

/* Stars */
.stars { display: flex; gap: .1rem; align-items: center; margin: .2rem 0; }
.stars svg { width: .7rem; height: .7rem; fill: #facc15; color: #facc15; }
.rating-count { font-size: .65rem; color: #6b7280; }

/* Product action buttons */
.prod-actions {
  display: flex;
  flex-direction: column;
  gap: .375rem;
  border-top: 1px solid #f1f5f9;
  padding-top: .5rem;
  margin-top: .5rem;
}

/* ================================================================
   BUTTONS
   ================================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .3rem;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  font-size: .75rem;
  padding: .5rem .625rem;
  width: 100%;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .15s, box-shadow .15s, background .15s, border-color .15s;
}
@media (min-width: 640px) { .btn { font-size: .8125rem; padding: .5rem .75rem; } }
.btn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,.1); }

.btn-add-cart { border: 1.5px solid #e5e7eb; background: #fff; color: #374151; }
.btn-add-cart:hover { border-color: #facc15; background: #fefce8; }

.btn-buy { background: linear-gradient(to right, var(--yellow), var(--yellow-d)); color: #fff; }
.btn-buy:hover { background: linear-gradient(to right, var(--yellow-d), #a16207); }

.btn-wa { background: #22c55e; color: #fff; font-size: .7rem; }
.btn-wa:hover { background: #16a34a; }

.btn-view-all {
  display: inline-flex; align-items: center; gap: .5rem;
  background: linear-gradient(to right, var(--yellow), var(--yellow-d));
  color: #fff; padding: .75rem 2rem;
  border-radius: var(--radius-sm); font-weight: 700; font-size: .9375rem;
  width: auto; box-shadow: 0 4px 6px rgba(0,0,0,.1);
}
.btn-view-all:hover { background: linear-gradient(to right, var(--yellow-d), #a16207); }

.btn-blog-all {
  display: inline-block;
  background: var(--yellow); color: #fff;
  padding: .75rem 1.75rem; border-radius: var(--radius-sm);
  font-weight: 700; transition: background .15s;
}
.btn-blog-all:hover { background: var(--yellow-d); }

.btn-primary {
  background: linear-gradient(to right, var(--yellow), var(--yellow-d));
  color: #fff; padding: .625rem 1.25rem;
  box-shadow: 0 4px 6px rgba(0,0,0,.1);
}
.btn-primary:hover { background: linear-gradient(to right, var(--yellow-d), #a16207); }

.btn-secondary {
  background: #fff; color: #374151;
  border: 1px solid #e5e7eb; padding: .625rem 1.25rem;
}
.btn-secondary:hover { background: #f9fafb; border-color: #d1d5db; }

.btn-danger {
  background: #fee2e2; color: #dc2626;
  border: 1px solid #fca5a5; padding: .5rem .875rem;
  font-size: .8125rem; font-weight: 600;
}

/* Larger button size for product detail page */
.btn-primary-size { padding: .75rem 1rem; font-size: .9375rem; }

/* ================================================================
   GOLD CALCULATOR
   ================================================================ */
.calc-wrap {
  display: grid; gap: 1.25rem;
  border-radius: var(--radius-lg);
  border: 1px solid #e5e7eb;
  background: #fff; padding: 1.25rem;
}
@media (min-width: 768px) { .calc-wrap { grid-template-columns: 1fr 1fr; } }

.calc-result {
  display: flex; flex-direction: column; gap: .875rem;
  border-radius: var(--radius-md);
  background: #f9fafb; padding: 1rem;
}
.calc-label { font-size: .75rem; color: #6b7280; margin-bottom: .125rem; }
.calc-val { font-size: 1.125rem; font-weight: 700; }
.calc-val-yellow { color: var(--yellow-d); }
.calc-fields { display: flex; flex-direction: column; gap: .875rem; }
.field-label { font-size: .875rem; font-weight: 600; display: block; margin-bottom: .25rem; color: #374151; }

.input {
  width: 100%; padding: .625rem .875rem;
  border: 1px solid #d1d5db; border-radius: var(--radius-sm);
  background: #f9fafb; color: #111827;
  font: inherit; font-size: .9375rem;
}
.input:focus { outline: none; border-color: var(--yellow); box-shadow: 0 0 0 2px rgba(234,179,8,.2); }
.input::placeholder { color: #9ca3af; }

/* ================================================================
   BENEFITS / WHY GRID
   ================================================================ */
.benefit-grid {
  display: grid; grid-template-columns: 1fr; gap: .75rem;
}
@media (min-width: 640px)  { .benefit-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; } }
@media (min-width: 1024px) { .benefit-grid { grid-template-columns: repeat(3, 1fr); } }

.benefit-item, .why-item {
  border-radius: var(--radius-md);
  border-left: 4px solid var(--yellow);
  background: #fff; padding: 1rem;
  box-shadow: 0 2px 6px rgba(0,0,0,.05);
  transition: box-shadow .2s;
}
.benefit-item:hover, .why-item:hover { box-shadow: 0 8px 20px rgba(0,0,0,.09); }

.benefit-head { display: flex; align-items: center; gap: .625rem; margin-bottom: .5rem; }
.benefit-icon-wrap {
  width: 2.25rem; height: 2.25rem; border-radius: 9999px;
  background: #fef9c3; display: flex; align-items: center; justify-content: center;
  font-size: 1rem; color: var(--yellow-d); flex-shrink: 0;
}
.benefit-title { font-weight: 700; color: #0f172a; font-size: .9375rem; }
.benefit-desc  { font-size: .8125rem; color: #475569; line-height: 1.5; }

/* ================================================================
   TESTIMONIALS
   ================================================================ */
.testi-scroll {
  display: flex; gap: .75rem;
  overflow-x: auto; scroll-snap-type: x mandatory;
  scroll-behavior: smooth; -ms-overflow-style: none; scrollbar-width: none;
  padding-bottom: .5rem;
}
.testi-scroll::-webkit-scrollbar { display: none; }

.testi-card {
  width: 85%; flex-shrink: 0; scroll-snap-align: start;
  border-radius: var(--radius-lg); border: 1px solid #e5e7eb;
  background: #fff; padding: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,.06); transition: box-shadow .2s;
}
@media (min-width: 640px)  { .testi-card { width: 52%; padding: 1.25rem; } }
@media (min-width: 1024px) { .testi-card { width: calc(33.333% - .5rem); } }
.testi-card:hover { box-shadow: 0 10px 24px rgba(0,0,0,.1); }

.testi-author { display: flex; align-items: center; gap: .625rem; margin-bottom: .75rem; }
.testi-avatar { width: 2.75rem; height: 2.75rem; border-radius: 9999px; object-fit: cover; flex-shrink: 0; }
.testi-name { font-weight: 700; color: #111827; font-size: .9rem; }
.testi-city { font-size: .75rem; color: #4b5563; }
.testi-text { color: #374151; font-size: .8125rem; line-height: 1.6; }
.testi-stars { display: flex; gap: .2rem; margin-top: .625rem; }
.testi-stars span { font-size: .9rem; color: #facc15; }

.testi-dots { display: flex; justify-content: center; gap: .5rem; margin-top: 1.25rem; }
.testi-dot {
  height: .625rem; width: .625rem; border-radius: 9999px;
  background: #d1d5db; border: none; cursor: pointer; transition: all .3s;
}
.testi-dot.active { width: 1.875rem; background: var(--yellow); }

/* ================================================================
   BLOG
   ================================================================ */
.blog-grid {
  display: grid; grid-template-columns: 1fr; gap: 1rem;
}
@media (min-width: 640px)  { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .blog-grid { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; } }

.blog-card {
  display: flex; flex-direction: column;
  border-radius: var(--radius-md); background: #fff;
  overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,.06);
  transition: box-shadow .3s, transform .3s;
  text-decoration: none; color: inherit;
}
.blog-card:hover { box-shadow: 0 14px 36px rgba(0,0,0,.1); transform: translateY(-2px); }
.blog-img-wrap { height: 11rem; overflow: hidden; background: #e2e8f0; }
@media (min-width: 640px) { .blog-img-wrap { height: 13rem; } }
.blog-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.blog-card:hover .blog-img-wrap img { transform: scale(1.05); }
.blog-body { padding: 1rem; flex: 1; display: flex; flex-direction: column; gap: .375rem; }
.blog-title {
  font-size: .9375rem; font-weight: 700; color: #0f172a;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.blog-meta {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: .625rem; border-top: 1px solid #f1f5f9;
  font-size: .75rem; color: #6b7280; margin-top: auto;
}

/* ================================================================
   FOOTER
   padding kiri/kanan = --gutter (sama dengan nav-inner dan main)
   ================================================================ */
.site-footer { margin-top: auto; background: linear-gradient(135deg, #0c4a6e, #075985); color: #fff; }

.footer-inner {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding-top: 3rem;
  padding-bottom: 3.5rem;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.footer-grid {
  display: grid; grid-template-columns: 1fr; gap: 2rem;
}
@media (min-width: 640px)  { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: repeat(4, 1fr); } }

.footer-heading { margin-bottom: .875rem; font-size: 1rem; font-weight: 700; color: #7dd3fc; }
.footer-text    { font-size: .875rem; line-height: 1.65; color: #e0f2fe; }
.footer-ul      { list-style: none; display: flex; flex-direction: column; gap: .5rem; font-size: .875rem; }
.footer-ul a    { color: #e0f2fe; transition: color .15s; }
.footer-ul a:hover { color: #7dd3fc; }
.footer-contact-item { display: flex; align-items: flex-start; gap: .5rem; }
.footer-icon    { width: 1rem; height: 1rem; flex-shrink: 0; color: #7dd3fc; margin-top: .2rem; }
.footer-divider { margin: 2rem 0; border: none; border-top: 1px solid rgba(3,105,161,.4); }
.footer-bottom {
  display: flex; flex-direction: column; align-items: center;
  gap: .75rem; text-align: center; font-size: .8125rem; color: #bae6fd;
}
@media (min-width: 640px) { .footer-bottom { flex-direction: row; justify-content: space-between; text-align: left; } }
.footer-bottom a:hover { color: #7dd3fc; }
.footer-links { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }

.newsletter-row { display: flex; gap: .5rem; }
.newsletter-in {
  flex: 1; min-width: 0;
  background: rgba(3,105,161,.4); border: 1px solid rgba(125,211,252,.3);
  padding: .5rem .75rem; font-size: .875rem; color: #fff; border-radius: var(--radius-sm);
}
.newsletter-in::placeholder { color: #7dd3fc; }
.newsletter-in:focus { outline: none; border-color: #7dd3fc; }
.newsletter-btn {
  background: #0284c7; color: #fff; font-size: .875rem; font-weight: 700;
  padding: .5rem 1rem; border: none; border-radius: var(--radius-sm);
  cursor: pointer; white-space: nowrap; flex-shrink: 0; transition: background .15s;
}
.newsletter-btn:hover { background: #0ea5e9; }

/* ================================================================
   WhatsApp float button
   ================================================================ */
.wa-float {
  position: fixed; bottom: 1.25rem; left: 1rem; z-index: 9000;
  width: 3.25rem; height: 3.25rem; background: #22c55e;
  border-radius: 9999px; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(34,197,94,.4);
  text-decoration: none; transition: transform .2s, box-shadow .2s;
  color: #fff;
}
.wa-float svg { width: 1.75rem; height: 1.75rem; }
.wa-float:hover { transform: scale(1.1); box-shadow: 0 8px 22px rgba(34,197,94,.5); }

/* ================================================================
   CART TOAST
   ================================================================ */
#cart-toast {
  position: fixed; bottom: 1.25rem; right: 1rem; z-index: 9999;
  display: flex; align-items: center; gap: .75rem;
  background: #111827; color: #fff;
  padding: 1rem 1.25rem; border-radius: var(--radius-md);
  box-shadow: 0 10px 25px rgba(0,0,0,.28);
  font-size: .875rem; font-weight: 600;
  min-width: 280px; max-width: min(380px, calc(100vw - 2rem));
  transform: translateY(120%); opacity: 0; pointer-events: none;
  transition: transform .35s cubic-bezier(.34,1.56,.64,1), opacity .25s ease;
}
#cart-toast.show { transform: translateY(0); opacity: 1; pointer-events: auto; }
#cart-toast .toast-icon { font-size: 1.125rem; flex-shrink: 0; }
#cart-toast #toast-msg  { flex: 1; line-height: 1.3; }
#cart-toast .toast-action {
  flex-shrink: 0; background: var(--yellow); color: #000;
  font-size: .6875rem; font-weight: 700; padding: .25rem .625rem;
  border-radius: .375rem; text-decoration: none; white-space: nowrap;
  transition: background .15s;
}
#cart-toast .toast-action:hover { background: var(--yellow-d); color: #fff; }

/* ================================================================
   FORMS
   ================================================================ */
.form-grid { display: grid; gap: 1rem; }
.field { display: grid; gap: .375rem; }
.field label { font-size: .875rem; font-weight: 600; color: #374151; }
.field input, .field textarea, .field select {
  width: 100%; padding: .625rem .875rem;
  border: 1px solid #d1d5db; border-radius: var(--radius-sm);
  font: inherit; font-size: .9375rem;
  background: #f9fafb; color: #111827; transition: border-color .15s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--yellow); box-shadow: 0 0 0 2px rgba(234,179,8,.2);
}
.field textarea { min-height: 100px; resize: vertical; }

/* ================================================================
   HERO — inner pages
   ================================================================ */
.hero {
  background: linear-gradient(135deg, #1d4ed8, #3b82f6);
  color: #fff; border-radius: var(--radius-lg);
  padding: 1.5rem var(--gutter); margin-bottom: 1.5rem;
}
@media (min-width: 768px) { .hero { padding: 2.5rem; } }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; align-items: center; }
@media (min-width: 768px) { .hero-grid { grid-template-columns: 1fr 1fr; } }
.hero h1 { font-size: clamp(1.25rem, 3vw, 2rem); font-weight: 800; margin-bottom: .625rem; }
.hero p  { color: rgba(255,255,255,.8); font-size: .9375rem; }
.hero-card {
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius-md); padding: 1.125rem;
}
.hero .badge { background: rgba(255,255,255,.2); color: #fff; margin-bottom: .625rem; display: inline-flex; }

/* ================================================================
   ADMIN
   ================================================================ */
.admin-body { background: #f1f5f9; }
.admin-shell { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
@media (max-width: 900px) { .admin-shell { grid-template-columns: 1fr; } }

.admin-sidebar {
  background: #1e3a5f; color: #fff;
  padding: 1.5rem 1rem; display: flex; flex-direction: column; gap: 1.5rem;
}
.admin-nav { display: grid; gap: .25rem; }
.admin-nav a {
  color: rgba(255,255,255,.75); text-decoration: none;
  padding: .625rem .875rem; border-radius: var(--radius-sm);
  font-size: .875rem; transition: background .15s, color .15s;
}
.admin-nav a.active, .admin-nav a:hover { background: rgba(255,255,255,.12); color: #fff; }
.admin-main { padding: 1.5rem var(--gutter); }

.admin-metrics { display: grid; grid-template-columns: repeat(2,1fr); gap: 1rem; margin-bottom: 1.5rem; }
@media (min-width: 768px) { .admin-metrics { grid-template-columns: repeat(4,1fr); } }

.metric {
  background: #fff; border: 1px solid #e5e7eb;
  border-radius: var(--radius-md); padding: 1.125rem;
  box-shadow: 0 1px 3px rgba(0,0,0,.05);
}
.metric strong { display: block; font-size: 1.75rem; font-weight: 800; margin-top: .375rem; color: var(--yellow); }

.login-page { min-height: 100vh; display: grid; place-items: center; background: #fefce8; padding: 1.5rem; }
.login-card {
  background: #fff; border: 1px solid #e5e7eb;
  border-radius: var(--radius-md); padding: 2rem;
  width: min(440px, 100%); box-shadow: 0 4px 12px rgba(0,0,0,.08);
}

/* ── Shared panels ── */
.panel, .summary-card, .detail-card, .empty-card, .order-card, .table-wrap {
  background: #fff; border: 1px solid #e5e7eb;
  border-radius: var(--radius-md); padding: 1.5rem;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.empty-card { text-align: center; padding: 3rem 1.5rem; }
.table-wrap { padding: 0; overflow-x: auto; }
.panel-title { font-size: 1.125rem; font-weight: 700; margin-bottom: .875rem; }

table { width: 100%; border-collapse: collapse; }
th, td { padding: .75rem 1rem; border-bottom: 1px solid #f3f4f6; text-align: left; font-size: .875rem; }
th { font-size: .6875rem; text-transform: uppercase; letter-spacing: .05em; color: #6b7280; background: #f9fafb; font-weight: 700; }

/* ── Status badges ── */
.status-badge { display: inline-flex; align-items: center; padding: .25rem .625rem; border-radius: 9999px; font-size: .75rem; font-weight: 700; }
.status-badge.pending_payment, .status-badge.unpaid  { background: #fef9c3; color: #92400e; }
.status-badge.payment_review, .status-badge.processing, .status-badge.shipped { background: #dbeafe; color: #1e40af; }
.status-badge.paid, .status-badge.completed  { background: #dcfce7; color: #166534; }
.status-badge.cancelled { background: #fee2e2; color: #dc2626; }
.badge { display: inline-flex; align-items: center; padding: .25rem .625rem; border-radius: 9999px; font-size: .75rem; font-weight: 700; background: #fef9c3; color: #92400e; }

/* ── Checkout / cart layout ── */
.checkout-grid, .order-grid, .detail-grid {
  display: grid;
  grid-template-columns: minmax(0,1.5fr) minmax(260px,.9fr);
  gap: 1.5rem; align-items: start;
}
@media (max-width: 768px) {
  .checkout-grid, .order-grid, .detail-grid { grid-template-columns: 1fr; }
  [style*="grid-template-columns:minmax(0,1fr) 340px"],
  [style*="grid-template-columns: minmax(0,1fr) 340px"] { grid-template-columns: 1fr !important; }
  [style*="position:sticky;top:80px"],
  [style*="position: sticky; top: 80px"] { position: static !important; }
}

.cart-item, .order-item {
  display: grid; grid-template-columns: 80px minmax(0,1fr) auto;
  gap: .75rem; padding: .875rem; margin-bottom: .625rem;
  background: #fff; border: 1px solid #e5e7eb;
  border-radius: var(--radius-md); align-items: center;
}
.cart-item img, .order-item img {
  width: 80px; height: 80px; object-fit: contain;
  border-radius: var(--radius-sm); background: #f9fafb;
  padding: .375rem; border: 1px solid #e5e7eb;
}
@media (max-width: 480px) {
  .cart-item, .order-item { grid-template-columns: 60px minmax(0,1fr) auto; gap: .5rem; }
  .cart-item img, .order-item img { width: 60px; height: 60px; }
}

.summary-row { display: flex; justify-content: space-between; padding: .625rem 0; border-bottom: 1px solid #f3f4f6; font-size: .875rem; }
.summary-row:last-child { border: none; font-weight: 700; font-size: 1rem; }
.qty-box { display: inline-flex; align-items: center; gap: .375rem; border: 1px solid #e5e7eb; border-radius: var(--radius-sm); padding: .25rem; background: #f9fafb; }
.qty-box button { width: 2rem; height: 2rem; border: none; border-radius: .375rem; background: #fff; font-size: 1rem; font-weight: 700; color: var(--yellow); cursor: pointer; }

/* ================================================================
   MISC / UTILITIES
   ================================================================ */
.muted  { color: #6b7280; }
.price  { font-size: 1.125rem; font-weight: 800; color: var(--yellow-d); }
.eyebrow {
  font-size: .6875rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; color: var(--yellow-d); margin-bottom: .375rem; display: block;
}
.order-card { margin-bottom: 1rem; }
.proof-image { width: 100%; max-width: 360px; border: 1px solid #e5e7eb; border-radius: var(--radius-sm); }
.section-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 1.25rem; flex-wrap: wrap; }

/* Card grid fallback */
.card-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; }
@media (min-width: 640px)  { .card-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .card-grid { grid-template-columns: repeat(4, 1fr); gap: 1.25rem; } }

.product-card { background: #fff; border: 1px solid #e5e7eb; border-radius: var(--radius-lg); overflow: hidden; transition: border-color .2s, box-shadow .2s; }
.product-card:hover { border-color: #facc15; box-shadow: 0 10px 20px rgba(0,0,0,.08); }
.product-card img { width: 100%; aspect-ratio: 1; object-fit: cover; background: #f3f4f6; }
.product-card__body { padding: .875rem; display: flex; flex-direction: column; gap: .375rem; }
.product-card__body h2, .product-card__body h3 { font-size: .9375rem; font-weight: 700; }
.product-card__body .price { font-size: 1.125rem; font-weight: 800; color: var(--yellow-d); }

/* Category / lang filter pills */
.lang-switcher { display: flex; align-items: center; gap: .375rem; flex-wrap: wrap; }
.lang-switcher a {
  padding: .3125rem .75rem; border-radius: 9999px; font-size: .8125rem;
  font-weight: 600; border: 1px solid #e5e7eb; color: #374151; background: #fff; transition: .15s;
}
.lang-switcher a:hover, .lang-switcher a.active { background: var(--yellow); color: #fff; border-color: var(--yellow); }

.table-actions, .meta-list, .button-row, .status-pills { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.stack { display: grid; gap: 1rem; }

/* Spacing */
.mb-8  { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mb-12 { margin-bottom: 3rem; }
.mt-6  { margin-top: 1.5rem; }
.mt-8  { margin-top: 2rem; }
.mt-10 { margin-top: 2.5rem; }
.mt-12 { margin-top: 3rem; }
.text-center   { text-align: center; }
.text-sm       { font-size: .875rem; }
.font-bold     { font-weight: 700; }
.text-gray-700 { color: #374151; }
.text-gray-600 { color: #4b5563; }
.flex-center   { display: flex; align-items: center; justify-content: center; }

/* Accessibility */
a:focus-visible, button:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--yellow); outline-offset: 2px;
}

/* container alias */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
