:root {
  color-scheme: light;
  font-family: 'DM Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #F9F4E8;
  color: #284419;
  --bg: #F9F4E8;
  --panel: #FCFAF2;
  --text: #284419;
  --muted: #6B7B5B;
  --accent: #F1AEA9;
  --accent-strong: #C0403C;
  --border: rgba(40, 68, 25, 0.12);
  --shadow: 0 18px 50px rgba(40, 68, 25, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
}

.page-shell {
  opacity: 0;
  transform: translateY(8px);
  animation: homepageReveal 700ms cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

main > * {
  opacity: 0;
  transform: translateY(14px);
  animation: sectionReveal 650ms cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

main > *:nth-child(1) {
  animation-delay: 80ms;
}

main > *:nth-child(2) {
  animation-delay: 150ms;
}

main > *:nth-child(3) {
  animation-delay: 220ms;
}

main > *:nth-child(4) {
  animation-delay: 290ms;
}

@keyframes homepageReveal {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes sectionReveal {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

button,
a {
  font: inherit;
}

.page-shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.container {
  width: min(1140px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(18px);
  background: rgba(249, 244, 232, 0.96);
  border-bottom: 1px solid rgba(112, 133, 88, 0.1);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.brand-logo img {
  height: 40px;
  width: auto;
}

.site-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.nav-list a:hover,
.footer-links a:hover {
  color: var(--accent-strong);
}

.cart-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  border: 1px solid rgba(40, 68, 25, 0.15);
  background: var(--panel);
  color: var(--text);
  border-radius: 999px;
  padding: 0.75rem 1rem;
  cursor: pointer;
}

.cart-icon {
  font-size: 1.1rem;
}

.cart-count {
  font-weight: 700;
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 2rem;
  height: 1.4rem;
  border: none;
  background: transparent;
  cursor: pointer;
}

.mobile-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background: var(--text);
  border-radius: 999px;
  transform-origin: center;
  transition: transform 220ms ease, opacity 160ms ease;
}

.mobile-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(0.55rem) rotate(45deg);
}

.mobile-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.mobile-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-0.55rem) rotate(-45deg);
}

.hero {
  padding: 4rem 0 2rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 2.5rem;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--muted);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.hero-copy h1,
.section-header h2,
.story-copy h2 {
  font-family: 'Playfair Display', Georgia, serif;
  margin: 0;
  line-height: 1.05;
  color: var(--text);
}

.hero-copy h1 {
  font-size: clamp(3rem, 4vw, 5rem);
  max-width: 11ch;
  line-height: 1.02;
}

.hero-copy {
  max-width: 48rem;
}

.hero-text,
.story-copy p,
.story-list li,
.footer-links li,
.site-footer p {
  color: var(--muted);
  line-height: 1.85;
  font-size: 1rem;
}

.hero-text {
  max-width: 43rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  padding: 0.95rem 1.6rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform 220ms ease, box-shadow 220ms ease, background-color 220ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--text);
  color: var(--panel);
}

.btn-secondary {
  background: rgba(241, 174, 169, 0.16);
  color: var(--text);
  border-color: rgba(40, 68, 25, 0.08);
}

.btn-secondary--subtle {
  background: transparent;
  color: var(--text);
  border-color: rgba(40, 68, 25, 0.12);
}

.hero-visual {
  position: relative;
  min-height: 420px;
  border-radius: 42px;
  background: #FBF5EC;
  border: 1px solid rgba(112, 133, 88, 0.15);
  overflow: hidden;
  box-shadow: 0 20px 44px rgba(40, 68, 25, 0.08);
  padding: 1.6rem;
}

.hero-images {
  display: grid;
  grid-template-columns: 1.3fr 0.95fr;
  gap: 1.3rem;
  align-items: end;
  height: 100%;
}

.hero-image {
  position: relative;
  border-radius: 34px;
  overflow: hidden;
  border: 1px solid rgba(112, 133, 88, 0.14);
  background: #FCFAF2;
  box-shadow: 0 16px 34px rgba(40, 68, 25, 0.07);
}

.hero-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-image--large {
  height: 300px;
  min-height: 300px;
}

.hero-image-row {
  display: grid;
  gap: 1.4rem;
}

.hero-image--small {
  height: 150px;
  min-height: 150px;
}

.hero-image--accent {
  background: #F4D0CE;
}

.hero-image--offset {
  transform: translateY(12px);
}

.visual-layer,
.visual-frame {
  display: none;
}

.visual-layer--base {
  top: -20%;
  left: -12%;
  width: 60%;
  height: 60%;
  background: rgba(241, 174, 169, 0.18);
}

.visual-layer--detail {
  bottom: -10%;
  right: -14%;
  width: 48%;
  height: 48%;
  background: rgba(112, 133, 88, 0.12);
}

.visual-frame {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  width: min(320px, 85%);
  padding: 2rem;
  border-radius: 32px;
  background: rgba(252, 250, 242, 0.95);
  border: 1px solid rgba(40, 68, 25, 0.08);
  color: var(--text);
  font-size: 1.1rem;
  font-weight: 500;
  box-shadow: 0 28px 60px rgba(40, 68, 25, 0.08);
}

.section-header {
  text-align: left;
  margin-bottom: 1rem;
}

.section-header--split {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.section-header h2 {
  font-size: clamp(1.6rem, 2.3vw, 2.1rem);
  margin-top: 0.35rem;
}

.section-intro {
  margin: 0;
  max-width: 24rem;
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.95rem;
}

.shop-categories,
.featured-products,
.brand-story {
  padding: 1rem 0 0.75rem;
}

.category-grid,
.product-grid,
.story-grid,
.footer-grid {
  display: grid;
  gap: 1.5rem;
}

.category-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  column-gap: 0.9rem;
  row-gap: 0.5rem;
}

.category-card {
  display: flex;
  flex-direction: column;
  border-radius: 22px;
  background: var(--panel);
  border: 1px solid rgba(112, 133, 88, 0.12);
  text-decoration: none;
  color: var(--text);
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.category-card:hover {
  transform: translateY(-3px);
  border-color: rgba(192, 64, 60, 0.18);
  box-shadow: 0 18px 34px rgba(40, 68, 25, 0.06);
}

.category-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  background: #f7efe6;
}

.category-grid .category-card img {
  width: 100%;
  height: 150px;
  min-height: 0;
  aspect-ratio: auto;
  object-fit: cover;
}

.category-card--tall {
  min-height: 100%;
}

.category-card--tall img {
  aspect-ratio: auto;
  min-height: 0;
}

.category-card--wide img {
  aspect-ratio: auto;
  min-height: 0;
}

.category-card.category-card--keychains img {
  object-fit: cover;
  object-position: center 90%;
  aspect-ratio: auto;
  min-height: 0;
}

.category-card--image img {
  min-height: 0;
}

.category-card .category-card__content {
  margin-top: auto;
}

.category-card__content {
  padding: 0.7rem 0.9rem 0.85rem;
}

.category-label {
  display: inline-flex;
  margin-bottom: 0.4rem;
  font-size: 0.98rem;
  font-weight: 700;
}

.category-card p {
  margin: 0;
  line-height: 1.6;
  color: var(--muted);
  font-size: 0.94rem;
}

.product-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.shop-page {
  padding: 2.5rem 0 3rem;
  opacity: 0;
  transform: translateY(10px);
  animation: shopPageReveal 700ms cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.shop-header {
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(10px);
  animation: shopPageReveal 700ms cubic-bezier(0.2, 0.8, 0.2, 1) 120ms forwards;
}

.shop-header h1 {
  margin: 0;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2.2rem, 3vw, 3.2rem);
  line-height: 1.08;
  color: var(--text);
}

.shop-toolbar {
  margin-bottom: 2rem;
  opacity: 0;
  transform: translateY(10px);
  animation: shopPageReveal 700ms cubic-bezier(0.2, 0.8, 0.2, 1) 180ms forwards;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  position: relative;
  z-index: 2;
}

.filter-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  position: relative;
  z-index: 2;
}

