/*
Theme Name: Tutun Firicel
Theme URI: https://tutun-select.ro
Author: Tutun Firicel
Description: Shop for cut tobacco sold by the bucket and by the bag. Runs on its own, with a cart kept in the visitor's browser and orders sent over WhatsApp and e-mail; when WooCommerce is installed it hands the cart and the checkout over to it.
Version: 1.2.0
Requires at least: 6.4
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tutun-firicel
Tags: e-commerce, custom-colors, custom-menu, translation-ready
*/

/* -------------------------------------------------------------------------- */
/* Design tokens                                                              */
/* -------------------------------------------------------------------------- */

:root {
  --background: #ffffff;
  --foreground: #1d1d1f;
  --surface: #ffffff;
  --canvas: #f5f2ed;
  --line: #e7e2da;
  --muted: #6e6a64;
  --accent: #c62828;
  --accent-strong: #9f1d1d;
  --gold: #ebbb5c;
  --ink: #161412;
  --radius: 12px;
  --radius-lg: 16px;
  --max: 1280px;
  --font: "Nunito Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --font-serif: "Playfair Display", Georgia, "Times New Roman", serif;
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* The layout rules below set display on elements the shop hides with [hidden]; without this they
   would win on specificity and the hidden element would stay on screen. */
[hidden] {
  display: none !important;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  display: flex;
  min-height: 100vh;
  flex-direction: column;
}

::selection {
  background: #f3c9c9;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
}

input[type="checkbox"],
input[type="radio"] {
  accent-color: var(--accent);
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.2;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px
  ;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: 16px;
}

@media (min-width: 640px) {
  .wrap {
    padding-inline: 24px;
  }
}

.main {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.stack {
  display: flex;
  flex-direction: column;
}

.muted {
  color: var(--muted);
}

.nums {
  font-variant-numeric: tabular-nums;
}

/* -------------------------------------------------------------------------- */
/* Buttons                                                                    */
/* -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 8px;
  padding: 12px 24px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--foreground);
  color: var(--background);
  transition: background 0.2s, filter 0.2s, border-color 0.2s;
}

.btn:hover {
  background: var(--accent);
}

.btn--accent {
  background: var(--accent);
  color: #fff;
}

.btn--accent:hover {
  background: var(--accent-strong);
}

.btn--gold {
  background: var(--gold);
  color: #1d1409;
  border-radius: 999px;
  padding: 14px 28px;
}

.btn--gold:hover {
  filter: brightness(1.1);
}

.btn--ghost {
  background: transparent;
  color: inherit;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 700;
}

.btn--ghost:hover {
  background: transparent;
  border-color: rgba(29, 29, 31, 0.4);
}

.btn--block {
  width: 100%;
}

.btn[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
}

/* -------------------------------------------------------------------------- */
/* Announcement bar, header                                                   */
/* -------------------------------------------------------------------------- */

.announce {
  background: var(--foreground);
  color: var(--background);
  padding: 8px 16px;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.announce a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.announce a:hover {
  color: var(--gold);
}

.site-top {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* The WordPress admin bar is fixed only from 601px up; below that it scrolls away, so no offset. */
@media (min-width: 601px) {
  .admin-bar .site-top {
    top: 46px;
  }
}

@media (min-width: 783px) {
  .admin-bar .site-top {
    top: 32px;
  }
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.site-header__logo {
  display: block;
  min-width: 0;
}

.site-header__call {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-left: auto;
  border-radius: 999px;
  background: #25d366;
  color: #fff;
  flex: none;
  transition: background 0.15s ease;
}

.site-header__call:hover {
  background: #1ebe5b;
}

.site-header__call + .cart-button {
  margin-left: 0;
}

.nav--mobile {
  max-height: calc(100vh - 220px);
  overflow-y: auto;
}

.site-header__bar {
  display: flex;
  height: 72px;
  align-items: center;
  gap: 12px;
}

.site-header__toggle {
  margin-left: -8px;
  border: 0;
  background: none;
  padding: 8px;
  border-radius: 6px;
  color: inherit;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo__mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  flex: none;
}

.logo__name {
  display: block;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.01em;
}

.logo__tagline {
  display: block;
  margin-top: 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.logo--inverted .logo__tagline {
  color: rgba(255, 255, 255, 0.6);
}

.nav {
  display: none;
  align-items: center;
  gap: 4px;
  margin-left: 32px;
}

.nav a {
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: rgba(29, 29, 31, 0.8);
}

.nav a:hover,
.nav a.is-active {
  color: var(--accent);
}

.nav--mobile {
  display: block;
  border-top: 1px solid var(--line);
  background: var(--background);
  padding: 8px 16px;
}

.nav--mobile a {
  display: block;
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}

.nav--mobile a:last-child {
  border-bottom: 0;
}

.nav--mobile[hidden] {
  display: none;
}

.cart-button {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 8px 6px 16px;
  font-size: 14px;
  font-weight: 700;
}

.cart-button:hover {
  border-color: rgba(29, 29, 31, 0.4);
}

.cart-button__total {
  display: none;
  font-variant-numeric: tabular-nums;
}

.cart-button__icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: var(--foreground);
  color: var(--background);
}

.cart-button__count {
  position: absolute;
  top: -6px;
  right: -6px;
  display: grid;
  place-items: center;
  min-width: 20px;
  border-radius: 999px;
  padding: 0 4px;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  background: var(--line);
  color: var(--muted);
}

.cart-button__count[data-filled="1"] {
  background: var(--accent);
  color: #fff;
}

@media (min-width: 1024px) {
  .nav {
    display: flex;
  }

  .site-header__toggle,
  .nav--mobile {
    display: none;
  }
}

@media (min-width: 640px) {
  .cart-button__total {
    display: inline;
  }
}

/* -------------------------------------------------------------------------- */
/* Hero                                                                       */
/* -------------------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #1a120a;
  color: #fff;
  margin-top: 24px;
}

.hero__media {
  position: relative;
  aspect-ratio: 16 / 10;
}

.hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 85% center;
}

.hero__scrim {
  display: none;
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(20, 12, 5, 0.9), rgba(20, 12, 5, 0.55), transparent);
}

.hero__body {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 24px;
}

.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
}

.hero__eyebrow::before,
.hero__eyebrow::after {
  content: "";
  height: 1px;
  width: 32px;
  background: rgba(235, 187, 92, 0.7);
}

.hero__title {
  font-family: var(--font-serif);
  font-size: 36px;
  font-weight: 700;
  line-height: 1.08;
}

.hero__title span {
  color: var(--gold);
}

.hero__text {
  max-width: 28rem;
  color: rgba(255, 255, 255, 0.85);
}

.hero__features {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  max-width: 28rem;
}

.hero__feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  font-size: 12px;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.9);
}

.hero__feature span {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(235, 187, 92, 0.7);
  border-radius: 999px;
  color: var(--gold);
}

@media (min-width: 768px) {
  /* Photo and text share one grid cell, so the banner grows with the text instead of clipping it. */
  .hero {
    display: grid;
  }

  .hero__media {
    grid-area: 1 / 1;
    aspect-ratio: auto;
    min-height: 440px;
  }

  .hero__scrim {
    display: block;
  }

  .hero__body {
    grid-area: 1 / 1;
    z-index: 1;
    width: 60%;
    justify-content: center;
    padding: 48px;
  }

  .hero__title {
    font-size: 48px;
  }
}

@media (min-width: 1024px) {
  .hero__media {
    min-height: 500px;
  }

  .hero__body {
    width: 50%;
  }
}

/* -------------------------------------------------------------------------- */
/* Sections                                                                   */
/* -------------------------------------------------------------------------- */

.section {
  padding-top: 64px;
}

.section-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px 24px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.section-header h2 {
  position: relative;
  padding-bottom: 12px;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.section-header h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 48px;
  height: 3px;
  border-radius: 3px;
  background: var(--accent);
}

.section-header a {
  padding-bottom: 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  white-space: nowrap;
}

.section-header a::after {
  content: " →";
}

.section-header a:hover {
  color: var(--accent-strong);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (min-width: 640px) {
  .section-header h2 {
    font-size: 24px;
  }
}

.category-grid {
  display: grid;
  gap: 16px;
}

.category-card {
  display: flex;
  align-items: center;
  gap: 24px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--canvas);
  padding: 20px;
  transition: box-shadow 0.2s;
}

.category-card:hover {
  box-shadow: 0 18px 40px -24px rgba(0, 0, 0, 0.4);
}

.category-card__media {
  position: relative;
  flex: none;
  width: 120px;
  height: 160px;
  overflow: hidden;
  border-radius: var(--radius);
}

.category-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.category-card h3 {
  font-size: 20px;
  font-weight: 900;
  text-transform: uppercase;
}

.category-card__count {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
}

@media (min-width: 640px) {
  .category-card__media {
    width: 190px;
    height: 250px;
  }

  .category-card h3 {
    font-size: 24px;
  }
}

@media (min-width: 1024px) {
  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* -------------------------------------------------------------------------- */
/* Product grid and card                                                      */
/* -------------------------------------------------------------------------- */

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

@media (min-width: 640px) {
  .product-grid {
    gap: 16px;
  }
}

@media (min-width: 768px) {
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.product-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 12px;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

.product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px -24px rgba(0, 0, 0, 0.4);
}

.product-card__media {
  position: relative;
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 8px;
  background: var(--canvas);
}

.product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.product-card:hover .product-card__media img {
  transform: scale(1.05);
}

.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
  border-radius: 999px;
  background: var(--accent);
  padding: 4px 10px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
}

.product-card__category {
  margin-top: 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.product-card__title {
  margin-top: 4px;
  min-height: 44px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
}

.product-card__title a:hover {
  color: var(--accent);
}

.product-card__price {
  margin-top: 8px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.product-card .btn {
  margin-top: 12px;
}

/* -------------------------------------------------------------------------- */
/* Offer band, reasons                                                        */
/* -------------------------------------------------------------------------- */

.panel-dark {
  border-radius: var(--radius-lg);
  background: var(--ink);
  color: #fff;
  padding: 28px;
}

@media (min-width: 640px) {
  .panel-dark {
    padding: 40px;
  }
}

.eyebrow-gold {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

.offer-band {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  transition: filter 0.2s;
}

.offer-band:hover {
  filter: brightness(1.1);
}

.offer-title {
  font-family: var(--font-serif);
  font-size: 30px;
  font-weight: 700;
  line-height: 1.15;
}

.offer-title span {
  color: var(--gold);
}

@media (min-width: 640px) {
  .offer-title {
    font-size: 40px;
  }
}

.offer-band__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
}

.offer-rules {
  display: grid;
  gap: 12px;
}

.offer-rules li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
}

.tick {
  display: grid;
  place-items: center;
  flex: none;
  width: 24px;
  height: 24px;
  margin-top: 2px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
}

@media (min-width: 640px) {
  .offer-rules {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.reasons {
  display: grid;
  gap: 24px;
  margin-top: 40px;
}

.reasons h3 {
  font-size: 16px;
  font-weight: 900;
}

.reasons p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}

.reasons li {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.reasons .tick {
  width: 36px;
  height: 36px;
}

@media (min-width: 640px) {
  .reasons {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .reasons {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* -------------------------------------------------------------------------- */
/* Breadcrumbs, page headings                                                 */
/* -------------------------------------------------------------------------- */

.page {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-block: 24px 32px;
}

.brand-strip {
  padding: 4px 0;
  border-bottom: 1px solid var(--line);
  background: var(--canvas);
}

/* Brand logos slide from right to left; the list is printed several times so the loop has no seam. */
.brand-marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.brand-marquee__track {
  display: flex;
  width: max-content;
  animation: brand-slide 48s linear infinite;
}

.brand-marquee:hover .brand-marquee__track {
  animation-play-state: paused;
}

.brand-marquee__list {
  display: flex;
  flex: none;
  gap: 8px;
  margin: 0;
  padding: 0 4px;
  list-style: none;
}

.brand-marquee__list img {
  display: block;
  width: 24px;
  height: 24px;
  border-radius: 4px;
  object-fit: cover;
}

@keyframes brand-slide {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .brand-marquee__track {
    animation: none;
  }
}

.crumbs {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--muted);
}

.crumbs a:hover {
  color: var(--foreground);
}

.crumbs span {
  margin-inline: 8px;
}

.crumbs strong {
  color: var(--foreground);
}

.page-title {
  font-size: 30px;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

@media (min-width: 640px) {
  .page-title {
    font-size: 36px;
  }
}

.note {
  border-radius: 8px;
  background: var(--canvas);
  padding: 12px 16px;
  font-size: 14px;
  color: var(--muted);
}

.note--bordered {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 20px;
}

/* -------------------------------------------------------------------------- */
/* Single product                                                             */
/* -------------------------------------------------------------------------- */

.product {
  display: grid;
  align-items: start;
  gap: 32px;
}

@media (min-width: 1024px) {
  .product {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 48px;
  }
}

.gallery {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.gallery__main {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--canvas);
}

.gallery__main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery__arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-top: -16px;
  border: 0;
  border-radius: 999px;
  background: rgba(29, 29, 31, 0.45);
  color: #fff;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  opacity: 0.85;
  transition: background 0.15s ease, opacity 0.15s ease;
}

.gallery__arrow svg {
  width: 16px;
  height: 16px;
}

.gallery__arrow:hover,
.gallery__arrow:focus-visible {
  background: rgba(29, 29, 31, 0.75);
  opacity: 1;
}

.gallery__arrow--prev {
  left: 10px;
}

.gallery__arrow--next {
  right: 10px;
}

.gallery__main:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.gallery__thumbs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

@media (min-width: 640px) {
  .gallery__thumbs {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

.gallery__thumb {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  background: var(--canvas);
  padding: 0;
  box-shadow: 0 0 0 1px var(--line);
}

.gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery__thumb[aria-current="true"] {
  box-shadow: 0 0 0 2px var(--accent);
}

.product__category {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.product__category:hover {
  text-decoration: underline;
}

.product__title {
  font-size: 30px;
  font-weight: 900;
  line-height: 1.15;
}

@media (min-width: 640px) {
  .product__title {
    font-size: 36px;
  }
}

.product__side {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.price {
  font-size: 22px;
  font-weight: 900;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.product__rating {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: -12px;
}

.stars {
  color: #f5a623;
  font-size: 18px;
  letter-spacing: 2px;
  line-height: 1;
}

.product__quality {
  font-size: 14px;
  font-weight: 700;
}

.variant-label {
  font-size: 14px;
  font-weight: 700;
}

.variants {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.variant {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 10px 14px;
  font-size: 14px;
  text-align: left;
}

.variant strong {
  font-weight: 700;
}

.variant span {
  color: var(--muted);
}

.variant[aria-pressed="true"] {
  border-color: var(--foreground);
  box-shadow: inset 0 0 0 1px var(--foreground);
}

.stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.stepper button {
  border: 0;
  background: none;
  padding: 10px 14px;
  font-size: 18px;
  line-height: 1;
  color: inherit;
}

.stepper output {
  min-width: 32px;
  text-align: center;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.purchase {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.purchase .btn {
  flex: 1;
  min-width: 200px;
}

.highlights {
  display: grid;
  gap: 8px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  font-size: 14px;
}

.highlights li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.highlights svg {
  flex: none;
  margin-top: 2px;
  color: var(--accent);
}

@media (min-width: 640px) {
  .highlights {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.product-details {
  display: grid;
  gap: 32px;
  border-top: 1px solid var(--line);
  padding-top: 40px;
}

@media (min-width: 1024px) {
  .product-details {
    grid-template-columns: minmax(0, 1fr) 380px;
  }
}

.product-details h2 {
  font-size: 20px;
  font-weight: 900;
  text-transform: uppercase;
}

.prose {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.prose p {
  line-height: 1.7;
  color: rgba(29, 29, 31, 0.85);
}

.attributes {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 14px;
}

.attributes > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding: 12px 16px;
}

.attributes > div:last-child {
  border-bottom: 0;
}

.attributes dt {
  color: var(--muted);
}

.attributes dd {
  margin: 0;
  text-align: right;
  font-weight: 700;
}

/* -------------------------------------------------------------------------- */
/* Cart, checkout, order summary                                              */
/* -------------------------------------------------------------------------- */

.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 24px;
}

@media (min-width: 1024px) {
  .cart-layout {
    grid-template-columns: minmax(0, 1fr) 380px;
  }
}

.cart-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 12px;
}

.cart-line__media {
  flex: none;
  width: 64px;
  height: 64px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--canvas);
}

.cart-line__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-line__body {
  flex: 1 1 160px;
  min-width: 0;
}

.cart-line__name {
  display: block;
  font-weight: 700;
}

.cart-line__meta {
  display: block;
  font-size: 14px;
  color: var(--muted);
}

.cart-line__total {
  margin-left: auto;
  white-space: nowrap;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.cart-line__remove {
  border: 0;
  background: none;
  padding: 8px;
  color: var(--muted);
}

.cart-line__remove:hover {
  color: var(--accent);
}

.summary {
  display: flex;
  flex-direction: column;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 20px;
}

.summary h2 {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.summary dl {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  font-size: 14px;
}

.summary dl > div {
  display: flex;
  justify-content: space-between;
}

.summary dd {
  margin: 0;
  font-variant-numeric: tabular-nums;
}

.summary__total {
  align-items: baseline;
  border-top: 1px solid var(--line);
  margin-top: 8px;
  padding-top: 12px;
}

.summary__total dt {
  font-weight: 700;
}

.summary__total dd {
  font-size: 24px;
  font-weight: 900;
}

.fieldset {
  display: grid;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 20px;
  margin: 0;
}

.fieldset legend {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-inline: 4px;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.fieldset legend span {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: var(--accent);
  font-size: 12px;
  color: #fff;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
}

.field > span {
  font-weight: 700;
}

.field input,
.field select,
.field textarea {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--background);
  padding: 10px 12px;
  font: inherit;
  color: inherit;
  outline: none;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--foreground);
}

.field--wide {
  grid-column: 1 / -1;
}

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
}

.checkbox input {
  margin-top: 3px;
}

.info-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--canvas);
  padding: 16px;
  font-size: 14px;
}

.info-row__value {
  margin-left: auto;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

@media (min-width: 640px) {
  .fieldset--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding-block: 96px;
  text-align: center;
}

.error-box {
  border: 1px solid var(--accent);
  border-radius: 8px;
  background: #fdf2f2;
  padding: 12px 16px;
  font-size: 14px;
  color: var(--accent-strong);
}

/* -------------------------------------------------------------------------- */
/* Contact cards, policies                                                    */
/* -------------------------------------------------------------------------- */

.contact-grid {
  display: grid;
  gap: 16px;
}

@media (min-width: 640px) {
  .contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}

.contact-card:hover {
  border-color: rgba(29, 29, 31, 0.4);
}

.contact-card__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
}

.contact-card__label {
  display: block;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-card__value {
  font-size: 18px;
  font-weight: 700;
}

.policies {
  display: grid;
  align-items: start;
  gap: 32px;
}

@media (min-width: 1024px) {
  .policies {
    grid-template-columns: 240px minmax(0, 1fr);
  }
}

.policies__toc {
  display: flex;
  flex-direction: column;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  font-size: 14px;
}

.policies__toc a {
  border-radius: 6px;
  padding: 8px 12px;
  font-weight: 700;
}

.policies__toc a:hover {
  background: var(--canvas);
}

.policies__body {
  display: flex;
  max-width: 48rem;
  flex-direction: column;
  gap: 40px;
}

.policies__body section {
  scroll-margin-top: 96px;
}

.policies__body h2 {
  font-size: 20px;
  font-weight: 900;
  text-transform: uppercase;
}

.policies__body p {
  margin-top: 12px;
  line-height: 1.7;
  color: rgba(29, 29, 31, 0.85);
}

.link-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 700;
}

.link-pill:hover {
  border-color: rgba(29, 29, 31, 0.4);
  color: var(--accent);
}

@media (min-width: 1024px) {
  .policies__toc {
    position: sticky;
    top: 96px;
  }
}

/* -------------------------------------------------------------------------- */
/* Footer                                                                     */
/* -------------------------------------------------------------------------- */

.site-footer {
  margin-top: 80px;
  background: var(--ink);
  color: #fff;
}

.site-footer__warning {
  background: var(--accent);
  padding: 12px 16px;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
}

.site-footer__grid {
  display: grid;
  gap: 40px;
  padding-block: 56px;
}

.site-footer h2 {
  margin-bottom: 4px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.site-footer nav,
.site-footer__contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.8);
}

.site-footer a:hover {
  color: #fff;
}

.site-footer__contact p {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.8);
}

.site-footer__about {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.65);
}

.site-footer__legal {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.site-footer__legal div {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-block: 20px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
}

@media (min-width: 768px) {
  .site-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .site-footer__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .site-footer__legal div {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

/* -------------------------------------------------------------------------- */
/* Age gate                                                                 */
/* -------------------------------------------------------------------------- */

.age-gate {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(18, 12, 6, 0.92);
  backdrop-filter: blur(4px);
}

.age-gate[hidden] {
  display: none;
}

.age-gate__card {
  display: flex;
  width: 100%;
  max-width: 28rem;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: 28px;
  text-align: center;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.age-gate__card h2 {
  font-size: 24px;
  font-weight: 900;
  text-transform: uppercase;
}

.age-gate__actions {
  display: flex;
  width: 100%;
  flex-direction: column;
  gap: 12px;
}

.age-gate__actions .btn {
  flex: 1;
  border-radius: 999px;
  padding: 14px 18px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.age-gate__actions .btn:first-child {
  flex: 2;
}

.age-gate__fineprint {
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
}

@media (min-width: 640px) {
  .age-gate__card {
    padding: 36px;
  }

  .age-gate__actions {
    flex-direction: row;
  }
}

body.age-gate-open {
  overflow: hidden;
}

/* -------------------------------------------------------------------------- */
/* Order confirmation                                                         */
/* -------------------------------------------------------------------------- */

.order-done {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.order-done__mark {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: #2f8f4e;
  color: #fff;
}

.send-box {
  border: 2px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: 20px;
}

.send-box__actions {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

@media (min-width: 640px) {
  .send-box__actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.send-box pre {
  margin: 16px 0 0;
  overflow-x: auto;
  border-radius: 8px;
  background: var(--canvas);
  padding: 16px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  white-space: pre-wrap;
}

.btn--whatsapp {
  background: #25a35a;
  color: #fff;
}

.btn--whatsapp:hover {
  background: #1d8a4a;
}

/* Image logo. On dark backgrounds it sits on a white pill, since the artwork has a white ground. */
.logo__img {
  display: block;
  height: 48px;
  width: auto;
}

.logo--inverted {
  padding: 6px 12px;
  border-radius: 12px;
  background: #fff;
}

/* Reviews */
.product__stars {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.stars__off {
  color: #d9d4cc;
}

.reviews {
  display: flex;
  flex-direction: column;
  gap: 20px;
  border-top: 1px solid var(--line);
  padding-top: 40px;
  max-width: 48rem;
}

.reviews__summary {
  display: flex;
  align-items: center;
  gap: 8px;
}

.reviews__list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.review {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
}

.review__meta {
  margin: 6px 0;
  font-size: 13px;
  color: var(--muted);
}

.reviews .comment-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.reviews .comment-form input[type="text"],
.reviews .comment-form input[type="email"],
.reviews .comment-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  font: inherit;
}

.reviews .comment-form label {
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
  font-weight: 700;
}

.rating-input {
  display: inline-flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 2px;
  border: 0;
  padding: 0;
  margin: 0;
}

.rating-input legend {
  float: left;
  width: 100%;
  margin-bottom: 4px;
  font-size: 14px;
  font-weight: 700;
}

.rating-input input {
  position: absolute;
  opacity: 0;
}

.rating-input label {
  font-size: 28px !important;
  color: #d9d4cc;
  cursor: pointer;
  margin: 0 !important;
}

.rating-input input:checked ~ label,
.rating-input label:hover,
.rating-input label:hover ~ label {
  color: #f5a623;
}

.rating-input input:focus-visible + label {
  outline: 2px solid var(--accent);
}

.rating-title {
  margin-bottom: -8px;
  font-size: 14px;
  font-weight: 700;
}

/* Second photo of a card, shown while the pointer is over it. */
.product-card__hover {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.3s;
}

.product-card:hover .product-card__hover {
  opacity: 1;
}

/* Product page: trust box */
.trust-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--canvas);
  padding: 18px 20px;
  font-size: 14px;
}

.trust-box__title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-weight: 900;
}

.trust-box__title .stars {
  font-size: 14px;
}

.trust-box__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.trust-box__list li {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.trust-box__list svg {
  flex: none;
  margin-top: 2px;
  color: var(--accent);
}

.trust-box__phone a {
  color: var(--accent);
}

/* Product page: tabs */
.tabs {
  scroll-margin-top: 90px;
}

.tabs__bar {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
  margin-bottom: 28px;
}

.tabs__bar button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  border-bottom: 3px solid transparent;
  background: none;
  padding: 12px 14px;
  font-size: 15px;
  font-weight: 700;
  color: var(--muted);
  white-space: nowrap;
}

.tabs__bar button[aria-selected="true"] {
  border-bottom-color: var(--accent);
  color: var(--foreground);
}

.tabs__count {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  border-radius: 999px;
  background: var(--accent);
  padding: 0 6px;
  font-size: 11px;
  color: #fff;
}

.tabs__panel {
  max-width: 56rem;
}

.tabs__panel h2 {
  margin: 8px 0 16px;
}

.tabs__panel h3 {
  margin: 24px 0 8px;
  font-size: 17px;
}

.tabs__panel p + p {
  margin-top: 12px;
}

.tabs__panel .reviews {
  border-top: 0;
  padding-top: 0;
}

.reasons {
  display: grid;
  gap: 16px;
}

@media (min-width: 640px) {
  .reasons {
    grid-template-columns: 1fr 1fr;
  }
}

.reasons > div {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
}

.reasons h3 {
  margin-top: 0;
}

.product-card__from {
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
}

@media (max-width: 639px) {
  .announce {
    font-size: 10px;
    letter-spacing: 0.06em;
  }

  .site-header__bar {
    height: 60px;
    gap: 8px;
  }

  .site-header .logo__img {
    height: 38px;
  }

  .cart-button {
    padding: 4px;
  }
}

/* Menu items and the cart total stay on one line. */
.nav a,
.cart-button__total {
  white-space: nowrap;
}

@media (max-width: 1180px) {
  .nav {
    margin-left: 16px;
    gap: 0;
  }

  .nav a {
    padding: 8px;
    font-size: 12px;
  }
}

.footer-hours {
  align-items: flex-start !important;
}

.footer-hours svg {
  flex: none;
  margin-top: 3px;
}

/* Social icons in the footer bar. */
.site-footer__social {
  display: flex;
  gap: 10px;
}

.social-link {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  color: #fff;
  transition: transform 0.15s ease, filter 0.15s ease;
}

.social-link:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

.social-link--facebook {
  background: #1877f2;
}

.social-link--instagram {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%);
}

.social-link--tiktok {
  background: #000;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.social-link--whatsapp {
  background: #25d366;
}

/* Order notice shown after the age check, and the cookie bar. */
.notice-modal {
  position: fixed;
  inset: 0;
  z-index: 2100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(18, 12, 6, 0.75);
}

.notice-modal__card {
  display: flex;
  width: 100%;
  max-width: 30rem;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: 28px 24px;
  text-align: center;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.notice-modal__icon {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 999px;
  background: #25d366;
  color: #fff;
}

.notice-modal__card h2 {
  font-size: 22px;
  font-weight: 900;
  text-transform: uppercase;
}

.notice-modal__actions {
  display: flex;
  width: 100%;
  flex-direction: column;
  gap: 10px;
  margin-top: 6px;
}

.notice-modal__actions .btn {
  border-radius: 999px;
  padding: 14px 18px;
  letter-spacing: 0.04em;
}

@media (min-width: 640px) {
  .notice-modal__card {
    padding: 36px;
  }
}

.cookie-bar {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 1500;
  display: flex;
  max-width: 60rem;
  margin-inline: auto;
  flex-direction: column;
  gap: 12px;
  border-radius: var(--radius);
  background: var(--ink);
  padding: 16px;
  font-size: 13px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.85);
  box-shadow: 0 12px 30px -8px rgba(0, 0, 0, 0.5);
}

.cookie-bar a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-bar .btn {
  flex: none;
  border-radius: 999px;
  padding: 10px 24px;
}

@media (min-width: 640px) {
  .cookie-bar {
    flex-direction: row;
    align-items: center;
    gap: 20px;
    padding: 16px 20px;
  }
}

/* Text links added for internal linking. */
.seo-links a {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.seo-links a:hover {
  color: var(--accent);
}
