:root {
  --maroon: #76545c;
  --maroon-deep: #5e4149;
  --maroon-soft: #92717a;
  --violet: #583875;
  --violet-deep: #3e2855;
  --gold: #b89459;
  --gold-light: #ead9b5;
  --ivory: #fbf8f2;
  --paper: #f3eee5;
  --ink: #332b28;
  --muted: #766b64;
  --serif: "Playfair Display", Georgia, serif;
  --sans: "DM Sans", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--ivory);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  z-index: 20;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.65rem 1rem;
  transform: translateY(-160%);
  color: var(--maroon);
  background: #fff;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-nav {
  min-height: 128px;
  color: var(--ivory);
  background: var(--violet);
  z-index: 1030;
}

.navbar-brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  color: var(--ivory);
  font-family: var(--serif);
  font-size: 1.18rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.brand-logo {
  display: block;
  width: auto;
  height: 112px;
  object-fit: contain;
}

.footer-brand-logo {
  display: block;
  width: auto;
  height: 96px;
  object-fit: contain;
}

.navbar-brand:hover,
.footer-brand:hover {
  color: var(--gold-light);
}

.brand-mark {
  display: grid;
  width: 35px;
  height: 35px;
  place-items: center;
  border: 1px solid rgba(230, 206, 159, 0.65);
  border-radius: 50%;
  color: var(--gold-light);
  font-size: 1rem;
}

.site-nav .nav-link {
  padding: 0.8rem 1rem;
  color: rgba(251, 248, 242, 0.78);
  font-size: 0.82rem;
  letter-spacing: 0.035em;
}

.site-nav .nav-link:hover,
.site-nav .nav-link:focus {
  color: var(--gold-light);
}

.nav-shop {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.72rem 1rem;
  color: var(--maroon-deep);
  background: var(--gold-light);
  font-size: 0.79rem;
  font-weight: 600;
  text-decoration: none;
}

.nav-shop:hover,
.nav-shop:focus {
  color: var(--maroon-deep);
  background: #f0ddb7;
}

.cart-link {
  position: relative;
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  margin: 0 0.4rem;
  color: var(--ivory);
  font-size: 1.15rem;
  text-decoration: none;
}

.cart-link:hover,
.cart-link:focus {
  color: var(--gold-light);
}

.cart-count {
  position: absolute;
  top: 2px;
  right: 0;
  display: grid;
  min-width: 17px;
  height: 17px;
  place-items: center;
  border: 1px solid var(--maroon);
  border-radius: 50%;
  color: var(--maroon-deep);
  background: var(--gold-light);
  font-size: 0.6rem;
  font-weight: 700;
}

.navbar-toggler {
  border-color: rgba(230, 206, 159, 0.5);
}

.navbar-toggler-icon {
  filter: invert(1);
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 680px;
  color: var(--ivory);
  background-color: var(--maroon-deep);
  background-image: url("/images/chettinad-house.jpg");
  background-position: center 48%;
  background-size: cover;
}

.hero::before,
.hero::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
}

.hero::before {
  background:
    linear-gradient(90deg, rgba(42, 30, 27, 0.88) 0%, rgba(52, 37, 31, 0.76) 42%, rgba(52, 37, 31, 0.2) 100%),
    linear-gradient(0deg, rgba(42, 30, 27, 0.34), transparent 42%);
}

.hero::after {
  inset: 18px;
  border: 1px solid rgba(234, 217, 181, 0.34);
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 680px;
  flex-direction: column;
  justify-content: center;
  padding-top: 5rem;
  padding-bottom: 2.5rem;
}

.hero-content > .row {
  width: 100%;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--gold);
  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-eyebrow {
  color: var(--gold-light);
}

.hero-eyebrow span {
  width: 22px;
  height: 1px;
  background: var(--gold);
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 500;
}

