/* 31 Crafts — site styles. Brand colours taken from the original Elementor kit. */
:root {
  --coral: #f0574a;
  --coral-dark: #d9443a;
  --navy: #1e2749;
  --ink: #19193c;
  --text: #444;
  --muted: #6b6b78;
  --cream: #fbf7f0;
  --sand: #feeac1;
  --bg: #fafaf9;
  --white: #fff;
  --line: #e7e3da;
  --ok: #1f7a4d;
  --err: #b3261e;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(25, 25, 60, .08);
  --head: "Open Sans", system-ui, sans-serif;
  --body: "Montserrat", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.8 var(--body); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--coral-dark); }
a:hover { color: var(--ink); }
h1, h2, h3, h4, .h3 { font-family: var(--head); color: var(--navy); line-height: 1.2; margin: 0 0 .6em; font-weight: 700; }
h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2rem); }
h3, .h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 2px; }

.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.lead { font-size: 1.15rem; }
.sr-only, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .5em 1em; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }

/* buttons */
.btn { display: inline-block; background: var(--coral); color: #fff; font: 600 14px/1.6 var(--head); text-transform: uppercase;
  letter-spacing: .02em; padding: 12px 26px; border-radius: 30px; border: 2px solid var(--coral); text-decoration: none; cursor: pointer; transition: background .2s, color .2s; }