.filter-list.is-collapsed {
  display: none;
}

.filter-button {
  border: 1px solid rgba(40, 68, 25, 0.12);
  background: transparent;
  color: var(--text);
  border-radius: 999px;
  padding: 0.6rem 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 180ms ease;
  pointer-events: auto;
  position: relative;
  z-index: 3;
}

.categories-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.filter-button:hover,
.filter-button.is-active {
  background: rgba(241, 174, 169, 0.16);
  border-color: rgba(192, 64, 60, 0.2);
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
  opacity: 1;
  transition: opacity 260ms ease, transform 260ms ease;
  animation: shopPageReveal 700ms cubic-bezier(0.2, 0.8, 0.2, 1) 260ms forwards;
}

.shop-grid.is-transitioning {
  opacity: 0.28;
  transform: translateY(-4px);
}

.shop-product-card {
  min-height: 100%;
  opacity: 0;
  transform: translateY(12px);
  animation: cardReveal 420ms cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  animation-delay: var(--delay, 0ms);
}

.product-category {
  margin: 0;
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

.product-availability.is-in-stock {
  color: #4F6F35;
}

.product-availability.is-low-stock {
  color: #9A6A19;
  font-weight: 700;
}

.product-availability.is-out-of-stock {
  color: #B43A35;
  font-weight: 800;
}

.add-to-cart:disabled {
  cursor: not-allowed;
  opacity: 0.72;
  background: #B43A35;
  transform: none;
}

.add-to-cart {
  margin-top: auto;
  background: var(--accent-strong);
  border: none;
  color: var(--panel);
  border-radius: 999px;
  padding: 0.9rem 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 180ms ease, background-color 180ms ease;
}

.add-to-cart:hover {
  transform: translateY(-1px);
  background: #a0302d;
}

.product-card {
  background: var(--panel);
  border: 1px solid rgba(112, 133, 88, 0.12);
  border-radius: 28px;
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  box-shadow: 0 10px 24px rgba(40, 68, 25, 0.04);
}

@keyframes shopPageReveal {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes cardReveal {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-shell,
  main > *,
  .shop-page,
  .shop-header,
  .shop-toolbar,
  .shop-grid,
  .shop-product-card {
    animation: none;
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.product-card {
  background: var(--panel);
  border: 1px solid rgba(112, 133, 88, 0.12);
  border-radius: 28px;
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  box-shadow: 0 10px 24px rgba(40, 68, 25, 0.04);
}

.product-image {
  position: relative;
  min-height: 220px;
  border-radius: 24px;
  overflow: hidden;
  background: #FCFAF2;
  border: 1px solid rgba(112, 133, 88, 0.14);
}

.featured-products .product-card {
  min-height: 320px;
}

.featured-products .product-image {
  min-height: 180px;
  height: 180px;
}

.featured-products .product-image img {
  object-position: center;
}

.product-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-meta {
  display: grid;
  gap: 0.5rem;
}

.product-name {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
}

.product-price {
  margin: 0;
  color: var(--muted);
}

.product-card button {
  margin-top: auto;
  background: var(--accent-strong);
  border: none;
  color: var(--panel);
  border-radius: 999px;
  padding: 0.95rem 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 180ms ease, background-color 180ms ease;
}

.product-card button:hover {
  transform: translateY(-1px);
  background: #a0302d;
}

.cart-page-shell {
  padding: 2rem 0 3rem;
}

.cart-layout {
  display: grid;
  grid-template-columns: 1.5fr 0.7fr;
  gap: 1.5rem;
  align-items: start;
}

.cart-page-panel,
.cart-summary-panel {
  background: var(--panel);
  border: 1px solid rgba(40, 68, 25, 0.08);
  border-radius: 28px;
  padding: 1.5rem;
  box-shadow: 0 18px 40px rgba(40, 68, 25, 0.05);
}

.cart-page-panel h1,
.cart-summary-panel h2 {
  margin-top: 0;
  color: var(--text);
  font-family: 'Playfair Display', Georgia, serif;
}

.cart-page-items {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.cart-page-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid rgba(40, 68, 25, 0.08);
  background: rgba(255, 255, 255, 0.38);
  border-radius: 20px;
}


/* Cart removal animation */
.cart-page-item {
  transition:
    opacity 280ms ease,
    transform 320ms cubic-bezier(0.22, 1, 0.36, 1),
    max-height 320ms ease,
    margin 320ms ease,
    padding 320ms ease;
}

.cart-page-item.is-removing {
  opacity: 0;
  transform: translateX(22px) scale(0.98);
  max-height: 0;
  margin-top: -0.5rem;
  margin-bottom: -0.5rem;
  padding-top: 0;
  padding-bottom: 0;
  overflow: hidden;
  pointer-events: none;
}

.cart-page-item.is-removing > * {
  opacity: 0;
  transition: opacity 180ms ease;
}

.cart-item {
  transition:
    opacity 200ms ease,
    transform 220ms cubic-bezier(0.22, 1, 0.36, 1),
    max-height 220ms ease;
}

.cart-item.is-removing {
  opacity: 0;
  transform: translateX(16px) scale(0.98);
  max-height: 0;
  overflow: hidden;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .cart-page-item,
  .cart-item,
  .cart-page-item.is-removing,
  .cart-item.is-removing,
  .cart-page-item.is-removing > * {
    transition: none !important;
  }
}

.cart-page-item__image {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 16px;
  background: #F7EFE6;
}

.cart-page-item__details {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.cart-page-item__header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: start;
}

.cart-page-item__header h3 {
  margin: 0.15rem 0 0;
  font-size: 1.1rem;
}

.cart-page-item__category {
  margin: 0;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.7rem;
}

.cart-page-item__remove,
.cart-item__remove,
.cart-page-item__remove {
  background: transparent;
  border: none;
  color: var(--accent-strong);
  font-weight: 700;
  cursor: pointer;
  padding: 0;
}

.cart-page-item__meta {
  margin: 0;
  color: var(--muted);
}

.cart-page-item__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cart-page-item__pricing {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 90px;
  color: var(--muted);
  font-size: 0.8rem;
}

.cart-page-item__pricing strong {
  color: var(--text);
  font-size: 1rem;
}

.summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  padding: 0.9rem 0;
  border-bottom: 1px solid rgba(40, 68, 25, 0.08);
}

.summary-row strong {
  color: var(--text);
}

.summary-row--total {
  color: var(--text);
  font-size: 1.05rem;
  border-bottom: none;
  padding-bottom: 1rem;
}

.cart-summary-panel .btn {
  width: 100%;
  margin-top: 0.75rem;
}

.cart-page-empty {
  padding: 2rem 1rem;
  text-align: center;
  border: 1px dashed rgba(40, 68, 25, 0.18);
  border-radius: 18px;
  color: var(--muted);
}

.checkout-page {
  padding: 2rem 0 3rem;
}

.checkout-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.5rem;
  align-items: start;
}

.checkout-panel,
.checkout-summary {
  background: var(--panel);
  border: 1px solid rgba(40, 68, 25, 0.08);
  border-radius: 28px;
  padding: 1.5rem;
  box-shadow: 0 18px 40px rgba(40, 68, 25, 0.05);
}

.checkout-panel h1,
.checkout-summary h2 {
  margin-top: 0;
  color: var(--text);
  font-family: 'Playfair Display', Georgia, serif;
}

.checkout-form {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.checkout-form label {
  display: grid;
  gap: 0.45rem;
  color: var(--text);
  font-weight: 600;
}

.checkout-form input,
.checkout-form textarea {
  width: 100%;
  border: 1px solid rgba(40, 68, 25, 0.15);
  background: rgba(255, 255, 255, 0.8);
  color: var(--text);
  border-radius: 14px;
  padding: 0.8rem 0.95rem;
  font: inherit;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
  box-sizing: border-box;
}

.checkout-form input::placeholder,
.checkout-form textarea::placeholder {
  color: rgba(40, 68, 25, 0.5);
}

.checkout-form input:focus,
.checkout-form textarea:focus {
  outline: none;
  border-color: rgba(192, 64, 60, 0.35);
  box-shadow: 0 0 0 4px rgba(241, 174, 169, 0.18);
  background: #fff;
}

.checkout-form textarea {
  resize: vertical;
  min-height: 120px;
}

.checkout-form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.payment-fieldset {
  border: 1px solid rgba(40, 68, 25, 0.12);
  border-radius: 18px;
  padding: 0.9rem 0.95rem 0.7rem;
  margin: 0;
}

.payment-fieldset legend {
  padding: 0 0.35rem;
  color: var(--text);
  font-weight: 700;
}

.payment-option {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: 0.7rem;
  font-weight: 500;
}

.payment-option input {
  width: auto;
  accent-color: #c0403c;
}

.checkout-items {
  display: grid;
  gap: 0.9rem;
  margin: 1rem 0 1.25rem;
}

.checkout-item {
  display: grid;
  grid-template-columns: 76px 1fr auto;
  align-items: center;
  gap: 0.85rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid rgba(40, 68, 25, 0.08);
}

.checkout-item:last-child {
  border-bottom: none;
}

.checkout-item img {
  width: 76px;
  height: 76px;
  object-fit: cover;
  border-radius: 16px;
  background: #F7EFE6;
}

.checkout-item div {
  display: grid;
  gap: 0.2rem;
}

.checkout-item p {
  margin: 0;
  font-weight: 700;
  color: var(--text);
}

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

.checkout-item strong {
  color: var(--text);
  font-size: 0.9rem;
}

.summary-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid rgba(40, 68, 25, 0.08);
  color: var(--text);
  font-weight: 700;
}

.checkout-summary .btn {
  width: 100%;
  margin-top: 1rem;
}

.product-customizer-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 50;
  padding: 1rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.product-customizer-modal.is-open {
  display: block;
}

.product-customizer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(19, 28, 14, 0.45);
}

.product-customizer {
  position: relative;
  z-index: 1;
  width: min(680px, 100%);
  max-height: calc(100dvh - 2rem);
  margin: 0 auto;
  background: var(--panel);
  border-radius: 26px;
  border: 1px solid rgba(40, 68, 25, 0.08);
  box-shadow: 0 30px 80px rgba(26, 39, 22, 0.18);
  display: grid;
  grid-template-columns: 220px 1fr;
  overflow: hidden;
}

.product-customizer__image-wrap {
  background: #F9EFE7;
  display: grid;
  place-items: center;
  min-height: 320px;
}

.product-customizer__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-customizer__content {
  padding: 1.5rem;
}

.product-customizer__close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  border: 1px solid rgba(40, 68, 25, 0.08);
  background: rgba(255,255,255,0.9);
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
}

