/* ============================================================
   Make The Print — storefront styles
   ============================================================ */
:root {
  --bg: #ffffff;
  --bg-alt: #f5f6f8;
  --ink: #1a1d24;
  --ink-soft: #5b6472;
  --line: #e3e6ea;
  --brand: #ff5a1f;
  --brand-dark: #e04a12;
  --accent: #1f2a44;
  --ok: #1f9d55;
  --warn: #b7791f;
  --danger: #d23030;
  --radius: 12px;
  --shadow: 0 2px 14px rgba(20, 25, 40, 0.07);
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
}
a { color: var(--brand-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { line-height: 1.2; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
main.container { padding-top: 28px; padding-bottom: 56px; }

.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff;
  padding: 10px 16px; z-index: 100;
}
.skip-link:focus { left: 8px; top: 8px; }

/* --- Buttons --- */
.btn {
  display: inline-block; background: var(--brand); color: #fff; border: none;
  padding: 10px 18px; border-radius: 8px; font-weight: 600; cursor: pointer;
  font-size: 15px; text-align: center; transition: background .15s;
}
.btn:hover { background: var(--brand-dark); text-decoration: none; }
.btn:disabled { background: #c4c8cf; cursor: not-allowed; }
.btn-lg { padding: 13px 26px; font-size: 16px; }
.btn-sm { padding: 6px 12px; font-size: 13px; }
.btn-block { display: block; width: 100%; }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn-ghost:hover { background: var(--bg-alt); }
.btn-danger { background: var(--danger); }
.btn-danger:hover { background: #b02525; }
.btn-link { background: none; border: none; color: var(--ink-soft); cursor: pointer; padding: 4px; font-size: 14px; }
.btn-link:hover { color: var(--danger); }
.link-more { font-weight: 600; font-size: 14px; }

/* --- Flash --- */
.flash { padding: 12px 20px; text-align: center; font-weight: 500; }
.flash-success { background: #e6f7ee; color: #146c39; }
.flash-info { background: #e7f0fb; color: #1d4e89; }
.flash-error { background: #fce8e8; color: #a52020; }

/* --- Header --- */
.site-header { border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--bg); z-index: 50; }
.header-inner { display: flex; align-items: center; gap: 20px; padding-top: 14px; padding-bottom: 14px; }
.brand { font-size: 20px; font-weight: 800; color: var(--ink); display: flex; align-items: center; gap: 7px; }
.brand:hover { text-decoration: none; }
.brand-logo { height: 40px; width: auto; display: block; }
.brand-mark { color: var(--brand); }
.main-nav { display: flex; gap: 18px; flex: 1; }
.main-nav a { color: var(--ink); font-weight: 500; font-size: 15px; }
.header-search input { padding: 8px 12px; border: 1px solid var(--line); border-radius: 20px; font-size: 14px; width: 180px; }
.cart-link { color: var(--ink); font-weight: 600; white-space: nowrap; }
.account-link { color: var(--ink); font-weight: 600; white-space: nowrap; font-size: 14px; }
.account-link:hover { color: var(--brand-dark); }
/* Account pages */
.auth-card { max-width: 420px; margin: 30px auto; background: var(--bg-alt); padding: 30px; border-radius: var(--radius); }
.auth-card h1 { font-size: 24px; margin-top: 0; }
.auth-alt { text-align: center; margin-top: 16px; font-size: 14px; }
.account-layout { display: grid; grid-template-columns: 220px 1fr; gap: 30px; align-items: start; }
.account-side { background: var(--bg-alt); border-radius: var(--radius); padding: 16px; }
.account-side nav { display: flex; flex-direction: column; gap: 4px; }
.account-side a, .account-side button { text-align: left; color: var(--ink); padding: 8px 10px; border-radius: 6px; background: none; border: none; font: inherit; cursor: pointer; }
.account-side a:hover { background: #fff; text-decoration: none; }
.badge-status { display: inline-block; padding: 2px 10px; border-radius: 20px; font-size: 12px; font-weight: 600; background: #e7eaf0; color: #3a4252; text-transform: capitalize; }
@media (max-width: 760px) { .account-layout { grid-template-columns: 1fr; } }
.cart-count {
  background: var(--brand); color: #fff; border-radius: 10px; padding: 1px 7px; font-size: 12px;
}
.nav-toggle { display: none; background: none; border: none; font-size: 22px; cursor: pointer; }

/* --- Hero --- */
.hero {
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 30px; align-items: center;
  background: linear-gradient(135deg, rgba(31,42,68,.93), rgba(44,58,94,.78)), var(--accent);
  background-image: linear-gradient(135deg, rgba(31,42,68,.93), rgba(44,58,94,.78)), url('/img/hero.jpg');
  background-size: cover; background-position: center; color: #fff;
  border-radius: var(--radius); padding: 48px; margin-bottom: 40px;
}
.hero h1 { font-size: 40px; margin: 0 0 14px; }
.hero p { font-size: 18px; color: #d4dbe8; margin: 0 0 24px; max-width: 460px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .btn-ghost { color: #fff; border-color: rgba(255,255,255,.4); }
.hero-art { font-size: 140px; text-align: center; color: var(--brand); opacity: .85; }

/* --- Sections --- */
.section { margin: 44px 0; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 20px; }
.section-head h2 { margin: 0; font-size: 24px; }

/* --- Category grid --- */
.category-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 18px; }
.category-card {
  background: var(--bg-alt); border-radius: var(--radius); padding: 18px; text-align: center;
  color: var(--ink); transition: transform .12s, box-shadow .12s;
}
.category-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); text-decoration: none; }
.category-thumb {
  height: 100px; display: flex; align-items: center; justify-content: center;
  font-size: 44px; color: var(--brand); margin-bottom: 10px; overflow: hidden; border-radius: 8px;
}
.category-thumb img { width: 100%; height: 100%; object-fit: cover; }
.category-card h3 { margin: 0 0 4px; font-size: 16px; }
.category-count { color: var(--ink-soft); font-size: 13px; }

/* --- Product grid + cards --- */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 22px; }
.product-card {
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; background: var(--bg); transition: box-shadow .12s, transform .12s;
}
.product-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.product-card-link { color: var(--ink); }
.product-card-link:hover { text-decoration: none; }
.product-thumb {
  position: relative; aspect-ratio: 1; background: var(--bg-alt);
  display: flex; align-items: center; justify-content: center;
}
.product-thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-thumb-placeholder { font-size: 56px; color: #cfd4db; }
.product-thumb-placeholder.large { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; background: var(--bg-alt); border-radius: var(--radius); font-size: 120px; }
.badge {
  position: absolute; top: 10px; left: 10px; background: var(--brand); color: #fff;
  font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 5px; text-transform: uppercase;
}
.badge-out { background: #6b7280; left: auto; right: 10px; }
.product-card-name { font-size: 15px; margin: 12px 14px 0; }
.product-card-foot { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px 14px; margin-top: auto; }
.price { font-weight: 700; font-size: 16px; }
.price-lg { font-size: 26px; }

/* --- Band CTA --- */
.band { background: var(--bg-alt); border-radius: var(--radius); margin: 50px 0; }
.band-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 36px 40px; flex-wrap: wrap; }
.band-inner h2 { margin: 0 0 6px; }
.band-inner p { margin: 0; color: var(--ink-soft); }

/* --- Breadcrumb / page heads --- */
.breadcrumb { color: var(--ink-soft); font-size: 14px; margin-bottom: 16px; }
.breadcrumb a { color: var(--ink-soft); }
.page-head { margin-bottom: 26px; }
.page-head h1 { margin: 0 0 6px; font-size: 30px; }
.lede { color: var(--ink-soft); font-size: 17px; }
.empty { color: var(--ink-soft); padding: 30px 0; }

/* --- Product detail --- */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-bottom: 30px; }
.product-gallery img { width: 100%; border-radius: var(--radius); border: 1px solid var(--line); }
.product-info h1 { margin: 0 0 10px; font-size: 30px; }
.sku { color: var(--ink-soft); font-size: 14px; }
.stock { font-weight: 600; font-size: 14px; }
.in-stock, .made-to-order { color: var(--ok); }
.out-stock { color: var(--danger); }
.product-desc { margin: 18px 0; color: #34404f; }
.filament-picker { margin: 18px 0; max-width: 380px; }
.filament-picker .field { margin-bottom: 12px; }
.filament-picker select { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; font-size: 15px; }
.filament-note { font-size: 13px; }
.cart-row-opts { display: block; color: var(--ink-soft); font-size: 13px; }
.add-to-cart { display: flex; align-items: center; gap: 12px; margin: 22px 0; }
.add-to-cart label { font-weight: 600; }
.add-to-cart input { width: 70px; padding: 10px; border: 1px solid var(--line); border-radius: 8px; }
.product-assurances { list-style: none; padding: 0; color: var(--ink-soft); font-size: 14px; }
.product-assurances li { padding: 4px 0; }

/* --- Cart --- */
.cart-layout { display: grid; grid-template-columns: 1.7fr 1fr; gap: 30px; align-items: start; }
.cart-row { display: grid; grid-template-columns: 64px 1fr 80px 90px 30px; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cart-row-thumb { width: 64px; height: 64px; background: var(--bg-alt); border-radius: 8px; display: flex; align-items: center; justify-content: center; overflow: hidden; color: #cfd4db; }
.cart-row-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-row-info a { color: var(--ink); font-weight: 600; }
.cart-row-price { display: block; color: var(--ink-soft); font-size: 13px; }
.cart-row-qty input { width: 64px; padding: 8px; border: 1px solid var(--line); border-radius: 8px; }
.cart-row-total { font-weight: 700; text-align: right; }
.cart-clear { margin-top: 14px; }
.cart-summary, .checkout-summary { background: var(--bg-alt); padding: 24px; border-radius: var(--radius); }
.cart-summary h2, .checkout-summary h2 { margin-top: 0; font-size: 19px; }
.summary-row { display: flex; justify-content: space-between; padding: 7px 0; }
.summary-total { font-weight: 800; font-size: 18px; border-top: 1px solid var(--line); margin-top: 8px; padding-top: 12px; }
.summary-hint { color: var(--warn); font-size: 13px; }
.summary-line { display: flex; justify-content: space-between; font-size: 14px; padding: 5px 0; color: #34404f; }

/* --- Checkout --- */
.checkout-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 36px; align-items: start; }
.checkout-form fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin: 0 0 20px; }
.checkout-form legend { font-weight: 700; padding: 0 8px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 5px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 8px; font-size: 15px; font-family: inherit;
}
.field-row { display: flex; gap: 14px; }
.field-row .field { flex: 1; }
.field-sm { max-width: 120px; }
.ship-methods { display: flex; flex-direction: column; gap: 8px; }
.ship-method { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; cursor: pointer; }
.ship-method:hover { border-color: var(--brand); }
.ship-method input { margin: 0; }
.ship-method-name { flex: 1; font-weight: 600; }
.ship-method-price { font-weight: 700; }
.card-container { min-height: 90px; padding: 6px 0; }
.payment-status { color: var(--danger); font-size: 14px; min-height: 20px; }
.checkout-terms { font-size: 13px; color: var(--ink-soft); margin-top: 12px; }
.checkout-summary { position: sticky; top: 90px; }

/* --- Notices --- */
.notice { padding: 12px 16px; border-radius: 8px; margin-bottom: 16px; font-size: 14px; }
.notice-warn { background: #fdf3e3; color: #8a5a00; }
.notice-ok { background: #e6f7ee; color: #146c39; }

/* --- Thank you --- */
.thankyou { max-width: 600px; margin: 20px auto; text-align: center; }
.thankyou-check { width: 64px; height: 64px; line-height: 64px; border-radius: 50%; background: var(--ok); color: #fff; font-size: 34px; margin: 0 auto 18px; }
.receipt { background: var(--bg-alt); padding: 24px; border-radius: var(--radius); text-align: left; margin: 24px 0; }

/* --- Prose / legal --- */
.prose { max-width: 760px; }
.prose h1 { font-size: 30px; }
.prose h2 { margin-top: 30px; font-size: 21px; }
.prose ul { padding-left: 22px; }
.prose li { margin: 6px 0; }
.legal-layout { display: grid; grid-template-columns: 240px 1fr; gap: 40px; align-items: start; }
.legal-sidebar { position: sticky; top: 90px; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.legal-sidebar h2 { font-size: 15px; text-transform: uppercase; color: var(--ink-soft); margin: 0 0 10px; }
.legal-sidebar nav { display: flex; flex-direction: column; gap: 4px; }
.legal-sidebar a { color: var(--ink); font-size: 14px; padding: 6px 8px; border-radius: 6px; }
.legal-sidebar a:hover { background: var(--bg-alt); text-decoration: none; }
.legal-sidebar a.active { background: var(--brand); color: #fff; }
.legal-content { max-width: 760px; }
.legal-meta { color: var(--ink-soft); font-size: 14px; }
.legal-disclaimer { background: #fdf3e3; border-left: 4px solid var(--warn); padding: 12px 16px; border-radius: 6px; font-size: 14px; }

/* --- Forms (contact) --- */
.contact-form, .add-to-cart { max-width: 540px; }

/* --- Error page --- */
.error-page { text-align: center; padding: 60px 0; }
.error-page h1 { font-size: 72px; margin: 0; color: var(--brand); }

/* --- Footer --- */
.site-footer { background: var(--accent); color: #c8d0df; margin-top: 60px; padding: 48px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; }
.site-footer h4 { color: #fff; margin: 0 0 12px; font-size: 15px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 6px 0; }
.site-footer a { color: #c8d0df; font-size: 14px; }
.site-footer a:hover { color: #fff; }
.brand-footer { color: #fff; margin-bottom: 8px; }
.footer-legal-name { font-weight: 600; color: #fff; margin: 0 0 4px; font-size: 14px; }
.footer-muted { color: #8b97ab; font-size: 13px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 30px; padding-top: 18px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.footer-bottom p { margin: 0; font-size: 13px; }

/* --- Responsive --- */
@media (max-width: 860px) {
  .nav-toggle { display: block; order: 3; }
  .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--bg); flex-direction: column; padding: 12px 20px; border-bottom: 1px solid var(--line); }
  .main-nav.open { display: flex; }
  .header-search { display: none; }
  .hero { grid-template-columns: 1fr; padding: 32px; }
  .hero-art { display: none; }
  .hero h1 { font-size: 30px; }
  .product-detail, .cart-layout, .checkout-layout, .legal-layout { grid-template-columns: 1fr; }
  .legal-sidebar { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cart-row { grid-template-columns: 50px 1fr 60px; grid-template-areas: "thumb info total" "thumb qty remove"; }
}
