/* Nudist storefront. Tokens live in theme.json; this file only lays them out. */
:root {
	--nd-teal: var(--wp--preset--color--teal);
	--nd-ink: var(--wp--preset--color--contrast);
	--nd-peach: var(--wp--preset--color--peach);
	--nd-grey: var(--wp--preset--color--grey);
	--nd-soft: var(--wp--preset--color--teal-soft);
	--nd-muted: var(--wp--preset--color--muted);
	--nd-r: 16px;
	--nd-gutter: 16px;
}
html { overflow-x: clip; }
body { margin: 0; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
.nd-main { padding-bottom: var(--wp--preset--spacing--60); }
.nd-main > * + * { margin-block-start: var(--wp--preset--spacing--40); }
:focus-visible { outline: 2px solid var(--nd-ink); outline-offset: 3px; }

/* Notices bar (data.php) */
.nd-notices { background: var(--nd-ink); color: #fff; text-align: center; font-size: .875rem; }
.nd-notices .nd-notice { margin: 0; padding: 0 16px; }
.nd-notices a { color: inherit; text-decoration: underline; display: inline-block; min-height: 44px; line-height: 44px; padding: 0 4px; }

/* Header: compact, sticky, teal like the old shop */
.nd-header { background: var(--nd-teal); position: sticky; top: 0; z-index: 50; padding-block: 6px; box-shadow: 0 1px 0 rgba(11,0,0,.12); }
.nd-header__bar { gap: 12px; min-height: 60px; }
.nd-header__bar > .wp-block-html, .nd-header__bar > p { display: contents; }
.nd-logo { display: inline-flex; align-items: center; min-height: 44px; flex: none; }
.nd-logo img { height: 44px; width: auto; display: block; }
.nd-nav { display: flex; gap: 4px; flex: 1; justify-content: center; }
.nd-nav a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; border-radius: 999px; color: var(--nd-ink); text-decoration: none; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; font-size: .875rem; white-space: nowrap; }
.nd-nav a:hover, .nd-nav a[aria-current] { background: rgba(255,255,255,.45); }
.nd-tag { background: var(--nd-ink); color: #fff; border-radius: 999px; padding: 0 7px; font-size: .75rem; letter-spacing: 0; }
.nd-header__tools { gap: 4px; flex: none; }
.nd-header__tools .wp-block-search__button, .nd-cart .wc-block-mini-cart__button { min-width: 44px; min-height: 44px; background: transparent; color: var(--nd-ink); border: 0; padding: 0 10px; border-radius: 999px; }
.nd-header__tools .wp-block-search__button:hover, .nd-cart .wc-block-mini-cart__button:hover { background: rgba(255,255,255,.45); }
.nd-header__tools .wp-block-search__input { min-height: 44px; border: 0; border-radius: 999px; padding: 0 14px; font: inherit; }
.nd-cart .wc-block-mini-cart__badge { background: var(--nd-ink); color: #fff; }
@media (max-width: 899px) {
	.nd-header__bar { flex-wrap: wrap !important; row-gap: 0; }
	.nd-logo { order: 1; }
	.nd-header__tools { order: 2; margin-left: auto; }
	.nd-nav { order: 3; flex-basis: 100%; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 12px 4px; }
	.nd-nav::-webkit-scrollbar { display: none; }
	.nd-logo img { height: 38px; }
}

/* Buttons */
.nd-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 1.5rem; border-radius: 999px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; font-size: .875rem; text-decoration: none; border: 2px solid var(--nd-ink); cursor: pointer; font-family: inherit; transition: transform .15s ease, background .15s ease; }
.nd-btn:hover { transform: translateY(-1px); }
.nd-btn--primary { background: var(--nd-peach); color: var(--nd-ink); border-color: var(--nd-peach); }
.nd-btn--primary:hover { background: var(--nd-ink); border-color: var(--nd-ink); color: #fff; }
.nd-btn--ghost { background: transparent; color: var(--nd-ink); }
.nd-btn--ghost:hover { background: var(--nd-ink); color: #fff; }

/* Hero */
.nd-hero { background: var(--nd-soft); position: relative; overflow: hidden; margin-top: 0 !important; }
.nd-hero__inner { position: relative; z-index: 1; max-width: 1240px; margin: 0 auto; padding: clamp(2.5rem, 8vw, 6rem) var(--nd-gutter); }
.nd-kicker { text-transform: uppercase; letter-spacing: 2px; font-weight: 700; font-size: .8125rem; margin: 0 0 1rem; color: var(--nd-ink); }
.nd-hero__title { font-size: var(--wp--preset--font-size--display); line-height: .95; margin: 0; max-width: 14ch; letter-spacing: 0; }
.nd-hero__title span { background: linear-gradient(transparent 62%, var(--nd-teal) 62%); }
.nd-hero__lead { font-size: 1.125rem; max-width: 46ch; margin: 1.25rem 0 0; }
.nd-hero__cta { display: flex; flex-wrap: wrap; gap: 10px; margin: 1.75rem 0 0; }

/* Category chips */
.nd-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 0 4px; }
.nd-chips::-webkit-scrollbar { display: none; }
.nd-chips a { flex: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; background: var(--nd-grey); color: var(--nd-ink); text-decoration: none; font-weight: 600; }
.nd-chips a:hover, .nd-chips a[aria-current] { background: var(--nd-ink); color: #fff; }
.nd-section-title { font-size: var(--wp--preset--font-size--x-large); margin-bottom: 0; }

/* Product grid: smaller cards, 2 / 3 / 4 columns */
.nd-collection .nd-grid, .nd-related .nd-grid { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px; list-style: none; padding: 0; margin: 0; }
@media (min-width: 700px) { .nd-collection .nd-grid, .nd-related .nd-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .nd-collection .nd-grid, .nd-related .nd-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 24px; } }
.nd-grid > li { width: auto !important; max-width: none !important; margin: 0 !important; display: flex; flex-direction: column; gap: 6px; position: relative; }
.nd-grid .wc-block-components-product-image, .nd-grid .wp-block-woocommerce-product-image { margin: 0 0 6px !important; border-radius: var(--nd-r); overflow: hidden; background: var(--nd-grey); }
.nd-grid .wc-block-components-product-image img, .nd-grid .wp-block-woocommerce-product-image img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; transition: transform .35s ease; }
.nd-grid > li:hover img { transform: scale(1.04); }
.nd-card__title { font-size: 1rem !important; margin: 0 !important; line-height: 1.25; text-transform: uppercase; letter-spacing: .5px; }
.nd-card__title a { text-decoration: none; color: var(--nd-ink); }
.nd-card__title a::after { content: ""; position: absolute; inset: 0; } /* whole card is the link */
.nd-sub { display: block; font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--nd-muted); font-size: .875rem; margin-top: 2px; }
.nd-card__price { font-weight: 700; margin: 0 !important; text-align: left !important; }
.nd-from { font-weight: 400; color: var(--nd-muted); }
.nd-grid .wc-block-components-product-sale-badge { background: var(--nd-peach); color: var(--nd-ink); border: 0; border-radius: 999px; font-weight: 700; text-transform: uppercase; font-size: .75rem; padding: 4px 10px; margin: 10px; }
.nd-more { text-align: center; }
.nd-toolbar { align-items: center; color: var(--nd-muted); font-size: .9375rem; }
.nd-toolbar select { min-height: 44px; border-radius: 999px; border: 1px solid var(--nd-grey); padding: 0 14px; font: inherit; background: #fff; }
.nd-archive-head .wp-block-query-title { font-size: var(--wp--preset--font-size--display); margin: .25em 0 0; }
.nd-crumbs { font-size: .875rem; color: var(--nd-muted); }
.nd-crumbs a { color: var(--nd-muted); display: inline-block; min-height: 44px; line-height: 44px; }
.wp-block-query-pagination a, .wp-block-query-pagination span { display: inline-flex; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; }

/* Marquee + tiles + hello */
.nd-marquee { background: var(--nd-ink); color: var(--nd-teal); overflow: hidden; white-space: nowrap; font-weight: 900; text-transform: uppercase; font-size: clamp(1.25rem, 3vw, 2rem); letter-spacing: 1px; padding: .6rem 0; }
.nd-marquee > div { display: inline-block; padding-left: 100%; animation: nd-marquee 30s linear infinite; }
@keyframes nd-marquee { to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) { .nd-marquee > div { animation: none; padding-left: 16px; } .nd-btn, .nd-grid img { transition: none; } }
.nd-cards { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 800px) { .nd-cards { grid-template-columns: repeat(3, 1fr); } }
.nd-tile { display: flex; flex-direction: column; gap: 8px; min-height: 220px; padding: 28px; border-radius: 24px; text-decoration: none; color: var(--nd-ink); transition: transform .2s ease; }
.nd-tile:hover { transform: translateY(-4px) rotate(-.5deg); }
.nd-tile strong { font-size: var(--wp--preset--font-size--large); font-weight: 900; text-transform: uppercase; line-height: 1.05; margin-top: auto; }
.nd-tile__k { font-weight: 900; font-size: .875rem; letter-spacing: 2px; }
.nd-tile--teal { background: var(--nd-teal); }
.nd-tile--peach { background: var(--nd-peach); }
.nd-tile--ink { background: var(--nd-ink); color: #fff; }
.nd-hello { max-width: 760px; text-align: center; margin-inline: auto !important; }
.nd-hello h2 { font-size: var(--wp--preset--font-size--x-large); }
.nd-hello p { font-size: 1.125rem; }

/* Product page: capped gallery, sticky buy box */
.nd-pdp { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .nd-pdp { grid-template-columns: minmax(0, 560px) minmax(0, 1fr); gap: 56px; align-items: start; } .nd-pdp__buy { position: sticky; top: 96px; } }
.nd-pdp__media { max-width: 560px; width: 100%; margin-inline: auto; }
.nd-pdp__media .woocommerce-product-gallery { width: 100% !important; float: none !important; margin: 0 !important; }
.nd-pdp__media .woocommerce-product-gallery__image img, .nd-pdp__media .woocommerce-product-gallery__wrapper img { border-radius: var(--nd-r); background: var(--nd-grey); max-height: 70vh; object-fit: contain; width: 100%; }
.nd-pdp__media .flex-control-thumbs { display: flex; gap: 8px; list-style: none; padding: 0; margin: 10px 0 0; }
.nd-pdp__media .flex-control-thumbs li { width: 64px; }
.nd-pdp__media .flex-control-thumbs img { border-radius: 10px; min-height: 44px; cursor: pointer; }
.nd-pdp__title { font-size: var(--wp--preset--font-size--x-large); margin: 0; }
.nd-pdp__title .nd-sub { font-size: 1.125rem; margin-top: .5rem; }
.nd-pdp__price { font-size: 1.5rem; font-weight: 700; }
.nd-pdp__buy form.cart { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; margin: 0; }
.nd-pdp__buy table.variations { width: 100%; border: 0; }
.nd-pdp__buy table.variations th, .nd-pdp__buy table.variations td { display: block; padding: 0; text-align: left; }
.nd-pdp__buy table.variations select { min-height: 48px; width: 100%; border-radius: 12px; border: 2px solid var(--nd-ink); padding: 0 14px; font: inherit; background: #fff; }
.nd-pdp__buy .reset_variations { display: inline-block; min-height: 44px; line-height: 44px; }
.nd-pdp__buy .woocommerce-variation-add-to-cart { display: flex; gap: 12px; width: 100%; flex-wrap: wrap; }
.nd-pdp__buy .quantity input { min-height: 52px; width: 76px; border-radius: 999px; border: 2px solid var(--nd-ink); text-align: center; font: inherit; font-weight: 700; }
.nd-pdp__buy .single_add_to_cart_button { flex: 1; min-height: 52px; border-radius: 999px !important; background: var(--nd-peach) !important; color: var(--nd-ink) !important; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; border: 0; font-family: inherit; font-size: .9375rem; cursor: pointer; }
.nd-pdp__buy .single_add_to_cart_button:hover { background: var(--nd-ink) !important; color: #fff !important; }
.nd-pdp__buy .stock.out-of-stock { font-weight: 700; color: var(--nd-ink); background: var(--nd-grey); display: inline-block; padding: 6px 14px; border-radius: 999px; }
.nd-usp { list-style: none; padding: 16px 0 0; margin: 16px 0 0; border-top: 1px solid var(--nd-grey); font-size: .9375rem; }
.nd-usp li { padding-left: 24px; position: relative; margin: 4px 0; }
.nd-usp li::before { content: "✓"; position: absolute; left: 0; font-weight: 900; }
.nd-pdp__cats a { display: inline-block; min-height: 44px; line-height: 44px; color: var(--nd-muted); }
.nd-pdp__desc { background: var(--nd-soft); border-radius: 24px; padding: clamp(24px, 5vw, 56px) var(--nd-gutter); }
.nd-pdp__desc img { border-radius: 12px; }

/* Footer: teal, the old shop's four columns */
.nd-footer { background: var(--nd-teal); padding-block: var(--wp--preset--spacing--60) var(--wp--preset--spacing--40); margin-top: 0; }
.nd-footer__grid { display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .nd-footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .nd-footer__grid { grid-template-columns: repeat(4, 1fr); } }
.nd-footer__h { font-size: 1rem; letter-spacing: 1px; margin: 0 0 .75rem; }
.nd-footer p { margin: 0 0 .5rem; }
.nd-footer a { color: var(--nd-ink); display: inline-block; min-height: 44px; line-height: 44px; }
.nd-footer__list { list-style: none; padding: 0; margin: 0; }
.nd-footer__social { display: flex; gap: 16px; }
.nd-footer__legal { margin-top: 32px !important; padding-top: 16px; border-top: 1px solid rgba(11,0,0,.2); font-size: .875rem; }

/* 18+ gate (storefront.php) */
html.nd-locked { overflow: hidden; }
.nd-age { position: fixed; inset: 0; z-index: 1000; background: #97d6bd url(art/age-gate.webp) right center / cover no-repeat; display: grid; place-items: center; padding: 16px; }
.nd-age[hidden] { display: none; }
.nd-age__box { background: #fff; border-radius: 24px; padding: clamp(24px, 6vw, 48px); max-width: 460px; text-align: center; box-shadow: 0 20px 60px rgba(11,0,0,.18); }
.nd-age__kicker { text-transform: uppercase; letter-spacing: 2px; font-weight: 700; font-size: .8125rem; margin: 0; }
.nd-age__title { font-size: var(--wp--preset--font-size--x-large); margin: .5rem 0 1rem; }
.nd-age__actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 1.5rem; }

/* Content pages + Woo cart/checkout blocks */
.nd-page h1 { font-size: var(--wp--preset--font-size--display); }
.wc-block-components-button:not(.is-link), .wc-block-cart__submit-button { border-radius: 999px !important; background: var(--nd-peach) !important; color: var(--nd-ink) !important; min-height: 52px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }
.wc-block-components-button:not(.is-link):hover { background: var(--nd-ink) !important; color: #fff !important; }
.nd-archive-head .wp-block-query-title, .nd-page h1, .nd-hero__title { overflow-wrap: anywhere; hyphens: manual; }
.nd-archive-head .wp-block-query-title { font-size: clamp(2rem, 7vw, 5rem); }
.woocommerce-product-gallery__trigger { width: 44px !important; height: 44px !important; display: grid !important; place-items: center; }
.wc-block-components-quantity-selector { min-height: 44px; }
.wc-block-components-quantity-selector__button { min-width: 44px !important; min-height: 44px; }
.wc-block-components-quantity-selector__input { min-height: 44px; }

/* Artist illustrations (from the old shop): tiles carry one each, the 18+ gate keeps its arm-and-glass. */
.nd-tile { overflow: hidden; }
.nd-tile__art { display: block; width: calc(100% + 56px); max-width: none; margin: -28px -28px 12px; aspect-ratio: 4 / 3; object-fit: cover; object-position: center 30%; }
@media (min-width: 800px) { .nd-age { place-items: center start; padding-left: 8vw; } }
@media (max-width: 799px) { .nd-age { background-size: 170% auto; background-position: 92% 100%; } }

/* Hero: the gate's arm-and-glass inside the peach bubble, sparkling-wine fizz rising behind the text. */
.nd-hero__bubble { position: absolute; right: -10vw; top: -10vw; width: 50vw; aspect-ratio: 1; border-radius: 50%; background: #f7d9b0; overflow: hidden; pointer-events: none; }
.nd-hero__bubble img { position: absolute; right: 10vw; bottom: 0; height: 88%; width: auto; transform-origin: 100% 100%; animation: nd-sway 6s ease-in-out infinite alternate; }
@keyframes nd-sway { from { transform: rotate(-1.5deg); } to { transform: rotate(1.5deg); } }
.nd-fizz { position: absolute; inset: 0; pointer-events: none; }
.nd-fizz i { position: absolute; left: var(--x); bottom: -30px; width: var(--s); height: var(--s); border: 2px solid var(--nd-ink); border-radius: 50%; background: rgba(255,255,255,.65); opacity: 0; animation: nd-rise var(--t) linear var(--d) infinite; }
@keyframes nd-rise { 0% { transform: translate(0, 0); opacity: 0; } 10% { opacity: .9; } 50% { transform: translate(12px, -45vh); } 90% { opacity: .8; } 100% { transform: translate(-8px, -95vh); opacity: 0; } }
@media (max-width: 799px) { .nd-hero__bubble { width: 62vw; right: -18vw; top: -18vw; } .nd-hero__bubble img { display: none; } .nd-fizz i:nth-child(odd) { display: none; } }
@media (prefers-reduced-motion: reduce) { .nd-fizz { display: none; } .nd-hero__bubble img { animation: none; } }

/* Rariteedid: the artist's sale poster from the old shop. Beside the title on a wide screen;
   on a phone only its middle (the "TASUTA JOOGID!" line) so the drinks stay near the top. */
.nd-archive-head--art { display: grid; grid-template-columns: 1fr min(30vw, 320px); column-gap: 2rem; grid-template-rows: auto 1fr auto; }
.nd-archive-head--art > .wp-block-query-title { align-self: center; }
.nd-archive-head--art > * { grid-column: 1; }
.nd-archive-head--art > .nd-archive-art { grid-column: 2; grid-row: 1 / span 4; width: 100%; height: auto; transform: rotate(2deg); }
@media (max-width: 799px) {
	.nd-archive-head--art { grid-template-columns: 1fr; }
	.nd-archive-head--art > .nd-archive-art { grid-column: 1; grid-row: auto; aspect-ratio: 16 / 9; object-fit: cover; object-position: 50% 45%; border-radius: 16px; transform: none; margin-top: 1rem; order: 9; }
}

/* Cookie consent (consent.php): below the 18+ gate's z-index; consent.js keeps it hidden while the gate is up. */
.nd-consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 900; max-width: 640px; background: #fff; color: var(--nd-ink); border: 2px solid var(--nd-ink); border-radius: 24px; padding: 20px; box-shadow: 0 20px 60px rgba(11,0,0,.18); }
.nd-consent[hidden] { display: none; }
.nd-consent p { margin: 0 0 14px; font-size: .9375rem; }
.nd-consent a { color: var(--nd-ink); text-decoration: underline; }
.nd-consent__btns { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.nd-footer__cookies { background: none; border: 0; padding: 0; font: inherit; color: var(--nd-ink); text-decoration: underline; cursor: pointer; min-height: 44px; }