.product-customizer__content h3 {
  margin: 0 0 1rem;
  font-size: 1.5rem;
  color: var(--text);
}

.customizer-price {
  margin: -.55rem 0 1rem;
  color: var(--accent-strong);
  font-weight: 800;
  font-size: 1.05rem;
}

body.customizer-open {
  overflow: hidden;
}

.option-chip {
  line-height: 1.25;
}

.seller-option-box code {
  font-size: .72rem;
  background: rgba(40, 68, 25, .06);
  padding: .08rem .25rem;
  border-radius: 5px;
}

.customizer-options {
  display: grid;
  gap: 1rem;
}

.customizer-option {
  display: grid;
  gap: 0.55rem;
}

.customizer-option label {
  font-weight: 700;
  color: var(--text);
}

.option-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.option-chip {
  border: 1px solid rgba(40, 68, 25, 0.12);
  background: transparent;
  color: var(--text);
  border-radius: 999px;
  padding: 0.55rem 0.88rem;
  font-weight: 600;
  cursor: pointer;
}

.option-chip.is-selected {
  background: rgba(241, 174, 169, 0.16);
  border-color: rgba(192, 64, 60, 0.2);
}

.customizer-quantity {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 1.25rem 0;
  color: var(--text);
}

.quantity-stepper--compact {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  border: 1px solid rgba(40, 68, 25, 0.12);
  border-radius: 999px;
  padding: 0.35rem 0.6rem;
}

