/* ==========================================================================
   Mariyam Fancy — design system
   Burgundy / champagne gold / warm ivory. Cormorant Garamond + Jost.
   ========================================================================== */

:root {
  --wine-950: #1c060c;
  --wine-900: #2b0b15;
  --wine-800: #43101f;
  --wine: #5a1427;
  --wine-600: #741e37;
  --gold: #c9a96a;
  --gold-light: #e6d5ad;
  --gold-deep: #86642a;
  --ivory: #faf5ec;
  --ivory-2: #f2eadb;
  --paper: #fffdf8;
  --ink: #2a1a1d;
  --muted: #6c5c59;
  --line: #e2d6c0;
  --ok: #38684a;
  --bad: #9c2a2a;
  --serif: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
  --sans: "Jost", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --ease: cubic-bezier(.22, .7, .2, 1);
  --radius: 2px;
  --header-h: 76px;
  --wrap: 1200px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font: 400 1rem/1.65 var(--sans);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  display: block;
}

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

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.1;
  margin: 0 0 .5em;
  letter-spacing: .005em;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4.6rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
  font-size: 1.5rem;
}

p {
  margin: 0 0 1em;
}

:focus-visible {
  outline: 2px solid var(--gold-deep);
  outline-offset: 3px;
}

::selection {
  background: var(--wine);
  color: var(--gold-light);
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--wine);
  color: #fff;
  padding: .6rem 1rem;
  z-index: 200;
}

.skip:focus {
  left: 0;
}

.container {
  width: min(var(--wrap), 100% - 3rem);
  margin-inline: auto;
}

.narrow {
  width: min(760px, 100% - 3rem);
  margin-inline: auto;
}

.section {
  padding: clamp(3.5rem, 8vw, 6.5rem) 0;
}

.section--tint {
  background: var(--ivory-2);
}

.section--wine {
  background: var(--wine-900);
  color: var(--ivory);
}

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

.lead {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 52ch;
}

.serif {
  font-family: var(--serif);
}

.price {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--wine);
}

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

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .95rem 1.9rem;
  border: 1px solid var(--gold);
  background: var(--gold);
  color: var(--wine-950);
  font-weight: 500;
  font-size: .92rem;
  letter-spacing: .06em;
  cursor: pointer;
  border-radius: var(--radius);
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease);
}

.btn:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn--wine {
  background: var(--wine);
  border-color: var(--wine);
  color: var(--gold-light);
}

.btn--wine:hover {
  background: var(--wine-600);
  border-color: var(--wine-600);
  color: #fff;
}

.btn--ghost {
  background: transparent;
  color: inherit;
  border-color: currentColor;
}

.btn--ghost:hover {
  background: var(--wine);
  border-color: var(--wine);
  color: var(--gold-light);
}

.on-dark .btn--ghost:hover, .section--wine .btn--ghost:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--wine-950);
}

.btn--danger {
  background: transparent;
  color: var(--bad);
  border-color: var(--bad);
}

.btn--danger:hover {
  background: var(--bad);
  border-color: var(--bad);
  color: #fff;
}

.btn--sm {
  padding: .5rem 1rem;
  font-size: .8rem;
}

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

.btn[disabled] {
  opacity: .5;
  pointer-events: none;
}

.link {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  font-weight: 500;
  color: var(--wine);
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 100% 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size .4s var(--ease), color .3s;
}

.link:hover {
  background-size: 0 1px;
  background-position: 100% 100%;
}

.on-dark .link, .section--wine .link {
  color: var(--gold-light);
}

/* ---------- Loader veil (first visit per session) ---------- */

.veil {
  display: none;
}

.veil-on .veil {
  display: grid;
  place-items: center;
  position: fixed;
  inset: 0;
  z-index: 300;
  background: var(--wine-950);
  animation: veilOut .9s var(--ease) 2.4s forwards;
}

.veil-logo {
  font-family: var(--serif);
  color: var(--gold);
  text-align: center;
  letter-spacing: .3em;
  font-size: 1.6rem;
  padding-left: .5em;
  animation: veilLogo 1.1s var(--ease) both;
}

.veil-logo small {
  display: block;
  font: 400 .7rem var(--sans);
  letter-spacing: .3em;
  color: var(--gold-light);
  margin-top: .6rem;
}

.veil.is-done {
  animation: veilOut .8s var(--ease) forwards;
}

@keyframes veilOut {
  to {
    opacity: 0;
    visibility: hidden;
  }
}

@keyframes veilLogo {
  from {
    opacity: 0;
    letter-spacing: .8em;
  }
  to {
    opacity: 1;
    letter-spacing: .5em;
  }
}

/* ---------- Header ---------- */

.announce {
  background: var(--wine-950);
  color: var(--gold-light);
  font-size: .82rem;
  letter-spacing: .04em;
}

.announce .container {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .5rem 0;
}

.announce a:hover {
  color: #fff;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 245, 236, .97);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .4s var(--ease);
}

.site-header.is-stuck {
  box-shadow: 0 6px 24px rgba(43, 11, 21, .08);
}

.nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: var(--header-h);
  transition: height .4s var(--ease);
}

.is-stuck .nav {
  height: 64px;
}

.logo {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.65rem;
  letter-spacing: .32em;
  color: var(--wine);
  line-height: 1;
  text-align: center;
  padding-left: .32em;
}

