/* ===========================================================
   Tiny Travellers — homepage redesign
   Warm & friendly style, mobile-first responsive layout.
   =========================================================== */

:root {
  --bg: oklch(97% 0.014 75);
  --bg-alt: oklch(93.5% 0.028 70);
  --surface: oklch(99% 0.006 80);
  --text: oklch(28% 0.03 40);
  --text-soft: oklch(46% 0.025 40);
  --coral: oklch(68% 0.17 35);
  --coral-dark: oklch(56% 0.17 32);
  --coral-tint: oklch(93% 0.045 35);
  --sage: oklch(62% 0.11 155);
  --sage-dark: oklch(50% 0.1 155);
  --sage-tint: oklch(93% 0.035 155);
  --border: oklch(88% 0.02 70);
  --dark: oklch(28% 0.03 40);
  --max-width: 1240px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Karla", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

h1, h2, h3 {
  font-family: "Baloo 2", system-ui, sans-serif;
  margin: 0 0 0.5em 0;
  font-weight: 700;
  text-wrap: pretty;
}

p { margin: 0 0 1em 0; }

a { color: var(--coral-dark); text-decoration: none; }
a:hover, a:focus-visible { color: var(--coral); }

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

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

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: "Karla", sans-serif;
  font-weight: 700;
  font-size: 16px;
  padding: 15px 28px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  text-align: center;
  min-height: 48px;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--coral);
  color: oklch(99% 0.01 80);
}
.btn-primary:hover, .btn-primary:focus-visible {
  background: var(--coral-dark);
  color: oklch(99% 0.01 80);
  box-shadow: 0 8px 20px -8px oklch(56% 0.17 32 / 0.55);
}

.btn-secondary {
  background: transparent;
  border-color: var(--text);
  color: var(--text);
}
.btn-secondary:hover, .btn-secondary:focus-visible {
  background: var(--text);
  color: var(--surface);
}

.btn-outline-light {
  background: transparent;
  border-color: oklch(60% 0.01 75);
  color: oklch(98% 0.01 75);
}
.btn-outline-light:hover, .btn-outline-light:focus-visible {
  background: oklch(98% 0.01 75);
  color: var(--text);
}

.btn-block { width: 100%; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 16px;
  padding-bottom: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Playfair Display", "Georgia", serif;
  font-weight: 800;
  font-size: 23px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text);
  flex-shrink: 0;
}
.logo img { flex-shrink: 0; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}
.main-nav a {
  font-weight: 600;
  font-size: 14.5px;
  color: var(--text);
  white-space: nowrap;
}
.main-nav a:hover { color: var(--coral-dark); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.header-actions .btn {
  padding: 12px 20px;
  font-size: 15px;
  min-height: 44px;
}

.phone-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  padding: 9px 12px;
  font-weight: 700;
  font-size: 13.5px;
  color: var(--text);
  white-space: nowrap;
}
.phone-pill svg { stroke: var(--coral-dark); flex-shrink: 0; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle svg { stroke: var(--text); }

.phone-icon-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  flex-shrink: 0;
}
.phone-icon-btn svg { stroke: var(--coral-dark); }

/* ---------- Hero ---------- */

.hero {
  padding: 64px 0 80px;
}
.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 8px;
  background: var(--coral-tint);
  color: var(--coral-dark);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 8px 16px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(32px, 4.5vw, 52px);
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero-lead {
  font-size: 18px;
  line-height: 1.55;
  color: var(--text-soft);
  max-width: 480px;
  margin-bottom: 28px;
}

.hero-cta-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.hero-trust-row {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-soft);
}
.hero-trust-row .dot {
  width: 4px; height: 4px; border-radius: 50%; background: var(--border);
}

.hero-art {
  position: relative;
  min-height: 380px;
}
.hero-art-blob {
  position: absolute;
  inset: 0;
  background: var(--sage-tint);
  border-radius: 58% 42% 53% 47% / 55% 58% 42% 45%;
}
.hero-duck-family {
  position: absolute;
  left: 50%;
  bottom: 14%;
  transform: translateX(-50%);
  width: 84%;
  max-width: 420px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 6%;
}
.hero-duck-family .duck { position: relative; }
.duck-1 { width: 17%; z-index: 1; }
.duck-2 { width: 20%; z-index: 2; }
.duck-3 { width: 38%; z-index: 3; }
.hero-chip {
  position: absolute;
  background: var(--surface);
  border-radius: 16px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 12px 28px -14px oklch(30% 0.03 40 / 0.35);
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  max-width: 220px;
}
.hero-chip svg { flex-shrink: 0; }
.hero-chip-1 { left: -4%; bottom: 20%; }
.hero-chip-2 { right: -4%; bottom: 2%; }