.hero h1 {
  margin: 1.25rem 0 0;
  font-size: clamp(3.9rem, 7vw, 6.1rem);
  line-height: 0.99;
  letter-spacing: -0.045em;
}

.hero h1 em,
.about-copy h2 em {
  color: var(--gold-light);
  font-weight: 500;
}

.hero-tagline {
  margin: 1.55rem 0 0;
  color: var(--gold-light);
  font-family: var(--serif);
  font-size: 1.28rem;
}

.hero-copy {
  max-width: 430px;
  margin: 0.8rem 0 1.75rem;
  color: rgba(251, 248, 242, 0.9);
  font-size: 0.91rem;
  line-height: 1.8;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  min-height: 50px;
  padding: 0.85rem 1.25rem;
  font-size: 0.81rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-gold {
  color: var(--maroon-deep);
  background: var(--gold-light);
}

.button-gold:hover {
  color: var(--maroon-deep);
  background: #f0ddb7;
}

.hero-bottom-note {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: 2rem;
  color: rgba(251, 248, 242, 0.58);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-bottom-note > span:first-child {
  color: var(--gold-light);
}

.note-line {
  width: 40px;
  height: 1px;
  background: var(--gold);
}

.section-space {
  padding: 6.25rem 0;
}

.section-heading {
  margin-bottom: 3rem;
}

.section-heading h2,
.online-orders h2 {
  margin: 0.7rem 0 0.6rem;
  color: var(--maroon);
  font-size: clamp(2.3rem, 4vw, 3.2rem);
  letter-spacing: -0.035em;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.collection-card {
  position: relative;
  display: flex;
  height: 100%;
  min-height: 260px;
  flex-direction: column;
  padding: 1.65rem 1.5rem;
  border: 1px solid #e8dfd2;
  background: rgba(255, 255, 255, 0.43);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.collection-card:hover,
.collection-card:focus-within {
  transform: translateY(-4px);
  border-color: var(--gold);
  box-shadow: 0 16px 30px rgba(118, 84, 92, 0.07);
}

.collection-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid #e4d4b8;
  border-radius: 50%;
  color: var(--maroon);
  font-size: 1.2rem;
}

.collection-number {
  position: absolute;
  top: 1.85rem;
  right: 1.5rem;
  color: #b7aaa0;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
}

.collection-card h3 {
  margin: 1.2rem 0 0.5rem;
  color: var(--maroon);
  font-size: 1.28rem;
}

.collection-card p {
  max-width: 225px;
  margin: 0;
  color: var(--muted);
  font-size: 0.79rem;
  line-height: 1.7;
}

.saree-card {
  display: flex;
  width: 100%;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #e8dfd2;
  background: var(--ivory);
}

.saree-image-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1.12;
  background: #e8dfd2;
}

.saree-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 250ms ease;
}

.saree-card:hover .saree-image {
  transform: scale(1.035);
}

.saree-badge {
  position: absolute;
  bottom: 0.8rem;
  left: 0.8rem;
  padding: 0.42rem 0.65rem;
  color: var(--maroon);
  background: rgba(251, 248, 242, 0.94);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.saree-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.25rem;
}

.saree-card h3 {
  margin: 0;
  color: var(--maroon);
  font-size: 1.27rem;
}

.saree-description {
  min-height: 2.8em;
  margin: 0.45rem 0 1.1rem;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.7;
}

.option-group {
  margin-bottom: 0.9rem;
}

.option-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.55rem;
  color: var(--ink);
  font-size: 0.69rem;
  font-weight: 600;
}

.option-label > span {
  color: var(--muted);
  font-weight: 400;
}

.color-options,
.style-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.color-swatch {
  width: 23px;
  height: 23px;
  padding: 0;
  border: 2px solid var(--ivory);
  border-radius: 50%;
  outline: 1px solid transparent;
  background: var(--swatch-color);
  cursor: pointer;
}

.color-swatch:hover,
.color-swatch:focus-visible,
.color-swatch.is-selected {
  outline-color: var(--maroon);
}