.logo small {
  display: block;
  font: 400 .62rem var(--sans);
  letter-spacing: .62em;
  color: var(--gold-deep);
  margin-top: .35rem;
  padding-left: .62em;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a, .nav-actions a, .nav-actions button.navbtn {
  position: relative;
  font-size: .92rem;
  letter-spacing: .04em;
  padding: .4rem 0;
  background: none;
  border: 0;
  cursor: pointer;
}

.nav-links a::after, .nav-actions a.txt::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--wine);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .45s var(--ease);
}

.nav-links a:hover::after, .nav-links a[aria-current="page"]::after, .nav-actions a.txt:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-links a[aria-current="page"] {
  color: var(--wine);
  font-weight: 500;
}

.nav-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 1.4rem;
}

.cart-link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}

.cart-link svg {
  width: 22px;
  height: 22px;
}

.count {
  background: var(--wine);
  color: var(--gold-light);
  font-size: .7rem;
  min-width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  padding: 0 .3rem;
}

.menu-btn {
  display: none;
  background: none;
  border: 0;
  width: 44px;
  height: 44px;
  cursor: pointer;
  padding: 0;
  position: relative;
}

.menu-btn span {
  position: absolute;
  left: 10px;
  right: 10px;
  height: 1.5px;
  background: var(--wine);
  transition: transform .4s var(--ease), opacity .3s;
}

.menu-btn span:nth-child(1) {
  top: 15px;
}

.menu-btn span:nth-child(2) {
  top: 21px;
}

.menu-btn span:nth-child(3) {
  top: 27px;
}

.menu-open .menu-btn span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.menu-open .menu-btn span:nth-child(2) {
  opacity: 0;
}

.menu-open .menu-btn span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.drawer {
  display: none;
}

/* ---------- Toasts ---------- */

.toasts {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 250;
  display: grid;
  gap: .6rem;
  width: min(380px, calc(100% - 2rem));
}

.toast {
  display: flex;
  gap: .8rem;
  align-items: flex-start;
  padding: .9rem 1rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  box-shadow: 0 12px 32px rgba(43, 11, 21, .16);
  animation: toastIn .6s var(--ease) both;
  font-size: .95rem;
}

.toast--success {
  border-left-color: var(--ok);
}

.toast--error {
  border-left-color: var(--bad);
}

.toast button {
  margin-left: auto;
  background: none;
  border: 0;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  color: var(--muted);
}

.toast.is-leaving {
  opacity: 0;
  transform: translateX(20px);
  transition: .4s var(--ease);
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateX(24px);
  }
}

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

.hero {
  background: var(--wine-950);
  color: var(--ivory);
  overflow: hidden;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  align-items: center;
  min-height: min(760px, calc(100vh - 110px));
  gap: 2rem;
}

.hero-copy {
  padding: 4rem 0;
  position: relative;
  z-index: 2;
}

.hero h1 {
  color: var(--ivory);
  max-width: 12ch;
  margin-bottom: .4em;
}

.hero h1 em {
  font-style: italic;
  color: var(--gold);
}

.hero p.lead {
  color: #d9c7c0;
  margin-bottom: 2rem;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-art {
  position: relative;
  align-self: stretch;
  min-height: 420px;
}

.hero-art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 28%);
  mask-image: linear-gradient(90deg, transparent, #000 28%);
}

.hero-art::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 25%;
  background: linear-gradient(transparent, var(--wine-950));
  pointer-events: none;
}

.rise {
  opacity: 0;
  transform: translateY(26px);
  animation: rise 1s var(--ease) forwards;
  animation-delay: calc(var(--d, 0) * 1s + .1s);
}

.veil-on .rise {
  animation-delay: calc(var(--d, 0) * 1s + 1.5s);
}

@keyframes rise {
  to {
    opacity: 1;
    transform: none;
  }
}

.hero-art img {
  animation: heroImg 1.8s var(--ease) both;
  animation-delay: .1s;
}

.veil-on .hero-art img {
  animation-delay: 1.3s;
}

@keyframes heroImg {
  from {
    opacity: 0;
    transform: scale(1.08);
  }
}

/* ---------- Promise strip ---------- */

.promises {
  background: var(--ivory-2);
  border-bottom: 1px solid var(--line);
}

.promises ul {
  list-style: none;
  margin: 0;
  padding: 1.3rem 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  font-size: .93rem;
  text-align: center;
}

.promises li {
  padding: 0 .5rem;
  border-left: 1px solid var(--line);
}

.promises li:first-child {
  border-left: 0;
}

.promises strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--wine);
  font-weight: 600;
}

/* ---------- Section heads ---------- */

.sec-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  margin-bottom: 2.6rem;
  flex-wrap: wrap;
}

.sec-head h2 {
  margin: 0;
}

.sec-head p {
  margin: .6rem 0 0;
  color: var(--muted);
  max-width: 46ch;
}

.page-head {
  background: var(--wine-900);
  color: var(--ivory);
  padding: clamp(2.5rem, 6vw, 4.2rem) 0;
}

.page-head h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  margin-bottom: .25em;
  color: var(--ivory);
}

.page-head p {
  color: #d9c7c0;
  margin: 0;
  max-width: 56ch;
}

