/* =========================================================
   Hawaii Creator – PSP Review Mockup
   Operated by FGPAYMENT (Merchant of Record)
   ========================================================= */

:root {
  --color-bg: #f6f8fb;
  --color-surface: #ffffff;
  --color-text: #1a2233;
  --color-text-sub: #5a6272;
  --color-muted: #8a93a3;
  --color-border: #e3e7ee;
  --color-primary: #1d6bff;
  --color-primary-dark: #1554cc;
  --color-accent: #0c2a52;
  --color-success: #16a06b;
  --color-danger: #d83a3a;
  --color-hero-bg: #e9eff9;
  --shadow-sm: 0 1px 2px rgba(20, 35, 70, 0.06);
  --shadow-md: 0 4px 16px rgba(20, 35, 70, 0.08);
  --radius: 10px;
  --radius-sm: 6px;
  --container: 1200px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", "Hiragino Sans", "Yu Gothic UI", "Meiryo", system-ui, -apple-system, sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--color-primary);
  text-decoration: none;
}
a:hover { text-decoration: underline; }

img { max-width: 100%; display: block; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */
.site-header {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  color: var(--color-accent);
}
.brand-mark {
  display: inline-block;
  width: 26px;
  height: 26px;
  background: linear-gradient(135deg, #c7c9cc 0%, #ffd84d 30%, #16c0b0 55%, #1d6bff 80%, #ff5a6f 100%);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}
.nav {
  display: flex;
  gap: 22px;
  align-items: center;
}
.nav a {
  color: var(--color-text);
  font-size: 14px;
  font-weight: 500;
}
.nav a.active { color: var(--color-primary); }

.toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
}
.toolbar select,
.toolbar .cart-btn {
  height: 34px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: #fff;
  font-size: 13px;
  padding: 0 10px;
  cursor: pointer;
  color: var(--color-text);
}
.toolbar .cart-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  padding: 0 14px;
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}
.toolbar .cart-btn:hover { background: var(--color-primary-dark); }
.cart-count {
  background: rgba(255,255,255,0.25);
  border-radius: 999px;
  padding: 1px 8px;
  font-size: 12px;
}

/* ---------- Hero ---------- */
.hero {
  background: var(--color-hero-bg);
  padding: 64px 0;
  text-align: center;
}
.hero h1 {
  margin: 0 0 14px;
  font-size: 40px;
  letter-spacing: -0.5px;
  color: var(--color-accent);
}
.hero p {
  margin: 0;
  color: var(--color-text-sub);
  font-size: 16px;
}
.hero .mor-note {
  margin-top: 10px;
  font-size: 13px;
  color: var(--color-muted);
}

/* ---------- Section ---------- */
section.block {
  padding: 48px 0;
}
section.block h2 {
  margin: 0 0 24px;
  font-size: 22px;
  color: var(--color-accent);
}

/* ---------- Product Grid ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.card .thumb {
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #dbe6f8 0%, #c7d5ee 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #5a6c8c;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
}
.card .body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.card .name { font-weight: 600; font-size: 15px; color: var(--color-text); }
.card .meta { font-size: 12px; color: var(--color-muted); }
.card .price { font-weight: 700; color: var(--color-accent); font-size: 16px; margin-top: 6px; }
.card .sold-by { font-size: 12px; color: var(--color-primary); margin-top: 2px; }
.card .actions { margin-top: auto; padding-top: 10px; }
.card .actions a { font-size: 13px; }

/* ---------- Provider list ---------- */
.providers {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.provider {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 16px 18px;
}
.provider .pname { font-weight: 600; font-size: 14px; }
.provider .ptag { font-size: 12px; color: var(--color-muted); margin-top: 4px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 22px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  background: var(--color-primary);
  color: #fff;
  text-decoration: none;
}
.btn:hover { background: var(--color-primary-dark); text-decoration: none; }
.btn.block { width: 100%; }
.btn.ghost {
  background: #fff;
  color: var(--color-text);
  border-color: var(--color-border);
}
.btn.ghost:hover { background: #f3f5fa; }
.btn:disabled {
  background: #b9c2d4;
  cursor: not-allowed;
}

/* ---------- Marketplace layout ---------- */
.market {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 28px;
  padding: 32px 0;
}
.filters {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 18px 18px 20px;
  height: fit-content;
  position: sticky;
  top: 84px;
}
.filters h3 { margin: 0 0 12px; font-size: 14px; color: var(--color-accent); }
.filters .group { margin-bottom: 18px; }
.filters .group label {
  display: flex; gap: 8px; align-items: center;
  font-size: 13px; color: var(--color-text-sub); padding: 4px 0;
  cursor: pointer;
}
.filters .group input[type="checkbox"],
.filters .group input[type="radio"] { accent-color: var(--color-primary); }
.filters .range { display: flex; gap: 8px; }
.filters .range input {
  width: 100%;
  height: 32px;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 0 8px;
  font-size: 13px;
}

/* ---------- Product detail ---------- */
.detail {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin: 28px 0;
}
.detail .preview {
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #dbe6f8 0%, #c7d5ee 100%);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  color: #5a6c8c; font-weight: 700; letter-spacing: 1px;
}
.detail h1 { margin: 0 0 6px; font-size: 26px; color: var(--color-accent); }
.detail .price-row {
  margin-top: 12px;
  display: flex; align-items: baseline; gap: 14px;
}
.detail .price-row .price { font-size: 28px; font-weight: 700; color: var(--color-accent); }
.detail .price-row .price-sub { color: var(--color-muted); font-size: 14px; }
.detail .meta-list {
  list-style: none; padding: 0; margin: 14px 0 0;
  border-top: 1px solid var(--color-border);
}
.detail .meta-list li {
  padding: 10px 0; border-bottom: 1px solid var(--color-border);
  display: flex; justify-content: space-between; font-size: 13px;
}
.detail .meta-list .k { color: var(--color-muted); }
.detail .sold-banner {
  margin-top: 14px;
  background: #eaf2ff;
  border: 1px solid #c9dcff;
  color: #1554cc;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
}
.detail .actions { margin-top: 18px; display: flex; gap: 10px; }

/* ---------- Cart / Checkout ---------- */
.two-col {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
  padding: 32px 0;
}
.panel {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 24px;
}
.panel h2 { margin: 0 0 16px; font-size: 18px; color: var(--color-accent); }
.panel h3 { margin: 18px 0 10px; font-size: 14px; color: var(--color-text-sub); }

.cart-item {
  display: grid;
  grid-template-columns: 80px 1fr auto auto;
  gap: 14px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--color-border);
}
.cart-item:last-child { border-bottom: none; }
.cart-item .ci-thumb {
  width: 80px; height: 60px;
  background: linear-gradient(135deg, #dbe6f8 0%, #c7d5ee 100%);
  border-radius: 6px;
}
.cart-item .ci-name { font-weight: 600; font-size: 14px; }
.cart-item .ci-meta { font-size: 12px; color: var(--color-muted); }
.cart-item .ci-price { font-weight: 700; color: var(--color-accent); }
.cart-item .ci-remove {
  background: none; border: none; color: var(--color-danger);
  cursor: pointer; font-size: 13px;
}
.empty {
  text-align: center;
  color: var(--color-muted);
  padding: 40px 0;
}

.summary { position: sticky; top: 84px; }
.summary .row {
  display: flex; justify-content: space-between;
  padding: 6px 0; font-size: 14px;
}
.summary .row.total {
  border-top: 1px solid var(--color-border);
  margin-top: 8px; padding-top: 12px;
  font-weight: 700; font-size: 16px;
  color: var(--color-accent);
}
.summary .descriptor {
  margin-top: 12px;
  background: #f3f6fc;
  border: 1px dashed #b9c8e5;
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 12px;
  color: #1554cc;
}
.summary .mor-note {
  margin-top: 10px; font-size: 12px; color: var(--color-muted);
}

/* ---------- Forms ---------- */
.field { margin-bottom: 14px; }
.field label {
  display: block;
  font-size: 12px;
  color: var(--color-text-sub);
  margin-bottom: 6px;
  font-weight: 600;
  letter-spacing: 0.3px;
}
.field input,
.field select {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  background: #fff;
  font-family: inherit;
}
.field input:focus,
.field select:focus {
  outline: 2px solid #b6cbff;
  border-color: var(--color-primary);
}
.field .row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.checkbox {
  display: flex; gap: 8px; align-items: flex-start;
  font-size: 13px; color: var(--color-text-sub);
  padding: 8px 0;
}
.checkbox input { accent-color: var(--color-primary); margin-top: 3px; }

/* ---------- Payment ---------- */
.pay-box {
  max-width: 520px;
  margin: 32px auto;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px;
}
.pay-box .secure-lock {
  display: inline-flex; gap: 6px; align-items: center;
  color: var(--color-success); font-weight: 600; font-size: 13px;
  margin-bottom: 16px;
}
.pay-box .brands {
  display: flex; gap: 10px; align-items: center;
  margin-top: 14px;
}
.brand-pill {
  height: 28px; padding: 0 12px;
  display: inline-flex; align-items: center;
  border-radius: 4px; font-weight: 700; font-size: 12px;
  letter-spacing: 1px; color: #fff;
}
.brand-pill.visa { background: #1a1f71; }
.brand-pill.mc { background: linear-gradient(90deg, #eb001b 0 50%, #f79e1b 50% 100%); }
.brand-pill.threeds { background: #2a3a55; }

/* ---------- Result page ---------- */
.result {
  max-width: 640px; margin: 60px auto;
  background: #fff; border: 1px solid var(--color-border);
  border-radius: var(--radius); padding: 40px; text-align: center;
}
.result .ok-icon {
  width: 64px; height: 64px; margin: 0 auto 18px;
  border-radius: 50%;
  background: #e8f8f0;
  color: var(--color-success);
  display: flex; align-items: center; justify-content: center;
  font-size: 30px;
}
.result h1 { margin: 0 0 8px; color: var(--color-accent); }
.result .order-id { color: var(--color-muted); font-size: 13px; }
.result .actions { margin-top: 22px; display: flex; gap: 10px; justify-content: center; }

/* ---------- Delivery ---------- */
.dl-list { list-style: none; padding: 0; margin: 0; }
.dl-list li {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--color-border);
}
.dl-list li:last-child { border-bottom: none; }
.dl-list .dl-name { font-weight: 600; }
.dl-list .dl-meta { font-size: 12px; color: var(--color-muted); }

/* ---------- Footer ---------- */
.site-footer {
  background: #0c1426;
  color: #c9d2e3;
  margin-top: 48px;
  padding: 32px 0 24px;
  font-size: 13px;
}
.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
}
.site-footer a { color: #c9d2e3; }
.site-footer .legal { color: #8590ad; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .market { grid-template-columns: 1fr; }
  .filters { position: static; }
  .detail { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .summary { position: static; }
  .nav { display: none; }
}
@media (max-width: 600px) {
  .hero h1 { font-size: 28px; }
  .toolbar select { display: none; }
  .cart-item { grid-template-columns: 60px 1fr auto; }
  .cart-item .ci-remove { grid-column: 2 / 4; justify-self: end; }
}
