:root {
  --ink: #26302e;
  --muted: #6d7673;
  --paper: #f3ecdc;
  --surface: #ffffff;
  --line: #e1d5c7;
  --green: #8fac98;
  --green-dark: #6f927b;
  --green-soft: #a9c1ae;
  --wine: #3b061b;
  --pink: #ff4fa0;
  --coral: #ff7a59;
  --charcoal: #111111;
  --shadow: 0 18px 45px rgba(33, 34, 34, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, Arial, sans-serif;
}

img {
  display: block;
  width: 100%;
  object-fit: cover;
  transition: transform 0.25s ease, filter 0.25s ease, box-shadow 0.25s ease;
}

a:hover img,
article:hover img,
.thumb:hover img,
.main-image:hover {
  filter: brightness(1.06) saturate(1.08);
  transform: scale(1.04);
}

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

button,
select,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  width: min(1160px, calc(100% - 32px));
  min-height: 210px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(380px, 620px) minmax(220px, 1fr) auto;
  align-items: center;
  gap: 28px;
  position: relative;
}

.brand {
  position: relative;
  width: clamp(380px, 42vw, 620px);
  min-height: 200px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: 0;
  filter: none;
  transition: none;
}

.brand:hover,
.brand:focus,
.brand:active,
.brand:focus-visible {
  transform: none;
  outline: none;
}

.brand img {
  width: 100%;
  max-height: 200px;
  object-fit: contain;
  transition: none;
}

.brand:hover img,
.brand:focus img,
.brand:active img,
.brand:focus-visible img {
  filter: none;
  transform: none;
}

.search {
  width: min(430px, 100%);
  justify-self: end;
  display: flex;
  align-items: center;
  background: #f0ece9;
  border-radius: 999px;
  border: 1px solid transparent;
  overflow: hidden;
}

.search:focus-within {
  border-color: var(--green);
}

.search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 12px 12px 12px 18px;
  background: transparent;
  color: var(--ink);
}

.search button,
.header-actions a,
.header-actions button {
  width: 42px;
  height: 42px;
  border: 0;
  display: inline-grid;
  place-items: center;
  background: transparent;
  color: var(--green-dark);
  cursor: pointer;
}

.product-search-header {
  position: sticky;
  top: 0;
  z-index: 40;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.product-page-search {
  width: min(620px, 100%);
  margin: 0 auto;
  justify-self: center;
}

svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.menu-toggle {
  padding: 0;
}

.menu-panel {
  position: absolute;
  top: calc(100% - 18px);
  right: 54px;
  z-index: 80;
  width: 190px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 38px rgba(25, 25, 25, 0.16);
}

.menu-panel a {
  min-height: 36px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 6px;
  color: var(--ink);
  font-weight: 700;
}

.menu-panel a:hover {
  background: #f4efed;
  color: var(--green-dark);
}

.cart-link {
  position: relative;
  color: var(--wine) !important;
}

.cart-link:hover,
.cart-link:focus,
.cart-link:active {
  color: var(--wine) !important;
}

.cart-link svg,
.cart-link svg path {
  color: var(--wine) !important;
  stroke: var(--wine) !important;
}

.cart-count {
  position: absolute;
  top: 3px;
  right: 3px;
  min-width: 17px;
  height: 17px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--wine);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
}

.hero {
  --hero-image: url("https://images.unsplash.com/photo-1539109136881-3be0616acf4b?auto=format&fit=crop&w=1600&q=85");
  position: relative;
  width: min(1160px, calc(100% - 32px));
  min-height: 430px;
  margin: 0 auto 46px;
  border-radius: 8px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(7, 7, 7, 0.9) 0%, rgba(7, 7, 7, 0.68) 48%, rgba(7, 7, 7, 0.18) 100%),
    var(--hero-image) center / cover;
  box-shadow: var(--shadow);
  transition: background-image 0.35s ease;
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 650px;
  padding: clamp(34px, 7vw, 76px);
  color: #fff;
}

.hero-slide-button {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 44px;
  height: 44px;
  min-height: 44px;
  border-radius: 50%;
  padding: 0;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  backdrop-filter: blur(10px);
  transform: translateY(-50%);
}

.hero-slide-button:hover {
  background: rgba(255, 255, 255, 0.28);
  transform: translateY(-50%) scale(1.04);
}

.hero-slide-prev {
  left: 18px;
}

.hero-slide-next {
  right: 18px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 10px;
  color: var(--pink);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(4.6rem, 13vw, 9.5rem);
  line-height: 0.85;
  letter-spacing: 0;
}

.hero p:not(.eyebrow) {
  max-width: 520px;
  margin: 24px 0 0;
  font-size: clamp(1.1rem, 2.5vw, 1.55rem);
  font-weight: 800;
  line-height: 1.25;
}

.hero-actions {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button,
button,
.buy-button,
.whatsapp-checkout,
.checkout-link {
  min-height: 42px;
  border: 0;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  background: var(--green);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.button:hover,
button:hover,
.buy-button:hover,
.whatsapp-checkout:hover,
.checkout-link:hover {
  transform: translateY(-2px);
  background: var(--green-dark);
  box-shadow: 0 12px 24px rgba(95, 142, 117, 0.28);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.48);
}

.checkout-link.is-disabled {
  pointer-events: none;
  opacity: 0.55;
}

.featured-section,
.categories,
.products {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto 54px;
}

.products {
  scroll-margin-top: 176px;
}

.categories-before-hero {
  margin-top: 28px;
  margin-bottom: 24px;
}

.categories-before-hero .section-heading {
  margin-bottom: 14px;
}

.section-heading {
  margin-bottom: 20px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
}

.section-heading > a,
.sort-label {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.legacy-sort {
  display: none;
}

.sort-label select {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  padding: 0 10px;
}

.sort-menu {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.sort-toggle {
  width: 34px;
  height: 34px;
  min-height: 34px;
  border: 1px solid var(--pink);
  border-radius: 8px;
  padding: 0;
  background: #fff;
  color: var(--pink);
}

.sort-toggle svg {
  width: 18px;
  height: 18px;
}

.sort-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 5;
  width: 210px;
  padding: 14px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 38px rgba(25, 25, 25, 0.16);
}

.sort-dropdown strong {
  display: block;
  margin-bottom: 8px;
  color: #72706f;
  font-size: 0.92rem;
}

.sort-dropdown button {
  width: 100%;
  min-height: 30px;
  justify-content: flex-start;
  padding: 0 4px;
  background: transparent;
  color: var(--muted);
  font-weight: 500;
  box-shadow: none;
}

.sort-dropdown button::before {
  width: 22px;
  color: #8c8784;
  font-weight: 800;
}

.sort-dropdown button[data-sort="category"]::before {
  content: "⇅";
}

.sort-dropdown button[data-sort="az"]::before,
.sort-dropdown button[data-sort="za"]::before {
  content: "↓";
}

.sort-dropdown button[data-sort="price-desc"]::before,
.sort-dropdown button[data-sort="price-asc"]::before {
  content: "↕";
}

.sort-dropdown button[data-sort="newest"]::before {
  content: "✧";
  color: var(--pink);
}

.sort-dropdown button:hover,
.sort-dropdown button.is-active {
  transform: none;
  background: transparent;
  color: var(--pink);
  box-shadow: none;
}

.featured-rail {
  --featured-card-width: clamp(230px, 28vw, 320px);
  overflow: hidden;
  padding-bottom: 12px;
  scrollbar-width: none;
}

.featured-rail::-webkit-scrollbar {
  display: none;
}

.featured-track {
  display: flex;
  gap: 18px;
  width: max-content;
}

.featured-rail.is-marquee .featured-track {
  animation: featuredScroll 36s linear infinite;
  will-change: transform;
}

.featured-rail.is-marquee:hover .featured-track,
.featured-rail.is-marquee:focus-within .featured-track {
  animation-play-state: paused;
}

.featured-rail .spot-card {
  flex: 0 0 var(--featured-card-width);
}

@keyframes featuredScroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(calc(-1 * var(--featured-scroll-distance, 50%)));
  }
}