.crumbs {
  font-size: .85rem;
  color: var(--gold-light);
  margin-bottom: 1rem;
  display: flex;
  gap: .6rem;
  flex-wrap: wrap;
}

.crumbs a:hover {
  text-decoration: underline;
}

/* ---------- Collection tiles ---------- */

.tiles {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.2rem;
}

.tile {
  position: relative;
  overflow: hidden;
  background: var(--wine-950);
  color: var(--ivory);
  aspect-ratio: 1 / 1;
  grid-column: span 3;
  display: block;
}

.tile:first-child {
  grid-column: span 6;
  grid-row: span 2;
  aspect-ratio: auto;
  min-height: 100%;
}

.tile:nth-child(2) {
  grid-column: span 6;
  aspect-ratio: 2 / 1;
}

.tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease), opacity .6s;
  opacity: .9;
}

.tile:hover img {
  transform: scale(1.06);
  opacity: 1;
}

.tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 45%, rgba(28, 6, 12, .88));
}

.tile-body {
  position: absolute;
  left: 1.3rem;
  right: 1.3rem;
  bottom: 1.2rem;
  z-index: 2;
}

.tile-body h3 {
  margin: 0;
  font-size: 1.7rem;
  color: #fff;
}

.tile:first-child h3 {
  font-size: 2.4rem;
}

.tile:nth-child(2) img {
  object-position: 50% 30%;
}

.tile-body span {
  font-size: .88rem;
  color: var(--gold-light);
}

/* ---------- Product cards / grid ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem 1.4rem;
}

.grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.pcard {
  position: relative;
  display: flex;
  flex-direction: column;
}

.pcard-media {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--wine-950);
  display: block;
}

.pcard-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease);
}

.pcard:hover .pcard-media img {
  transform: scale(1.07);
}

.pcard-add {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
}

.pcard-add .btn {
  width: 100%;
  border-radius: 0;
  background: rgba(250, 245, 236, .96);
  border-color: transparent;
  color: var(--wine);
}

.pcard-add .btn:hover {
  background: var(--wine);
  color: var(--gold-light);
  transform: none;
}

@media (hover: hover) {
  .pcard-add {
    transform: translateY(101%);
    transition: transform .5s var(--ease);
  }

  .pcard:hover .pcard-add, .pcard:focus-within .pcard-add {
    transform: none;
  }
}

.tag {
  position: absolute;
  top: .8rem;
  left: .8rem;
  background: var(--paper);
  color: var(--wine);
  font-size: .74rem;
  letter-spacing: .06em;
  padding: .25rem .6rem;
  z-index: 2;
}

.tag--out {
  background: var(--wine-950);
  color: var(--gold-light);
}

.pcard-info {
  padding-top: .9rem;
}

.pcard-info .cat {
  font-size: .82rem;
  color: var(--muted);
}

.pcard-info h3 {
  font-size: 1.3rem;
  margin: .1rem 0 .3rem;
  transition: color .3s;
}

.pcard:hover h3 {
  color: var(--wine-600);
}

/* ---------- Story band ---------- */

.story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.story-img {
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: var(--wine-950);
}

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

.story p {
  color: #d9c7c0;
  max-width: 50ch;
}

.story h2 {
  color: var(--ivory);
}

.visit {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.visit address {
  font-style: normal;
  font-family: var(--serif);
  font-size: 1.7rem;
  line-height: 1.3;
  color: var(--wine);
  margin-bottom: 1rem;
}

/* ---------- Reveal motion ---------- */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  transition-delay: calc(var(--i, 0) * 90ms);
}

.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

.js .img-reveal {
  clip-path: inset(0 0 100% 0);
  transition: clip-path 1.3s var(--ease);
}

.js .img-reveal.is-in {
  clip-path: inset(0);
}

/* ---------- Forms ---------- */

.field {
  margin-bottom: 1.2rem;
}

.field label {
  display: block;
  font-size: .9rem;
  font-weight: 500;
  margin-bottom: .4rem;
}

.field .hint {
  font-size: .82rem;
  color: var(--muted);
  margin-top: .3rem;
}

.input, select.input, textarea.input {
  width: 100%;
  padding: .85rem 1rem;
  background: var(--paper);
  border: 1px solid #cdbf9f;
  border-radius: var(--radius);
  transition: border-color .3s, box-shadow .3s;
  appearance: none;
  -webkit-appearance: none;
}

select.input {
  background-image: linear-gradient(45deg, transparent 50%, var(--wine) 50%), linear-gradient(135deg, var(--wine) 50%, transparent 50%);
  background-position: calc(100% - 18px) 55%, calc(100% - 13px) 55%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
  padding-right: 2.4rem;
}

.input:hover {
  border-color: var(--gold-deep);
}

.input:focus {
  outline: 0;
  border-color: var(--wine);
  box-shadow: 0 0 0 3px rgba(90, 20, 39, .12);
}

textarea.input {
  min-height: 130px;
  resize: vertical;
}

.field.has-error .input {
  border-color: var(--bad);
}

.error-text {
  color: var(--bad);
  font-size: .85rem;
  margin-top: .3rem;
}

.alert {
  padding: .8rem 1rem;
  border: 1px solid var(--bad);
  background: #fbeeee;
  color: var(--bad);
  margin-bottom: 1.2rem;
  font-size: .95rem;
}

