/* Fíor Footwear: V2 "Bold" design system
   Colours: logo pink, cobalt, lime, ink on cream. Type: Montserrat (display) + Manrope (text). */

@font-face { font-family: Montserrat; src: url(/assets/fonts/montserrat-latin-500-normal.woff2) format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: Montserrat; src: url(/assets/fonts/montserrat-latin-600-normal.woff2) format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: Montserrat; src: url(/assets/fonts/montserrat-latin-700-normal.woff2) format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: Montserrat; src: url(/assets/fonts/montserrat-latin-800-normal.woff2) format('woff2'); font-weight: 800; font-display: swap; }
@font-face { font-family: Montserrat; src: url(/assets/fonts/montserrat-latin-900-normal.woff2) format('woff2'); font-weight: 900; font-display: swap; }
@font-face { font-family: Manrope; src: url(/assets/fonts/manrope-latin-400-normal.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: Manrope; src: url(/assets/fonts/manrope-latin-500-normal.woff2) format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: Manrope; src: url(/assets/fonts/manrope-latin-600-normal.woff2) format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: Manrope; src: url(/assets/fonts/manrope-latin-700-normal.woff2) format('woff2'); font-weight: 700; font-display: swap; }

:root {
  --ink: #14101A;
  --cream: #FFF4E6;
  --pink: #FE4B85;
  --cobalt: #2340E8;
  --lime: #D7FF3A;
  --white: #FFFFFF;
  --soft-ink: #D9D0C4;
  --line: #EADFD0;
  --display: Montserrat, 'Helvetica Neue', Arial, sans-serif;
  --text: Manrope, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --radius: 28px;
  --shadow: 14px 14px 0 var(--ink);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--text); font-size: 17px; line-height: 1.55; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--pink); outline-offset: 3px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--lime); color: var(--ink); padding: 12px 18px; border-radius: 999px; font-weight: 700; }
.skip-link:focus { top: 12px; }

.container { max-width: 1360px; margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.stack { display: flex; flex-direction: column; gap: 24px; }
.row-between { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(var(--min, 300px), 100%), 1fr)); gap: 20px; }

/* Type */
.display { font-family: var(--display); font-weight: 900; text-transform: uppercase; letter-spacing: -0.035em; line-height: .86; margin: 0; }
.display-xl { font-size: clamp(64px, 11vw, 168px); }
.display-lg { font-size: clamp(56px, 9vw, 150px); }
.display-md { font-size: clamp(44px, 7vw, 104px); }
.display-sm { font-size: clamp(36px, 5vw, 64px); }
.lede { font-size: 19px; line-height: 1.55; max-width: 32em; margin: 0; }
.eyebrow { display: inline-flex; align-self: flex-start; font-family: var(--display); font-weight: 800; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; padding: 8px 14px; border-radius: 999px; margin: 0; }
.label { font-family: var(--display); font-weight: 800; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }
.outline { color: transparent; -webkit-text-stroke: 2px currentColor; }
.t-pink { color: var(--pink); } .t-cobalt { color: var(--cobalt); } .t-lime { color: var(--lime); } .t-cream { color: var(--cream); }
.bg-ink { background: var(--ink); color: var(--cream); }
.bg-pink { background: var(--pink); color: var(--ink); }
.bg-cobalt { background: var(--cobalt); color: var(--white); }
.bg-lime { background: var(--lime); color: var(--ink); }
.bg-cream { background: var(--cream); color: var(--ink); }
.rule-y { border-top: 4px solid var(--ink); border-bottom: 4px solid var(--ink); }
.placeholder { background: var(--lime); color: var(--ink); padding: 1px 6px; border-radius: 6px; font-weight: 700; }

/* Buttons */
.pill { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 0 30px; border-radius: 999px; border: 0; text-decoration: none; font-family: var(--display); font-weight: 800; font-size: 16px; letter-spacing: .03em; text-transform: uppercase; cursor: pointer; transition: transform .25s ease, box-shadow .25s ease, opacity .2s; }
.pill:hover { transform: translate(-3px, -3px); box-shadow: 6px 6px 0 var(--ink); }
.pill[disabled], .pill[aria-disabled="true"] { cursor: not-allowed; opacity: .55; transform: none; box-shadow: none; }
.pill-pink { background: var(--pink); color: var(--ink); }
.pill-lime { background: var(--lime); color: var(--ink); }
.pill-ink { background: var(--ink); color: var(--cream); }
.pill-ink:hover { box-shadow: 6px 6px 0 var(--pink); }
.pill-cream { background: var(--cream); color: var(--ink); }
.pill-lg { min-height: 64px; font-size: 18px; }
.pill-block { width: 100%; }
.pill-sm { min-height: 44px; padding: 0 20px; font-size: 14px; }
.text-link { background: none; border: 0; padding: 10px 0; font-weight: 700; font-size: 14px; text-decoration: underline; cursor: pointer; }