@media (prefers-reduced-motion: reduce) {
  .featured-rail.is-marquee {
    overflow-x: auto;
  }

  .featured-rail.is-marquee .featured-track {
    animation: none;
  }
}

.spot-card,
.product-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 10px 24px rgba(36, 36, 36, 0.08);
}

.spot-card img {
  height: 270px;
}

.spot-card div {
  min-height: 112px;
  padding: 14px 16px 18px;
  display: grid;
  gap: 10px;
  align-content: start;
}

.spot-card h3,
.product-card h3 {
  margin: 0 0 10px;
  color: #55605d;
  font-size: 1rem;
  font-weight: 700;
}

.spot-card p {
  margin: 0;
  color: #596562;
  font-size: 1.25rem;
  font-weight: 800;
}

.spot-card button {
  position: static;
  width: max-content;
  min-height: 38px;
  margin-top: 2px;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(90px, 1fr));
  gap: 18px;
}

.category-grid a {
  display: grid;
  justify-items: center;
  gap: 10px;
  color: #58615f;
  font-size: 0.85rem;
  font-weight: 700;
  text-align: center;
}

.category-grid img {
  width: 88px;
  height: 88px;
  border: 4px solid #fff;
  border-radius: 50%;
  box-shadow: 0 8px 20px rgba(30, 30, 30, 0.16);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 34px 26px;
}

.product-card {
  background: transparent;
  box-shadow: none;
}

.product-card img {
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  margin-bottom: 12px;
  background: #eee;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.08);
}

.product-card h3 {
  min-height: 40px;
  margin-bottom: 2px;
  color: var(--ink);
  font-size: 0.96rem;
}

.product-card strong {
  display: block;
  margin-bottom: 10px;
  font-size: 1.28rem;
}

.product-card button {
  min-width: 112px;
}

.product-card .buy-button {
  width: max-content;
  min-width: 112px;
}

.product-stock,
.product-stock-detail {
  width: max-content;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 9px;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 900;
}

.product-stock.is-available,
.product-stock-detail.is-available {
  background: rgba(143, 172, 152, 0.18);
  color: var(--green-dark);
}

.product-stock.is-empty,
.product-stock-detail.is-empty {
  background: rgba(143, 31, 31, 0.1);
  color: #8f1f1f;
}

.product-page {
  width: min(1160px, calc(100% - 32px));
  margin: 34px auto 80px;
}

.checkout-page {
  width: min(1160px, calc(100% - 32px));
  margin: 34px auto 80px;
}

.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
  gap: 28px;
  align-items: start;
}

.checkout-form,
.checkout-summary {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(243, 236, 220, 0.98);
  color: var(--ink);
  box-shadow: 0 14px 32px rgba(59, 6, 27, 0.14);
}

.checkout-form {
  padding: 24px;
}

.checkout-section h1 {
  margin: 0 0 20px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2.1rem, 4vw, 3.4rem);
  line-height: 1;
}

.checkout-form fieldset {
  margin: 0 0 22px;
  padding: 0;
  border: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.checkout-form legend {
  grid-column: 1 / -1;
  margin-bottom: 2px;
  color: var(--wine);
  font-weight: 900;
}

.checkout-form label,
.checkout-note {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.checkout-form input,
.checkout-form select,
.checkout-form textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 12px;
  color: var(--ink);
  background: #fff;
}

.checkout-postal-status {
  min-height: 18px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.checkout-postal-status[data-type="success"] {
  color: var(--green-dark);
}

.checkout-postal-status[data-type="error"] {
  color: var(--wine);
}

.payment-detail {
  grid-column: 1 / -1;
}

.payment-detail[hidden] {
  display: none;
}

.checkout-form textarea {
  min-height: 92px;
  padding: 12px;
  resize: vertical;
}

.checkout-account-toggle {
  grid-column: 1 / -1;
  display: flex !important;
  grid-template-columns: none !important;
  align-items: center;
  gap: 10px !important;
  color: var(--ink) !important;
  font-weight: 800;
}

.checkout-account-toggle input {
  width: 18px;
  min-height: 18px;
}

.checkout-account-fields {
  grid-column: 1 / -1;
}

.payment-options,
.delivery-options {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.payment-options label,
.delivery-options label {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
}

.payment-options input,
.delivery-options input,
.checkout-account-toggle input,
.admin-product-active input {
  width: auto;
  min-height: auto;
  flex: 0 0 auto;
}

.delivery-options label {
  min-height: 52px;
  line-height: 1.25;
}

.checkout-address-fields.is-disabled {
  opacity: 0.58;
}

.checkout-address-fields.is-disabled input,
.checkout-address-fields.is-disabled textarea {
  background: #f4efed;
}

.checkout-submit {
  width: 100%;
  margin-top: 18px;
  background: var(--wine);
}

.checkout-submit:hover {
  background: #260412;
}

.checkout-feedback {
  margin: 14px 0 0;
  color: var(--wine);
  font-weight: 800;
}

.checkout-summary {
  position: sticky;
  top: 140px;
  display: grid;
  gap: 14px;
  padding: 20px;
}

.checkout-summary h2 {
  margin: 0;
  color: var(--wine);
}

.checkout-items {
  display: grid;
  gap: 10px;
}

.checkout-item {
  display: grid;
  gap: 4px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.checkout-item strong,
.checkout-item b {
  color: var(--ink);
}

.checkout-item span,
.checkout-shipping span {
  color: var(--muted);
  font-size: 0.82rem;
}

.checkout-shipping {
  display: grid;
  gap: 4px;
  padding: 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.56);
}

.checkout-coupon {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.56);
}

.checkout-coupon label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
}

.checkout-coupon input {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  padding: 0 10px;
  text-transform: uppercase;
}

.checkout-coupon-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.checkout-coupon-actions button {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 6px;
  font-size: 0.84rem;
}

.checkout-coupon-remove {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--wine);
}