.row2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 1.2rem;
}

.check {
  display: flex;
  gap: .6rem;
  align-items: center;
  margin-bottom: .8rem;
  font-size: .95rem;
}

.check input {
  width: 18px;
  height: 18px;
  accent-color: var(--wine);
}

.pw {
  position: relative;
}

.pw button {
  position: absolute;
  right: .5rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: 0;
  color: var(--wine);
  font-size: .82rem;
  cursor: pointer;
  padding: .4rem;
}

.hp {
  position: absolute;
  left: -5000px;
}

/* ---------- Auth ---------- */

.auth {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - 110px);
}

.auth-art {
  position: relative;
  background: var(--wine-950);
  overflow: hidden;
}

.auth-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .95;
}

.auth-art div {
  position: absolute;
  left: 2.5rem;
  right: 2.5rem;
  bottom: 2.5rem;
  color: var(--ivory);
}

.auth-art h2 {
  font-size: 2.3rem;
  color: var(--ivory);
  margin: 0 0 .3rem;
  text-shadow: 0 2px 20px rgba(0,0,0,.6);
}

.auth-art p {
  color: var(--gold-light);
  margin: 0;
}

.auth-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 50%, rgba(28, 6, 12, .85));
}

.auth-art div {
  z-index: 2;
}

.auth-form {
  display: grid;
  place-items: center;
  padding: 3rem 1.5rem;
}

.auth-card {
  width: min(440px, 100%);
}

.auth-card h1 {
  font-size: 2.6rem;
}

.auth-alt {
  margin-top: 1.4rem;
  color: var(--muted);
  font-size: .95rem;
}

/* ---------- Shop toolbar ---------- */

.shop {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 3rem;
  align-items: start;
}

.filters {
  position: sticky;
  top: 90px;
}

.filters h3 {
  font-size: 1.15rem;
  margin: 1.6rem 0 .6rem;
}

.filters h3:first-child {
  margin-top: 0;
}

.filters ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.filters li a {
  display: flex;
  justify-content: space-between;
  padding: .45rem 0;
  border-bottom: 1px solid var(--line);
  font-size: .95rem;
  transition: padding .3s var(--ease), color .3s;
}

.filters li a:hover {
  padding-left: .5rem;
  color: var(--wine);
}

.filters li a.on {
  color: var(--wine);
  font-weight: 600;
}

.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.8rem;
  flex-wrap: wrap;
}

.toolbar select {
  width: auto;
  min-width: 190px;
}

.filter-toggle {
  display: none;
}

.empty {
  text-align: center;
  padding: 4rem 1rem;
  border: 1px dashed #cdbf9f;
  background: var(--paper);
}

.empty h3 {
  color: var(--wine);
}

.pager {
  display: flex;
  gap: .4rem;
  justify-content: center;
  margin-top: 3rem;
  flex-wrap: wrap;
}

.pager a, .pager span {
  min-width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  padding: 0 .6rem;
  transition: .3s;
}

.pager a:hover {
  border-color: var(--wine);
  color: var(--wine);
}

.pager .cur {
  background: var(--wine);
  color: var(--gold-light);
  border-color: var(--wine);
}

/* ---------- Product detail ---------- */

.pd {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.pd-media {
  aspect-ratio: 1 / 1;
  background: var(--wine-950);
  overflow: hidden;
  position: sticky;
  top: 100px;
}

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

.pd h1 {
  font-size: clamp(2.1rem, 4vw, 3.2rem);
}

.pd .price {
  font-size: 2rem;
  display: block;
  margin: .4rem 0 1.2rem;
}

.pd-buy {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
  margin: 1.8rem 0 1rem;
}

.facts {
  list-style: none;
  padding: 1.2rem 0 0;
  margin: 2rem 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  gap: .6rem;
  font-size: .95rem;
}

.facts li {
  display: flex;
  gap: .8rem;
}

.facts b {
  min-width: 7.5rem;
  font-weight: 500;
  color: var(--gold-deep);
}

.stock-note {
  font-size: .9rem;
  color: var(--ok);
}

.stock-note.low {
  color: var(--bad);
}

.qty {
  display: inline-flex;
  border: 1px solid #cdbf9f;
  background: var(--paper);
}

.qty button {
  width: 42px;
  border: 0;
  background: none;
  cursor: pointer;
  font-size: 1.2rem;
  transition: background .25s;
}

.qty button:hover {
  background: var(--ivory-2);
}

.qty input {
  width: 48px;
  text-align: center;
  border: 0;
  background: none;
  -moz-appearance: textfield;
}

.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* ---------- Cart / checkout / orders ---------- */

.split {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 3rem;
  align-items: start;
}

.line {
  display: grid;
  grid-template-columns: 96px 1fr auto;
  gap: 1.2rem;
  padding: 1.3rem 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
}

.line:first-child {
  padding-top: 0;
}

.line img {
  width: 96px;
  height: 96px;
  object-fit: cover;
  background: var(--wine-950);
}

.line h3 {
  font-size: 1.25rem;
  margin: 0 0 .2rem;
}

.line-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-top: .6rem;
  flex-wrap: wrap;
}

.line-total {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--wine);
  text-align: right;
}