/* Announcement + header */
.announce { background: var(--lime); color: var(--ink); font-family: var(--display); font-weight: 800; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; padding: 10px 0; }
.site-header { background: var(--ink); position: sticky; top: 0; z-index: 50; }
.site-header .container { display: flex; align-items: center; gap: 16px; padding-top: 16px; padding-bottom: 16px; position: relative; }
.logo img { height: 44px; width: auto; }
.nav { display: flex; align-items: center; gap: 26px; margin-left: auto; order: 2; }
.header-bag { order: 3; }
.menu-toggle { order: 4; }
.nav a:not(.pill) { color: var(--cream); text-decoration: none; font-weight: 600; font-size: 15px; padding: 10px 4px; }
.nav a:not(.pill):hover, .nav a[aria-current="page"] { color: var(--pink); }
.menu-toggle { display: none; background: none; border: 2px solid var(--cream); color: var(--cream); border-radius: 999px; min-height: 44px; padding: 0 16px; font-family: var(--display); font-weight: 800; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; cursor: pointer; }
.bag-count { display: inline-flex; min-width: 22px; height: 22px; padding: 0 6px; align-items: center; justify-content: center; border-radius: 999px; background: var(--ink); color: var(--pink); font-size: 12px; }
@media (max-width: 760px) {
  .menu-toggle { display: inline-flex; align-items: center; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--ink); flex-direction: column; align-items: stretch; gap: 4px; padding: 8px 24px 24px; margin-left: 0; }
  .nav.open { display: flex; }
  .nav a:not(.pill) { font-size: 20px; padding: 12px 0; }
  .header-bag { margin-left: auto; }
}

/* Motion */
.marquee { overflow: hidden; white-space: nowrap; }
.marquee-track { display: inline-flex; width: max-content; animation: slide 32s linear infinite; }
.marquee-track.fast { animation-duration: 22s; }
.marquee-track.slow { animation-duration: 60s; animation-direction: reverse; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-words { font-size: clamp(44px, 6vw, 76px); line-height: 1; padding: 22px 0; }
.marquee-words span { padding-right: 44px; }
@keyframes slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); } 50% { transform: translateY(-14px) rotate(var(--r, 0deg)); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes drift { 0%, 100% { transform: scale(1.04); } 50% { transform: scale(1.1) translate(-1.5%, -1%); } }
@keyframes pop { from { transform: scale(.97); opacity: 0; } to { transform: none; opacity: 1; } }
.float { animation: bob 7s ease-in-out infinite; transform: rotate(var(--r, 0deg)); }
.float.d2 { animation-delay: -2.3s; } .float.d3 { animation-delay: -4.6s; }
.spin { animation: spin 18s linear infinite; }
.drift { animation: drift 18s ease-in-out infinite; }
.pop { animation: pop .35s ease-out; }
@media (prefers-reduced-motion: reduce) {
  .marquee-track, .float, .spin, .drift, .pop { animation: none !important; }
  html { scroll-behavior: auto; }
}

/* Photos */
.photo { overflow: hidden; border-radius: var(--radius); background: var(--cream); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.ring-pink { border: 6px solid var(--pink); } .ring-cobalt { border: 6px solid var(--cobalt); } .ring-lime { border: 6px solid var(--lime); } .ring-ink { border: 6px solid var(--ink); }
.duo { position: relative; overflow: hidden; border-radius: 22px; aspect-ratio: 4 / 5; }
.duo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.15); mix-blend-mode: multiply; transition: filter .6s ease, transform .8s ease; }
.duo:hover img, .duo:focus-within img { filter: none; mix-blend-mode: normal; transform: scale(1.04); }
.duo.bg-pink { background: var(--pink); } .duo.bg-cobalt { background: var(--cobalt); } .duo.bg-lime { background: var(--lime); }
@media (hover: none) { .duo img { filter: none; mix-blend-mode: normal; } }