/* ---------- Trust bar ---------- */

.trust-bar {
  background: var(--dark);
  padding: 30px 0;
}
.trust-bar .container {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: oklch(97% 0.01 75);
  font-size: 14.5px;
  font-weight: 600;
}
.trust-item svg { stroke: var(--coral); flex-shrink: 0; }

/* ---------- Section shared ---------- */

section { padding: 88px 0; }
.section-alt { background: var(--bg-alt); }

.section-head {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 48px;
}
.section-head p { color: var(--text-soft); font-size: 17px; }

.section-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.section-head-row p { color: var(--text-soft); font-size: 17px; margin: 8px 0 0; }

/* ---------- How it works ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}
.step-card {
  background: var(--surface);
  border-radius: 24px;
  padding: 32px 28px;
  border: 1px solid var(--border);
}
.step-number {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--coral-tint);
  color: var(--coral-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Baloo 2", sans-serif;
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 16px;
}
.step-card h3 { font-size: 20px; margin-bottom: 8px; }
.step-card p { font-size: 15.5px; color: var(--text-soft); margin: 0; }

/* ---------- Product cards ---------- */

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}
.product-card {
  background: var(--surface);
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}
.product-thumb {
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-thumb.coral { background: var(--coral-tint); }
.product-thumb.sage { background: var(--sage-tint); }
.product-thumb svg { width: 60px; height: 60px; }
.product-body { padding: 20px; }
.product-body h3 { font-size: 16px; margin-bottom: 4px; }
.product-body .desc { font-size: 13.5px; color: var(--text-soft); margin-bottom: 10px; }
.product-price { font-size: 15px; font-weight: 700; color: var(--coral-dark); }
.product-price .unit { font-weight: 500; color: var(--text-soft); font-size: 12.5px; }

/* ---------- Why us ---------- */

.why-us {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 64px;
  align-items: center;
}
.why-art {
  position: relative;
  min-height: 320px;
}
.why-art-blob {
  position: absolute;
  inset: 0;
  background: var(--coral-tint);
  border-radius: 44% 56% 40% 60% / 50% 45% 55% 50%;
}
.why-art svg.center {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 45%;
  max-width: 190px;
}
.value-list { display: flex; flex-direction: column; gap: 26px; }
.value-item { display: flex; gap: 16px; }
.value-item svg { stroke: var(--sage-dark); flex-shrink: 0; margin-top: 2px; }
.value-item h3 { font-size: 17px; margin-bottom: 4px; }
.value-item p { font-size: 15px; color: var(--text-soft); margin: 0; }

/* ---------- Info band ---------- */

.info-band {
  background: var(--sage-tint);
  padding: 56px 0;
}
.info-band .container {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}
.info-card h3 { font-size: 17px; margin-bottom: 8px; }
.info-card p { font-size: 14.5px; color: var(--text-soft); margin: 0; }

/* ---------- Final CTA ---------- */

.final-cta {
  background: var(--dark);
  padding: 84px 0;
  text-align: center;
}
.final-cta h2 { color: oklch(98% 0.01 75); max-width: 620px; margin: 0 auto 16px; }
.final-cta p { color: oklch(85% 0.015 75); max-width: 460px; margin: 0 auto 24px; }
.final-cta-row {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--surface);
  padding: 56px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand p { font-size: 14px; color: var(--text-soft); max-width: 260px; }
.footer-col h3 {
  font-family: "Karla", sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-soft);
  margin-bottom: 12px;
}
.footer-col a, .footer-col span {
  display: block;
  font-size: 14.5px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text);
}
.footer-col span { font-weight: 500; color: var(--text-soft); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: var(--text-soft);
}

/* ===========================================================
   Responsive
   =========================================================== */

/* Header nav collapses to the hamburger menu earlier than the rest of the
   layout: at typical laptop widths (1280–1360px) the full nav + phone pill +
   button + basket icon don't fit the 1240px content width without crowding
   or overflowing, so we switch to the compact header sooner than the other
   sections below. */
@media (max-width: 1320px) {
  .main-nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .header-actions .phone-pill { display: none; }
  .desktop-only { display: none; }
  .phone-icon-btn { display: flex; }
}