.checkout-coupon-feedback {
  min-height: 18px;
  margin: 0;
  color: var(--wine);
  font-size: 0.82rem;
  font-weight: 800;
}

.checkout-discount-row span,
.checkout-discount-row strong {
  color: #2f6b3d;
}

.checkout-whatsapp {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: #d6d5d5;
  color: #fff;
  font-weight: 900;
  pointer-events: none;
}

.checkout-whatsapp.is-ready {
  background: var(--wine);
  pointer-events: auto;
}

.admin-login-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(120deg, rgba(59, 6, 27, 0.82), rgba(38, 48, 46, 0.68)),
    url("https://images.unsplash.com/photo-1483985988355-763728e1935b?auto=format&fit=crop&w=1600&q=80") center / cover;
}

.admin-login-page {
  width: min(430px, 100%);
}

.admin-login-panel {
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  background: rgba(243, 236, 220, 0.96);
  box-shadow: 0 24px 55px rgba(0, 0, 0, 0.24);
}

.admin-login-brand {
  width: min(220px, 78%);
  display: block;
  margin: 0 auto 20px;
}

.admin-login-brand img {
  max-height: 92px;
  object-fit: contain;
}

.admin-login-panel h1 {
  margin: 0 0 20px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2rem, 8vw, 3rem);
  color: var(--wine);
}

.admin-login-form {
  display: grid;
  gap: 14px;
}

.admin-login-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.admin-login-form input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  padding: 0 12px;
}

.admin-login-form button {
  width: 100%;
  margin-top: 4px;
  background: var(--wine);
}

.admin-login-form button:hover {
  background: #260412;
}

.admin-login-form button:disabled {
  opacity: 0.72;
  cursor: wait;
}

.admin-login-feedback {
  min-height: 20px;
  margin: 0;
  color: var(--wine);
  font-size: 0.88rem;
  font-weight: 800;
}

.customer-auth-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(120deg, rgba(59, 6, 27, 0.66), rgba(38, 48, 46, 0.58)),
    url("https://images.unsplash.com/photo-1483985988355-763728e1935b?auto=format&fit=crop&w=1600&q=82") center / cover;
}

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

.customer-auth-panel {
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 24px 55px rgba(0, 0, 0, 0.22);
}

.customer-auth-brand {
  width: min(220px, 78%);
  display: block;
  margin: 0 auto 20px;
}

.customer-auth-brand img {
  max-height: 92px;
  object-fit: contain;
}

.customer-auth-panel h1 {
  margin: 0 0 20px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2rem, 8vw, 3rem);
  color: var(--wine);
}

.customer-auth-form {
  display: grid;
  gap: 14px;
}

.customer-auth-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.customer-auth-form input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  padding: 0 12px;
}

.customer-auth-form button {
  width: 100%;
  margin-top: 4px;
}

.customer-auth-form button:disabled {
  opacity: 0.72;
  cursor: wait;
}

.customer-auth-feedback,
.customer-auth-switch {
  margin: 0;
  font-size: 0.9rem;
}

.customer-auth-feedback {
  min-height: 20px;
  color: var(--wine);
  font-weight: 800;
}

.customer-auth-switch {
  margin-top: 18px;
  color: var(--muted);
  text-align: center;
}

.customer-auth-switch a {
  color: var(--wine);
  font-weight: 900;
}

.admin-page {
  width: min(1160px, calc(100% - 32px));
  margin: 28px auto 80px;
}

.admin-heading {
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.admin-heading h1 {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2.3rem, 4.6vw, 4rem);
  line-height: 0.95;
}

.admin-user-label {
  margin: 6px 0 0;
  color: var(--muted);
  font-weight: 700;
}

.admin-last-refresh {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.admin-refresh,
.admin-logout {
  min-width: 112px;
}

.admin-refresh {
  min-height: 42px;
  border-radius: 7px;
  background: var(--green);
  box-shadow: none;
}

.admin-logout {
  width: auto;
  min-width: 78px;
  padding: 0 12px;
  gap: 8px;
  border-radius: 6px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--wine);
  font-weight: 800;
}

.admin-logout:hover {
  transform: none;
  background: #f4efed;
  box-shadow: none;
}

.admin-logout svg {
  width: 19px;
  height: 19px;
}

.admin-tabs {
  margin: 0 0 16px;
  display: flex;
  gap: 6px;
  border-bottom: 1px solid var(--line);
}

.admin-tabs button {
  min-height: 42px;
  padding: 0 18px;
  border-radius: 6px 6px 0 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.96rem;
  box-shadow: none;
}

.admin-tabs .admin-products-tab {
  min-height: 58px;
  padding: 7px 18px 8px;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 2px;
  border: 1px solid #b8cfbd;
  background: #f3faf4;
  color: #295f38;
}

.admin-tabs .admin-products-tab span {
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.1;
}

.admin-tabs .admin-products-tab small {
  color: #4f7c5b;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1.15;
}

.admin-tabs button:hover,
.admin-tabs button.is-active {
  transform: none;
  background: #fff;
  color: var(--wine);
  box-shadow: none;
}

.admin-tabs button.is-active {
  border: 1px solid var(--line);
  border-bottom-color: #fff;
  margin-bottom: -1px;
}

.admin-tabs .admin-products-tab:hover,
.admin-tabs .admin-products-tab.is-active {
  background: #fff;
  border-color: var(--green);
  border-bottom-color: #fff;
  color: #1f5130;
}

.admin-tabs .admin-products-tab.is-active span,
.admin-tabs .admin-products-tab:hover span {
  color: #1f5130;
}

.admin-tabs .admin-products-tab.is-active small,
.admin-tabs .admin-products-tab:hover small {
  color: #477452;
}

.admin-panel {
  display: none;
}

.admin-panel.is-active {
  display: block;
}