.style-option {
  padding: 0.32rem 0.55rem;
  border: 1px solid #e2d7c8;
  color: var(--muted);
  background: transparent;
  font-family: var(--sans);
  font-size: 0.62rem;
  cursor: pointer;
}

.style-option:hover,
.style-option:focus-visible,
.style-option.is-selected {
  border-color: var(--maroon);
  color: var(--maroon);
  background: #f5eee4;
}

.saree-inquiry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 0.85rem;
  border-top: 1px solid #e8dfd2;
  color: var(--maroon);
  font-size: 0.71rem;
  font-weight: 600;
  text-decoration: none;
}

.saree-inquiry:hover {
  color: var(--maroon-soft);
}

.card-link {
  position: absolute;
  right: 1.35rem;
  bottom: 1.3rem;
  color: var(--maroon);
  font-size: 1rem;
}

.about-section {
  background: var(--paper);
}

.about-art {
  display: grid;
  width: min(100%, 480px);
  min-height: 390px;
  place-items: center;
  padding: 1.25rem;
  border: 12px solid #e5d7c2;
  background: var(--violet);
}

.about-art-logo {
  display: block;
  width: min(100%, 400px);
  height: auto;
  filter: drop-shadow(0 3px 12px rgba(24, 13, 35, 0.3));
}

.about-copy {
  padding-left: 2rem;
}

.about-copy h2 {
  max-width: 500px;
  margin: 0.85rem 0 1.2rem;
  color: var(--maroon);
  font-size: clamp(2.2rem, 4vw, 3.15rem);
  line-height: 1.18;
  letter-spacing: -0.035em;
}

.about-copy h2 em {
  color: var(--gold);
}

.about-copy p {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.85;
}

.about-copy .about-lead {
  color: var(--ink);
  font-size: 0.98rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: 0.8rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--gold);
  color: var(--maroon);
  font-size: 0.81rem;
  font-weight: 600;
  text-decoration: none;
}

.text-link:hover {
  color: var(--maroon-soft);
}

.online-orders {
  background: var(--ivory);
}

.online-orders h2 {
  margin-bottom: 0.8rem;
}

.online-orders-copy {
  max-width: 380px;
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.8;
}

.button-maroon {
  color: var(--ivory);
  background: var(--maroon);
}

.button-maroon:hover {
  color: var(--ivory);
  background: var(--maroon-soft);
}

.online-order-benefits {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid #e5dbce;
  border-left: 1px solid #e5dbce;
}

.online-order-benefit {
  display: flex;
  gap: 1rem;
  min-height: 145px;
  padding: 1.4rem;
  border-right: 1px solid #e5dbce;
  border-bottom: 1px solid #e5dbce;
}

.online-order-icon {
  flex: 0 0 36px;
  color: var(--gold);
  font-size: 1.1rem;
}

.online-order-benefit h3 {
  margin: 0 0 0.55rem;
  color: var(--maroon);
  font-size: 1.07rem;
}

.online-order-benefit p {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.7;
}

.site-footer {
  padding: 3rem 0 1.25rem;
  color: rgba(251, 248, 242, 0.72);
  background: var(--violet-deep);
}

.footer-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 2rem;
}

.footer-main p {
  margin: 0;
  font-family: var(--serif);
  font-size: 0.9rem;
  font-style: italic;
}

.footer-brand {
  font-size: 1rem;
  text-decoration: none;
}

.footer-brand .brand-mark {
  width: 32px;
  height: 32px;
  font-size: 0.9rem;
}

.footer-top-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--gold-light);
  font-size: 0.73rem;
  text-decoration: none;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(251, 248, 242, 0.14);
  font-size: 0.64rem;
}

