/*
Theme Name: AinePay Shop
Theme URI: https://ainepay.com
Author: AinePay
Description: A warm, minimal storefront for the AinePay welcome email demo.
Version: 1.0.0
License: GPL-2.0-or-later
Text Domain: ainepay-shop
*/

:root {
  --ink: #18130f;
  --muted: #75685d;
  --paper: #fff8ef;
  --paper-2: #f7efe4;
  --surface: #fffdf8;
  --line: #eadfce;
  --brand: #5c6cff;
  --brand-2: #ff8d6b;
  --accent: #fff0d8;
  --shadow: 0 24px 70px rgba(96, 67, 35, 0.14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(180deg, var(--paper), #fffdf9 62%, var(--paper-2));
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.wrap { width: 100%; max-width: 1060px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 48px); }

.site-header {
  min-height: 70px; padding: 16px 0;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
}
.brand { display: inline-flex; align-items: center; }
.brand-logo { width: 150px; height: auto; display: block; }
.screen-reader-text {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.nav { display: flex; align-items: center; gap: 10px; }
.nav a { color: var(--muted); font-size: 0.94rem; }
.nav a:last-child {
  color: var(--ink); background: var(--surface); border: 1px solid var(--line);
  padding: 9px 14px; border-radius: 999px;
}

.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 0 24px; border-radius: 999px;
  font-weight: 750; font-size: 1rem; transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.button:hover { transform: translateY(-1px); }
.button.primary {
  color: #fff; background: linear-gradient(135deg, var(--brand), #7d63ff);
  box-shadow: 0 16px 34px rgba(92, 108, 255, 0.28);
}
.button.secondary { color: var(--ink); background: var(--surface); border: 1px solid var(--line); }

.shop-hero {
  min-height: min(660px, calc(100vh - 70px));
  display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(300px, 0.72fr);
  align-items: center; gap: clamp(34px, 7vw, 86px);
  padding-top: clamp(24px, 5vw, 58px); padding-bottom: clamp(38px, 6vw, 68px);
}
.eyebrow {
  display: inline-flex; margin: 0 0 16px; padding: 7px 13px; border-radius: 999px;
  color: #7a4a2d; background: var(--accent); font-weight: 750; font-size: 0.86rem;
}
.shop-copy h1 {
  max-width: 8ch; margin: 0; font-size: clamp(3rem, 7vw, 5.7rem);
  line-height: 0.95; letter-spacing: 0; text-wrap: balance;
}
.hero-text {
  max-width: 22ch; margin: 20px 0 0; color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.35rem);
}
.price-line {
  display: flex; align-items: baseline; gap: 12px; margin: 22px 0 22px;
  color: var(--muted); font-weight: 700;
}
.price { color: var(--ink); font-size: clamp(2rem, 4vw, 3rem); line-height: 1; }

.product-card {
  position: relative; overflow: hidden; display: grid; gap: 28px;
  min-height: 400px; padding: clamp(26px, 5vw, 40px); border-radius: 8px;
  background: var(--surface); border: 1px solid rgba(234, 223, 206, 0.85);
  box-shadow: var(--shadow);
}
.product-card::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 42%;
  background: linear-gradient(135deg, rgba(255, 141, 107, 0.18), rgba(92, 108, 255, 0.16));
}
.product-card > * { position: relative; }
.mail-art {
  width: min(220px, 58vw); aspect-ratio: 1.35; align-self: end;
  display: grid; place-items: center; border-radius: 8px;
  background: #fff; border: 1px solid var(--line); box-shadow: 0 20px 45px rgba(96, 67, 35, 0.12);
}
.mail-flap {
  position: absolute; width: min(220px, 58vw); aspect-ratio: 1.35;
  clip-path: polygon(0 0, 50% 54%, 100% 0, 100% 100%, 0 100%);
  border-radius: 8px; background: linear-gradient(180deg, #fff9ef, #ffe7c4);
}
.mail-heart {
  position: relative; display: grid; place-items: center; width: 54px; height: 54px;
  color: #fff; font-weight: 850; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
}
.product-kicker { margin: 0 0 8px; color: var(--muted); font-weight: 750; font-size: 0.86rem; }
.product-card h2 { margin: 0; font-size: clamp(1.7rem, 3vw, 2.3rem); line-height: 1.05; }
.product-card p { max-width: 22ch; margin: 10px 0 0; color: var(--muted); font-size: 1.02rem; }
.product-foot {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line);
  color: var(--muted); font-size: 0.95rem;
}
.product-foot strong { color: var(--ink); font-size: 1.2rem; }

.trust-strip {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
  margin-top: -36px; padding-bottom: 78px;
}
.trust-strip div {
  padding: 18px 20px; border-radius: 8px; background: rgba(255, 253, 248, 0.72);
  border: 1px solid var(--line);
}
.trust-strip strong { display: block; font-size: 1rem; }
.trust-strip span { color: var(--muted); font-size: 0.94rem; }

.soft-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 22px;
  padding-top: 34px; padding-bottom: 76px; border-top: 1px solid var(--line);
}
.soft-cta p { margin: 0; font-size: clamp(1.35rem, 3vw, 2.1rem); font-weight: 780; }

.site-footer { padding: 28px 0; color: var(--muted); font-size: 0.9rem; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

.woocommerce-page .wrap.content { padding-top: 42px; padding-bottom: 64px; }
.page-title { font-size: clamp(1.8rem, 4vw, 2.8rem); line-height: 1.05; margin: 0 0 24px; }
.woocommerce-form-coupon-toggle, .woocommerce-additional-fields { display: none; }
.woocommerce form .form-row { margin-bottom: 18px; }
.woocommerce input.input-text { min-height: 48px; border-radius: 8px; border: 1px solid var(--line); padding: 10px 14px; }

@media (max-width: 860px) {
  .header-inner { align-items: flex-start; }
  .brand-logo { width: 136px; }
  .nav a:first-child { display: none; }
  .shop-hero { min-height: auto; grid-template-columns: 1fr; padding-top: 34px; }
  .shop-copy h1 { max-width: 7ch; }
  .product-card { min-height: 390px; }
  .trust-strip { grid-template-columns: 1fr; margin-top: 0; padding-bottom: 54px; }
  .soft-cta { align-items: flex-start; flex-direction: column; }
}