.admin-product-layout {
  display: grid;
  grid-template-columns: minmax(320px, 420px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.admin-product-lists {
  display: grid;
  gap: 16px;
}

.admin-product-form,
.admin-product {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(36, 36, 36, 0.06);
}

.admin-product-form {
  padding: 18px;
  display: grid;
  gap: 12px;
}

.admin-product-form h2 {
  margin: 0;
  color: var(--wine);
}

.admin-product-form label:not(.admin-product-active) {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
}

.admin-category-picker {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.admin-category-title {
  color: var(--wine);
  font-weight: 900;
}

.admin-category-picker p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.35;
}

.admin-category-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.admin-category-options label {
  min-height: 40px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbf7f2;
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 900;
}

.admin-category-options input {
  width: 18px;
  min-width: 18px;
  height: 18px;
  min-height: 18px;
  padding: 0;
  accent-color: var(--green);
}

.admin-color-images {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.admin-color-title {
  margin: 0;
  color: var(--wine);
  font-weight: 900;
}

.admin-color-note {
  display: block;
  margin-top: -4px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.35;
}

.admin-color-images label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
}

.admin-color-add {
  width: 100%;
  min-height: 38px;
}

.admin-color-list {
  display: grid;
  gap: 8px;
}

.admin-color-empty {
  margin: 0;
  padding: 10px 12px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: #f8f4ef;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.4;
}

.admin-color-item {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  padding: 8px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fdfaf7;
}

.admin-color-item img {
  width: 46px;
  height: 46px;
  border-radius: 6px;
  object-fit: cover;
}

.admin-color-item strong,
.admin-color-item span {
  display: block;
}

.admin-color-item span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.82rem;
}

.admin-color-item button {
  min-width: 74px;
  min-height: 32px;
  padding: 0 10px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--wine);
  font-size: 0.82rem;
}

.admin-color-drop {
  min-height: 82px;
  grid-template-columns: 62px minmax(0, 1fr);
  padding: 10px;
}

.admin-color-drop .admin-image-preview {
  width: 62px;
  height: 68px;
}

.admin-image-drop {
  min-height: 118px;
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px dashed var(--green-dark);
  border-radius: 8px;
  background: #f8f4ef;
  color: var(--ink);
  cursor: pointer;
}

.admin-image-drop:hover,
.admin-image-drop:focus,
.admin-image-drop.is-dragging {
  outline: none;
  border-color: var(--wine);
  background: #fff;
}

.admin-image-drop:not(.has-image) {
  grid-template-columns: 1fr;
}

.admin-image-preview {
  width: 86px;
  height: 94px;
  border-radius: 6px;
  object-fit: cover;
}

.admin-image-drop strong,
.admin-image-drop span {
  display: block;
}

.admin-image-drop span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.35;
}

.admin-product-form input,
.admin-product-form select,
.admin-product-form textarea {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  padding: 0 10px;
}

.admin-product-form textarea {
  min-height: 86px;
  padding: 10px;
  resize: vertical;
}

.admin-product-active {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  min-width: 0;
  padding: 8px 0;
  color: var(--ink);
  font-weight: 800;
}

.admin-product-active input {
  width: 20px;
  min-width: 20px;
  height: 20px;
  min-height: 20px;
  flex: 0 0 20px;
  padding: 0;
  accent-color: var(--green);
}

.admin-product-active span {
  min-width: 0;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.admin-product-active-help {
  margin: -4px 0 4px 30px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.35;
}

.admin-product-form-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-product-cancel {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--wine);
}

.admin-product-delete {
  background: #fff;
  border: 1px solid #d9a7a7;
  color: #8f1f1f;
}

.admin-product-delete:hover {
  background: #fff2f2;
  color: #8f1f1f;
}

.admin-product-feedback {
  min-height: 20px;
  margin: 0;
  color: var(--wine);
  font-weight: 800;
}

.admin-products {
  display: grid;
  gap: 12px;
}

.admin-trash-panel {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px dashed #d7c6b6;
  border-radius: 8px;
  background: #fbf7f2;
}

.admin-trash-heading h2 {
  margin: 0;
  color: var(--wine);
  font-size: 1rem;
}

.admin-trash-heading p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1.35;
}

.admin-trash-products {
  display: grid;
  gap: 10px;
}

.admin-product {
  padding: 12px;
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.admin-product.is-hidden-product {
  background: #fbf7f2;
  border-color: #ddcfc0;
}

.admin-trash-product {
  background: #fff;
  box-shadow: none;
}

.admin-product img {
  width: 74px;
  height: 74px;
  border-radius: 6px;
  object-fit: cover;
}

.admin-product strong,
.admin-product span,
.admin-product small {
  display: block;
}

.admin-product span,
.admin-product small {
  margin-top: 4px;
  color: var(--muted);
}

.admin-product .admin-product-status {
  width: max-content;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin-top: 7px;
  padding: 4px 9px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1.2;
}

.admin-product .admin-product-status.is-active {
  background: #edf7ef;
  border-color: #b9d9c0;
  color: #28633a;
}

.admin-product .admin-product-status.is-hidden {
  background: #fff0f0;
  border-color: #e2b7b7;
  color: #8a1717;
}

.admin-product button {
  min-width: 86px;
}

.admin-trash-actions {
  display: grid;
  gap: 8px;
  min-width: 132px;
}

.admin-trash-actions button {
  width: 100%;
  min-width: 0;
  min-height: 34px;
  padding: 0 10px;
  font-size: 0.82rem;
}

.admin-trash-actions .admin-trash-delete {
  background: #fff;
  border: 1px solid #e2b7b7;
  color: #8a1717;
}

.customer-account-page {
  width: min(1160px, calc(100% - 32px));
  margin: 34px auto 80px;
}

.customer-account-heading {
  margin-bottom: 22px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.customer-account-heading h1,
.customer-orders-section h2 {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  color: var(--wine);
}

.customer-account-heading h1 {
  font-size: clamp(2.1rem, 4vw, 3.4rem);
}

.customer-user-label {
  margin: 6px 0 0;
  color: var(--muted);
  font-weight: 700;
}

.customer-shop-link {
  min-width: 112px;
}

.customer-account-grid {
  margin-bottom: 28px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.customer-profile-card,
.customer-order {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(36, 36, 36, 0.06);
}

.customer-profile-card {
  padding: 18px;
}

.customer-profile-card h2 {
  margin: 0 0 14px;
  color: var(--wine);
}

.customer-profile-card dl {
  margin: 0;
  display: grid;
  gap: 12px;
}

.customer-profile-card div {
  display: grid;
  gap: 3px;
}

.customer-profile-card dt,
.customer-order span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.customer-profile-card dd,
.customer-profile-card p,
.customer-order p {
  margin: 0;
}

.customer-orders {
  display: grid;
  gap: 14px;
}

.customer-order {
  padding: 16px;
}

.customer-order-header {
  margin-bottom: 14px;
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
}

.customer-order-header strong,
.customer-order-header span,
.customer-order-header b {
  display: block;
}

.customer-logout {
  width: auto;
  min-width: 78px;
  padding: 0 12px;
  gap: 8px;
  border-radius: 6px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--wine);
  font-weight: 800;
}

.customer-logout:hover {
  transform: none;
  background: #f4efed;
  box-shadow: none;
}

.customer-logout svg {
  width: 19px;
  height: 19px;
}

.admin-stats {
  margin-bottom: 18px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.admin-stats article,
.admin-order {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(36, 36, 36, 0.06);
}

.admin-stats article {
  min-height: 82px;
  padding: 16px 18px;
  display: grid;
  align-content: center;
}

.admin-stats span,
.admin-order-grid span,
.admin-order-actions span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-stats strong {
  color: var(--ink);
  font-size: 1.55rem;
  line-height: 1;
}

.admin-orders {
  display: grid;
  gap: 14px;
}

.admin-order-toolbar {
  margin-bottom: 18px;
  display: grid;
  grid-template-columns: minmax(300px, 360px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.54);
}

.admin-order-search {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
}

.admin-order-search input {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 0 12px;
  font-size: 0.92rem;
}

.admin-order-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-start;
  align-content: start;
  padding-top: 21px;
}

.admin-order-filters button {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--muted);
  font-size: 0.9rem;
  box-shadow: none;
}

.admin-order-filters button:hover,
.admin-order-filters button.is-active {
  transform: none;
  background: var(--wine);
  color: #fff;
  box-shadow: none;
}

.admin-order {
  padding: 16px;
}

.admin-order-header {
  margin-bottom: 14px;
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
}

.admin-order-header strong,
.admin-order-header span,
.admin-order-header b {
  display: block;
}

.admin-order-header b {
  font-size: 1.2rem;
}

.admin-order-header-total {
  display: grid;
  justify-items: end;
  gap: 5px;
}

.admin-order-header span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.82rem;
}