/* Hero */
.hero { position: relative; overflow: hidden; }
.hero .container { display: flex; flex-wrap: wrap; align-items: center; gap: 40px; padding-top: 48px; padding-bottom: 88px; }
.hero-copy { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 30px; position: relative; z-index: 2; }
.hero-copy .lede { color: var(--soft-ink); }
.hero-collage { flex: 1 1 520px; min-width: 0; position: relative; height: 700px; }
.hero-collage .photo { position: absolute; }
.hero-collage .c1 { left: 0; top: 40px; width: 42%; aspect-ratio: 4 / 5; --r: -7deg; border-color: var(--cobalt); z-index: 1; }
.hero-collage .c2 { left: 26%; top: 0; width: 56%; aspect-ratio: 7 / 10; --r: 3deg; z-index: 2; }
.hero-collage .c3 { right: 0; bottom: 10px; width: 36%; aspect-ratio: 4 / 5; --r: 8deg; z-index: 3; }
.badge { position: absolute; left: 6%; bottom: 0; width: 150px; height: 150px; z-index: 4; }
.badge svg.ring { width: 150px; height: 150px; }
.badge svg.mark { position: absolute; left: 55px; top: 55px; }
@media (max-width: 760px) { .hero-collage { height: 480px; } .badge { width: 110px; height: 110px; } .badge svg.ring { width: 110px; height: 110px; } .badge svg.mark { left: 37px; top: 37px; } }

/* Product cards (home) */
.pair-card { text-decoration: none; border-radius: 32px; overflow: hidden; display: flex; flex-direction: column; }
.pair-card .media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; }
.pair-card .media > img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.pair-card:hover .media > img { transform: scale(1.06); }
.pair-card .inset { position: absolute; right: 22px; bottom: 22px; width: 38%; aspect-ratio: 1 / 1; border-radius: 22px; overflow: hidden; background: var(--cream); border: 5px solid var(--cream); box-shadow: 10px 10px 0 var(--ink); }
.pair-card .inset img { width: 100%; height: 100%; object-fit: cover; }
.pair-card .meta { padding: 28px 30px 32px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; }
.pair-card .name { font-size: clamp(52px, 6vw, 72px); }