.btn:hover { background: var(--coral-dark); border-color: var(--coral-dark); color: #fff; }
.btn-outline { background: transparent; color: var(--coral-dark); }
.btn-outline:hover { background: var(--coral); color: #fff; }
.btn-light { background: #fff; color: var(--ink); border-color: #fff; }
.btn-light:hover { background: var(--sand); border-color: var(--sand); color: var(--ink); }
.btn-sm { padding: 8px 18px; font-size: 13px; }
.btn-block { display: block; text-align: center; }
.link-btn { background: none; border: 0; color: var(--coral-dark); text-decoration: underline; cursor: pointer; font: inherit; padding: 0; }

/* header */
.site-header { background: var(--bg); position: sticky; top: 0; z-index: 50; border-bottom: 1px solid transparent; }
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 2px 12px rgba(0,0,0,.04); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 84px; }
.brand { flex: none; }
.brand img { width: auto; height: 56px; }
.brand span { font: 700 1.5rem var(--head); color: var(--ink); }
.brand { text-decoration: none; }
.header-actions { display: flex; align-items: center; gap: 12px; order: 3; }
.basket-link { position: relative; color: var(--ink); display: inline-flex; padding: 8px; }
.badge { position: absolute; top: 0; right: -2px; background: var(--coral); color: #fff; font: 600 11px/18px var(--head); min-width: 18px; height: 18px; text-align: center; border-radius: 9px; padding: 0 4px; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 0; border-radius: 6px; background: var(--coral); cursor: pointer; padding: 11px 10px; flex-direction: column; justify-content: space-between; }
.nav-toggle span { display: block; height: 3px; background: #fff; border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }
.site-nav { order: 2; flex: 1; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 16px; justify-content: flex-end; }
.site-nav a { font: 600 13px/1.4 var(--head); text-transform: uppercase; color: var(--ink); text-decoration: none; padding: 6px 0; display: inline-block; border-bottom: 2px solid transparent; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--coral-dark); border-bottom-color: var(--coral); }

@media (max-width: 1100px) {
  .header-inner { flex-wrap: wrap; gap: 12px; }
  .nav-toggle { display: flex; }
  .site-nav { order: 4; flex-basis: 100%; display: none; padding-bottom: 16px; }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav li { border-top: 1px solid var(--line); }
  .site-nav a { display: block; padding: 12px 4px; border: 0; font-size: 14px; }
}

/* notices */
.flashes { padding-top: 16px; }
.notice { padding: 12px 16px; border-radius: 10px; margin-bottom: 12px; border: 1px solid; }
.notice-ok { background: #e8f5ee; border-color: #b7dfc8; color: var(--ok); }
.notice-error { background: #fdecea; border-color: #f4c2bd; color: var(--err); }
.notice-info { background: var(--cream); border-color: var(--sand); color: var(--ink); }

/* hero */
.hero { background: var(--cream); padding: clamp(48px, 8vw, 96px) 0; }
.hero-inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.hero-text-only { grid-template-columns: 1fr; }
.hero-copy p { font-size: 1.15rem; }
.hero-media img { border-radius: 28px; box-shadow: var(--shadow); width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--sand); }
@media (max-width: 800px) { .hero-inner { grid-template-columns: 1fr; } }

.page-head { background: var(--cream); padding: 48px 0 32px; }
.crumbs { font-size: .875rem; color: var(--muted); margin-bottom: 12px; }
.crumbs a { color: var(--muted); }

/* sections */
.section { padding: clamp(48px, 7vw, 88px) 0; }
.section-tight { padding: 40px 0; }
.section.alt { background: var(--white); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 36px; }

/* home cards */
.cards { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .2s; }
.card:hover { transform: translateY(-4px); }
.card-img img { aspect-ratio: 1; object-fit: cover; width: 100%; background: var(--sand); }
.card-body { padding: 18px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { font-size: 1.05rem; }
.card-body h3 a { color: var(--navy); text-decoration: none; }
.card-body p { color: var(--muted); font-size: .95rem; flex: 1; }
.more { font: 600 14px var(--head); text-decoration: none; }

/* about */
.about-list { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.about-item { display: flex; gap: 20px; align-items: center; background: #fff; border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.about-item img { width: 110px; height: 110px; border-radius: 14px; object-fit: cover; flex: none; background: var(--sand); }
.about-item h3 a { color: var(--navy); text-decoration: none; }
.about-item p { margin: 0; }

/* features */
.features { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.feature { padding: 24px; border-radius: var(--radius); background: var(--cream); border-top: 4px solid var(--coral); }
.feature-card { background: var(--bg); }
.feature p:last-child { margin: 0; }

/* gallery */
.gallery { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.gallery-item { display: block; border-radius: 14px; overflow: hidden; }
.gallery-item img { aspect-ratio: 1; object-fit: cover; width: 100%; transition: transform .3s; background: var(--sand); }
.gallery-item:hover img { transform: scale(1.04); }
.lightbox { position: fixed; inset: 0; background: rgba(15, 15, 35, .92); display: flex; align-items: center; justify-content: center; z-index: 200; padding: 24px; }
.lightbox img { max-height: 90vh; max-width: 100%; width: auto; border-radius: 10px; }
.lightbox button { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%; font-size: 24px; cursor: pointer; }
.lightbox .lb-close { top: 16px; right: 16px; }
.lightbox .lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 16px; top: 50%; transform: translateY(-50%); }

/* products */
.products { display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); margin-bottom: 32px; }
.product { text-align: center; }
.product-img img { border-radius: 14px; aspect-ratio: 1; object-fit: cover; width: 100%; background: var(--cream); margin-bottom: 12px; }
.product h3 { font-size: 1rem; margin-bottom: .2em; }
.product h3 a { color: var(--navy); text-decoration: none; }
.price { font: 600 1rem var(--head); color: var(--coral-dark); margin-bottom: .6em; }
.price-lg { font-size: 1.5rem; }
.shop-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.shop-bar p { margin: 0; }
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 56px); align-items: start; }
.product-detail-img img { border-radius: var(--radius); width: 100%; background: var(--cream); }
.add-row { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.qty-field { width: 110px; margin: 0; }
@media (max-width: 760px) { .product-detail { grid-template-columns: 1fr; } }

/* forms */
.form-section { background: var(--cream); }
.form .field { margin-bottom: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
label { display: block; font: 600 14px/1.5 var(--head); color: var(--ink); margin-bottom: 6px; }
input[type=text], input[type=email], input[type=tel], input[type=number], input[type=password], input[type=url], select, textarea {
  width: 100%; font: 16px/1.5 var(--body); color: var(--ink); background: #fff; border: 1px solid #d6d2c8; border-radius: 10px; padding: 11px 14px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--coral); box-shadow: 0 0 0 3px rgba(240, 87, 74, .18); }
[aria-invalid="true"] { border-color: var(--err) !important; }
.field-error { color: var(--err); font-size: .875rem; margin: 6px 0 0; }
.check label { font: 400 15px/1.5 var(--body); display: flex; gap: 10px; align-items: flex-start; }
.check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--coral); }

/* contact */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.contact-card { background: #fff; padding: 28px; border-radius: var(--radius); box-shadow: var(--shadow); }
.email-link { font: 600 1.2rem var(--head); word-break: break-all; }

/* faqs */
.faq { background: #fff; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px; }
.faq summary { cursor: pointer; padding: 16px 48px 16px 20px; font: 600 1rem/1.4 var(--head); color: var(--navy); list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--coral); }
.faq[open] summary::after { content: "–"; }
.faq-a { padding: 0 20px 8px; }

/* basket / checkout */
.table-wrap { overflow-x: auto; }
.basket { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; }
.basket th, .basket td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.basket th { font: 600 13px var(--head); text-transform: uppercase; color: var(--muted); background: var(--cream); }
.basket .num { text-align: right; }
.basket-product { display: flex; gap: 12px; align-items: center; }
.basket-product img { width: 56px; height: 56px; border-radius: 8px; object-fit: cover; }
.qty { width: 80px; }
.basket-actions { display: flex; gap: 20px; align-items: center; margin: 20px 0 32px; flex-wrap: wrap; }
.totals { background: #fff; border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); max-width: 440px; margin-left: auto; }
.total-row { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding-top: 12px; font-size: 1.05rem; }
.order-lines { list-style: none; padding: 0; margin: 0 0 12px; }
.order-lines li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; }
.checkout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: start; }
.checkout .totals { margin: 0; max-width: none; }
.narrow .totals { margin: 24px 0; max-width: none; }
@media (max-width: 800px) {
  .checkout { grid-template-columns: 1fr; }
  .totals { max-width: none; }
  .basket thead { display: none; }
  .basket, .basket tbody, .basket tr, .basket td { display: block; width: 100%; }
  .basket tr { border-bottom: 1px solid var(--line); padding: 8px 0; }
  .basket td { border: 0; padding: 6px 16px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
  .basket td[data-label]::before { content: attr(data-label); font: 600 13px var(--head); color: var(--muted); }
  .basket td[data-label="Product"]::before { content: none; }
}

/* band + footer */
.band { background: var(--sand); padding: clamp(48px, 7vw, 80px) 0; text-align: center; }
.band-inner { max-width: 720px; }
.band h2 { color: var(--ink); }
.site-footer { background: var(--navy); color: #d8dbe8; padding-top: 56px; }
.site-footer a { color: #fff; }
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; flex-wrap: wrap; padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer-top .brand img { height: 48px; background: #fff; border-radius: 10px; padding: 4px 10px; }
.footer-nav { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 22px; max-width: 700px; }
.footer-nav a { text-decoration: none; font: 600 13px var(--head); text-transform: uppercase; }
.footer-nav a:hover { color: var(--sand); }
.footer-cta { padding: 40px 0; text-align: center; }
.footer-cta h2 { color: #fff; }
.kicker { color: var(--coral); font: 600 14px var(--head); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 8px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 20px 0; font-size: .875rem; text-align: center; }
.footer-bottom p { margin: 0; }