.admin-order-settlement {
  width: max-content;
  max-width: 180px;
  margin-top: 0;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f8f4ef;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
  text-align: right;
}

.admin-order-settlement.is-settled {
  border-color: #b8d1bd;
  background: #edf7ef;
  color: #2f6b3d;
}

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

.admin-order-grid p,
.admin-order-products p {
  margin: 0;
}

.admin-order-products {
  margin: 14px 0;
  display: grid;
  gap: 6px;
  color: var(--ink);
}

.admin-order-products span {
  color: var(--muted);
  font-size: 0.82rem;
}

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

.admin-order-quick-actions {
  margin: 14px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-order-quick-actions a,
.admin-order-quick-actions button {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--wine);
  font-size: 0.86rem;
  font-weight: 900;
  box-shadow: none;
}

.admin-order-quick-actions a:hover,
.admin-order-quick-actions button:hover {
  transform: none;
  background: #f4efed;
  box-shadow: none;
}

.admin-order-quick-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.admin-order-actions select {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  padding: 0 10px;
}

.admin-internal-note {
  grid-column: 1 / -1;
}

.admin-internal-note textarea {
  width: 100%;
  min-height: 66px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  padding: 10px;
  resize: vertical;
}

.admin-order-dialog {
  width: min(860px, calc(100% - 28px));
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
}

.admin-order-dialog::backdrop {
  background: rgba(17, 17, 17, 0.42);
}

.admin-order-dialog-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.admin-order-dialog-header h2 {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  color: var(--wine);
}

.admin-order-dialog-close {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--wine);
}

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

.admin-order-detail-grid article,
.admin-order-detail-section {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.admin-order-detail-grid h3,
.admin-order-detail-section h3 {
  margin: 0 0 8px;
  color: var(--wine);
}

.admin-order-detail-grid p,
.admin-order-detail-section p {
  margin: 0 0 6px;
}

.admin-order-detail-section {
  margin-top: 12px;
}

.product-detail {
  display: grid;
  grid-template-columns: minmax(360px, 0.95fr) minmax(320px, 0.8fr);
  gap: clamp(28px, 5vw, 42px);
  align-items: start;
}

.product-gallery {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 16px;
  align-items: start;
}

.thumb-list {
  max-height: 680px;
  display: grid;
  gap: 8px;
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-color: var(--green) #e6e1dd;
}

.thumb {
  width: 80px;
  height: 120px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  box-shadow: none;
}

.thumb:hover {
  transform: none;
  box-shadow: none;
}

.thumb.is-active {
  border-color: var(--green-dark);
}

.product-thumb {
  position: relative;
}

.product-thumb.is-active {
  box-shadow: 0 0 0 2px rgba(95, 142, 117, 0.22);
}

.thumb img {
  height: 100%;
}

.main-product-image {
  aspect-ratio: 3 / 4.45;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.product-info {
  padding-top: 0;
}

.back-link {
  display: inline-flex;
  margin-bottom: 22px;
  color: var(--green-dark);
  font-weight: 800;
}

.product-title-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: start;
}

.product-info h1 {
  margin: 0 0 14px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2rem, 3.7vw, 3.1rem);
  line-height: 1;
}

.product-price {
  margin: 10px 0 18px;
  color: var(--ink);
  font-size: clamp(1.7rem, 3vw, 2.05rem);
  font-weight: 900;
  white-space: nowrap;
}

.quantity-pill {
  width: 128px;
  height: 36px;
  margin: 0 0 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  background: #f0efee;
  color: var(--ink);
}

.quantity-pill span {
  font-weight: 800;
}

.quantity-pill small {
  color: var(--muted);
}

.product-category-label {
  width: fit-content;
  margin: 0 0 12px;
  padding: 6px 10px;
  border-radius: 6px;
  background: #e6eadc;
  color: var(--green-dark);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: capitalize;
}

.product-description {
  margin: 0 0 16px;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.45;
}

.product-specs {
  margin: 0 0 22px;
  color: #46504e;
  font-weight: 600;
  line-height: 1.25;
  text-transform: uppercase;
}

.product-options {
  margin-bottom: 20px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.product-options p,
.size-label {
  margin: 0 0 10px;
  color: var(--muted);
  font-weight: 700;
}

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

.color-option {
  min-height: 38px;
  display: inline-grid;
  grid-template-columns: 22px 20px 22px 18px;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}

.color-option:hover,
.color-option.is-selected {
  border-color: var(--green-dark);
  box-shadow: 0 8px 18px rgba(36, 36, 36, 0.08);
}

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

.qty-control {
  width: 24px;
  min-height: 24px;
  height: 24px;
  padding: 0;
  border: 2px solid var(--green);
  border-radius: 50%;
  background: #fff;
  color: var(--green-dark);
  font-size: 1rem;
  line-height: 1;
}

.qty-control:hover {
  transform: none;
  background: var(--green);
  color: #fff;
  box-shadow: none;
}

.color-quantity {
  text-align: center;
  font-weight: 800;
}

.product-unavailable-note {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  font-weight: 800;
}

.product-variant-summary {
  margin: -4px 0 18px;
}

.product-variant-summary p {
  margin: 0 0 8px;
  color: var(--muted);
  font-weight: 800;
}

.product-variant-summary div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.product-variant-summary span {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--wine);
  font-size: 0.86rem;
  font-weight: 900;
}