.quantity-stepper--compact button {
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 1.1rem;
  cursor: pointer;
}

.customizer-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1rem;
}

@media (max-width: 740px) {
  .cart-layout {
    grid-template-columns: 1fr;
  }

  .cart-page-item {
    grid-template-columns: 1fr;
  }

  .cart-page-item__image {
    height: 220px;
  }

  .cart-page-item__header,
  .cart-page-item__row {
    flex-direction: column;
    align-items: flex-start;
  }

  .product-customizer {
    grid-template-columns: 1fr;
    max-height: calc(100dvh - 1rem);
    border-radius: 22px;
  }

  .product-customizer__image-wrap {
    min-height: 0;
    height: 170px;
  }

  .product-customizer__image {
    height: 170px;
  }

  .product-customizer__content {
    padding: 1rem;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .customizer-actions {
    flex-direction: column-reverse;
    position: sticky;
    bottom: 0;
    padding-top: .8rem;
    margin-top: 1rem;
    background: linear-gradient(to bottom, transparent 0, var(--panel) 18%);
  }

  .customizer-actions .btn {
    width: 100%;
  }
}

.story-grid {
  grid-template-columns: 1.2fr 0.9fr;
  align-items: center;
}

.story-copy {
  max-width: 560px;
}

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

.story-list li {
  background: rgba(241, 174, 169, 0.1);
  border: 1px solid rgba(40, 68, 25, 0.08);
  border-radius: 20px;
  padding: 1rem;
}

.story-card {
  min-height: 120px;
  border-radius: 28px;
  padding: 1.5rem;
  display: grid;
  place-items: center;
  text-align: center;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
}

.story-card--one {
  background: #FCBE52;
}

.story-card--two {
  background: #F4D0CE;
}

.story-card--three {
  background: #F1AEA9;
}

.site-footer {
  margin-top: auto;
  padding: 3rem 0 1.5rem;
  background: #FCFAF2;
  border-top: 1px solid rgba(40, 68, 25, 0.08);
}

.footer-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
}