@media (max-width: 980px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-art { order: -1; min-height: 340px; }
  .hero-duck-family { width: 66%; bottom: 22%; }
  .hero-chip { font-size: 12px; padding: 10px 14px; max-width: 170px; }
  .hero-chip-1 { left: 0; bottom: auto; top: 6%; }
  .hero-chip-2 { right: 0; bottom: 6%; }
  .hero-lead { max-width: none; }

  .trust-bar .container { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .steps { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .why-us { grid-template-columns: 1fr; }
  .why-art { min-height: 240px; }

  .info-band .container { grid-template-columns: 1fr; gap: 24px; }

  .footer-grid { grid-template-columns: 1fr 1fr; }

  section { padding: 64px 0; }
}

@media (max-width: 560px) {
  .container { padding: 0 20px; }
  .hero { padding: 40px 0 56px; }
  .hero-cta-row { flex-direction: column; }
  .hero-cta-row .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .final-cta-row { flex-direction: column; }
  .final-cta-row .btn { width: 100%; }
}

/* Narrow phones (≈420px and under): the wordmark logo + phone/cart/menu
   icon row is too wide to fit at full size without wrapping or overflowing
   the viewport, so tighten it up. The quick-call icon button is dropped
   here since the hamburger menu already includes a tap-to-call link. */
@media (max-width: 420px) {
  .logo { font-size: 18px; gap: 6px; }
  .logo img { width: 32px; height: 33px; }
  .header-actions { gap: 8px; }
  .phone-icon-btn { display: none !important; }
  .cart-toggle { width: 38px; height: 38px; }
  .nav-toggle { padding: 6px; }
  .nav-toggle svg { width: 24px; height: 24px; }
}

/* ---------- Mobile nav drawer ---------- */

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 8px 24px 20px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  padding: 12px 0;
  font-weight: 600;
  font-size: 16px;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav .phone-pill { margin-top: 12px; align-self: flex-start; }

/* ---------- Cart icon ---------- */

.cart-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  flex-shrink: 0;
}
.cart-toggle svg { stroke: var(--text); }
.cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--coral);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* ---------- Cart drawer ---------- */

.cart-overlay {
  position: fixed;
  inset: 0;
  background: oklch(20% 0.02 40 / 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 90;
}
.cart-overlay.open { opacity: 1; pointer-events: auto; }

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 420px;
  background: var(--surface);
  box-shadow: -12px 0 32px -12px oklch(20% 0.02 40 / 0.35);
  z-index: 91;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.25s ease;
}
.cart-drawer.open { transform: translateX(0); }
body.cart-lock-scroll { overflow: hidden; }

.cart-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}
.cart-drawer-head h2 { font-size: 20px; }
.cart-close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text);
  padding: 4px;
}

.cart-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
}

.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding: 32px 0;
}
.cart-empty p { color: var(--text-soft); }

.cart-days-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-alt);
  border-radius: 14px;
  padding: 12px 16px;
  margin-bottom: 18px;
  font-size: 14px;
  font-weight: 700;
}
.cart-days-input { display: flex; align-items: center; gap: 8px; font-weight: 500; color: var(--text-soft); }
.cart-days-input input {
  width: 52px;
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid var(--border);
  font-family: inherit;
  font-weight: 700;
  color: var(--text);
  text-align: center;
}

.cart-line-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.cart-line { display: flex; gap: 12px; padding-bottom: 18px; border-bottom: 1px solid var(--border); }
.cart-line-img { width: 60px; height: 60px; border-radius: 10px; object-fit: cover; background: var(--bg-alt); flex-shrink: 0; }
.cart-line-info { flex: 1; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cart-line-name { font-size: 14px; font-weight: 700; }
.cart-line-price { font-size: 12.5px; color: var(--text-soft); }
.cart-qty-stepper { display: flex; align-items: center; gap: 10px; margin-top: 4px; }
.cart-qty-stepper button {
  width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--border);
  background: var(--bg-alt); cursor: pointer; font-size: 15px; line-height: 1;
  display: flex; align-items: center; justify-content: center; color: var(--text);
}
.cart-qty-stepper span { font-size: 13px; font-weight: 700; min-width: 14px; text-align: center; }
.cart-qty-stepper button:disabled { opacity: 0.4; cursor: not-allowed; }
.cart-line-max { font-size: 11.5px; color: var(--text-soft); margin-top: 2px; }
.cart-line-right { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; flex-shrink: 0; }
.cart-line-total { font-size: 14px; font-weight: 700; color: var(--coral-dark); }
.cart-line-remove { background: none; border: none; color: var(--text-soft); font-size: 12px; text-decoration: underline; cursor: pointer; padding: 0; }