@media (max-width: 991.98px) {
  .site-nav .navbar-collapse {
    padding-bottom: 1rem;
  }

  .site-nav .navbar-nav {
    align-items: flex-start !important;
    padding-top: 0.7rem;
  }

  .cart-link {
    margin: 0.3rem 0.8rem;
  }

  .nav-shop {
    margin: 0.35rem 1rem 0;
  }

  .hero-content {
    padding-top: 4.5rem;
  }

  .about-copy {
    padding-left: 0.75rem;
  }
}

@media (max-width: 575.98px) {
  .site-nav {
    min-height: 108px;
  }

  .brand-logo {
    height: 88px;
  }

  .footer-brand-logo {
    height: 88px;
  }

  .hero-content {
    min-height: 620px;
    padding-top: 4rem;
    padding-bottom: 2.5rem;
  }

  .hero h1 {
    font-size: clamp(3.5rem, 16vw, 4.8rem);
  }

  .hero-content .button-gold {
    width: 100%;
  }

  .hero {
    min-height: 620px;
    background-position: 57% center;
  }

  .hero::before {
    background:
      linear-gradient(90deg, rgba(42, 30, 27, 0.84), rgba(52, 37, 31, 0.58)),
      linear-gradient(0deg, rgba(42, 30, 27, 0.4), transparent 55%);
  }

  .hero::after {
    inset: 10px;
  }

  .hero-bottom-note {
    margin-top: 2rem;
  }

  .section-space {
    padding: 4.5rem 0;
  }

  .section-heading {
    margin-bottom: 2rem;
  }

  .collection-card {
    min-height: 235px;
  }

  .about-art {
    min-height: 300px;
    border-width: 8px;
  }

  .about-art-logo {
    width: min(100%, 320px);
  }

  .online-order-benefits {
    grid-template-columns: 1fr;
  }

  .online-order-benefit {
    min-height: 120px;
  }

  .footer-main,
  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-main {
    gap: 1rem;
  }

  .footer-bottom {
    font-size: 0.62rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

.shop-page {
  min-height: 65vh;
}

.shop-page .section-heading h1,
.cart-page .section-heading h1,
.checkout-page .section-heading h1,
.product-detail-copy h1,
.order-confirmation h1 {
  margin: 0.7rem 0 0.6rem;
  color: var(--maroon);
  font-size: clamp(2.3rem, 4vw, 3.2rem);
  letter-spacing: -0.035em;
}

.collection-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin: -0.8rem 0 2.5rem;
}

.filter-button {
  padding: 0.6rem 0.9rem;
  border: 1px solid #e2d7c8;
  color: var(--muted);
  background: transparent;
  font-size: 0.75rem;
  text-decoration: none;
}

.filter-button:hover,
.filter-button.is-selected {
  border-color: var(--maroon);
  color: var(--ivory);
  background: var(--maroon);
}

.product-grid > [class*="col-"] {
  display: flex;
}

.product-card-image {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 0.9;
  background: #e8dfd2;
}

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

.product-card-image .product-photo-watermark,
.product-detail-image .product-photo-watermark {
  position: absolute;
  right: 0.6rem;
  bottom: 0.6rem;
  width: clamp(4.5rem, 11vw, 6.5rem);
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  opacity: 0.7;
  mix-blend-mode: screen;
  pointer-events: none;
}

.product-detail-image .product-photo-watermark {
  right: 1rem;
  bottom: 1rem;
  width: clamp(7rem, 18vw, 10rem);
}

.shop-product-card {
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.shop-product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(118, 84, 92, 0.08);
}

.shop-product-card h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.24rem;
}

.shop-product-card h2 a {
  color: var(--maroon);
  text-decoration: none;
}

.product-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: auto;
}

.product-price,
.product-detail-price {
  color: var(--maroon);
  font-size: 1.05rem;
  font-weight: 700;
}

.product-original-price {
  margin-left: 0.4rem;
  color: var(--muted);
  font-size: 0.82em;
  font-weight: 400;
}

