/* ============================================================
   Yora — Customer styles
   Palette: navy #0A0F2C, gold #D4AF37, white
   ============================================================ */

:root {
  --navy-900: #0A0F2C;
  --navy-800: #131A3D;
  --navy-700: #1F2952;
  --gold:     #D4AF37;
  --gold-soft:#E8C76A;
  --gold-dark:#B8932A;
  --white:    #FFFFFF;
  --gray-100: #F6F7FB;
  --gray-200: #E5E7EE;
  --gray-300: #C9CDD8;
  --gray-500: #6B7280;
  --gray-700: #374151;
  --success:  #15803D;
  --warning:  #B45309;
  --danger:   #B91C1C;
  --info:     #1D4ED8;
  --radius:   12px;
  --radius-lg:18px;
  --shadow-sm:0 1px 3px rgba(10,15,44,.06), 0 1px 2px rgba(10,15,44,.04);
  --shadow-md:0 6px 24px rgba(10,15,44,.08);
  --shadow-lg:0 20px 50px rgba(10,15,44,.12);
  --transition: 180ms cubic-bezier(.2,.8,.2,1);
}

* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--navy-900);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
img { max-width: 100%; display: block; }
a { color: var(--navy-900); text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select {
  font-family: inherit;
  font-size: 15px;
}

/* -------- Header -------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: var(--navy-900);
  color: var(--white);
  padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.header .container {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
}
.logo {
  font-size: 26px; font-weight: 700; letter-spacing: 1px;
  color: var(--white);
  display: inline-flex; align-items: center; gap: 8px;
}
.logo .dot { color: var(--gold); }
.nav-links {
  display: flex; gap: 22px; align-items: center;
}
.nav-links a {
  color: rgba(255,255,255,.85); font-weight: 500; font-size: 14.5px;
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--gold); }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* -------- Hero -------- */
.hero {
  background:
    radial-gradient(ellipse at top right, rgba(212,175,55,.15), transparent 60%),
    radial-gradient(ellipse at bottom left, rgba(212,175,55,.08), transparent 50%),
    linear-gradient(135deg, var(--navy-900) 0%, var(--navy-800) 100%);
  color: var(--white);
  padding: 80px 0 70px;
  text-align: center;
}
.hero h1 {
  font-size: clamp(28px, 4.5vw, 48px);
  margin: 0 0 14px;
  font-weight: 700;
  letter-spacing: -.5px;
  line-height: 1.15;
}
.hero h1 .accent { color: var(--gold); }
.hero p {
  font-size: clamp(15px, 2vw, 18px);
  color: rgba(255,255,255,.78);
  max-width: 640px;
  margin: 0 auto 32px;
}

/* -------- Search bar -------- */
.search-wrap {
  max-width: 580px;
  margin: 0 auto;
  position: relative;
}
.search-wrap input {
  width: 100%;
  padding: 16px 20px 16px 50px;
  border-radius: 50px;
  border: 1px solid rgba(255,255,255,.15);
  background: rgba(255,255,255,.08);
  color: var(--white);
  font-size: 15px;
  outline: none;
  transition: all var(--transition);
}
.search-wrap input::placeholder { color: rgba(255,255,255,.55); }
.search-wrap input:focus {
  background: rgba(255,255,255,.14);
  border-color: var(--gold);
}
.search-wrap .search-icon {
  position: absolute; left: 18px; top: 50%; transform: translateY(-50%);
  color: rgba(255,255,255,.6);
  width: 20px; height: 20px;
}

/* -------- Categories -------- */
.categories {
  padding: 36px 0 8px;
  background: var(--gray-100);
  border-bottom: 1px solid var(--gray-200);
}
.cat-list {
  display: flex; gap: 10px; flex-wrap: wrap;
  justify-content: center;
}
.cat-pill {
  padding: 9px 20px;
  border-radius: 50px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  color: var(--gray-700);
  font-size: 14px; font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
}
.cat-pill:hover { border-color: var(--gold); color: var(--navy-900); }
.cat-pill.active {
  background: var(--navy-900);
  color: var(--white);
  border-color: var(--navy-900);
}

/* -------- Section -------- */
.section { padding: 56px 0; background: var(--gray-100); }
.section-title {
  font-size: 26px; font-weight: 700; margin: 0 0 8px;
}
.section-sub { color: var(--gray-500); margin-bottom: 28px; }

/* -------- Card grid -------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 22px;
}
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
  display: flex; flex-direction: column;
  border: 1px solid var(--gray-200);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gold);
}
.card-image {
  width: 100%; aspect-ratio: 16/10;
  background: linear-gradient(135deg, var(--navy-800), var(--navy-900));
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
  font-size: 30px; font-weight: 700; letter-spacing: 1px;
  position: relative;
  overflow: hidden;
}
.card-image img {
  width: 100%; height: 100%; object-fit: cover;
}
.card-body {
  padding: 18px 18px 22px;
  flex: 1;
  display: flex; flex-direction: column;
}
.card-brand {
  font-size: 12px; text-transform: uppercase;
  color: var(--gold-dark); font-weight: 600; letter-spacing: 1px;
  margin-bottom: 4px;
}
.card-name {
  font-size: 17px; font-weight: 600; margin: 0 0 8px;
  color: var(--navy-900);
}
.card-amounts {
  margin-top: auto;
  display: flex; gap: 6px; flex-wrap: wrap;
}
.card-amounts span {
  font-size: 12px;
  background: var(--gray-100);
  padding: 4px 10px;
  border-radius: 6px;
  color: var(--gray-700);
  font-weight: 500;
}

/* -------- Empty state -------- */
.empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--gray-500);
}
.empty-icon {
  font-size: 48px; margin-bottom: 12px;
  opacity: .5;
}