.footer-logo img {
  height: 38px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.75rem;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

.footer-note {
  margin-top: 2rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
}

@media (max-width: 992px) {
  .hero-grid,
  .story-grid {
    grid-template-columns: 1fr;
  }

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

  .hero-visual {
    min-height: auto;
    padding: 1.5rem;
  }

  .hero-images {
    grid-template-columns: 1fr;
  }

  .hero-image--large {
    min-height: 320px;
  }

  .hero-image--small {
    min-height: 180px;
  }

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

  .product-grid,
  .shop-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 740px) {
  .header-inner {
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .site-nav {
    width: 100%;
    display: none;
  }

  .site-nav.active {
    display: block;
  }

  .nav-list {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 0;
    border-top: 1px solid rgba(40, 68, 25, 0.08);
  }

  .mobile-toggle {
    display: flex;
  }

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

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

  .shop-page {
    padding-top: 2rem;
  }

  .filter-list {
    gap: 0.5rem;
    display: none;
  }

  .filter-list.is-open {
    display: flex;
  }

  .filter-button {
    padding: 0.55rem 0.8rem;
    font-size: 0.9rem;
  }

  .category-card img {
    aspect-ratio: 4 / 3;
  }

  .hero {
    padding-top: 2rem;
  }

  .hero-visual {
    min-height: auto;
    padding: 1.25rem;
  }

  .hero-images {
    grid-template-columns: 1fr;
  }

  .hero-image--large {
    min-height: 260px;
  }

  .hero-image--small {
    min-height: 160px;
  }

  .hero-image--offset {
    transform: none;
  }
}

@media (max-width: 520px) {
  .hero-copy h1 {
    font-size: 2.5rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .visual-frame {
    width: 100%;
    padding: 1.75rem;
  }

  .product-card {
    padding: 1.25rem;
  }
}


/* Customer order tracking */
.track-page {
  padding: 2.5rem 0 3.5rem;
}

.track-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 1.5rem;
  align-items: start;
}

.track-panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.track-panel--form {
  position: sticky;
  top: 6.5rem;
}

.track-panel h1,
.track-panel h2 {
  margin: 0;
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--text);
}

.track-panel h1 {
  font-size: clamp(2.15rem, 4vw, 3.1rem);
  line-height: 1.08;
}

.track-intro {
  max-width: 38rem;
  color: var(--muted);
  line-height: 1.7;
  margin: 1rem 0 0;
}

.track-form {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.track-form label {
  display: grid;
  gap: 0.45rem;
  color: var(--text);
  font-weight: 600;
}

.track-form input {
  width: 100%;
  border: 1px solid rgba(40, 68, 25, 0.15);
  background: rgba(255, 255, 255, 0.82);
  color: var(--text);
  border-radius: 14px;
  padding: 0.85rem 0.95rem;
  font: inherit;
  box-sizing: border-box;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.track-form input:focus {
  outline: none;
  border-color: rgba(192, 64, 60, 0.35);
  box-shadow: 0 0 0 4px rgba(241, 174, 169, 0.18);
  background: #fff;
}

.track-form-note {
  margin: -0.15rem 0 0;
  font-size: 0.78rem;
  line-height: 1.55;
  color: var(--muted);
}

.track-panel--result {
  min-height: 100%;
}

.track-empty-state,
.track-error-state {
  min-height: 380px;
  display: grid;
  place-items: center;
  align-content: center;
  text-align: center;
  padding: 2rem;
  color: var(--muted);
}

.track-empty-state__mark,
.track-error-state__mark {
  width: 3rem;
  height: 3rem;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  margin-bottom: 1rem;
  color: var(--accent-strong);
  background: rgba(241, 174, 169, 0.18);
  font-weight: 700;
}

.track-empty-state h2,
.track-error-state h2 {
  margin: 0;
  max-width: 25rem;
  font-size: clamp(1.5rem, 2vw, 2rem);
}

.track-empty-state p,
.track-error-state p {
  max-width: 34rem;
  margin: 0.7rem 0 0;
  line-height: 1.65;
}

.track-empty-state.is-hidden {
  display: none;
}

.track-result-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: end;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}

.track-result-header h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.track-order-date {
  color: var(--muted);
  font-size: 0.85rem;
  white-space: nowrap;
}

.track-status-block {
  padding: 1.25rem 0;
}

.track-timeline {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.track-step {
  position: relative;
  display: grid;
  gap: 0.55rem;
  justify-items: center;
  text-align: center;
  color: var(--muted);
}

.track-step::after {
  content: '';
  position: absolute;
  top: 0.85rem;
  left: calc(50% + 0.9rem);
  width: calc(100% - 1.8rem);
  height: 2px;
  background: rgba(40, 68, 25, 0.08);
}

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

.track-step__dot {
  position: relative;
  z-index: 1;
  width: 1.7rem;
  height: 1.7rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  border: 1px solid rgba(40, 68, 25, 0.14);
  color: var(--accent-strong);
  font-size: 0.75rem;
  font-weight: 700;
}

.track-step.is-complete .track-step__dot {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--text);
}

.track-step.is-current .track-step__dot {
  box-shadow: 0 0 0 5px rgba(241, 174, 169, 0.16);
}

.track-step.is-complete::after {
  background: rgba(192, 64, 60, 0.25);
}

.track-step__label {
  font-size: 0.78rem;
  font-weight: 600;
}

.track-cancelled {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1rem 1.1rem;
  border-radius: 18px;
  background: rgba(192, 64, 60, 0.08);
}

.track-cancelled .track-status-dot {
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(192, 64, 60, 0.18);
  color: var(--accent-strong);
  font-weight: 700;
}

.track-cancelled p {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.track-order-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  margin-bottom: 1.25rem;
}

.track-order-details > div {
  padding: 0.9rem 1rem;
  border-radius: 16px;
  background: rgba(241, 174, 169, 0.1);
  border: 1px solid rgba(40, 68, 25, 0.06);
}

.track-order-details span,
.track-summary span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
}

.track-order-details strong {
  display: block;
  margin-top: 0.25rem;
  text-transform: capitalize;
}

.track-items-section {
  margin-top: 1rem;
}

.track-section-heading {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.track-section-heading h3 {
  margin: 0;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.35rem;
}

.track-section-heading > span {
  color: var(--muted);
  font-size: 0.82rem;
}

.track-order-items {
  display: grid;
  gap: 0.2rem;
  margin-top: 0.7rem;
}

.track-order-item {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: start;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--border);
}

.track-order-item h3 {
  margin: 0;
  font-size: 0.95rem;
}

.track-order-item p,
.track-order-item small {
  display: block;
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.track-order-item strong {
  color: var(--text);
  white-space: nowrap;
  font-size: 0.9rem;
}

.track-summary {
  display: grid;
  gap: 0.65rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.track-summary > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.track-summary__total {
  padding-top: 0.65rem;
  margin-top: 0.15rem;
  border-top: 1px solid var(--border);
  font-size: 1.05rem;
}

.track-back-button {
  width: 100%;
  margin-top: 1rem;
}

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

.cart-track-link,
.checkout-track-link {
  display: block;
  margin-top: 0.85rem;
  text-align: center;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.83rem;
}

.cart-track-link:hover,
.checkout-track-link:hover {
  color: var(--accent-strong);
}

/* Order confirmation */
.confirmation-page {
  display: grid;
  place-items: center;
  min-height: calc(100vh - 84px);
  padding: 3rem 0;
}

.confirmation-card {
  width: min(720px, calc(100% - 2rem));
  text-align: center;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 32px;
  padding: clamp(2rem, 6vw, 4rem);
  box-shadow: var(--shadow);
}

.confirmation-mark {
  width: 4rem;
  height: 4rem;
  margin: 0 auto 1rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(241, 174, 169, 0.28);
  color: var(--text);
  font-size: 1.4rem;
  font-weight: 700;
}

.confirmation-card h1 {
  margin: 0;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2.2rem, 5vw, 3.7rem);
  line-height: 1.05;
}

.confirmation-copy {
  max-width: 34rem;
  margin: 1rem auto 0;
  color: var(--muted);
  line-height: 1.7;
}

.confirmation-order-box {
  margin: 1.75rem auto 0;
  padding: 1rem 1.1rem;
  border-radius: 18px;
  background: rgba(241, 174, 169, 0.12);
  border: 1px solid rgba(40, 68, 25, 0.08);
}

.confirmation-order-box span,
.confirmation-details span {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
}

.confirmation-order-box strong {
  display: block;
  margin-top: 0.25rem;
  font-size: 1.25rem;
  letter-spacing: 0.04em;
}

.confirmation-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 0.8rem;
}

.confirmation-details > div {
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: 16px;
}

.confirmation-details strong {
  display: block;
  margin-top: 0.25rem;
}

.confirmation-actions {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

@media (max-width: 860px) {
  .track-layout {
    grid-template-columns: 1fr;
  }

  .track-panel--form {
    position: static;
  }
}

@media (max-width: 740px) {
  .track-page {
    padding: 1.5rem 0 2.5rem;
  }

  .track-panel {
    padding: 1.2rem;
    border-radius: 22px;
  }

  .track-result-header {
    align-items: start;
    flex-direction: column;
  }

  .track-order-date {
    white-space: normal;
  }

  .track-timeline {
    grid-template-columns: 1fr;
    gap: 0.7rem;
  }

  .track-step {
    grid-template-columns: 1.7rem 1fr;
    justify-items: start;
    text-align: left;
    align-items: center;
  }

  .track-step::after {
    top: 1.65rem;
    left: 0.8rem;
    width: 2px;
    height: calc(100% - 0.65rem);
  }

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

  .track-order-details,
  .confirmation-details {
    grid-template-columns: 1fr;
  }

  .track-order-item {
    align-items: end;
  }

  .confirmation-page {
    padding: 2rem 0;
  }

  .confirmation-card {
    padding: 1.75rem 1.2rem;
    border-radius: 24px;
  }

  .confirmation-actions {
    flex-direction: column;
  }

  .confirmation-actions .btn {
    width: 100%;
  }
}


/* Seller dashboard */
.seller-body {
  background: var(--bg);
}

.seller-header-actions {
  display: flex;
  align-items: center;
  gap: .8rem;
}

.seller-email {
  color: var(--muted);
  font-size: .82rem;
  max-width: 20rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.seller-page {
  padding: 2.5rem 0 4rem;
}

.seller-container {
  display: grid;
  gap: 2rem;
}

.seller-page-heading,
.seller-section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}

.seller-page-heading h1,
.seller-section-heading h2,
.seller-login-card h1 {
  margin: 0;
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--text);
}

.seller-page-heading h1,
.seller-login-card h1 {
  font-size: clamp(2.3rem, 5vw, 4rem);
  line-height: 1.04;
}

.seller-section-heading h2 {
  font-size: clamp(1.7rem, 3vw, 2.2rem);
}

.seller-muted {
  color: var(--muted);
  line-height: 1.7;
  margin: .7rem 0 0;
}

.seller-login-card {
  width: min(560px, 100%);
  margin: 4rem auto;
  padding: clamp(1.6rem, 5vw, 3rem);
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.seller-form {
  display: grid;
  gap: 1rem;
  margin-top: 1.4rem;
}

.seller-form label,
.seller-inline-control {
  display: grid;
  gap: .45rem;
  color: var(--text);
  font-weight: 500;
  font-size: .9rem;
}

.seller-form input,
.seller-form textarea,
.seller-form select,
.seller-inline-control select {
  width: 100%;
  border: 1px solid rgba(40, 68, 25, .15);
  background: rgba(252, 250, 242, .95);
  color: var(--text);
  border-radius: 14px;
  padding: .85rem .95rem;
  outline: none;
  font: inherit;
  transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.seller-form input:focus,
.seller-form textarea:focus,
.seller-form select:focus,
.seller-inline-control select:focus {
  border-color: var(--accent-strong);
  box-shadow: 0 0 0 4px rgba(241, 174, 169, .18);
  background: #fffdf7;
}

.seller-form textarea {
  resize: vertical;
}

.seller-form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.seller-form .btn {
  width: 100%;
  margin-top: .2rem;
}

.seller-error {
  color: var(--accent-strong);
  background: rgba(192, 64, 60, .08);
  border: 1px solid rgba(192, 64, 60, .12);
  padding: .8rem .9rem;
  border-radius: 12px;
  margin: 0;
  line-height: 1.5;
}

.seller-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .9rem;
}

.seller-stat {
  padding: 1rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(252, 250, 242, .88);
}

.seller-stat span {
  display: block;
  color: var(--muted);
  font-size: .78rem;
}

.seller-stat strong {
  display: block;
  margin-top: .2rem;
  font-size: 1.6rem;
  color: var(--text);
}

.seller-section {
  display: grid;
  gap: 1rem;
}

.seller-orders-list {
  display: grid;
  gap: .75rem;
}

.seller-order-row {
  display: grid;
  gap: .9rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--panel);
  box-shadow: 0 12px 30px rgba(40, 68, 25, .05);
}

.seller-order-main {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}

.seller-order-number {
  margin: 0;
  color: var(--accent-strong);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .05em;
}

.seller-order-main h3 {
  margin: .25rem 0 .15rem;
  font-size: 1rem;
}

.seller-order-main p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: .82rem;
}