.sale-price-label {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.15rem 0.4rem;
  border-radius: 999px;
  color: var(--maroon-deep);
  background: var(--gold-light);
  font-family: var(--sans);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  vertical-align: middle;
}

.product-card-bottom .text-link {
  margin: 0;
  font-size: 0.72rem;
}

.breadcrumb-line {
  display: flex;
  gap: 0.65rem;
  margin-bottom: 1.5rem;
  color: var(--muted);
  font-size: 0.75rem;
}

.breadcrumb-line a {
  color: var(--maroon);
}

.product-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

.product-detail-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 0.86;
  background: #e8dfd2;
}

.product-gallery-thumbnails {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.product-gallery-thumbnail {
  width: 5rem;
  height: 5rem;
  padding: 0.2rem;
  overflow: hidden;
  border: 1px solid #d8cfc2;
  background: #fff;
}

.product-gallery-thumbnail.is-selected {
  border-color: var(--maroon);
}

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

.product-detail-copy {
  padding-top: 1.5rem;
}

.product-detail-copy h1 {
  margin: 0.7rem 0 0.9rem;
  line-height: 1.15;
}

.product-detail-description {
  color: var(--muted);
  line-height: 1.8;
  white-space: pre-line;
}

.product-detail-price {
  margin: 1.3rem 0;
  font-size: 1.45rem;
}

.product-facts {
  margin: 0 0 1.6rem;
  border-top: 1px solid #e5dbce;
}

.product-facts div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid #e5dbce;
  font-size: 0.82rem;
}

.product-facts dt {
  color: var(--muted);
  font-weight: 500;
}

.product-facts dd {
  margin: 0;
  color: var(--ink);
  text-align: right;
}

.product-options > label,
.blouse-options legend,
.checkout-field label {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 600;
}

.product-options > input,
.checkout-field input,
.checkout-field select {
  width: 100%;
  min-height: 46px;
  padding: 0.65rem 0.75rem;
  border: 1px solid #d9cdbd;
  border-radius: 0;
  color: var(--ink);
  background: #fffdfa;
  font: inherit;
}

.product-options > input {
  max-width: 120px;
}

.blouse-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1rem;
  margin: 1.3rem 0;
  padding: 0;
  border: 0;
}

.blouse-options legend {
  width: 100%;
}

.blouse-choice {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
}

.blouse-choice input {
  accent-color: var(--maroon);
}

.add-to-cart-button {
  border: 0;
}

.form-status {
  min-height: 1.2em;
  margin: 0.65rem 0 0;
  color: #34664a;
  font-size: 0.78rem;
}

.cart-item {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 1.25rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid #e5dbce;
}

.cart-item:first-child {
  border-top: 1px solid #e5dbce;
}

.cart-item > img {
  width: 110px;
  height: 130px;
  object-fit: cover;
  background: #e8dfd2;
}

.cart-item-details h2 {
  margin: 0 0 0.45rem;
  color: var(--maroon);
  font-size: 1.2rem;
}

.cart-item-details p {
  margin: 0.25rem 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.cart-item-details .cart-line-total {
  margin-top: 0.6rem;
  color: var(--ink);
  font-weight: 700;
}

.remove-button {
  margin-top: 0.5rem;
  padding: 0;
  border: 0;
  color: var(--maroon);
  background: none;
  font-size: 0.73rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.cart-empty {
  padding: 1.5rem 0;
  color: var(--muted);
}

.cart-summary {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 2rem;
  padding-top: 1.5rem;
}

.cart-summary p,
.checkout-total {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--ink);
  font-size: 0.9rem;
}

.cart-summary strong,
.checkout-total strong {
  color: var(--maroon);
}

.checkout-page .section-heading p {
  color: var(--muted);
  font-size: 0.86rem;
}

.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 2rem;
  align-items: start;
}

.checkout-form-panel,
.checkout-summary {
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid #e5dbce;
  background: rgba(255, 255, 255, 0.48);
}

