/* ============================================================
   Gladel Solutions — Ghana Jersey Shop
   Bold sporty / modern · brand #febb10 · Ubuntu
   ============================================================ */

:root {
  --brand: #febb10;
  --brand-dark: #d99e00;
  --ink: #14130f;
  --ink-soft: #55514a;
  --bg: #f6f5f1;
  --card: #ffffff;
  --line: #e7e4dd;
  --green: #1f8a4c;      /* Ghana green / WhatsApp-ish accent */
  --radius: 10px;
  --shadow: 0 10px 30px rgba(20, 19, 15, 0.10);
  --maxw: 1250px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Ubuntu", system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

a { color: inherit; text-decoration: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: none; cursor: pointer; font-family: inherit; font-weight: 700;
  font-size: 15px; padding: 13px 22px; border-radius: 10px;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: var(--ink); box-shadow: 0 6px 18px rgba(254,187,16,.45); }
.btn-primary:hover { background: var(--brand-dark); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: var(--ink); color: #fff;
  border-bottom: 3px solid var(--brand);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { height: 40px; width: auto; display: block; }
@media (max-width: 600px) { .brand-logo { height: 32px; } }

.cart-btn {
  position: relative; background: rgba(255,255,255,.08); color: #fff;
  border: 1px solid rgba(255,255,255,.18); width: 46px; height: 46px;
  border-radius: 10px; cursor: pointer; display: grid; place-items: center;
  transition: background .15s ease;
}
.cart-btn:hover { background: rgba(255,255,255,.16); }
.cart-count {
  position: absolute; top: -7px; right: -7px; min-width: 22px; height: 22px;
  padding: 0 6px; background: var(--brand); color: var(--ink);
  border-radius: 10px; font-size: 12px; font-weight: 700;
  display: grid; place-items: center;
}

/* ---------- Hero ---------- */
.hero {
  background: #000;
  color: #fff; padding: 72px 0 80px; text-align: center;
}
.hero-kicker {
  display: inline-block; font-weight: 500; letter-spacing: .5px;
  background: rgba(254,187,16,.16); color: var(--brand);
  padding: 7px 16px; border-radius: 10px; margin-bottom: 22px; font-size: 14px;
}
.hero h1 { font-size: clamp(34px, 6vw, 60px); line-height: 1.05; font-weight: 700; letter-spacing: -1px; }
.hero h1 span { color: var(--brand); }
.hero-sub { max-width: 560px; margin: 18px auto 30px; color: #d7d4cc; font-size: 17px; }
.hero-cta { font-size: 16px; padding: 15px 34px; }

/* ---------- Section ---------- */
.section-title {
  font-size: 28px; font-weight: 700; letter-spacing: -.5px;
  margin: 56px 0 24px; position: relative; padding-left: 16px;
}
.section-title::before {
  content: ""; position: absolute; left: 0; top: 4px; bottom: 4px;
  width: 6px; border-radius: 10px; background: var(--brand);
}

/* ---------- Product grid ---------- */
.grid {
  display: grid; gap: 1rem; padding-bottom: 70px;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
}
/* PUMA-style: flat, borderless tile + name/price beneath */
.card { background: transparent; display: flex; flex-direction: column; }

.card-media {
  position: relative; aspect-ratio: 1 / 1; background: #fafafa;
  overflow: hidden; border-radius: 10px;
}
.card-media img { width: 100%; height: 100%; object-fit: cover; }

.card-tag {
  position: absolute; top: 10px; left: 10px; z-index: 2; background: var(--ink); color: #fff;
  font-size: 10px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase;
  padding: 4px 8px; border-radius: 10px;
}
.card-tag.sale { background: #c0392b; }

/* category filter bar */
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.filter-btn {
  font-family: inherit; font-size: 14px; font-weight: 500; cursor: pointer;
  background: #fff; color: var(--ink); border: 1.5px solid var(--line);
  padding: 9px 18px; border-radius: 10px; transition: all .12s ease;
}
.filter-btn:hover { border-color: var(--ink); }
.filter-btn.active { background: var(--ink); border-color: var(--ink); color: #fff; }

/* size selector — always visible, static strip below the card */
.size-flyout { padding: 10px 2px 4px; }
.flyout-label {
  display: block; font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .5px; color: var(--ink-soft); margin-bottom: 8px;
}
.flyout-sizes { display: flex; flex-wrap: wrap; gap: 6px; }
.size-chip {
  flex: 1 1 auto; min-width: 38px; border: 1px solid var(--line); background: #fff; color: var(--ink);
  font-family: inherit; font-size: 13px; font-weight: 500; cursor: pointer;
  padding: 9px 6px; border-radius: 10px; transition: all .12s ease;
}
.size-chip.active { background: var(--brand); border-color: var(--brand); color: var(--ink); font-weight: 700; }
.size-chip:hover { border-color: var(--ink); background: var(--ink); color: #fff; }
.size-chip.added { background: var(--green); border-color: var(--green); color: #fff; }

.card-body { padding: 12px 2px 4px; display: flex; flex-direction: column; gap: 4px; }
.card-name { font-size: 14px; font-weight: 500; line-height: 1.35; color: var(--ink); }
.card-price { font-size: 15px; font-weight: 700; color: var(--ink); display: flex; gap: 8px; align-items: baseline; }
.price-now.sale { color: #c0392b; }
.price-old { font-size: 13px; font-weight: 500; color: var(--ink-soft); text-decoration: line-through; }

/* hover image-swap is disabled for now (re-enable when second images exist) */

/* ---------- Cart drawer ---------- */
.drawer-overlay {
  position: fixed; inset: 0; background: rgba(20,19,15,.5); z-index: 50;
  opacity: 0; transition: opacity .2s ease;
}
.drawer-overlay.show { opacity: 1; }

.cart-drawer {
  position: fixed; top: 0; right: 0; height: 100%; width: 400px; max-width: 90vw;
  background: var(--bg); z-index: 60; display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .25s ease; box-shadow: var(--shadow);
}
.cart-drawer.open { transform: translateX(0); }

.cart-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px; border-bottom: 1px solid var(--line); background: var(--card);
}
.cart-head h3 { font-size: 20px; font-weight: 700; }
.icon-btn {
  background: none; border: none; font-size: 30px; line-height: 1; cursor: pointer;
  color: var(--ink-soft); width: 36px; height: 36px; border-radius: 10px;
}
.icon-btn:hover { background: var(--line); color: var(--ink); }

.cart-body { flex: 1; overflow-y: auto; padding: 16px 20px; }
.cart-empty { text-align: center; color: var(--ink-soft); padding: 50px 0; }

.cart-item { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cart-item img { width: 64px; height: 64px; object-fit: contain; background: #fff; border-radius: 10px; border: 1px solid var(--line); }
.ci-main { flex: 1; min-width: 0; }
.ci-name { font-size: 14px; font-weight: 500; line-height: 1.3; }
.ci-meta { font-size: 12px; color: var(--ink-soft); margin-top: 2px; }
.ci-price { font-size: 14px; font-weight: 700; margin-top: 4px; }
.ci-controls { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.qty {
  display: flex; align-items: center; border: 1px solid var(--line);
  border-radius: 10px; overflow: hidden; background: #fff;
}
.qty button { border: none; background: none; width: 28px; height: 28px; font-size: 16px; cursor: pointer; color: var(--ink); }
.qty button:hover { background: var(--brand); }
.qty span { min-width: 26px; text-align: center; font-size: 14px; font-weight: 700; }
.remove { background: none; border: none; color: var(--ink-soft); cursor: pointer; font-size: 12px; text-decoration: underline; }
.remove:hover { color: #c0392b; }

.cart-foot { padding: 18px 20px; border-top: 1px solid var(--line); background: var(--card); }
.cart-total-row { display: flex; justify-content: space-between; align-items: baseline; font-weight: 700; font-size: 18px; margin-bottom: 14px; }
#cartTotal { font-size: 22px; }

.pay-label { display: block; font-size: 13px; font-weight: 700; color: var(--ink-soft); margin-bottom: 8px; text-transform: uppercase; letter-spacing: .4px; }
.pay-options { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.pay-opt {
  display: flex; align-items: center; gap: 10px; border: 1.5px solid var(--line);
  border-radius: 10px; padding: 11px 13px; cursor: pointer; font-size: 14px; font-weight: 500;
  transition: border-color .12s ease, background .12s ease;
}
.pay-opt:hover { border-color: var(--brand); }
.pay-opt.checked { border-color: var(--brand); background: rgba(254,187,16,.10); }
.pay-opt input { accent-color: var(--brand-dark); width: 17px; height: 17px; }

.checkout-btn { width: 100%; background: var(--green); color: #fff; box-shadow: 0 6px 18px rgba(31,138,76,.4); }
.checkout-btn .ico-pay { display: none; }
.checkout-btn.is-hubtel .ico-wa { display: none; }
.checkout-btn.is-hubtel .ico-pay { display: inline; }
.checkout-btn:hover { background: #18703d; }
.checkout-btn:disabled { background: var(--line); color: var(--ink-soft); cursor: not-allowed; box-shadow: none; }
.cart-note { font-size: 12px; color: var(--ink-soft); text-align: center; margin-top: 10px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #fff; padding: 34px 0; text-align: center; margin-top: 30px; }
.site-footer .muted { color: #b8b4ab; font-size: 14px; margin-top: 6px; }
.site-footer a { color: var(--brand); font-weight: 700; }

/* ---------- Checkout modal ---------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 70; display: grid; place-items: center;
  background: rgba(20,19,15,.55); padding: 20px;
  opacity: 0; transition: opacity .2s ease;
}
.modal-overlay.show { opacity: 1; }
.modal-overlay[hidden] { display: none; }
.modal {
  width: 100%; max-width: 440px; background: var(--bg); border-radius: 10px;
  box-shadow: var(--shadow); overflow: hidden; transform: translateY(12px);
  transition: transform .2s ease;
}
.modal-overlay.show .modal { transform: translateY(0); }
.modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px; background: var(--ink); color: #fff;
}
.modal-head h3 { font-size: 19px; font-weight: 700; }
.modal-head .icon-btn { color: #fff; }
.modal-head .icon-btn:hover { background: rgba(255,255,255,.15); }
.modal-body { padding: 20px; }
.modal-intro { font-size: 14px; color: var(--ink-soft); margin-bottom: 18px; }
.modal-intro strong { color: var(--ink); }

.field { display: block; margin-bottom: 14px; }
.field span { display: block; font-size: 13px; font-weight: 700; color: var(--ink-soft); margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%; font-family: inherit; font-size: 15px; color: var(--ink);
  background: #fff; border: 1.5px solid var(--line); border-radius: 10px;
  padding: 11px 13px; transition: border-color .12s ease;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--brand); }
.field textarea { resize: vertical; }

.form-error {
  background: rgba(192,57,43,.10); color: #c0392b; border: 1px solid rgba(192,57,43,.3);
  border-radius: 10px; padding: 10px 13px; font-size: 13px; font-weight: 500; margin-bottom: 14px;
}

.pay-submit { width: 100%; background: var(--green); color: #fff; box-shadow: 0 6px 18px rgba(31,138,76,.4); }
.pay-submit:hover { background: #18703d; }
.pay-submit:disabled { background: var(--line); color: var(--ink-soft); cursor: not-allowed; box-shadow: none; }
.btn-spinner {
  width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.5); border-top-color: #fff;
  border-radius: 50%; animation: spin .7s linear infinite; display: inline-block;
}
.btn-spinner[hidden] { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Toast ---------- */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--ink); color: #fff; padding: 13px 22px; border-radius: 10px;
  font-size: 14px; font-weight: 500; z-index: 80; opacity: 0; pointer-events: none;
  transition: opacity .2s ease, transform .2s ease; box-shadow: var(--shadow);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

@media (max-width: 600px) {
  .hero { padding: 54px 0 60px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
}