.cart-drawer-foot { border-top: 1px solid var(--border); padding: 18px 24px 24px; }
.cart-subtotal-row { display: flex; justify-content: space-between; font-size: 17px; font-weight: 800; margin-bottom: 6px; }
.cart-subtotal-note { font-size: 12.5px; color: var(--text-soft); margin-bottom: 14px; }

/* ---------- Shop page ---------- */

.shop-header {
  padding: 48px 0 28px;
  text-align: center;
}
.shop-header h1 { font-size: 40px; margin-bottom: 10px; }
.shop-header p { color: var(--text-soft); font-size: 16px; max-width: 560px; margin: 0 auto; }

.shop-controls {
  position: sticky;
  top: 73px;
  z-index: 40;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}
.shop-search {
  width: 100%;
  max-width: 360px;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  font-family: inherit;
  font-size: 14px;
  margin-bottom: 14px;
  background: var(--surface);
  color: var(--text);
}
.shop-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.shop-tab {
  padding: 9px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.shop-tab.active { background: var(--text); border-color: var(--text); color: var(--surface); }

.shop-category-section { padding: 40px 0 8px; scroll-margin-top: 150px; }
.shop-category-title { font-size: 24px; margin-bottom: 20px; }

.shop-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-soft);
}

.rental-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}
.rental-card {
  background: var(--surface);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}
.rental-card[hidden] { display: none; }
.rental-card.out-of-stock .rental-card-thumb img { opacity: 0.45; filter: grayscale(40%); }

/* .rental-card-thumb and .rental-card-name are <button> elements (so the
   card's photo/name are clickable + keyboard-accessible to open product
   details) — reset default button chrome before the visual styling. */
.rental-card-thumb {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: none;
  padding: 0;
  margin: 0;
  width: 100%;
  cursor: pointer;
}
.rental-card-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 10px; }
.rental-card-body { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.rental-card-name {
  display: block;
  border: none;
  background: none;
  padding: 0;
  margin: 0;
  width: 100%;
  text-align: left;
  font-family: inherit;
  color: inherit;
  cursor: pointer;
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.3;
  min-height: 2.6em;
}
.rental-card-name:hover { color: var(--coral-dark); }
.rental-card-desc {
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--text-soft);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.rental-card-price { font-size: 15px; font-weight: 700; color: var(--coral-dark); }

.stock-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}
.stock-badge.low { background: var(--coral-tint); color: var(--coral-dark); }
.stock-badge.out { background: var(--border); color: var(--text-soft); }

.rental-card-add {
  margin-top: auto;
  background: var(--coral);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 10px;
  font-family: inherit;
  font-weight: 700;
  font-size: 13.5px;
  cursor: pointer;
}
.rental-card-add:hover { background: var(--coral-dark); }
.rental-card-add.added { background: var(--sage-dark); }
.rental-card-add:disabled {
  background: var(--border);
  color: var(--text-soft);
  cursor: not-allowed;
}
.rental-card-add:disabled:hover { background: var(--border); }

/* ---------- Product details modal ---------- */

.product-modal-overlay {
  position: fixed;
  inset: 0;
  background: oklch(20% 0.02 40 / 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 90;
}
.product-modal-overlay.open { opacity: 1; pointer-events: auto; }

.product-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -48%);
  width: 90%;
  max-width: 720px;
  max-height: 86vh;
  overflow-y: auto;
  background: var(--surface);
  border-radius: 20px;
  box-shadow: 0 24px 60px -20px oklch(20% 0.02 40 / 0.45);
  z-index: 91;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.product-modal.open { opacity: 1; pointer-events: auto; transform: translate(-50%, -50%); }

.product-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1;
}

.product-modal-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.product-modal-media {
  aspect-ratio: 1 / 1;
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px 0 0 20px;
  overflow: hidden;
}
.product-modal-media img { width: 100%; height: 100%; object-fit: contain; padding: 24px; }

.product-modal-info { padding: 32px 28px; display: flex; flex-direction: column; gap: 10px; }
.product-modal-category { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-soft); }
.product-modal-info h2 { font-size: 22px; margin: 0; }
.product-modal-price { font-size: 15px; font-weight: 700; color: var(--coral-dark); margin: 0; }