.swatch {
  width: 18px;
  height: 18px;
  border-radius: 3px;
  border: 1px solid #d5d0cc;
}

.swatch-black {
  background: #111;
}

.swatch-white {
  background: #fff;
}

.swatch-red {
  background: #ff0707;
}

.swatch-pink {
  background: #f073b3;
}

.swatch-blue {
  background: #2f6edb;
}

.swatch-green {
  background: #4f8f5f;
}

.swatch-beige {
  background: #d8c4a2;
}

.swatch-brown {
  background: #7b4b32;
}

.swatch-gray {
  background: #8b8f92;
}

.swatch-nude {
  background: #d7aa8d;
}

.swatch-lilac {
  background: #b58ad8;
}

.swatch-yellow {
  background: #f2c94c;
}

.swatch-custom {
  background: linear-gradient(135deg, var(--green), var(--wine));
}

.product-note {
  display: grid;
  gap: 8px;
  margin-bottom: 20px;
}

.product-note span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.product-note textarea {
  width: 100%;
  min-height: 78px;
  resize: vertical;
  border: 0;
  border-radius: 8px;
  outline: 0;
  padding: 16px;
  background: #efeeee;
  color: var(--ink);
}

.product-note textarea:focus {
  box-shadow: 0 0 0 2px var(--green);
}

.size-row {
  margin: 0 0 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.compact-size-row {
  margin-bottom: 18px;
}

.size-row span,
.size-button {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font-weight: 800;
}

.size-button {
  padding: 0;
}

.size-button.is-selected {
  border-color: var(--green-dark);
  background: var(--green-dark);
  color: #fff;
  box-shadow: 0 10px 22px rgba(95, 142, 117, 0.24);
}

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

.product-actions .button {
  width: 100%;
}

.product-actions .button.primary {
  background: #bfbfbf;
}

.product-actions .button.primary.is-ready {
  background: var(--green);
}

.product-actions .button.secondary {
  background: #fff;
  border: 1px solid var(--green);
  color: var(--green-dark);
}

.product-reset {
  width: 100%;
}

.seller-help {
  margin-top: 30px;
  display: grid;
  justify-items: center;
  gap: 10px;
  color: var(--muted);
  text-align: center;
}

.related-products {
  width: min(1160px, calc(100% - 32px));
  margin: 28px auto 0;
}

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

.related-product-card {
  display: grid;
  grid-template-rows: 190px 1fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.related-product-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.related-product-card div {
  min-width: 0;
  padding: 12px;
  display: grid;
  gap: 8px;
}

.related-product-card h3,
.related-product-card strong {
  margin: 0;
}

.related-product-card h3 {
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 900;
}

.related-product-card strong {
  color: var(--wine);
}

.related-product-card .buy-button {
  min-height: 36px;
}

.seller-help p {
  margin: 0;
}

.seller-help a {
  min-height: 36px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--green);
  border-radius: 6px;
  color: var(--green-dark);
  font-weight: 700;
}

.cart-panel {
  position: fixed;
  right: 18px;
  top: 120px;
  z-index: 20;
  width: min(360px, calc(100% - 36px));
  display: none;
  gap: 14px;
  padding: 24px 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(243, 236, 220, 0.98);
  box-shadow: 0 18px 45px rgba(59, 6, 27, 0.16);
  max-height: calc(100vh - 176px);
  overflow-y: auto;
}

.cart-panel.is-open {
  display: grid;
}

body.menu-is-open .cart-panel {
  z-index: 15;
}

.cart-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.cart-panel-header h2 {
  margin: 0;
  color: var(--wine);
  font-size: 1.1rem;
  font-weight: 500;
}

.cart-share,
.cart-close {
  width: 34px;
  min-height: 34px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--wine);
  box-shadow: none;
}

.cart-share:hover,
.cart-close:hover {
  transform: none;
  background: rgba(59, 6, 27, 0.08);
  box-shadow: none;
}

.cart-share svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.cart-close {
  width: auto;
  min-height: 28px;
  font-size: 0.76rem;
}

.cart-items {
  max-height: 280px;
  display: grid;
  gap: 12px;
  overflow-y: auto;
  padding-right: 4px;
}

