/* Ceramiza — minimal storefront. Brand colours sampled from the logo variants. */
:root {
  --orange: #e8651c;
  --teal: #03b3c2;
  --magenta: #d80671;
  --ink: #1f1d1b;
  --muted: #6b6661;
  --line: #ebe7e2;
  --paper: #fffdfa;
  --soft: #f6f2ec;
  --ok: #0f8a5f;
  --warn: #b25b00;
  --danger: #c0262d;
  --radius: 14px;
  --heading: "Century Gothic", "Futura", "Avenir Next", "Josefin Sans", "Trebuchet MS", system-ui, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.6 var(--body); color: var(--ink); background: var(--paper); }
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration-color: var(--teal); text-underline-offset: 3px; }
a:hover { color: var(--magenta); }
h1, h2, h3 { font-family: var(--heading); font-weight: 600; line-height: 1.15; letter-spacing: .01em; margin: 0 0 .6em; }
h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: #fff; position: sticky; top: 0; z-index: 10; }
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--orange); }
.brand img { width: 44px; height: 48px; }
.brand span { font-family: var(--heading); font-size: 1.35rem; letter-spacing: .18em; font-weight: 600; }
.nav { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.nav a { text-decoration: none; font-family: var(--heading); letter-spacing: .06em; text-transform: uppercase; font-size: .9rem; }
.nav a[aria-current="page"] { color: var(--orange); }
.cart-link { position: relative; display: inline-flex; align-items: center; gap: 6px; }
.cart-count { background: var(--magenta); color: #fff; border-radius: 999px; min-width: 20px; height: 20px; font-size: .75rem;
  display: inline-grid; place-items: center; padding: 0 6px; font-family: var(--body); }
@media (max-width: 640px) {
  .site-header .wrap { gap: 12px; }
  .brand span { display: none; }
  .nav { gap: 14px; }
  .nav a { font-size: .8rem; }
}

main { padding: 40px 0 72px; }

/* Flash */
.flash { padding: 12px 16px; border-radius: 10px; margin-bottom: 24px; background: #e7f7f8; border: 1px solid #b7e6ea; }
.flash.error { background: #fdecef; border-color: #f5c2cd; }

/* Hero */
.hero { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; padding: 24px 0 56px; }
.hero-logo { color: var(--orange); width: min(320px, 70%); margin: 0 auto; }
.hero h1 { margin-bottom: .4em; }
.hero p { font-size: 1.15rem; color: var(--muted); max-width: 32em; }
@media (max-width: 760px) { .hero { grid-template-columns: 1fr; gap: 24px; text-align: center; } .hero p { margin-inline: auto; } }

.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 8px 0 20px; }

/* Buttons & forms */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 999px;
  border: 2px solid var(--ink); background: var(--ink); color: #fff; font: 600 1rem/1 var(--heading); letter-spacing: .06em;
  text-decoration: none; cursor: pointer; transition: transform .1s ease, background .15s ease; }
.btn:hover { background: var(--orange); border-color: var(--orange); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn.secondary { background: transparent; color: var(--ink); }
.btn.secondary:hover { border-color: var(--teal); color: var(--teal); background: transparent; }
.btn.small { padding: 7px 14px; font-size: .85rem; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.link-btn { background: none; border: 0; padding: 0; color: var(--muted); text-decoration: underline; cursor: pointer; font: inherit; }

label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; }
input[type=text], input[type=email], input[type=tel], input[type=number], input[type=password], input[type=date], select, textarea {
  width: 100%; padding: 11px 13px; border: 1px solid #d9d3cc; border-radius: 10px; font: inherit; background: #fff; color: inherit; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--teal); outline-offset: 1px; border-color: var(--teal); }
textarea { min-height: 110px; resize: vertical; }
.field { margin-bottom: 16px; }
.field .error-text { color: var(--danger); font-size: .85rem; margin-top: 4px; }
.field.has-error input, .field.has-error select { border-color: var(--danger); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 560px) { .grid-2 { grid-template-columns: 1fr; } }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.check input { margin-top: 5px; width: 18px; height: 18px; accent-color: var(--orange); flex: none; }
.choice { display: flex; gap: 12px; align-items: center; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin-bottom: 10px;
  font-weight: 400; cursor: pointer; background: #fff; }
.choice:has(input:checked) { border-color: var(--orange); box-shadow: 0 0 0 1px var(--orange); }
.choice input { accent-color: var(--orange); width: 18px; height: 18px; }
.choice .price { margin-left: auto; font-weight: 600; }

/* Product grid */
.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 28px 22px; }
.card { text-decoration: none; display: block; }
.card .thumb { aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: var(--soft); position: relative;
  border: 3px solid transparent; transition: border-color .2s ease; }
.products .card:nth-child(3n+1):hover .thumb { border-color: var(--orange); }
.products .card:nth-child(3n+2):hover .thumb { border-color: var(--teal); }
.products .card:nth-child(3n+3):hover .thumb { border-color: var(--magenta); }
.card .thumb img, .card .thumb video { width: 100%; height: 100%; object-fit: cover; }
.card h3 { font-size: 1.05rem; margin: 12px 0 2px; }
.card .price { color: var(--muted); }
.card.sold .thumb img { filter: grayscale(.6); opacity: .75; }
.badge { position: absolute; top: 10px; left: 10px; background: #fff; border-radius: 999px; padding: 4px 11px; font-size: .75rem;
  font-weight: 600; letter-spacing: .03em; }
.badge.sold { background: var(--ink); color: #fff; }
.badge.reserved { background: var(--teal); color: #fff; }
.badge.sale { background: var(--magenta); color: #fff; left: auto; right: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.chip { border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; text-decoration: none; font-size: .9rem; background: #fff; }
.chip[aria-current="true"] { border-color: var(--orange); color: var(--orange); }

/* Product page */
.product { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 48px; align-items: start; }
@media (max-width: 860px) { .product { grid-template-columns: 1fr; gap: 24px; } }
.gallery-main { border-radius: var(--radius); overflow: hidden; background: var(--soft); aspect-ratio: 4 / 5; }
.gallery-main img, .gallery-main video { width: 100%; height: 100%; object-fit: contain; background: var(--soft); }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; padding-bottom: 4px; }
.gallery-thumbs button { border: 2px solid transparent; border-radius: 10px; padding: 0; width: 72px; height: 88px; flex: none; overflow: hidden;
  background: var(--soft); cursor: pointer; position: relative; }
.gallery-thumbs button[aria-current="true"] { border-color: var(--orange); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs .play { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 1.4rem; text-shadow: 0 1px 4px #0008; }
.product-info .price-line { font-size: 1.6rem; font-family: var(--heading); margin: 4px 0 6px; }
.product-info .price-line s { color: var(--muted); font-size: 1.1rem; margin-left: 8px; }
.omnibus { font-size: .85rem; color: var(--muted); margin-bottom: 16px; }
.stock-note { display: inline-flex; gap: 8px; align-items: center; font-size: .9rem; margin: 6px 0 20px; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); display: inline-block; }
.dot.warn { background: var(--teal); } .dot.off { background: #aaa; }
.facts { border-top: 1px solid var(--line); margin-top: 28px; }
.facts details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.facts summary { cursor: pointer; font-family: var(--heading); font-weight: 600; letter-spacing: .03em; }
.facts dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 12px 0 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
.prose { max-width: 70ch; }
.prose h2 { margin-top: 1.6em; font-size: 1.35rem; }
.prose h3 { margin-top: 1.4em; }
.prose table { border-collapse: collapse; width: 100%; font-size: .92rem; margin: 1em 0; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px; text-align: left; vertical-align: top; }
.prose blockquote { margin: 0 0 1.2em; padding: 12px 16px; background: #fff6e8; border-left: 4px solid var(--orange); border-radius: 6px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.notice { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--teal); border-radius: 10px; padding: 14px 16px; margin: 16px 0; font-size: .95rem; }
.notice.magenta { border-left-color: var(--magenta); }
.notice.orange { border-left-color: var(--orange); }

/* Cart & checkout */
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table td { padding: 14px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.cart-table img { width: 72px; height: 88px; object-fit: cover; border-radius: 10px; }
.cart-table .num { text-align: right; white-space: nowrap; }
.checkout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 40px; align-items: start; }
@media (max-width: 860px) { .checkout { grid-template-columns: 1fr; } }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.panel h2 { font-size: 1.2rem; }
fieldset { border: 0; padding: 0; margin: 0 0 28px; }
legend { font-family: var(--heading); font-weight: 600; font-size: 1.2rem; margin-bottom: 14px; padding: 0; }
.summary-line { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; }
.summary-line.total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 12px; font-weight: 700; font-size: 1.15rem; }
[hidden] { display: none !important; }

/* Order / payment */
.pay-box { text-align: center; }
.pay-grid { display: grid; grid-template-columns: max-content 1fr; gap: 10px 16px; text-align: left; margin: 20px auto; max-width: 480px; }
.pay-grid dt { color: var(--muted); }
.pay-grid dd { margin: 0; font-weight: 600; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.code { font: 700 2rem/1 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .25em; color: var(--magenta); }
.copy { font-size: .78rem; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 3px 10px; cursor: pointer; }
.status-pill { display: inline-block; padding: 5px 14px; border-radius: 999px; background: var(--soft); font-weight: 600; font-size: .9rem; }
.status-pill.paid, .status-pill.shipped, .status-pill.completed { background: #e3f6ee; color: var(--ok); }
.status-pill.expired, .status-pill.cancelled { background: #fdecef; color: var(--danger); }
.spinner { width: 18px; height: 18px; border: 3px solid var(--line); border-top-color: var(--orange); border-radius: 50%; animation: spin 1s linear infinite; display: inline-block; vertical-align: middle; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Instagram */
.ig-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.ig-grid a { aspect-ratio: 1; border-radius: 10px; overflow: hidden; display: block; background: var(--soft); }
.ig-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.ig-grid a:hover img { transform: scale(1.04); }
@media (max-width: 760px) { .ig-grid { grid-template-columns: repeat(3, 1fr); } }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: #fff; padding: 40px 0; font-size: .9rem; color: var(--muted); }
.site-footer .cols { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 28px; }
.site-footer h4 { font-family: var(--heading); color: var(--ink); margin: 0 0 10px; letter-spacing: .06em; text-transform: uppercase; font-size: .85rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.socials { display: flex; gap: 12px; margin-top: 12px; }
.socials a { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); color: var(--ink); }
.socials a:hover { border-color: var(--magenta); color: var(--magenta); }
.socials svg { width: 18px; height: 18px; }
.stripe { height: 5px; background: linear-gradient(90deg, var(--orange) 0 33.3%, var(--teal) 33.3% 66.6%, var(--magenta) 66.6%); }
@media (max-width: 760px) { .site-footer .cols { grid-template-columns: 1fr; } }

/* Documents */
.doc-meta { font-size: .88rem; color: var(--muted); border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; margin-bottom: 28px; background: #fff; }
.doc-meta code { word-break: break-all; font-size: .8rem; }
.doc-downloads { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.versions { width: 100%; border-collapse: collapse; font-size: .92rem; }
.versions td, .versions th { border-bottom: 1px solid var(--line); padding: 8px 6px; text-align: left; }

@media print {
  .site-header, .site-footer, .no-print { display: none !important; }
  main { padding: 0; }
}