.summary {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 1.8rem;
  position: sticky;
  top: 100px;
}

.summary h2 {
  font-size: 1.7rem;
}

.sum-row {
  display: flex;
  justify-content: space-between;
  padding: .55rem 0;
  gap: 1rem;
}

.sum-row.total {
  border-top: 1px solid var(--line);
  margin-top: .6rem;
  padding-top: 1rem;
  font-size: 1.15rem;
  font-weight: 500;
}

.sum-row.total span:last-child {
  font-family: var(--serif);
  font-size: 1.7rem;
  color: var(--wine);
  font-weight: 600;
}

.note {
  background: var(--ivory-2);
  padding: .9rem 1rem;
  font-size: .9rem;
  margin: 1rem 0;
  border-left: 3px solid var(--gold);
}

.mini {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: .8rem;
  align-items: center;
  padding: .6rem 0;
  font-size: .92rem;
}

.mini img {
  width: 56px;
  height: 56px;
  object-fit: cover;
}

.badge {
  display: inline-block;
  padding: .2rem .7rem;
  font-size: .78rem;
  letter-spacing: .04em;
  border: 1px solid currentColor;
  border-radius: 99px;
  white-space: nowrap;
}

.st-Pending {
  color: var(--gold-deep);
  background: #f7efdc;
}

.st-Confirmed {
  color: var(--wine);
  background: #f6e6ea;
}

.st-Shipped {
  color: #2f5870;
  background: #e6eff4;
}

.st-Delivered {
  color: var(--ok);
  background: #e5f0e8;
}

.st-Cancelled {
  color: var(--bad);
  background: #f8e8e8;
}

.track {
  display: flex;
  margin: 1.5rem 0 2.2rem;
  list-style: none;
  padding: 0;
}

.track li {
  flex: 1;
  text-align: center;
  font-size: .85rem;
  color: var(--muted);
  position: relative;
}

.track li::before {
  content: "";
  display: block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1.5px solid var(--gold-deep);
  margin: 0 auto .5rem;
  background: var(--ivory);
  position: relative;
  z-index: 2;
}

.track li::after {
  content: "";
  position: absolute;
  top: 7px;
  left: 50%;
  width: 100%;
  height: 1.5px;
  background: var(--line);
  z-index: 1;
}

.track li:last-child::after {
  display: none;
}

.track li.done {
  color: var(--wine);
}

.track li.done::before {
  background: var(--wine);
  border-color: var(--wine);
}

.track li.done::after {
  background: var(--wine);
}

.success {
  text-align: center;
  padding: 1.5rem 1rem 2rem;
  background: var(--paper);
  border: 1px solid var(--line);
  margin-bottom: 2rem;
}

.success h2 {
  color: var(--wine);
  margin-bottom: .2rem;
}

.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 1.8rem;
  margin-bottom: 1.6rem;
}

.panel h2 {
  font-size: 1.7rem;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.6rem;
}

.stat {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 1.3rem 1.5rem;
}

.stat b {
  display: block;
  font-family: var(--serif);
  font-size: 2.2rem;
  color: var(--wine);
  line-height: 1.1;
  font-weight: 600;
}

.stat span {
  color: var(--muted);
  font-size: .9rem;
}

.acct {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 3rem;
  align-items: start;
}

.acct-nav {
  list-style: none;
  padding: 0;
  margin: 0;
  position: sticky;
  top: 100px;
}

.acct-nav a, .acct-nav button {
  display: block;
  width: 100%;
  text-align: left;
  padding: .75rem 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: none;
  cursor: pointer;
  transition: padding .3s var(--ease), color .3s;
}

.acct-nav a:hover, .acct-nav button:hover {
  padding-left: .6rem;
  color: var(--wine);
}

.acct-nav a[aria-current="page"] {
  color: var(--wine);
  font-weight: 600;
}

/* ---------- Tables ---------- */

.table-wrap {
  overflow-x: auto;
  background: var(--paper);
  border: 1px solid var(--line);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: .94rem;
}

th {
  text-align: left;
  font-weight: 500;
  font-size: .82rem;
  letter-spacing: .04em;
  color: var(--gold-deep);
  padding: .9rem 1rem;
  border-bottom: 1px solid var(--line);
  background: var(--ivory-2);
  white-space: nowrap;
}

