:root {
  --bg: #f7f3e8;
  --surface: #fffdf8;
  --surface-soft: #f3ecdc;
  --text: #1d1a16;
  --muted: #6d6458;
  --brand: #c76f46;
  --brand-dark: #a65a36;
  --accent: #d0a96f;
  --success: #2d8b57;
  --danger: #a93a2f;
  --border: #ddcfb9;
  --shadow: 0 16px 34px rgba(66, 45, 25, 0.1);
  --page-max-width: 1560px;
  --page-gutter: 14px;
}

body.dark {
  --bg: #18140f;
  --surface: #241d16;
  --surface-soft: #30261d;
  --text: #f6f1e9;
  --muted: #d1c3b0;
  --brand: #d4875f;
  --brand-dark: #ba6f48;
  --accent: #e1bd87;
  --success: #57b076;
  --danger: #dc7266;
  --border: #4b3f33;
  --shadow: 0 16px 34px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: radial-gradient(circle at 10% 0%, #fff9ee 0%, var(--bg) 45%, var(--bg) 100%);
  color: var(--text);
  font-family: "Manrope", sans-serif;
  line-height: 1.5;
}

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

a {
  color: inherit;
}

.offer-bar {
  background: var(--brand);
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
}

.offer-marquee {
  display: flex;
  justify-content: center;
  gap: 30px;
  padding: 9px 18px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  padding: 10px max(var(--page-gutter), calc((100vw - var(--page-max-width)) / 2));
  background: color-mix(in srgb, var(--bg) 94%, #fff 6%);
  border-bottom: 1px solid var(--brand);
  backdrop-filter: blur(10px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand img {
  width: 72px;
  height: 72px;
  object-fit: contain;
}

.brand strong {
  display: block;
  font-family: "Cormorant Garamond", serif;
  font-size: 30px;
  line-height: 1;
  color: var(--brand);
}

.brand span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.primary-nav {
  display: flex;
  gap: 20px;
}

.primary-nav a {
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
  font-weight: 700;
}

.primary-nav a:hover {
  color: var(--brand);
}

.header-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
}

.social-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  text-decoration: none;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
  transition: transform 0.2s ease;
}

.social-icon i {
  font-size: 18px;
}

.social-icon.instagram {
  color: #c3436a;
}

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

.icon-button {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}

.cart-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 13px;
  border: 1px solid var(--brand-dark);
  background: var(--brand);
  color: #fff;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
}

.cart-count {
  min-width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: #fff;
  color: var(--brand);
  font-size: 11px;
}

.priority-notice {
  padding: 14px max(var(--page-gutter), calc((100vw - var(--page-max-width)) / 2)) 8px;
}

.priority-notice-inner {
  border: 2px solid color-mix(in srgb, var(--brand) 65%, #6b3f2c 35%);
  background: linear-gradient(135deg, #fff9ef 0%, #f9ecd6 48%, #f5e4ca 100%);
  box-shadow: 0 12px 26px rgba(67, 43, 21, 0.12);
  padding: 16px 18px;
}

.priority-kicker {
  margin: 0 0 3px;
  color: #835133;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.priority-notice h2 {
  margin: 0 0 8px;
  font-family: "Cormorant Garamond", serif;
  color: #5f3724;
  font-size: clamp(27px, 3.2vw, 36px);
  line-height: 1;
}

.priority-notice ul {
  margin: 0;
  padding: 0 0 0 18px;
  display: grid;
  gap: 7px;
}

.priority-notice li {
  color: #2a1d15;
  font-size: 15px;
  line-height: 1.5;
  font-weight: 600;
}

.priority-notice li::marker {
  color: #2d8b57;
}

.priority-notice a {
  color: #1f6944;
  font-weight: 800;
  text-decoration-thickness: 2px;
  text-underline-offset: 2px;
}

main {
  padding: 14px max(var(--page-gutter), calc((100vw - var(--page-max-width)) / 2)) 30px;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 12px 0 22px;
}

.trust-strip div {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 2px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 800;
}

.trust-strip i {
  color: var(--brand);
}

.catalog {
  padding: 10px 0 34px;
}

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

.eyebrow {
  color: var(--brand);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 800;
}

.section-heading h2,
.drawer h2,
.checkout-card h2,
.product-modal h2 {
  margin: 3px 0 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(34px, 4vw, 42px);
  line-height: 1;
}

.section-heading > span {
  color: var(--muted);
  font-size: 13px;
}

.toolbar {
  display: grid;
  grid-template-columns: minmax(250px, 1fr) 190px 200px 190px auto;
  gap: 10px;
  margin-bottom: 12px;
}

.search-field {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.search-field i {
  color: var(--muted);
}

.search-field input {
  border: 0;
  padding: 12px 0;
  background: transparent;
  font-family: "Cormorant Garamond", serif;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.1;
}

.search-field input::placeholder {
  font-family: "Cormorant Garamond", serif;
  font-size: 22px;
  font-weight: 600;
}

.toolbar select {
  font-family: "Cormorant Garamond", serif;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.1;
}

.search-field input:focus {
  outline: none;
}

input,
select,
textarea {
  width: 100%;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  padding: 12px;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid color-mix(in srgb, var(--brand) 28%, transparent);
  outline-offset: 1px;
}

.wishlist-filter {
  width: auto;
  border: 1px solid var(--brand);
  background: var(--surface);
  color: var(--brand);
  font-family: "Cormorant Garamond", serif;
  font-size: 22px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  cursor: pointer;
}

.wishlist-filter.active {
  background: var(--brand);
  color: #fff;
}

.categories {
  display: flex;
  gap: 9px;
  overflow-x: auto;
  padding: 0 0 14px;
}

.categories button {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  min-height: 24px;
  padding: 6px 15px;
  text-transform: none;
  letter-spacing: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.1;
  cursor: pointer;
}

.categories button.active,
.categories button:hover {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
}

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

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

.product-card {
  position: relative;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 2px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 32px rgba(66, 45, 25, 0.16);
}

.image-wrap {
  position: relative;
  height: 228px;
  overflow: hidden;
  background: #f1ede5;
  border-bottom: 1px solid var(--border);
}

.image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.product-card:hover .image-wrap img {
  transform: scale(1.04);
}

.image-fallback {
  display: none;
  width: 100%;
  height: 100%;
  place-items: center;
  text-align: center;
  padding: 18px;
  color: var(--brand);
  font-family: "Cormorant Garamond", serif;
  font-size: 24px;
  background: linear-gradient(160deg, #fffaf2, #f6ecdb);
}

.brand-badge {
  position: absolute;
  left: 10px;
  top: 10px;
  padding: 6px 10px;
  background: var(--success);
  color: #fff;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}

.product-body {
  display: grid;
  gap: 7px;
  padding: 12px;
}

.product-body h3 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.1;
  min-height: 0;
}

.price-stack {
  display: grid;
  gap: 2px;
}

.price-compare {
  color: #4a4a4a;
  font-size: 20px;
  font-family: "Manrope", sans-serif;
  font-weight: 600;
  line-height: 1;
  text-decoration: line-through;
  text-decoration-thickness: 1.4px;
}

.price-line {
  display: flex;
  align-items: baseline;
  gap: 8px;
  line-height: 1;
}

.discount-percent {
  color: #d43b56;
  font-size: 15.36px;
  font-family: "Manrope", sans-serif;
  font-weight: 600;
}

.sale-price {
  color: #1a1a1a;
  font-size: 20px;
  font-family: "Manrope", sans-serif;
  font-weight: 600;
  line-height: 1;
}

.detail-button {
  width: 100%;
  border: 1px solid #1f7a3e;
  background: #2d8b57;
  color: #fff;
  min-height: 36px;
  padding: 0 8px;
  font-family: "Manrope", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
}

.detail-button:hover {
  background: #1f7a3e;
  color: #fff;
}

.size-select {
  width: 100%;
  min-height: 36px;
  padding: 7px 34px 7px 8px;
  border: 1px solid #d2d2d2;
  border-radius: 4px;
  background: #fff;
  color: #242424;
  font-family: "Manrope", sans-serif;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.1;
}

.size-select:focus {
  outline: 2px solid color-mix(in srgb, var(--brand) 30%, transparent);
  outline-offset: 1px;
}

.card-purchase-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.variant-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}

.variant-grid button {
  width: auto;
  min-height: 26px;
  padding: 3px 11px;
  border: 1px solid #bdb6aa;
  border-radius: 3px;
  background: #f3f1ea;
  color: #2b2b2b;
  cursor: pointer;
  font-family: "Manrope", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

.variant-grid button span,
.variant-grid button strong {
  display: block;
  font-size: 11px;
}

.variant-grid button strong {
  display: none;
}

.variant-grid button.active {
  border-color: #111;
  color: #fff;
  background: #111;
}

.quantity-row {
  display: grid;
  grid-template-columns: auto auto;
  gap: 8px;
  margin-top: 1px;
  align-items: center;
}

.quantity-control {
  display: grid;
  grid-template-columns: 25px 33px 25px;
  border: 1px solid #bdb6aa;
}

.quantity-control button {
  border: 0;
  min-height: 36px;
  background: #f9f7f1;
  color: #1f1f1f;
  font-family: "Manrope", sans-serif;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.quantity-control span {
  display: grid;
  place-items: center;
  min-height: 36px;
  border-left: 1px solid #bdb6aa;
  border-right: 1px solid #bdb6aa;
  font-family: "Manrope", sans-serif;
  font-weight: 700;
  font-size: 11px;
}

.add-to-cart-button {
  min-height: 24px;
  padding: 0 9px;
  border: 1px solid #111;
  background: #111;
  color: #fff;
  font-family: "Manrope", sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
}

.empty-state {
  margin-top: 8px;
  padding: 46px 20px;
  border: 1px dashed var(--border);
  background: var(--surface);
  text-align: center;
  color: var(--muted);
}

.empty-state i {
  font-size: 30px;
  color: var(--brand);
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 95px;
  z-index: 90;
  padding: 10px 14px;
  background: var(--brand);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.mobile-cart-bar {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 45;
  display: none;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--brand-dark);
  color: #fff;
}

.mobile-cart-bar span,
.mobile-cart-bar strong {
  display: block;
}

.mobile-cart-bar button {
  border: 0;
  background: #fff;
  color: var(--brand-dark);
  padding: 10px 12px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 800;
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(20, 14, 9, 0.5);
}

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 70;
  width: min(1080px, 95vw);
  height: 100%;
  padding: 20px;
  overflow-y: auto;
  background: var(--surface);
  transform: translateX(105%);
  transition: transform 0.25s ease;
}

.drawer.open {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 12px;
  margin-bottom: 16px;
}

.drawer-header button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface-soft);
  color: var(--text);
  cursor: pointer;
}

.drawer-body {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 22px;
}

.drawer-cart-column {
  display: grid;
  gap: 16px;
}

.summary-list {
  display: grid;
  gap: 10px;
}

.cart-item {
  display: grid;
  grid-template-columns: 76px 1fr auto;
  gap: 12px;
  align-items: start;
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 12px;
}

.cart-item img {
  width: 76px;
  height: 76px;
  object-fit: contain;
  background: #eee6d6;
  border-radius: 999px;
}

.cart-item-main {
  display: grid;
  gap: 6px;
}

.cart-product-name {
  font-size: 16.5px;
  line-height: 1.2;
  font-weight: 500;
}

.cart-price-row {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}

.cart-sale-price {
  margin: 0;
  color: #111;
  font-size: 20px;
  font-family: "Manrope", sans-serif;
  line-height: 1;
  font-weight: 600;
}

.cart-original-price {
  font-family: "Manrope", sans-serif;
  color: #8b8b8b;
  text-decoration: line-through;
  font-size: 20px;
  font-weight: 600;
  line-height: 1;
}

.cart-discount-pill {
  display: inline-grid;
  place-items: center;
  min-height: 32px;
  padding: 2px 10px;
  border-radius: 999px;
  background: #c91f4a;
  color: #fff;
  font-family: "Manrope", sans-serif;
  font-size: 20px;
  font-weight: 600;
  line-height: 1;
}

.cart-size-select {
  width: 132px;
  min-height: 34px;
  padding: 4px 28px 4px 8px;
  border: 1px solid #d4d4d4;
  border-radius: 5px;
  background: #fff;
  font-family: "Manrope", sans-serif;
  font-size: 11.7px;
  font-weight: 500;
}

.cart-item-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-self: end;
}

.cart-qty-control {
  display: grid;
  grid-template-columns: 40px 44px 40px;
  min-height: 40px;
  border-radius: 8px;
  background: #f4f6ff;
  border: 1px solid #e8ebff;
  overflow: hidden;
}

.cart-qty-control button {
  border: 0;
  background: transparent;
  color: #7b84d8;
  font-family: "Manrope", sans-serif;
  font-size: 20px;
  font-weight: 600;
  cursor: pointer;
}

.cart-qty-control span {
  display: grid;
  place-items: center;
  font-family: "Manrope", sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: #111;
}

.drawer-totals > div > span:last-child,
#mobileCartTotal {
  font-family: "Manrope", sans-serif;
  font-size: 20px;
  font-weight: 600;
  line-height: 1;
}

.cart-remove-btn {
  border: 0;
  background: transparent;
  color: #111;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
}

.empty-cart {
  padding: 22px 10px;
  border: 1px dashed var(--border);
  color: var(--muted);
  text-align: center;
}

.drawer-totals,
.drawer-coupon,
.checkout-card {
  border: 1px solid var(--border);
  background: var(--surface-soft);
}

.drawer-totals {
  padding: 14px;
}

.drawer-totals > div,
.totals > div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
}