.seller-order-meta {
  display: grid;
  justify-items: end;
  gap: .45rem;
}

.seller-order-meta strong {
  font-size: 1rem;
}

.seller-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .35rem .65rem;
  border-radius: 999px;
  background: rgba(112, 133, 88, .14);
  color: var(--text);
  font-size: .72rem;
  font-weight: 700;
}

.seller-pill--new { background: rgba(241, 174, 169, .3); }
.seller-pill--processing { background: rgba(252, 190, 82, .28); }
.seller-pill--shipped { background: rgba(112, 133, 88, .18); }
.seller-pill--completed { background: rgba(40, 68, 25, .12); }
.seller-pill--cancelled { background: rgba(192, 64, 60, .12); color: var(--accent-strong); }

.seller-order-actions {
  display: flex;
  justify-content: flex-end;
  align-items: end;
  gap: .75rem;
}

.seller-inline-control {
  min-width: 10rem;
  font-size: .72rem;
  color: var(--muted);
  font-weight: 600;
}

.seller-inline-control select {
  padding: .6rem .7rem;
  border-radius: 12px;
  font-size: .82rem;
}

.seller-products-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.seller-product-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--panel);
  box-shadow: 0 12px 30px rgba(40, 68, 25, .05);
}

.seller-product-image {
  position: relative;
  background: #f6efe4;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.seller-product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.seller-availability {
  position: absolute;
  top: .8rem;
  left: .8rem;
  padding: .35rem .6rem;
  border-radius: 999px;
  background: rgba(252, 250, 242, .94);
  color: var(--muted);
  font-size: .7rem;
  font-weight: 700;
  border: 1px solid var(--border);
}