.cart-empty {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.cart-item {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 28px;
  gap: 10px;
  align-items: start;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.cart-item img {
  width: 46px;
  height: 54px;
  border-radius: 6px;
  object-fit: cover;
}

.cart-item h3 {
  margin: 0;
  color: var(--ink);
}

.cart-item-body {
  min-width: 0;
}

.cart-item-title-row {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 8px;
}

.cart-item-title-row h3 {
  font-size: 0.9rem;
  font-weight: 800;
}

.cart-item-title-row span {
  color: var(--wine);
  font-size: 0.78rem;
  font-weight: 900;
  white-space: nowrap;
}

.cart-item-variants {
  margin: 7px 0;
  padding: 0;
  display: grid;
  gap: 4px;
  list-style: none;
}

.cart-item-variants li,
.cart-item-muted {
  width: fit-content;
  max-width: 100%;
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  border-radius: 999px;
  background: #f4efed;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.cart-item-price {
  margin: 0;
  color: var(--wine);
  font-size: 0.78rem;
  font-weight: 900;
}

.cart-item button {
  width: 26px;
  height: 26px;
  min-height: 26px;
  padding: 0;
  border-radius: 50%;
  background: rgba(59, 6, 27, 0.08);
  color: var(--wine);
  grid-column: 3;
  justify-self: end;
  font-size: 1rem;
}

.cart-summary {
  display: grid;
  gap: 8px;
}

.cart-summary p {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--ink);
  font-size: 1rem;
}

.cart-summary span,
.cart-summary strong {
  color: var(--wine);
  font-weight: 500;
}

.cart-add-more {
  width: min(190px, 100%);
  min-height: 32px;
  justify-self: center;
  border: 1px solid var(--wine);
  background: transparent;
  color: var(--wine);
  font-size: 0.82rem;
}

.cart-add-more:hover {
  background: rgba(59, 6, 27, 0.1);
  color: var(--wine);
  box-shadow: none;
}

.cart-divider {
  height: 1px;
  background: var(--line);
}

.cart-delivery,
.cart-note-field {
  display: grid;
  gap: 10px;
}

.cart-delivery h3,
.cart-note-field > span {
  margin: 0;
  color: var(--ink);
  font-size: 1.02rem;
  font-weight: 500;
}

.shipping-field {
  display: grid;
  gap: 6px;
}

.shipping-field > span {
  color: var(--ink);
  font-size: 0.82rem;
}

.shipping-field input {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 12px;
  color: var(--ink);
}

.shipping-field small {
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.3;
}

.shipping-options {
  display: grid;
  gap: 12px;
}

.shipping-option {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.shipping-option input {
  appearance: none;
  width: 22px;
  height: 22px;
  margin: 0;
  flex: 0 0 22px;
  border-radius: 50%;
  background: #fff;
  border: 4px solid #fff;
  box-shadow: 0 0 0 1px var(--wine);
}

.shipping-option input:checked {
  background: var(--wine);
}

.shipping-option strong {
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 500;
}

.shipping-option small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.25;
}

.shipping-option-price {
  margin-left: auto;
  color: var(--wine);
  font-size: 0.78rem;
  font-weight: 500;
  white-space: nowrap;
}

.cart-note-field textarea {
  width: 100%;
  min-height: 84px;
  padding: 14px;
  border: 0;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  resize: vertical;
}

.cart-note-field textarea::placeholder {
  color: #aaa;
}

.cart-help {
  margin: 0;
  color: var(--muted);
  text-align: center;
  font-size: 0.8rem;
}

.cart-panel .checkout-link {
  width: min(250px, 100%);
  min-height: 40px;
  justify-self: center;
  background: var(--wine);
  color: #fff;
}

.cart-panel .checkout-link:hover {
  background: #260412;
  box-shadow: none;
}

.floating-whatsapp {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 68;
  width: 68px;
  height: 68px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  box-shadow: 0 14px 28px rgba(37, 211, 102, 0.34), 0 8px 20px rgba(25, 25, 25, 0.16);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.floating-whatsapp:hover {
  transform: translateY(-2px) scale(1.03);
  background: #1ebe5d;
  box-shadow: 0 18px 34px rgba(37, 211, 102, 0.38), 0 10px 24px rgba(25, 25, 25, 0.18);
}

.admin-shortcut {
  position: fixed;
  right: 18px;
  bottom: 86px;
  z-index: 95;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--wine);
  color: #fff;
  font-weight: 900;
  box-shadow: 0 14px 30px rgba(59, 6, 27, 0.28);
}

.admin-shortcut:hover {
  transform: translateY(-2px);
  background: #260412;
}

.admin-shortcut svg {
  width: 19px;
  height: 19px;
}

.floating-whatsapp svg {
  width: 50px;
  height: 50px;
  fill: currentColor;
}

.footer {
  margin-top: 80px;
  background: #f0f0ef;
  color: #67716e;
}

.footer-top,
.footer-grid {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

.footer-top {
  padding: 32px 0 26px;
  border-bottom: 1px solid #c9cfcb;
}

.policy {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--green-dark);
  font-weight: 700;
}

.footer-grid {
  padding: 32px 0;
  display: grid;
  grid-template-columns: 1fr 1.35fr 1fr;
  gap: 42px;
}

.footer h2 {
  margin: 0 0 12px;
  color: #4f5c58;
  font-size: 1rem;
}

.footer p {
  margin: 0 0 8px;
}

.footer nav {
  display: grid;
  gap: 9px;
}

.footer nav a {
  color: var(--pink);
  font-weight: 700;
}

.secure {
  width: max-content;
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 8px;
  background: #fff;
  color: #31b84d;
  text-transform: uppercase;
}

.social-links {
  display: flex;
  gap: 10px;
}

.social-links a {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--pink);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 900;
}

.copyright {
  margin: 0;
  padding: 18px 16px;
  background: var(--green);
  color: #fff;
  text-align: center;
  font-size: 0.82rem;
}

@media (max-width: 900px) {
  .related-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .featured-rail {
    --featured-card-width: min(78vw, 300px);
  }

  .admin-tabs {
    align-items: stretch;
  }

  .admin-tabs button {
    flex: 1 1 0;
    padding-inline: 10px;
  }

  .admin-tabs .admin-products-tab {
    min-height: 58px;
    padding-inline: 12px;
  }

  .admin-tabs .admin-products-tab small {
    font-size: 0.68rem;
  }

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

  .related-products {
    width: calc(100% - 20px);
  }

  .related-product-grid {
    grid-template-columns: 1fr;
  }

  .related-product-card {
    grid-template-columns: 92px minmax(0, 1fr);
    grid-template-rows: auto;
  }
}