/* -------- Buttons -------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 26px;
  border-radius: 10px;
  border: none;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  gap: 8px;
}
.btn-primary {
  background: var(--gold);
  color: var(--navy-900);
}
.btn-primary:hover {
  background: var(--gold-soft);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(212,175,55,.4);
}
.btn-primary:disabled {
  opacity: .6; cursor: not-allowed; transform: none;
}
.btn-dark {
  background: var(--navy-900);
  color: var(--white);
}
.btn-dark:hover { background: var(--navy-800); }
.btn-ghost {
  background: transparent;
  color: var(--navy-900);
  border: 1.5px solid var(--gray-300);
}
.btn-ghost:hover { border-color: var(--navy-900); }
.btn-block { width: 100%; }
.btn-lg { padding: 16px 32px; font-size: 16px; }

/* -------- Product page -------- */
.product-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  padding: 50px 0;
}
.product-image {
  background: var(--gray-100);
  border-radius: var(--radius-lg);
  aspect-ratio: 16/10;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.product-image img {
  width: 100%; height: 100%; object-fit: cover;
}
.product-info h1 {
  font-size: 32px; margin: 0 0 6px;
}
.product-brand-line {
  color: var(--gold-dark); font-weight: 600;
  text-transform: uppercase; letter-spacing: 1px; font-size: 13px;
  margin-bottom: 14px;
}
.product-desc {
  color: var(--gray-700);
  margin-bottom: 24px;
  line-height: 1.7;
}
.field-label {
  font-size: 14px; font-weight: 600;
  color: var(--navy-900);
  margin-bottom: 10px;
  display: block;
}
.amount-options {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(85px, 1fr));
  gap: 10px;
  margin-bottom: 22px;
}
.amount-btn {
  padding: 14px 8px;
  border: 2px solid var(--gray-200);
  background: var(--white);
  border-radius: 10px;
  font-weight: 600; font-size: 15px;
  color: var(--navy-900);
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
}
.amount-btn:hover { border-color: var(--gold); }
.amount-btn.selected {
  background: var(--navy-900);
  color: var(--gold);
  border-color: var(--navy-900);
}

.qty-row { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.qty-control {
  display: inline-flex; align-items: center;
  border: 1.5px solid var(--gray-200);
  border-radius: 10px;
  overflow: hidden;
}
.qty-control button {
  width: 38px; height: 42px;
  background: var(--white);
  border: none; font-size: 18px; font-weight: 600;
  color: var(--navy-900);
}
.qty-control button:hover { background: var(--gray-100); }
.qty-control input {
  width: 50px; height: 42px;
  border: none; text-align: center;
  font-weight: 600; font-size: 15px;
  outline: none;
}

.input, .textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: 10px;
  font-size: 15px;
  outline: none;
  background: var(--white);
  transition: border-color var(--transition);
  margin-bottom: 14px;
}
.input:focus, .textarea:focus {
  border-color: var(--navy-900);
}
.textarea { min-height: 90px; resize: vertical; }

.price-summary {
  background: var(--gray-100);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 18px;
  display: flex; justify-content: space-between; align-items: center;
}
.price-label { color: var(--gray-500); font-size: 14px; }
.price-value {
  font-size: 24px; font-weight: 700;
  color: var(--navy-900);
}
.price-value .currency {
  font-size: 14px; font-weight: 500;
  color: var(--gold-dark);
  margin-right: 4px;
}

.terms-link {
  color: var(--gold-dark) !important;
  text-decoration: underline;
  font-weight: 500;
}
.terms-link:hover {
  color: var(--gold) !important;
  text-decoration: none;
}