td {
  padding: .85rem 1rem;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

tbody tr {
  transition: background .25s;
}

tbody tr:hover {
  background: #fbf6ea;
}

tr:last-child td {
  border-bottom: 0;
}

td.num, th.num {
  text-align: right;
}

td img.thumb {
  width: 52px;
  height: 52px;
  object-fit: cover;
  background: var(--wine-950);
}

.actions {
  display: flex;
  gap: .5rem;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.inline {
  display: inline;
}

/* ---------- Contact / about ---------- */

.contact {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(2rem, 6vw, 5rem);
}

.info-list {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
  display: grid;
  gap: 1.5rem;
}

.info-list b {
  display: block;
  font-family: var(--serif);
  font-size: 1.25rem;
  color: var(--wine);
  font-weight: 600;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.about-img {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--wine-950);
}

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

.values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.4rem;
}

.values h3 {
  color: var(--wine);
  border-top: 1px solid var(--gold);
  padding-top: 1rem;
}

.error-page {
  text-align: center;
  padding: clamp(4rem, 12vw, 8rem) 1rem;
}

.error-page .code {
  font-family: var(--serif);
  font-size: clamp(5rem, 16vw, 9rem);
  color: var(--gold);
  line-height: 1;
}

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

.site-footer {
  background: var(--wine-950);
  color: #d9c7c0;
  padding: 4.5rem 0 0;
  margin-top: 0;
}

.foot {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
  gap: 3rem;
  padding-bottom: 3rem;
}

.foot .logo {
  text-align: left;
  color: var(--gold);
  padding: 0;
  margin-bottom: 1rem;
  display: inline-block;
  white-space: nowrap;
  font-size: 1.4rem;
  letter-spacing: .2em;
}

.foot .logo small {
  padding-left: 0;
  letter-spacing: .3em;
  color: var(--gold-light);
}

.foot h4 {
  font-family: var(--sans);
  font-size: .95rem;
  font-weight: 500;
  color: var(--gold-light);
  letter-spacing: .04em;
  margin-bottom: 1rem;
}

.foot ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: .55rem;
  font-size: .95rem;
}

.foot a {
  transition: color .3s;
}

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

.foot address {
  font-style: normal;
  line-height: 1.8;
  font-size: .95rem;
}

.foot-bottom {
  border-top: 1px solid rgba(201, 169, 106, .2);
  padding: 1.3rem 0;
  font-size: .85rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ---------- Admin ---------- */

.admin {
  display: grid;
  grid-template-columns: 250px 1fr;
  min-height: 100vh;
  background: var(--ivory);
}

.side {
  background: var(--wine-950);
  color: var(--gold-light);
  padding: 1.8rem 1.2rem;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.side .logo {
  text-align: left;
  color: var(--gold);
  padding: 0 .6rem;
  margin-bottom: 2rem;
  font-size: 1.05rem;
  letter-spacing: .12em;
}

.side .logo small {
  padding-left: 0;
  letter-spacing: .2em;
}

.side nav {
  display: grid;
  gap: .2rem;
}

.side nav a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .7rem .8rem;
  font-size: .95rem;
  border-left: 2px solid transparent;
  transition: background .3s, border-color .3s, padding .3s var(--ease);
}

.side nav a:hover {
  background: rgba(201, 169, 106, .1);
  padding-left: 1.1rem;
}

.side nav a[aria-current="page"] {
  background: rgba(201, 169, 106, .14);
  border-left-color: var(--gold);
  color: #fff;
}

.side .foot-links {
  margin-top: auto;
  padding-top: 1.5rem;
  display: grid;
  gap: .6rem;
  font-size: .9rem;
}

.side .foot-links .btn {
  width: 100%;
}

.admin-main {
  padding: 2.2rem clamp(1.2rem, 3vw, 3rem) 4rem;
  min-width: 0;
}

.admin-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.8rem;
}

.admin-top h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin: 0;
}

.admin-top p {
  margin: .2rem 0 0;
  color: var(--muted);
}

.kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.kpi {
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 2px solid var(--gold);
  padding: 1.2rem 1.3rem;
}

.kpi b {
  display: block;
  font-family: var(--serif);
  font-size: 2.1rem;
  color: var(--wine);
  font-weight: 600;
  line-height: 1.1;
}

.kpi span {
  font-size: .88rem;
  color: var(--muted);
}

.two {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 1.6rem;
  align-items: start;
}

.filter-bar {
  display: flex;
  gap: .7rem;
  flex-wrap: wrap;
  margin-bottom: 1.2rem;
}

.filter-bar .input {
  width: auto;
  flex: 1 1 200px;
  max-width: 320px;
}

.chips {
  display: flex;
  gap: .4rem;
  flex-wrap: wrap;
  margin-bottom: 1.2rem;
}

.chips a {
  padding: .35rem .9rem;
  border: 1px solid var(--line);
  font-size: .85rem;
  background: var(--paper);
  transition: .3s;
}

.chips a:hover {
  border-color: var(--wine);
}

.chips a.on {
  background: var(--wine);
  color: var(--gold-light);
  border-color: var(--wine);
}

.preview {
  width: 160px;
  height: 160px;
  object-fit: cover;
  background: var(--wine-950);
  margin-bottom: .8rem;
}

.admin-login {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: var(--wine-950);
  padding: 1.5rem;
}

.admin-login .box {
  width: min(420px, 100%);
  background: var(--ivory);
  padding: 2.6rem 2.2rem;
}

.admin-login .logo {
  margin-bottom: 1.8rem;
  display: block;
}

.admin-bar {
  display: none;
}

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .foot {
    grid-template-columns: 1fr 1fr;
  }

  .nav-links {
    gap: 1.4rem;
  }

  .logo {
    font-size: 1.35rem;
    letter-spacing: .2em;
  }

  .logo small {
    letter-spacing: .34em;
  }
}