.discount-line {
  color: var(--success);
}

.total-line {
  color: var(--brand);
  font-size: 22px;
  font-family: "Cormorant Garamond", serif;
  font-weight: 700;
}

.drawer-coupon {
  padding: 14px;
}

.coupon-control {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-top: 10px;
}

.coupon-control button {
  border: 1px solid var(--brand);
  background: var(--surface);
  color: var(--brand);
  padding: 0 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  cursor: pointer;
}

.coupon-message {
  margin: 8px 0 0;
  font-size: 12px;
  font-weight: 700;
}

.coupon-message.success {
  color: var(--success);
}

.coupon-message.error {
  color: var(--danger);
}

.drawer-checkout-form .checkout-card {
  padding: 18px;
}

.checkout-card h2 {
  margin-bottom: 14px;
}

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

.form-grid label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
}

#shippingAddressGroup[hidden] {
  display: none !important;
}

.full-width {
  grid-column: 1 / -1;
}

.terms {
  display: flex;
  gap: 9px;
  align-items: start;
  margin: 14px 0;
}

.terms input {
  width: auto;
  margin-top: 2px;
}

.submit-order {
  width: 100%;
  position: relative;
  display: grid;
  place-items: center;
  border: 1px solid var(--brand-dark);
  background: var(--brand);
  color: #fff;
  min-height: 48px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 800;
  cursor: pointer;
}