.seller-availability.is-available {
  color: var(--text);
}

.seller-product-content {
  display: grid;
  gap: .7rem;
  padding: 1rem;
}

.seller-product-heading {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}

.seller-product-category {
  margin: 0;
  color: var(--muted);
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.seller-product-heading h3 {
  margin: .2rem 0 0;
  font-size: 1rem;
}

.seller-product-heading > strong {
  white-space: nowrap;
}

.seller-product-description {
  margin: 0;
  color: var(--muted);
  font-size: .83rem;
  line-height: 1.55;
}

.seller-product-stock {
  color: var(--muted);
  font-size: .82rem;
}

.seller-card-actions {
  display: flex;
  gap: .6rem;
}

.btn-danger {
  border: 1px solid rgba(192, 64, 60, .18);
  background: rgba(192, 64, 60, .08);
  color: var(--accent-strong);
}

.seller-empty,
.seller-loading {
  padding: 1.5rem;
  border: 1px dashed rgba(40, 68, 25, .16);
  border-radius: 18px;
  color: var(--muted);
  background: rgba(252, 250, 242, .6);
}

.seller-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(40, 68, 25, .38);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  overflow-y: auto;
  overscroll-behavior: contain;
  isolation: isolate;
  transition: opacity 180ms ease, visibility 180ms ease;
}

.seller-modal-backdrop.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.seller-modal-backdrop[hidden] {
  display: none !important;
}

.seller-modal {
  position: relative;
  z-index: 10001;
  width: min(760px, calc(100vw - 2rem));
  max-height: min(88dvh, 880px);
  min-height: 0;
  margin: auto;
  flex: 0 1 auto;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 1.4rem;
  border-radius: 24px;
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: 0 24px 80px rgba(40, 68, 25, .22);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.seller-modal-backdrop.is-open .seller-modal {
  opacity: 1;
  transform: translateY(0);
}

.seller-modal h2 {
  margin: 0;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2rem;
}

.seller-modal .seller-form {
  min-width: 0;
}

.seller-modal .seller-form-row {
  align-items: start;
}

.seller-modal .seller-option-box {
  margin-top: .25rem;
}

.seller-modal textarea,
.seller-modal input,
.seller-modal select {
  min-width: 0;
}

@media (prefers-reduced-motion: reduce) {
  .seller-modal,
  .seller-modal-backdrop {
    transition: none;
  }
}

.seller-modal-close {
  position: sticky;
  top: 0;
  float: right;
  z-index: 2;
  width: 2.25rem;
  height: 2.25rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--panel);
  color: var(--text);
  font-size: 1.35rem;
  cursor: pointer;
}

.seller-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: .65rem;
  margin-top: .4rem;
}

.seller-option-box {
  padding: 1rem;
  border-radius: 16px;
  background: rgba(241, 174, 169, .09);
  border: 1px solid rgba(40, 68, 25, .06);
  display: grid;
  gap: .8rem;
}

.seller-option-box > strong {
  font-size: .92rem;
}

.seller-field-help {
  margin: -.35rem 0 0;
  color: var(--muted);
  font-size: .75rem;
  line-height: 1.5;
}

.seller-checkbox {
  display: flex !important;
  align-items: center;
  gap: .6rem;
  color: var(--text);
}

.seller-checkbox input {
  width: auto;
  accent-color: var(--accent-strong);
}

.seller-payment-panel {
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid rgba(40, 68, 25, .1);
  border-radius: 18px;
  background: rgba(252, 250, 242, .72);
}