.checkout-form-panel h2,
.checkout-summary h2 {
  margin: 0 0 1.35rem;
  color: var(--maroon);
  font-size: 1.45rem;
}

.checkout-field {
  margin-bottom: 1rem;
}

.checkout-field input:focus,
.checkout-field select:focus,
.product-options input:focus {
  border-color: var(--gold);
  outline: 2px solid rgba(197, 156, 91, 0.22);
}

.field-error {
  display: block;
  margin-top: 0.35rem;
  color: #a32736;
  font-size: 0.72rem;
}

.checkout-line,
.confirmation-summary > p {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid #e5dbce;
  font-size: 0.76rem;
}

.checkout-line span,
.confirmation-summary > p span {
  color: var(--muted);
}

.checkout-line strong,
.confirmation-summary > p strong {
  color: var(--ink);
  white-space: nowrap;
}

.checkout-total {
  padding-top: 0.8rem;
  font-weight: 700;
}

.checkout-summary .button {
  width: 100%;
  border: 0;
}

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

.order-confirmation {
  max-width: 720px;
  margin: 0 auto;
}

.order-confirmation > p {
  color: var(--muted);
  line-height: 1.8;
}

.confirmation-summary {
  margin: 2rem 0;
  padding: 0.5rem 1.25rem;
  border: 1px solid #e5dbce;
  background: rgba(255, 255, 255, 0.48);
}

@media (max-width: 767.98px) {
  .product-detail,
  .checkout-layout {
    grid-template-columns: 1fr;
  }

  .product-detail-copy {
    padding-top: 0;
  }

  .cart-summary {
    align-items: stretch;
    flex-direction: column;
    gap: 0.75rem;
  }

  .cart-summary .button {
    align-self: flex-start;
  }
}

@media (max-width: 480px) {
  .cart-item {
    grid-template-columns: 80px minmax(0, 1fr);
    gap: 0.85rem;
  }

  .cart-item > img {
    width: 80px;
    height: 100px;
  }
}

.nav-account-name {
  display: inline-block;
  padding: 0.8rem 0.5rem;
  color: var(--gold-light);
  font-size: 0.78rem;
}

.nav-logout-form {
  display: inline-flex;
}

.nav-logout {
  border: 0;
  background: transparent;
}

.auth-page {
  min-height: 65vh;
}

.auth-panel {
  width: min(100%, 520px);
  margin: 0 auto;
  padding: clamp(1.5rem, 5vw, 3rem);
  border: 1px solid #e5dbce;
  background: rgba(255, 255, 255, 0.48);
}

.auth-panel h1 {
  margin: 0.7rem 0 1.5rem;
  color: var(--maroon);
  font-size: clamp(2.2rem, 4vw, 3rem);
}

.auth-panel .button {
  border: 0;
}

.auth-hint,
.auth-switch {
  display: block;
  margin-top: 0.45rem;
  color: var(--muted);
  font-size: 0.74rem;
}

.auth-switch {
  margin: 1.3rem 0 0;
}

.auth-switch a {
  color: var(--maroon);
  font-weight: 600;
}

.account-orders {
  display: grid;
  gap: 1rem;
}

.account-order {
  padding: clamp(1rem, 3vw, 1.5rem);
  border: 1px solid #e5dbce;
  background: rgba(255, 255, 255, 0.48);
}