/* Feature (full-bleed photo) */
.feature { position: relative; min-height: 760px; overflow: hidden; background: #8E1B22; display: flex; align-items: flex-end; }
.feature > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.feature .container { position: relative; width: 100%; padding-top: 48px; padding-bottom: 48px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; }
.feature .panel { padding: 32px 36px; border-radius: var(--radius); max-width: 620px; display: flex; flex-direction: column; gap: 18px; }

/* Film strip */
.strip { gap: 20px; padding-right: 20px; }
.strip .frame { flex: none; height: clamp(280px, 32vw, 420px); border-radius: 24px; overflow: hidden; border: 5px solid var(--pink); }
.strip .frame img { width: 100%; height: 100%; object-fit: cover; }

/* Material */
.material .container { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.circle-photo { width: min(460px, 100%); aspect-ratio: 1 / 1; border-radius: 50%; overflow: hidden; border: 6px solid var(--ink); box-shadow: 18px 18px 0 var(--pink); margin: 0 auto; }
.circle-photo img { width: 100%; height: 100%; object-fit: cover; }

/* Promises */
.promises { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 40px; }
.promise { display: flex; gap: 18px; align-items: flex-start; }
.promise .icon { flex: none; width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.promise h3 { margin: 0 0 6px; font-family: var(--display); font-weight: 800; font-size: 20px; text-transform: uppercase; }
.promise p { margin: 0; color: var(--soft-ink); }
.promise a { color: var(--lime); }

/* Footer */
.site-footer { background: var(--pink); color: var(--ink); }
.site-footer .container { padding-top: 72px; padding-bottom: 36px; display: flex; flex-direction: column; gap: 48px; }
.footer-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 32px; }
.footer-cols nav, .footer-cols div { display: flex; flex-direction: column; gap: 10px; }
.footer-cols a { text-decoration: none; font-weight: 600; }
.footer-cols a:hover { text-decoration: underline; }
.footer-base { border-top: 2px solid var(--ink); padding-top: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 14px; font-weight: 600; }
.footer-slim { background: var(--ink); color: var(--cream); }
.footer-slim .container { padding-top: 32px; padding-bottom: 32px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 14px; font-weight: 600; }
.footer-slim a { color: var(--pink); }

/* Product page */
.pdp { transition: background .4s ease, color .4s ease; }
.pdp .container { padding-top: 36px; padding-bottom: 80px; display: flex; flex-direction: column; gap: 28px; }
.breadcrumb { font-size: 14px; font-weight: 600; display: flex; gap: 8px; }
.pdp-grid { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.gallery { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 34px; }
.gallery-main { position: relative; aspect-ratio: 4 / 5; border-radius: 32px; overflow: hidden; background: var(--cream); }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.gallery-chip { position: absolute; left: 20px; top: 20px; font-family: var(--display); font-weight: 800; font-size: 14px; letter-spacing: .08em; padding: 10px 16px; border-radius: 999px; }
.thumbs { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; }
.thumb { border: 0; padding: 0; cursor: pointer; border-radius: 14px; overflow: hidden; aspect-ratio: 1 / 1; background: var(--cream); transition: transform .2s ease; }
@media (hover: hover) { .thumb:hover { transform: translateY(-3px); } }
.thumb img { width: 100%; height: 100%; object-fit: contain; }
.buy { flex: 1 1 400px; min-width: 0; display: flex; flex-direction: column; gap: 26px; }
.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px; }
.price strong { font-family: var(--display); font-weight: 900; font-size: 44px; }
.sizes { display: flex; flex-wrap: wrap; gap: 10px; }
.size { min-width: 64px; min-height: 56px; border-radius: 16px; font-family: var(--display); font-weight: 800; font-size: 17px; cursor: pointer; background: transparent; border: 2px solid currentColor; transition: transform .15s ease; }
.size:hover:not([disabled]) { transform: translateY(-2px); }
.size[disabled] { opacity: .45; cursor: not-allowed; text-decoration: line-through; }
.added { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px 14px 20px; border-radius: 20px; background: var(--cream); color: var(--ink); }
.details-card { background: var(--cream); color: var(--ink); border-radius: 24px; padding: 4px 24px; }
.details-card details { border-bottom: 2px solid var(--ink); }
.details-card details:last-child { border-bottom: 0; }
.details-card summary { cursor: pointer; font-family: var(--display); font-weight: 800; text-transform: uppercase; letter-spacing: .04em; font-size: 15px; padding: 18px 0; list-style: none; display: flex; justify-content: space-between; }
.details-card summary::-webkit-details-marker { display: none; }
.details-card summary::after { content: "+"; font-size: 22px; }
.details-card details[open] summary::after { content: "–"; }
.details-card ul, .details-card p { margin: 0 0 18px; }
.sister { border-radius: 32px; overflow: hidden; display: flex; flex-wrap: wrap; text-decoration: none; }
.sister .img { flex: 1 1 360px; min-height: 420px; overflow: hidden; }
.sister .img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.sister:hover .img img { transform: scale(1.05); }
.sister .txt { flex: 1 1 360px; padding: 40px; display: flex; flex-direction: column; justify-content: center; gap: 16px; }

/* Themes for product pages */
.theme-eriu .pdp { background: var(--cobalt); color: var(--white); }
.theme-eriu .gallery-main { border: 6px solid var(--lime); box-shadow: 16px 16px 0 var(--ink); }
.theme-eriu .gallery-chip, .theme-eriu .pdp .eyebrow { background: var(--lime); color: var(--ink); }
.theme-eriu .thumb[aria-current="true"] { box-shadow: 0 0 0 4px var(--lime); }
.theme-eriu .size[aria-pressed="true"] { background: var(--lime); color: var(--ink); border-color: var(--lime); }
.theme-eriu .add-btn { background: var(--lime); color: var(--ink); }
.theme-eriu .add-btn[disabled] { background: rgba(255, 255, 255, .16); color: var(--white); opacity: 1; }
.theme-danu .add-btn[disabled] { background: rgba(20, 16, 26, .14); color: var(--ink); opacity: 1; }
.theme-danu .pdp { background: var(--pink); color: var(--ink); }
.theme-danu .gallery-main { border: 6px solid var(--ink); box-shadow: 16px 16px 0 var(--cobalt); }
.theme-danu .gallery-chip, .theme-danu .pdp .eyebrow { background: var(--ink); color: var(--cream); }
.theme-danu .thumb[aria-current="true"] { box-shadow: 0 0 0 4px var(--ink); }
.theme-danu .size[aria-pressed="true"] { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.theme-danu .add-btn { background: var(--ink); color: var(--cream); }
.theme-inish .pdp { background: var(--lime); color: var(--ink); }
/* INISH photos are shot on white: match the boxes so no cream bands show */
.theme-inish .gallery-main, .theme-inish .thumb { background: var(--white); }
.theme-inish .gallery-main { border: 6px solid var(--ink); box-shadow: 16px 16px 0 var(--pink); }
.theme-inish .gallery-chip, .theme-inish .pdp .eyebrow { background: var(--ink); color: var(--lime); }
.theme-inish .thumb[aria-current="true"] { box-shadow: 0 0 0 4px var(--ink); }
.theme-inish .size[aria-pressed="true"] { background: var(--ink); color: var(--lime); border-color: var(--ink); }
.theme-inish .add-btn { background: var(--ink); color: var(--lime); }
.theme-inish .add-btn[disabled] { background: rgba(20, 16, 26, .14); color: var(--ink); opacity: 1; }

/* Bag */
.bag-layout { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
.bag-items { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.bag-line { background: var(--cobalt); color: var(--white); border-radius: 32px; padding: 24px; display: flex; flex-wrap: wrap; gap: 24px; align-items: center; }
.bag-line .thumb-lg { width: 160px; height: 160px; border-radius: 22px; overflow: hidden; background: var(--cream); flex: none; border: 4px solid var(--lime); }
.bag-line .thumb-lg img { width: 100%; height: 100%; object-fit: contain; }
.bag-line.danu { background: var(--pink); color: var(--ink); }
.bag-line.danu .thumb-lg { border-color: var(--ink); }
.bag-line.inish { background: var(--lime); color: var(--ink); }
.bag-line.inish .thumb-lg { border-color: var(--ink); background: var(--white); }
.bag-line .info { flex: 1 1 240px; display: flex; flex-direction: column; gap: 8px; }
.qty { display: inline-flex; align-items: center; gap: 14px; background: var(--cream); color: var(--ink); border-radius: 999px; padding: 4px; }
.qty button { width: 44px; height: 44px; border: 2px solid var(--ink); background: var(--cream); border-radius: 50%; font-family: var(--display); font-weight: 800; font-size: 20px; cursor: pointer; }
.qty button:hover { background: var(--lime); }
.qty output { min-width: 24px; text-align: center; font-family: var(--display); font-weight: 800; font-size: 18px; }
.summary { flex: 1 1 360px; min-width: 0; border-radius: 32px; padding: 32px; display: flex; flex-direction: column; gap: 20px; border: 4px solid var(--ink); box-shadow: var(--shadow); }
.summary dl { margin: 0; display: grid; grid-template-columns: 1fr auto; row-gap: 12px; font-size: 17px; font-weight: 600; }
.summary dd { margin: 0; }
.summary .total { font-family: var(--display); font-weight: 900; font-size: 24px; padding-top: 14px; border-top: 2px solid var(--ink); text-transform: uppercase; }
.notice { margin: 0; padding: 14px 16px; border-radius: 16px; font-weight: 700; }
.notice.error { background: var(--ink); color: var(--lime); }
.notice.ok { background: var(--lime); color: var(--ink); }
.notice.info { background: var(--cream); color: var(--ink); border: 3px solid var(--ink); font-weight: 600; }
.qty button[disabled] { opacity: .35; cursor: not-allowed; background: var(--cream); }
.stock-hint { font-size: 14px; font-weight: 700; }

/* Forms */
.form-card { background: var(--cream); color: var(--ink); border-radius: 36px; padding: 40px; border: 4px solid var(--ink); box-shadow: 16px 16px 0 var(--pink); }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 22px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full, .form-grid .full { grid-column: 1 / -1; }
.field label { font-family: var(--display); font-weight: 800; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }
.field input, .field select, .field textarea { min-height: 54px; border: 2px solid var(--ink); border-radius: 14px; padding: 12px 14px; font-size: 16px; background: var(--white); width: 100%; }
.field textarea { min-height: 170px; resize: vertical; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.5; }
.check input { width: 22px; height: 22px; margin: 0; flex: none; accent-color: var(--pink); }
.hp { position: absolute; left: -9999px; }

/* Tables (size guide) */
.table-wrap { overflow-x: auto; border: 4px solid var(--ink); border-radius: 28px; background: var(--white); box-shadow: 14px 14px 0 var(--cobalt); }
table.chart { border-collapse: collapse; width: 100%; min-width: 600px; font-size: 17px; }
table.chart th, table.chart td { text-align: left; padding: 18px 22px; border-bottom: 2px solid var(--ink); }
table.chart thead th { font-family: var(--display); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; font-weight: 800; background: var(--ink); color: var(--cream); border-bottom: 0; }
table.chart tbody th { font-family: var(--display); font-weight: 900; font-size: 24px; }
table.chart tbody tr:hover { background: var(--lime); }
table.chart tbody tr:last-child > * { border-bottom: 0; }
.tag { display: inline-block; padding: 5px 14px; border-radius: 999px; font-weight: 800; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }
.steps { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 22px; }
.steps li { border-radius: 28px; padding: 32px; display: flex; flex-direction: column; gap: 14px; border: 4px solid var(--ink); font-size: 18px; font-weight: 600; }
.steps .num { font-size: 96px; }

/* Legal */
.legal-layout { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.tabs { flex: 1 1 240px; display: flex; flex-direction: column; gap: 10px; position: sticky; top: 100px; }
.tab { min-height: 52px; padding: 0 22px; border-radius: 999px; font-family: var(--display); font-weight: 800; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; cursor: pointer; text-align: left; border: 3px solid transparent; background: transparent; text-decoration: none; display: flex; align-items: center; transition: transform .2s ease; }
.tab:hover { transform: translateX(4px); }
.tab[aria-selected="true"] { border-color: var(--ink); }
.doc { flex: 999 1 600px; min-width: 0; background: var(--white); border: 4px solid var(--ink); border-radius: 32px; padding: 40px 44px; box-shadow: 14px 14px 0 var(--pink); transition: box-shadow .3s ease; }
.doc h2 { font-family: var(--display); font-weight: 900; text-transform: uppercase; letter-spacing: -0.03em; line-height: .95; font-size: clamp(36px, 5vw, 52px); margin: 0 0 10px; }
.doc h3 { font-family: var(--display); font-weight: 800; text-transform: uppercase; letter-spacing: .04em; font-size: 17px; margin: 30px 0 8px; }
.doc p, .doc li { line-height: 1.7; margin: 0 0 10px; }
.doc .date { font-weight: 700; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; }
.doc section[hidden] { display: none; }
@media (max-width: 760px) { .tabs { position: static; flex-direction: row; flex-wrap: wrap; } .doc { padding: 28px 22px; } }

/* Admin */
.admin-shell { min-height: 100vh; display: flex; flex-wrap: wrap; }
.admin-side { flex: 1 1 240px; max-width: 100%; background: var(--ink); color: var(--cream); padding: 28px 18px; display: flex; flex-direction: column; gap: 32px; }
.admin-side a, .admin-side button { display: flex; align-items: center; min-height: 48px; padding: 0 16px; border-radius: 14px; text-decoration: none; font-family: var(--display); font-weight: 800; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; color: var(--cream); background: none; border: 0; cursor: pointer; text-align: left; }
.admin-side a:hover, .admin-side button:hover { background: #2A2430; }
.admin-side a[aria-current="page"] { background: var(--pink); color: var(--ink); }
.admin-main { flex: 999 1 640px; min-width: 0; padding: 40px 36px 72px; display: flex; flex-direction: column; gap: 30px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 18px; }
.kpi { border-radius: 24px; padding: 22px 24px; display: flex; flex-direction: column; gap: 8px; border: 3px solid var(--ink); }
.kpi .display { font-size: 56px; }
.admin-table-wrap { overflow-x: auto; background: var(--white); border: 3px solid var(--ink); border-radius: 24px; }
table.admin { border-collapse: collapse; width: 100%; min-width: 760px; font-size: 15px; }
table.admin th, table.admin td { text-align: left; padding: 12px 18px; border-bottom: 2px solid var(--line); vertical-align: middle; }
table.admin thead th { font-family: var(--display); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; font-weight: 800; background: var(--ink); color: var(--cream); border-bottom: 0; }
.stepper { display: flex; align-items: center; gap: 10px; }
.stepper button { width: 44px; height: 44px; border: 2px solid var(--ink); background: var(--white); border-radius: 12px; font-family: var(--display); font-weight: 800; font-size: 18px; cursor: pointer; }
.stepper button:hover { background: var(--lime); }
.stepper input { width: 72px; min-height: 44px; text-align: center; border: 2px solid var(--ink); border-radius: 12px; font-family: var(--display); font-weight: 900; font-size: 17px; }
.chip { display: inline-block; padding: 6px 14px; border-radius: 999px; font-family: var(--display); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.chip.eriu { background: var(--cobalt); color: var(--white); font-size: 14px; font-weight: 900; }
.chip.danu { background: var(--pink); color: var(--ink); font-size: 14px; font-weight: 900; }
.chip.inish { background: var(--lime); color: var(--ink); font-size: 14px; font-weight: 900; }
.chip.ok { background: var(--cobalt); color: var(--white); }
.chip.low { background: var(--lime); color: var(--ink); }
.chip.out { background: var(--ink); color: var(--pink); }
.chip.dirty { background: var(--pink); color: var(--ink); }
.filter { display: flex; flex-wrap: wrap; gap: 10px; }
.filter button { min-height: 44px; padding: 0 20px; border-radius: 999px; font-family: var(--display); font-weight: 800; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; background: var(--white); color: var(--ink); border: 2px solid var(--ink); }
.filter button[aria-pressed="true"] { background: var(--ink); color: var(--cream); }
.order-card { background: var(--white); border: 3px solid var(--ink); border-radius: 20px; padding: 18px 22px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr)); gap: 12px; }
.login-card { max-width: 460px; margin: 10vh auto; }

/* Product gallery lightbox */
/* Main photo opens the lightbox */
.gallery-main { cursor: zoom-in; }
.gallery-main:focus-visible { outline: 4px solid var(--lime); outline-offset: 4px; }
.gallery-zoom {
  position: absolute; right: 18px; bottom: 18px;
  width: 48px; height: 48px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--ink); color: var(--cream);
  font-size: 22px; line-height: 1; pointer-events: none;
  transition: transform .2s ease;
}
.gallery-main:hover .gallery-zoom { transform: scale(1.1); }

/* Lightbox */
html.lb-lock { overflow: hidden; }
.lightbox {
  width: 100vw; height: 100vh; height: 100dvh;
  max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgba(20, 16, 26, .96); color: var(--cream);
}
.lightbox::backdrop { background: rgba(20, 16, 26, .96); }
.lightbox[open] { display: grid; grid-template-columns: 88px minmax(0, 1fr) 88px; align-items: center; }
.lb-stage {
  margin: 0; height: 100%; min-width: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px; padding: 64px 0 24px; touch-action: pan-y; user-select: none;
}
.lb-img {
  max-width: 100%; max-height: calc(100dvh - 130px);
  object-fit: contain; border-radius: 16px; background: var(--cream);
}
.lb-count { font-family: var(--display); font-weight: 800; letter-spacing: .08em; font-size: 15px; }
.lb-btn {
  width: 56px; height: 56px; border-radius: 50%;
  border: 2px solid currentColor; background: transparent; color: inherit;
  font-size: 32px; line-height: 1; cursor: pointer; justify-self: center;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.lb-btn:hover, .lb-btn:focus-visible { background: var(--lime); color: var(--ink); border-color: var(--lime); outline: none; }
.lb-close { position: absolute; top: 16px; right: 16px; z-index: 1; }

@media (max-width: 640px) {
  .lightbox[open] { grid-template-columns: minmax(0, 1fr); }
  .lb-stage { padding: 72px 8px 100px; }
  .lb-img { max-height: calc(100dvh - 190px); }
  .lb-prev, .lb-next { position: absolute; bottom: 24px; }
  .lb-prev { left: 24px; }
  .lb-next { right: 24px; }
}

/* Mobile: smaller offset shadow so it never runs into the thumbnails */
@media (max-width: 640px) {
  .gallery { gap: 24px; }
  .theme-eriu .gallery-main { box-shadow: 10px 10px 0 var(--ink); }
  .theme-danu .gallery-main { box-shadow: 10px 10px 0 var(--cobalt); }
  .theme-inish .gallery-main { box-shadow: 10px 10px 0 var(--pink); }
  .thumbs { gap: 8px; }
}

/* Cookie consent banner */
.cookie-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 90; max-width: 560px; margin-left: auto; background: var(--ink); color: var(--cream); border-radius: var(--radius); box-shadow: 8px 8px 0 var(--pink); padding: 22px 24px; display: flex; flex-direction: column; gap: 16px; }
.cookie-banner p { margin: 0; font-size: 15px; line-height: 1.5; }
.cookie-banner a { color: var(--lime); }
.cookie-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cookie-actions .pill { flex: 1 1 140px; }