.seller-payment-panel__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.seller-payment-panel__eyebrow {
  display: block;
  margin-bottom: .2rem;
  color: var(--muted);
  font-size: .76rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.seller-payment-panel__method {
  font-size: 1rem;
}

.seller-payment-badge {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: .35rem .7rem;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 800;
  white-space: nowrap;
}

.seller-payment-badge--pending { background: rgba(241, 174, 169, .25); color: #7a3c34; }
.seller-payment-badge--paid { background: rgba(103, 150, 111, .18); color: var(--accent-strong); }
.seller-payment-badge--failed { background: rgba(192, 64, 60, .12); color: #9a3a35; }
.seller-payment-badge--refunded { background: rgba(110, 110, 110, .12); color: var(--muted); }
.seller-payment-badge--cod { background: rgba(219, 232, 220, .7); color: var(--accent-strong); }

.seller-payment-reference {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: .9rem;
  padding: .75rem .85rem;
  border-radius: 14px;
  background: rgba(219, 232, 220, .38);
}

.seller-payment-reference span { color: var(--muted); }
.seller-payment-reference strong { overflow-wrap: anywhere; text-align: right; }

.seller-payment-action {
  margin-top: .8rem;
  padding: .75rem .85rem;
  border-radius: 14px;
  background: rgba(244, 229, 222, .58);
  color: var(--text);
  line-height: 1.45;
}

.seller-order-modal {
  width: min(820px, calc(100vw - 2rem));
}

.seller-order-detail-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.seller-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
  margin-top: 1rem;
}

.seller-detail-grid > div,
.seller-detail-block {
  padding: .85rem .95rem;
  border-radius: 15px;
  background: rgba(241, 174, 169, .08);
  border: 1px solid rgba(40, 68, 25, .06);
}

.seller-detail-grid span,
.seller-detail-block > span,
.seller-detail-summary span {
  display: block;
  color: var(--muted);
  font-size: .72rem;
}

.seller-detail-grid strong {
  display: block;
  margin-top: .2rem;
  font-size: .9rem;
}

.seller-detail-block {
  margin-top: .75rem;
}

.seller-detail-block p {
  margin: .35rem 0 0;
  color: var(--text);
  line-height: 1.6;
  white-space: pre-wrap;
}

.seller-order-items {
  display: grid;
  gap: .1rem;
  margin-top: .5rem;
}

.seller-order-item {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .75rem 0;
  border-bottom: 1px solid var(--border);
}

.seller-order-item:last-child {
  border-bottom: 0;
}

.seller-order-item span,
.seller-order-item small {
  display: block;
  margin-top: .18rem;
  color: var(--muted);
  font-size: .75rem;
}

.seller-detail-summary {
  display: grid;
  gap: .55rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.seller-detail-summary > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.seller-detail-summary > div:last-child {
  padding-top: .55rem;
  border-top: 1px solid var(--border);
  font-size: 1.05rem;
}

.seller-modal-open {
  overflow: hidden;
}

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

  .seller-products-grid {
    grid-template-columns: 1fr;
  }

  .seller-nav {
    display: none;
  }
}

@media (max-width: 740px) {
  .seller-page {
    padding: 1.5rem 0 2.5rem;
  }

  .seller-header-actions {
    margin-left: auto;
  }

  .seller-email {
    display: none;
  }

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

  .seller-page-heading .btn,
  .seller-section-heading .btn {
    width: 100%;
  }

  .seller-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .seller-form-row,
  .seller-detail-grid {
    grid-template-columns: 1fr;
  }

  .seller-order-main {
    flex-direction: column;
  }

  .seller-order-meta {
    justify-items: start;
  }

  .seller-order-actions {
    justify-content: stretch;
    align-items: stretch;
    flex-direction: column;
  }

  .seller-inline-control {
    min-width: 0;
  }

  .seller-card-actions {
    flex-direction: column;
  }

  .seller-card-actions .btn {
    width: 100%;
  }

  .seller-modal {
    width: min(100%, calc(100vw - 1rem));
    max-height: calc(100dvh - 1rem);
    border-radius: 20px;
    padding: 1.15rem;
  }

  .seller-modal-actions {
    flex-direction: column-reverse;
  }

  .seller-modal-actions .btn {
    width: 100%;
  }

  .seller-payment-panel__header {
    flex-direction: column;
    align-items: stretch;
  }

  .seller-payment-reference {
    flex-direction: column;
  }

  .seller-payment-reference strong {
    text-align: left;
  }
}


/* Payment page */
.payment-page { padding: 4rem 0 5rem; }
.payment-layout { max-width: 880px; margin: 0 auto; }
.payment-intro { text-align: center; margin-bottom: 2rem; }
.payment-intro h1 { margin: .35rem 0 .65rem; }
.payment-intro > p:last-child { color: var(--muted); }
.payment-methods { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .9rem; margin-bottom: 1.25rem; }
.payment-method-card { display:flex; align-items:center; gap: .9rem; padding: 1.1rem; border:1px solid rgba(74, 107, 87,.18); border-radius: 20px; background: rgba(255,255,255,.55); color: var(--ink); text-align:left; cursor:pointer; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease, background .2s ease; }
.payment-method-card:hover { transform: translateY(-2px); box-shadow:0 12px 24px rgba(56,73,61,.08); }
.payment-method-card.is-selected { border-color: var(--accent-green); background: rgba(219,232,220,.55); box-shadow:0 10px 22px rgba(56,73,61,.08); }
.payment-method-icon { font-size:1.5rem; width:2.25rem; text-align:center; }
.payment-method-card strong, .payment-method-card small { display:block; }
.payment-method-card small { margin-top:.2rem; color:var(--muted); line-height:1.4; }
.payment-panel { background: rgba(255,255,255,.62); border:1px solid rgba(74, 107, 87,.16); border-radius:28px; padding:1.5rem; box-shadow:0 16px 40px rgba(63,70,62,.08); }
.payment-panel.is-hidden { display:none; }
.payment-panel-header h2 { margin:.3rem 0 .55rem; }
.payment-panel-header p:last-child { color:var(--muted); }
.payment-account-card { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.8rem; margin:1.2rem 0; }
.payment-account-card > div { padding: .9rem 1rem; border-radius:16px; background: rgba(244,239,230,.7); }
.payment-account-card span { display:block; font-size:.78rem; text-transform:uppercase; letter-spacing:.08em; color:var(--muted); margin-bottom:.3rem; }
.payment-account-card strong { display:block; overflow-wrap:anywhere; }
.payment-input-label { display:block; font-weight:700; margin:1rem 0; }
.payment-input-label input { width:100%; margin-top:.45rem; padding:.9rem 1rem; border-radius:14px; border:1px solid rgba(74,107,87,.22); background:#fffdf8; color:var(--ink); font:inherit; }
.payment-input-label input:focus { outline:none; border-color:var(--accent-green); box-shadow:0 0 0 4px rgba(112,145,120,.12); }
.payment-note { margin: .8rem 0 1rem; color: var(--muted); line-height:1.5; }
.payment-note--highlight { padding:1rem; border-radius:16px; background:rgba(244,229,222,.55); }
.payment-message { min-height:1.4rem; margin-top:.75rem; color:var(--muted); }
@media (max-width:740px) {
  .payment-page { padding:2.5rem 0 3rem; }
  .payment-methods { grid-template-columns:1fr; }
  .payment-account-card { grid-template-columns:1fr; }
  .payment-panel { border-radius:22px; padding:1rem; }
}


/* COD-only checkout */
.checkout-payment-note {
  margin: .75rem 0 0;
  color: var(--muted);
  line-height: 1.5;
  font-size: .92rem;
}


/* Launch polish */
.btn, .category-card, .product-card, .cart-button, .nav-list a {
  -webkit-tap-highlight-color: transparent;
}

.btn:focus-visible,
.cart-button:focus-visible,
.mobile-toggle:focus-visible,
.nav-list a:focus-visible,
.category-card:focus-visible,
.add-to-cart:focus-visible {
  outline: 3px solid rgba(241, 174, 169, 0.8);
  outline-offset: 4px;
}

.category-card {
  transition: transform .28s ease, box-shadow .28s ease;
}

.category-card:hover {
  transform: translateY(-4px);
}

.cart-button {
  text-decoration: none;
}

@media (max-width: 740px) {
  .header-inner { padding: .8rem 0; }
  .brand-logo img { height: 36px; }
  .hero-actions { width: 100%; }
  .hero-actions .btn, .track-actions .btn { width: 100%; }
  .category-grid { gap: .9rem; }
}

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

.footer-contact-link { color: inherit; text-decoration: none; }
.footer-contact-link:hover { color: var(--accent-strong); text-decoration: underline; text-underline-offset: 3px; }
