/* WILLINGS Apparel — dark premium theme */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --bg: #0a0a0a;
  --bg-soft: #101010;
  --card: #141414;
  --card-hover: #1a1a1a;
  --border: #262626;
  --text: #f2ede1;
  --muted: #a39c8d;
  --accent: #c9a96a;
  --accent-dim: #a5874f;
  --danger: #c0564d;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Inter', -apple-system, 'Segoe UI', sans-serif;
  --maxw: 1240px;
  --radius: 4px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { overflow-x: hidden; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, .serif { font-family: var(--serif); font-weight: 500; line-height: 1.2; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
section { padding: 96px 0; }
.eyebrow {
  font-size: 12px; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 18px; font-weight: 500;
}
.section-title { font-size: clamp(34px, 4.5vw, 54px); margin-bottom: 14px; }
.section-sub { color: var(--muted); max-width: 640px; margin-bottom: 48px; font-size: 17px; }

/* ---------- header ---------- */
header.site {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(10,10,10,0.82); backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 74px; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.brand { font-family: var(--serif); font-size: 26px; letter-spacing: 0.28em; font-weight: 600; }
.brand small { display: block; font-family: var(--sans); font-size: 9px; letter-spacing: 0.5em; color: var(--muted); font-weight: 400; margin-top: 2px; }
.nav-links { display: flex; gap: 34px; align-items: center; }
.nav-links a { font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); transition: color .25s; font-weight: 400; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-icons { display: flex; gap: 22px; align-items: center; }
.nav-icons a { position: relative; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.nav-icons a:hover { color: var(--text); }
.cart-count {
  position: absolute; top: -9px; right: -14px; background: var(--accent); color: #0a0a0a;
  font-size: 10px; font-weight: 600; min-width: 18px; height: 18px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center; padding: 0 5px;
}
.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.hamburger span { display: block; width: 26px; height: 2px; background: var(--text); margin: 6px 0; transition: .3s; }
main { padding-top: 74px; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: calc(100vh - 74px); display: flex; align-items: flex-end; overflow: hidden; padding: 0; }
.hero img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,10,10,0.92) 8%, rgba(10,10,10,0.35) 55%, rgba(10,10,10,0.25) 100%); }
.hero-inner { position: relative; z-index: 2; padding-bottom: 110px; }
.hero h1 { font-size: clamp(52px, 8vw, 108px); letter-spacing: 0.02em; margin: 18px 0 20px; }
.hero p { color: #d8d2c2; max-width: 560px; font-size: 18px; margin-bottom: 36px; }
.btn {
  display: inline-block; padding: 15px 42px; font-size: 13px; letter-spacing: 0.22em; text-transform: uppercase;
  border: 1px solid var(--accent); color: var(--text); background: transparent; cursor: pointer;
  transition: background .3s, color .3s; font-weight: 500; border-radius: var(--radius); font-family: var(--sans);
}
.btn:hover { background: var(--accent); color: #0a0a0a; }
.btn.solid { background: var(--accent); color: #0a0a0a; }
.btn.solid:hover { background: var(--accent-dim); border-color: var(--accent-dim); }
.btn.ghost { border-color: var(--border); color: var(--muted); }
.btn.ghost:hover { border-color: var(--accent); color: var(--text); background: transparent; }
.btn-row { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- cards / grids ---------- */
.grid { display: grid; gap: 28px; }
.grid.c3 { grid-template-columns: repeat(3, 1fr); }
.grid.c4 { grid-template-columns: repeat(4, 1fr); }
.grid.c2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--card); border: 1px solid rgba(255,255,255,0.05); border-radius: var(--radius);
  overflow: hidden; transition: transform .35s, border-color .35s, background .35s; position: relative;
}
.card:hover { transform: translateY(-6px); border-color: rgba(201,169,106,0.35); background: var(--card-hover); }
.card .img-wrap { aspect-ratio: 4/5; overflow: hidden; background: #1c1c1c; }
.card .img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.card:hover .img-wrap img { transform: scale(1.05); }
.card .body { padding: 22px 24px 26px; }
.card .body h3 { font-size: 24px; margin-bottom: 8px; }
.card .body p { color: var(--muted); font-size: 14.5px; }
.card .price { color: var(--accent); font-weight: 500; letter-spacing: 0.06em; margin-top: 10px; font-size: 17px; }
.card .moq { color: var(--muted); font-size: 12.5px; letter-spacing: 0.08em; margin-top: 4px; }
.badge {
  position: absolute; top: 14px; left: 14px; background: rgba(10,10,10,0.75); backdrop-filter: blur(6px);
  border: 1px solid var(--accent); color: var(--accent); font-size: 10.5px; letter-spacing: 0.2em;
  text-transform: uppercase; padding: 6px 12px; border-radius: 2px; z-index: 3; font-weight: 500;
}

/* ---------- philosophy ---------- */
.philo { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.philo img { border-radius: var(--radius); }
.principle { border-left: 1px solid var(--border); padding: 6px 0 6px 28px; margin-bottom: 34px; }
.principle:last-child { margin-bottom: 0; }
.principle h3 { font-size: 26px; margin-bottom: 8px; }
.principle p { color: var(--muted); font-size: 15px; }

/* ---------- page hero (inner pages) ---------- */
.page-hero { position: relative; padding: 120px 0 70px; overflow: hidden; }
.page-hero .bgimg { position: absolute; inset: 0; }
.page-hero .bgimg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.32; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(10,10,10,0.55), var(--bg)); }
.page-hero .wrap { position: relative; z-index: 2; }
.page-hero h1 { font-size: clamp(40px, 5.5vw, 68px); margin: 14px 0 12px; }
.page-hero p { color: var(--muted); max-width: 620px; font-size: 17px; }

/* ---------- filters ---------- */
.toolbar { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; margin-bottom: 40px; }
.toolbar select, .toolbar input[type="text"] {
  background: var(--card); border: 1px solid var(--border); color: var(--text);
  padding: 11px 16px; font-size: 14px; border-radius: var(--radius); font-family: var(--sans);
}
.size-pills { display: flex; gap: 10px; flex-wrap: wrap; }
.size-pill {
  border: 1px solid var(--border); background: transparent; color: var(--muted);
  padding: 9px 16px; font-size: 13px; cursor: pointer; border-radius: 20px; transition: .25s; font-family: var(--sans);
}
.size-pill.on { border-color: var(--accent); color: var(--accent); }

/* ---------- product detail ---------- */
.pd { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; }
.pd-gallery .main { border-radius: var(--radius); overflow: hidden; background: #1c1c1c; aspect-ratio: 4/5; }
.pd-gallery .main img { width: 100%; height: 100%; object-fit: cover; }
.pd-thumbs { display: flex; gap: 12px; margin-top: 14px; }
.pd-thumbs img { width: 84px; height: 104px; object-fit: cover; border-radius: 3px; cursor: pointer; border: 1px solid var(--border); opacity: 0.65; transition: .25s; }
.pd-thumbs img.on { border-color: var(--accent); opacity: 1; }
.pd-info h1 { font-size: clamp(32px, 4vw, 48px); margin: 10px 0 12px; }
.pd-price { font-size: 30px; color: var(--accent); font-weight: 500; margin-bottom: 6px; }
.pd-moq { color: var(--muted); font-size: 14px; letter-spacing: 0.06em; margin-bottom: 26px; }
.pd-desc { color: #cfc9b8; margin-bottom: 26px; }
.spec { display: grid; grid-template-columns: 130px 1fr; gap: 8px 18px; padding: 22px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin-bottom: 28px; font-size: 14.5px; }
.spec dt { color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; font-size: 12px; padding-top: 3px; }
.opt-label { font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); margin: 22px 0 12px; font-weight: 500; }
.size-row { display: flex; gap: 10px; flex-wrap: wrap; }
.qty-row { display: flex; align-items: center; gap: 18px; margin: 26px 0; }
.qty-ctrl { display: flex; align-items: center; border: 1px solid var(--border); border-radius: var(--radius); }
.qty-ctrl button { background: none; border: none; color: var(--text); font-size: 20px; width: 44px; height: 48px; cursor: pointer; }
.qty-ctrl button:hover { color: var(--accent); }
.qty-ctrl span { min-width: 44px; text-align: center; font-weight: 500; }
.moq-note { background: rgba(201,169,106,0.07); border: 1px solid rgba(201,169,106,0.25); padding: 16px 20px; border-radius: var(--radius); font-size: 14px; color: #d8cfae; margin-top: 24px; }
.moq-note a { color: var(--accent); text-decoration: underline; }

/* ---------- forms ---------- */
.form { max-width: 640px; }
.field { margin-bottom: 22px; }
.field label { display: block; font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); margin-bottom: 9px; font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%; background: var(--card); border: 1px solid var(--border); color: var(--text);
  padding: 14px 16px; font-size: 15px; border-radius: var(--radius); font-family: var(--sans); font-weight: 300;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.field .err { color: var(--danger); font-size: 13px; margin-top: 7px; display: none; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--danger); }
.field.invalid .err { display: block; }
.form-note { color: var(--muted); font-size: 13.5px; margin-top: 18px; }
.demo-banner {
  background: rgba(201,169,106,0.08); border: 1px solid rgba(201,169,106,0.35); color: #d8cfae;
  padding: 14px 20px; border-radius: var(--radius); font-size: 14px; margin-bottom: 34px;
}

/* ---------- cart ---------- */
.cart-line { display: grid; grid-template-columns: 110px 1fr auto; gap: 26px; padding: 26px 0; border-bottom: 1px solid var(--border); align-items: center; }
.cart-line img { width: 110px; height: 136px; object-fit: cover; border-radius: 3px; }
.cart-line h3 { font-size: 22px; margin-bottom: 4px; }
.cart-line .meta { color: var(--muted); font-size: 13.5px; }
.cart-line .line-price { text-align: right; }
.cart-line .line-price .amt { font-size: 19px; color: var(--accent); font-weight: 500; }
.linklike { background: none; border: none; color: var(--muted); font-size: 13px; cursor: pointer; text-decoration: underline; font-family: var(--sans); margin-top: 8px; padding: 0; }
.linklike:hover { color: var(--danger); }
.cart-summary { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 34px; margin-top: 44px; }
.cart-summary .row { display: flex; justify-content: space-between; padding: 8px 0; color: var(--muted); }
.cart-summary .row.total { border-top: 1px solid var(--border); margin-top: 12px; padding-top: 18px; color: var(--text); font-size: 20px; }
.cart-summary .row.total .amt { color: var(--accent); font-weight: 600; }
.empty { text-align: center; padding: 90px 0; color: var(--muted); }
.empty h2 { font-size: 38px; color: var(--text); margin-bottom: 12px; }

/* ---------- checkout ---------- */
.co-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 50px; align-items: start; }
.pay-box { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 34px; margin-bottom: 26px; }
.pay-box h3 { font-size: 24px; margin-bottom: 8px; }
.pay-box p { color: var(--muted); font-size: 14px; margin-bottom: 22px; }
.testmode {
  display: inline-block; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 600;
  background: rgba(201,169,106,0.14); color: var(--accent); border: 1px solid rgba(201,169,106,0.4);
  padding: 5px 12px; border-radius: 2px; margin-bottom: 14px;
}
#paypal-buttons { min-height: 120px; }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--border); padding: 70px 0 34px; margin-top: 40px; background: #080808; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 50px; }
.foot-grid h4 { font-size: 12px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; font-weight: 500; font-family: var(--sans); }
.foot-grid a { display: block; color: var(--muted); font-size: 14.5px; margin-bottom: 10px; }
.foot-grid a:hover { color: var(--accent); }
.foot-brand { font-family: var(--serif); font-size: 24px; letter-spacing: 0.28em; margin-bottom: 12px; }
.foot-grid p { color: var(--muted); font-size: 14px; max-width: 300px; }
.copy { border-top: 1px solid var(--border); padding-top: 26px; display: flex; justify-content: space-between; color: #6f6a5e; font-size: 13px; flex-wrap: wrap; gap: 10px; }

/* ---------- misc ---------- */
.divider { height: 1px; background: var(--border); border: none; margin: 0; }
.alert { padding: 16px 20px; border-radius: var(--radius); margin-bottom: 24px; font-size: 14.5px; display: none; }
.alert.show { display: block; }
.alert.error { background: rgba(192,86,77,0.1); border: 1px solid rgba(192,86,77,0.4); color: #e0a49e; }
.alert.ok { background: rgba(201,169,106,0.1); border: 1px solid rgba(201,169,106,0.4); color: #d8cfae; }
.success-hero { text-align: center; padding: 110px 0 90px; }
.success-hero h1 { font-size: clamp(40px, 5vw, 64px); margin: 22px 0 14px; }
.check-ring { width: 92px; height: 92px; border: 1px solid var(--accent); border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 38px; color: var(--accent); }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .grid.c4 { grid-template-columns: repeat(2, 1fr); }
  .grid.c3 { grid-template-columns: repeat(2, 1fr); }
  .philo, .pd, .co-grid { grid-template-columns: 1fr; gap: 44px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  section { padding: 64px 0; }
  .wrap { padding: 0 20px; }
  .nav { padding: 0 20px; }
  .nav-links {
    display: none; position: fixed; top: 74px; left: 0; right: 0; background: #0d0d0d;
    flex-direction: column; padding: 26px 20px 34px; gap: 22px; border-bottom: 1px solid var(--border); align-items: flex-start;
  }
  .nav-links.open { display: flex; }
  .hamburger { display: block; }
  .grid.c3, .grid.c4, .grid.c2 { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .cart-line { grid-template-columns: 84px 1fr; }
  .cart-line .line-price { grid-column: 2; text-align: left; margin-top: 8px; }
  .hero-inner { padding-bottom: 80px; }
}