/* -------- Checkout -------- */
.checkout-wrap {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  padding: 50px 0;
}
.checkout-form, .checkout-summary {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 30px;
  border: 1px solid var(--gray-200);
}
.checkout-summary { background: var(--gray-100); position: sticky; top: 90px; align-self: start; }
.summary-row { display: flex; justify-content: space-between; padding: 10px 0; }
.summary-row .label { color: var(--gray-500); }
.summary-row .value { font-weight: 600; }
.summary-divider { height: 1px; background: var(--gray-200); margin: 12px 0; }
.summary-total .value {
  font-size: 22px; color: var(--navy-900);
}
.checkbox-row {
  display: flex; align-items: flex-start; gap: 10px;
  margin: 16px 0 20px;
  font-size: 14px; color: var(--gray-700);
}
.checkbox-row input { margin-top: 3px; }
.error-msg {
  background: #FEF2F2;
  color: var(--danger);
  border: 1px solid #FEE2E2;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 14px;
  margin-bottom: 14px;
  display: none;
}
.error-msg.show { display: block; }

/* -------- Status badge -------- */
.badge {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.badge-pending  { background: #FEF3C7; color: #92400E; }
.badge-approved { background: #DBEAFE; color: #1E40AF; }
.badge-rejected { background: #FEE2E2; color: #991B1B; }
.badge-delivered{ background: #D1FAE5; color: #065F46; }
.badge-paid     { background: #D1FAE5; color: #065F46; }
.badge-unpaid   { background: #F3F4F6; color: #374151; }
.badge-refunded { background: #E0E7FF; color: #3730A3; }

/* -------- Order status page -------- */
.status-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
}
.status-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--gray-200);
}
.status-row:last-child { border-bottom: none; }
.status-row .lbl { color: var(--gray-500); font-size: 14px; }
.status-row .val { font-weight: 500; }
.code-list {
  background: var(--navy-900);
  color: var(--gold);
  padding: 16px;
  border-radius: 10px;
  font-family: "SF Mono", Menlo, monospace;
  margin: 8px 0;
}
.code-list .code-item {
  padding: 8px 0;
  border-bottom: 1px dashed rgba(212,175,55,.3);
  display: flex; justify-content: space-between; align-items: center;
}
.code-list .code-item:last-child { border-bottom: none; }
.copy-btn {
  font-size: 12px;
  background: var(--gold);
  color: var(--navy-900);
  border: none;
  padding: 4px 10px;
  border-radius: 6px;
  font-weight: 600;
}

/* -------- Footer -------- */
.footer {
  background: var(--navy-900);
  color: rgba(255,255,255,.75);
  padding: 50px 0 30px;
  margin-top: auto;
}
.footer .grid-foot {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 30px;
}
.footer h4 {
  color: var(--white);
  font-size: 14px;
  margin: 0 0 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.footer p, .footer a {
  color: rgba(255,255,255,.7);
  font-size: 14px;
  line-height: 1.8;
  display: block;
}
.footer a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 20px;
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,.5);
}

/* -------- WhatsApp floating button -------- */
.wa-button {
  position: fixed;
  bottom: 24px; right: 24px;
  width: 56px; height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(37,211,102,.4);
  z-index: 100;
  color: white;
  transition: transform var(--transition);
}
.wa-button:hover { transform: scale(1.08); }

/* -------- How it works -------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 24px;
}
.step {
  background: var(--white);
  padding: 28px 22px;
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  text-align: center;
}
.step-num {
  width: 44px; height: 44px;
  background: var(--navy-900);
  color: var(--gold);
  border-radius: 50%;
  display: inline-flex;
  align-items: center; justify-content: center;
  font-weight: 700; font-size: 18px;
  margin-bottom: 14px;
}
.step h4 { margin: 0 0 6px; font-size: 16px; }
.step p { margin: 0; color: var(--gray-500); font-size: 14px; }

/* -------- Loading state -------- */
.spinner {
  width: 18px; height: 18px;
  border: 2.5px solid rgba(255,255,255,.3);
  border-top-color: var(--white);
  border-radius: 50%;
  display: inline-block;
  animation: spin .8s linear infinite;
}
.btn-primary .spinner {
  border-color: rgba(10,15,44,.2);
  border-top-color: var(--navy-900);
}
@keyframes spin { to { transform: rotate(360deg); } }

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

/* -------- Responsive -------- */
@media (max-width: 768px) {
  .product-wrap, .checkout-wrap, .footer .grid-foot {
    grid-template-columns: 1fr;
  }
  .checkout-summary { position: static; }
  .nav-links { gap: 14px; }
  .nav-links a { font-size: 13px; }
  .hero { padding: 60px 0 50px; }
  .status-row { grid-template-columns: 1fr; gap: 4px; }
}