.button-spinner {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.45);
  border-top-color: #fff;
  animation: spin 0.85s linear infinite;
}

.status {
  margin-top: 12px;
  padding: 12px;
  font-size: 13px;
}

.status.success {
  background: #eaf8f1;
  color: #19623e;
  border: 1px solid #9ed2b3;
}

.status.error {
  background: #ffece9;
  color: #8f2e23;
  border: 1px solid #efbbb4;
}

.product-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 85;
  background: rgba(18, 14, 10, 0.55);
}

.product-modal {
  position: fixed;
  z-index: 90;
  top: 38px;
  left: 0;
  right: 0;
  bottom: 24px;
  max-width: 980px;
  margin: 0 auto;
  padding: 20px;
  border: 1px solid var(--border);
  background: var(--surface);
  transform: translateY(20px);
  opacity: 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
  overflow-y: auto;
}

.product-modal.open {
  transform: translateY(0);
  opacity: 1;
}

.product-modal-close {
  position: absolute;
  right: 14px;
  top: 14px;
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface-soft);
  color: var(--text);
  font-size: 22px;
  cursor: pointer;
}

.product-modal-content {
  display: grid;
}

.product-modal-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 20px;
}

.modal-gallery {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #f6efe1;
}

.modal-main-image {
  display: block;
  width: 100%;
  aspect-ratio: 1.2 / 1;
  object-fit: contain;
  cursor: zoom-in;
  transform-origin: 50% 50%;
  transition: transform 0.18s ease;
  user-select: none;
}