@media (max-width: 900px) {
  .header-inner {
    grid-template-columns: auto 1fr auto;
    gap: 16px;
    min-height: auto;
    padding: 10px 0 12px;
  }

  .brand {
    grid-column: 2;
    justify-self: center;
    width: clamp(260px, 66vw, 390px);
    min-height: 150px;
    padding: 0;
  }

  .brand img {
    max-height: 150px;
  }

  .header-actions {
    grid-column: 1 / -1;
    grid-row: 1;
    width: 100%;
    justify-content: space-between;
  }

  .search {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: stretch;
    width: 100%;
  }

  .hero {
    min-height: 360px;
    overflow: hidden;
    background:
      linear-gradient(180deg, rgba(7, 7, 7, 0.84) 0%, rgba(7, 7, 7, 0.52) 100%),
      var(--hero-image) center / cover;
  }

  .categories-before-hero {
    margin-top: 16px;
    margin-bottom: 18px;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px 16px;
  }

  .product-detail {
    grid-template-columns: 1fr;
  }

  .checkout-layout {
    grid-template-columns: 1fr;
  }

  .checkout-summary {
    position: static;
  }

  .product-gallery {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .thumb {
    width: 60px;
    height: 86px;
  }

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

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

@media (min-width: 1180px) {
  .hero,
  .featured-section,
  .categories,
  .products,
  .product-page,
  .footer-top,
  .footer-grid {
    width: min(900px, calc(100% - 500px));
    margin-left: max(16px, calc((100% - 1160px) / 2));
    margin-right: auto;
  }
}

@media (max-width: 1179px) and (min-width: 901px) {
  .cart-panel {
    top: auto;
    bottom: 18px;
  }

  .checkout-page {
    width: calc(100% - 20px);
    margin-top: 24px;
  }

  .checkout-form {
    padding: 18px;
  }

  .checkout-form fieldset,
  .payment-options,
  .delivery-options {
    grid-template-columns: 1fr;
  }

  .admin-page {
    width: calc(100% - 20px);
    margin-top: 24px;
  }

  .admin-heading,
  .admin-order-header {
    align-items: start;
    flex-direction: column;
  }

  .admin-stats,
  .admin-order-grid,
  .admin-order-actions,
  .admin-order-toolbar,
  .admin-order-detail-grid,
  .customer-account-grid,
  .admin-product-layout {
    grid-template-columns: 1fr;
  }

  .admin-order-filters {
    justify-content: flex-start;
  }

  .admin-product {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .admin-product button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .admin-trash-actions {
    grid-column: 1 / -1;
  }

  .customer-account-heading,
  .customer-order-header {
    align-items: start;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .header-inner {
    width: calc(100% - 20px);
    grid-template-columns: auto 1fr auto;
    justify-items: center;
    gap: 6px;
    padding: 12px 0 14px;
  }

  .brand {
    width: min(360px, 90vw);
    min-height: 158px;
    padding: 0;
    overflow: visible;
  }

  .brand img {
    max-height: 158px;
    transform: scale(1.15);
    transform-origin: center;
  }

  .brand:hover img,
  .brand:focus img,
  .brand:active img,
  .brand:focus-visible img {
    transform: scale(1.15);
  }

  .header-actions {
    grid-column: 1 / -1;
    grid-row: 1;
    justify-self: center;
    width: 100%;
    justify-content: space-between;
  }

  .menu-panel {
    top: 58px;
    left: 0;
    right: auto;
    width: min(210px, calc(100vw - 20px));
  }

  .header-actions a {
    width: 36px;
    height: 36px;
  }

  .search {
    grid-row: auto;
  }

  .categories-before-hero {
    margin-top: 12px;
    margin-bottom: 14px;
  }

  .categories-before-hero .section-heading {
    margin-bottom: 10px;
  }

  .categories-before-hero .section-kicker {
    margin-bottom: 4px;
    font-size: 0.68rem;
  }

  .categories-before-hero h2 {
    font-size: 1.18rem;
  }

  .hero {
    width: calc(100% - 20px);
    min-height: 320px;
    margin-top: 0;
    margin-bottom: 28px;
  }

  .hero-copy {
    padding: 28px 18px;
    max-width: 100%;
    min-width: 0;
  }

  .hero h1 {
    max-width: 100%;
    font-size: clamp(2.9rem, 15.5vw, 4rem);
    overflow-wrap: anywhere;
  }

  .hero p:not(.eyebrow) {
    max-width: 310px;
    margin-top: 16px;
    font-size: 0.96rem;
    line-height: 1.28;
  }

  .hero-slide-button {
    top: auto;
    bottom: 78px;
    width: 40px;
    height: 40px;
    min-height: 40px;
    transform: none;
  }

  .hero-slide-button:hover {
    transform: scale(1.04);
  }

  .hero-slide-prev {
    left: 14px;
  }

  .hero-slide-next {
    right: 14px;
  }

  .hero-actions {
    margin-top: 34px;
    padding: 0 36px;
    justify-content: center;
  }

  .featured-section,
  .categories,
  .products,
  .checkout-page,
  .product-page,
  .admin-page,
  .customer-account-page {
    width: calc(100% - 20px);
  }

  .checkout-form {
    padding: 16px;
  }

  .checkout-form fieldset,
  .payment-options,
  .delivery-options,
  .checkout-account-fields,
  .admin-stats,
  .admin-order-grid,
  .admin-order-actions,
  .admin-order-toolbar,
  .admin-order-detail-grid,
  .admin-product-layout,
  .customer-account-grid {
    grid-template-columns: 1fr;
  }

  .checkout-form input,
  .checkout-form select,
  .checkout-form textarea {
    min-width: 0;
  }

  .payment-options label,
  .delivery-options label {
    justify-content: flex-start;
    padding: 10px 12px;
    text-align: left;
  }

  .payment-options input,
  .delivery-options input,
  .checkout-account-toggle input,
  .admin-product-active input {
    width: 18px;
    min-width: 18px;
    min-height: 18px;
    flex-basis: 18px;
  }

  .checkout-section h1,
  .admin-heading h1,
  .customer-account-heading h1 {
    font-size: 2.35rem;
  }

  .admin-heading,
  .admin-order-header,
  .customer-account-heading,
  .customer-order-header {
    align-items: start;
    flex-direction: column;
  }

  .admin-order-toolbar {
    padding: 12px;
  }

  .admin-order-filters {
    padding-top: 0;
  }

  .products {
    scroll-margin-top: 150px;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
  }

  .products .section-heading {
    position: relative;
    gap: 12px;
  }

  .sort-menu {
    width: 100%;
    justify-content: flex-end;
  }

  .sort-dropdown {
    left: 0;
    right: 0;
    width: min(100%, 320px);
    margin-left: auto;
    z-index: 30;
  }

  .featured-rail {
    grid-auto-columns: 76%;
  }

  .product-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px 12px;
  }

  .product-detail {
    grid-template-columns: 1fr;
  }

  .product-gallery {
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 8px;
  }

  .thumb-list {
    gap: 6px;
  }

  .thumb {
    width: 48px;
    height: 72px;
    border-radius: 6px;
  }

  .main-product-image {
    width: 100%;
    max-width: 100%;
  }

  .product-card h3 {
    font-size: 0.86rem;
  }

  .product-card strong {
    font-size: 1.08rem;
  }

  .product-card button {
    width: 100%;
    min-width: 0;
  }

  .product-card .buy-button {
    width: 100%;
    min-width: 0;
  }

  .category-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px 8px;
  }

  .category-grid a {
    gap: 7px;
    font-size: 0.76rem;
  }

  .category-grid img {
    width: 74px;
    height: 74px;
    border-width: 3px;
  }

  .cart-panel {
    left: 50%;
    right: auto;
    top: auto;
    bottom: 76px;
    width: min(390px, calc(100vw - 24px));
    max-width: calc(100vw - 24px);
    max-height: calc(100svh - 96px);
    padding: 12px;
    display: none;
    z-index: 70;
    gap: 10px;
    transform: translateX(-50%);
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .cart-panel.is-open {
    display: grid;
  }

  .cart-close {
    display: inline-flex;
  }

  .cart-panel-header {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 8px;
  }

  .cart-panel-header h2 {
    font-size: 1rem;
  }

  .cart-items {
    max-height: min(32svh, 230px);
    gap: 8px;
    padding-right: 2px;
  }

  .cart-item {
    grid-template-columns: 42px minmax(0, 1fr) 26px;
    gap: 8px;
    padding: 8px;
  }

  .cart-item img {
    width: 42px;
    height: 50px;
  }

  .cart-summary p {
    font-size: 0.92rem;
  }

  .cart-delivery,
  .cart-note-field {
    gap: 7px;
  }

  .shipping-options {
    gap: 8px;
  }

  .cart-note-field textarea {
    min-height: 56px;
    padding: 10px;
  }

  .cart-panel .checkout-link {
    width: 100%;
  }

  .floating-whatsapp {
    right: 14px;
    bottom: 14px;
    width: 64px;
    height: 64px;
  }

  .floating-whatsapp svg {
    width: 47px;
    height: 47px;
  }

  .whatsapp-checkout,
  .checkout-link {
    width: 100%;
  }
}
