:root {
  color-scheme: light;
  --paper: #faf5ed;
  --ink: #352922;
  --muted: #66564b;
  --red: #83342f;
  --line: #d9c7b5;
  --serif: 'Palatino Linotype', Palatino, 'Book Antiqua', Georgia, serif;
  --sans: system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.65 var(--sans); }
a { color: inherit; }
img { display: block; width: 100%; height: auto; }
button, select, textarea { font: inherit; }
:focus-visible { outline: 3px solid #8b5527; outline-offset: 4px; }
[hidden] { display: none !important; }
.wrap { width: min(100% - 3rem, 70rem); margin-inline: auto; }
.header { border-bottom: 1px solid var(--line); }
.header-inner, .footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-block: 1rem; }
.wordmark { display: inline-block; font: 2.1rem/.95 var(--serif); color: var(--red); text-decoration: none; }
.wordmark span { display: block; margin-top: .45rem; font: 600 .77rem/1 var(--sans); letter-spacing: .11em; text-transform: uppercase; }
nav { display: flex; flex-wrap: wrap; gap: .3rem 1.55rem; font-weight: 550; }
nav a { text-decoration: none; }
nav a:hover, .details a:hover { color: var(--red); text-decoration: underline; }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 500; line-height: 1.06; text-wrap: balance; }
h1 { font-size: clamp(2.55rem, 5.7vw, 5.45rem); letter-spacing: -.05em; }
h1 span {
  color: #93601e;
  text-shadow: 0 0 18px #e9a94a77;
}
@supports (background-clip: text) {
  h1 span {
    background: linear-gradient(166deg, #805018 21%, #b47825 40%, #eab961 48%, #b2782b 55%, #82521c 75%);
    background-clip: text;
    color: transparent;
    text-shadow: none;
    filter: drop-shadow(0 0 8px #dc9c3f80);
  }
}
h2 { font-size: clamp(2.3rem, 5vw, 3.8rem); letter-spacing: -.035em; }
h3 { font-size: clamp(1.5rem, 3.3vw, 2.15rem); }
p { color: var(--muted); }
.hero { display: grid; grid-template-columns: 1.18fr .82fr; align-items: center; gap: clamp(1.5rem, 5vw, 5rem); padding-block: clamp(2.4rem, 6vw, 5.5rem); }
.hero-copy > p { max-width: 29rem; font-size: 1.13rem; }
.hero-picture { margin: 0 auto; width: min(100%, 26rem); border-radius: 50% 50% 1rem 1rem / 36% 36% 1rem 1rem; overflow: hidden; box-shadow: 0 12px 40px #79523620; }
.hero-picture img { width: 100%; }
.actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.55rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 2.85rem; border: 1px solid transparent; border-radius: .3rem; padding: .53rem .93rem; font-size: .95rem; font-weight: 650; text-decoration: none; line-height: 1.35; cursor: pointer; }
.button-primary { background: var(--red); color: white; }
.button-primary:hover { background: #642522; }
.button-outline { background: transparent; border-color: #9d7765; color: var(--ink); }
.button-outline:hover { background: #efe0d1; }
.details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem 1rem; padding: 0; margin: 1.4rem 0 0; list-style: none; color: var(--muted); font-size: .9rem; }
.details li::before { content: '✦'; margin-right: .37rem; color: #8a5b20; }
.details a { text-underline-offset: .2em; }
.catalog { padding-block: clamp(3rem, 6vw, 5rem); background: #f2e7db; }
.products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 4vw, 2.5rem); margin-top: 1.8rem; }
.products article { overflow: hidden; background: #fffbf6; border: 1px solid var(--line); border-radius: .85rem; }
.products article img { aspect-ratio: 3 / 4; object-fit: cover; object-position: center; }
.product-copy { padding: clamp(1rem, 3vw, 1.7rem); }
.product-copy strong { display: block; margin-bottom: .9rem; }
.personal, .order { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.4rem, 6vw, 5rem); align-items: start; padding-block: clamp(3rem, 7vw, 6rem); }
.options { margin: 0; padding: .45rem 1.45rem; list-style: none; background: #f2e7db; border-radius: .7rem; }
.options li { padding: .8rem 0; }
.options li + li { border-top: 1px solid var(--line); }
.story { background: #4f2b26; color: #fffbf6; padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.story-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 3rem; align-items: center; }
.story p { margin: 0; color: #f7e5d9; }
form, #request-result { display: grid; gap: .65rem; }
label { font-weight: 650; }
label span { color: var(--muted); font-weight: 400; }
select, textarea { padding: .65rem; max-width: 100%; min-width: 0; width: 100%; background: #fffbf6; border: 1px solid #ad9080; border-radius: .3rem; color: var(--ink); }
textarea { resize: vertical; }
form .button { justify-self: start; }
#status:empty { display: none; }
footer { border-top: 1px solid var(--line); }
.footer-inner p { margin: 0; }
@media (max-width: 48rem) {
  .wrap { width: min(100% - 2rem, 35rem); }
  .hero, .personal, .order, .story-inner { grid-template-columns: 1fr; }
  .header-inner { flex-wrap: wrap; }
  nav { order: 1; width: 100%; gap: .3rem 1.1rem; }
  .hero-picture { width: min(100%, 21rem); }
}
@media (max-width: 34rem) {
  .products, .details { grid-template-columns: 1fr; }
  .footer-inner { align-items: start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.cart-count { margin-left: .45rem; padding: 0 .4rem; border-radius: .8rem; background: var(--red); color: white; }
.product-copy .button { margin: 0 .3rem .35rem 0; }
.cart-section { background: #f2e7db; padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.cart-items { list-style: none; padding: 0; max-width: 52rem; }
.cart-items li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .6rem 1.5rem;
  padding-block: .8rem;
  border-bottom: 1px solid var(--line);
}
.cart-controls { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem; }
.cart-controls .button { min-width: 2.8rem; }
.cart-quantity { min-width: 3.5rem; text-align: center; }
#single-product label { display: block; margin-bottom: .5rem; }
#order-cart ul { margin-block: .4rem .7rem; padding-left: 1.3rem; }

.contact-section {
  background: #f2e7db;
  padding-block: clamp(2.8rem, 6vw, 5rem);
}
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.4rem, 6vw, 5rem);
  align-items: start;
}
.contact-details {
  background: #fffbf6;
  border: 1px solid var(--line);
  border-radius: .7rem;
  padding: clamp(1rem, 4vw, 1.8rem);
}
.contact-details h3 { font-size: 1.5rem; }
.contact-details p { margin-bottom: 0; }
@media (max-width: 48rem) {
  .contact-inner { grid-template-columns: 1fr; }
}

.message-actions { display: flex; flex-wrap: wrap; gap: .55rem; }
.contact-details dl { margin-block: .9rem 1.4rem; }
.contact-details dt { font-weight: 650; }
.contact-details dd { margin: 0 0 .65rem; }
.contact-details dd a, .social-links a, .footer-phone { text-underline-offset: .2em; }
.social-links { list-style: none; padding: 0; margin: .7rem 0 0; }
.social-links li + li { margin-top: .35rem; }
.footer-phone { font-weight: 650; white-space: nowrap; }

.products article { display: flex; flex-direction: column; }
.product-copy { display: flex; flex: 1; flex-wrap: wrap; align-content: flex-start; gap: .3rem .5rem; }
.product-copy h3, .product-copy p, .product-copy strong { width: 100%; }
.product-copy p { margin-block: .4rem .65rem; }
.product-copy strong { margin-top: auto; }
@media (min-width: 58rem) {
  .products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.catalog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: 1.25rem;
}
.catalog-filters .button[aria-pressed="true"] {
  background: var(--red);
  color: white;
  border-color: var(--red);
}
@media (max-width: 30rem) {
  .catalog-filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.products .product-image-contained { object-fit: contain; background: #fff; }

.cart-product-info { display: grid; gap: .2rem; }
.cart-product-info span { color: var(--muted); }
.cart-total { display: flex; justify-content: space-between; gap: 1rem; max-width: 52rem; color: var(--ink); font-size: 1.15rem; }
.story-image { width: min(100%, 25rem); justify-self: center; border-radius: .85rem; }
.product-photo { display: block; cursor: zoom-in; }
.product-photo:focus-visible { outline-offset: -4px; }
.photo-viewer { width: min(100% - 1rem, 46rem); max-height: calc(100dvh - 1rem); padding: clamp(.7rem, 3vw, 1.2rem); border: 1px solid var(--line); border-radius: .85rem; background: var(--paper); color: var(--ink); }
.photo-viewer::backdrop { background: #231910c4; }
.photo-viewer-header, .photo-viewer-controls { display: flex; align-items: center; justify-content: space-between; gap: .6rem; }
.photo-viewer-header { margin-bottom: .7rem; }
.photo-viewer-header h2 { font-size: clamp(1.2rem, 4vw, 1.8rem); }
.photo-viewer-header .button { background: #fffbf6; }
#photo-detail { height: min(66dvh, 40rem); object-fit: contain; }
.photo-viewer-controls { margin-top: .7rem; flex-wrap: wrap; justify-content: center; }

.brand-logo { display: block; width: clamp(9.5rem, 19vw, 13.5rem); max-width: 58%; flex-shrink: 0; }
.brand-logo img { clip-path: ellipse(47% 48.2% at 49.3% 49.8%); }
.story h2 + p { margin-top: 1rem; }
.story p + p { margin-top: .8rem; }

.contact-details dd p { margin-block: .3rem .55rem; }
#livrare-plata { scroll-margin-top: 1rem; }

.hero-copy > .gift-offer {
  display: flex;
  align-items: center;
  gap: .65rem;
  width: fit-content;
  max-width: 100%;
  margin: 1rem 0 0;
  padding: .7rem .9rem;
  border: 1px solid #d7ae8e;
  border-left: .25rem solid #b87d3f;
  border-radius: .5rem;
  background: #f7e5de;
  color: #702822;
  font-size: 1rem;
  line-height: 1.4;
}
.gift-offer span { font-size: 1.25rem; }