.modal-main-image.zoomed {
  transform: scale(2.1);
  cursor: zoom-out;
}

.modal-details {
  display: grid;
  gap: 10px;
}

.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.product-meta span {
  padding: 6px 10px;
  border: 1px solid var(--border);
  background: var(--surface-soft);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.modal-details p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.modal-price-stack {
  display: grid;
  gap: 2px;
}

.modal-price-compare {
  color: #6f6f6f;
  font-size: 14px;
  text-decoration: line-through;
  line-height: 1;
}

.modal-price-line {
  display: flex;
  align-items: baseline;
  gap: 8px;
  line-height: 1;
}

.modal-discount-percent {
  color: #d43b56;
  font-size: 13px;
  font-weight: 700;
}

.modal-sale-price {
  color: #111;
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
}

.product-extra-info {
  display: grid;
  gap: 4px;
  margin-top: 2px;
}

.product-extra-info p {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--text);
}

.product-extra-info strong {
  color: var(--brand-dark);
}

.modal-variant-grid {
  display: grid;
  gap: 8px;
}

.modal-variant-grid button {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}

.modal-variant-info {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.modal-variant-price {
  font-weight: 700;
  color: #111;
}

.modal-variant-compare {
  color: #7a7a7a;
  text-decoration: line-through;
  font-size: 12px;
}

.modal-variant-discount {
  color: #d43b56;
  font-size: 11px;
  font-weight: 700;
}

.modal-variant-grid button.active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.modal-variant-grid button.active .modal-variant-price,
.modal-variant-grid button.active .modal-variant-compare,
.modal-variant-grid button.active .modal-variant-discount {
  color: #fff;
}

.product-modal .quantity-control {
  grid-template-columns: 24px 30px 24px;
}

.product-modal .quantity-control button,
.product-modal .quantity-control span {
  min-height: 26px;
  font-size: 11px;
}

.modal-add {
  width: 100%;
  border: 1px solid var(--brand-dark);
  background: var(--brand);
  color: #fff;
  min-height: 46px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 800;
  cursor: pointer;
}

footer {
  padding: 30px max(var(--page-gutter), calc((100vw - var(--page-max-width)) / 2));
  border-top: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 84%, #f3ecdd 16%);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 26px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-brand img {
  width: 72px;
  height: 72px;
  object-fit: contain;
}

.footer-brand strong {
  display: block;
  font-family: "Cormorant Garamond", serif;
  color: var(--brand);
  font-size: 28px;
  line-height: 1;
}

.footer-brand span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

footer h3 {
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
}

footer a,
footer p {
  margin: 6px 0;
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
}

.footer-care-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 18px;
  margin-top: 6px;
}