.account-order-header,
.account-order-footer,
.account-order-items > p {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.account-order-header {
  padding-bottom: 0.8rem;
  border-bottom: 1px solid #e5dbce;
}

.account-order-header h2 {
  margin: 0;
  color: var(--maroon);
  font-size: 1.25rem;
}

.account-order-header p {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.72rem;
}

.order-status {
  padding: 0.35rem 0.6rem;
  color: var(--maroon);
  background: #f0e5d2;
  font-size: 0.68rem;
  font-weight: 700;
}

.account-order-items {
  padding: 0.6rem 0;
  border-bottom: 1px solid #e5dbce;
}

.account-order-items > p {
  margin: 0;
  padding: 0.45rem 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.account-order-items strong {
  color: var(--ink);
  white-space: nowrap;
}

.account-order-footer {
  align-items: center;
  padding-top: 0.85rem;
  color: var(--ink);
  font-size: 0.82rem;
}

.account-order-footer > span strong {
  margin-left: 0.4rem;
  color: var(--maroon);
}

.account-order-footer form {
  margin: 0;
}

@media (max-width: 991.98px) {
  .nav-account-name {
    padding-left: 0.8rem;
  }
}

@media (max-width: 480px) {
  .account-order-items > p {
    flex-direction: column;
    gap: 0.2rem;
  }
}

.shop-assistant {
  position: fixed;
  z-index: 1040;
  right: max(1.25rem, env(safe-area-inset-right));
  bottom: max(1.25rem, env(safe-area-inset-bottom));
  display: grid;
  justify-items: end;
  gap: 0.75rem;
  font-family: var(--sans);
}

.shop-assistant-toggle {
  display: inline-flex;
  min-height: 3.25rem;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 1.15rem;
  border: 0;
  border-radius: 2rem;
  color: var(--ivory);
  background: var(--violet);
  box-shadow: 0 0.4rem 1.5rem rgba(51, 43, 40, 0.2);
  font-size: 0.9rem;
  font-weight: 600;
}

.shop-assistant-toggle:hover,
.shop-assistant-toggle:focus-visible {
  background: var(--violet-deep);
}

.shop-assistant-toggle i {
  font-size: 1.2rem;
}

.shop-assistant-panel {
  display: flex;
  width: min(23rem, calc(100vw - 2rem));
  height: min(34rem, calc(100dvh - 7rem));
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #e5dbce;
  border-radius: 0.6rem;
  background: var(--ivory);
  box-shadow: 0 0.5rem 2rem rgba(51, 43, 40, 0.2);
}

.shop-assistant-panel[hidden] {
  display: none;
}

.shop-assistant-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.1rem;
  color: var(--ivory);
  background: var(--violet);
}

.shop-assistant-heading .eyebrow {
  color: var(--gold-light);
  font-size: 0.65rem;
}

.shop-assistant-heading h2 {
  margin: 0.2rem 0 0;
  font-family: var(--serif);
  font-size: 1.2rem;
}

.shop-assistant-close {
  width: 2rem;
  height: 2rem;
  border: 0;
  color: var(--ivory);
  background: transparent;
  font-size: 1.6rem;
  line-height: 1;
}

.shop-assistant-messages {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.75rem;
  overflow-y: auto;
  padding: 1rem;
}

.shop-assistant-message {
  max-width: 88%;
  margin: 0;
  padding: 0.7rem 0.85rem;
  border-radius: 0.65rem;
  font-size: 0.86rem;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.shop-assistant-message-bot {
  align-self: flex-start;
  background: var(--paper);
}

.shop-assistant-message-user {
  align-self: flex-end;
  color: #fff;
  background: var(--maroon);
}

.shop-assistant-form {
  display: flex;
  gap: 0.5rem;
  padding: 0.8rem;
  border-top: 1px solid #e5dbce;
}

.shop-assistant-form input {
  min-width: 0;
  flex: 1;
  padding: 0.65rem 0.75rem;
  border: 1px solid #d9cfc2;
  border-radius: 0.25rem;
  color: var(--ink);
  background: #fff;
  font: inherit;
}

.shop-assistant-form .button {
  min-width: 2.8rem;
  padding: 0.55rem;
}

.shop-assistant-form button:disabled {
  cursor: wait;
  opacity: 0.65;
}

@media (max-width: 480px) {
  .shop-assistant {
    right: max(0.75rem, env(safe-area-inset-right));
    bottom: max(0.75rem, env(safe-area-inset-bottom));
  }
}