.product-modal-stock { font-size: 12.5px; font-weight: 700; width: fit-content; padding: 4px 10px; border-radius: 999px; }
.product-modal-stock.ok { background: var(--sage-tint); color: var(--sage-dark); }
.product-modal-stock.low { background: var(--coral-tint); color: var(--coral-dark); }
.product-modal-stock.out { background: var(--border); color: var(--text-soft); }

.product-modal-desc { font-size: 14px; line-height: 1.6; color: var(--text-soft); margin: 4px 0 0; }
.product-modal-oos-note { font-size: 13.5px; color: var(--text-soft); margin-top: 8px; }

.product-modal-actions { display: flex; align-items: center; gap: 16px; margin-top: 12px; }
.product-modal-qty-stepper { display: flex; align-items: center; gap: 12px; }
.product-modal-qty-stepper button {
  width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid var(--border);
  background: var(--bg-alt); cursor: pointer; font-size: 17px; line-height: 1;
  display: flex; align-items: center; justify-content: center; color: var(--text);
}
.product-modal-qty-stepper button:disabled { opacity: 0.4; cursor: not-allowed; }
.product-modal-qty-value { font-size: 15px; font-weight: 700; min-width: 16px; text-align: center; }
.product-modal-add-feedback { font-size: 13px; color: var(--sage-dark); font-weight: 700; margin-top: 10px; }

@media (max-width: 640px) {
  .product-modal-body { grid-template-columns: 1fr; }
  .product-modal-media { border-radius: 20px 20px 0 0; aspect-ratio: 4 / 3; }
  .product-modal { top: auto; bottom: 0; left: 0; transform: translateY(100%); width: 100%; max-width: none; border-radius: 20px 20px 0 0; max-height: 92vh; }
  .product-modal.open { transform: translateY(0); }
}

/* ---------- Checkout page ---------- */

.checkout-wrap {
  padding: 48px 0 100px;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  align-items: flex-start;
}
.checkout-form-card, .checkout-summary-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
}
.checkout-form-card h2, .checkout-summary-card h2 { font-size: 20px; margin-bottom: 18px; }
.form-row { margin-bottom: 16px; display: flex; flex-direction: column; gap: 6px; }
.form-row label { font-size: 13.5px; font-weight: 700; }
.form-row input, .form-row select, .form-row textarea {
  padding: 11px 14px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  font-family: inherit;
  font-size: 14px;
  color: var(--text);
  background: var(--bg);
}
.form-row textarea { resize: vertical; min-height: 80px; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.checkout-summary-line { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 13.5px; }
.checkout-summary-line .name { font-weight: 700; }
.checkout-summary-subtotal { font-weight: 700; }
.checkout-summary-total { display: flex; justify-content: space-between; padding-top: 14px; font-size: 17px; font-weight: 800; }

.checkout-insurance-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
}
.checkout-insurance-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  font-weight: 700;
}
.checkout-insurance-label input[type="checkbox"] {
  margin-top: 2px;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  accent-color: var(--coral);
  cursor: pointer;
}
.checkout-insurance-copy { display: flex; flex-direction: column; gap: 3px; }
.checkout-insurance-note { font-size: 12px; font-weight: 500; color: var(--text-soft); }
.checkout-insurance-amount { font-size: 13.5px; font-weight: 700; color: var(--text-soft); white-space: nowrap; }
.checkout-insurance-row:has(input:checked) .checkout-insurance-amount,
.checkout-insurance-row.is-checked .checkout-insurance-amount { color: var(--coral-dark); }

.payment-placeholder {
  margin-top: 22px;
  border: 1.5px dashed var(--border);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--bg-alt);
}
.payment-placeholder svg { flex-shrink: 0; stroke: var(--text-soft); margin-top: 2px; }
.payment-placeholder p { font-size: 13px; color: var(--text-soft); margin: 0; }
.payment-placeholder strong { color: var(--text); }

.checkout-confirmation {
  display: none;
  text-align: center;
  padding: 60px 20px;
}
.checkout-confirmation.show { display: block; }
.checkout-confirmation svg { stroke: var(--sage-dark); margin-bottom: 18px; }
.checkout-confirmation h2 { font-size: 26px; margin-bottom: 10px; }
.checkout-confirmation p { color: var(--text-soft); max-width: 440px; margin: 0 auto 24px; }

@media (max-width: 980px) {
  .rental-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .checkout-wrap { grid-template-columns: 1fr; }
  .shop-controls { top: 0; }
}

@media (max-width: 560px) {
  .rental-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-grid-2 { grid-template-columns: 1fr; }
  .cart-drawer { max-width: 100%; }
}