.footer-care-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  min-width: 0;
}

.footer-care-link span:last-child {
  white-space: nowrap;
}

.footer-care-link .social-icon {
  flex: 0 0 auto;
}

footer a:hover {
  color: var(--brand);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  color: var(--muted);
}

.footer-bottom button {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  padding: 7px 10px;
  cursor: pointer;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

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

  .drawer-body,
  .product-modal-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .header {
    grid-template-columns: 1fr auto;
    gap: 12px;
  }

  .primary-nav {
    display: none;
  }

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

  .trust-strip {
    grid-template-columns: 1fr;
  }

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

  .variant-grid {
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 5px;
    padding-bottom: 2px;
  }

  .variant-grid button {
    flex: 0 0 auto;
    min-height: 22px;
    padding: 2px 8px;
    font-size: 11px;
  }

  .variant-grid button span {
    font-size: 11px;
    white-space: nowrap;
  }

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

@media (max-width: 640px) {
  body {
    padding-bottom: 82px;
  }

  .offer-marquee {
    justify-content: flex-start;
    overflow-x: auto;
    white-space: nowrap;
  }

  .header {
    padding: 8px 10px;
  }

  .priority-notice {
    padding: 10px 10px 6px;
  }

  .priority-notice-inner {
    padding: 12px;
  }

  .priority-notice h2 {
    font-size: 27px;
  }

  .priority-notice li {
    font-size: 14px;
    line-height: 1.45;
  }

  .brand img {
    width: 56px;
    height: 56px;
  }

  .brand strong {
    font-size: 24px;
  }

  .brand span,
  .cart-label,
  .icon-button {
    display: none;
  }

  main {
    padding: 10px 10px 26px;
  }

  .section-heading h2,
  .drawer h2,
  .checkout-card h2,
  .product-modal h2 {
    font-size: 32px;
  }

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

  .image-wrap {
    height: 225px;
  }

  .product-body h3 {
    font-size: 18px;
  }

  .price-compare {
    font-size: 20px;
  }

  .discount-percent {
    font-size: 12.8px;
  }

  .sale-price {
    font-size: 20px;
  }

  .size-select {
    min-height: 36px;
    font-size: 13px;
    padding: 6px 24px 6px 6px;
  }

  .detail-button,
  .quantity-control button,
  .quantity-control span {
    min-height: 36px;
  }

  .card-purchase-row {
    grid-template-columns: minmax(0, 1fr) 62px;
    gap: 6px;
  }

  .card-purchase-row .quantity-control {
    grid-template-columns: 18px 24px 18px;
  }

  .card-purchase-row .quantity-control button,
  .card-purchase-row .quantity-control span {
    min-height: 34px;
    font-size: 10px;
  }

  .product-description {
    max-height: 38px;
    min-height: 38px;
  }

  .mobile-cart-bar {
    display: flex;
  }

  .drawer {
    width: 100vw;
    padding: 14px;
  }

  .cart-item {
    grid-template-columns: 64px 1fr;
    gap: 10px;
  }

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

  .cart-item-actions {
    justify-self: start;
    grid-column: 2;
  }

  .cart-product-name {
    font-size: 11.25px;
  }

  .cart-sale-price {
    font-size: 20px;
  }

  .cart-original-price {
    font-size: 20px;
  }

  .cart-size-select {
    font-size: 11.7px;
  }

  .cart-discount-pill {
    min-height: 32px;
    font-size: 20px;
    padding: 2px 8px;
  }

  .cart-qty-control {
    grid-template-columns: 32px 38px 32px;
    min-height: 34px;
  }

  .cart-qty-control button {
    font-size: 20px;
  }

  .cart-qty-control span {
    font-size: 20px;
  }

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

  .full-width {
    grid-column: auto;
  }

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

  .footer-care-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px 14px;
  }

  .footer-bottom {
    flex-direction: column;
  }
}