@media (max-width: 900px) {
  :root {
    --header-h: 68px;
  }

  .nav {
    grid-template-columns: 44px 1fr auto;
  }

  .nav-links, .nav-actions .txt {
    display: none;
  }

  .menu-btn {
    display: block;
  }

  .logo {
    font-size: 1.1rem;
    letter-spacing: .14em;
    padding-left: .14em;
  }

  .logo small {
    font-size: .5rem;
    letter-spacing: .22em;
    padding-left: .22em;
  }

  .drawer {
    display: block;
    position: fixed;
    inset: 0 0 0 auto;
    width: min(340px, 86vw);
    background: var(--ivory);
    z-index: 120;
    transform: translateX(105%);
    transition: transform .55s var(--ease);
    padding: 5rem 1.8rem 2rem;
    overflow-y: auto;
    box-shadow: -20px 0 50px rgba(28, 6, 12, .25);
    visibility: hidden;
  }

  .menu-open .drawer {
    transform: none;
    visibility: visible;
  }

  .menu-open .menu-btn {
    position: fixed;
    right: 1rem;
    top: 12px;
    z-index: 130;
  }

  .drawer a, .drawer button {
    display: block;
    width: 100%;
    text-align: left;
    background: none;
    border: 0;
    font: 500 1.6rem var(--serif);
    padding: .65rem 0;
    border-bottom: 1px solid var(--line);
    color: var(--wine);
    cursor: pointer;
  }

  .drawer .sub a {
    font: 400 1rem var(--sans);
    color: var(--ink);
    padding: .5rem 0 .5rem 1rem;
  }

  .scrim {
    position: fixed;
    inset: 0;
    background: rgba(28, 6, 12, .55);
    z-index: 110;
    opacity: 0;
    visibility: hidden;
    transition: opacity .4s;
  }

  .menu-open .scrim {
    opacity: 1;
    visibility: visible;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    min-height: 0;
    gap: 0;
  }

  .hero-copy {
    padding: 3rem 0 1rem;
  }

  .hero h1 {
    max-width: 14ch;
  }

  .hero-art {
    min-height: 0;
    aspect-ratio: 1 / 1;
    margin-inline: -1.5rem;
  }

  .hero-art img {
    -webkit-mask-image: linear-gradient(180deg, transparent, #000 25%);
    mask-image: linear-gradient(180deg, transparent, #000 25%);
  }

  .promises ul {
    grid-template-columns: 1fr 1fr;
  }

  .promises li:nth-child(3) {
    border-left: 0;
  }

  .tiles {
    grid-template-columns: 1fr 1fr;
  }

  .tile, .tile:first-child {
    grid-column: span 1;
    grid-row: auto;
    aspect-ratio: 1 / 1;
    min-height: 0;
  }

  .tile:first-child {
    grid-column: span 2;
    aspect-ratio: 4 / 3;
  }

  .tile:nth-child(2) {
    grid-column: span 1;
    aspect-ratio: 1 / 1;
  }

  .tile:first-child h3 {
    font-size: 1.9rem;
  }

  .story, .visit, .pd, .split, .contact, .about-grid {
    grid-template-columns: 1fr;
  }

  .pd-media, .summary, .filters, .acct-nav {
    position: static;
  }

  .values {
    grid-template-columns: 1fr;
    gap: 1.6rem;
  }

  .shop {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .filter-toggle {
    display: inline-flex;
  }

  .filters {
    display: none;
  }

  .filters.open {
    display: block;
  }

  .acct {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .acct-nav {
    display: flex;
    overflow-x: auto;
    gap: 1.4rem;
    border-bottom: 1px solid var(--line);
  }

  .acct-nav a, .acct-nav button {
    border: 0;
    white-space: nowrap;
    width: auto;
  }

  .auth {
    grid-template-columns: 1fr;
  }

  .auth-art {
    display: none;
  }

  .admin {
    grid-template-columns: 1fr;
  }

  .side {
    position: fixed;
    z-index: 140;
    width: min(280px, 84vw);
    transform: translateX(-105%);
    transition: transform .5s var(--ease);
    visibility: hidden;
  }

  .menu-open .side {
    transform: none;
    visibility: visible;
  }

  .admin-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .5rem 1rem;
    background: var(--wine-950);
    color: var(--gold);
    position: sticky;
    top: 0;
    z-index: 90;
  }

  .admin-bar .menu-btn span {
    background: var(--gold);
  }

  .admin-bar .logo {
    font-size: 1.1rem;
    color: var(--gold);
    padding: 0;
  }

  .admin-bar .logo small {
    display: none;
  }

  .two {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .veil-logo {
    font-size: 1.3rem;
    letter-spacing: .2em;
    padding-left: .2em;
  }

  .container, .narrow {
    width: min(var(--wrap), 100% - 2rem);
  }

  .announce .container {
    justify-content: center;
  }

  .announce .hide-s {
    display: none;
  }

  .grid, .grid--3 {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.6rem .9rem;
  }

  .pcard-info h3 {
    font-size: 1.1rem;
  }

  .pcard-add .btn {
    padding: .65rem .5rem;
    font-size: .78rem;
  }

  .row2 {
    grid-template-columns: 1fr;
  }

  .line {
    grid-template-columns: 72px 1fr;
  }

  .line img {
    width: 72px;
    height: 72px;
  }

  .line-total {
    grid-column: 2;
    text-align: left;
  }

  .foot {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .stats {
    grid-template-columns: 1fr;
  }

  .tile-body h3 {
    font-size: 1.3rem;
  }

  .hero-art {
    margin-inline: -1rem;
  }

  .track li {
    font-size: .72rem;
  }

  .track li::after {
    top: 7px;
  }

  .toolbar select {
    width: 100%;
  }

  .sec-head {
    margin-bottom: 1.8rem;
  }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
    scroll-behavior: auto !important;
  }

  .js [data-reveal], .js .img-reveal {
    opacity: 1;
    transform: none;
    clip-path: none;
  }

  .rise {
    opacity: 1;
    transform: none;
  }

  .veil-on .veil {
    display: none;
  }
}
.visit-map {
    width: 100%;
    margin-top: 25px;
    overflow: hidden;
}

.visit-map iframe {
    display: block;
    width: 100%;
    min-height: 350px;
    border: 0;
}


/* ---------- Collections product-card spacing fix ---------- */
/* Keep Add to cart in normal document flow so it cannot overlap
   product details or the next row of products. */
.pcard-media {
  order: 1;
}

.pcard-info {
  order: 2;
}

.pcard-add {
  position: static;
  order: 3;
  display: block;
  width: 100%;
  margin-top: .75rem;
  transform: none;
}

.pcard-add .btn {
  display: block;
  width: 100%;
}

@media (hover: hover) {
  .pcard-add {
    transform: none;
  }
}


/* ---------- Home page image and map finish ---------- */
.tile,
.pcard-media,
.hero-art,
.story-img,
.about-img,
.visit-map {
  border-radius: 18px;
  overflow: hidden;
}

.tile img,
.pcard-media img,
.hero-art img,
.story-img img,
.about-img img {
  border-radius: inherit;
}

.visit-map {
  width: 100%;
  min-width: 0;
  margin-top: 25px;
  overflow: hidden;
  border-radius: 18px;
  background: #eee7df;
  box-shadow: 0 12px 32px rgba(28, 6, 12, .10);
}

.visit-map iframe {
  display: block;
  width: 100%;
  height: 350px;
  min-height: 350px;
  border: 0;
  border-radius: 18px;
}

@media (max-width: 700px) {
  .visit-map iframe {
    height: 280px;
    min-height: 280px;
  }
}


/* Product image gallery */
.pd-gallery { position: sticky; top: 100px; }
.pd-gallery .pd-media { position: relative; top: auto; }
.pd-gallery-controls { display: flex; align-items: center; justify-content: space-between; gap: .65rem; margin-top: .8rem; }
.gallery-arrow { flex: 0 0 40px; width: 40px; height: 40px; border: 1px solid var(--line, #d8c8ad); background: var(--ivory, #fffaf0); color: var(--wine, #5b1425); cursor: pointer; font-size: 1.2rem; }
.pd-thumbs { display: flex; justify-content: center; gap: .55rem; flex: 1; min-width: 0; }
.pd-thumb { width: 58px; height: 58px; padding: 2px; border: 1px solid var(--line, #d8c8ad); background: transparent; cursor: pointer; opacity: .72; }
.pd-thumb.is-active { border: 2px solid var(--wine, #5b1425); opacity: 1; }
.pd-thumb img, .admin-gallery-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.admin-gallery-preview { display: flex; flex-wrap: wrap; gap: .6rem; margin: .5rem 0 .8rem; }
.admin-gallery-preview img { width: 88px; height: 88px; object-fit: cover; background: var(--wine-950); }
@media (max-width: 760px) { .pd-gallery { position: static; } .pd-thumb { width: 48px; height: 48px; } }


/* ---------- Visit section: tidy, no empty gap ---------- */
.visit { align-items: stretch; }
.visit > div:first-child { align-self: center; }
.visit .visit-map { margin-top: 0; min-height: 350px; height: 100%; }
.visit .visit-map iframe { height: 100%; min-height: 350px; }
.visit + * , .section:last-child { margin-bottom: 0; }

/* ---------- Product slider arrows on main image ---------- */
.pd-media { position: relative; }
.slide-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(255,250,240,.9); color: var(--wine, #5b1425); font-size: 1.7rem; line-height: 1; cursor: pointer; box-shadow: 0 4px 14px rgba(28,6,12,.25); display: grid; place-items: center; padding: 0 0 3px; z-index: 2; }
.slide-arrow:hover { background: #fff; }
.slide-arrow--prev { left: .7rem; } .slide-arrow--next { right: .7rem; }
.slide-count { position: absolute; right: .7rem; bottom: .7rem; background: rgba(28,6,12,.6); color: #fff; font-size: .75rem; padding: .2rem .55rem; border-radius: 999px; z-index: 2; }
.pd-gallery-controls { justify-content: center; }

/* Product gallery must always be visible (no reveal clip) */
.js .pd-gallery, .js .pd-gallery.img-reveal { clip-path: none !important; }
.pd-gallery .pd-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pd-gallery .pd-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }


/* ---------- Developer credit ---------- */
.dev-credit { font-size: .78rem; letter-spacing: .04em; opacity: .8; }
.dev-credit a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.dev-credit a:hover { opacity: 1; color: var(--gold, #c9a96a); }
.site-footer .dev-credit-row { text-align: center; padding: 0 0 1.4rem; color: #d9c7c0; }
.dev-credit-row--admin { text-align: center; padding: 1.2rem 1rem 1.6rem; color: #6b5a55; }
.dev-credit-row--login { text-align: center; padding: 1rem 1rem 1.6rem; color: #6b5a55; position: relative; z-index: 2; }
