:root {
  color-scheme: light;
  --ink: #071e38;
  --paper: #eef9ff;
  --sand: #dff3ff;
  --cream: #ffffff;
  --copper: #a50d35;
  --maroon: #a50d35;
  --ember: #7c0828;
  --teal: #0b5f82;
  --indigo: #08233f;
  --gold: #9a0b31;
  --muted: #4d6680;
  --line: rgba(9, 48, 82, 0.14);
  --shadow: 0 22px 70px rgba(8, 42, 72, 0.14);
}

/* Order review flow, seller replies, and clearer order metadata. */
.sidebar-badge[hidden],
.header-cart-quick > b[hidden],
.landing-cart-link > b[hidden],
.cart-link > b[hidden] {
  display: none !important;
}

/* Buyer logout confirmation. */
.logout-confirm[hidden] {
  display: none !important;
}

.logout-confirm {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: grid;
  place-items: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 180ms ease;
}

.logout-confirm.is-open { opacity: 1; }

.logout-confirm__backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: rgba(4, 22, 36, 0.72);
  backdrop-filter: blur(7px);
  cursor: default;
}

.logout-confirm__dialog {
  position: relative;
  width: min(460px, 100%);
  overflow: hidden;
  border: 1px solid rgba(7, 30, 56, 0.16);
  border-radius: 8px;
  background: #fff;
  color: #173950;
  box-shadow: 0 30px 90px rgba(3, 24, 39, 0.42);
  transform: translateY(14px) scale(0.98);
  transition: transform 180ms ease;
}

.logout-confirm.is-open .logout-confirm__dialog { transform: translateY(0) scale(1); }

.logout-confirm__accent {
  display: grid;
  grid-template-columns: 2fr 1fr;
  height: 7px;
}

.logout-confirm__accent span:first-child { background: #a50035; }
.logout-confirm__accent span:last-child { background: #0b6477; }

.logout-confirm__close {
  position: absolute;
  top: 19px;
  right: 18px;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(7, 30, 56, 0.14);
  border-radius: 7px;
  background: #fff;
  color: #071e38;
  font-size: 1.45rem;
  font-weight: 900;
  cursor: pointer;
}

.logout-confirm__close:hover,
.logout-confirm__close:focus-visible {
  border-color: #a50035;
  color: #a50035;
}

.logout-confirm__content {
  padding: 34px 34px 22px;
  text-align: center;
}

.logout-confirm__icon {
  position: relative;
  display: grid;
  width: 76px;
  height: 76px;
  margin: 0 auto 18px;
  place-items: center;
  border: 2px solid rgba(11, 100, 119, 0.3);
  border-radius: 8px;
  background: #edf8f8;
}

.logout-confirm__icon span {
  position: relative;
  display: block;
  width: 34px;
  height: 36px;
  border: 3px solid #a50035;
  border-radius: 4px;
}

.logout-confirm__icon span::before {
  content: "";
  position: absolute;
  top: -13px;
  left: 7px;
  width: 14px;
  height: 14px;
  border: 3px solid #a50035;
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
}

.logout-confirm__icon span::after {
  content: "";
  position: absolute;
  right: 5px;
  bottom: 6px;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: #0b6477;
}

.logout-confirm__content .eyebrow {
  margin: 0 0 7px;
  color: #a50035;
}

.logout-confirm__content h2 {
  margin: 0;
  color: #071e38;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.75rem, 7vw, 2.3rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.logout-confirm__content > p:not(.eyebrow) {
  margin: 14px 0 7px;
  color: #173950;
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1.5;
}

.logout-confirm__content small {
  display: block;
  color: #587181;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.5;
}

.logout-confirm__actions {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 10px;
  border-top: 1px solid rgba(7, 30, 56, 0.1);
  background: #f6fafb;
  padding: 16px 20px 20px;
}

.logout-confirm__actions .primary-button,
.logout-confirm__exit {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  padding: 11px 16px;
  font-weight: 900;
  text-align: center;
  text-decoration: none;
}

.logout-confirm__exit {
  border: 1px solid rgba(165, 0, 53, 0.25);
  background: #fff;
  color: #8e0a31;
}

.logout-confirm__exit:hover,
.logout-confirm__exit:focus-visible {
  border-color: #a50035;
  background: #fff2f6;
}

body.is-logout-confirm-open { overflow: hidden; }

.order-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 14px;
}

.order-detail-meta > span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  border: 1px solid rgba(7, 30, 56, 0.14);
  border-radius: 7px;
  background: #fff;
  padding: 10px 14px;
  color: #173950;
  font-size: 1rem;
  line-height: 1.35;
  font-weight: 800;
}

.order-detail-meta b {
  color: #a50035;
}

.review-seller-reply {
  display: grid;
  gap: 6px;
  border-left: 4px solid #0f6a68;
  border-radius: 0 7px 7px 0;
  background: #edf8f6;
  padding: 12px 14px;
}

.review-seller-reply strong,
.review-seller-reply p,
.review-seller-reply small {
  margin: 0;
}

.review-seller-reply strong { color: #07564f; }
.review-seller-reply p { color: #173950; line-height: 1.55; }
.review-seller-reply small { color: #587181; font-weight: 700; }

.review-seller-reply-form {
  display: grid;
  gap: 10px;
  border-top: 1px solid rgba(7, 30, 56, 0.12);
  padding-top: 14px;
}

.review-seller-reply-form label,
.review-seller-reply-form label > span { display: grid; gap: 6px; }
.review-seller-reply-form label > span { color: #173950; font-size: 0.84rem; font-weight: 900; }
.review-seller-reply-form textarea { width: 100%; resize: vertical; }
.review-seller-reply-form .primary-button { justify-self: start; }

.review-prompt-modal {
  width: min(620px, calc(100vw - 28px));
  max-height: min(760px, calc(100dvh - 32px));
  overflow: auto;
  border: 1px solid rgba(7, 30, 56, 0.16);
  border-radius: 8px;
  background: #fff;
  padding: 24px;
  color: #173950;
  box-shadow: 0 28px 80px rgba(7, 30, 56, 0.32);
}

.review-prompt-modal::backdrop { background: rgba(5, 19, 31, 0.64); }
.review-prompt-modal h2 { margin: 4px 42px 6px 0; color: #071e38; font-family: Georgia, "Times New Roman", serif; font-size: 1.8rem; letter-spacing: 0; }
.review-prompt-modal > p { margin: 0 0 16px; line-height: 1.55; }
.review-prompt-modal__close { position: absolute; top: 14px; right: 14px; display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid rgba(7, 30, 56, 0.15); border-radius: 7px; background: #fff; color: #071e38; font-size: 1.45rem; font-weight: 900; cursor: pointer; }
.review-prompt-products { display: grid; gap: 9px; }
.review-prompt-products > a { display: grid; grid-template-columns: 64px minmax(0, 1fr); align-items: center; gap: 12px; border: 1px solid rgba(7, 30, 56, 0.14); border-radius: 7px; background: #f8fbfc; padding: 9px; color: #071e38; text-decoration: none; }
.review-prompt-products > a:hover { border-color: #a50035; background: #fff3f7; }
.review-prompt-products img { width: 64px; height: 64px; border-radius: 6px; object-fit: cover; }
.review-prompt-products span { display: grid; gap: 4px; min-width: 0; }
.review-prompt-products strong { overflow-wrap: anywhere; }
.review-prompt-products small { color: #5b7181; font-weight: 800; }

.chat-review-product-card {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.chat-review-product-card:hover,
.chat-review-product-card:focus-visible {
  border-color: #a50035;
  box-shadow: 0 0 0 2px rgba(165, 0, 53, 0.12);
}

.chat-product-card > div { min-width: 0; }
.chat-product-card strong,
.chat-product-card small { overflow-wrap: anywhere; }
.chat-review-link-hint { display: inline-flex; width: fit-content; margin-top: 5px; border-radius: 5px; background: #a50035; padding: 5px 8px; color: #fff; font-size: 0.76rem; font-style: normal; font-weight: 900; }

.size-option { align-content: start; gap: 4px !important; padding-block: 10px !important; }
.size-option img { cursor: zoom-in; }
.size-option strong,
.size-option span,
.size-option small { margin: 0 !important; line-height: 1.3 !important; }

html[data-theme="dark"] .order-detail-meta > span,
html[data-theme="dark"] .review-prompt-modal,
html[data-theme="dark"] .review-prompt-modal__close {
  border-color: rgba(126, 216, 255, 0.22);
  background: #0b2030;
  color: #f5fbff;
}

html[data-theme="dark"] .review-prompt-modal h2,
html[data-theme="dark"] .review-seller-reply-form label > span { color: #f5fbff; }
html[data-theme="dark"] .review-prompt-products > a { border-color: rgba(126, 216, 255, 0.2); background: #102638; color: #f5fbff; }
html[data-theme="dark"] .review-seller-reply { background: #10332f; }
html[data-theme="dark"] .review-seller-reply strong { color: #8ce8dc; }
html[data-theme="dark"] .review-seller-reply p { color: #f5fbff; }

html[data-theme="dark"] .logout-confirm__dialog,
html[data-theme="dark"] .logout-confirm__close {
  border-color: rgba(126, 216, 255, 0.22);
  background: #0b2030;
  color: #f5fbff;
}

html[data-theme="dark"] .logout-confirm__content h2,
html[data-theme="dark"] .logout-confirm__content > p:not(.eyebrow) { color: #f5fbff; }
html[data-theme="dark"] .logout-confirm__content small { color: #b8ced8; }
html[data-theme="dark"] .logout-confirm__icon { border-color: rgba(126, 216, 255, 0.25); background: #10333b; }
html[data-theme="dark"] .logout-confirm__actions { border-color: rgba(126, 216, 255, 0.16); background: #0e293a; }
html[data-theme="dark"] .logout-confirm__exit { border-color: rgba(255, 130, 165, 0.35); background: #102638; color: #ffafc7; }

@media (max-width: 640px) {
  .order-detail-meta { display: grid; grid-template-columns: 1fr; }
  .order-detail-meta > span { justify-content: space-between; }
  .review-prompt-modal { padding: 20px 14px 16px; }
  .review-seller-reply-form .primary-button { width: 100%; }
  .logout-confirm { padding: 14px; }
  .logout-confirm__content { padding: 30px 20px 20px; }
  .logout-confirm__actions { grid-template-columns: 1fr; padding: 14px; }
  .logout-confirm__actions .primary-button { order: 1; width: 100%; }
  .logout-confirm__exit { order: 2; }
}

/* 2026-09-13 polish: readable icons, compact actions, cart/order cards. */
.landing-nav a,
.main-nav a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.nav-menu-icon {
  position: relative;
  display: inline-block;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  color: currentColor;
}

.landing-home-icon.nav-menu-icon {
  background: transparent;
}

.nav-menu-icon::before,
.nav-menu-icon::after {
  content: "";
  position: absolute;
  box-sizing: border-box;
}

.nav-icon-home::before {
  left: 4px;
  top: 9px;
  width: 14px;
  height: 10px;
  border: 2px solid currentColor;
  border-top: 0;
  border-radius: 2px;
}

.nav-icon-home::after {
  left: 5px;
  top: 3px;
  width: 12px;
  height: 12px;
  border-left: 2px solid currentColor;
  border-top: 2px solid currentColor;
  transform: rotate(45deg);
}

.nav-icon-catalog::before,
.nav-icon-guide::before {
  inset: 3px 5px;
  border: 2px solid currentColor;
  border-radius: 3px;
}

.nav-icon-catalog::after {
  left: 8px;
  right: 8px;
  top: 7px;
  height: 8px;
  border-top: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
}

.nav-icon-category::before {
  left: 4px;
  top: 4px;
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: currentColor;
  box-shadow: 9px 0 0 currentColor, 0 9px 0 currentColor, 9px 9px 0 currentColor;
}

.nav-icon-gallery::before {
  inset: 4px 3px;
  border: 2px solid currentColor;
  border-radius: 4px;
}

.nav-icon-gallery::after {
  right: 6px;
  top: 7px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.nav-icon-news::before {
  inset: 3px 5px;
  border: 2px solid currentColor;
  border-radius: 3px;
}

.nav-icon-news::after {
  left: 8px;
  top: 8px;
  width: 7px;
  height: 2px;
  background: currentColor;
  box-shadow: 0 5px 0 currentColor;
}

.nav-icon-guide::after {
  left: 10px;
  top: 4px;
  width: 2px;
  height: 14px;
  background: currentColor;
}

.nav-icon-contact::before {
  left: 4px;
  top: 6px;
  width: 14px;
  height: 10px;
  border: 2px solid currentColor;
  border-radius: 3px;
}

.nav-icon-contact::after {
  left: 5px;
  top: 6px;
  width: 12px;
  height: 8px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
  transform-origin: center;
}

html[data-theme="light"] .catalog-search label:not(.sr-only),
html[data-theme="light"] .admin-product-search label,
html[data-theme="light"] .order-search label {
  color: #071e38 !important;
  text-shadow: none !important;
}

html[data-theme="light"] input,
html[data-theme="light"] textarea,
html[data-theme="light"] select,
html[data-theme="light"] .catalog-search input,
html[data-theme="light"] .landing-search input {
  color: #071e38 !important;
}

html[data-theme="light"] input::placeholder,
html[data-theme="light"] textarea::placeholder,
html[data-theme="light"] .catalog-search input::placeholder,
html[data-theme="light"] .landing-search input::placeholder {
  color: #6a7c8f !important;
  opacity: 1 !important;
}

.detail-media > span,
.product-image > span {
  background: rgba(255, 250, 240, 0.94) !important;
  color: #071e38 !important;
  text-shadow: none !important;
}

html[data-theme="dark"] .detail-media > span,
html[data-theme="dark"] .product-image > span {
  background: rgba(255, 250, 240, 0.96) !important;
  color: #071e38 !important;
}

.product-actions:not(.product-actions-food),
body.has-landing-header .product-actions:not(.product-actions-food) {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 7px !important;
  width: 100% !important;
}

.product-actions:not(.product-actions-food) > form,
body.has-landing-header .product-actions:not(.product-actions-food) > form {
  display: contents !important;
  width: auto !important;
}

.product-actions .cart-icon-button,
.product-actions .chat-icon-button,
body.has-landing-header .product-actions .cart-icon-button,
body.has-landing-header .product-actions .chat-icon-button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 5px !important;
  width: 100% !important;
  min-width: 0 !important;
  height: 40px !important;
  min-height: 40px !important;
  padding: 0 8px !important;
  border-radius: 10px !important;
  overflow: hidden !important;
}

.product-actions .cart-icon-button b,
.product-actions .chat-icon-button b,
.detail-cart-button b,
.detail-chat-button b {
  display: inline !important;
  min-width: 0;
  color: inherit;
  font-size: 0.75rem;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.product-actions .chat-icon-button span,
.detail-chat-button span {
  flex: 0 0 auto;
  width: 17px !important;
  height: 15px !important;
  border: 2px solid currentColor !important;
  border-radius: 6px !important;
  background: transparent !important;
}

.product-actions .chat-icon-button span::after,
.detail-chat-button span::after {
  display: none !important;
}

.product-actions .buy-now-button,
body.has-landing-header .product-actions .buy-now-button {
  grid-column: 1 / -1;
  width: 100% !important;
  min-width: 0 !important;
  height: 40px !important;
  min-height: 40px !important;
}

.product-actions-food .food-chat-button {
  grid-column: 1 / -1;
}

.detail-cart-button,
.detail-chat-button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  width: 100% !important;
  min-width: 0 !important;
}

.buy-box > div {
  grid-template-columns: 94px minmax(98px, 1fr) minmax(92px, 1fr) minmax(128px, 1.2fr) !important;
}

.size-modal-options {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

.size-modal-options .size-modal-label {
  grid-column: 1 / -1;
}

.size-option {
  grid-template-columns: minmax(0, 1fr) !important;
  justify-items: center;
  min-height: 70px;
  text-align: center;
}

.size-option strong,
.size-option span,
.size-option small {
  text-align: center;
}

.order-product-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.order-product-card {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) minmax(120px, auto);
  align-items: center;
  gap: 14px;
  border: 1px solid rgba(9, 48, 82, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.86);
  padding: 12px;
  box-shadow: 0 12px 30px rgba(9, 48, 82, 0.08);
}

.order-product-card img,
.order-table-product img {
  width: 96px;
  height: 96px;
  border-radius: 12px;
  object-fit: cover;
  background: #edf8fc;
}

.order-product-info strong,
.order-product-info span,
.order-product-price span,
.order-product-price strong {
  display: block;
}

.order-product-info strong {
  color: var(--ink);
  font-size: 1rem;
}

.order-product-info span,
.order-product-price span {
  color: var(--muted);
  font-weight: 800;
}

.order-product-price {
  text-align: right;
}

.order-product-price strong {
  color: var(--maroon);
  font-size: 1.05rem;
}

.order-table-product {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-width: 220px;
}

.order-table-product img {
  width: 64px;
  height: 64px;
  border-radius: 9px;
}

.order-table-product strong,
.order-table-product small {
  display: block;
}

.cart-item {
  grid-template-columns: 38px 96px minmax(0, 1fr) 86px 118px 184px !important;
  grid-template-areas: "select image info qty subtotal actions" !important;
}

.cart-item > .cart-item-info {
  grid-area: info !important;
  min-width: 0;
}

.cart-item > .cart-item-actions {
  grid-area: actions !important;
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
  min-width: 0;
}

.cart-item > .cart-item-actions .table-action {
  width: 100%;
  min-width: 0;
  text-align: center;
}

.cart-view-product {
  border-color: rgba(9, 48, 82, 0.16) !important;
  background: rgba(255, 255, 255, 0.88) !important;
  color: #071e38 !important;
}

html[data-theme="dark"] .order-product-card,
html[data-theme="dark"] .cart-view-product {
  border-color: rgba(126, 216, 255, 0.18) !important;
  background: rgba(8, 23, 43, 0.74) !important;
  color: #f5fbff !important;
}

html[data-theme="dark"] .order-product-info strong,
html[data-theme="dark"] .order-product-price strong {
  color: #f5fbff;
}

html[data-theme="dark"] .order-product-info span,
html[data-theme="dark"] .order-product-price span {
  color: #b8d2e8;
}

.order-detail .section-heading.compact h1 {
  font-size: clamp(2rem, 5vw, 4.2rem);
  line-height: 0.98;
  overflow-wrap: anywhere;
}

.detail-copy h1,
body.has-landing-header .detail-copy h1 {
  font-size: clamp(2rem, 5vw, 4.6rem) !important;
  line-height: 0.98 !important;
}

.detail-copy {
  gap: 12px !important;
}

@media (max-width: 900px) {
  .buy-box > div {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .buy-box > div input,
  .buy-box > div .buy-now-button {
    grid-column: 1 / -1;
  }

  .cart-item {
    grid-template-columns: 34px 78px minmax(0, 1fr) !important;
    grid-template-areas:
      "select image info"
      "qty qty qty"
      "subtotal actions actions" !important;
  }

  .cart-item > input[type="number"] {
    width: 100% !important;
  }

  .cart-item > .cart-item-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Product detail: keep the gallery and actions together, with compact product information beside it. */
.detail-layout,
body.has-landing-header .detail-layout {
  display: grid !important;
  width: 100% !important;
  max-width: 1480px !important;
  min-width: 0 !important;
  margin: 0 auto !important;
  grid-template-columns: minmax(0, 0.96fr) minmax(0, 1.04fr) !important;
  grid-template-areas:
    "media copy"
    "actions copy" !important;
  gap: 16px !important;
  align-items: start !important;
  box-sizing: border-box !important;
  overflow: visible !important;
  border: 1px solid rgba(9, 48, 82, 0.12) !important;
  border-radius: 18px !important;
  background: rgba(255, 255, 255, 0.42) !important;
  padding: clamp(12px, 1.7vw, 22px) !important;
  box-shadow: 0 18px 44px rgba(8, 42, 72, 0.08) !important;
}

.has-app-sidebar .detail-layout,
body.has-landing-header.has-app-sidebar .detail-layout {
  max-width: none !important;
  margin-right: 0 !important;
  margin-left: 0 !important;
}

.detail-layout > .detail-media,
body.has-landing-header .detail-layout > .detail-media {
  grid-area: media !important;
  width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}

.detail-layout > .detail-copy,
body.has-landing-header .detail-layout > .detail-copy {
  grid-area: copy !important;
  min-width: 0 !important;
  width: 100% !important;
  box-sizing: border-box !important;
  align-self: stretch !important;
  gap: 12px !important;
  padding: clamp(16px, 2vw, 26px) !important;
  border: 1px solid rgba(9, 48, 82, 0.12) !important;
  border-radius: 14px !important;
  background: rgba(255, 255, 255, 0.76) !important;
  overflow: hidden !important;
}

.detail-layout > .buy-box,
body.has-landing-header .detail-layout > .buy-box {
  grid-area: actions !important;
  width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
  align-self: start !important;
  gap: 8px !important;
  padding: 12px !important;
  border: 1px solid rgba(9, 48, 82, 0.12) !important;
  box-shadow: 0 10px 26px rgba(8, 42, 72, 0.08) !important;
}

.detail-layout > .buy-box:not(.food-only-buy-box) > div,
body.has-landing-header .detail-layout > .buy-box:not(.food-only-buy-box) > div {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 8px !important;
  min-width: 0 !important;
}

.detail-layout > .buy-box:not(.food-only-buy-box) > div > .buy-now-button,
body.has-landing-header .detail-layout > .buy-box:not(.food-only-buy-box) > div > .buy-now-button {
  grid-column: 1 / -1 !important;
}

.detail-layout > .buy-box .detail-cart-button,
.detail-layout > .buy-box .detail-chat-button,
.detail-layout > .buy-box .buy-now-button,
body.has-landing-header .detail-layout > .buy-box .detail-cart-button,
body.has-landing-header .detail-layout > .buy-box .detail-chat-button,
body.has-landing-header .detail-layout > .buy-box .buy-now-button {
  width: 100% !important;
  min-width: 0 !important;
  min-height: 44px !important;
  height: auto !important;
  box-sizing: border-box !important;
  padding: 8px 10px !important;
  line-height: 1.12 !important;
  text-align: center !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
}

.detail-layout > .food-only-buy-box > div,
body.has-landing-header .detail-layout > .food-only-buy-box > div {
  display: block !important;
  min-width: 0 !important;
}

.detail-layout > .food-only-buy-box form,
body.has-landing-header .detail-layout > .food-only-buy-box form {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
}

.detail-layout .detail-copy h1,
body.has-landing-header .detail-layout .detail-copy h1 {
  max-width: 100% !important;
  font-size: clamp(2rem, 3.4vw, 3.5rem) !important;
  line-height: 1.02 !important;
  overflow-wrap: anywhere !important;
}

.detail-layout .detail-description,
body.has-landing-header .detail-layout .detail-description {
  margin: 0 !important;
  font-size: clamp(0.94rem, 1.1vw, 1.08rem) !important;
  line-height: 1.48 !important;
}

.detail-layout .detail-spec,
body.has-landing-header .detail-layout .detail-spec {
  gap: 7px !important;
}

.detail-layout .detail-spec div,
body.has-landing-header .detail-layout .detail-spec div {
  grid-template-columns: minmax(58px, 82px) minmax(0, 1fr) !important;
  gap: 8px !important;
  padding-top: 8px !important;
  overflow-wrap: anywhere !important;
}

.detail-layout .detail-copy .variant-preview-list,
body.has-landing-header .detail-layout .detail-copy .variant-preview-list {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 7px !important;
  margin: 4px 0 !important;
}

.detail-layout .detail-copy .color-preview-list,
body.has-landing-header .detail-layout .detail-copy .color-preview-list {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

.detail-layout .detail-copy .variant-preview-list span,
body.has-landing-header .detail-layout .detail-copy .variant-preview-list span {
  min-width: 0 !important;
  justify-content: center !important;
  padding: 8px 7px !important;
  text-align: center !important;
  overflow-wrap: anywhere !important;
}

.detail-layout .note-box,
body.has-landing-header .detail-layout .note-box {
  border-top: 1px solid rgba(9, 48, 82, 0.12) !important;
  padding: 12px 0 0 !important;
}

.detail-media > img,
body.has-landing-header .detail-media > img {
  height: clamp(300px, 35vw, 520px) !important;
  min-height: 0 !important;
}

.size-modal-quantity {
  display: grid;
  gap: 7px;
  margin-top: 10px;
  border-top: 1px solid rgba(9, 48, 82, 0.12);
  padding-top: 10px;
}

.size-modal-quantity[hidden] {
  display: none !important;
}

.size-modal-stepper {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  gap: 7px;
  min-width: 0;
}

.size-modal-stepper button,
.size-modal-stepper input {
  min-width: 0;
  min-height: 44px;
  box-sizing: border-box;
  border: 1px solid rgba(9, 48, 82, 0.16);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
  font: inherit;
  font-weight: 900;
  text-align: center;
}

.size-modal-stepper button {
  cursor: pointer;
  font-size: 1.25rem;
}

.size-modal-stepper button:hover {
  border-color: var(--premium-action);
  background: rgba(165, 0, 45, 0.08);
}

html[data-theme="dark"] .detail-layout,
html[data-theme="dark"] body.has-landing-header .detail-layout,
html[data-theme="dark"] .detail-layout > .detail-copy,
html[data-theme="dark"] body.has-landing-header .detail-layout > .detail-copy,
html[data-theme="dark"] .detail-layout > .buy-box,
html[data-theme="dark"] body.has-landing-header .detail-layout > .buy-box {
  border-color: rgba(126, 216, 255, 0.18) !important;
  background: rgba(8, 23, 43, 0.76) !important;
}

html[data-theme="dark"] .size-modal-quantity {
  border-top-color: rgba(126, 216, 255, 0.18);
}

html[data-theme="dark"] .size-modal-stepper button,
html[data-theme="dark"] .size-modal-stepper input {
  border-color: rgba(126, 216, 255, 0.2);
  background: rgba(4, 14, 28, 0.88);
  color: #f5fbff;
}

@media (max-width: 980px) {
  .detail-layout,
  body.has-landing-header .detail-layout {
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-areas:
      "media"
      "actions"
      "copy" !important;
    max-width: 760px !important;
    margin-right: auto !important;
    margin-left: auto !important;
  }

  .has-app-sidebar .detail-layout,
  body.has-landing-header.has-app-sidebar .detail-layout {
    max-width: none !important;
  }
}

@media (max-width: 560px) {
  .detail-layout,
  body.has-landing-header .detail-layout {
    gap: 10px !important;
    border-radius: 14px !important;
    padding: 9px !important;
  }

  .detail-layout > .detail-copy,
  body.has-landing-header .detail-layout > .detail-copy {
    padding: 14px !important;
    border-radius: 12px !important;
  }

  .detail-layout .detail-copy .color-preview-list,
  body.has-landing-header .detail-layout .detail-copy .color-preview-list {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .detail-media > img,
  body.has-landing-header .detail-media > img {
    height: clamp(230px, 70vw, 350px) !important;
  }
}

/* 2026-09-20: wider footer and a logo-led dark theme across public pages. */
.site-footer,
body.has-landing-header .site-footer,
body.has-app-sidebar .site-footer {
 width: min(1500px, calc(100% - 48px)) !important;
 min-height: 260px;
 grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(170px, 0.72fr) minmax(0, 1.15fr) !important;
 align-items: stretch;
 gap: clamp(24px, 3vw, 48px);
 margin-top: 56px;
 margin-bottom: 24px;
 border: 1px solid rgba(232, 188, 99, 0.32);
 border-radius: 16px;
 background:
  linear-gradient(105deg, rgba(104, 7, 39, 0.96) 0%, rgba(134, 9, 48, 0.9) 42%, rgba(9, 55, 67, 0.86) 100%),
  url('../img/hero-tenun.png') center 64% / cover no-repeat;
 padding: 46px 44px 50px;
 color: #fffaf2;
 box-shadow: 0 22px 54px rgba(42, 10, 25, 0.2);
}

.site-footer .footer-links {
 display: grid !important;
 align-content: start;
 gap: 10px;
}

.site-footer .footer-brand,
.site-footer .footer-contact,
.site-footer .footer-links,
.site-footer .footer-badge {
 align-content: start;
}

.site-footer .footer-brand img {
 width: 72px;
 height: 72px;
 border: 2px solid rgba(237, 190, 97, 0.74);
 border-radius: 50%;
 background: #fff;
 box-shadow: 0 12px 26px rgba(22, 7, 15, 0.24);
}

.site-footer .footer-brand strong {
 color: #fffaf2;
 font-size: 1.28rem;
}

.site-footer .footer-contact strong,
.site-footer .footer-links strong,
.site-footer .footer-badge strong {
 color: #ffe3a8;
}

.site-footer .footer-links a {
 width: fit-content;
 color: rgba(255, 250, 242, 0.86);
 font-weight: 800;
}

.site-footer .footer-links a:hover {
 color: #8fe0df;
 transform: translateX(3px);
}

.site-footer .footer-badge {
 border-color: rgba(143, 224, 223, 0.26);
 border-radius: 12px;
 background: rgba(5, 39, 51, 0.56);
 padding: 20px;
 box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

html[data-theme="dark"] {
 color-scheme: dark;
 --ink: #f3efe9;
 --paper: #0b1219;
 --sand: #111c24;
 --cream: #17232c;
 --copper: #db295e;
 --maroon: #c3164b;
 --ember: #9c1039;
 --teal: #62c7c8;
 --indigo: #0d2433;
 --gold: #e5b45d;
 --muted: #b6c5c8;
 --line: rgba(93, 194, 196, 0.17);
 --shadow: 0 24px 60px rgba(0, 0, 0, 0.34);
 --premium-action: #cf1d53;
 --premium-action-strong: #8e0d35;
 --premium-action-alt: #16717b;
 --premium-action-soft: rgba(207, 29, 83, 0.15);
 --premium-surface: rgba(21, 31, 40, 0.94);
 --premium-surface-strong: #17232c;
 --premium-shadow: 0 22px 54px rgba(0, 0, 0, 0.3);
}

html[data-theme="dark"] body.public-body,
html[data-theme="dark"] body.has-landing-header {
 background-color: #0b1219;
 background-image:
  linear-gradient(rgba(89, 194, 195, 0.024) 1px, transparent 1px),
  linear-gradient(90deg, rgba(89, 194, 195, 0.024) 1px, transparent 1px);
 background-size: 38px 38px;
 color: #f3efe9;
}

html[data-theme="dark"] .landing-contactbar {
 border-bottom: 1px solid rgba(229, 180, 93, 0.22);
 background: #720b2d;
 color: #fff8ef;
}

html[data-theme="dark"] .landing-header,
html[data-theme="dark"] body.has-landing-header .landing-header {
 border-bottom: 1px solid rgba(88, 194, 196, 0.18);
 background: #131c25;
 box-shadow: 0 14px 34px rgba(0, 0, 0, 0.24);
}

html[data-theme="dark"] .landing-brand strong { color: #fff7ed; }
html[data-theme="dark"] .landing-brand small { color: #e7b75f; }

html[data-theme="dark"] .landing-search {
 border-color: rgba(91, 194, 196, 0.2);
 background: #0c151e;
 box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

html[data-theme="dark"] .landing-search input {
 background: transparent !important;
 color: #f3f0eb !important;
}

html[data-theme="dark"] .landing-search input::placeholder { color: #9fb1b6 !important; }
html[data-theme="dark"] .landing-search button { background: #a90f3f !important; }

html[data-theme="dark"] .landing-header .theme-toggle {
 border-color: rgba(230, 183, 94, 0.28);
 background: #241922;
 color: #f7eee6;
}

html[data-theme="dark"] .landing-login-link,
html[data-theme="dark"] .landing-cart-link,
html[data-theme="dark"] .landing-login-link strong,
html[data-theme="dark"] .landing-cart-link strong {
 color: #f5eee8;
}

html[data-theme="dark"] .landing-nav {
 border-color: rgba(91, 194, 196, 0.16);
 background: #0d2230;
}

html[data-theme="dark"] .landing-nav a { color: #e7eff0; }

html[data-theme="dark"] .landing-nav a:hover {
 background: #153642;
 color: #bdebec;
}

html[data-theme="dark"] .landing-nav a.active {
 background: #a60e3d;
 color: #fff;
 box-shadow: inset 0 -3px 0 #e3b35c;
}

html[data-theme="dark"] :is(.catalog-hero,.admin-hero,.cta-section) {
 border-color: rgba(223, 177, 89, 0.2);
 background:
  linear-gradient(105deg, rgba(15, 26, 35, 0.98) 12%, rgba(18, 43, 51, 0.9) 58%, rgba(117, 9, 44, 0.58)),
  url('../img/hero-tenun.png') center / cover no-repeat;
 color: #f7f1ea;
 box-shadow: 0 20px 46px rgba(0, 0, 0, 0.28);
}

html[data-theme="dark"] :is(.catalog-hero,.admin-hero,.cta-section) :is(h1,h2,strong) { color: #fff6ec; }
html[data-theme="dark"] :is(.catalog-hero,.admin-hero,.cta-section) p { color: #c3d5d6; }
html[data-theme="dark"] :is(.catalog-hero,.admin-hero,.cta-section) .eyebrow { color: #edbd66; }

html[data-theme="dark"] :is(.product-card,.news-card,.media-card,.guide-book article,.empty-state,.filter-panel,.detail-panel,.product-detail-card,.review-card,.cart-card,.article-page,.summary-card,.checkout-form-card,.auth-card,.report-panel,.report-chart-card) {
 border-color: rgba(88, 190, 193, 0.16) !important;
 background: #151f28 !important;
 color: #f2eee8 !important;
 box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24) !important;
}

html[data-theme="dark"] :is(.product-card,.news-card,.media-card,.article-page,.detail-panel,.cart-card,.auth-card) :is(h1,h2,h3,strong) {
 color: #f8f2eb;
}

html[data-theme="dark"] :is(.product-card,.news-card,.media-card,.article-page,.detail-panel,.cart-card,.auth-card) :is(p,span,small) {
 color: #b8c7ca;
}

html[data-theme="dark"] .article-page > div {
 border-color: rgba(88, 190, 193, 0.14);
 background: #151f28;
}

html[data-theme="dark"] :is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]),textarea,select) {
 border-color: rgba(91, 192, 195, 0.2);
 background: #0d161f;
 color: #f2efea;
}

html[data-theme="dark"] :is(input,textarea)::placeholder { color: #91a5aa; opacity: 1; }

html[data-theme="dark"] :is(input,textarea,select):focus-visible {
 outline: 2px solid #dbae59;
 outline-offset: 2px;
}

html[data-theme="dark"] .site-footer {
 border-color: rgba(229, 181, 94, 0.3);
 background:
  linear-gradient(105deg, rgba(83, 8, 34, 0.97) 0%, rgba(104, 10, 43, 0.93) 42%, rgba(7, 47, 59, 0.94) 100%),
  url('../img/hero-tenun.png') center 64% / cover no-repeat;
 color: #fff8ef;
 box-shadow: 0 26px 62px rgba(0, 0, 0, 0.36);
}

html[data-theme="dark"] .site-footer .footer-badge {
 border-color: rgba(107, 209, 207, 0.24);
 background: rgba(5, 35, 46, 0.64);
}

@media (max-width: 1050px) {
 .site-footer,
 body.has-landing-header .site-footer,
 body.has-app-sidebar .site-footer {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  min-height: 0;
 }
}

@media (max-width: 620px) {
 .site-footer,
 body.has-landing-header .site-footer,
 body.has-app-sidebar .site-footer {
  width: calc(100% - 24px) !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 24px;
  padding: 30px 24px 34px;
 }
 .site-footer .footer-brand img { width: 62px; height: 62px; }
}

/* Latest detail and checkout polish, final cascade position. */
.detail-layout,
body.has-landing-header .detail-layout {
  grid-template-columns: minmax(300px, 0.86fr) minmax(0, 1.14fr) !important;
  grid-template-areas: none !important;
  gap: 18px !important;
  max-width: 1420px !important;
}

.detail-layout > .detail-purchase-column,
body.has-landing-header .detail-layout > .detail-purchase-column {
  display: grid !important;
  gap: 10px !important;
  min-width: 0 !important;
  align-self: start !important;
}

.detail-layout > .detail-purchase-column > .detail-media,
body.has-landing-header .detail-layout > .detail-purchase-column > .detail-media {
  width: 100% !important;
  min-width: 0 !important;
}

.detail-layout > .detail-purchase-column > .buy-box,
body.has-landing-header .detail-layout > .detail-purchase-column > .buy-box {
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 10px !important;
  border: 1px solid rgba(9, 48, 82, 0.12) !important;
  border-radius: 12px !important;
  background: rgba(255, 255, 255, 0.72) !important;
  box-shadow: 0 10px 24px rgba(8, 42, 72, 0.08) !important;
}

.detail-layout > .detail-purchase-column > .buy-box:not(.food-only-buy-box) > div,
body.has-landing-header .detail-layout > .detail-purchase-column > .buy-box:not(.food-only-buy-box) > div {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 8px !important;
}

.detail-layout > .detail-purchase-column > .buy-box:not(.food-only-buy-box) > div > .buy-now-button,
body.has-landing-header .detail-layout > .detail-purchase-column > .buy-box:not(.food-only-buy-box) > div > .buy-now-button {
  grid-column: 1 / -1 !important;
}

.detail-layout > .detail-purchase-column .detail-cart-button,
.detail-layout > .detail-purchase-column .detail-chat-button,
.detail-layout > .detail-purchase-column .buy-now-button,
body.has-landing-header .detail-layout > .detail-purchase-column .detail-cart-button,
body.has-landing-header .detail-layout > .detail-purchase-column .detail-chat-button,
body.has-landing-header .detail-layout > .detail-purchase-column .buy-now-button {
  width: 100% !important;
  min-width: 0 !important;
  min-height: 48px !important;
  padding: 9px 12px !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
}

.detail-layout > .detail-copy,
body.has-landing-header .detail-layout > .detail-copy {
  align-self: start !important;
  max-height: none !important;
}

.detail-layout .detail-copy h1,
body.has-landing-header .detail-layout .detail-copy h1 {
  font-size: clamp(1.9rem, 3vw, 3rem) !important;
}

.detail-layout .detail-description,
body.has-landing-header .detail-layout .detail-description {
  font-size: clamp(0.92rem, 1vw, 1.02rem) !important;
}

.detail-layout .detail-media > img,
body.has-landing-header .detail-layout .detail-media > img {
  height: clamp(280px, 29vw, 430px) !important;
  object-fit: cover !important;
}

.detail-layout .note-box,
body.has-landing-header .detail-layout .note-box {
  display: grid !important;
  gap: 6px !important;
  margin-top: 2px !important;
  border: 1px solid rgba(165, 0, 45, 0.13) !important;
  border-radius: 12px !important;
  background: linear-gradient(145deg, rgba(255, 250, 252, 0.9), rgba(237, 249, 255, 0.72)) !important;
  padding: 12px 14px !important;
}

.detail-layout .note-box strong,
body.has-landing-header .detail-layout .note-box strong {
  color: #a5002d !important;
  font-size: 0.96rem !important;
}

.detail-layout .note-box p,
body.has-landing-header .detail-layout .note-box p {
  margin: 0 !important;
  color: #405b76 !important;
  font-size: 0.94rem !important;
  line-height: 1.42 !important;
}

.checkout-summary-simple .checkout-submit-button {
  width: 100%;
  justify-content: center;
  min-height: 52px;
  margin-top: 2px;
}

.checkout-form-card .delivery-courier-group[hidden],
.checkout-summary-lines > [hidden] {
  display: none !important;
}

html[data-theme="dark"] .detail-layout > .detail-purchase-column > .buy-box,
html[data-theme="dark"] body.has-landing-header .detail-layout > .detail-purchase-column > .buy-box,
html[data-theme="dark"] .detail-layout .note-box,
html[data-theme="dark"] body.has-landing-header .detail-layout .note-box {
  border-color: rgba(126, 216, 255, 0.18) !important;
  background: rgba(8, 23, 43, 0.76) !important;
}

html[data-theme="dark"] .detail-layout .note-box strong,
html[data-theme="dark"] body.has-landing-header .detail-layout .note-box strong {
  color: #8edcff !important;
}

html[data-theme="dark"] .detail-layout .note-box p,
html[data-theme="dark"] body.has-landing-header .detail-layout .note-box p {
  color: #b8d2e8 !important;
}

@media (max-width: 980px) {
  .detail-layout,
  body.has-landing-header .detail-layout {
    grid-template-columns: minmax(0, 1fr) !important;
    max-width: 760px !important;
  }
}

@media (max-width: 560px) {
  .detail-layout .detail-media > img,
  body.has-landing-header .detail-layout .detail-media > img {
    height: clamp(220px, 62vw, 300px) !important;
  }

  .detail-layout > .detail-purchase-column > .buy-box:not(.food-only-buy-box) > div,
  body.has-landing-header .detail-layout > .detail-purchase-column > .buy-box:not(.food-only-buy-box) > div {
    gap: 7px !important;
  }

  .detail-layout > .detail-purchase-column .detail-cart-button,
  .detail-layout > .detail-purchase-column .detail-chat-button,
  .detail-layout > .detail-purchase-column .buy-now-button,
  body.has-landing-header .detail-layout > .detail-purchase-column .detail-cart-button,
  body.has-landing-header .detail-layout > .detail-purchase-column .detail-chat-button,
  body.has-landing-header .detail-layout > .detail-purchase-column .buy-now-button {
    min-height: 46px !important;
    padding: 8px 9px !important;
    font-size: 0.9rem !important;
  }
}

/* Latest detail and checkout polish. */
.detail-layout,
body.has-landing-header .detail-layout {
  grid-template-columns: minmax(300px, 0.86fr) minmax(0, 1.14fr) !important;
  grid-template-areas: none !important;
  gap: 18px !important;
  max-width: 1420px !important;
}

.detail-layout > .detail-purchase-column,
body.has-landing-header .detail-layout > .detail-purchase-column {
  display: grid !important;
  gap: 10px !important;
  min-width: 0 !important;
  align-self: start !important;
}

.detail-layout > .detail-purchase-column > .detail-media,
body.has-landing-header .detail-layout > .detail-purchase-column > .detail-media {
  width: 100% !important;
  min-width: 0 !important;
}

.detail-layout > .detail-purchase-column > .buy-box,
body.has-landing-header .detail-layout > .detail-purchase-column > .buy-box {
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 10px !important;
  border: 1px solid rgba(9, 48, 82, 0.12) !important;
  border-radius: 12px !important;
  background: rgba(255, 255, 255, 0.72) !important;
  box-shadow: 0 10px 24px rgba(8, 42, 72, 0.08) !important;
}

.detail-layout > .detail-purchase-column > .buy-box:not(.food-only-buy-box) > div,
body.has-landing-header .detail-layout > .detail-purchase-column > .buy-box:not(.food-only-buy-box) > div {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 8px !important;
}

.detail-layout > .detail-purchase-column > .buy-box:not(.food-only-buy-box) > div > .buy-now-button,
body.has-landing-header .detail-layout > .detail-purchase-column > .buy-box:not(.food-only-buy-box) > div > .buy-now-button {
  grid-column: 1 / -1 !important;
}

.detail-layout > .detail-purchase-column .detail-cart-button,
.detail-layout > .detail-purchase-column .detail-chat-button,
.detail-layout > .detail-purchase-column .buy-now-button,
body.has-landing-header .detail-layout > .detail-purchase-column .detail-cart-button,
body.has-landing-header .detail-layout > .detail-purchase-column .detail-chat-button,
body.has-landing-header .detail-layout > .detail-purchase-column .buy-now-button {
  width: 100% !important;
  min-width: 0 !important;
  min-height: 48px !important;
  padding: 9px 12px !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
}

.detail-layout > .detail-copy,
body.has-landing-header .detail-layout > .detail-copy {
  align-self: start !important;
  max-height: none !important;
}

.detail-layout .detail-copy h1,
body.has-landing-header .detail-layout .detail-copy h1 {
  font-size: clamp(1.9rem, 3vw, 3rem) !important;
}

.detail-layout .detail-description,
body.has-landing-header .detail-layout .detail-description {
  font-size: clamp(0.92rem, 1vw, 1.02rem) !important;
}

.detail-layout .detail-media > img,
body.has-landing-header .detail-layout .detail-media > img {
  height: clamp(280px, 29vw, 430px) !important;
  object-fit: cover !important;
}

.detail-layout .note-box,
body.has-landing-header .detail-layout .note-box {
  display: grid !important;
  gap: 6px !important;
  margin-top: 2px !important;
  border: 1px solid rgba(165, 0, 45, 0.13) !important;
  border-radius: 12px !important;
  background: linear-gradient(145deg, rgba(255, 250, 252, 0.9), rgba(237, 249, 255, 0.72)) !important;
  padding: 12px 14px !important;
}

.detail-layout .note-box strong,
body.has-landing-header .detail-layout .note-box strong {
  color: #a5002d !important;
  font-size: 0.96rem !important;
}

.detail-layout .note-box p,
body.has-landing-header .detail-layout .note-box p {
  margin: 0 !important;
  color: #405b76 !important;
  font-size: 0.94rem !important;
  line-height: 1.42 !important;
}

.checkout-summary-simple .checkout-submit-button {
  width: 100%;
  justify-content: center;
  min-height: 52px;
  margin-top: 2px;
}

.checkout-form-card .delivery-courier-group[hidden],
.checkout-summary-lines > [hidden] {
  display: none !important;
}

html[data-theme="dark"] .detail-layout > .detail-purchase-column > .buy-box,
html[data-theme="dark"] body.has-landing-header .detail-layout > .detail-purchase-column > .buy-box,
html[data-theme="dark"] .detail-layout .note-box,
html[data-theme="dark"] body.has-landing-header .detail-layout .note-box {
  border-color: rgba(126, 216, 255, 0.18) !important;
  background: rgba(8, 23, 43, 0.76) !important;
}

html[data-theme="dark"] .detail-layout .note-box strong,
html[data-theme="dark"] body.has-landing-header .detail-layout .note-box strong {
  color: #8edcff !important;
}

html[data-theme="dark"] .detail-layout .note-box p,
html[data-theme="dark"] body.has-landing-header .detail-layout .note-box p {
  color: #b8d2e8 !important;
}

@media (max-width: 980px) {
  .detail-layout,
  body.has-landing-header .detail-layout {
    grid-template-columns: minmax(0, 1fr) !important;
    max-width: 760px !important;
  }
}

@media (max-width: 560px) {
  .detail-layout .detail-media > img,
  body.has-landing-header .detail-layout .detail-media > img {
    height: clamp(220px, 62vw, 300px) !important;
  }

  .detail-layout > .detail-purchase-column > .buy-box:not(.food-only-buy-box) > div,
  body.has-landing-header .detail-layout > .detail-purchase-column > .buy-box:not(.food-only-buy-box) > div {
    gap: 7px !important;
  }

  .detail-layout > .detail-purchase-column .detail-cart-button,
  .detail-layout > .detail-purchase-column .detail-chat-button,
  .detail-layout > .detail-purchase-column .buy-now-button,
  body.has-landing-header .detail-layout > .detail-purchase-column .detail-cart-button,
  body.has-landing-header .detail-layout > .detail-purchase-column .detail-chat-button,
  body.has-landing-header .detail-layout > .detail-purchase-column .buy-now-button {
    min-height: 46px !important;
    padding: 8px 9px !important;
    font-size: 0.9rem !important;
  }
}

@media (max-width: 760px) {
  .landing-nav a {
    display: flex;
  }

  .product-actions:not(.product-actions-food),
  body.has-landing-header .product-actions:not(.product-actions-food) {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 6px !important;
  }

  .product-actions .cart-icon-button,
  .product-actions .chat-icon-button,
  body.has-landing-header .product-actions .cart-icon-button,
  body.has-landing-header .product-actions .chat-icon-button {
    height: 37px !important;
    min-height: 37px !important;
    padding: 0 6px !important;
  }

  .product-actions .cart-icon-button b,
  .product-actions .chat-icon-button b {
    font-size: 0.68rem;
  }

  .product-actions .buy-now-button,
  body.has-landing-header .product-actions .buy-now-button {
    height: 38px !important;
    min-height: 38px !important;
  }

  .detail-copy h1,
  body.has-landing-header .detail-copy h1 {
    font-size: clamp(1.72rem, 7.8vw, 2.35rem) !important;
    line-height: 1.05 !important;
  }

  .detail-spec {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  .detail-description {
    font-size: 0.9rem !important;
    line-height: 1.48 !important;
  }

  .size-modal-options {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  .size-option {
    min-height: 62px !important;
    padding: 9px 8px !important;
  }

  .size-option strong {
    font-size: 0.88rem;
  }

  .size-option span,
  .size-option small {
    font-size: 0.72rem;
  }

  .order-detail .section-heading.compact {
    padding-bottom: 12px;
  }

  .order-detail .section-heading.compact h1 {
    font-size: clamp(1.55rem, 8vw, 2.2rem) !important;
    line-height: 1.08;
  }

  .order-detail .section-heading.compact p {
    font-size: 0.92rem;
    line-height: 1.45;
  }

  .order-product-card {
    grid-template-columns: 82px minmax(0, 1fr);
    align-items: start;
    gap: 10px;
    padding: 10px;
  }

  .order-product-card img {
    width: 82px;
    height: 82px;
  }

  .order-product-price {
    grid-column: 2;
    text-align: left;
  }
}

/* Kain tenun: every gallery photo is an explicit purchasable choice. */
.product-detail-v2__purchase-images {
  display: grid;
  gap: 10px;
  padding-top: 8px;
}

.product-detail-v2__purchase-images > p {
  margin: 0;
  color: #496178;
}

.product-detail-v2__purchase-images > div,
.size-modal-image-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.product-detail-v2__purchase-images button,
.image-option {
  min-width: 0;
  padding: 6px;
  border: 1px solid #d8a8b6;
  border-radius: 7px;
  background: #fff;
  color: #071f38;
  cursor: pointer;
}

.product-detail-v2__purchase-images button:hover,
.product-detail-v2__purchase-images button:focus-visible,
.image-option:hover,
.image-option:focus-visible,
.image-option.active {
  border-color: #a50035;
  box-shadow: 0 0 0 2px rgba(165, 0, 53, 0.16);
}

.product-detail-v2__purchase-images img,
.image-option img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 5px;
}

.product-detail-v2__purchase-images span,
.image-option strong {
  display: block;
  margin-top: 6px;
  text-align: center;
  font-size: 13px;
  line-height: 1.25;
}

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

.size-modal-image-grid {
  max-height: min(42vh, 410px);
  padding: 2px 3px 4px;
  overflow-y: auto;
}

html[data-theme="dark"] .product-detail-v2__purchase-images > p {
  color: #b8cbd9;
}

html[data-theme="dark"] .product-detail-v2__purchase-images button,
html[data-theme="dark"] .image-option {
  border-color: #35566c;
  background: #10293a;
  color: #f7f3ec;
}

html[data-theme="dark"] .image-option.active {
  border-color: #ffb74f;
  box-shadow: 0 0 0 2px rgba(255, 183, 79, 0.22);
}

@media (max-width: 720px) {
  .product-detail-v2__purchase-images > div,
  .size-modal-image-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .size-modal-image-grid {
    max-height: 38vh;
  }
}

@media (max-width: 420px) {
  .product-detail-v2__purchase-images > div,
  .size-modal-image-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Kain tenun uses plain size buttons after the buyer chooses a product image. */
.size-modal-options.is-button-only {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.size-modal-options.is-button-only .size-modal-label {
  grid-column: 1 / -1;
}

.size-option.size-option--button-only {
  display: flex;
  min-height: 86px;
  padding: 10px 12px;
  align-items: center;
  flex-direction: column;
  gap: 4px;
  justify-content: center;
  border: 1px solid #d8a8b6;
  background: #fff;
  text-align: center;
}

.size-option.size-option--button-only strong {
  margin: 0;
  color: #071e38;
  font-size: 0.95rem;
  line-height: 1.2;
}

.size-option.size-option--button-only .size-option-dimensions {
  color: #506b7c;
  font-size: 0.75rem;
  font-weight: 700;
}

.size-option.size-option--button-only > span {
  color: #a50035;
  font-size: 0.88rem;
  font-weight: 900;
}

.size-option.size-option--button-only.active {
  border-color: #a50035;
  background: #fff0f4;
  box-shadow: 0 0 0 2px rgba(165, 0, 53, 0.15);
}

html[data-theme="dark"] .size-option.size-option--button-only {
  border-color: #35566c;
  background: #10293a;
}

html[data-theme="dark"] .size-option.size-option--button-only strong {
  color: #f7f3ec;
}

html[data-theme="dark"] .size-option.size-option--button-only .size-option-dimensions {
  color: #c6dce5;
}

html[data-theme="dark"] .size-option.size-option--button-only > span {
  color: #7ed8ff;
}

html[data-theme="dark"] .size-option.size-option--button-only.active {
  border-color: #ffb74f;
  background: #2b291c;
  box-shadow: 0 0 0 2px rgba(255, 183, 79, 0.22);
}

@media (max-width: 420px) {
  .product-actions .cart-icon-button b,
  .product-actions .chat-icon-button b {
    font-size: 0.64rem;
  }

  .product-actions .chat-icon-button span,
  .detail-chat-button span {
    width: 15px !important;
    height: 13px !important;
  }

  .cart-icon-button .cart-plus-icon {
    transform: scale(0.86);
  }

  .cart-item {
    grid-template-columns: 30px 72px minmax(0, 1fr) !important;
    gap: 9px !important;
    padding: 10px !important;
  }

  .cart-item > img {
    width: 72px !important;
    height: 72px !important;
  }
}

html[data-theme="dark"] {
  color-scheme: dark;
  --ink: #f4fbff;
  --paper: #041426;
  --sand: #08233d;
  --cream: #0b2d4a;
  --copper: #e34668;
  --maroon: #f09bb4;
  --ember: #b41442;
  --teal: #62c4e8;
  --indigo: #d9f2ff;
  --gold: #f09bb4;
  --muted: #b7cfe0;
  --line: rgba(175, 218, 240, 0.18);
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.54);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  width: 100%;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 15% 8%, rgba(255, 211, 226, 0.5), transparent 28%),
    radial-gradient(circle at 86% 14%, rgba(216, 161, 178, 0.22), transparent 30%),
    linear-gradient(90deg, rgba(217, 111, 155, 0.07) 1px, transparent 1px),
    linear-gradient(180deg, rgba(155, 79, 127, 0.045) 1px, transparent 1px),
    var(--paper);
  background-size: auto, auto, 38px 38px, 38px 38px, auto;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

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

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

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.page-loader {
  position: fixed;
  inset: 0 auto auto 0;
  z-index: 90;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--copper), var(--teal));
  transform-origin: left;
  animation: loadLine 900ms ease forwards;
}

.main-header {
  position: fixed;
  top: 16px;
  left: 50%;
  z-index: 50;
  display: grid;
  width: min(1120px, calc(100% - 32px));
  min-height: 68px;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  transform: translateX(-50%);
  border: 1px solid rgba(255, 250, 240, 0.2);
  border-radius: 8px;
  background: rgba(23, 19, 15, 0.6);
  color: var(--paper);
  box-shadow: 0 12px 38px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(18px);
  transition: background 180ms ease, transform 180ms ease;
}

.main-header.is-scrolled {
  background: rgba(23, 19, 15, 0.84);
}

.brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
}

.brand img {
  width: 46px;
  height: 46px;
  border-radius: 8px;
}

.brand strong,
.site-footer strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.18rem;
}

.brand small {
  display: block;
  max-width: 320px;
  overflow: hidden;
  color: rgba(255, 250, 240, 0.72);
  font-size: 0.73rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.08);
  padding: 5px;
}

.main-nav a {
  border-radius: 8px;
  padding: 9px 12px;
  color: rgba(255, 250, 240, 0.82);
  font-weight: 700;
}

.main-nav a:hover,
.main-nav a.active {
  background: rgba(255, 250, 240, 0.13);
  color: var(--paper);
}

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

.theme-toggle {
  display: inline-flex;
  width: 48px;
  min-width: 48px;
  min-height: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  gap: 0;
  border: 1px solid rgba(255, 250, 240, 0.24);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.09);
  color: var(--paper);
  padding: 0;
  font-weight: 900;
  box-shadow: none;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.theme-toggle:focus-visible {
  outline: 3px solid rgba(244, 213, 127, 0.42);
  outline-offset: 3px;
}

.theme-toggle:hover {
  transform: translateY(-2px);
  border-color: rgba(244, 213, 127, 0.56);
  background: rgba(255, 250, 240, 0.14);
}

.theme-toggle-mark {
  position: relative;
  display: inline-flex;
  width: 34px;
  height: 20px;
  flex: 0 0 auto;
  align-items: center;
  border: 1px solid rgba(244, 213, 127, 0.34);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(244, 213, 127, 0.76), rgba(184, 106, 56, 0.74));
  padding: 3px;
}

.theme-toggle-mark span {
  display: block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff8df;
  box-shadow: 0 0 0 3px rgba(255, 248, 223, 0.2), 0 3px 9px rgba(23, 19, 15, 0.32);
  transition: transform 220ms ease, background 220ms ease, box-shadow 220ms ease;
}

.theme-toggle.is-dark .theme-toggle-mark {
  background: linear-gradient(135deg, rgba(15, 106, 104, 0.84), rgba(23, 44, 75, 0.9));
}

.theme-toggle.is-dark .theme-toggle-mark span {
  transform: translateX(14px);
  background: #111722;
  box-shadow: inset -4px -2px 0 #f3d27a, 0 0 18px rgba(243, 210, 122, 0.34);
}

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

.cart-link,
.ghost-button,
.solid-button,
.primary-button,
.secondary-button,
.table-action,
.icon-button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid transparent;
  padding: 0 15px;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border 180ms ease;
}

.cart-link {
  gap: 8px;
  border-color: rgba(255, 250, 240, 0.2);
  background: rgba(255, 250, 240, 0.08);
}

.cart-link b {
  display: grid;
  min-width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  background: var(--gold);
  color: var(--ink);
  font-size: 0.82rem;
}

.ghost-button {
  border-color: rgba(23, 19, 15, 0.16);
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
}

.main-header .ghost-button {
  border-color: rgba(255, 250, 240, 0.24);
  background: rgba(255, 250, 240, 0.08);
  color: var(--paper);
}

.solid-button,
.primary-button {
  background: linear-gradient(135deg, #f4d57f, #b86a38);
  color: #21150f;
  box-shadow: 0 14px 30px rgba(168, 78, 50, 0.24);
}

.secondary-button {
  border-color: rgba(255, 250, 240, 0.28);
  background: rgba(255, 250, 240, 0.1);
  color: var(--paper);
}

.cart-link:hover,
.ghost-button:hover,
.solid-button:hover,
.primary-button:hover,
.secondary-button:hover,
.table-action:hover,
.icon-button:hover,
.cart-icon-button:hover,
.buy-now-button:hover {
  transform: translateY(-2px);
}

.user-pill {
  max-width: 150px;
  overflow: hidden;
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.12);
  padding: 10px 12px;
  color: rgba(255, 250, 240, 0.88);
  font-size: 0.86rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-floating-badge {
  display: inline-grid;
  width: 44px;
  min-width: 44px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 250, 240, 0.24);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.08);
  padding: 4px;
  box-shadow: none;
}

.account-floating-badge img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: contain;
}

.account-menu-wrap {
  position: relative;
  display: inline-flex;
}

.account-popover {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 70;
  display: grid;
  min-width: 240px;
  gap: 4px;
  border: 1px solid rgba(255, 250, 240, 0.22);
  border-radius: 8px;
  background: rgba(23, 19, 15, 0.96);
  color: var(--paper);
  box-shadow: var(--shadow);
  padding: 14px;
}

.account-popover[hidden] {
  display: none !important;
}

.account-popover span,
.account-popover small {
  color: rgba(255, 250, 240, 0.72);
  font-weight: 800;
}

.account-popover strong {
  font-size: 1rem;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 250, 240, 0.2);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.08);
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--paper);
}

.flash-stack {
  position: fixed;
  top: 98px;
  right: 20px;
  z-index: 80;
  display: grid;
  gap: 10px;
  width: min(360px, calc(100% - 40px));
}

.flash {
  border-radius: 8px;
  padding: 14px 16px;
  color: var(--paper);
  box-shadow: var(--shadow);
}

.flash-success {
  background: var(--teal);
}

.flash-error {
  background: var(--ember);
}

.hero-section {
  position: relative;
  display: grid;
  min-height: 88vh;
  width: 100%;
  overflow: hidden;
  align-items: center;
  padding: 132px max(20px, calc((100vw - 1120px) / 2)) 76px;
  isolation: isolate;
}

.hero-section::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: -1;
  height: 34%;
  background: linear-gradient(180deg, transparent, var(--paper));
}

.hero-image {
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    linear-gradient(90deg, rgba(20, 16, 12, 0.9), rgba(20, 16, 12, 0.46) 48%, rgba(20, 16, 12, 0.12)),
    linear-gradient(180deg, rgba(20, 16, 12, 0.1), rgba(20, 16, 12, 0.38)),
    url("../img/hero-tenun.png") center / cover;
  transform: scale(1.03);
  animation: heroDrift 18s ease-in-out infinite alternate;
}

.hero-pattern {
  position: absolute;
  right: -12vw;
  bottom: 8vh;
  z-index: -2;
  width: min(640px, 78vw);
  height: min(640px, 78vw);
  opacity: 0.42;
  background:
    conic-gradient(from 45deg, transparent 0 20%, rgba(196, 154, 74, 0.34) 20% 25%, transparent 25% 50%, rgba(168, 78, 50, 0.3) 50% 56%, transparent 56% 100%),
    repeating-linear-gradient(45deg, rgba(255, 250, 240, 0.1) 0 8px, transparent 8px 18px);
  mask-image: radial-gradient(circle, black 0 54%, transparent 70%);
  animation: motifTurn 32s linear infinite;
}

.hero-content {
  width: min(680px, 100%);
  color: var(--paper);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--copper);
  font-size: 0.84rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-content .eyebrow,
.catalog-hero .eyebrow,
.admin-hero .eyebrow {
  color: #e7c16d;
}

.hero-content h1,
.section-heading h1,
.section-heading h2,
.catalog-hero h1,
.auth-card h1,
.detail-copy h1,
.checkout-form h1,
.admin-hero h1,
.order-admin-layout h1,
.cta-section h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 0.98;
}

.hero-content h1 {
  max-width: 680px;
  font-size: clamp(2.55rem, 5.2vw, 5.4rem);
  overflow-wrap: anywhere;
  text-shadow: 0 20px 60px rgba(0, 0, 0, 0.34);
}

.hero-content p {
  max-width: 620px;
  color: rgba(255, 250, 240, 0.88);
  font-size: clamp(0.98rem, 1.55vw, 1.2rem);
  line-height: 1.66;
}

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

.hero-stats {
  display: grid;
  max-width: 700px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 40px;
}

.hero-stats div {
  border-left: 2px solid rgba(244, 213, 127, 0.72);
  padding: 2px 16px;
}

.hero-stats strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.7rem, 4vw, 2.8rem);
}

.hero-stats span {
  color: rgba(255, 250, 240, 0.72);
}

.ticker {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: linear-gradient(90deg, #f6d982, #e0a653, #b9603a);
  color: #20140f;
  box-shadow: inset 0 1px 0 rgba(255, 250, 240, 0.45);
}

.ticker div {
  display: flex;
  width: max-content;
  min-width: 100%;
  animation: marqueeMove 28s linear infinite;
}

.ticker span {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  padding: 0 28px;
  font-size: clamp(0.95rem, 1.35vw, 1.18rem);
  font-weight: 900;
  white-space: nowrap;
}

.section-wrap,
.subpage,
.site-footer {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.section-wrap {
  padding: 82px 0 44px;
}

.subpage {
  padding: 126px 0 70px;
}

.section-heading {
  display: grid;
  max-width: 820px;
  gap: 12px;
  margin-bottom: 30px;
}

.section-heading.compact {
  margin-bottom: 22px;
}

.section-heading h1,
.section-heading h2,
.catalog-hero h1,
.auth-card h1,
.detail-copy h1,
.checkout-form h1,
.admin-hero h1,
.order-admin-layout h1 {
  font-size: clamp(2.25rem, 5vw, 5rem);
}

.section-heading p,
.catalog-hero p,
.feature-card p,
.category-card p,
.product-info p,
.detail-description,
.checkout-form > p,
.summary-card p,
.admin-hero p,
.order-admin-layout > div > p,
.empty-state p {
  color: var(--muted);
  line-height: 1.72;
}

.feature-grid,
.category-grid,
.product-grid,
.metric-grid {
  display: grid;
  gap: 16px;
}

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

.category-grid {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

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

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

.feature-card,
.category-card,
.product-card,
.auth-card,
.summary-card,
.filter-panel,
.empty-state,
.form-panel,
.metric-card,
.admin-table-wrap,
.note-box {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 10px 34px rgba(23, 19, 15, 0.08);
}

.feature-card,
.category-card {
  padding: 22px;
}

.feature-card span {
  display: block;
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  border-radius: 8px;
  background:
    linear-gradient(45deg, transparent 34%, var(--gold) 34% 45%, transparent 45% 55%, var(--copper) 55% 66%, transparent 66%),
    var(--indigo);
}

.feature-card h3,
.category-card strong,
.product-info h3 {
  margin: 0 0 9px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
}

.category-card {
  min-height: 170px;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.category-card span {
  display: inline-flex;
  margin-bottom: 12px;
  border-radius: 8px;
  background: rgba(15, 106, 104, 0.09);
  color: var(--teal);
  padding: 6px 9px;
  font-weight: 800;
}

.product-card {
  overflow: hidden;
  scroll-margin-top: 112px;
}

.product-image {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--sand);
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 260ms ease, filter 260ms ease;
}

.product-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(90deg, rgba(255, 250, 240, 0.15) 0 4px, transparent 4px 12px),
    linear-gradient(180deg, transparent 40%, rgba(23, 19, 15, 0.54));
  mix-blend-mode: soft-light;
}

.product-image span {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 2;
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.92);
  color: var(--ink);
  padding: 7px 10px;
  font-size: 0.78rem;
  font-weight: 900;
}

.product-card:hover .product-image img {
  transform: scale(1.05);
  filter: saturate(1.08) contrast(1.04);
}

.product-info {
  display: grid;
  gap: 8px;
  padding: 16px;
}

.product-info small,
.stock-line {
  color: var(--muted);
  font-weight: 800;
}

.product-bottom {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.product-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

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

.product-actions form {
  margin: 0;
}

.product-bottom button,
.buy-box button {
  min-height: 40px;
  border: 0;
  border-radius: 8px;
  font-weight: 900;
}

.cart-icon-button {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 44px;
  padding: 0;
  background: var(--teal);
  color: var(--paper);
}

.detail-cart-button {
  width: auto;
  grid-auto-flow: column;
  gap: 8px;
  padding: 0 14px;
}

.detail-cart-button .cart-plus-icon {
  margin: 0;
}

.buy-now-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 86px;
  padding: 0 14px;
  background: linear-gradient(135deg, #f4d57f, #c8793d);
  color: #21150f;
}

.cart-plus-icon {
  position: relative;
  display: block;
  width: 22px;
  height: 20px;
  margin: 0 auto;
  background:
    radial-gradient(circle at 8px 18px, currentColor 0 2px, transparent 2.4px),
    radial-gradient(circle at 18px 18px, currentColor 0 2px, transparent 2.4px);
}

.cart-plus-icon::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 5px;
  width: 15px;
  height: 10px;
  border: 2px solid currentColor;
  border-top: 0;
  border-radius: 2px;
}

.cart-plus-icon::after {
  content: "+";
  position: absolute;
  right: -2px;
  top: -7px;
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
}

.cart-icon-button .cart-plus-icon {
  color: var(--paper);
}

.cart-plus-icon {
  color: currentColor;
}

.cart-plus-icon span,
.cart-plus-icon i {
  display: none;
}

.cart-icon-button::after {
  content: none;
}

.cart-icon-button.is-loading {
  opacity: 0.7;
  transform: none;
}

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

.variant-preview-list {
  display: grid;
  gap: 8px;
  margin: 16px 0;
}

.variant-preview-list span {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid rgba(15, 106, 104, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  padding: 10px 12px;
  color: var(--muted);
  font-weight: 800;
}

.variant-preview-list strong {
  color: var(--ink);
}

.size-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-items: center;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: clamp(12px, 2.4vw, 28px);
}

.size-modal.is-open {
  display: grid;
}

.is-size-modal-open {
  overflow: hidden;
}

.size-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 16, 12, 0.58);
  backdrop-filter: blur(8px);
}

.size-modal-panel {
  position: relative;
  width: min(880px, 100%);
  max-height: min(820px, calc(100dvh - 32px));
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 252, 244, 0.97), rgba(246, 238, 224, 0.94)),
    var(--paper);
  padding: clamp(22px, 4vw, 34px);
  box-shadow: 0 28px 80px rgba(20, 16, 12, 0.34);
}

.size-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  font-weight: 900;
}

.size-modal-panel h2 {
  margin: 0 42px 18px 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.65rem, 3vw, 2.3rem);
  line-height: 1.08;
  overflow-wrap: anywhere;
}

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

.size-option {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(15, 106, 104, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  padding: 14px;
  text-align: left;
}

.size-option:hover {
  border-color: rgba(15, 106, 104, 0.42);
  background: rgba(15, 106, 104, 0.08);
}

.size-option:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.size-option strong,
.size-option span,
.size-option small {
  display: block;
}

.size-option span {
  color: var(--teal);
  font-weight: 900;
}

.size-option small {
  color: var(--muted);
  font-weight: 800;
}

.center-action {
  display: flex;
  justify-content: center;
  margin-top: 26px;
}

.cta-section {
  display: flex;
  width: min(1080px, calc(100% - 40px));
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 48px auto 82px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(23, 44, 75, 0.96), rgba(15, 106, 104, 0.92)),
    var(--indigo);
  color: var(--paper);
  padding: clamp(28px, 5vw, 54px);
  box-shadow: var(--shadow);
}

.cta-section h2 {
  max-width: 720px;
  font-size: clamp(1.75rem, 3.2vw, 3.35rem);
}

.cta-section p {
  color: rgba(255, 250, 240, 0.76);
}

.catalog-hero,
.admin-hero {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 430px);
  gap: 26px;
  align-items: end;
  border-radius: 8px;
  background:
    linear-gradient(120deg, rgba(23, 19, 15, 0.88), rgba(23, 44, 75, 0.64)),
    url("../img/hero-tenun.png") center / cover;
  color: var(--paper);
  padding: clamp(28px, 5vw, 58px);
  box-shadow: var(--shadow);
}

.catalog-hero p,
.admin-hero p {
  color: rgba(255, 250, 240, 0.78);
}

.catalog-search {
  display: grid;
  gap: 9px;
}

.catalog-search label {
  color: rgba(255, 250, 240, 0.8);
  font-weight: 800;
}

.catalog-search div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.catalog-search input,
.form-stack input,
.form-stack textarea,
.form-stack select,
.buy-box input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--ink);
  outline: none;
  padding: 13px 14px;
}

.catalog-search button,
.buy-box button {
  border: 0;
  border-radius: 8px;
  background: var(--gold);
  color: var(--ink);
  padding: 0 18px;
  font-weight: 900;
}

.catalog-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  margin-top: 28px;
}

.filter-panel {
  position: sticky;
  top: 104px;
  display: flex;
  align-self: start;
  flex-direction: column;
  gap: 8px;
  padding: 18px;
}

.filter-panel h2 {
  margin: 0 0 8px;
  font-family: Georgia, "Times New Roman", serif;
}

.filter-panel a {
  display: grid;
  min-height: 54px;
  align-content: center;
  gap: 3px;
  border-radius: 8px;
  padding: 11px 12px;
  color: var(--muted);
  font-weight: 800;
  line-height: 1.2;
}

.filter-panel a small {
  display: block;
  color: inherit;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.15;
  opacity: 0.78;
}

.filter-chips a {
  display: flex;
  min-height: 44px;
  flex: 0 0 auto;
  align-items: center;
  border-radius: 8px;
  padding: 11px 12px;
  color: var(--muted);
  font-weight: 800;
  line-height: 1.25;
}

.filter-panel a.active,
.filter-panel a:hover,
.filter-chips a.active,
.filter-chips a:hover {
  background: var(--ink);
  color: var(--paper);
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 24px auto 0;
}

.pagination a,
.pagination span {
  display: inline-flex;
  min-width: 42px;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--muted);
  padding: 0 13px;
  font-weight: 900;
}

.pagination a:hover,
.pagination .active {
  background: var(--ink);
  color: var(--paper);
}

.pagination .disabled {
  opacity: 0.42;
}

.result-bar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
}

.result-bar a {
  color: var(--teal);
  font-weight: 900;
}

.detail-layout,
.checkout-layout,
.cart-layout,
.order-admin-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(310px, 430px);
  gap: 28px;
  align-items: start;
}

.detail-media {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.detail-media img {
  width: 100%;
  min-height: 520px;
  object-fit: cover;
}

.detail-media span {
  position: absolute;
  left: 18px;
  bottom: 18px;
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.92);
  padding: 8px 12px;
  font-weight: 900;
}

.detail-copy,
.checkout-form {
  display: grid;
  gap: 20px;
}

.detail-spec {
  display: grid;
  gap: 10px;
  margin: 0;
}

.detail-spec div {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 11px;
}

.detail-spec dt {
  color: var(--muted);
  font-weight: 800;
}

.detail-spec dd {
  margin: 0;
  font-weight: 900;
}

.buy-box {
  display: grid;
  gap: 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
  padding: 16px;
  box-shadow: 0 10px 34px rgba(23, 19, 15, 0.08);
}

.buy-box > div {
  display: grid;
  grid-template-columns: 100px auto 1fr;
  gap: 10px;
}

.note-box {
  padding: 16px;
}

.auth-page {
  min-height: 100vh;
  padding: 128px 16px 80px;
}

.auth-card,
.form-panel {
  width: min(720px, 100%);
  margin: 0 auto;
  padding: clamp(22px, 4vw, 36px);
}

.form-stack {
  display: grid;
  gap: 16px;
}

.form-stack label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 800;
}

.form-stack input:focus,
.form-stack textarea:focus,
.form-stack select:focus,
.catalog-search input:focus,
.buy-box input:focus {
  border-color: rgba(15, 106, 104, 0.52);
  box-shadow: 0 0 0 4px rgba(15, 106, 104, 0.12);
}

.form-hint {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1.5;
}

.password-field {
  position: relative;
  display: block;
}

.password-field input {
  padding-right: 52px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: rgba(15, 106, 104, 0.09);
  color: var(--teal);
  transform: translateY(-50%);
}

.password-toggle svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.password-toggle.is-visible {
  background: var(--teal);
  color: var(--paper);
}

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

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

.check-row {
  display: flex !important;
  grid-template-columns: none !important;
  align-items: center;
  gap: 10px !important;
}

.check-row input {
  width: auto;
  accent-color: var(--teal);
}

.demo-box,
.auth-switch {
  border-top: 1px solid var(--line);
  margin-top: 18px;
  padding-top: 16px;
}

.demo-box p,
.auth-switch {
  color: var(--muted);
}

.demo-account-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.demo-account {
  display: grid;
  gap: 5px;
  padding: 12px 14px;
  border: 1px solid rgba(151, 8, 49, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.74);
}

.demo-account span {
  color: var(--navy);
  font-weight: 900;
}

.demo-account code {
  overflow-wrap: anywhere;
  font-family: inherit;
  color: var(--maroon);
  font-weight: 900;
}

.demo-account small {
  color: var(--muted);
  font-weight: 800;
}

.demo-account b {
  color: var(--navy);
}

html[data-theme="dark"] .demo-account {
  border-color: rgba(126, 216, 255, 0.22);
  background: rgba(9, 31, 58, 0.78);
}

html[data-theme="dark"] .demo-account span,
html[data-theme="dark"] .demo-account b {
  color: #f5fbff;
}

html[data-theme="dark"] .demo-account code {
  color: #7ed8ff;
}

html[data-theme="dark"] .demo-account small {
  color: #b8d2e8;
}

.auth-switch {
  display: grid;
  gap: 8px;
}

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

.cart-layout {
  display: block;
  margin-top: 26px;
}

.cart-table {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(310px, 430px);
  gap: 28px;
  align-items: start;
}

.cart-items-list {
  display: grid;
  gap: 12px;
}

.cart-item {
  display: grid;
  grid-template-columns: 38px 110px 1fr 90px 130px auto;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
  padding: 12px;
}

.cart-select {
  display: inline-grid;
  place-items: center;
}

.cart-select input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.cart-select span {
  width: 26px;
  height: 26px;
  border: 2px solid rgba(15, 106, 104, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 0 0 4px rgba(255, 255, 255, 0.72);
}

.cart-select input:checked + span {
  border-color: var(--teal);
  background: var(--teal);
}

.cart-select input:checked + span::after {
  content: "";
  display: block;
  width: 11px;
  height: 6px;
  margin: 7px auto 0;
  border-bottom: 3px solid #fff;
  border-left: 3px solid #fff;
  transform: rotate(-45deg);
}

.cart-item img {
  width: 110px;
  height: 82px;
  border-radius: 8px;
  object-fit: cover;
}

.cart-item strong,
.cart-item span,
.cart-item small {
  display: block;
}

.cart-item small {
  color: var(--muted);
}

.cart-item input[type="number"] {
  width: 90px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
}

.cart-actions-stack {
  display: grid;
  gap: 6px;
  justify-items: end;
}

.cart-actions-stack small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1.2;
  text-align: right;
}

.cart-actions-stack small.is-saving {
  color: var(--gold);
}

.cart-actions-stack small.is-saved {
  color: var(--teal);
}

.cart-actions-stack small.is-error {
  color: var(--ember);
}

.icon-button,
.table-action {
  border-color: rgba(15, 106, 104, 0.18);
  background: rgba(15, 106, 104, 0.08);
  color: var(--teal);
}

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

.summary-card h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.7rem;
}

.summary-card > div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.summary-total {
  font-size: 1.15rem;
}

.payment-method-group {
  display: grid;
  gap: 10px;
  color: var(--muted);
  font-weight: 800;
}

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

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

.delivery-location-picker {
  display: grid;
  gap: 10px;
}

.delivery-location-picker[hidden] {
  display: none;
}

.location-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.location-actions .primary-button {
  width: auto;
  min-height: 44px;
}

.location-actions .ghost-button,
.location-actions .table-action {
  min-height: 44px;
}

.is-location-map-open {
  overflow: hidden;
}

.location-map-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  background: rgba(21, 17, 13, 0.68);
  padding: 20px;
}

.location-map-modal[hidden] {
  display: none;
}

.location-map-dialog {
  display: grid;
  width: min(1120px, 100%);
  max-height: min(860px, calc(100vh - 40px));
  gap: 14px;
  border: 1px solid rgba(245, 214, 138, 0.34);
  border-radius: 8px;
  background: #fffaf0;
  padding: 16px;
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.34);
}

.location-map-head,
.location-map-tools,
.location-map-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.location-map-head strong {
  display: block;
  font-size: 1.1rem;
}

.location-map-head small,
.location-map-foot span {
  color: var(--muted);
  font-weight: 800;
}

.location-map-tools {
  justify-content: flex-start;
  flex-wrap: wrap;
}

.location-search-box {
  position: relative;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  flex: 1 1 420px;
  gap: 8px;
}

.location-search-box input {
  min-height: 42px;
}

.location-search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 5;
  display: grid;
  max-height: 260px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.98);
  box-shadow: 0 18px 50px rgba(30, 24, 18, 0.16);
  padding: 8px;
}

.location-search-results[hidden] {
  display: none;
}

.location-search-results button {
  border: 0;
  border-radius: 7px;
  background: transparent;
  padding: 10px;
  color: var(--ink);
  font: inherit;
  font-weight: 800;
  line-height: 1.35;
  text-align: left;
}

.location-search-results button:hover {
  background: rgba(15, 106, 104, 0.1);
}

.location-search-results p {
  margin: 0;
  padding: 10px;
  color: var(--muted);
  font-weight: 800;
}

.location-map-tools .ghost-button {
  min-height: 42px;
  padding: 10px 14px;
}

.location-map-canvas {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border: 1px solid rgba(15, 106, 104, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(15, 106, 104, 0.12), rgba(244, 182, 78, 0.1)),
    #efe7d8;
  cursor: grab;
  touch-action: none;
}

.location-map-engine {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: none;
}

.location-map-canvas.has-leaflet {
  cursor: grab;
  touch-action: auto;
}

.location-map-canvas.has-leaflet .location-map-engine {
  display: block;
}

.location-map-canvas.has-leaflet .location-map-pin,
.location-map-canvas.has-leaflet .location-map-credit,
.location-map-canvas.has-leaflet .location-map-tiles {
  display: none;
}

.location-map-canvas .leaflet-container {
  font-family: inherit;
}

.location-map-canvas .leaflet-control-zoom a {
  color: var(--ink);
  font-weight: 900;
}

.location-map-canvas .leaflet-popup-content-wrapper,
.location-map-canvas .leaflet-popup-tip {
  background: #fffaf0;
  color: var(--ink);
}

.location-map-canvas:active {
  cursor: grabbing;
}

.location-map-tiles {
  position: absolute;
  inset: 0;
}

.location-map-tiles img {
  position: absolute;
  width: 256px;
  height: 256px;
  user-select: none;
  pointer-events: none;
}

.location-map-pin {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: 28px;
  height: 28px;
  border: 4px solid #fffaf0;
  border-radius: 50% 50% 50% 0;
  background: var(--ember);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.28);
  transform: translate(-50%, -100%) rotate(-45deg);
}

.location-map-pin::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 999px;
  background: #fffaf0;
}

.location-map-credit {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 3;
  border-radius: 6px;
  background: rgba(255, 250, 240, 0.9);
  padding: 5px 8px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 900;
}

.payment-option {
  display: flex !important;
  min-height: 118px;
  align-items: flex-start;
  gap: 10px !important;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
  padding: 13px;
  color: var(--ink) !important;
}

.payment-option input {
  width: auto;
  margin-top: 3px;
  accent-color: var(--teal);
}

.payment-option strong,
.payment-option small {
  display: block;
}

.payment-option small {
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.45;
}

.delivery-area-group .payment-option {
  min-height: 102px;
}

.payment-panel,
.payment-card {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(15, 106, 104, 0.18);
  border-radius: 8px;
  background: rgba(15, 106, 104, 0.07);
  padding: 14px;
}

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

.payment-panel p,
.payment-card p {
  margin: 0;
}

.summary-card > .payment-card {
  display: grid;
  justify-content: stretch;
}

.qris-card {
  justify-items: center;
  text-align: center;
}

.qris-image {
  width: min(240px, 100%);
  border: 10px solid #fff;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(23, 19, 15, 0.12);
}

.proof-preview {
  width: 100%;
  max-height: 260px;
  border-radius: 8px;
  object-fit: cover;
}

.variant-editor {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(15, 106, 104, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.62);
  padding: 16px;
}

.variant-editor > div:first-child {
  display: grid;
  gap: 4px;
}

.variant-editor > div:first-child span {
  color: var(--ink);
  font-weight: 900;
}

.variant-editor small {
  color: var(--muted);
  font-weight: 700;
  line-height: 1.5;
}

.variant-row {
  display: grid;
  grid-template-columns: 1.15fr 0.8fr 0.8fr 0.9fr 0.72fr;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.variant-row label {
  gap: 6px !important;
}

.variant-row input {
  min-width: 0;
}

.nav-badge {
  display: inline-grid;
  min-width: 24px;
  height: 24px;
  place-items: center;
  margin-left: 6px;
  border-radius: 999px;
  background: var(--gold);
  color: #21150f;
  font-size: 0.78rem;
  font-weight: 900;
}

.chat-layout,
.seller-chat-layout {
  display: grid;
  grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
  gap: 22px;
  width: min(1560px, calc(100% - 40px));
  margin: 0 auto 70px;
}

.seller-chat-layout {
  display: block;
}

.seller-chat-inner {
  display: grid;
  grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
  gap: 22px;
}

.chat-faq-panel,
.seller-thread-list,
.chat-room {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 18px 50px rgba(30, 24, 18, 0.08);
}

.chat-faq-panel,
.seller-thread-list {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 20px;
}

.chat-faq-panel h2,
.seller-thread-list h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.65rem;
}

.chat-faq-panel p,
.seller-thread-list p {
  margin: 0;
  color: var(--muted);
}

.chat-faq-panel form {
  margin: 0;
}

.chat-faq-panel button,
.seller-thread-list a {
  width: 100%;
  border: 1px solid rgba(15, 106, 104, 0.14);
  border-radius: 8px;
  background: rgba(15, 106, 104, 0.07);
  padding: 12px 14px;
  color: var(--ink);
  text-align: left;
  font-weight: 900;
}

.chat-faq-panel button:hover,
.seller-thread-list a:hover,
.seller-thread-list a.active {
  border-color: rgba(15, 106, 104, 0.38);
  background: rgba(15, 106, 104, 0.12);
}

.seller-thread-list a {
  display: grid;
  gap: 4px;
}

.seller-thread-list a span {
  width: fit-content;
  border-radius: 999px;
  background: rgba(137, 39, 31, 0.1);
  color: var(--ember);
  padding: 3px 9px;
  font-size: 0.78rem;
  font-weight: 900;
}

.seller-thread-list a small {
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.seller-thread-list {
  max-height: min(720px, calc(100vh - 180px));
  overflow: auto;
}

.chat-room {
  display: grid;
  min-height: 650px;
  overflow: hidden;
}

.chat-room-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid var(--line);
  padding: 18px 20px;
}

.chat-room-header span,
.chat-room-header small {
  display: block;
  color: var(--muted);
  font-weight: 800;
}

.chat-room-header strong {
  display: block;
  font-size: 1.3rem;
}

.chat-alert {
  border-radius: 999px;
  background: rgba(137, 39, 31, 0.1);
  color: var(--ember) !important;
  padding: 6px 10px;
}

.chat-messages {
  display: grid;
  max-height: 520px;
  align-content: start;
  gap: 12px;
  overflow: auto;
  padding: 20px;
  scroll-behavior: smooth;
}

.chat-bubble {
  display: grid;
  max-width: min(680px, 88%);
  gap: 6px;
  border-radius: 8px;
  padding: 12px 14px;
}

.chat-bubble span {
  font-weight: 900;
}

.chat-bubble p {
  margin: 0;
  line-height: 1.55;
}

.chat-bubble small {
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.78rem;
  font-weight: 800;
}

.chat-buyer {
  justify-self: end;
  background: linear-gradient(135deg, var(--teal), #104d62);
  color: #fff;
}

.chat-seller {
  justify-self: start;
  background: rgba(31, 25, 20, 0.9);
  color: #fff;
}

.chat-system {
  justify-self: start;
  background: rgba(244, 213, 127, 0.28);
  color: var(--ink);
}

.chat-system small {
  color: var(--muted);
}

.chat-compose {
  display: grid;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding: 18px 20px;
}

.chat-compose label {
  color: var(--muted);
  font-weight: 900;
}

.chat-compose textarea {
  width: 100%;
  resize: vertical;
}

.chat-compose button.is-loading,
.chat-faq-panel button.is-loading {
  opacity: 0.72;
  transform: none;
}

.summary-card small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-weight: 800;
}

.full {
  width: 100%;
}

.checkout-layout {
  align-items: start;
}

.empty-state {
  display: grid;
  justify-items: start;
  gap: 12px;
  margin-top: 28px;
  padding: 28px;
}

.empty-state h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
}

.admin-page {
  width: min(1220px, calc(100% - 32px));
}

.admin-tabs,
.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.admin-tabs a {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
  padding: 11px 14px;
  color: var(--muted);
  font-weight: 900;
}

.admin-tabs a:hover {
  background: var(--ink);
  color: var(--paper);
}

.admin-hero {
  grid-template-columns: 1fr auto;
  margin-bottom: 24px;
}

.report-hero {
  align-items: stretch;
}

.report-period-note {
  display: grid;
  align-content: center;
  gap: 6px;
  min-width: 260px;
  border: 1px solid rgba(245, 214, 138, 0.36);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.12);
  padding: 16px;
}

.report-period-note span {
  color: rgba(255, 250, 240, 0.72);
  font-weight: 900;
}

.report-period-note strong {
  color: var(--paper);
  font-size: 1.05rem;
}

.report-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.report-toolbar a {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
  padding: 11px 14px;
  color: var(--muted);
  font-weight: 900;
}

.report-toolbar a.active,
.report-toolbar a:hover {
  background: var(--ink);
  color: var(--paper);
}

.metric-card {
  padding: 20px;
}

.metric-card span {
  color: var(--muted);
  font-weight: 900;
}

.metric-card strong {
  display: block;
  margin-top: 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.admin-table-wrap {
  overflow-x: auto;
  margin-top: 24px;
  padding: 12px;
}

.report-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.8fr);
  gap: 22px;
  margin-top: 24px;
}

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

.report-chart-card,
.report-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
  padding: 14px;
  box-shadow: 0 18px 50px rgba(30, 24, 18, 0.08);
}

.chart-frame {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  border: 1px solid rgba(15, 106, 104, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(15, 106, 104, 0.08), rgba(244, 182, 78, 0.08)),
    rgba(255, 250, 240, 0.76);
  padding: 12px;
}

.chart-frame canvas {
  display: block;
  width: 100%;
  height: 336px;
}

.report-list,
.report-bars {
  display: grid;
  gap: 12px;
}

.report-list-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 5px 12px;
  border-bottom: 1px solid var(--line);
  padding: 10px 4px 12px;
}

.report-list-row span,
.report-bar span {
  color: var(--muted);
  font-weight: 900;
}

.report-list-row strong,
.report-bar strong {
  color: var(--ink);
  font-weight: 900;
}

.report-list-row small {
  grid-column: 1 / -1;
  color: var(--teal);
  font-weight: 900;
}

.report-bar {
  display: grid;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  padding: 10px 4px 14px;
}

.report-bar > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.report-progress {
  overflow: hidden;
  height: 10px;
  border-radius: 999px;
  background: rgba(15, 106, 104, 0.12);
}

.report-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), var(--gold), var(--ember));
}

.report-bar small,
.report-empty {
  color: var(--muted);
  font-weight: 800;
}

.table-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 4px 4px 14px;
}

.table-head h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
}

.table-head a {
  color: var(--teal);
  font-weight: 900;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

.admin-table th,
.admin-table td {
  border-bottom: 1px solid var(--line);
  padding: 14px 12px;
  text-align: left;
  vertical-align: middle;
}

.admin-table th {
  color: var(--muted);
  font-size: 0.86rem;
  text-transform: uppercase;
}

.admin-table td small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-weight: 800;
}

.table-product {
  display: flex;
  align-items: center;
  gap: 10px;
}

.table-product img {
  width: 54px;
  height: 54px;
  border-radius: 8px;
  object-fit: cover;
}

.table-product small {
  display: block;
  color: var(--muted);
}

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

.table-actions form {
  margin: 0;
}

.table-action {
  min-height: 36px;
  border: 0;
  padding-inline: 11px;
}

button.table-action {
  border: 1px solid rgba(15, 106, 104, 0.18);
}

.danger-action {
  border-color: rgba(120, 37, 31, 0.18) !important;
  background: rgba(120, 37, 31, 0.08) !important;
  color: var(--ember) !important;
}

.status-pill {
  display: inline-flex;
  border-radius: 8px;
  background: rgba(196, 154, 74, 0.16);
  color: #6a4515;
  padding: 7px 9px;
  font-size: 0.82rem;
  font-weight: 900;
}

.danger-status {
  margin-left: 6px;
  background: rgba(120, 37, 31, 0.1);
  color: var(--ember);
}

.order-stepper {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0;
}

.order-step {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  padding: 8px 11px;
  font-size: 0.84rem;
  font-weight: 900;
}

.order-step b {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: rgba(112, 100, 90, 0.14);
  color: inherit;
  font-size: 0.78rem;
}

.order-step.is-complete {
  border-color: rgba(15, 106, 104, 0.22);
  background: rgba(15, 106, 104, 0.08);
  color: var(--teal);
}

.order-step.is-current {
  border-color: rgba(196, 154, 74, 0.38);
  background: linear-gradient(135deg, rgba(248, 211, 122, 0.36), rgba(204, 118, 54, 0.22));
  color: var(--ink);
  box-shadow: 0 14px 34px rgba(196, 154, 74, 0.16);
}

.order-step-cancel.is-current {
  border-color: rgba(120, 37, 31, 0.28);
  background: rgba(120, 37, 31, 0.1);
  color: var(--ember);
  box-shadow: none;
}

.summary-card .payment-stepper {
  gap: 6px;
  margin: 8px 0 2px;
}

.summary-card .payment-stepper .order-step {
  min-height: 38px;
  padding: 7px 9px;
  font-size: 0.78rem;
}

.summary-card .payment-stepper .order-step b {
  width: 22px;
  height: 22px;
}

.current-image {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-weight: 800;
}

.current-image img {
  width: 112px;
  height: 78px;
  border-radius: 8px;
  object-fit: cover;
}

.compact-form {
  border-top: 1px solid var(--line);
  margin-top: 10px;
  padding-top: 14px;
}

.danger-panel {
  border: 1px solid rgba(120, 37, 31, 0.18);
  border-radius: 8px;
  background: rgba(120, 37, 31, 0.05);
  padding: 14px;
}

.danger-panel small {
  color: var(--muted);
  font-weight: 800;
}

.order-detail {
  display: grid;
  gap: 22px;
}

.site-footer {
  display: grid;
  grid-template-columns: 1.25fr 0.7fr 1.2fr 1fr;
  align-items: start;
  gap: 24px;
  border-top: 1px solid var(--line);
  padding: 36px 0 46px;
}

.footer-brand {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.footer-brand img {
  width: 54px;
  height: 54px;
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(23, 19, 15, 0.16);
}

.site-footer p,
.footer-contact,
.footer-links,
.footer-badge {
  color: var(--muted);
  line-height: 1.6;
}

.site-footer p {
  margin: 6px 0 0;
}

.footer-links,
.footer-contact,
.footer-badge {
  display: grid;
  gap: 8px;
}

.footer-links strong,
.footer-contact strong,
.footer-badge strong {
  color: var(--ink);
  font-family: inherit;
  font-size: 0.95rem;
}

.footer-links a {
  color: var(--muted);
  font-weight: 800;
}

.footer-links a:hover {
  color: var(--teal);
}

.footer-badge {
  border: 1px solid rgba(23, 19, 15, 0.1);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(23, 44, 75, 0.96), rgba(15, 106, 104, 0.88));
  color: rgba(255, 250, 240, 0.78);
  padding: 16px;
}

.footer-badge strong {
  color: var(--paper);
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 620ms ease, transform 620ms ease;
}

[data-cart-count].is-updated {
  animation: cartCountPop 380ms ease;
}

.cart-toast-stack {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 100;
  display: grid;
  gap: 10px;
  width: min(340px, calc(100% - 40px));
}

.cart-toast {
  border-radius: 8px;
  background: var(--teal);
  color: var(--paper);
  box-shadow: var(--shadow);
  padding: 14px 16px;
  font-weight: 800;
  animation: toastIn 220ms ease;
}

.cart-toast-error {
  background: var(--ember);
}

.cart-toast.is-hiding {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 240ms ease, transform 240ms ease;
}

.main-nav a.active,
.admin-tabs a.active,
.filter-chips a.active,
.report-toolbar a.active {
  background: linear-gradient(135deg, var(--copper), #7f3827);
  color: var(--paper);
}

.product-actions {
  display: grid;
  grid-template-columns: 44px 44px minmax(88px, auto);
  align-items: center;
}

.product-actions form {
  width: 44px;
}

.chat-icon-button {
  position: relative;
  display: inline-grid;
  width: 44px;
  min-height: 40px;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--indigo), var(--teal));
  color: var(--paper);
}

.chat-icon-button span {
  position: relative;
  width: 22px;
  height: 18px;
  border: 2px solid currentColor;
  border-radius: 7px;
}

.chat-icon-button span::after {
  content: "";
  position: absolute;
  right: 3px;
  bottom: -6px;
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  background: inherit;
  transform: rotate(45deg);
}

.detail-cart-button,
.detail-chat-button {
  min-width: 44px;
  width: auto;
}

.buy-box > div {
  grid-template-columns: 96px auto 44px minmax(96px, 1fr);
  align-items: center;
}

.product-thumbs {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 3;
  display: flex;
  max-width: calc(100% - 32px);
  gap: 8px;
}

.product-thumbs button {
  width: 62px;
  height: 48px;
  overflow: hidden;
  border: 2px solid rgba(255, 250, 240, 0.72);
  border-radius: 8px;
  background: var(--paper);
  padding: 0;
  opacity: 0.72;
}

.product-thumbs button.active,
.product-thumbs button:hover {
  border-color: var(--gold);
  opacity: 1;
}

.product-thumbs img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
}

.color-preview-list span {
  align-items: center;
}

.color-preview-list i,
.color-option i {
  display: inline-block;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border: 2px solid rgba(23, 19, 15, 0.12);
  border-radius: 50%;
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.45);
}

.size-modal-label {
  display: block;
  margin: 12px 0 8px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.size-modal-colors {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
  margin-bottom: 8px;
}

.size-modal-colors .size-modal-label {
  grid-column: 1 / -1;
}

.color-option {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 58px;
  border: 1px solid rgba(15, 106, 104, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  padding: 11px 13px;
  color: var(--ink);
  font-weight: 900;
  text-align: left;
}

.color-option.active,
.size-option.active {
  border-color: var(--teal);
  background: rgba(15, 106, 104, 0.12);
  box-shadow: 0 0 0 3px rgba(15, 106, 104, 0.1);
}

.color-option.active {
  border-color: var(--choice-color, var(--teal));
}

.color-option strong {
  min-width: 0;
  line-height: 1.22;
  overflow-wrap: anywhere;
}

.size-modal-confirm {
  margin-top: 14px;
}

.chat-product-card {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 10px;
  margin: 9px 0;
  border: 1px solid rgba(15, 106, 104, 0.14);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.72);
  padding: 8px;
}

.chat-buyer .chat-product-card {
  border-color: rgba(255, 250, 240, 0.24);
  background: rgba(255, 255, 255, 0.2);
}

.chat-product-card img {
  width: 58px;
  height: 52px;
  border-radius: 8px;
  object-fit: cover;
}

.chat-product-card strong,
.chat-product-card small,
.chat-product-card b {
  display: block;
}

.chat-product-card small {
  color: inherit;
  opacity: 0.78;
}

.chat-product-card b {
  color: var(--teal);
}

.chat-buyer .chat-product-card b {
  color: var(--paper);
}

.type-picker,
.media-grid,
.news-grid,
.guide-book,
.gallery-admin-grid {
  display: grid;
  gap: 16px;
}

.type-picker {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin-bottom: 24px;
}

.type-picker a,
.preorder-box,
.gallery-upload-box,
.notice-card,
.guide-book article,
.media-card,
.news-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 14px 40px rgba(23, 19, 15, 0.07);
}

.type-picker a {
  display: grid;
  gap: 6px;
  padding: 16px;
  color: var(--muted);
}

.type-picker a strong {
  color: var(--ink);
}

.type-picker a.active {
  background: linear-gradient(135deg, var(--copper), var(--teal));
  color: rgba(255, 250, 240, 0.84);
}

.type-picker a.active strong {
  color: var(--paper);
}

.preorder-box,
.gallery-upload-box,
.notice-card {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.checkbox-line {
  display: flex !important;
  align-items: center;
  gap: 10px;
}

.checkbox-line input {
  width: 18px;
  height: 18px;
}

.gallery-admin-grid {
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
}

.gallery-admin-grid label {
  display: grid;
  gap: 8px;
}

.gallery-admin-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  object-fit: cover;
}

.notice-card {
  border-color: rgba(196, 154, 74, 0.38);
  background: rgba(244, 213, 127, 0.16);
}

.buyer-welcome {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  margin-top: -8px;
  margin-bottom: 26px;
  border: 1px solid rgba(15, 106, 104, 0.18);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(15, 106, 104, 0.12), rgba(244, 213, 127, 0.22));
  padding: clamp(16px, 3vw, 24px);
}

.buyer-welcome h2 {
  margin: 0 0 6px;
  font-family: Georgia, "Times New Roman", serif;
}

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

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

.media-card {
  overflow: hidden;
}

.media-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.media-card div,
.news-card div {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.media-card h2,
.news-card h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
}

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

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

.news-card {
  overflow: hidden;
}

.news-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.news-card span {
  color: var(--teal);
  font-weight: 900;
}

.article-page {
  display: grid;
  gap: 22px;
}

.article-page > img {
  width: 100%;
  max-height: 520px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.article-content {
  width: min(840px, 100%);
  font-size: 1.06rem;
  line-height: 1.75;
}

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

.guide-book article {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 12px;
  padding: 16px;
}

.guide-book b {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 8px;
  background: var(--ink);
  color: var(--paper);
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.social-links a {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(255, 250, 240, 0.22);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.1);
  color: var(--paper);
  font-size: 0.78rem;
  font-weight: 900;
}

.social-links a.is-empty {
  opacity: 0.45;
}

.cart-item {
  grid-template-columns: 38px 110px minmax(0, 1fr) 96px 130px 92px;
  grid-template-areas: "select image info qty subtotal remove";
}

.cart-select {
  grid-area: select;
}

.cart-item > img {
  grid-area: image;
}

.cart-item > div {
  grid-area: info;
  min-width: 0;
}

.cart-item > input[type="number"] {
  grid-area: qty;
}

.cart-item > strong[data-cart-item-subtotal] {
  grid-area: subtotal;
  white-space: nowrap;
}

.cart-item > .table-action {
  grid-area: remove;
}

.order-admin-layout {
  grid-template-columns: minmax(0, 1.18fr) minmax(320px, 0.82fr);
}

.order-admin-layout .summary-card {
  gap: 10px;
}

.main-header {
  width: min(1500px, calc(100% - 18px));
  grid-template-columns: minmax(330px, 0.72fr) minmax(0, auto) auto;
  gap: 14px;
  overflow: visible;
}

.brand {
  overflow: visible;
}

.brand img {
  flex: 0 0 auto;
}

.brand span {
  min-width: 0;
  overflow: visible;
}

.brand strong {
  white-space: nowrap;
}

.brand small {
  max-width: 430px;
  overflow: visible;
  line-height: 1.18;
  text-overflow: clip;
  white-space: normal;
}

.main-nav {
  min-width: 0;
  justify-content: center;
}

.main-nav a {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 clamp(10px, 0.85vw, 18px);
  white-space: nowrap;
}

.header-actions {
  min-width: max-content;
}

.header-actions > * {
  min-height: 48px;
}

.account-floating-badge {
  display: inline-grid;
  width: 48px;
  height: 48px;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 250, 240, 0.24);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.08);
}

.account-floating-badge img {
  width: 34px;
  height: 34px;
}

.catalog-layout.is-loading {
  opacity: 0.58;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.admin-page.is-loading .admin-hero,
.admin-page.is-loading [data-product-type-picker],
.admin-page.is-loading [data-admin-products-controls],
.admin-page.is-loading [data-admin-products-root],
.admin-page.is-loading .form-panel,
[data-users-root].is-loading,
[data-report-root].is-loading,
[data-orders-root].is-loading,
[data-admin-orders-root].is-loading,
[data-chat-page-root].is-loading {
  opacity: 0.55;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.product-card-gallery .product-image-link {
  position: absolute;
  inset: 0;
  display: block;
  overflow: hidden;
}

.product-card-gallery .product-gallery-frame {
  position: absolute;
  inset: 0;
  display: block;
  opacity: 1 !important;
  transform: translate3d(0, 0, 0);
  transition: none;
  backface-visibility: hidden;
  will-change: transform;
}

.product-card-gallery .product-gallery-frame[hidden] {
  display: none !important;
}

.product-card-gallery.is-gallery-animating .product-gallery-frame {
  filter: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .product-card-gallery .product-gallery-frame {
    transition: none !important;
  }
}

.gallery-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid rgba(255, 250, 240, 0.38);
  border-radius: 8px;
  background: rgba(23, 19, 15, 0.62);
  color: var(--paper);
  transform: translateY(-50%);
}

.gallery-arrow::before {
  content: "";
  width: 10px;
  height: 10px;
  border-top: 2px solid currentColor;
  border-left: 2px solid currentColor;
}

.gallery-prev {
  left: 10px;
}

.gallery-prev::before {
  transform: rotate(-45deg);
}

.gallery-next {
  right: 10px;
}

.gallery-next::before {
  transform: rotate(135deg);
}

.gallery-arrow:hover {
  background: var(--teal);
}

.product-detail-link {
  justify-self: start;
  color: var(--teal);
  font-size: 0.9rem;
  font-weight: 900;
}

.product-detail-link:hover {
  color: var(--copper);
}

.back-to-catalog {
  width: fit-content;
  margin-top: -2px;
}

.product-detail-v2__back {
  border: 2px solid #8f0028;
  background: #a5002d;
  color: #fff;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(165, 0, 45, 0.2);
}

.product-detail-v2__back:hover,
.product-detail-v2__back:focus-visible {
  border-color: #071e38;
  background: #071e38;
  color: #fff;
}

.product-detail-v2__zoom-trigger {
  display: block;
  width: 100%;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: zoom-in;
}

.admin-filter-panel {
  display: grid;
  gap: 12px;
  margin: 10px 0 18px;
}

.admin-product-search {
  max-width: 680px;
}

.admin-product-search label,
.order-search label {
  color: var(--muted);
}

.product-filter-row {
  margin: 0;
}

.filter-panel a {
  grid-template-columns: 1fr;
}

.filter-panel a span {
  display: block;
}

.filter-panel a small {
  display: block;
  margin-top: 4px;
}

.form-stack input[name="badge"] {
  min-height: 54px;
  line-height: 1.25;
}

.subpage > .catalog-hero + .media-grid,
.subpage > .catalog-hero + .news-grid {
  margin-top: 36px;
}

.subpage > .catalog-hero + .guide-book {
  margin-top: clamp(28px, 3.2vw, 46px);
}

.public-body .subpage > .catalog-hero:first-child {
  margin-top: 18px;
}

.form-grid-two > label,
.form-grid-two input,
.form-grid-two select {
  min-width: 0;
}

.buy-now-button {
  min-height: 40px;
  min-width: 106px;
  border-radius: 8px;
  box-shadow: 0 10px 22px rgba(184, 106, 56, 0.16);
}

.buy-now-button::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
}

.color-choice-panel {
  display: grid;
  gap: 10px;
}

.color-choice-panel > span,
.variant-editor-head > span {
  color: var(--ink);
  font-weight: 900;
}

.color-choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.color-choice {
  display: flex !important;
  min-height: 54px;
  flex-direction: row !important;
  align-items: center;
  gap: 10px !important;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
  padding: 10px;
}

.color-choice input {
  width: 18px;
  height: 18px;
}

.color-choice i {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  border: 2px solid rgba(23, 19, 15, 0.14);
  border-radius: 50%;
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.5);
}

.color-choice b {
  font-weight: 900;
}

.variant-editor-head {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px;
  gap: 6px 10px;
  align-items: start;
}

.variant-editor-head small,
.variant-editor-head .help-popover {
  grid-column: 1 / -1;
}

.help-icon {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid rgba(15, 106, 104, 0.28);
  border-radius: 50%;
  background: rgba(15, 106, 104, 0.1);
  color: var(--teal);
  font-weight: 900;
}

.help-popover {
  border: 1px solid rgba(15, 106, 104, 0.16);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.92);
  padding: 12px;
}

.help-popover p {
  margin: 6px 0 0;
}

.quick-reply-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.quick-reply-row button {
  min-height: 36px;
  border: 1px solid rgba(15, 106, 104, 0.18);
  border-radius: 8px;
  background: rgba(15, 106, 104, 0.08);
  color: var(--teal);
  padding: 0 12px;
  font-weight: 900;
}

.quick-reply-row button:hover {
  background: rgba(15, 106, 104, 0.16);
}

.cancel-order-panel {
  border: 1px solid rgba(120, 37, 31, 0.16);
  border-radius: 8px;
  background: rgba(120, 37, 31, 0.04);
  padding: 0;
}

.cancel-order-panel summary {
  min-height: 44px;
  cursor: pointer;
  list-style: none;
  padding: 12px 14px;
  color: var(--ember);
  font-weight: 900;
}

.cancel-order-panel summary::-webkit-details-marker {
  display: none;
}

.cancel-order-panel summary::after {
  content: "+";
  float: right;
}

.cancel-order-panel[open] summary::after {
  content: "-";
}

.cancel-order-panel .danger-panel {
  margin: 0 12px 12px;
}

.site-footer {
  border: 1px solid rgba(255, 250, 240, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(23, 19, 15, 0.96), rgba(23, 44, 75, 0.94) 52%, rgba(15, 106, 104, 0.9));
  color: rgba(255, 250, 240, 0.8);
  margin-bottom: 26px;
  padding: 30px;
  box-shadow: 0 16px 42px rgba(23, 19, 15, 0.14);
}

.site-footer p,
.footer-contact,
.footer-links,
.footer-badge {
  color: rgba(255, 250, 240, 0.72);
}

.footer-links strong,
.footer-contact strong,
.footer-badge strong,
.footer-brand strong {
  color: var(--paper);
}

.footer-links a {
  color: rgba(255, 250, 240, 0.74);
}

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

.footer-badge {
  border-color: rgba(255, 250, 240, 0.14);
  background: rgba(255, 250, 240, 0.08);
}

.social-links a {
  position: relative;
  display: inline-grid;
  overflow: hidden;
  width: 42px;
  height: 42px;
  place-items: center;
  font-size: 0.72rem;
  letter-spacing: 0;
}

.social-links a span {
  display: grid;
  position: relative;
  z-index: 1;
  place-items: center;
}

.social-links a svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.social-tiktok {
  background: linear-gradient(135deg, #111, #28d7d0) !important;
}

.social-youtube {
  background: #e62117 !important;
}

.social-x {
  background: #101010 !important;
}

.social-facebook {
  background: #1877f2 !important;
  font-size: 1.1rem !important;
}

.social-instagram {
  background: linear-gradient(135deg, #feda75, #d62976, #4f5bd5) !important;
}

@keyframes loadLine {
  0% {
    transform: scaleX(0);
  }

  88% {
    transform: scaleX(1);
  }

  100% {
    transform: scaleX(1);
    opacity: 0;
  }
}

@keyframes heroDrift {
  from {
    transform: scale(1.03) translate3d(0, 0, 0);
  }

  to {
    transform: scale(1.08) translate3d(-1.4%, -1%, 0);
  }
}

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

@keyframes marqueeMove {
  to {
    transform: translateX(-50%);
  }
}

@keyframes cartCountPop {
  50% {
    transform: scale(1.24);
  }
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1280px) {
  .main-header,
  .section-wrap,
  .subpage,
  .site-footer {
    width: min(1180px, calc(100% - 20px));
  }

  .hero-section {
    padding-inline: max(18px, calc((100vw - 1040px) / 2));
  }

  .catalog-layout {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 20px;
  }

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

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

}

@media (max-width: 1240px) {
  .main-header {
    grid-template-columns: minmax(0, 1fr) auto;
    overflow: visible;
  }

  .brand small {
    max-width: min(360px, 44vw);
  }

  .menu-toggle {
    display: block;
  }

  .main-nav,
  .header-actions {
    display: none;
  }

  .main-nav.is-open,
  .header-actions.is-open {
    display: grid;
    grid-column: 1 / -1;
    width: 100%;
  }

  .main-nav.is-open {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .header-actions.is-open {
    grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
    align-items: stretch;
  }

  .main-nav.is-open a,
  .header-actions.is-open > * {
    width: 100%;
    min-height: 48px;
  }
}

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

  .menu-toggle {
    display: block;
  }

  .main-nav,
  .header-actions {
    display: none;
  }

  .main-nav.is-open,
  .header-actions.is-open {
    display: grid;
    grid-column: 1 / -1;
    width: 100%;
  }

  .main-nav.is-open {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .header-actions.is-open {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
  }

  .catalog-layout,
  .detail-layout,
  .checkout-layout,
  .cart-layout,
  .chat-layout,
  .seller-chat-layout,
  .seller-chat-inner,
  .report-grid,
  .compact-report-grid,
  .order-admin-layout {
    grid-template-columns: 1fr;
  }

  .filter-panel,
  .summary-card {
    position: static;
  }

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

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

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

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

  .cart-item {
    grid-template-columns: 34px 90px 1fr;
  }

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

  .cart-item > strong,
  .cart-item .icon-button,
  .cart-actions-stack,
  .cart-item .table-action,
  .cart-item input[type="number"] {
    grid-column: span 1;
  }

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

  .header-actions.is-open .account-floating-badge {
    width: 100%;
    height: 42px;
  }
}

@media (max-width: 720px) {
  .main-header {
    top: 10px;
    width: calc(100% - 20px);
  }

  .brand small,
  .cart-link span,
  .user-pill {
    display: none;
  }

  .account-floating-badge {
    width: 100%;
    height: 42px;
    padding: 4px;
  }

  .hero-section {
    min-height: 84vh;
    padding: 116px 20px 58px;
  }

  .hero-content h1 {
    font-size: clamp(2.25rem, 10.5vw, 3.4rem);
  }

  .hero-actions,
  .cta-section,
  .site-footer,
  .admin-hero {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions > *,
  .cta-section > *,
  .site-footer > *,
  .admin-hero > * {
    width: 100%;
  }

  .location-actions,
  .location-map-head,
  .location-map-foot {
    align-items: stretch;
    flex-direction: column;
  }

  .location-actions > *,
  .location-map-foot > * {
    width: 100%;
  }

  .location-map-dialog {
    max-height: calc(100vh - 24px);
    padding: 12px;
  }

  .location-search-box {
    grid-template-columns: 1fr;
    flex-basis: 100%;
  }

  .location-map-canvas {
    min-height: 320px;
  }

  .chart-frame {
    min-height: 300px;
  }

  .chart-frame canvas {
    height: 276px;
  }

  .report-period-note {
    min-width: 0;
  }

  .hero-stats,
  .catalog-hero,
  .admin-hero,
  .catalog-search div,
  .form-grid-two,
  .payment-options,
  .feature-grid,
  .category-grid,
  .product-grid,
  .metric-grid,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .product-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .product-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .buy-now-button {
    flex: 1 1 auto;
  }

  .catalog-hero,
  .admin-hero {
    padding-top: 34px;
  }

  .section-wrap {
    padding-top: 58px;
  }

  .subpage {
    padding-top: 112px;
  }

  .detail-media img {
    min-height: 360px;
  }

  .buy-box > div {
    grid-template-columns: 1fr;
  }

  .cart-item {
    grid-template-columns: 34px 78px 1fr;
  }

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

  .cart-item input[type="number"],
  .cart-item > strong,
  .cart-item .icon-button,
  .cart-actions-stack,
  .cart-item .table-action {
    grid-column: 1 / -1;
    width: 100%;
  }

  .cart-actions-stack {
    justify-items: stretch;
  }

  .cart-actions-stack small {
    text-align: left;
  }

  .variant-row,
  .size-option {
    grid-template-columns: 1fr;
  }

  .chat-layout,
  .seller-chat-layout,
  .seller-chat-inner {
    width: 100%;
  }

  .chat-room {
    min-height: 560px;
  }

  .chat-room-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .chat-bubble {
    max-width: 100%;
  }

  .footer-contact {
    justify-items: start;
  }

  .admin-tabs,
  .filter-chips,
  .form-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
  }

  .admin-tabs a,
  .filter-chips a,
  .form-actions > * {
    width: 100%;
    min-height: 48px;
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 560px) {
  .main-header {
    width: calc(100% - 16px);
    padding: 8px;
  }

  .brand {
    gap: 9px;
  }

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

  .brand strong {
    font-size: 1rem;
  }

  .main-nav.is-open,
  .header-actions.is-open {
    grid-template-columns: 1fr;
  }

  .main-nav a,
  .cart-link,
  .ghost-button,
  .solid-button {
    width: 100%;
  }

  .section-wrap,
  .subpage,
  .site-footer {
    width: calc(100% - 20px);
  }

  .catalog-search form,
  .result-bar {
    flex-direction: column;
  }

  .product-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
  }

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

  .cart-toast-stack,
  .flash-stack {
    right: 10px;
    width: calc(100% - 20px);
  }

  .size-modal {
    padding: 10px;
  }

  .size-modal-panel {
    max-height: calc(100vh - 20px);
    overflow: auto;
    padding: 20px;
  }

  .chat-faq-panel,
  .seller-thread-list,
  .chat-room-header,
  .chat-messages,
  .chat-compose {
    padding: 14px;
  }

  .admin-tabs,
  .filter-chips,
  .form-actions {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1280px) {
  .type-picker,
  .media-grid.compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1080px) {
  .cart-item {
    grid-template-columns: 34px 90px minmax(0, 1fr) 94px;
    grid-template-areas:
      "select image info qty"
      "select image subtotal remove";
  }

  .cart-item > strong[data-cart-item-subtotal],
  .cart-item > .table-action,
  .cart-item > input[type="number"] {
    width: 100%;
  }

  .media-grid,
  .news-grid,
  .guide-book {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .product-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    gap: 8px;
  }

  .product-actions form,
  .product-actions button,
  .product-actions a {
    width: 100%;
    min-width: 0;
  }

  .buy-box > div {
    grid-template-columns: 1fr 44px 44px;
  }

  .buy-box > div input,
  .buy-box > div .buy-now-button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .buyer-welcome,
  .type-picker,
  .media-grid,
  .media-grid.compact,
  .news-grid,
  .news-grid.compact,
  .guide-book {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .cart-item {
    grid-template-columns: 34px 78px minmax(0, 1fr);
    grid-template-areas:
      "select image info"
      "qty qty qty"
      "subtotal subtotal remove";
  }

  .cart-item > strong[data-cart-item-subtotal],
  .cart-item > input[type="number"],
  .cart-item > .table-action {
    width: 100%;
  }

  .cart-item > .table-action {
    min-width: 0;
  }

  .product-thumbs {
    left: 12px;
    right: 12px;
    justify-content: center;
  }

  .size-modal-colors {
    grid-template-columns: 1fr;
  }
}

html[data-theme="dark"] body {
  background:
    radial-gradient(circle at 18% 8%, rgba(196, 154, 74, 0.18), transparent 30%),
    radial-gradient(circle at 85% 16%, rgba(15, 106, 104, 0.16), transparent 32%),
    linear-gradient(90deg, rgba(244, 213, 127, 0.045) 1px, transparent 1px),
    linear-gradient(180deg, rgba(73, 199, 189, 0.035) 1px, transparent 1px),
    linear-gradient(135deg, #090806 0%, #12100d 48%, #081616 100%);
  background-size: auto, auto, 38px 38px, 38px 38px, auto;
}

html[data-theme="dark"] .main-header {
  border-color: rgba(243, 210, 122, 0.24);
  background: linear-gradient(135deg, rgba(15, 12, 9, 0.92), rgba(28, 20, 15, 0.86));
  color: #fffaf0;
  box-shadow: 0 18px 70px rgba(0, 0, 0, 0.42);
}

html[data-theme="dark"] .main-header.is-scrolled {
  background: linear-gradient(135deg, rgba(9, 8, 6, 0.94), rgba(25, 19, 14, 0.92));
}

html[data-theme="dark"] .main-nav {
  background: rgba(255, 250, 240, 0.07);
}

html[data-theme="dark"] .main-nav a {
  color: rgba(255, 250, 240, 0.82);
}

html[data-theme="dark"] .main-nav a.active,
html[data-theme="dark"] .main-nav a:hover,
html[data-theme="dark"] .admin-tabs a.active,
html[data-theme="dark"] .admin-tabs a:hover,
html[data-theme="dark"] .filter-panel a.active,
html[data-theme="dark"] .filter-panel a:hover,
html[data-theme="dark"] .filter-chips a.active,
html[data-theme="dark"] .filter-chips a:hover,
html[data-theme="dark"] .report-toolbar a.active,
html[data-theme="dark"] .report-toolbar a:hover {
  background: linear-gradient(135deg, #c77249, #8f3b2b);
  color: #fffaf0;
}

html[data-theme="dark"] .brand small,
html[data-theme="dark"] .catalog-search label {
  color: rgba(255, 250, 240, 0.76);
}

html[data-theme="dark"] .brand strong {
  color: #fffaf0;
}

html[data-theme="dark"] .theme-toggle,
html[data-theme="dark"] .cart-link,
html[data-theme="dark"] .main-header .ghost-button,
html[data-theme="dark"] .account-floating-badge {
  border-color: rgba(243, 210, 122, 0.28);
  background: rgba(255, 250, 240, 0.08);
  color: #fffaf0;
}

html[data-theme="dark"] .theme-toggle {
  border-color: rgba(244, 213, 127, 0.38);
  background:
    linear-gradient(135deg, rgba(244, 213, 127, 0.12), rgba(88, 210, 198, 0.11)),
    rgba(255, 250, 240, 0.06);
}

html[data-theme="dark"] .theme-toggle:hover {
  border-color: rgba(244, 213, 127, 0.66);
  background:
    linear-gradient(135deg, rgba(244, 213, 127, 0.18), rgba(88, 210, 198, 0.16)),
    rgba(255, 250, 240, 0.08);
}

html[data-theme="dark"] .cart-link b {
  color: #17130f;
}

html[data-theme="dark"] .solid-button,
html[data-theme="dark"] .primary-button,
html[data-theme="dark"] .catalog-search button,
html[data-theme="dark"] .buy-box button {
  background: linear-gradient(135deg, #f4d57f, #c77249);
  color: #17130f;
  box-shadow: 0 18px 42px rgba(196, 154, 74, 0.18);
}

html[data-theme="dark"] .secondary-button {
  border-color: rgba(244, 213, 127, 0.2);
  background: rgba(255, 250, 240, 0.08);
  color: #fffaf0;
}

html[data-theme="dark"] .article-page .ghost-button,
html[data-theme="dark"] .back-to-catalog {
  border-color: rgba(244, 213, 127, 0.46);
  background: linear-gradient(135deg, #f4d57f, #c77249);
  color: #17130f;
  box-shadow: 0 16px 34px rgba(196, 154, 74, 0.18);
}

html[data-theme="dark"] .size-modal-backdrop {
  background: rgba(4, 4, 3, 0.72);
}

html[data-theme="dark"] .size-modal-panel {
  border-color: rgba(244, 213, 127, 0.28);
  background:
    linear-gradient(135deg, rgba(23, 19, 15, 0.98), rgba(9, 22, 22, 0.96)),
    #11100d;
  color: #fffaf0;
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.52);
}

html[data-theme="dark"] .size-modal-close,
html[data-theme="dark"] .color-option,
html[data-theme="dark"] .size-option {
  border-color: rgba(244, 213, 127, 0.22);
  background: rgba(255, 250, 240, 0.08);
  color: #fffaf0;
}

html[data-theme="dark"] .color-option.active,
html[data-theme="dark"] .size-option.active {
  border-color: var(--choice-color, #f4d57f);
  background: rgba(244, 213, 127, 0.14);
  box-shadow: 0 0 0 3px rgba(244, 213, 127, 0.1);
}

html[data-theme="dark"] .size-option span {
  color: #80d8cf;
}

html[data-theme="dark"] .main-header .ghost-button:hover,
html[data-theme="dark"] .secondary-button:hover,
html[data-theme="dark"] .cart-link:hover,
html[data-theme="dark"] .account-floating-badge:hover {
  border-color: rgba(244, 213, 127, 0.44);
  background: rgba(255, 250, 240, 0.13);
}

html[data-theme="dark"] .feature-card,
html[data-theme="dark"] .category-card,
html[data-theme="dark"] .product-card,
html[data-theme="dark"] .auth-card,
html[data-theme="dark"] .summary-card,
html[data-theme="dark"] .filter-panel,
html[data-theme="dark"] .type-picker a,
html[data-theme="dark"] .empty-state,
html[data-theme="dark"] .form-panel,
html[data-theme="dark"] .metric-card,
html[data-theme="dark"] .admin-table-wrap,
html[data-theme="dark"] .note-box,
html[data-theme="dark"] .payment-card,
html[data-theme="dark"] .payment-option,
html[data-theme="dark"] .notice-card,
html[data-theme="dark"] .report-panel,
html[data-theme="dark"] .report-chart-card,
html[data-theme="dark"] .chat-faq-panel,
html[data-theme="dark"] .chat-room,
html[data-theme="dark"] .seller-thread-list,
html[data-theme="dark"] .order-detail,
html[data-theme="dark"] .admin-filter-panel,
html[data-theme="dark"] .buyer-welcome,
html[data-theme="dark"] .media-card,
html[data-theme="dark"] .news-card,
html[data-theme="dark"] .preorder-box,
html[data-theme="dark"] .gallery-upload-box,
html[data-theme="dark"] .guide-book article,
html[data-theme="dark"] .variant-editor,
html[data-theme="dark"] .color-choice-panel {
  border-color: rgba(243, 210, 122, 0.16);
  background:
    linear-gradient(145deg, rgba(255, 250, 240, 0.075), rgba(255, 250, 240, 0.025)),
    rgba(15, 12, 9, 0.86);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
}

html[data-theme="dark"] .product-info,
html[data-theme="dark"] .table-head,
html[data-theme="dark"] .chat-room-header,
html[data-theme="dark"] .chat-compose,
html[data-theme="dark"] .summary-card > div,
html[data-theme="dark"] .order-stepper,
html[data-theme="dark"] .variant-row {
  border-color: rgba(255, 250, 240, 0.14);
}

html[data-theme="dark"] .catalog-hero,
html[data-theme="dark"] .admin-hero,
html[data-theme="dark"] .cta-section,
html[data-theme="dark"] .site-footer {
  border: 1px solid rgba(243, 210, 122, 0.18);
  background:
    linear-gradient(120deg, rgba(9, 8, 6, 0.88), rgba(12, 24, 27, 0.74)),
    url("../img/hero-tenun.png") center / cover;
  color: #fffaf0;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.42);
}

html[data-theme="dark"] .hero-section {
  background: #090806;
  color: #fffaf0;
}

html[data-theme="dark"] .hero-section::after {
  background: linear-gradient(180deg, transparent, #090806 86%);
}

html[data-theme="dark"] .hero-image {
  background:
    linear-gradient(90deg, rgba(9, 8, 6, 0.88), rgba(12, 10, 8, 0.58) 48%, rgba(9, 8, 6, 0.22)),
    linear-gradient(180deg, rgba(9, 8, 6, 0.08), rgba(9, 8, 6, 0.66)),
    url("../img/hero-tenun.png") center / cover;
  filter: saturate(0.96) contrast(1.08);
}

html[data-theme="dark"] .hero-content,
html[data-theme="dark"] .hero-content h1,
html[data-theme="dark"] .hero-content p,
html[data-theme="dark"] .hero-stats strong,
html[data-theme="dark"] .hero-stats span {
  color: #fffaf0;
}

html[data-theme="dark"] .hero-content h1 {
  text-shadow: 0 14px 44px rgba(0, 0, 0, 0.66);
}

html[data-theme="dark"] .hero-content > p {
  color: rgba(255, 250, 240, 0.86);
}

html[data-theme="dark"] .hero-stats div {
  border-left-color: rgba(244, 213, 127, 0.7);
}

html[data-theme="dark"] .hero-stats span {
  color: rgba(255, 250, 240, 0.74);
}

html[data-theme="dark"] .site-footer {
  background:
    linear-gradient(135deg, rgba(9, 8, 6, 0.98), rgba(24, 18, 13, 0.94) 46%, rgba(8, 40, 41, 0.9));
}

html[data-theme="dark"] .footer-badge {
  background: linear-gradient(135deg, rgba(23, 44, 75, 0.86), rgba(15, 106, 104, 0.72));
}

html[data-theme="dark"] .guide-book article {
  position: relative;
  overflow: hidden;
  min-height: 130px;
  color: #fffaf0;
}

html[data-theme="dark"] .guide-book article::before {
  content: "";
  position: absolute;
  inset: 0;
  border-left: 3px solid rgba(244, 213, 127, 0.62);
  background: linear-gradient(135deg, rgba(244, 213, 127, 0.08), rgba(88, 210, 198, 0.06));
  pointer-events: none;
}

html[data-theme="dark"] .guide-book article p {
  position: relative;
  margin: 0;
  color: rgba(255, 250, 240, 0.86);
  line-height: 1.55;
}

html[data-theme="dark"] .guide-book b {
  position: relative;
  background: linear-gradient(135deg, #f4d57f, #c77249);
  color: #17130f;
  box-shadow: 0 10px 24px rgba(196, 154, 74, 0.2);
}

html[data-theme="dark"] .type-picker a strong,
html[data-theme="dark"] .media-card h2,
html[data-theme="dark"] .news-card h2,
html[data-theme="dark"] .variant-editor > div:first-child span,
html[data-theme="dark"] .footer-links strong,
html[data-theme="dark"] .footer-contact strong {
  color: #fffaf0;
}

html[data-theme="dark"] .type-picker a {
  color: rgba(255, 250, 240, 0.74);
}

html[data-theme="dark"] .type-picker a.active {
  border-color: rgba(244, 213, 127, 0.44);
  background: linear-gradient(135deg, #c77249, #0f6a68);
  color: rgba(255, 250, 240, 0.9);
}

html[data-theme="dark"] .payment-option small,
html[data-theme="dark"] .variant-editor small {
  color: rgba(255, 250, 240, 0.66);
}

html[data-theme="dark"] .product-image span {
  border: 1px solid rgba(244, 213, 127, 0.42);
  background: rgba(255, 246, 226, 0.92);
  color: #17130f;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.26);
}

html[data-theme="dark"] .status-pill {
  background: rgba(244, 213, 127, 0.16);
  color: #f4d57f;
}

html[data-theme="dark"] .danger-status {
  background: rgba(240, 160, 134, 0.14);
  color: #f0a086;
}

html[data-theme="dark"] .section-heading p,
html[data-theme="dark"] .catalog-hero p,
html[data-theme="dark"] .admin-hero p,
html[data-theme="dark"] .feature-card p,
html[data-theme="dark"] .category-card p,
html[data-theme="dark"] .product-info p,
html[data-theme="dark"] .detail-description,
html[data-theme="dark"] .checkout-form > p,
html[data-theme="dark"] .summary-card p,
html[data-theme="dark"] .order-admin-layout > div > p,
html[data-theme="dark"] .empty-state p,
html[data-theme="dark"] .form-hint,
html[data-theme="dark"] .stock-line,
html[data-theme="dark"] .filter-panel a,
html[data-theme="dark"] .site-footer p,
html[data-theme="dark"] .site-footer span,
html[data-theme="dark"] .site-footer a {
  color: rgba(255, 250, 240, 0.72);
}

html[data-theme="dark"] .eyebrow,
html[data-theme="dark"] .product-detail-link,
html[data-theme="dark"] .table-action,
html[data-theme="dark"] .filter-panel a.active,
html[data-theme="dark"] .filter-panel a:hover {
  color: var(--gold);
}

html[data-theme="dark"] .filter-panel a.active,
html[data-theme="dark"] .filter-panel a:hover {
  color: #fffaf0;
}

html[data-theme="dark"] .admin-tabs a,
html[data-theme="dark"] .filter-chips a,
html[data-theme="dark"] .report-toolbar a,
html[data-theme="dark"] .pagination a,
html[data-theme="dark"] .pagination span,
html[data-theme="dark"] .filter-panel a {
  border: 1px solid rgba(244, 213, 127, 0.14);
  background: rgba(255, 250, 240, 0.055);
  color: rgba(255, 250, 240, 0.78);
  box-shadow: inset 0 1px 0 rgba(255, 250, 240, 0.04);
}

html[data-theme="dark"] .admin-tabs a:hover,
html[data-theme="dark"] .admin-tabs a.active,
html[data-theme="dark"] .filter-chips a:hover,
html[data-theme="dark"] .filter-chips a.active,
html[data-theme="dark"] .report-toolbar a:hover,
html[data-theme="dark"] .report-toolbar a.active,
html[data-theme="dark"] .filter-panel a:hover,
html[data-theme="dark"] .filter-panel a.active {
  border-color: rgba(244, 213, 127, 0.44);
  background: linear-gradient(135deg, #c77249, #8f3b2b);
  color: #fffaf0;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.24);
}

html[data-theme="dark"] .filter-panel a small {
  color: rgba(255, 250, 240, 0.62);
}

html[data-theme="dark"] .filter-panel a.active small,
html[data-theme="dark"] .filter-panel a:hover small {
  color: rgba(255, 250, 240, 0.78);
}

html[data-theme="dark"] .pagination a:hover,
html[data-theme="dark"] .pagination .active {
  border-color: rgba(244, 213, 127, 0.58);
  background: linear-gradient(135deg, #f4d57f, #d4864d);
  color: #17130f;
  box-shadow: 0 16px 34px rgba(196, 154, 74, 0.22);
}

html[data-theme="dark"] .pagination .disabled {
  opacity: 1;
  border-color: rgba(255, 250, 240, 0.14);
  background: rgba(255, 250, 240, 0.07);
  color: rgba(255, 250, 240, 0.48);
  box-shadow: none;
}

html[data-theme="dark"] .buy-now-button {
  background: linear-gradient(135deg, #f4d57f, #c77249);
  color: #17130f;
}

html[data-theme="dark"] .cart-icon-button,
html[data-theme="dark"] .chat-icon-button {
  background: linear-gradient(135deg, #58d2c6, #0f6a68);
  color: #071211;
}

html[data-theme="dark"] button:disabled,
html[data-theme="dark"] .buy-now-button:disabled,
html[data-theme="dark"] .cart-icon-button:disabled,
html[data-theme="dark"] .chat-icon-button:disabled {
  border-color: rgba(255, 250, 240, 0.12);
  background: rgba(255, 250, 240, 0.08);
  color: rgba(255, 250, 240, 0.42);
  box-shadow: none;
  opacity: 1;
}

html[data-theme="dark"] .catalog-search input,
html[data-theme="dark"] .form-stack input,
html[data-theme="dark"] .form-stack textarea,
html[data-theme="dark"] .form-stack select,
html[data-theme="dark"] .buy-box input,
html[data-theme="dark"] .cart-item input[type="number"],
html[data-theme="dark"] .order-search input,
html[data-theme="dark"] .admin-product-search input {
  border-color: rgba(243, 210, 122, 0.22);
  background: rgba(255, 250, 240, 0.08);
  color: #fffaf0;
  box-shadow: inset 0 1px 0 rgba(255, 250, 240, 0.05);
}

html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] textarea::placeholder {
  color: rgba(255, 250, 240, 0.46);
}

html[data-theme="dark"] .admin-table th {
  color: rgba(255, 250, 240, 0.62);
}

html[data-theme="dark"] .admin-table td,
html[data-theme="dark"] .admin-table th,
html[data-theme="dark"] .cart-item,
html[data-theme="dark"] .payment-card,
html[data-theme="dark"] .chat-bubble {
  border-color: rgba(255, 250, 240, 0.14);
}

html[data-theme="dark"] .table-action,
html[data-theme="dark"] button.table-action {
  border-color: rgba(73, 199, 189, 0.22);
  background: rgba(73, 199, 189, 0.1);
}

html[data-theme="dark"] .danger-action,
html[data-theme="dark"] .danger-panel {
  border-color: rgba(240, 160, 134, 0.28);
  background: rgba(120, 37, 31, 0.16);
}

html[data-theme="dark"] .flash-success,
html[data-theme="dark"] .cart-toast.is-success {
  background: rgba(15, 106, 104, 0.96);
  color: #fffaf0;
}

html[data-theme="dark"] .flash-error,
html[data-theme="dark"] .cart-toast.is-error {
  background: rgba(120, 37, 31, 0.96);
  color: #fffaf0;
}

html[data-theme="dark"] .ticker {
  background: linear-gradient(90deg, #2b1710, #0f3636, #4d3420);
  color: #fffaf0;
}

html[data-theme="dark"] .account-popover {
  border-color: rgba(243, 210, 122, 0.22);
  background: rgba(9, 8, 6, 0.98);
}

html[data-theme="dark"] ::selection {
  background: rgba(243, 210, 122, 0.34);
  color: #fffaf0;
}

/* Premium pink theme refinements */
.main-header {
  border-color: rgba(216, 161, 178, 0.38);
  background:
    linear-gradient(135deg, rgba(255, 248, 251, 0.93), rgba(255, 232, 241, 0.9)),
    rgba(255, 255, 255, 0.78);
  color: var(--ink);
  box-shadow: 0 18px 70px rgba(169, 54, 98, 0.14);
}

.main-header.is-scrolled {
  background:
    linear-gradient(135deg, rgba(255, 248, 251, 0.97), rgba(255, 232, 241, 0.94)),
    rgba(255, 255, 255, 0.86);
}

.brand strong {
  color: #321b29;
}

.brand small,
.main-nav a,
.cart-link,
.main-header .ghost-button,
.theme-toggle {
  color: rgba(39, 21, 31, 0.82);
}

.main-nav {
  background: rgba(255, 255, 255, 0.58);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.64);
}

.main-nav a:hover,
.main-nav a.active,
.admin-tabs a:hover,
.admin-tabs a.active,
.filter-panel a:hover,
.filter-panel a.active,
.filter-chips a:hover,
.filter-chips a.active,
.report-toolbar a:hover,
.report-toolbar a.active {
  background: linear-gradient(135deg, #e788ad, #b84d7c);
  color: #fff8fb;
  box-shadow: 0 14px 30px rgba(184, 77, 124, 0.22);
}

.theme-toggle,
.cart-link,
.main-header .ghost-button,
.account-floating-badge {
  border-color: rgba(184, 77, 124, 0.2);
  background: rgba(255, 255, 255, 0.58);
}

.theme-toggle-mark {
  border-color: rgba(232, 136, 173, 0.36);
  background: linear-gradient(135deg, rgba(255, 211, 226, 0.92), rgba(216, 161, 178, 0.82));
}

.theme-toggle:focus-visible {
  outline-color: rgba(232, 136, 173, 0.42);
}

.theme-toggle:hover,
.cart-link:hover,
.main-header .ghost-button:hover,
.account-floating-badge:hover {
  border-color: rgba(184, 77, 124, 0.34);
  background: rgba(255, 255, 255, 0.76);
}

.solid-button,
.primary-button,
.catalog-search button,
.buy-box button,
.buy-now-button {
  background: linear-gradient(135deg, #ffd2e3, #e788ad 48%, #c45b8a);
  color: #2d1623;
  box-shadow: 0 16px 34px rgba(196, 91, 138, 0.22);
}

.cart-link b,
.status-pill {
  background: linear-gradient(135deg, #ffe1ec, #d8a1b2);
  color: #321b29;
}

.cart-icon-button,
.chat-icon-button {
  background: linear-gradient(135deg, #f39abb, #9b4f7f);
  color: #fff8fb;
}

.secondary-button,
.ghost-button,
.table-action,
.admin-tabs a,
.filter-chips a,
.report-toolbar a,
.pagination a,
.pagination span,
.filter-panel a {
  border-color: rgba(184, 77, 124, 0.16);
}

.pagination a:hover,
.pagination .active {
  border-color: rgba(184, 77, 124, 0.34);
  background: linear-gradient(135deg, #ffd2e3, #e788ad);
  color: #321b29;
  box-shadow: 0 14px 30px rgba(196, 91, 138, 0.2);
}

.feature-card,
.category-card,
.product-card,
.auth-card,
.summary-card,
.filter-panel,
.type-picker a,
.empty-state,
.form-panel,
.metric-card,
.admin-table-wrap,
.note-box,
.payment-card,
.payment-option,
.notice-card,
.report-panel,
.report-chart-card,
.chat-faq-panel,
.chat-room,
.seller-thread-list,
.order-detail,
.admin-filter-panel,
.buyer-welcome,
.media-card,
.news-card,
.preorder-box,
.gallery-upload-box,
.guide-book article,
.variant-editor,
.color-choice-panel {
  border-color: rgba(216, 161, 178, 0.28);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(255, 240, 247, 0.82)),
    rgba(255, 255, 255, 0.82);
  box-shadow: 0 22px 70px rgba(169, 54, 98, 0.11);
}

.catalog-hero,
.admin-hero,
.cta-section,
.site-footer {
  border-color: rgba(216, 161, 178, 0.28);
  background:
    linear-gradient(120deg, rgba(74, 38, 57, 0.86), rgba(184, 77, 124, 0.54)),
    url("../img/hero-tenun.png") center / cover;
  color: #fff8fb;
  box-shadow: 0 30px 100px rgba(169, 54, 98, 0.2);
}

.hero-image {
  background:
    linear-gradient(90deg, rgba(255, 248, 251, 0.88), rgba(255, 238, 246, 0.58) 48%, rgba(255, 248, 251, 0.14)),
    linear-gradient(180deg, rgba(255, 248, 251, 0.08), rgba(74, 38, 57, 0.5)),
    url("../img/hero-tenun.png") center / cover;
}

.hero-section::after {
  background: linear-gradient(180deg, transparent, var(--paper) 86%);
}

.footer-badge {
  background: linear-gradient(135deg, rgba(184, 77, 124, 0.9), rgba(155, 79, 127, 0.82));
}

.proof-preview {
  border-color: rgba(216, 161, 178, 0.34);
  box-shadow: 0 16px 36px rgba(169, 54, 98, 0.14);
}

html[data-theme="dark"] body {
  background:
    radial-gradient(circle at 15% 8%, rgba(240, 139, 178, 0.18), transparent 30%),
    radial-gradient(circle at 86% 14%, rgba(104, 43, 78, 0.3), transparent 34%),
    linear-gradient(90deg, rgba(240, 139, 178, 0.045) 1px, transparent 1px),
    linear-gradient(180deg, rgba(213, 139, 182, 0.035) 1px, transparent 1px),
    linear-gradient(135deg, #10070d 0%, #1a0d15 48%, #0d1118 100%);
  background-size: auto, auto, 38px 38px, 38px 38px, auto;
}

html[data-theme="dark"] .main-header {
  border-color: rgba(246, 196, 214, 0.24);
  background: linear-gradient(135deg, rgba(18, 8, 15, 0.94), rgba(44, 20, 34, 0.9));
  color: #fff5fa;
  box-shadow: 0 22px 80px rgba(0, 0, 0, 0.48);
}

html[data-theme="dark"] .main-header.is-scrolled {
  background: linear-gradient(135deg, rgba(14, 6, 12, 0.96), rgba(38, 16, 30, 0.94));
}

html[data-theme="dark"] .brand strong,
html[data-theme="dark"] .brand small,
html[data-theme="dark"] .main-nav a,
html[data-theme="dark"] .theme-toggle,
html[data-theme="dark"] .cart-link,
html[data-theme="dark"] .main-header .ghost-button {
  color: #fff5fa;
}

html[data-theme="dark"] .main-nav,
html[data-theme="dark"] .theme-toggle,
html[data-theme="dark"] .cart-link,
html[data-theme="dark"] .main-header .ghost-button,
html[data-theme="dark"] .account-floating-badge {
  border-color: rgba(246, 196, 214, 0.22);
  background: rgba(255, 219, 233, 0.08);
}

html[data-theme="dark"] .theme-toggle {
  background:
    linear-gradient(135deg, rgba(240, 139, 178, 0.14), rgba(95, 39, 72, 0.22)),
    rgba(255, 219, 233, 0.06);
}

html[data-theme="dark"] .theme-toggle-mark {
  border-color: rgba(246, 196, 214, 0.34);
  background: linear-gradient(135deg, rgba(240, 139, 178, 0.7), rgba(74, 38, 57, 0.88));
}

html[data-theme="dark"] .theme-toggle.is-dark .theme-toggle-mark {
  background: linear-gradient(135deg, rgba(240, 139, 178, 0.82), rgba(75, 49, 69, 0.92));
}

html[data-theme="dark"] .theme-toggle.is-dark .theme-toggle-mark span {
  background: #1a0d15;
  box-shadow: inset -4px -2px 0 #f6c4d6, 0 0 18px rgba(240, 139, 178, 0.42);
}

html[data-theme="dark"] .main-nav a.active,
html[data-theme="dark"] .main-nav a:hover,
html[data-theme="dark"] .admin-tabs a.active,
html[data-theme="dark"] .admin-tabs a:hover,
html[data-theme="dark"] .filter-panel a.active,
html[data-theme="dark"] .filter-panel a:hover,
html[data-theme="dark"] .filter-chips a.active,
html[data-theme="dark"] .filter-chips a:hover,
html[data-theme="dark"] .report-toolbar a.active,
html[data-theme="dark"] .report-toolbar a:hover {
  border-color: rgba(246, 196, 214, 0.44);
  background: linear-gradient(135deg, #f08bb2, #8a315f);
  color: #fff5fa;
}

html[data-theme="dark"] .solid-button,
html[data-theme="dark"] .primary-button,
html[data-theme="dark"] .catalog-search button,
html[data-theme="dark"] .buy-box button,
html[data-theme="dark"] .buy-now-button {
  background: linear-gradient(135deg, #f6c4d6, #f08bb2 46%, #a93662);
  color: #170a11;
  box-shadow: 0 18px 42px rgba(240, 139, 178, 0.2);
}

html[data-theme="dark"] .cart-link b,
html[data-theme="dark"] .status-pill {
  background: linear-gradient(135deg, #f6c4d6, #d58bb6);
  color: #170a11;
}

html[data-theme="dark"] .cart-icon-button,
html[data-theme="dark"] .chat-icon-button {
  background: linear-gradient(135deg, #f08bb2, #8a315f);
  color: #fff5fa;
}

html[data-theme="dark"] .feature-card,
html[data-theme="dark"] .category-card,
html[data-theme="dark"] .product-card,
html[data-theme="dark"] .auth-card,
html[data-theme="dark"] .summary-card,
html[data-theme="dark"] .filter-panel,
html[data-theme="dark"] .type-picker a,
html[data-theme="dark"] .empty-state,
html[data-theme="dark"] .form-panel,
html[data-theme="dark"] .metric-card,
html[data-theme="dark"] .admin-table-wrap,
html[data-theme="dark"] .note-box,
html[data-theme="dark"] .payment-card,
html[data-theme="dark"] .payment-option,
html[data-theme="dark"] .notice-card,
html[data-theme="dark"] .report-panel,
html[data-theme="dark"] .report-chart-card,
html[data-theme="dark"] .chat-faq-panel,
html[data-theme="dark"] .chat-room,
html[data-theme="dark"] .seller-thread-list,
html[data-theme="dark"] .order-detail,
html[data-theme="dark"] .admin-filter-panel,
html[data-theme="dark"] .buyer-welcome,
html[data-theme="dark"] .media-card,
html[data-theme="dark"] .news-card,
html[data-theme="dark"] .preorder-box,
html[data-theme="dark"] .gallery-upload-box,
html[data-theme="dark"] .guide-book article,
html[data-theme="dark"] .variant-editor,
html[data-theme="dark"] .color-choice-panel {
  border-color: rgba(246, 196, 214, 0.16);
  background:
    linear-gradient(145deg, rgba(255, 219, 233, 0.08), rgba(255, 219, 233, 0.025)),
    rgba(18, 8, 15, 0.86);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

html[data-theme="dark"] .catalog-hero,
html[data-theme="dark"] .admin-hero,
html[data-theme="dark"] .cta-section,
html[data-theme="dark"] .site-footer {
  border-color: rgba(246, 196, 214, 0.18);
  background:
    linear-gradient(120deg, rgba(16, 7, 13, 0.9), rgba(65, 24, 48, 0.78)),
    url("../img/hero-tenun.png") center / cover;
  color: #fff5fa;
}

html[data-theme="dark"] .hero-section {
  background: #10070d;
  color: #fff5fa;
}

html[data-theme="dark"] .hero-section::after {
  background: linear-gradient(180deg, transparent, #10070d 86%);
}

html[data-theme="dark"] .hero-image {
  background:
    linear-gradient(90deg, rgba(16, 7, 13, 0.88), rgba(44, 20, 34, 0.62) 48%, rgba(16, 7, 13, 0.24)),
    linear-gradient(180deg, rgba(16, 7, 13, 0.1), rgba(16, 7, 13, 0.68)),
    url("../img/hero-tenun.png") center / cover;
}

html[data-theme="dark"] .site-footer {
  background:
    linear-gradient(135deg, rgba(16, 7, 13, 0.98), rgba(44, 20, 34, 0.94) 48%, rgba(27, 17, 31, 0.92));
}

html[data-theme="dark"] .footer-badge {
  background: linear-gradient(135deg, rgba(139, 49, 95, 0.88), rgba(75, 49, 69, 0.82));
}

html[data-theme="dark"] .admin-tabs a,
html[data-theme="dark"] .filter-chips a,
html[data-theme="dark"] .report-toolbar a,
html[data-theme="dark"] .pagination a,
html[data-theme="dark"] .pagination span,
html[data-theme="dark"] .filter-panel a,
html[data-theme="dark"] .secondary-button,
html[data-theme="dark"] .ghost-button,
html[data-theme="dark"] .table-action {
  border-color: rgba(246, 196, 214, 0.14);
  background: rgba(255, 219, 233, 0.055);
  color: rgba(255, 245, 250, 0.8);
}

html[data-theme="dark"] .pagination a:hover,
html[data-theme="dark"] .pagination .active {
  border-color: rgba(246, 196, 214, 0.52);
  background: linear-gradient(135deg, #f6c4d6, #f08bb2);
  color: #170a11;
}

html[data-theme="dark"] .pagination .disabled,
html[data-theme="dark"] button:disabled,
html[data-theme="dark"] .buy-now-button:disabled,
html[data-theme="dark"] .cart-icon-button:disabled,
html[data-theme="dark"] .chat-icon-button:disabled {
  border-color: rgba(255, 219, 233, 0.12);
  background: rgba(255, 219, 233, 0.07);
  color: rgba(255, 245, 250, 0.44);
  box-shadow: none;
}

html[data-theme="dark"] .catalog-search input,
html[data-theme="dark"] .form-stack input,
html[data-theme="dark"] .form-stack textarea,
html[data-theme="dark"] .form-stack select,
html[data-theme="dark"] .buy-box input,
html[data-theme="dark"] .cart-item input[type="number"],
html[data-theme="dark"] .order-search input,
html[data-theme="dark"] .admin-product-search input {
  border-color: rgba(246, 196, 214, 0.22);
  background: rgba(255, 219, 233, 0.08);
  color: #fff5fa;
}

html[data-theme="dark"] .eyebrow,
html[data-theme="dark"] .product-detail-link,
html[data-theme="dark"] .table-action {
  color: #f6c4d6;
}

html[data-theme="dark"] ::selection {
  background: rgba(240, 139, 178, 0.36);
  color: #fff5fa;
}

/* FLOBAKARYA pink premium polish */
:root {
  --floba-pink-50: #fff7fb;
  --floba-pink-100: #ffe7f1;
  --floba-pink-200: #ffc8df;
  --floba-pink-300: #ff9fc6;
  --floba-pink-500: #e85f9d;
  --floba-pink-600: #c92d78;
  --floba-pink-700: #8f1c58;
  --floba-plum-900: #351429;
  --floba-glass-light: rgba(255, 247, 251, 0.82);
  --floba-glass-strong: rgba(255, 247, 251, 0.92);
  --floba-button-shadow: 0 16px 38px rgba(201, 45, 120, 0.24);
}

body {
  background:
    radial-gradient(circle at 12% 8%, rgba(255, 199, 223, 0.34), transparent 30%),
    radial-gradient(circle at 92% 12%, rgba(232, 95, 157, 0.14), transparent 34%),
    linear-gradient(90deg, rgba(201, 45, 120, 0.055) 1px, transparent 1px),
    linear-gradient(180deg, rgba(143, 28, 88, 0.04) 1px, transparent 1px),
    linear-gradient(135deg, #fffafd 0%, #fff0f7 48%, #ffffff 100%);
  background-size: auto, auto, 38px 38px, 38px 38px, auto;
}

.main-header {
  border-color: rgba(232, 95, 157, 0.28);
  background:
    linear-gradient(135deg, rgba(255, 247, 251, 0.88), rgba(255, 231, 241, 0.78)),
    rgba(255, 255, 255, 0.62);
  color: #3b1730;
  box-shadow: 0 18px 66px rgba(143, 28, 88, 0.15);
}

.main-header.is-scrolled {
  background:
    linear-gradient(135deg, rgba(255, 247, 251, 0.94), rgba(255, 231, 241, 0.88)),
    rgba(255, 255, 255, 0.74);
}

.brand strong {
  color: #351429;
}

.brand small,
.main-nav a,
.cart-link,
.main-header .ghost-button,
.theme-toggle {
  color: rgba(59, 23, 48, 0.86);
}

.main-nav {
  background: rgba(255, 255, 255, 0.5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.main-nav a {
  color: rgba(59, 23, 48, 0.78);
}

.main-nav a:hover,
.main-nav a.active,
.admin-tabs a:hover,
.admin-tabs a.active,
.filter-panel a:hover,
.filter-panel a.active,
.filter-chips a:hover,
.filter-chips a.active,
.report-toolbar a:hover,
.report-toolbar a.active {
  border-color: rgba(201, 45, 120, 0.18);
  background: linear-gradient(135deg, #f077ad, #c92d78 58%, #8f1c58);
  color: #fff7fb;
  box-shadow: var(--floba-button-shadow);
}

.theme-toggle,
.cart-link,
.main-header .ghost-button,
.account-floating-badge,
.menu-toggle {
  border-color: rgba(201, 45, 120, 0.2);
  background: rgba(255, 255, 255, 0.58);
  color: #3b1730;
}

.theme-toggle:hover,
.cart-link:hover,
.main-header .ghost-button:hover,
.account-floating-badge:hover,
.menu-toggle:hover {
  border-color: rgba(201, 45, 120, 0.36);
  background: rgba(255, 247, 251, 0.82);
  box-shadow: 0 12px 30px rgba(201, 45, 120, 0.14);
}

.theme-toggle-mark {
  border-color: rgba(201, 45, 120, 0.34);
  background: linear-gradient(135deg, #ffd6e7, #f077ad);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.34);
}

.theme-toggle-mark span {
  background: #fff7fb;
  box-shadow: 0 0 0 3px rgba(255, 247, 251, 0.42), 0 5px 12px rgba(143, 28, 88, 0.2);
}

.theme-toggle.is-dark .theme-toggle-mark {
  background: linear-gradient(135deg, #57103c, #ff4fa3);
}

.theme-toggle.is-dark .theme-toggle-mark span {
  background: #210b18;
  box-shadow: inset -4px -2px 0 #ffacd0, 0 0 18px rgba(255, 79, 163, 0.46);
}

.solid-button,
.primary-button,
.catalog-search button,
.buy-box button,
.buy-now-button,
.hero-actions .solid-button {
  border-color: rgba(201, 45, 120, 0.08);
  background: linear-gradient(135deg, #ff9fc6, #e85f9d 45%, #b81761);
  color: #fff7fb;
  text-shadow: 0 1px 1px rgba(53, 20, 41, 0.22);
  box-shadow: var(--floba-button-shadow);
}

.solid-button:hover,
.primary-button:hover,
.catalog-search button:hover,
.buy-box button:hover,
.buy-now-button:hover,
.hero-actions .solid-button:hover {
  background: linear-gradient(135deg, #ffb4d3, #ef6fad 44%, #c92d78);
  box-shadow: 0 18px 42px rgba(201, 45, 120, 0.3);
}

.secondary-button,
.ghost-button,
.table-action,
.admin-tabs a,
.filter-chips a,
.report-toolbar a,
.pagination a,
.pagination span,
.filter-panel a {
  border-color: rgba(201, 45, 120, 0.18);
  background: rgba(255, 255, 255, 0.78);
  color: #5b2948;
  box-shadow: 0 10px 24px rgba(143, 28, 88, 0.06);
}

.hero-actions .secondary-button,
.hero-actions .ghost-button {
  border-color: rgba(255, 247, 251, 0.42);
  background: rgba(53, 20, 41, 0.46);
  color: #fff7fb;
  box-shadow: 0 16px 36px rgba(53, 20, 41, 0.2);
}

.hero-actions .secondary-button:hover,
.hero-actions .ghost-button:hover {
  background: rgba(143, 28, 88, 0.58);
  color: #ffffff;
}

.cart-link b,
.status-pill {
  background: linear-gradient(135deg, #ffd1e4, #f077ad);
  color: #3b1730;
}

.cart-icon-button,
.chat-icon-button {
  background: linear-gradient(135deg, #e85f9d, #8f1c58);
  color: #fff7fb;
  box-shadow: 0 14px 34px rgba(143, 28, 88, 0.22);
}

.chat-icon-button {
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.catalog-search input,
.form-stack input,
.form-stack textarea,
.form-stack select,
.buy-box input,
.cart-item input[type="number"],
.order-search input,
.admin-product-search input {
  border-color: rgba(201, 45, 120, 0.18);
  background: rgba(255, 255, 255, 0.8);
  color: #351429;
}

.catalog-search input::placeholder,
.form-stack input::placeholder,
.form-stack textarea::placeholder,
.order-search input::placeholder,
.admin-product-search input::placeholder {
  color: rgba(91, 41, 72, 0.55);
}

.feature-card,
.category-card,
.product-card,
.auth-card,
.summary-card,
.filter-panel,
.type-picker a,
.empty-state,
.form-panel,
.metric-card,
.admin-table-wrap,
.note-box,
.payment-card,
.payment-option,
.notice-card,
.report-panel,
.report-chart-card,
.chat-faq-panel,
.chat-room,
.seller-thread-list,
.order-detail,
.admin-filter-panel,
.buyer-welcome,
.media-card,
.news-card,
.preorder-box,
.gallery-upload-box,
.guide-book article,
.variant-editor,
.color-choice-panel {
  border-color: rgba(232, 95, 157, 0.22);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(255, 240, 247, 0.78)),
    rgba(255, 247, 251, 0.76);
  box-shadow: 0 20px 62px rgba(143, 28, 88, 0.1);
}

.product-card {
  overflow: hidden;
}

.product-info {
  background: linear-gradient(180deg, rgba(255, 247, 251, 0.96), rgba(255, 239, 247, 0.92));
}

.product-card:hover {
  border-color: rgba(201, 45, 120, 0.36);
}

.pagination {
  gap: 10px;
}

.pagination a,
.pagination span {
  min-width: 46px;
  min-height: 46px;
  background: rgba(255, 247, 251, 0.82);
}

.pagination a:hover,
.pagination .active {
  border-color: rgba(201, 45, 120, 0.24);
  background: linear-gradient(135deg, #ff9fc6, #e85f9d);
  color: #fff7fb;
  box-shadow: 0 14px 34px rgba(201, 45, 120, 0.24);
}

.pagination .disabled,
button:disabled,
.buy-now-button:disabled,
.cart-icon-button:disabled,
.chat-icon-button:disabled {
  border-color: rgba(114, 83, 101, 0.12);
  background: rgba(255, 247, 251, 0.52);
  color: rgba(91, 41, 72, 0.5);
  text-shadow: none;
  box-shadow: none;
  opacity: 1;
}

.catalog-hero,
.admin-hero,
.cta-section,
.site-footer {
  border-color: rgba(232, 95, 157, 0.24);
  background:
    linear-gradient(120deg, rgba(53, 20, 41, 0.78), rgba(201, 45, 120, 0.36) 48%, rgba(255, 199, 223, 0.18)),
    url("../img/hero-tenun.png") center / cover;
  color: #fff7fb;
  box-shadow: 0 28px 90px rgba(143, 28, 88, 0.2);
}

.catalog-hero p,
.admin-hero p,
.cta-section p,
.site-footer p,
.site-footer span,
.site-footer a {
  color: rgba(255, 247, 251, 0.88);
}

.hero-section {
  background: #fff7fb;
  color: #fff7fb;
}

.hero-image {
  background:
    linear-gradient(90deg, rgba(53, 20, 41, 0.66), rgba(201, 45, 120, 0.34) 46%, rgba(255, 247, 251, 0.12)),
    linear-gradient(180deg, rgba(255, 247, 251, 0.05), rgba(255, 234, 244, 0.28) 72%, rgba(255, 247, 251, 0.52)),
    url("../img/hero-tenun.png") center / cover;
  filter: saturate(1.05) contrast(1.02);
}

.hero-section::after {
  height: 22%;
  background: linear-gradient(180deg, transparent, rgba(255, 247, 251, 0.84) 92%);
}

.hero-content h1,
.hero-content p,
.hero-stats strong,
.hero-stats span {
  color: #fff7fb;
}

.hero-content h1 {
  text-shadow: 0 18px 54px rgba(53, 20, 41, 0.42);
}

.hero-content p {
  color: rgba(255, 247, 251, 0.92);
  text-shadow: 0 8px 24px rgba(53, 20, 41, 0.24);
}

.hero-content .eyebrow,
.catalog-hero .eyebrow,
.admin-hero .eyebrow {
  color: #ffd2e5;
}

.hero-stats div {
  border-left-color: rgba(255, 159, 198, 0.82);
}

.ticker {
  background: linear-gradient(90deg, #ffd6e7, #ff9fc6, #e85f9d);
  color: #351429;
}

.footer-badge {
  background: linear-gradient(135deg, rgba(201, 45, 120, 0.88), rgba(143, 28, 88, 0.86));
  color: #fff7fb;
}

.article-page .ghost-button,
.back-to-catalog {
  border-color: rgba(201, 45, 120, 0.18);
  background: rgba(255, 247, 251, 0.84);
  color: #5b2948;
}

.article-page .ghost-button:hover,
.back-to-catalog:hover {
  background: linear-gradient(135deg, #ff9fc6, #e85f9d);
  color: #fff7fb;
}

html[data-theme="dark"] body {
  background:
    radial-gradient(circle at 16% 8%, rgba(255, 79, 163, 0.18), transparent 30%),
    radial-gradient(circle at 84% 12%, rgba(255, 172, 208, 0.11), transparent 34%),
    linear-gradient(90deg, rgba(255, 79, 163, 0.05) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 172, 208, 0.04) 1px, transparent 1px),
    linear-gradient(135deg, #0f050b 0%, #190a13 48%, #0b1113 100%);
  background-size: auto, auto, 38px 38px, 38px 38px, auto;
}

html[data-theme="dark"] .main-header {
  border-color: rgba(255, 79, 163, 0.32);
  background:
    linear-gradient(135deg, rgba(16, 7, 13, 0.94), rgba(53, 15, 39, 0.9)),
    rgba(16, 7, 13, 0.78);
  color: #fff2f8;
  box-shadow: 0 22px 86px rgba(0, 0, 0, 0.5), 0 0 38px rgba(255, 79, 163, 0.08);
}

html[data-theme="dark"] .main-header.is-scrolled {
  background:
    linear-gradient(135deg, rgba(14, 5, 11, 0.98), rgba(43, 12, 32, 0.96)),
    rgba(16, 7, 13, 0.86);
}

html[data-theme="dark"] .brand strong,
html[data-theme="dark"] .brand small,
html[data-theme="dark"] .main-nav a,
html[data-theme="dark"] .theme-toggle,
html[data-theme="dark"] .cart-link,
html[data-theme="dark"] .main-header .ghost-button {
  color: #fff2f8;
}

html[data-theme="dark"] .main-nav,
html[data-theme="dark"] .theme-toggle,
html[data-theme="dark"] .cart-link,
html[data-theme="dark"] .main-header .ghost-button,
html[data-theme="dark"] .account-floating-badge,
html[data-theme="dark"] .menu-toggle {
  border-color: rgba(255, 79, 163, 0.26);
  background: rgba(255, 151, 202, 0.08);
  color: #fff2f8;
}

html[data-theme="dark"] .menu-toggle span {
  background: #fff2f8;
}

html[data-theme="dark"] .theme-toggle:hover,
html[data-theme="dark"] .cart-link:hover,
html[data-theme="dark"] .main-header .ghost-button:hover,
html[data-theme="dark"] .account-floating-badge:hover,
html[data-theme="dark"] .menu-toggle:hover {
  border-color: rgba(255, 79, 163, 0.5);
  background: rgba(255, 79, 163, 0.12);
  box-shadow: 0 0 24px rgba(255, 79, 163, 0.16);
}

html[data-theme="dark"] .theme-toggle-mark {
  border-color: rgba(255, 172, 208, 0.44);
  background: linear-gradient(135deg, rgba(255, 79, 163, 0.68), rgba(77, 16, 53, 0.88));
}

html[data-theme="dark"] .theme-toggle-mark span,
html[data-theme="dark"] .theme-toggle.is-dark .theme-toggle-mark span {
  background: #150711;
  box-shadow: inset -4px -2px 0 #ffacd0, 0 0 22px rgba(255, 79, 163, 0.56);
}

html[data-theme="dark"] .main-nav a.active,
html[data-theme="dark"] .main-nav a:hover,
html[data-theme="dark"] .admin-tabs a.active,
html[data-theme="dark"] .admin-tabs a:hover,
html[data-theme="dark"] .filter-panel a.active,
html[data-theme="dark"] .filter-panel a:hover,
html[data-theme="dark"] .filter-chips a.active,
html[data-theme="dark"] .filter-chips a:hover,
html[data-theme="dark"] .report-toolbar a.active,
html[data-theme="dark"] .report-toolbar a:hover {
  border-color: rgba(255, 172, 208, 0.42);
  background: linear-gradient(135deg, #ff5bab, #e7197e 56%, #7c154f);
  color: #fff7fb;
  box-shadow: 0 0 28px rgba(255, 79, 163, 0.2);
}

html[data-theme="dark"] .solid-button,
html[data-theme="dark"] .primary-button,
html[data-theme="dark"] .catalog-search button,
html[data-theme="dark"] .buy-box button,
html[data-theme="dark"] .buy-now-button,
html[data-theme="dark"] .hero-actions .solid-button {
  border-color: rgba(255, 172, 208, 0.16);
  background: linear-gradient(135deg, #ff91c9, #ff4fa3 45%, #b81761);
  color: #190a13;
  text-shadow: none;
  box-shadow: 0 0 30px rgba(255, 79, 163, 0.28), 0 18px 42px rgba(0, 0, 0, 0.28);
}

html[data-theme="dark"] .solid-button:hover,
html[data-theme="dark"] .primary-button:hover,
html[data-theme="dark"] .catalog-search button:hover,
html[data-theme="dark"] .buy-box button:hover,
html[data-theme="dark"] .buy-now-button:hover {
  background: linear-gradient(135deg, #ffacd0, #ff62b0 46%, #d72482);
  color: #13060d;
}

html[data-theme="dark"] .secondary-button,
html[data-theme="dark"] .ghost-button,
html[data-theme="dark"] .table-action,
html[data-theme="dark"] .admin-tabs a,
html[data-theme="dark"] .filter-chips a,
html[data-theme="dark"] .report-toolbar a,
html[data-theme="dark"] .pagination a,
html[data-theme="dark"] .pagination span,
html[data-theme="dark"] .filter-panel a {
  border-color: rgba(255, 151, 202, 0.22);
  background: rgba(255, 151, 202, 0.08);
  color: rgba(255, 242, 248, 0.84);
  box-shadow: none;
}

html[data-theme="dark"] .hero-actions .secondary-button,
html[data-theme="dark"] .hero-actions .ghost-button {
  border-color: rgba(255, 172, 208, 0.36);
  background: rgba(255, 151, 202, 0.11);
  color: #fff2f8;
  box-shadow: 0 0 24px rgba(255, 79, 163, 0.08);
}

html[data-theme="dark"] .cart-link b,
html[data-theme="dark"] .status-pill {
  background: linear-gradient(135deg, #ffacd0, #ff4fa3);
  color: #190a13;
}

html[data-theme="dark"] .cart-icon-button,
html[data-theme="dark"] .chat-icon-button {
  background: linear-gradient(135deg, #ff4fa3, #8f1c58);
  color: #fff7fb;
  box-shadow: 0 0 26px rgba(255, 79, 163, 0.22);
}

html[data-theme="dark"] .feature-card,
html[data-theme="dark"] .category-card,
html[data-theme="dark"] .product-card,
html[data-theme="dark"] .auth-card,
html[data-theme="dark"] .summary-card,
html[data-theme="dark"] .filter-panel,
html[data-theme="dark"] .type-picker a,
html[data-theme="dark"] .empty-state,
html[data-theme="dark"] .form-panel,
html[data-theme="dark"] .metric-card,
html[data-theme="dark"] .admin-table-wrap,
html[data-theme="dark"] .note-box,
html[data-theme="dark"] .payment-card,
html[data-theme="dark"] .payment-option,
html[data-theme="dark"] .notice-card,
html[data-theme="dark"] .report-panel,
html[data-theme="dark"] .report-chart-card,
html[data-theme="dark"] .chat-faq-panel,
html[data-theme="dark"] .chat-room,
html[data-theme="dark"] .seller-thread-list,
html[data-theme="dark"] .order-detail,
html[data-theme="dark"] .admin-filter-panel,
html[data-theme="dark"] .buyer-welcome,
html[data-theme="dark"] .media-card,
html[data-theme="dark"] .news-card,
html[data-theme="dark"] .preorder-box,
html[data-theme="dark"] .gallery-upload-box,
html[data-theme="dark"] .guide-book article,
html[data-theme="dark"] .variant-editor,
html[data-theme="dark"] .color-choice-panel {
  border-color: rgba(255, 79, 163, 0.18);
  background:
    linear-gradient(145deg, rgba(255, 151, 202, 0.09), rgba(255, 151, 202, 0.025)),
    rgba(19, 7, 14, 0.88);
  color: #fff2f8;
  box-shadow: 0 24px 72px rgba(0, 0, 0, 0.35);
}

html[data-theme="dark"] .product-info,
html[data-theme="dark"] .table-head,
html[data-theme="dark"] .chat-room-header,
html[data-theme="dark"] .chat-compose,
html[data-theme="dark"] .summary-card > div,
html[data-theme="dark"] .order-stepper,
html[data-theme="dark"] .variant-row {
  background: rgba(255, 151, 202, 0.055);
}

html[data-theme="dark"] .catalog-hero,
html[data-theme="dark"] .admin-hero,
html[data-theme="dark"] .cta-section,
html[data-theme="dark"] .site-footer {
  border-color: rgba(255, 79, 163, 0.2);
  background:
    linear-gradient(120deg, rgba(15, 5, 11, 0.9), rgba(84, 18, 58, 0.72) 48%, rgba(255, 79, 163, 0.14)),
    url("../img/hero-tenun.png") center / cover;
  color: #fff2f8;
}

html[data-theme="dark"] .hero-section {
  background: #0f050b;
  color: #fff2f8;
}

html[data-theme="dark"] .hero-image {
  background:
    linear-gradient(90deg, rgba(15, 5, 11, 0.88), rgba(84, 18, 58, 0.58) 48%, rgba(15, 5, 11, 0.26)),
    linear-gradient(180deg, rgba(15, 5, 11, 0.08), rgba(15, 5, 11, 0.66)),
    url("../img/hero-tenun.png") center / cover;
  filter: saturate(1.12) contrast(1.06);
}

html[data-theme="dark"] .hero-section::after {
  height: 22%;
  background: linear-gradient(180deg, transparent, rgba(15, 5, 11, 0.96) 92%);
}

html[data-theme="dark"] .hero-content h1,
html[data-theme="dark"] .hero-content p,
html[data-theme="dark"] .hero-stats strong,
html[data-theme="dark"] .hero-stats span {
  color: #fff2f8;
}

html[data-theme="dark"] .hero-content .eyebrow,
html[data-theme="dark"] .catalog-hero .eyebrow,
html[data-theme="dark"] .admin-hero .eyebrow,
html[data-theme="dark"] .product-detail-link,
html[data-theme="dark"] .table-action {
  color: #ffacd0;
}

html[data-theme="dark"] .hero-stats div {
  border-left-color: rgba(255, 79, 163, 0.82);
}

html[data-theme="dark"] .pagination a:hover,
html[data-theme="dark"] .pagination .active {
  border-color: rgba(255, 172, 208, 0.48);
  background: linear-gradient(135deg, #ff91c9, #ff4fa3);
  color: #190a13;
  box-shadow: 0 0 26px rgba(255, 79, 163, 0.24);
}

html[data-theme="dark"] .pagination .disabled,
html[data-theme="dark"] button:disabled,
html[data-theme="dark"] .buy-now-button:disabled,
html[data-theme="dark"] .cart-icon-button:disabled,
html[data-theme="dark"] .chat-icon-button:disabled {
  border-color: rgba(255, 151, 202, 0.12);
  background: rgba(255, 151, 202, 0.065);
  color: rgba(255, 242, 248, 0.48);
  box-shadow: none;
  opacity: 1;
}

html[data-theme="dark"] .catalog-search input,
html[data-theme="dark"] .form-stack input,
html[data-theme="dark"] .form-stack textarea,
html[data-theme="dark"] .form-stack select,
html[data-theme="dark"] .buy-box input,
html[data-theme="dark"] .cart-item input[type="number"],
html[data-theme="dark"] .order-search input,
html[data-theme="dark"] .admin-product-search input {
  border-color: rgba(255, 151, 202, 0.24);
  background: rgba(255, 151, 202, 0.075);
  color: #fff2f8;
}

html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] textarea::placeholder {
  color: rgba(255, 242, 248, 0.48);
}

html[data-theme="dark"] .article-page .ghost-button,
html[data-theme="dark"] .back-to-catalog {
  border-color: rgba(255, 151, 202, 0.24);
  background: rgba(255, 151, 202, 0.1);
  color: #fff2f8;
}

html[data-theme="dark"] .article-page .ghost-button:hover,
html[data-theme="dark"] .back-to-catalog:hover {
  background: linear-gradient(135deg, #ff91c9, #ff4fa3);
  color: #190a13;
}

@media (max-width: 1240px) {
  .main-nav.is-open,
  .header-actions.is-open {
    gap: 8px;
    border-radius: 8px;
    background: rgba(255, 247, 251, 0.62);
    padding: 8px;
  }

  .main-nav.is-open a,
  .header-actions.is-open > * {
    justify-content: center;
    min-width: 0;
    text-align: center;
  }

  html[data-theme="dark"] .main-nav.is-open,
  html[data-theme="dark"] .header-actions.is-open {
    background: rgba(255, 151, 202, 0.06);
  }
}

@media (max-width: 720px) {
  .hero-image {
    background:
      linear-gradient(180deg, rgba(53, 20, 41, 0.72), rgba(201, 45, 120, 0.34) 48%, rgba(255, 247, 251, 0.46)),
      url("../img/hero-tenun.png") center / cover;
  }

  .admin-tabs,
  .filter-chips,
  .form-actions {
    gap: 10px;
  }

  .admin-tabs a,
  .filter-chips a,
  .form-actions > *,
  .pagination a,
  .pagination span {
    min-height: 46px;
  }

  html[data-theme="dark"] .hero-image {
    background:
      linear-gradient(180deg, rgba(15, 5, 11, 0.9), rgba(84, 18, 58, 0.62) 48%, rgba(15, 5, 11, 0.78)),
      url("../img/hero-tenun.png") center / cover;
  }
}

@media (max-width: 720px) {
  .header-actions.is-open .theme-toggle {
    gap: 8px;
  }

  .theme-toggle-text {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
    white-space: normal;
  }
}

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

.feature-image-tile {
  position: relative;
  min-height: 260px;
  aspect-ratio: 4 / 3;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(232, 95, 157, 0.22);
  border-radius: 8px;
  background: rgba(255, 247, 251, 0.8);
  box-shadow: 0 22px 70px rgba(143, 28, 88, 0.1);
}

.feature-image-tile img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 420ms ease, filter 420ms ease;
}

.feature-image-tile:nth-child(1) img {
  object-position: 32% 50%;
}

.feature-image-tile:nth-child(2) img {
  object-position: center;
}

.feature-image-tile:nth-child(3) img {
  object-position: 72% 50%;
}

.feature-image-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(53, 20, 41, 0.02), rgba(201, 45, 120, 0.08)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.11) 0 4px, transparent 4px 12px);
  pointer-events: none;
}

.feature-image-tile:hover img {
  transform: scale(1.035);
  filter: saturate(1.06) contrast(1.04);
}

.cart-link {
  border-color: rgba(13, 148, 136, 0.2);
  background: rgba(240, 253, 250, 0.78);
  color: #134e4a;
}

.cart-link:hover {
  border-color: rgba(13, 148, 136, 0.34);
  background: rgba(204, 251, 241, 0.82);
  color: #0f3f3b;
  box-shadow: 0 14px 34px rgba(13, 148, 136, 0.16);
}

.cart-link b {
  background: linear-gradient(135deg, #facc15, #f59e0b);
  color: #2f1b05;
}

.product-actions .cart-icon-button,
.cart-icon-button {
  border-color: rgba(13, 148, 136, 0.12);
  background: linear-gradient(135deg, #5eead4, #14b8a6 52%, #0f766e);
  color: #042f2e;
  box-shadow: 0 14px 32px rgba(13, 148, 136, 0.24);
}

.product-actions .chat-icon-button,
.chat-icon-button {
  border-color: rgba(37, 99, 235, 0.12);
  background: linear-gradient(135deg, #bfdbfe, #60a5fa 48%, #2563eb);
  color: #082f68;
  box-shadow: 0 14px 32px rgba(37, 99, 235, 0.2);
}

.product-actions .buy-now-button,
.buy-now-button {
  border-color: rgba(217, 119, 6, 0.12);
  background: linear-gradient(135deg, #fde68a, #f59e0b 48%, #b45309);
  color: #2f1b05;
  box-shadow: 0 16px 34px rgba(217, 119, 6, 0.24);
}

.product-actions .cart-icon-button:hover,
.cart-icon-button:hover {
  background: linear-gradient(135deg, #99f6e4, #2dd4bf 50%, #0d9488);
}

.product-actions .chat-icon-button:hover,
.chat-icon-button:hover {
  background: linear-gradient(135deg, #dbeafe, #93c5fd 50%, #3b82f6);
}

.product-actions .buy-now-button:hover,
.buy-now-button:hover {
  background: linear-gradient(135deg, #fef3c7, #fbbf24 48%, #d97706);
}

button:disabled,
.buy-now-button:disabled,
.cart-icon-button:disabled,
.chat-icon-button:disabled {
  border-color: rgba(114, 83, 101, 0.12);
  background: rgba(255, 247, 251, 0.52);
  color: rgba(91, 41, 72, 0.5);
  text-shadow: none;
  box-shadow: none;
  opacity: 1;
}

html[data-theme="dark"] .feature-image-tile {
  border-color: rgba(255, 79, 163, 0.2);
  background: rgba(19, 7, 14, 0.82);
  box-shadow: 0 24px 72px rgba(0, 0, 0, 0.32), 0 0 26px rgba(255, 79, 163, 0.06);
}

html[data-theme="dark"] .feature-image-tile::after {
  background:
    linear-gradient(180deg, rgba(15, 5, 11, 0.03), rgba(255, 79, 163, 0.08)),
    repeating-linear-gradient(90deg, rgba(255, 172, 208, 0.08) 0 4px, transparent 4px 12px);
}

html[data-theme="dark"] .cart-link {
  border-color: rgba(45, 212, 191, 0.28);
  background: rgba(20, 184, 166, 0.12);
  color: #ccfbf1;
}

html[data-theme="dark"] .cart-link:hover {
  border-color: rgba(94, 234, 212, 0.5);
  background: rgba(20, 184, 166, 0.18);
  box-shadow: 0 0 28px rgba(20, 184, 166, 0.18);
}

html[data-theme="dark"] .cart-link b {
  background: linear-gradient(135deg, #facc15, #f59e0b);
  color: #190a13;
}

html[data-theme="dark"] .product-actions .cart-icon-button,
html[data-theme="dark"] .cart-icon-button {
  border-color: rgba(94, 234, 212, 0.22);
  background: linear-gradient(135deg, #5eead4, #14b8a6 54%, #0f766e);
  color: #06201d;
  box-shadow: 0 0 26px rgba(20, 184, 166, 0.24), 0 18px 38px rgba(0, 0, 0, 0.28);
}

html[data-theme="dark"] .product-actions .chat-icon-button,
html[data-theme="dark"] .chat-icon-button {
  border-color: rgba(147, 197, 253, 0.22);
  background: linear-gradient(135deg, #93c5fd, #3b82f6 52%, #1d4ed8);
  color: #081a35;
  box-shadow: 0 0 26px rgba(59, 130, 246, 0.24), 0 18px 38px rgba(0, 0, 0, 0.28);
}

html[data-theme="dark"] .product-actions .buy-now-button,
html[data-theme="dark"] .buy-now-button {
  border-color: rgba(251, 191, 36, 0.22);
  background: linear-gradient(135deg, #fde68a, #f59e0b 48%, #b45309);
  color: #201103;
  box-shadow: 0 0 26px rgba(245, 158, 11, 0.25), 0 18px 38px rgba(0, 0, 0, 0.28);
}

html[data-theme="dark"] button:disabled,
html[data-theme="dark"] .buy-now-button:disabled,
html[data-theme="dark"] .cart-icon-button:disabled,
html[data-theme="dark"] .chat-icon-button:disabled {
  border-color: rgba(255, 151, 202, 0.12);
  background: rgba(255, 151, 202, 0.065);
  color: rgba(255, 242, 248, 0.48);
  box-shadow: none;
  opacity: 1;
}

@media (max-width: 900px) {
  .feature-image-grid {
    grid-template-columns: 1fr;
  }

  .feature-image-tile {
    min-height: 220px;
  }
}

.menu-toggle {
  border-color: rgba(201, 45, 120, 0.26);
  background: rgba(255, 240, 247, 0.84);
  box-shadow: 0 10px 24px rgba(143, 28, 88, 0.12);
}

.menu-toggle span {
  background: #8f1c58;
}

.menu-toggle:hover {
  border-color: rgba(201, 45, 120, 0.42);
  background: rgba(255, 225, 238, 0.94);
}

.product-image::after {
  background: linear-gradient(180deg, transparent 54%, rgba(53, 20, 41, 0.42));
  mix-blend-mode: normal;
}

.feature-image-tile::after {
  background: linear-gradient(180deg, rgba(53, 20, 41, 0.02), rgba(201, 45, 120, 0.08));
}

body.has-app-sidebar {
  padding-left: 292px;
}

.has-app-sidebar .logged-in-header {
  display: none;
}

.app-sidebar {
  position: fixed;
  top: 16px;
  bottom: 16px;
  left: 16px;
  z-index: 70;
  display: flex;
  width: 260px;
  flex-direction: column;
  gap: 14px;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid rgba(201, 45, 120, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(155deg, rgba(255, 247, 251, 0.96), rgba(255, 231, 241, 0.9)),
    rgba(255, 255, 255, 0.82);
  box-shadow: 0 24px 80px rgba(143, 28, 88, 0.16);
  padding: 14px;
  backdrop-filter: blur(20px);
}

.app-sidebar::-webkit-scrollbar {
  width: 8px;
}

.app-sidebar::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(201, 45, 120, 0.34);
}

.app-sidebar-brand,
.sidebar-account {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 11px;
  align-items: center;
}

.app-sidebar-brand img,
.sidebar-account img {
  width: 48px;
  height: 48px;
  border-radius: 8px;
}

.app-sidebar-brand strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.12rem;
  color: #351429;
}

.app-sidebar-brand span,
.sidebar-account small,
.sidebar-account span {
  display: block;
  color: rgba(91, 41, 72, 0.72);
  font-size: 0.72rem;
  line-height: 1.45;
}

.sidebar-account {
  border: 1px solid rgba(201, 45, 120, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.62);
  padding: 10px;
}

.sidebar-account strong {
  display: block;
  color: #351429;
  font-size: 0.95rem;
}

.sidebar-nav {
  display: grid;
  gap: 8px;
}

.sidebar-nav a {
  display: grid;
  min-height: 48px;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(201, 45, 120, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.54);
  color: #5b2948;
  padding: 7px 9px;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
  border-color: rgba(201, 45, 120, 0.3);
  background: linear-gradient(135deg, #ff9fc6, #e85f9d 52%, #b81761);
  color: #fff7fb;
  box-shadow: 0 16px 34px rgba(201, 45, 120, 0.24);
  transform: translateY(-1px);
}

.sidebar-icon,
.sidebar-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-weight: 900;
}

.sidebar-icon {
  width: 38px;
  height: 34px;
  background: rgba(255, 210, 229, 0.86);
  color: #8f1c58;
  font-size: 0.76rem;
}

.sidebar-nav a.active .sidebar-icon,
.sidebar-nav a:hover .sidebar-icon {
  background: rgba(255, 247, 251, 0.22);
  color: #fff7fb;
}

.sidebar-badge {
  min-width: 28px;
  height: 28px;
  background: linear-gradient(135deg, #facc15, #f59e0b);
  color: #2f1b05;
  padding: 0 8px;
}

.sidebar-actions {
  display: grid;
  gap: 10px;
  margin-top: auto;
  padding-top: 8px;
}

.sidebar-actions .theme-toggle,
.sidebar-logout {
  display: inline-flex;
  width: 100%;
  min-width: 0;
  min-height: 46px;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  border: 1px solid rgba(201, 45, 120, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
  color: #3b1730;
  padding: 0 12px;
  font-weight: 900;
}

.sidebar-actions .theme-toggle-text {
  position: static;
  width: auto;
  height: auto;
  overflow: visible;
  clip: auto;
  white-space: normal;
}

.sidebar-logout {
  justify-content: center;
  background: linear-gradient(135deg, #3b1730, #8f1c58);
  color: #fff7fb;
}

.sidebar-scrim {
  display: none;
}

.has-app-sidebar .admin-tabs {
  display: none;
}

.has-app-sidebar .subpage {
  padding-top: 34px;
}

.has-app-sidebar .section-wrap {
  padding-top: 44px;
}

.has-app-sidebar .site-footer {
  margin-top: 36px;
}

.has-app-sidebar .flash-stack {
  right: 20px;
  width: min(360px, calc(100% - 332px));
}

html[data-theme="dark"] .menu-toggle {
  border-color: rgba(255, 79, 163, 0.32);
  background: rgba(255, 151, 202, 0.1);
  box-shadow: 0 0 22px rgba(255, 79, 163, 0.1);
}

html[data-theme="dark"] .menu-toggle span {
  background: #fff2f8;
}

html[data-theme="dark"] .app-sidebar {
  border-color: rgba(255, 79, 163, 0.24);
  background:
    linear-gradient(155deg, rgba(19, 7, 14, 0.96), rgba(62, 14, 44, 0.88)),
    rgba(15, 5, 11, 0.9);
  box-shadow: 0 24px 86px rgba(0, 0, 0, 0.48), 0 0 28px rgba(255, 79, 163, 0.08);
}

html[data-theme="dark"] .app-sidebar-brand strong,
html[data-theme="dark"] .sidebar-account strong {
  color: #fff2f8;
}

html[data-theme="dark"] .app-sidebar-brand span,
html[data-theme="dark"] .sidebar-account small,
html[data-theme="dark"] .sidebar-account span {
  color: rgba(255, 242, 248, 0.72);
}

html[data-theme="dark"] .sidebar-account,
html[data-theme="dark"] .sidebar-nav a,
html[data-theme="dark"] .sidebar-actions .theme-toggle {
  border-color: rgba(255, 151, 202, 0.16);
  background: rgba(255, 151, 202, 0.08);
  color: #fff2f8;
}

html[data-theme="dark"] .sidebar-icon {
  background: rgba(255, 79, 163, 0.16);
  color: #ffacd0;
}

html[data-theme="dark"] .sidebar-nav a:hover,
html[data-theme="dark"] .sidebar-nav a.active {
  border-color: rgba(255, 172, 208, 0.38);
  background: linear-gradient(135deg, #ff5bab, #e7197e 54%, #7c154f);
  color: #fff7fb;
  box-shadow: 0 0 28px rgba(255, 79, 163, 0.2);
}

html[data-theme="dark"] .feature-image-tile::after {
  background: linear-gradient(180deg, rgba(15, 5, 11, 0.02), rgba(255, 79, 163, 0.08));
}

@media (max-width: 960px) {
  body.has-app-sidebar {
    padding-left: 0;
  }

  .has-app-sidebar .logged-in-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .has-app-sidebar .logged-in-header .brand small {
    display: none;
  }

  .app-sidebar {
    z-index: 85;
    width: min(320px, calc(100vw - 26px));
    transform: translateX(calc(-100% - 28px));
    transition: transform 240ms ease;
  }

  .app-sidebar.is-open {
    transform: translateX(0);
  }

  .sidebar-scrim:not([hidden]) {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: block;
    border: 0;
    background: rgba(53, 20, 41, 0.42);
    padding: 0;
    backdrop-filter: blur(4px);
  }

  body.sidebar-open {
    overflow: hidden;
  }

  .has-app-sidebar .subpage {
    padding-top: 116px;
  }

  .has-app-sidebar .section-wrap {
    padding-top: 72px;
  }

  .has-app-sidebar .flash-stack {
    right: 12px;
    left: 12px;
    width: auto;
  }
}

@media (max-width: 720px) {
  body:not(.has-app-sidebar) .main-header {
    max-height: calc(100dvh - 20px);
    align-content: start;
    overflow-y: auto;
  }

  .header-actions.is-open .cart-link span {
    display: inline-flex;
  }

  .header-actions.is-open .cart-link {
    justify-content: center;
    gap: 12px;
  }

  #tentang .section-heading p {
    text-align: justify;
    text-align-last: left;
  }
}

@keyframes flashEnter {
  from {
    opacity: 0;
    transform: translateY(-10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes flashLeave {
  to {
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
  }
}

.flash,
.cart-toast {
  animation: flashEnter 220ms ease both;
}

.flash.is-leaving,
.cart-toast.is-hiding {
  pointer-events: none;
  animation: flashLeave 260ms ease forwards;
}

.filter-dropdown {
  width: 100%;
}

.filter-dropdown summary {
  display: flex;
  min-height: 56px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  list-style: none;
  cursor: pointer;
  border: 1px solid rgba(201, 45, 120, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 247, 251, 0.95), rgba(255, 225, 238, 0.78)),
    rgba(255, 255, 255, 0.78);
  color: #4b1d3a;
  padding: 12px 14px;
  font-weight: 900;
  box-shadow: 0 16px 42px rgba(201, 45, 120, 0.08);
}

.filter-dropdown summary::-webkit-details-marker {
  display: none;
}

.filter-dropdown summary::after {
  content: "";
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 180ms ease;
}

.filter-dropdown[open] summary::after {
  transform: translateY(4px) rotate(225deg);
}

.filter-dropdown summary span {
  min-width: 0;
}

.filter-dropdown summary b {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  border-radius: 8px;
  background: rgba(216, 59, 140, 0.12);
  color: #8f1c58;
  padding: 0 10px;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.filter-dropdown-body {
  display: grid;
  gap: 8px;
  max-height: min(54vh, 430px);
  overflow-y: auto;
  margin-top: 10px;
  padding: 4px;
  scrollbar-color: rgba(201, 45, 120, 0.48) transparent;
}

.filter-dropdown-body::-webkit-scrollbar {
  width: 8px;
}

.filter-dropdown-body::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(201, 45, 120, 0.42);
}

.filter-dropdown .filter-chips,
.report-toolbar .filter-chips,
.filter-dropdown-wrap .filter-chips {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
  margin: 10px 0 0;
}

.filter-dropdown .filter-chips a,
.report-toolbar .filter-chips a,
.filter-dropdown-wrap .filter-chips a {
  justify-content: center;
  min-width: 0;
  text-align: center;
}

.admin-filter-dropdowns {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.filter-dropdown-wrap {
  margin: 0 0 20px;
}

.report-toolbar {
  display: block;
}

.report-toolbar .filter-dropdown {
  max-width: 380px;
}

.report-payment-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  justify-items: center;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
  padding: 10px 4px 18px;
}

.report-donut-chart {
  position: relative;
  display: grid;
  width: min(220px, 76vw);
  aspect-ratio: 1;
  place-items: center;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(201, 45, 120, 0.18), 0 18px 42px rgba(143, 28, 88, 0.16);
}

.report-donut-chart::after {
  content: "";
  width: 58%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--line);
}

.report-donut-chart span {
  position: absolute;
  z-index: 1;
  display: grid;
  gap: 2px;
  color: var(--ink);
  font-size: 1.45rem;
  font-weight: 1000;
  line-height: 1;
  text-align: center;
}

.report-donut-chart small {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
}

.report-donut-legend {
  display: grid;
  width: min(100%, 360px);
  gap: 8px;
}

.report-donut-row {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  border: 1px solid rgba(201, 45, 120, 0.1);
  border-radius: 8px;
  background: rgba(255, 247, 251, 0.52);
  padding: 8px 10px;
  color: var(--muted);
  font-weight: 900;
  line-height: 1.25;
}

.report-donut-row i {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  box-shadow: 0 0 0 4px rgba(216, 59, 140, 0.08);
}

.report-donut-row span {
  min-width: 0;
}

.report-donut-row strong {
  color: var(--ink);
}

html[data-theme="dark"] .filter-dropdown summary {
  border-color: rgba(255, 79, 163, 0.3);
  background:
    linear-gradient(135deg, rgba(62, 14, 44, 0.92), rgba(123, 17, 77, 0.52)),
    rgba(19, 7, 14, 0.88);
  color: #fff2f8;
  box-shadow: 0 0 32px rgba(255, 79, 163, 0.12);
}

html[data-theme="dark"] .filter-dropdown summary b {
  background: rgba(255, 79, 163, 0.18);
  color: #ffacd0;
}

html[data-theme="dark"] .chart-frame {
  border-color: rgba(255, 151, 202, 0.2);
  background:
    linear-gradient(180deg, rgba(255, 79, 163, 0.1), rgba(20, 184, 166, 0.045)),
    #190814;
}

html[data-theme="dark"] .report-chart-card,
html[data-theme="dark"] .report-panel {
  border-color: rgba(255, 79, 163, 0.22);
  background:
    linear-gradient(155deg, rgba(36, 10, 27, 0.94), rgba(17, 6, 13, 0.9)),
    rgba(19, 7, 14, 0.92);
}

html[data-theme="dark"] .report-donut-chart::after {
  background: #160711;
}

html[data-theme="dark"] .report-donut-row {
  border-color: rgba(255, 79, 163, 0.18);
  background: rgba(255, 151, 202, 0.08);
}

.report-chart-card .table-head,
.report-panel .table-head {
  margin-bottom: 14px;
  border-radius: 8px;
  background: rgba(255, 247, 251, 0.58);
  padding: 12px 14px;
}

.report-chart-card .table-head h2,
.report-panel .table-head h2 {
  font-size: clamp(1.55rem, 2vw, 2rem);
  line-height: 1.08;
}

.chart-frame {
  min-height: 408px;
  padding: 16px 18px 18px;
}

.chart-frame canvas {
  height: 368px;
}

html[data-theme="dark"] .report-chart-card .table-head,
html[data-theme="dark"] .report-panel .table-head {
  background: rgba(255, 79, 163, 0.09);
}

html[data-theme="dark"] .site-footer,
html[data-theme="dark"] .site-footer strong,
html[data-theme="dark"] .site-footer p,
html[data-theme="dark"] .site-footer span,
html[data-theme="dark"] .site-footer a,
html[data-theme="dark"] .footer-brand strong,
html[data-theme="dark"] .footer-badge strong {
  color: #fff2f8 !important;
}

html[data-theme="dark"] .site-footer .footer-badge span,
html[data-theme="dark"] .site-footer .footer-contact span,
html[data-theme="dark"] .site-footer .footer-brand p {
  color: rgba(255, 242, 248, 0.78) !important;
}

@media (max-width: 960px) {
  .app-sidebar {
    top: 96px;
    bottom: auto;
    left: 50%;
    width: min(640px, calc(100vw - 24px));
    max-height: calc(100dvh - 112px);
    transform: translate(-50%, -12px) scale(0.98);
    opacity: 0;
    pointer-events: none;
    transition: transform 240ms ease, opacity 180ms ease;
  }

  .app-sidebar.is-open {
    transform: translate(-50%, 0) scale(1);
    opacity: 1;
    pointer-events: auto;
  }

  .sidebar-nav {
    max-height: min(48dvh, 430px);
    overflow-y: auto;
    padding-right: 2px;
  }
}

@media (max-width: 720px) {
  .catalog-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .filter-panel {
    position: static;
    padding: 12px;
  }

  .admin-filter-dropdowns {
    grid-template-columns: minmax(0, 1fr);
  }

  .report-donut-chart {
    width: min(188px, 62vw);
    margin: 0 auto;
  }

  .chart-frame {
    min-height: 338px;
    padding: 14px;
  }

  .chart-frame canvas {
    height: 304px;
  }

  .filter-dropdown .filter-chips,
  .report-toolbar .filter-chips,
  .filter-dropdown-wrap .filter-chips {
    grid-template-columns: minmax(0, 1fr);
  }

body:not(.has-app-sidebar) .main-nav.is-open,
  body:not(.has-app-sidebar) .header-actions.is-open {
    max-height: calc(100dvh - 118px);
    overflow-y: auto;
  }
}

.section-wrap,
.subpage,
.site-footer,
.admin-page,
.catalog-layout,
.product-grid,
.product-card,
.product-info,
.product-bottom,
.product-actions,
.report-grid,
.report-chart-card,
.report-panel,
.chart-frame,
.metric-grid,
.admin-table-wrap,
.cart-layout,
.cart-table,
.cart-item,
.checkout-layout,
.detail-layout,
.form-panel,
.summary-card,
.media-grid,
.news-grid,
.guide-book {
  max-width: 100%;
  min-width: 0;
}

canvas,
video,
svg {
  max-width: 100%;
}

h1,
h2,
h3,
p,
td,
th,
.product-info a,
.table-action,
.status-pill,
.sidebar-nav a strong,
.brand small {
  overflow-wrap: anywhere;
}

.has-app-sidebar .subpage,
.has-app-sidebar .section-wrap,
.has-app-sidebar .site-footer,
.has-app-sidebar .admin-page {
  width: min(1500px, calc(100% - 24px));
}

.has-app-sidebar .catalog-layout {
  grid-template-columns: minmax(0, 1fr);
}

.has-app-sidebar .filter-panel {
  position: static;
  width: 100%;
}

.has-app-sidebar .product-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
}

.product-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  justify-content: stretch;
}

.product-bottom > strong {
  white-space: normal;
}

.product-actions {
  display: grid;
  width: 100%;
  grid-template-columns: 44px 44px minmax(0, 1fr);
  justify-content: stretch;
}

.product-actions form,
.product-actions button,
.product-actions a {
  min-width: 0;
}

.product-actions .buy-now-button,
.buy-now-button {
  width: 100%;
  white-space: normal;
  text-align: center;
}

.admin-table-wrap {
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-x: contain;
}

.admin-table {
  min-width: min(760px, calc(100vw - 32px));
}

.chart-frame {
  overflow: hidden;
}

@media (max-width: 1500px) and (min-width: 961px) {
  body.has-app-sidebar {
    padding-left: 260px;
  }

  .app-sidebar {
    width: 228px;
  }

  .app-sidebar-brand,
  .sidebar-account {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .app-sidebar-brand img,
  .sidebar-account img {
    width: 42px;
    height: 42px;
  }

  .sidebar-nav a {
    grid-template-columns: 34px minmax(0, 1fr) auto;
    gap: 8px;
  }

  .sidebar-icon {
    width: 34px;
  }

  .has-app-sidebar .report-grid,
  .has-app-sidebar .compact-report-grid,
  .has-app-sidebar .cart-table,
  .has-app-sidebar .checkout-layout,
  .has-app-sidebar .detail-layout,
  .has-app-sidebar .order-admin-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 1180px) {
  body.has-app-sidebar {
    padding-left: 0;
  }

  .has-app-sidebar .logged-in-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .has-app-sidebar .logged-in-header .brand small {
    display: none;
  }

  .has-app-sidebar .subpage,
  .has-app-sidebar .section-wrap,
  .has-app-sidebar .site-footer,
  .has-app-sidebar .admin-page {
    width: calc(100% - 20px);
  }

  .app-sidebar {
    z-index: 85;
    top: 96px;
    bottom: auto;
    left: 50%;
    width: min(640px, calc(100vw - 24px));
    max-height: calc(100dvh - 112px);
    transform: translate(-50%, -12px) scale(0.98);
    opacity: 0;
    pointer-events: none;
    transition: transform 240ms ease, opacity 180ms ease;
  }

  .app-sidebar.is-open {
    transform: translate(-50%, 0) scale(1);
    opacity: 1;
    pointer-events: auto;
  }

  .sidebar-scrim:not([hidden]) {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: block;
    border: 0;
    background: rgba(53, 20, 41, 0.42);
    padding: 0;
    backdrop-filter: blur(4px);
  }

  .sidebar-nav {
    max-height: min(48dvh, 430px);
    overflow-y: auto;
    padding-right: 2px;
  }

  body.sidebar-open {
    overflow: hidden;
  }
}

@media (max-width: 720px) {
  .has-app-sidebar .product-grid,
  .product-grid,
  .metric-grid,
  .report-grid,
  .compact-report-grid {
    grid-template-columns: minmax(0, 1fr);
  }

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

  .catalog-search div {
    grid-template-columns: minmax(0, 1fr);
  }
}

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

  .product-actions .buy-now-button {
    grid-column: 1 / -1;
  }
}

body.has-landing-header {
  background:
    linear-gradient(180deg, rgba(255, 244, 249, 0.92), rgba(255, 230, 241, 0.76) 52%, rgba(255, 247, 251, 0.96)),
    linear-gradient(90deg, rgba(121, 8, 45, 0.05) 1px, transparent 1px),
    linear-gradient(180deg, rgba(1, 31, 58, 0.04) 1px, transparent 1px),
    #fff8fb;
  background-size: auto, 34px 34px, 34px 34px, auto;
  color: #31172c;
}

.landing-contactbar,
.landing-header,
.landing-benefits,
.landing-shop-grid,
.landing-stats {
  max-width: 100%;
}

.landing-contactbar {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid rgba(226, 178, 92, 0.58);
  background: #6e0824;
  color: #fff4da;
  padding: 8px max(22px, calc((100vw - 1480px) / 2 + 22px));
  font-size: 0.88rem;
}

.landing-contactbar > div {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.landing-contact-item,
.landing-follow-text {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.landing-mini-icon {
  position: relative;
  display: inline-block;
  width: 17px;
  height: 17px;
  color: #f0bd5a;
}

.landing-mini-phone::before {
  content: "";
  position: absolute;
  inset: 3px 5px;
  border: 2px solid currentColor;
  border-width: 0 0 2px 2px;
  border-radius: 0 0 0 8px;
  transform: rotate(-42deg);
}

.landing-mini-mail::before {
  content: "";
  position: absolute;
  inset: 3px 1px 4px;
  border: 2px solid currentColor;
  border-radius: 3px;
}

.landing-mini-mail::after {
  content: "";
  position: absolute;
  left: 3px;
  right: 3px;
  top: 6px;
  border-top: 2px solid currentColor;
  transform: skewY(-28deg);
}

.landing-mini-truck::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 12px;
  height: 7px;
  border: 2px solid currentColor;
  border-radius: 2px;
}

.landing-mini-truck::after {
  content: "";
  position: absolute;
  right: 0;
  top: 8px;
  width: 5px;
  height: 4px;
  border: 2px solid currentColor;
  border-left: 0;
  border-radius: 0 2px 2px 0;
}

.landing-social-mini {
  display: inline-flex;
  width: 26px;
  height: 26px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(240, 189, 90, 0.28);
  border-radius: 8px;
  color: #f4c96e;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.landing-social-mini svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

.landing-social-mini:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 230, 160, 0.78);
  background: rgba(255, 255, 255, 0.08);
}

.landing-header {
  position: sticky;
  top: 0;
  z-index: 55;
  border-bottom: 1px solid rgba(229, 179, 91, 0.62);
  background: #071e38;
  color: #fff7ec;
  box-shadow: 0 16px 40px rgba(16, 2, 12, 0.22);
}

.landing-header.is-scrolled {
  box-shadow: 0 18px 46px rgba(16, 2, 12, 0.32);
}

.landing-brand-row {
  display: grid;
  width: min(1480px, calc(100% - 44px));
  min-height: 108px;
  grid-template-columns: minmax(270px, 1fr) minmax(260px, 440px) auto;
  align-items: center;
  gap: clamp(16px, 2.8vw, 42px);
  margin: 0 auto;
  padding: 14px 0;
}

.landing-brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 16px;
}

.landing-brand img {
  width: clamp(58px, 6vw, 82px);
  height: clamp(58px, 6vw, 82px);
  object-fit: contain;
  filter: drop-shadow(0 12px 20px rgba(226, 178, 92, 0.22));
}

.landing-brand strong {
  display: block;
  color: #fffdf5;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 3.2vw, 3.45rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: 0;
}

.landing-brand small {
  display: block;
  margin-top: 6px;
  color: #f0bd5a;
  font-size: clamp(0.88rem, 1.3vw, 1.14rem);
  font-weight: 700;
}

.landing-search {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr) 64px;
  overflow: hidden;
  border: 1px solid rgba(240, 189, 90, 0.86);
  border-radius: 16px;
  background: rgba(255, 250, 240, 0.03);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.landing-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  color: #fffdf5;
  padding: 16px 18px;
  outline: 0;
}

.landing-search input::placeholder {
  color: rgba(255, 253, 245, 0.72);
}

.landing-search button {
  position: relative;
  border: 0;
  background: linear-gradient(135deg, #f5c76c, #d89236);
  color: #061b32;
}

.landing-search button span::before {
  content: "";
  position: absolute;
  left: 19px;
  top: 17px;
  width: 17px;
  height: 17px;
  border: 3px solid currentColor;
  border-radius: 999px;
}

.landing-search button span::after {
  content: "";
  position: absolute;
  left: 36px;
  top: 35px;
  width: 13px;
  border-top: 3px solid currentColor;
  transform: rotate(45deg);
  transform-origin: left center;
}

.landing-menu-toggle {
  display: none;
  flex-direction: column;
  justify-self: end;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-color: rgba(240, 189, 90, 0.52);
  background: rgba(110, 8, 36, 0.9);
  color: #ffe5a8;
}

.landing-menu-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  margin: 0;
  border-radius: 999px;
  background: currentColor;
  opacity: 1;
  box-shadow: 0 0 12px rgba(255, 229, 168, 0.32);
}

.landing-actions {
  display: flex;
  min-width: max-content;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  color: #fff9ee;
}

.landing-actions .theme-toggle {
  border-color: rgba(240, 189, 90, 0.52);
  background: rgba(255, 250, 240, 0.06);
}

.landing-login-link,
.landing-cart-link {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  gap: 12px;
  color: #fff9ee;
  font-weight: 800;
}

.landing-login-link {
  padding-right: 18px;
  border-right: 1px solid rgba(240, 189, 90, 0.48);
}

.landing-user-icon,
.landing-bag-icon,
.landing-home-icon {
  position: relative;
  display: inline-block;
  flex: 0 0 auto;
  color: #f0bd5a;
}

.landing-user-icon {
  width: 30px;
  height: 30px;
}

.landing-user-icon::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 3px;
  width: 12px;
  height: 12px;
  border: 2px solid currentColor;
  border-radius: 999px;
}

.landing-user-icon::after {
  content: "";
  position: absolute;
  left: 4px;
  right: 4px;
  bottom: 3px;
  height: 12px;
  border: 2px solid currentColor;
  border-radius: 14px 14px 4px 4px;
}

.landing-bag-icon {
  width: 30px;
  height: 30px;
}

.landing-bag-icon::before {
  content: "";
  position: absolute;
  left: 5px;
  right: 5px;
  bottom: 3px;
  height: 19px;
  border: 2px solid currentColor;
  border-radius: 4px;
}

.landing-bag-icon::after {
  content: "";
  position: absolute;
  left: 10px;
  top: 1px;
  width: 10px;
  height: 10px;
  border: 2px solid currentColor;
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
}

.landing-cart-link b {
  display: inline-flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(240, 189, 90, 0.56);
  border-radius: 999px;
  background: #850b2c;
  color: #f5c76c;
  font-size: 0.92rem;
}

.landing-nav {
  display: flex;
  width: min(1480px, calc(100% - 44px));
  align-items: stretch;
  gap: 8px;
  margin: 0 auto;
  border-top: 1px solid rgba(240, 189, 90, 0.34);
}

.landing-nav > a,
.landing-products-menu > summary {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 0;
  border-radius: 0;
  color: #fffdf5;
  padding: 0 22px;
  font-weight: 900;
  text-transform: uppercase;
}

.landing-nav > a:hover,
.landing-products-menu > summary:hover {
  color: #f5c76c;
}

.landing-nav > a.active {
  position: relative;
  min-width: 184px;
  justify-content: flex-start;
  background: linear-gradient(135deg, #8a0d2e, #4e061c);
  color: #fff8e4;
  clip-path: polygon(10% 0, 88% 0, 100% 100%, 0 100%);
  padding-left: 44px;
}

.landing-home-icon {
  width: 18px;
  height: 18px;
}

.landing-home-icon::before {
  content: "";
  position: absolute;
  left: 1px;
  top: 7px;
  width: 15px;
  height: 11px;
  background: currentColor;
  clip-path: polygon(50% 0, 100% 45%, 86% 45%, 86% 100%, 58% 100%, 58% 66%, 42% 66%, 42% 100%, 14% 100%, 14% 45%, 0 45%);
}

.landing-products-menu {
  position: relative;
}

.landing-products-menu > summary {
  cursor: pointer;
  list-style: none;
}

.landing-products-menu > summary::-webkit-details-marker {
  display: none;
}

.landing-products-menu > summary span {
  width: 9px;
  height: 9px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}

.landing-products-menu > div {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: 70;
  display: grid;
  width: 250px;
  gap: 6px;
  border: 1px solid rgba(240, 189, 90, 0.48);
  border-radius: 16px;
  background: rgba(4, 22, 43, 0.96);
  padding: 10px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.24);
}

.landing-products-menu:not([open]) > div {
  display: none;
}

.landing-products-menu > div a {
  border-radius: 10px;
  color: #fff9ee;
  padding: 10px 12px;
  font-weight: 800;
}

.landing-products-menu > div a:hover {
  background: rgba(240, 189, 90, 0.14);
  color: #f5c76c;
}

.landing-page {
  width: 100%;
  overflow: hidden;
}

.landing-hero {
  position: relative;
  display: grid;
  min-height: clamp(520px, 50vw, 660px);
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
  align-items: stretch;
  overflow: hidden;
  border-bottom: 1px solid rgba(226, 178, 92, 0.56);
  background:
    linear-gradient(90deg, rgba(4, 23, 45, 0.98), rgba(4, 23, 45, 0.92) 42%, rgba(99, 7, 35, 0.66)),
    url("../img/hero-tenun.png") center / cover;
  color: #fffdf7;
}

.landing-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 0 78%, rgba(4, 23, 45, 0.74));
}

.landing-hero-copy {
  position: relative;
  z-index: 2;
  display: grid;
  align-content: center;
  width: min(720px, 100%);
  padding: clamp(46px, 6vw, 88px) clamp(22px, 5vw, 118px) clamp(46px, 6vw, 88px) clamp(96px, 7vw, 124px);
}

.landing-pill {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  border: 1px solid rgba(245, 199, 108, 0.72);
  border-radius: 999px;
  background: #8a0d2e;
  color: #fff7ec;
  padding: 8px 14px;
  font-size: 0.77rem;
  font-weight: 900;
  text-transform: uppercase;
}

.landing-hero h1 {
  max-width: 720px;
  margin: 18px 0 18px;
  color: #fffdf7;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 4.6vw, 5.6rem);
  line-height: 0.98;
  letter-spacing: 0;
  overflow-wrap: normal;
  word-break: normal;
}

.landing-hero h1 span {
  display: block;
  color: #f5c76c;
  overflow-wrap: normal;
  word-break: normal;
}

.landing-hero p {
  max-width: 620px;
  margin: 0;
  color: rgba(255, 253, 247, 0.9);
  font-size: clamp(1rem, 1.18vw, 1.22rem);
  line-height: 1.75;
}

.landing-hero-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.landing-primary,
.landing-link {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-radius: 8px;
  font-weight: 900;
}

.landing-primary {
  border: 1px solid rgba(245, 199, 108, 0.78);
  background: linear-gradient(135deg, #990f35, #6b0827);
  color: #fff7ed;
  padding: 0 24px;
  box-shadow: 0 18px 34px rgba(83, 3, 27, 0.28);
}

.landing-primary::after {
  content: "";
  width: 18px;
  height: 18px;
  border: 2px solid #f5c76c;
  border-top: 0;
  border-radius: 3px;
  box-shadow: inset 0 -2px 0 #f5c76c;
}

.landing-link {
  color: #fff3d0;
  padding: 0 8px;
}

.landing-link span,
.landing-section-title a span {
  position: relative;
  width: 28px;
  height: 2px;
  background: currentColor;
}

.landing-link span::after,
.landing-section-title a span::after {
  content: "";
  position: absolute;
  right: 0;
  top: -5px;
  width: 11px;
  height: 11px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
}

.landing-dots {
  display: flex;
  gap: 14px;
  margin-top: 28px;
}

.landing-dots span {
  width: 28px;
  height: 7px;
  border-radius: 999px;
  background: #f5c76c;
  box-shadow: 0 0 0 1px rgba(255, 247, 228, 0.2);
}

.landing-dots span:nth-child(2) {
  background: #a8183b;
}

.landing-dots span:nth-child(3) {
  background: #fffdf7;
}

.landing-hero-media {
  position: relative;
  z-index: 1;
  min-width: 0;
  overflow: hidden;
  border-left: 8px solid #d7a34b;
  clip-path: polygon(12% 0, 100% 0, 100% 100%, 0 100%);
}

.landing-hero-main-image {
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(1.06) contrast(1.04);
}

.landing-hero-logo {
  position: absolute;
  right: clamp(22px, 5vw, 84px);
  bottom: clamp(22px, 5vw, 70px);
  width: clamp(94px, 12vw, 180px);
  height: auto;
  opacity: 0.94;
  filter: drop-shadow(0 20px 34px rgba(0, 0, 0, 0.28));
}

.landing-hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  display: inline-flex;
  width: 56px;
  height: 56px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(245, 199, 108, 0.75);
  border-radius: 999px;
  background: rgba(112, 8, 38, 0.9);
  color: #f5c76c;
  transform: translateY(-50%);
}

.landing-hero-arrow-left {
  left: clamp(16px, 2vw, 28px);
}

.landing-hero-arrow-right {
  right: clamp(16px, 2vw, 28px);
}

.landing-hero-arrow span {
  width: 13px;
  height: 13px;
  border-top: 3px solid currentColor;
  border-left: 3px solid currentColor;
}

.landing-hero-arrow-left span {
  transform: rotate(-45deg);
}

.landing-hero-arrow-right span {
  transform: rotate(135deg);
}

.landing-benefits {
  position: relative;
  z-index: 3;
  display: grid;
  width: min(1480px, calc(100% - 44px));
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: -46px auto 0;
  overflow: hidden;
  border: 1px solid rgba(245, 199, 108, 0.72);
  border-radius: 18px;
  background: rgba(4, 23, 45, 0.96);
  color: #fffaf0;
  box-shadow: 0 24px 70px rgba(71, 5, 28, 0.18);
}

.landing-benefits article {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  padding: 22px 24px;
}

.landing-benefits article + article {
  border-left: 1px solid rgba(245, 199, 108, 0.45);
}

.landing-benefit-icon {
  display: inline-flex;
  width: 58px;
  height: 58px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(245, 199, 108, 0.72);
  border-radius: 18px;
  background: linear-gradient(135deg, #940e35, #3c1730);
  color: #ffd780;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.2rem;
  font-weight: 900;
}

.landing-benefits strong {
  display: block;
  color: #f5c76c;
  font-size: 1rem;
  text-transform: uppercase;
}

.landing-benefits p {
  margin: 5px 0 0;
  color: rgba(255, 250, 240, 0.86);
  line-height: 1.55;
}

.landing-shop-grid {
  width: min(1480px, calc(100% - 44px));
  margin: clamp(34px, 5vw, 70px) auto 0;
}

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

.landing-section-title span {
  display: inline-block;
  color: #7f1231;
  font-size: 1rem;
  font-weight: 900;
  text-transform: uppercase;
}

.landing-section-title h2 {
  margin: 6px 0 0;
  color: #2d1530;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.9rem, 3vw, 3rem);
  line-height: 1.05;
}

.landing-section-title a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #915b12;
  font-weight: 900;
  white-space: nowrap;
}

.landing-category-grid,
.landing-product-grid {
  display: grid;
  gap: 18px;
}

.landing-category-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
}

.landing-category-card {
  display: grid;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(122, 18, 49, 0.18);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.76);
  color: #35132b;
  box-shadow: 0 18px 48px rgba(150, 29, 80, 0.11);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.landing-category-card:hover {
  transform: translateY(-4px);
  border-color: rgba(213, 151, 60, 0.75);
  box-shadow: 0 22px 54px rgba(150, 29, 80, 0.16);
}

.landing-category-card img {
  width: 100%;
  aspect-ratio: 1.35;
  object-fit: cover;
}

.landing-category-card span {
  display: block;
  margin: 16px 16px 5px;
  font-size: 1.06rem;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
}

.landing-category-card p {
  margin: 0 16px 12px;
  color: #745365;
  line-height: 1.55;
  text-align: center;
}

.landing-category-card strong {
  display: inline-flex;
  width: fit-content;
  justify-self: center;
  margin: auto 16px 18px;
  border-radius: 999px;
  background: rgba(245, 199, 108, 0.2);
  color: #7f1231;
  padding: 7px 12px;
  font-size: 0.88rem;
}

.landing-product-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 245px), 1fr));
}

.landing-product-card {
  position: relative;
  display: grid;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(122, 18, 49, 0.18);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.84);
  color: #2d1530;
  box-shadow: 0 18px 48px rgba(150, 29, 80, 0.1);
}

.landing-product-card > a {
  position: relative;
  overflow: hidden;
}

.landing-product-card img {
  width: 100%;
  aspect-ratio: 1.18;
  object-fit: cover;
  transition: transform 220ms ease;
}

.landing-product-card:hover img {
  transform: scale(1.035);
}

.landing-product-card > a span {
  position: absolute;
  left: 12px;
  top: 12px;
  border-radius: 999px;
  background: #850b2c;
  color: #fff7ec;
  padding: 6px 10px;
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.landing-product-card > div {
  position: relative;
  display: grid;
  gap: 6px;
  padding: 15px 58px 16px 16px;
}

.landing-product-card small {
  color: #7f1231;
  font-weight: 900;
  text-transform: uppercase;
}

.landing-product-card h3 {
  margin: 0;
  min-height: 2.7em;
  color: #2d1530;
  font-size: 1rem;
  line-height: 1.34;
}

.landing-product-card p {
  margin: 0;
  color: #5f3e52;
  font-weight: 900;
}

.landing-cart-button {
  position: absolute;
  right: 14px;
  bottom: 15px;
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: linear-gradient(135deg, #940e35, #65071f);
  color: #f5c76c;
}

.landing-cart-button span {
  position: relative;
  width: 20px;
  height: 19px;
}

.landing-cart-button span::before {
  content: "";
  position: absolute;
  left: 2px;
  right: 2px;
  bottom: 2px;
  height: 12px;
  border: 2px solid currentColor;
  border-top: 0;
  border-radius: 2px;
}

.landing-cart-button span::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 0;
  width: 8px;
  height: 8px;
  border: 2px solid currentColor;
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
}

.landing-stats {
  display: grid;
  width: min(1480px, calc(100% - 44px));
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: clamp(34px, 5vw, 70px) auto 0;
  overflow: hidden;
  border: 1px solid rgba(245, 199, 108, 0.62);
  border-radius: 18px;
  background: linear-gradient(135deg, #7f0b2b, #4d061d);
  color: #fff7ec;
}

.landing-stats article {
  display: grid;
  justify-items: center;
  gap: 5px;
  padding: 24px 20px;
  text-align: center;
}

.landing-stats article + article {
  border-left: 1px solid rgba(245, 199, 108, 0.42);
}

.landing-stats strong {
  color: #f5c76c;
  font-size: clamp(1.8rem, 3vw, 2.9rem);
  line-height: 1;
}

.landing-stats span {
  color: rgba(255, 247, 236, 0.9);
  font-weight: 800;
}

body.has-landing-header .site-footer {
  margin-top: clamp(42px, 6vw, 82px);
}

html[data-theme="dark"] body.has-landing-header {
  background:
    linear-gradient(180deg, rgba(8, 2, 14, 0.98), rgba(27, 3, 21, 0.96) 50%, rgba(4, 12, 25, 0.98)),
    linear-gradient(90deg, rgba(255, 91, 171, 0.08) 1px, transparent 1px),
    linear-gradient(180deg, rgba(245, 199, 108, 0.04) 1px, transparent 1px),
    #07020a;
  background-size: auto, 34px 34px, 34px 34px, auto;
  color: #fff1f8;
}

html[data-theme="dark"] .landing-contactbar {
  border-bottom-color: rgba(255, 91, 171, 0.44);
  background: #260013;
  color: #ffdcec;
}

html[data-theme="dark"] .landing-header {
  border-bottom-color: rgba(255, 91, 171, 0.42);
  background: #040b18;
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.5);
}

html[data-theme="dark"] .landing-brand strong,
html[data-theme="dark"] .landing-section-title h2,
html[data-theme="dark"] .landing-product-card h3 {
  color: #fff5fb;
}

html[data-theme="dark"] .landing-brand small,
html[data-theme="dark"] .landing-section-title span,
html[data-theme="dark"] .landing-section-title a,
html[data-theme="dark"] .landing-social-mini,
html[data-theme="dark"] .landing-user-icon,
html[data-theme="dark"] .landing-bag-icon {
  color: #ff7bbb;
}

html[data-theme="dark"] .landing-search {
  border-color: rgba(255, 123, 187, 0.58);
  background: rgba(255, 91, 171, 0.08);
}

html[data-theme="dark"] .landing-search button,
html[data-theme="dark"] .landing-primary,
html[data-theme="dark"] .landing-cart-button,
html[data-theme="dark"] .landing-nav > a.active,
html[data-theme="dark"] .landing-benefit-icon {
  background: linear-gradient(135deg, #ff5bab, #b51267);
  color: #12000a;
}

html[data-theme="dark"] .landing-actions .theme-toggle,
html[data-theme="dark"] .landing-menu-toggle,
html[data-theme="dark"] .landing-cart-link b {
  border-color: rgba(255, 123, 187, 0.58);
  background: rgba(255, 91, 171, 0.16);
  color: #fff5fb;
}

html[data-theme="dark"] .landing-hero {
  border-bottom-color: rgba(255, 91, 171, 0.44);
  background:
    linear-gradient(90deg, rgba(3, 8, 19, 0.98), rgba(17, 3, 18, 0.91) 44%, rgba(173, 13, 97, 0.48)),
    url("../img/hero-tenun.png") center / cover;
}

html[data-theme="dark"] .landing-hero h1 span,
html[data-theme="dark"] .landing-pill,
html[data-theme="dark"] .landing-benefits strong,
html[data-theme="dark"] .landing-product-card small,
html[data-theme="dark"] .landing-category-card strong,
html[data-theme="dark"] .landing-stats strong {
  color: #ff7bbb;
}

html[data-theme="dark"] .landing-pill {
  border-color: rgba(255, 123, 187, 0.7);
  background: rgba(255, 91, 171, 0.15);
}

html[data-theme="dark"] .landing-benefits,
html[data-theme="dark"] .landing-products-menu > div {
  border-color: rgba(255, 91, 171, 0.36);
  background: rgba(5, 10, 22, 0.96);
}

html[data-theme="dark"] .landing-category-card,
html[data-theme="dark"] .landing-product-card {
  border-color: rgba(255, 91, 171, 0.24);
  background: rgba(36, 5, 25, 0.82);
  color: #fff5fb;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.3);
}

html[data-theme="dark"] .landing-category-card p,
html[data-theme="dark"] .landing-product-card p {
  color: #f0c8dc;
}

html[data-theme="dark"] .landing-stats {
  border-color: rgba(255, 91, 171, 0.4);
  background: linear-gradient(135deg, #3a041d, #160611);
}

@media (max-width: 1180px) {
  .landing-contactbar {
    justify-content: center;
  }

  .landing-contactbar > div {
    justify-content: center;
  }

  .landing-brand-row {
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: 88px;
  }

  .landing-search,
  .landing-actions,
  .landing-nav {
    display: none;
  }

  .landing-menu-toggle {
    display: inline-flex;
  }

  .landing-nav.is-open,
  .landing-actions.is-open {
    display: grid;
    width: min(720px, calc(100% - 28px));
    margin: 0 auto;
    border: 1px solid rgba(240, 189, 90, 0.34);
    border-radius: 16px;
    background: rgba(255, 248, 252, 0.98);
    color: #34162e;
    padding: 10px;
  }

  .landing-nav.is-open {
    gap: 6px;
  }

  .landing-actions.is-open {
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
    gap: 10px;
    margin-top: 10px;
    margin-bottom: 12px;
  }

  .landing-nav > a,
  .landing-products-menu > summary {
    min-height: 48px;
    justify-content: flex-start;
    border-radius: 12px;
    color: inherit;
    padding: 0 14px;
  }

  .landing-nav > a.active {
    min-width: 0;
    clip-path: none;
    padding-left: 14px;
  }

  .landing-products-menu > div {
    position: static;
    width: 100%;
    margin-top: 6px;
    box-shadow: none;
  }

  .landing-actions .theme-toggle,
  .landing-login-link,
  .landing-cart-link {
    width: 100%;
    justify-content: center;
    border: 1px solid rgba(127, 18, 49, 0.14);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.62);
    color: #34162e;
    padding: 11px 14px;
  }

  .landing-login-link {
    border-right: 1px solid rgba(127, 18, 49, 0.14);
  }

  html[data-theme="dark"] .landing-nav.is-open,
  html[data-theme="dark"] .landing-actions.is-open {
    border-color: rgba(255, 91, 171, 0.28);
    background: rgba(30, 3, 20, 0.98);
    color: #fff5fb;
  }

  html[data-theme="dark"] .landing-actions .theme-toggle,
  html[data-theme="dark"] .landing-login-link,
  html[data-theme="dark"] .landing-cart-link {
    border-color: rgba(255, 91, 171, 0.28);
    background: rgba(255, 91, 171, 0.12);
    color: #fff5fb;
  }

  body.has-landing-header .landing-hero::before {
    display: none;
  }

  .landing-hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .landing-hero-copy {
    width: 100%;
    padding-right: clamp(22px, 5vw, 70px);
    padding-left: clamp(22px, 5vw, 70px);
  }

  .landing-hero-media {
    min-height: 340px;
    border-left: 0;
    border-top: 6px solid #d7a34b;
    clip-path: none;
  }

  .landing-benefits {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 24px;
  }

  .landing-benefits article + article,
  .landing-stats article + article {
    border-left: 0;
  }

  .landing-benefits article:nth-child(odd),
  .landing-stats article:nth-child(odd) {
    border-right: 1px solid rgba(245, 199, 108, 0.32);
  }

  .landing-benefits article:nth-child(n+3),
  .landing-stats article:nth-child(n+3) {
    border-top: 1px solid rgba(245, 199, 108, 0.32);
  }

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

@media (max-width: 720px) {
  .landing-contactbar {
    display: none;
  }

  .landing-header {
    top: 0;
  }

  .landing-brand-row,
  .landing-shop-grid,
  .landing-benefits,
  .landing-stats {
    width: calc(100% - 24px);
  }

  .landing-brand-row {
    min-height: 78px;
  }

  .landing-brand {
    gap: 10px;
  }

  .landing-brand img {
    width: 54px;
    height: 54px;
  }

  .landing-brand strong {
    font-size: clamp(1.38rem, 7vw, 2rem);
  }

  .landing-brand small {
    display: none;
  }

  .landing-menu-toggle {
    width: 54px;
    min-width: 54px;
    height: 54px;
  }

  .landing-hero {
    min-height: 0;
  }

  .landing-hero-copy {
    padding: 42px 20px 30px;
  }

  .landing-hero h1 {
    font-size: clamp(2.55rem, 12vw, 4.2rem);
  }

  .landing-hero-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .landing-link {
    border: 1px solid rgba(255, 250, 240, 0.22);
    padding: 0 16px;
  }

  .landing-hero-arrow {
    display: none;
  }

  .landing-hero-media {
    min-height: 270px;
  }

  .landing-hero-logo {
    width: 96px;
  }

  .landing-benefits,
  .landing-stats {
    grid-template-columns: minmax(0, 1fr);
  }

  .landing-benefits article,
  .landing-stats article {
    border-right: 0 !important;
    border-top: 1px solid rgba(245, 199, 108, 0.32);
  }

  .landing-benefits article:first-child,
  .landing-stats article:first-child {
    border-top: 0;
  }

  .landing-section-title {
    display: grid;
    align-items: start;
  }

  .landing-section-title a {
    white-space: normal;
  }
}

/* Landing page carousel polish and safer wide-screen header sizing. */
.landing-brand-row {
  grid-template-columns: minmax(360px, 0.92fr) minmax(300px, 420px) minmax(330px, auto);
  gap: clamp(14px, 2vw, 32px);
}

.landing-brand span {
  min-width: 0;
}

.landing-brand strong {
  font-size: clamp(1.85rem, 2.85vw, 3.25rem);
  white-space: nowrap;
}

.landing-brand small {
  max-width: 28ch;
}

.landing-actions {
  gap: clamp(12px, 1.25vw, 18px);
}

.landing-login-link,
.landing-cart-link {
  white-space: nowrap;
}

.landing-nav > a {
  white-space: nowrap;
}

.landing-hero-main-image {
  transition: opacity 260ms ease, transform 520ms ease;
}

.landing-hero.is-changing .landing-hero-main-image {
  opacity: 0.76;
  transform: scale(1.018);
}

.landing-hero h1 .landing-title-main {
  color: #fffdf7;
}

.landing-hero h1 .landing-title-accent {
  color: #f5c76c;
}

.landing-primary::after {
  width: 21px;
  height: 21px;
  border: 0;
  border-top: 3px solid currentColor;
  border-right: 3px solid currentColor;
  border-radius: 0;
  box-shadow: none;
  transform: rotate(45deg);
}

.landing-link [data-landing-link-label] {
  position: static;
  width: auto;
  height: auto;
  background: transparent;
}

.landing-link [data-landing-link-label]::after {
  content: none;
}

.landing-link span[aria-hidden="true"] {
  position: relative;
  width: 28px;
  height: 2px;
  background: currentColor;
}

.landing-link span[aria-hidden="true"]::after {
  content: "";
  position: absolute;
  right: 0;
  top: -5px;
  width: 11px;
  height: 11px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
}

.landing-dots button {
  width: 30px;
  height: 8px;
  border: 1px solid rgba(255, 247, 228, 0.4);
  border-radius: 999px;
  appearance: none;
  background: rgba(255, 253, 247, 0.72);
  cursor: pointer;
  padding: 0;
  box-shadow: 0 0 0 1px rgba(255, 247, 228, 0.12);
  transition: width 180ms ease, background 180ms ease, transform 180ms ease;
}

.landing-dots button[aria-current="true"] {
  width: 44px;
  background: #f5c76c;
}

.landing-dots button:hover {
  transform: translateY(-1px);
}

.landing-bag-icon::before {
  left: 2px;
  right: auto;
  bottom: 6px;
  width: 21px;
  height: 13px;
  border: 2px solid currentColor;
  border-top: 0;
  border-radius: 2px;
  transform: skewX(-8deg);
}

.landing-bag-icon::after {
  left: 7px;
  top: auto;
  bottom: 0;
  width: 20px;
  height: 4px;
  border: 0;
  border-radius: 0;
  background:
    radial-gradient(circle at 2px 2px, currentColor 0 2px, transparent 2.2px),
    radial-gradient(circle at 17px 2px, currentColor 0 2px, transparent 2.2px);
}

.landing-cart-button span::before {
  left: 1px;
  right: auto;
  bottom: 6px;
  width: 20px;
  height: 12px;
  border: 2px solid currentColor;
  border-top: 0;
  border-radius: 2px;
  transform: skewX(-8deg);
}

.landing-cart-button span::after {
  left: 4px;
  top: auto;
  bottom: 0;
  width: 18px;
  height: 4px;
  border: 0;
  border-radius: 0;
  background:
    radial-gradient(circle at 2px 2px, currentColor 0 2px, transparent 2.2px),
    radial-gradient(circle at 16px 2px, currentColor 0 2px, transparent 2.2px);
}

html[data-theme="dark"] .landing-hero h1 .landing-title-main {
  color: #fff5fb;
}

html[data-theme="dark"] .landing-hero h1 .landing-title-accent {
  color: #ff7bbb;
  background: transparent;
}

html[data-theme="dark"] .landing-dots button[aria-current="true"] {
  background: #ff5bab;
}

html[data-theme="dark"] .landing-dots button {
  border-color: rgba(255, 123, 187, 0.5);
  background: rgba(255, 221, 239, 0.58);
}

@media (max-width: 1420px) and (min-width: 1181px) {
  .landing-brand-row {
    grid-template-columns: minmax(320px, 0.78fr) minmax(280px, 390px) minmax(300px, auto);
    gap: 18px;
  }

  .landing-brand strong {
    font-size: clamp(1.68rem, 2.35vw, 2.5rem);
  }

  .landing-brand small {
    font-size: 0.94rem;
  }

  .landing-actions strong {
    font-size: 0.98rem;
  }

  .landing-nav > a {
    padding-right: 18px;
    padding-left: 18px;
  }
}

@media (max-width: 720px) {
  .landing-brand strong {
    white-space: normal;
  }

  .landing-hero-arrow {
    top: auto;
    bottom: 112px;
    display: inline-flex;
    width: 44px;
    height: 44px;
    transform: none;
  }

  .landing-hero-arrow-left {
    left: 18px;
  }

  .landing-hero-arrow-right {
    right: 18px;
  }

  .landing-dots {
    justify-content: center;
  }
}

@media (max-width: 1180px) {
  .landing-brand-row {
    grid-template-columns: minmax(0, 1fr) auto;
    overflow: visible;
  }

  .landing-brand {
    max-width: calc(100vw - 108px);
    overflow: hidden;
  }

  .landing-actions.is-open {
    grid-column: 1 / -1;
    justify-self: stretch;
    width: 100%;
    min-width: 0;
    max-width: none;
    margin: 10px 0 12px;
  }

  .landing-nav.is-open {
    width: min(720px, calc(100% - 24px));
    max-width: none;
  }
}

body.has-landing-header {
  --landing-contact-height: 43px;
  --landing-header-height: 162px;
}

body.has-landing-header .landing-contactbar {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 72;
}

body.has-landing-header .landing-header {
  position: fixed;
  top: var(--landing-contact-height);
  right: 0;
  left: 0;
  z-index: 71;
}

body.has-landing-header .landing-page {
  padding-top: calc(var(--landing-contact-height) + var(--landing-header-height));
}

@media (max-width: 1180px) {
  body.has-landing-header {
    --landing-header-height: 88px;
  }
}

@media (max-width: 900px) and (min-width: 721px) {
  body.has-landing-header {
    --landing-contact-height: 87px;
  }
}

@media (max-width: 720px) {
  body.has-landing-header {
    --landing-contact-height: 0px;
    --landing-header-height: 82px;
  }

  body.has-landing-header .landing-header {
    top: 0;
  }
}

.landing-svg-icon,
.landing-action-svg {
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.landing-svg-icon {
  width: 19px;
  height: 19px;
  color: #f5c76c;
  stroke-width: 2.2;
}

.landing-action-svg {
  width: 32px;
  height: 32px;
  color: #f5c76c;
  stroke-width: 2.15;
}

body.has-landing-header .landing-header {
  border-bottom-color: rgba(245, 199, 108, 0.42);
}

body.has-landing-header .landing-nav {
  border-top-color: rgba(245, 199, 108, 0.34);
  border-bottom: 1px solid rgba(245, 199, 108, 0.34);
}

body.has-landing-header .landing-hero {
  border-top: 0;
  background:
    linear-gradient(90deg, rgba(4, 23, 45, 0.98), rgba(4, 23, 45, 0.92) 42%, rgba(99, 7, 35, 0.66)),
    url("../img/landing-slide-kain-1.webp") center / cover;
}

body.has-landing-header .subpage {
  width: min(1480px, calc(100% - 44px));
  margin: 0 auto;
  padding-top: calc(var(--landing-contact-height) + var(--landing-header-height) + clamp(34px, 4vw, 62px));
  padding-bottom: clamp(48px, 7vw, 88px);
}

body.has-landing-header .auth-page {
  width: 100%;
  min-height: 100vh;
  margin: 0;
  padding: calc(var(--landing-contact-height) + var(--landing-header-height) + clamp(34px, 4vw, 62px)) max(18px, calc((100vw - 1180px) / 2 + 18px)) clamp(54px, 7vw, 90px);
  background:
    radial-gradient(circle at 84% 15%, rgba(245, 199, 108, 0.16), transparent 30%),
    radial-gradient(circle at 14% 20%, rgba(151, 8, 49, 0.1), transparent 28%);
}

body.has-landing-header .subpage > .catalog-hero:first-child,
body.has-landing-header .auth-card {
  overflow: hidden;
  border: 1px solid rgba(156, 18, 62, 0.16);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(255, 250, 253, 0.94), rgba(255, 255, 255, 0.82)),
    url("../img/landing-slide-kain-1.webp") right center / cover;
  color: #33152b;
  box-shadow: 0 24px 70px rgba(122, 8, 43, 0.14);
}

body.has-landing-header .subpage > .catalog-hero:first-child {
  display: grid;
  min-height: clamp(220px, 22vw, 330px);
  align-items: center;
  margin-bottom: clamp(26px, 4vw, 44px);
  padding: clamp(30px, 5vw, 64px);
}

body.has-landing-header .subpage > .catalog-hero:first-child > div {
  max-width: 780px;
  border-left: 4px solid #f5c76c;
  padding-left: clamp(18px, 2.6vw, 32px);
}

body.has-landing-header .subpage > .catalog-hero:first-child .eyebrow,
body.has-landing-header .auth-card .eyebrow {
  color: #920b35;
}

body.has-landing-header .subpage > .catalog-hero:first-child h1,
body.has-landing-header .auth-card h1 {
  color: #2e1228;
}

body.has-landing-header .subpage > .catalog-hero:first-child p,
body.has-landing-header .auth-card p,
body.has-landing-header .auth-switch {
  color: #67435a;
}

body.has-landing-header .auth-card {
  width: min(640px, 100%);
  margin: 0 auto;
  padding: clamp(28px, 4.5vw, 52px);
}

body.has-landing-header .auth-card .primary-button,
body.has-landing-header .auth-card .solid-button {
  border-color: rgba(245, 199, 108, 0.62);
  background: linear-gradient(135deg, #9c0d36, #d92388);
  color: #fff9ee;
}

body.has-landing-header .auth-card .ghost-button,
body.has-landing-header .auth-card .password-toggle {
  border-color: rgba(156, 18, 62, 0.18);
  background: rgba(255, 246, 251, 0.78);
  color: #7a143d;
}

body.has-landing-header .product-card,
body.has-landing-header .media-card,
body.has-landing-header .news-card,
body.has-landing-header .guide-book article,
body.has-landing-header .empty-state,
body.has-landing-header .filter-panel,
body.has-landing-header .detail-panel,
body.has-landing-header .product-detail-card,
body.has-landing-header .review-card,
body.has-landing-header .cart-card {
  border-color: rgba(156, 18, 62, 0.16);
  background-color: rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 48px rgba(122, 8, 43, 0.1);
}

body.has-landing-header .filter-toggle,
body.has-landing-header .pagination a,
body.has-landing-header .table-action,
body.has-landing-header .product-option,
body.has-landing-header .variant-option {
  border-color: rgba(156, 18, 62, 0.2);
  background: rgba(255, 247, 251, 0.9);
  color: #4a213d;
}

body.has-landing-header .filter-toggle:hover,
body.has-landing-header .pagination a:hover,
body.has-landing-header .table-action:hover {
  border-color: rgba(245, 199, 108, 0.7);
  background: #fff3c8;
  color: #5d0b2b;
}

html[data-theme="dark"] .landing-svg-icon,
html[data-theme="dark"] .landing-action-svg {
  color: #ff7bbb;
}

html[data-theme="dark"] body.has-landing-header .landing-header,
html[data-theme="dark"] body.has-landing-header .landing-nav {
  border-color: rgba(255, 91, 171, 0.34);
}

html[data-theme="dark"] body.has-landing-header .landing-hero {
  background:
    linear-gradient(90deg, rgba(3, 8, 19, 0.98), rgba(17, 3, 18, 0.91) 44%, rgba(173, 13, 97, 0.48)),
    url("../img/landing-slide-kain-2.webp") center / cover;
}

html[data-theme="dark"] body.has-landing-header .auth-page {
  background:
    radial-gradient(circle at 84% 15%, rgba(255, 91, 171, 0.14), transparent 30%),
    radial-gradient(circle at 12% 18%, rgba(245, 199, 108, 0.08), transparent 28%);
}

html[data-theme="dark"] body.has-landing-header .subpage > .catalog-hero:first-child,
html[data-theme="dark"] body.has-landing-header .auth-card {
  border-color: rgba(255, 91, 171, 0.28);
  background:
    linear-gradient(135deg, rgba(22, 3, 18, 0.92), rgba(5, 10, 22, 0.82)),
    url("../img/landing-slide-kain-2.webp") right center / cover;
  color: #fff5fb;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

html[data-theme="dark"] body.has-landing-header .subpage > .catalog-hero:first-child h1,
html[data-theme="dark"] body.has-landing-header .auth-card h1 {
  color: #fff5fb;
}

html[data-theme="dark"] body.has-landing-header .subpage > .catalog-hero:first-child .eyebrow,
html[data-theme="dark"] body.has-landing-header .auth-card .eyebrow {
  color: #ff7bbb;
}

html[data-theme="dark"] body.has-landing-header .subpage > .catalog-hero:first-child p,
html[data-theme="dark"] body.has-landing-header .auth-card p,
html[data-theme="dark"] body.has-landing-header .auth-switch {
  color: #f4c7de;
}

html[data-theme="dark"] body.has-landing-header .product-card,
html[data-theme="dark"] body.has-landing-header .media-card,
html[data-theme="dark"] body.has-landing-header .news-card,
html[data-theme="dark"] body.has-landing-header .guide-book article,
html[data-theme="dark"] body.has-landing-header .empty-state,
html[data-theme="dark"] body.has-landing-header .filter-panel,
html[data-theme="dark"] body.has-landing-header .detail-panel,
html[data-theme="dark"] body.has-landing-header .product-detail-card,
html[data-theme="dark"] body.has-landing-header .review-card,
html[data-theme="dark"] body.has-landing-header .cart-card {
  border-color: rgba(255, 91, 171, 0.24);
  background-color: rgba(24, 4, 18, 0.86);
  color: #fff5fb;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
}

html[data-theme="dark"] body.has-landing-header .filter-toggle,
html[data-theme="dark"] body.has-landing-header .pagination a,
html[data-theme="dark"] body.has-landing-header .table-action,
html[data-theme="dark"] body.has-landing-header .product-option,
html[data-theme="dark"] body.has-landing-header .variant-option {
  border-color: rgba(255, 91, 171, 0.28);
  background: rgba(255, 91, 171, 0.12);
  color: #fff2f8;
}

body.has-landing-header .landing-hero::before {
  content: none;
  display: none;
}

body.has-landing-header .landing-hero-media {
  border-left: 0;
}

body.has-landing-header .product-image img,
.landing-product-card img,
.detail-media img {
  image-rendering: auto;
  filter: none;
}

body.has-landing-header .product-image::after {
  background: linear-gradient(180deg, transparent 72%, rgba(53, 20, 41, 0.18));
  mix-blend-mode: normal;
}

body.has-landing-header .product-card:hover .product-image img,
.landing-product-card:hover img {
  transform: none;
  filter: none;
}

.landing-product-card img {
  object-position: center top;
}

.landing-product-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  border-radius: 999px;
  background: #850b2c;
  color: #fff7ec;
  padding: 6px 10px;
  font-size: 0.74rem;
  font-weight: 900;
  font-style: normal;
  line-height: 1;
  text-transform: uppercase;
}

.landing-product-placeholder {
  position: relative;
  display: grid;
  aspect-ratio: 1.18;
  place-items: center;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 248, 252, 0.92), rgba(255, 239, 247, 0.78)),
    linear-gradient(90deg, rgba(151, 8, 49, 0.08) 1px, transparent 1px),
    linear-gradient(180deg, rgba(245, 199, 108, 0.12) 1px, transparent 1px);
  background-size: auto, 28px 28px, 28px 28px;
}

.landing-product-placeholder i {
  display: block;
  width: min(88px, 28%);
  aspect-ratio: 1;
  border: 2px solid rgba(151, 8, 49, 0.16);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(245, 199, 108, 0.28), rgba(255, 91, 171, 0.18)),
    rgba(255, 255, 255, 0.62);
  box-shadow: inset 0 0 0 10px rgba(255, 255, 255, 0.2);
}

.detail-copy .color-preview-list {
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 12px;
}

.detail-copy .color-preview-list span {
  display: grid;
  min-height: 92px;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  align-items: center;
  gap: 7px;
  border-radius: 14px;
  padding: 12px 10px;
  text-align: center;
}

.detail-copy .color-preview-list strong {
  color: #7f1231;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.detail-copy .color-preview-list i {
  width: 34px;
  height: 34px;
  border-width: 3px;
  box-shadow: inset 0 0 0 5px rgba(255, 255, 255, 0.5), 0 8px 16px rgba(53, 20, 41, 0.12);
}

.back-to-catalog {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-color: rgba(245, 199, 108, 0.74);
  border-radius: 999px;
  background: linear-gradient(135deg, #f8d77e, #eda93d);
  color: #071e38;
  padding: 11px 17px;
  font-weight: 900;
  box-shadow: 0 14px 30px rgba(168, 96, 12, 0.18);
}

.back-to-catalog::before {
  content: "";
  width: 10px;
  height: 10px;
  border-bottom: 2px solid currentColor;
  border-left: 2px solid currentColor;
  transform: rotate(45deg);
}

.back-to-catalog:hover {
  background: linear-gradient(135deg, #fff0a9, #f5c76c);
  color: #071e38;
}

html[data-theme="dark"] .landing-product-placeholder {
  background:
    linear-gradient(135deg, rgba(38, 0, 19, 0.88), rgba(9, 2, 12, 0.78)),
    linear-gradient(90deg, rgba(255, 91, 171, 0.12) 1px, transparent 1px),
    linear-gradient(180deg, rgba(245, 199, 108, 0.08) 1px, transparent 1px);
  background-size: auto, 28px 28px, 28px 28px;
}

html[data-theme="dark"] .landing-product-placeholder i {
  border-color: rgba(255, 91, 171, 0.26);
  background:
    linear-gradient(135deg, rgba(255, 91, 171, 0.26), rgba(245, 199, 108, 0.12)),
    rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 0 0 10px rgba(255, 91, 171, 0.05), 0 0 30px rgba(255, 91, 171, 0.16);
}

html[data-theme="dark"] .detail-copy .color-preview-list span {
  border-color: rgba(255, 91, 171, 0.24);
  background: rgba(255, 91, 171, 0.1);
}

html[data-theme="dark"] .detail-copy .color-preview-list strong {
  color: #ff9ccc;
}

html[data-theme="dark"] .back-to-catalog {
  border-color: rgba(255, 91, 171, 0.48);
  background: linear-gradient(135deg, #ff7bbb, #ec2f90);
  color: #180010;
  box-shadow: 0 0 30px rgba(255, 91, 171, 0.22);
}

html[data-theme="dark"] .back-to-catalog:hover {
  background: linear-gradient(135deg, #ffa6d1, #ff5bab);
  color: #16000d;
}

@media (max-width: 720px) {
  body.has-landing-header .subpage,
  body.has-landing-header .auth-page {
    width: 100%;
    padding-right: 14px;
    padding-left: 14px;
  }

  body.has-landing-header .subpage > .catalog-hero:first-child {
    min-height: 0;
    padding: 26px 20px;
  }

  body.has-landing-header .subpage > .catalog-hero:first-child > div {
    border-left-width: 3px;
    padding-left: 16px;
  }

  body.has-landing-header .landing-hero::before {
    display: none;
  }

  .detail-layout {
    gap: 18px;
  }

  .detail-media {
    overflow: visible;
    border-radius: 16px;
    background: rgba(255, 250, 253, 0.88);
    box-shadow: 0 16px 34px rgba(122, 8, 43, 0.12);
  }

  .detail-media > img {
    display: block;
    min-height: 0;
    height: clamp(250px, 72vw, 340px);
    border-radius: 16px;
    object-fit: cover;
    object-position: center;
  }

  .detail-media > span {
    top: 12px;
    bottom: auto;
    left: 12px;
    z-index: 3;
    border-radius: 999px;
    padding: 8px 14px;
  }

  .product-thumbs {
    position: static;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(72px, 1fr));
    gap: 10px;
    max-width: none;
    margin-top: 10px;
    border: 1px solid rgba(156, 18, 62, 0.14);
    border-radius: 14px;
    background: rgba(255, 247, 251, 0.82);
    padding: 10px;
  }

  .product-thumbs button {
    width: 100%;
    height: 70px;
    border-color: rgba(156, 18, 62, 0.18);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.88);
    opacity: 1;
  }

  .detail-copy {
    gap: 16px;
  }

  .detail-copy h1 {
    font-size: clamp(2.35rem, 12vw, 3.55rem);
    line-height: 0.98;
    overflow-wrap: break-word;
  }

  .detail-description {
    font-size: 1rem;
    line-height: 1.68;
  }

  .detail-spec div {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .variant-preview-list:not(.color-preview-list) span {
    display: grid;
    justify-items: start;
    gap: 5px;
  }

  .buy-box {
    border-radius: 18px;
    padding: 18px;
  }

  .buy-box > div {
    grid-template-columns: minmax(0, 1fr) 64px;
    gap: 12px;
  }

  .buy-box input[type="number"] {
    grid-column: 1 / -1;
    width: 100%;
    min-height: 54px;
  }

  .buy-box .detail-cart-button {
    grid-column: 1 / 2;
    width: 100%;
    min-height: 58px;
    justify-content: center;
    border-radius: 14px;
  }

  .buy-box .detail-chat-button {
    grid-column: 2 / 3;
    width: 64px;
    min-width: 64px;
    min-height: 58px;
    border-radius: 14px;
  }

  .buy-box .buy-now-button {
    grid-column: 1 / -1;
    width: 100%;
    min-height: 58px;
    justify-content: center;
    border-radius: 14px;
  }

  .back-to-catalog {
    width: 100%;
    margin-top: 6px;
    min-height: 54px;
  }

  .detail-copy .color-preview-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

html[data-theme="dark"] body.has-landing-header .detail-media,
html[data-theme="dark"] body.has-landing-header .product-thumbs {
  border-color: rgba(255, 91, 171, 0.22);
  background: rgba(19, 3, 15, 0.86);
}

html[data-theme="dark"] body.has-landing-header .product-thumbs button {
  border-color: rgba(255, 91, 171, 0.26);
  background: rgba(255, 91, 171, 0.08);
}

@media (max-width: 720px) {
  html[data-theme="dark"] .detail-media,
  html[data-theme="dark"] .product-thumbs {
    border-color: rgba(255, 91, 171, 0.22);
    background: rgba(19, 3, 15, 0.86);
  }

  html[data-theme="dark"] .product-thumbs button {
    border-color: rgba(255, 91, 171, 0.26);
    background: rgba(255, 91, 171, 0.08);
  }
}

/* Sky and maroon theme refresh */
body {
  background:
    radial-gradient(circle at 6% 8%, rgba(173, 225, 250, 0.58), transparent 28%),
    radial-gradient(circle at 92% 12%, rgba(187, 217, 235, 0.38), transparent 32%),
    linear-gradient(90deg, rgba(8, 42, 72, 0.045) 1px, transparent 1px),
    linear-gradient(180deg, rgba(8, 42, 72, 0.035) 1px, transparent 1px),
    #eef9ff;
  background-size: auto, auto, 38px 38px, 38px 38px, auto;
  color: #071e38;
}

.page-loader {
  background: linear-gradient(90deg, #8b0628, #b51644, #8fd4f2);
}

.main-header {
  border-color: rgba(8, 42, 72, 0.16);
  background:
    linear-gradient(135deg, rgba(246, 252, 255, 0.94), rgba(223, 243, 255, 0.88)),
    rgba(255, 255, 255, 0.8);
  color: #071e38;
  box-shadow: 0 18px 46px rgba(8, 42, 72, 0.16);
}

.main-header.is-scrolled {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(223, 243, 255, 0.94)),
    rgba(255, 255, 255, 0.9);
}

.brand strong,
.main-nav a,
.cart-link,
.main-header .ghost-button,
.theme-toggle,
.user-pill {
  color: #071e38;
}

.brand small {
  color: #8b0628;
}

.main-nav {
  background: rgba(255, 255, 255, 0.54);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.main-nav a:hover,
.main-nav a.active,
.admin-tabs a:hover,
.admin-tabs a.active,
.filter-panel a:hover,
.filter-panel a.active,
.filter-chips a:hover,
.filter-chips a.active,
.report-toolbar a:hover,
.report-toolbar a.active {
  border-color: rgba(139, 6, 40, 0.18);
  background: linear-gradient(135deg, #b51644, #8b0628);
  color: #fff8fb;
  box-shadow: 0 16px 34px rgba(139, 6, 40, 0.22);
}

.theme-toggle,
.cart-link,
.main-header .ghost-button,
.account-floating-badge,
.menu-toggle {
  border-color: rgba(8, 42, 72, 0.16);
  background: rgba(255, 255, 255, 0.68);
  color: #071e38;
}

.theme-toggle:hover,
.cart-link:hover,
.main-header .ghost-button:hover,
.account-floating-badge:hover,
.menu-toggle:hover {
  border-color: rgba(139, 6, 40, 0.32);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 12px 30px rgba(8, 42, 72, 0.12);
}

.menu-toggle span {
  background: currentColor;
}

.theme-toggle-mark {
  border-color: rgba(139, 6, 40, 0.32);
  background: linear-gradient(135deg, #ffd1df, #e76b95);
}

.theme-toggle-mark span {
  background: #fff9fc;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.46), 0 5px 12px rgba(8, 42, 72, 0.18);
}

.solid-button,
.primary-button,
.catalog-search button,
.buy-box button,
.buy-now-button,
.hero-actions .solid-button,
.cart-icon-button,
.chat-icon-button {
  border-color: rgba(139, 6, 40, 0.16);
  background: linear-gradient(135deg, #b51644, #8b0628);
  color: #fff8fb;
  text-shadow: none;
  box-shadow: 0 16px 34px rgba(139, 6, 40, 0.22);
}

.solid-button:hover,
.primary-button:hover,
.catalog-search button:hover,
.buy-box button:hover,
.buy-now-button:hover,
.hero-actions .solid-button:hover,
.cart-icon-button:hover,
.chat-icon-button:hover {
  background: linear-gradient(135deg, #c72253, #970a31);
  color: #ffffff;
}

.secondary-button,
.ghost-button,
.table-action,
.admin-tabs a,
.filter-chips a,
.report-toolbar a,
.pagination a,
.pagination span,
.filter-panel a,
.back-to-catalog {
  border-color: rgba(8, 42, 72, 0.14);
  background: rgba(255, 255, 255, 0.82);
  color: #071e38;
  box-shadow: 0 10px 24px rgba(8, 42, 72, 0.08);
}

.secondary-button:hover,
.ghost-button:hover,
.table-action:hover,
.pagination a:hover,
.back-to-catalog:hover {
  border-color: rgba(139, 6, 40, 0.24);
  background: linear-gradient(135deg, #b51644, #8b0628);
  color: #fff8fb;
}

.cart-link b,
.status-pill,
.sidebar-badge {
  background: linear-gradient(135deg, #9e0a31, #7b0624);
  color: #ffffff;
}

.catalog-search input,
.form-stack input,
.form-stack textarea,
.form-stack select,
.buy-box input,
.cart-item input[type="number"],
.order-search input,
.admin-product-search input {
  border-color: rgba(8, 42, 72, 0.14);
  background: rgba(255, 255, 255, 0.88);
  color: #071e38;
}

.catalog-search input::placeholder,
.form-stack input::placeholder,
.form-stack textarea::placeholder,
.order-search input::placeholder,
.admin-product-search input::placeholder {
  color: rgba(7, 30, 56, 0.5);
}

.feature-card,
.category-card,
.product-card,
.auth-card,
.summary-card,
.filter-panel,
.type-picker a,
.empty-state,
.form-panel,
.metric-card,
.admin-table-wrap,
.note-box,
.payment-card,
.payment-option,
.notice-card,
.report-panel,
.report-chart-card,
.chat-faq-panel,
.chat-room,
.seller-thread-list,
.order-detail,
.admin-filter-panel,
.buyer-welcome,
.media-card,
.news-card,
.preorder-box,
.gallery-upload-box,
.guide-book article,
.variant-editor,
.color-choice-panel,
.review-card,
.cart-card,
.detail-panel,
.product-detail-card {
  border-color: rgba(8, 42, 72, 0.14);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(246, 252, 255, 0.84)),
    rgba(255, 255, 255, 0.86);
  color: #071e38;
  box-shadow: 0 20px 54px rgba(8, 42, 72, 0.1);
}

.product-info {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 252, 255, 0.94));
}

.product-card:hover,
.media-card:hover,
.news-card:hover,
.landing-category-card:hover,
.landing-product-card:hover {
  border-color: rgba(139, 6, 40, 0.3);
  box-shadow: 0 24px 58px rgba(8, 42, 72, 0.14);
}

.catalog-hero,
.admin-hero,
.cta-section {
  border-color: rgba(8, 42, 72, 0.14);
  background:
    linear-gradient(120deg, rgba(246, 252, 255, 0.96), rgba(223, 243, 255, 0.88)),
    url("../img/hero-tenun.png") center / cover;
  color: #071e38;
  box-shadow: 0 28px 72px rgba(8, 42, 72, 0.14);
}

.catalog-hero p,
.admin-hero p,
.cta-section p {
  color: #354f68;
}

.hero-content .eyebrow,
.catalog-hero .eyebrow,
.admin-hero .eyebrow,
.product-card small,
.landing-product-card small,
.landing-category-card strong,
.result-bar a {
  color: #8b0628;
}

.site-footer {
  border-color: rgba(139, 6, 40, 0.22);
  background:
    linear-gradient(120deg, rgba(139, 6, 40, 0.94), rgba(88, 5, 27, 0.9)),
    url("../img/hero-tenun.png") center / cover;
  color: #fff8fb;
}

.site-footer p,
.site-footer span,
.site-footer a {
  color: rgba(255, 248, 251, 0.9);
}

.app-sidebar {
  border-color: rgba(8, 42, 72, 0.14);
  background:
    linear-gradient(155deg, rgba(246, 252, 255, 0.97), rgba(223, 243, 255, 0.92)),
    rgba(255, 255, 255, 0.88);
  color: #071e38;
  box-shadow: 0 24px 74px rgba(8, 42, 72, 0.14);
}

.app-sidebar-brand strong,
.sidebar-account strong,
.sidebar-nav a,
.sidebar-actions .theme-toggle {
  color: #071e38;
}

.app-sidebar-brand span,
.sidebar-account small,
.sidebar-account span {
  color: #4d6680;
}

.sidebar-account,
.sidebar-nav a,
.sidebar-actions .theme-toggle {
  border-color: rgba(8, 42, 72, 0.14);
  background: rgba(255, 255, 255, 0.66);
}

.sidebar-icon {
  background: rgba(139, 6, 40, 0.1);
  color: #8b0628;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
  border-color: rgba(139, 6, 40, 0.28);
  background: linear-gradient(135deg, #b51644, #8b0628);
  color: #fff8fb;
  box-shadow: 0 18px 36px rgba(139, 6, 40, 0.24);
}

.sidebar-nav a:hover .sidebar-icon,
.sidebar-nav a.active .sidebar-icon {
  background: rgba(255, 255, 255, 0.18);
  color: #fff8fb;
}

.sidebar-logout {
  background: linear-gradient(135deg, #9e0a31, #72051f);
  color: #fff8fb;
}

body.has-landing-header {
  background:
    radial-gradient(circle at 3% 21%, rgba(173, 225, 250, 0.62), transparent 27%),
    linear-gradient(180deg, #eef9ff 0%, #e5f6ff 48%, #f7fcff 100%);
  color: #071e38;
}

.landing-contactbar {
  border-bottom: 0;
  background: #8b0628;
  color: #fff8fb;
}

.landing-mini-icon,
.landing-svg-icon,
.landing-social-mini {
  color: #ffffff;
}

.landing-social-mini {
  border-color: rgba(255, 255, 255, 0.2);
}

.landing-social-mini:hover {
  border-color: rgba(255, 255, 255, 0.46);
  background: rgba(255, 255, 255, 0.12);
}

.landing-header,
body.has-landing-header .landing-header {
  border-bottom-color: rgba(8, 42, 72, 0.12);
  background: linear-gradient(180deg, #f5fcff 0%, #dff3ff 100%);
  color: #071e38;
  box-shadow: 0 14px 34px rgba(8, 42, 72, 0.12);
}

.landing-brand strong {
  color: #071e38;
}

.landing-brand small {
  color: #8b0628;
}

.landing-search {
  border-color: rgba(8, 42, 72, 0.18);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 30px rgba(8, 42, 72, 0.08);
}

.landing-search input {
  color: #071e38;
}

.landing-search input::placeholder {
  color: rgba(7, 30, 56, 0.55);
}

.landing-search button {
  background: linear-gradient(135deg, #a80d35, #7b0624);
  color: #ffffff;
}

.landing-actions,
.landing-login-link,
.landing-cart-link {
  color: #071e38;
}

.landing-actions .theme-toggle,
.landing-menu-toggle {
  border-color: rgba(8, 42, 72, 0.16);
  background: rgba(255, 255, 255, 0.72);
  color: #071e38;
}

.landing-action-svg,
.landing-user-icon,
.landing-bag-icon,
.landing-home-icon {
  color: #8b0628;
}

.landing-login-link {
  border-right-color: rgba(8, 42, 72, 0.16);
}

.landing-cart-link b {
  border-color: rgba(139, 6, 40, 0.22);
  background: #8b0628;
  color: #ffffff;
}

body.has-landing-header .landing-nav,
.landing-nav {
  border-top-color: rgba(8, 42, 72, 0.12);
  border-bottom-color: rgba(8, 42, 72, 0.12);
}

.landing-nav > a,
.landing-products-menu > summary {
  color: #071e38;
}

.landing-nav > a:hover,
.landing-products-menu > summary:hover {
  color: #8b0628;
}

.landing-nav > a.active {
  background: linear-gradient(135deg, #9e0a31, #7b0624);
  color: #fff8fb;
}

.landing-nav > a.active .landing-home-icon {
  color: #ffffff;
}

.landing-products-menu > div {
  border-color: rgba(8, 42, 72, 0.14);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 40px rgba(8, 42, 72, 0.16);
}

.landing-products-menu > div a {
  color: #071e38;
}

.landing-products-menu > div a:hover {
  background: rgba(139, 6, 40, 0.08);
  color: #8b0628;
}

body.has-landing-header .landing-hero,
.landing-hero {
  border-bottom: 0;
  grid-template-columns: minmax(0, 45%) minmax(0, 55%);
  background:
    radial-gradient(circle at 15% 12%, rgba(255, 255, 255, 0.94), transparent 30%),
    linear-gradient(90deg, #eef9ff 0%, #e6f6ff 48%, #dff3ff 100%);
  color: #071e38;
}

.landing-hero::after {
  z-index: 2;
  background:
    linear-gradient(90deg, rgba(238, 249, 255, 0.2), transparent 58%),
    linear-gradient(180deg, transparent 0 82%, rgba(238, 249, 255, 0.82));
}

body.has-landing-header .landing-hero::before,
.landing-hero::before {
  content: "";
  position: absolute;
  z-index: 3;
  top: -18%;
  left: calc(45% - clamp(360px, 29vw, 520px));
  display: block;
  width: clamp(430px, 34vw, 640px);
  height: 136%;
  pointer-events: none;
  border: clamp(14px, 1.25vw, 22px) solid #9b0830;
  border-left-color: transparent;
  border-top-color: transparent;
  border-bottom-color: transparent;
  border-radius: 50%;
  background:
    radial-gradient(circle at 20% 16%, rgba(255, 255, 255, 0.96), transparent 33%),
    linear-gradient(90deg, #eef9ff 0%, #e6f6ff 100%);
  box-shadow:
    10px 0 0 rgba(255, 255, 255, 0.7),
    22px 0 34px rgba(139, 6, 40, 0.16);
}

.landing-curve-divider {
  display: none;
}

.landing-hero-copy {
  z-index: 4;
}

.landing-hero h1,
.landing-hero h1 .landing-title-main {
  color: #071e38;
}

.landing-hero h1 span,
.landing-hero h1 .landing-title-accent {
  color: #8b0628;
  background: transparent;
}

.landing-hero p {
  color: #173a5b;
}

.landing-pill {
  border-color: rgba(139, 6, 40, 0.18);
  background: #8b0628;
  color: #fff8fb;
}

.landing-primary {
  border-color: rgba(139, 6, 40, 0.2);
  background: linear-gradient(135deg, #b51644, #8b0628);
  color: #fff8fb;
  gap: 14px;
  padding-right: 24px;
  box-shadow: 0 18px 34px rgba(139, 6, 40, 0.24);
}

.landing-primary::before {
  content: "";
  order: 2;
  flex: 0 0 28px;
  width: 28px;
  height: 3px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: none;
}

.landing-primary::after {
  order: 3;
  flex: 0 0 11px;
  width: 11px;
  height: 11px;
  margin-left: -22px;
  border: 0;
  border-top: 3px solid currentColor;
  border-right: 3px solid currentColor;
  border-radius: 0;
  box-shadow: none;
  transform: rotate(45deg);
}

.landing-link {
  color: #071e38;
}

.landing-dots span,
.landing-dots button[aria-current="true"] {
  background: #8b0628;
}

.landing-dots span:nth-child(2),
.landing-dots button {
  border-color: rgba(8, 42, 72, 0.2);
  background: #8fd4f2;
}

.landing-dots span:nth-child(3) {
  background: #ffffff;
}

.landing-hero-media {
  border-left: 0;
  clip-path: none;
  overflow: hidden;
}

.landing-hero-arrow {
  border-color: rgba(255, 255, 255, 0.56);
  background: rgba(139, 6, 40, 0.92);
  color: #ffffff;
}

.landing-benefits {
  border-color: rgba(8, 42, 72, 0.14);
  background: rgba(255, 255, 255, 0.93);
  color: #071e38;
  box-shadow: 0 24px 58px rgba(8, 42, 72, 0.12);
}

.landing-benefits article + article {
  border-left-color: rgba(8, 42, 72, 0.12);
}

.landing-benefit-icon {
  border-color: rgba(139, 6, 40, 0.14);
  background: linear-gradient(135deg, #a80d35, #7b0624);
  color: #ffffff;
}

.landing-benefits strong {
  color: #071e38;
}

.landing-benefits p {
  color: #36556e;
}

.landing-section-title span,
.landing-section-title a {
  color: #8b0628;
}

.landing-section-title h2 {
  color: #071e38;
}

.landing-category-card,
.landing-product-card {
  border-color: rgba(8, 42, 72, 0.13);
  background: rgba(255, 255, 255, 0.94);
  color: #071e38;
  box-shadow: 0 18px 42px rgba(8, 42, 72, 0.1);
}

.landing-category-card span,
.landing-product-card h3 {
  color: #071e38;
}

.landing-category-card p,
.landing-product-card p {
  color: #4b6177;
}

.landing-category-card strong {
  background: rgba(139, 6, 40, 0.08);
}

.landing-product-badge,
.landing-product-card > a span {
  background: #8b0628;
  color: #fff8fb;
}

.landing-cart-button {
  background: linear-gradient(135deg, #a80d35, #7b0624);
  color: #ffffff;
}

.landing-stats {
  border-color: rgba(139, 6, 40, 0.24);
  background: linear-gradient(135deg, #970a31, #72051f);
  color: #fff8fb;
}

.landing-stats article + article {
  border-left-color: rgba(255, 255, 255, 0.22);
}

.landing-stats strong {
  color: #ffffff;
}

.landing-stats span {
  color: rgba(255, 248, 251, 0.9);
}

body.has-landing-header .subpage > .catalog-hero:first-child,
body.has-landing-header .auth-card {
  border-color: rgba(8, 42, 72, 0.14);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(223, 243, 255, 0.82)),
    url("../img/landing-slide-kain-1.webp") right center / cover;
  color: #071e38;
  box-shadow: 0 24px 60px rgba(8, 42, 72, 0.14);
}

body.has-landing-header .subpage > .catalog-hero:first-child > div {
  border-left-color: #8b0628;
}

body.has-landing-header .subpage > .catalog-hero:first-child .eyebrow,
body.has-landing-header .auth-card .eyebrow {
  color: #8b0628;
}

body.has-landing-header .subpage > .catalog-hero:first-child h1,
body.has-landing-header .auth-card h1 {
  color: #071e38;
}

body.has-landing-header .subpage > .catalog-hero:first-child p,
body.has-landing-header .auth-card p,
body.has-landing-header .auth-switch {
  color: #36556e;
}

body.has-landing-header .auth-card .primary-button,
body.has-landing-header .auth-card .solid-button {
  border-color: rgba(139, 6, 40, 0.18);
  background: linear-gradient(135deg, #b51644, #8b0628);
  color: #fff8fb;
}

body.has-landing-header .auth-card .ghost-button,
body.has-landing-header .auth-card .password-toggle,
body.has-landing-header .filter-toggle,
body.has-landing-header .pagination a,
body.has-landing-header .table-action,
body.has-landing-header .product-option,
body.has-landing-header .variant-option {
  border-color: rgba(8, 42, 72, 0.14);
  background: rgba(255, 255, 255, 0.84);
  color: #071e38;
}

body.has-landing-header .product-card,
body.has-landing-header .media-card,
body.has-landing-header .news-card,
body.has-landing-header .guide-book article,
body.has-landing-header .empty-state,
body.has-landing-header .filter-panel,
body.has-landing-header .detail-panel,
body.has-landing-header .product-detail-card,
body.has-landing-header .review-card,
body.has-landing-header .cart-card {
  border-color: rgba(8, 42, 72, 0.14);
  background-color: rgba(255, 255, 255, 0.92);
  color: #071e38;
  box-shadow: 0 18px 42px rgba(8, 42, 72, 0.1);
}

html[data-theme="dark"] body {
  background:
    radial-gradient(circle at 9% 9%, rgba(24, 81, 123, 0.5), transparent 30%),
    radial-gradient(circle at 92% 13%, rgba(150, 14, 52, 0.22), transparent 34%),
    linear-gradient(90deg, rgba(166, 213, 236, 0.055) 1px, transparent 1px),
    linear-gradient(180deg, rgba(166, 213, 236, 0.045) 1px, transparent 1px),
    #041426;
  background-size: auto, auto, 38px 38px, 38px 38px, auto;
  color: #f4fbff;
}

html[data-theme="dark"] .main-header,
html[data-theme="dark"] .main-header.is-scrolled {
  border-color: rgba(135, 203, 234, 0.18);
  background:
    linear-gradient(135deg, rgba(6, 25, 45, 0.96), rgba(11, 45, 74, 0.9)),
    rgba(4, 20, 38, 0.9);
  color: #f4fbff;
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.46);
}

html[data-theme="dark"] .brand strong,
html[data-theme="dark"] .main-nav a,
html[data-theme="dark"] .cart-link,
html[data-theme="dark"] .main-header .ghost-button,
html[data-theme="dark"] .theme-toggle,
html[data-theme="dark"] .user-pill {
  color: #f4fbff;
}

html[data-theme="dark"] .brand small,
html[data-theme="dark"] .hero-content .eyebrow,
html[data-theme="dark"] .catalog-hero .eyebrow,
html[data-theme="dark"] .admin-hero .eyebrow,
html[data-theme="dark"] .product-card small,
html[data-theme="dark"] .result-bar a {
  color: #f09bb4;
}

html[data-theme="dark"] .main-nav,
html[data-theme="dark"] .theme-toggle,
html[data-theme="dark"] .cart-link,
html[data-theme="dark"] .main-header .ghost-button,
html[data-theme="dark"] .account-floating-badge,
html[data-theme="dark"] .menu-toggle {
  border-color: rgba(135, 203, 234, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: #f4fbff;
}

html[data-theme="dark"] .theme-toggle-mark {
  border-color: rgba(240, 155, 180, 0.44);
  background: linear-gradient(135deg, #8b0628, #e34668);
}

html[data-theme="dark"] .theme-toggle.is-dark .theme-toggle-mark {
  background: linear-gradient(135deg, #0d5c82, #8b0628);
}

html[data-theme="dark"] .theme-toggle.is-dark .theme-toggle-mark span {
  background: #041426;
  box-shadow: inset -4px -2px 0 #aee4fb, 0 0 18px rgba(98, 196, 232, 0.32);
}

html[data-theme="dark"] .feature-card,
html[data-theme="dark"] .category-card,
html[data-theme="dark"] .product-card,
html[data-theme="dark"] .auth-card,
html[data-theme="dark"] .summary-card,
html[data-theme="dark"] .filter-panel,
html[data-theme="dark"] .type-picker a,
html[data-theme="dark"] .empty-state,
html[data-theme="dark"] .form-panel,
html[data-theme="dark"] .metric-card,
html[data-theme="dark"] .admin-table-wrap,
html[data-theme="dark"] .note-box,
html[data-theme="dark"] .payment-card,
html[data-theme="dark"] .payment-option,
html[data-theme="dark"] .notice-card,
html[data-theme="dark"] .report-panel,
html[data-theme="dark"] .report-chart-card,
html[data-theme="dark"] .chat-faq-panel,
html[data-theme="dark"] .chat-room,
html[data-theme="dark"] .seller-thread-list,
html[data-theme="dark"] .order-detail,
html[data-theme="dark"] .admin-filter-panel,
html[data-theme="dark"] .buyer-welcome,
html[data-theme="dark"] .media-card,
html[data-theme="dark"] .news-card,
html[data-theme="dark"] .preorder-box,
html[data-theme="dark"] .gallery-upload-box,
html[data-theme="dark"] .guide-book article,
html[data-theme="dark"] .variant-editor,
html[data-theme="dark"] .color-choice-panel,
html[data-theme="dark"] .review-card,
html[data-theme="dark"] .cart-card,
html[data-theme="dark"] .detail-panel,
html[data-theme="dark"] .product-detail-card {
  border-color: rgba(135, 203, 234, 0.18);
  background:
    linear-gradient(145deg, rgba(8, 35, 61, 0.94), rgba(7, 25, 45, 0.88)),
    rgba(4, 20, 38, 0.88);
  color: #f4fbff;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.34);
}

html[data-theme="dark"] .product-info {
  background: linear-gradient(180deg, rgba(8, 35, 61, 0.96), rgba(5, 21, 39, 0.94));
}

html[data-theme="dark"] .secondary-button,
html[data-theme="dark"] .ghost-button,
html[data-theme="dark"] .table-action,
html[data-theme="dark"] .admin-tabs a,
html[data-theme="dark"] .filter-chips a,
html[data-theme="dark"] .report-toolbar a,
html[data-theme="dark"] .pagination a,
html[data-theme="dark"] .pagination span,
html[data-theme="dark"] .filter-panel a,
html[data-theme="dark"] .back-to-catalog {
  border-color: rgba(135, 203, 234, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: #f4fbff;
}

html[data-theme="dark"] .solid-button,
html[data-theme="dark"] .primary-button,
html[data-theme="dark"] .catalog-search button,
html[data-theme="dark"] .buy-box button,
html[data-theme="dark"] .buy-now-button,
html[data-theme="dark"] .hero-actions .solid-button,
html[data-theme="dark"] .cart-icon-button,
html[data-theme="dark"] .chat-icon-button,
html[data-theme="dark"] .main-nav a:hover,
html[data-theme="dark"] .main-nav a.active,
html[data-theme="dark"] .admin-tabs a:hover,
html[data-theme="dark"] .admin-tabs a.active,
html[data-theme="dark"] .filter-panel a:hover,
html[data-theme="dark"] .filter-panel a.active,
html[data-theme="dark"] .filter-chips a:hover,
html[data-theme="dark"] .filter-chips a.active,
html[data-theme="dark"] .report-toolbar a:hover,
html[data-theme="dark"] .report-toolbar a.active {
  border-color: rgba(240, 155, 180, 0.22);
  background: linear-gradient(135deg, #e34668, #a50d35);
  color: #fff8fb;
}

html[data-theme="dark"] .catalog-search input,
html[data-theme="dark"] .form-stack input,
html[data-theme="dark"] .form-stack textarea,
html[data-theme="dark"] .form-stack select,
html[data-theme="dark"] .buy-box input,
html[data-theme="dark"] .cart-item input[type="number"],
html[data-theme="dark"] .order-search input,
html[data-theme="dark"] .admin-product-search input {
  border-color: rgba(135, 203, 234, 0.18);
  background: rgba(255, 255, 255, 0.07);
  color: #f4fbff;
}

html[data-theme="dark"] .catalog-search input::placeholder,
html[data-theme="dark"] .form-stack input::placeholder,
html[data-theme="dark"] .form-stack textarea::placeholder,
html[data-theme="dark"] .order-search input::placeholder,
html[data-theme="dark"] .admin-product-search input::placeholder {
  color: rgba(244, 251, 255, 0.52);
}

html[data-theme="dark"] .catalog-hero,
html[data-theme="dark"] .admin-hero,
html[data-theme="dark"] .cta-section {
  border-color: rgba(135, 203, 234, 0.18);
  background:
    linear-gradient(120deg, rgba(7, 25, 45, 0.95), rgba(80, 8, 35, 0.72)),
    url("../img/hero-tenun.png") center / cover;
  color: #f4fbff;
}

html[data-theme="dark"] .catalog-hero p,
html[data-theme="dark"] .admin-hero p,
html[data-theme="dark"] .cta-section p {
  color: #c6ddeb;
}

html[data-theme="dark"] .app-sidebar {
  border-color: rgba(135, 203, 234, 0.18);
  background:
    linear-gradient(155deg, rgba(5, 21, 39, 0.96), rgba(9, 36, 62, 0.9)),
    rgba(4, 20, 38, 0.94);
  color: #f4fbff;
}

html[data-theme="dark"] .app-sidebar-brand strong,
html[data-theme="dark"] .sidebar-account strong,
html[data-theme="dark"] .sidebar-nav a,
html[data-theme="dark"] .sidebar-actions .theme-toggle {
  color: #f4fbff;
}

html[data-theme="dark"] .app-sidebar-brand span,
html[data-theme="dark"] .sidebar-account small,
html[data-theme="dark"] .sidebar-account span {
  color: #b7cfe0;
}

html[data-theme="dark"] .sidebar-account,
html[data-theme="dark"] .sidebar-nav a,
html[data-theme="dark"] .sidebar-actions .theme-toggle {
  border-color: rgba(135, 203, 234, 0.16);
  background: rgba(255, 255, 255, 0.06);
}

html[data-theme="dark"] .sidebar-icon {
  background: rgba(227, 70, 104, 0.15);
  color: #f09bb4;
}

html[data-theme="dark"] .sidebar-nav a:hover,
html[data-theme="dark"] .sidebar-nav a.active,
html[data-theme="dark"] .sidebar-logout {
  background: linear-gradient(135deg, #e34668, #9e0a31);
  color: #fff8fb;
}

html[data-theme="dark"] body.has-landing-header {
  background:
    radial-gradient(circle at 8% 12%, rgba(19, 69, 108, 0.44), transparent 30%),
    linear-gradient(180deg, #041426 0%, #071e38 50%, #041426 100%);
  color: #f4fbff;
}

html[data-theme="dark"] .landing-contactbar {
  background: #6d061f;
  color: #fff8fb;
}

html[data-theme="dark"] .landing-header,
html[data-theme="dark"] body.has-landing-header .landing-header {
  border-bottom-color: rgba(135, 203, 234, 0.16);
  background: linear-gradient(180deg, #071e38 0%, #041426 100%);
  color: #f4fbff;
}

html[data-theme="dark"] .landing-brand strong,
html[data-theme="dark"] .landing-actions,
html[data-theme="dark"] .landing-login-link,
html[data-theme="dark"] .landing-cart-link,
html[data-theme="dark"] .landing-nav > a,
html[data-theme="dark"] .landing-products-menu > summary,
html[data-theme="dark"] .landing-hero h1,
html[data-theme="dark"] .landing-hero h1 .landing-title-main,
html[data-theme="dark"] .landing-section-title h2,
html[data-theme="dark"] .landing-category-card span,
html[data-theme="dark"] .landing-product-card h3 {
  color: #f4fbff;
}

html[data-theme="dark"] .landing-brand small,
html[data-theme="dark"] .landing-action-svg,
html[data-theme="dark"] .landing-user-icon,
html[data-theme="dark"] .landing-bag-icon,
html[data-theme="dark"] .landing-home-icon,
html[data-theme="dark"] .landing-section-title span,
html[data-theme="dark"] .landing-section-title a,
html[data-theme="dark"] .landing-product-card small,
html[data-theme="dark"] .landing-category-card strong,
html[data-theme="dark"] .landing-hero h1 span,
html[data-theme="dark"] .landing-hero h1 .landing-title-accent {
  color: #f09bb4;
}

html[data-theme="dark"] .landing-search,
html[data-theme="dark"] .landing-actions .theme-toggle,
html[data-theme="dark"] .landing-menu-toggle {
  border-color: rgba(135, 203, 234, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: #f4fbff;
}

html[data-theme="dark"] .landing-search input {
  color: #f4fbff;
}

html[data-theme="dark"] .landing-search input::placeholder {
  color: rgba(244, 251, 255, 0.58);
}

html[data-theme="dark"] .landing-search button,
html[data-theme="dark"] .landing-primary,
html[data-theme="dark"] .landing-cart-button,
html[data-theme="dark"] .landing-nav > a.active,
html[data-theme="dark"] .landing-benefit-icon {
  background: linear-gradient(135deg, #e34668, #9e0a31);
  color: #fff8fb;
}

html[data-theme="dark"] .landing-cart-link b,
html[data-theme="dark"] .landing-pill,
html[data-theme="dark"] .landing-product-badge,
html[data-theme="dark"] .landing-product-card > a span {
  border-color: rgba(240, 155, 180, 0.24);
  background: #9e0a31;
  color: #fff8fb;
}

html[data-theme="dark"] body.has-landing-header .landing-hero,
html[data-theme="dark"] .landing-hero {
  background:
    radial-gradient(circle at 12% 12%, rgba(19, 69, 108, 0.36), transparent 30%),
    linear-gradient(90deg, #041426 0%, #071e38 56%, #08233d 100%);
  color: #f4fbff;
}

html[data-theme="dark"] body.has-landing-header .landing-hero::before,
html[data-theme="dark"] .landing-hero::before {
  content: "";
  display: block;
  border-right-color: #e34668;
  background:
    radial-gradient(circle at 20% 16%, rgba(19, 69, 108, 0.34), transparent 33%),
    linear-gradient(90deg, #041426 0%, #071e38 100%);
  box-shadow:
    10px 0 0 rgba(4, 20, 38, 0.86),
    22px 0 38px rgba(0, 0, 0, 0.3);
}

html[data-theme="dark"] .landing-hero::after {
  background:
    linear-gradient(90deg, rgba(4, 20, 38, 0.34), transparent 58%),
    linear-gradient(180deg, transparent 0 82%, rgba(4, 20, 38, 0.9));
}

html[data-theme="dark"] .landing-hero p {
  color: #c6ddeb;
}

html[data-theme="dark"] .landing-link {
  color: #f4fbff;
}

html[data-theme="dark"] .landing-benefits,
html[data-theme="dark"] .landing-category-card,
html[data-theme="dark"] .landing-product-card,
html[data-theme="dark"] .landing-products-menu > div {
  border-color: rgba(135, 203, 234, 0.16);
  background: rgba(8, 35, 61, 0.92);
  color: #f4fbff;
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.34);
}

html[data-theme="dark"] .landing-benefits article + article,
html[data-theme="dark"] .landing-stats article + article {
  border-left-color: rgba(135, 203, 234, 0.14);
}

html[data-theme="dark"] .landing-benefits strong,
html[data-theme="dark"] .landing-stats strong {
  color: #f4fbff;
}

html[data-theme="dark"] .landing-benefits p,
html[data-theme="dark"] .landing-category-card p,
html[data-theme="dark"] .landing-product-card p,
html[data-theme="dark"] .landing-stats span {
  color: #c6ddeb;
}

html[data-theme="dark"] .landing-stats,
html[data-theme="dark"] .site-footer {
  border-color: rgba(240, 155, 180, 0.22);
  background: linear-gradient(135deg, #6d061f, #350413);
  color: #fff8fb;
}

html[data-theme="dark"] body.has-landing-header .subpage > .catalog-hero:first-child,
html[data-theme="dark"] body.has-landing-header .auth-card {
  border-color: rgba(135, 203, 234, 0.18);
  background:
    linear-gradient(135deg, rgba(8, 35, 61, 0.94), rgba(5, 21, 39, 0.88)),
    url("../img/landing-slide-kain-2.webp") right center / cover;
  color: #f4fbff;
}

html[data-theme="dark"] body.has-landing-header .subpage > .catalog-hero:first-child h1,
html[data-theme="dark"] body.has-landing-header .auth-card h1 {
  color: #f4fbff;
}

html[data-theme="dark"] body.has-landing-header .subpage > .catalog-hero:first-child p,
html[data-theme="dark"] body.has-landing-header .auth-card p,
html[data-theme="dark"] body.has-landing-header .auth-switch {
  color: #c6ddeb;
}

html[data-theme="dark"] body.has-landing-header .filter-toggle,
html[data-theme="dark"] body.has-landing-header .pagination a,
html[data-theme="dark"] body.has-landing-header .table-action,
html[data-theme="dark"] body.has-landing-header .product-option,
html[data-theme="dark"] body.has-landing-header .variant-option,
html[data-theme="dark"] body.has-landing-header .auth-card .ghost-button,
html[data-theme="dark"] body.has-landing-header .auth-card .password-toggle {
  border-color: rgba(135, 203, 234, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: #f4fbff;
}

html[data-theme="dark"] body.has-landing-header .product-card,
html[data-theme="dark"] body.has-landing-header .media-card,
html[data-theme="dark"] body.has-landing-header .news-card,
html[data-theme="dark"] body.has-landing-header .guide-book article,
html[data-theme="dark"] body.has-landing-header .empty-state,
html[data-theme="dark"] body.has-landing-header .filter-panel,
html[data-theme="dark"] body.has-landing-header .detail-panel,
html[data-theme="dark"] body.has-landing-header .product-detail-card,
html[data-theme="dark"] body.has-landing-header .review-card,
html[data-theme="dark"] body.has-landing-header .cart-card {
  border-color: rgba(135, 203, 234, 0.18);
  background-color: rgba(8, 35, 61, 0.9);
  color: #f4fbff;
}

@media (max-width: 1180px) {
  .landing-nav.is-open,
  .landing-actions.is-open {
    border-color: rgba(8, 42, 72, 0.14);
    background: rgba(246, 252, 255, 0.98);
    color: #071e38;
  }

  html[data-theme="dark"] .landing-nav.is-open,
  html[data-theme="dark"] .landing-actions.is-open {
    border-color: rgba(135, 203, 234, 0.18);
    background: rgba(4, 20, 38, 0.98);
    color: #f4fbff;
  }

  body.has-landing-header .landing-hero::before,
  .landing-hero::before {
    display: none;
  }

  .landing-curve-divider {
    display: none;
  }

  .landing-hero-media {
    border-top-color: #8b0628;
  }

  html[data-theme="dark"] .landing-hero-media {
    border-top-color: #e34668;
  }
}

@media (max-width: 720px) {
  .landing-header,
  body.has-landing-header .landing-header {
    background: linear-gradient(180deg, #f5fcff 0%, #dff3ff 100%);
  }

  .landing-nav.is-open a,
  .landing-actions.is-open a,
  .landing-actions.is-open strong {
    color: #071e38;
  }

  html[data-theme="dark"] .landing-header,
  html[data-theme="dark"] body.has-landing-header .landing-header {
    background: linear-gradient(180deg, #071e38 0%, #041426 100%);
  }

  html[data-theme="dark"] .landing-nav.is-open a,
  html[data-theme="dark"] .landing-actions.is-open a,
  html[data-theme="dark"] .landing-actions.is-open strong {
    color: #f4fbff;
  }
}

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

/* Color choices use readable text labels instead of circular swatches. */
.color-preview-list i,
.color-option i,
.color-choice i {
  display: none !important;
}

.detail-copy .color-preview-list span,
.color-preview-list span {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(139, 6, 40, 0.2);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.82);
  padding: 11px 14px;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 900;
  line-height: 1.25;
  text-align: center;
}

.color-option {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border-color: rgba(139, 6, 40, 0.2);
  background: rgba(255, 255, 255, 0.82);
  padding: 12px 14px;
  text-align: center;
}

.color-option strong {
  color: inherit;
  line-height: 1.25;
  text-align: center;
}

.color-option.active {
  border-color: #8b0628;
  background: rgba(181, 22, 68, 0.12);
  box-shadow: 0 0 0 3px rgba(181, 22, 68, 0.12);
}

.color-choice {
  justify-content: flex-start;
}

.color-choice b {
  color: var(--ink);
  line-height: 1.25;
}

.color-option:focus-visible,
.color-choice:has(input:focus-visible),
.color-preview-list span:focus-visible {
  outline: 3px solid rgba(181, 22, 68, 0.32);
  outline-offset: 2px;
}

html[data-theme="dark"] .detail-copy .color-preview-list span,
html[data-theme="dark"] .color-preview-list span,
html[data-theme="dark"] .color-option,
html[data-theme="dark"] .color-choice {
  border-color: rgba(240, 155, 180, 0.28);
  background: rgba(255, 255, 255, 0.07);
  color: #f4fbff;
}

html[data-theme="dark"] .color-option.active {
  border-color: #e34668;
  background: rgba(227, 70, 104, 0.18);
  box-shadow: 0 0 0 3px rgba(227, 70, 104, 0.16);
}

html[data-theme="dark"] .color-choice b {
  color: #f4fbff;
}

/* Final layout pass for wide screens, catalog density, and detail media. */
@media (min-width: 1181px) {
  body.has-app-sidebar {
    padding-top: 94px;
    padding-left: 284px;
  }

  body.has-app-sidebar.sidebar-collapsed {
    padding-left: 92px;
  }

  body.has-app-sidebar .logged-in-header {
    display: grid;
    top: 16px;
    left: calc(50vw + 142px);
    width: min(1180px, calc(100vw - 316px));
    min-height: 64px;
    grid-template-columns: minmax(0, 1fr) auto;
    transform: translateX(-50%);
  }

  body.has-app-sidebar.sidebar-collapsed .logged-in-header {
    left: calc(50vw + 46px);
    width: min(1360px, calc(100vw - 108px));
  }

  body.has-app-sidebar .logged-in-header .menu-toggle {
    display: block;
  }

  body.has-app-sidebar .app-sidebar {
    top: 16px;
    bottom: 16px;
    left: 16px;
    width: 252px;
    max-height: none;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  body.has-app-sidebar .sidebar-scrim {
    display: none !important;
  }

  body.has-app-sidebar.sidebar-collapsed .app-sidebar {
    width: 64px;
    overflow-x: hidden;
    padding: 10px;
  }

  body.has-app-sidebar.sidebar-collapsed .app-sidebar-brand,
  body.has-app-sidebar.sidebar-collapsed .sidebar-account {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  body.has-app-sidebar.sidebar-collapsed .app-sidebar-brand > div,
  body.has-app-sidebar.sidebar-collapsed .sidebar-account > div,
  body.has-app-sidebar.sidebar-collapsed .sidebar-nav a > strong,
  body.has-app-sidebar.sidebar-collapsed .sidebar-actions .theme-toggle-text {
    display: none;
  }

  body.has-app-sidebar.sidebar-collapsed .sidebar-account {
    padding: 8px;
  }

  body.has-app-sidebar.sidebar-collapsed .sidebar-nav a {
    position: relative;
    grid-template-columns: 1fr;
    justify-items: center;
    padding: 7px 4px;
  }

  body.has-app-sidebar.sidebar-collapsed .sidebar-actions .theme-toggle {
    justify-content: center;
    padding: 0;
  }

  body.has-app-sidebar.sidebar-collapsed .sidebar-logout {
    min-width: 0;
    overflow: hidden;
    justify-content: center;
    padding-inline: 2px;
    white-space: nowrap;
  }

  body.has-app-sidebar.sidebar-collapsed .sidebar-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 22px;
    height: 22px;
    padding: 0 4px;
    font-size: 0.72rem;
  }

  body:not(.has-app-sidebar) .subpage {
    width: min(1320px, calc(100% - 48px));
  }

  body.has-app-sidebar .subpage,
  body.has-app-sidebar .section-wrap,
  body.has-app-sidebar .site-footer,
  body.has-app-sidebar .admin-page {
    width: min(1380px, calc(100% - 48px));
  }

  .catalog-hero,
  .admin-hero {
    gap: 30px;
    padding: clamp(28px, 3.2vw, 48px);
  }

  .catalog-hero h1,
  body.has-landing-header .subpage > .catalog-hero:first-child h1 {
    max-width: 720px;
    font-size: clamp(2.25rem, 3.3vw, 3.65rem);
    line-height: 1.03;
  }

  .catalog-hero p,
  body.has-landing-header .subpage > .catalog-hero:first-child p {
    max-width: 680px;
    line-height: 1.62;
  }

  .detail-layout {
    gap: 40px;
  }

  .detail-media {
    width: min(100%, 640px);
    margin-inline: auto;
  }

  .detail-media > img {
    min-height: 0;
    height: min(38vw, 460px);
    max-height: 460px;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.56);
  }
}

.has-app-sidebar .subpage,
.has-app-sidebar .section-wrap,
.has-app-sidebar .site-footer,
.has-app-sidebar .admin-page {
  margin-inline: auto;
}

.has-app-sidebar .catalog-layout {
  gap: 30px;
  margin-top: 34px;
}

.has-app-sidebar .product-grid,
.has-app-sidebar .metric-grid,
.has-app-sidebar .report-grid,
.has-app-sidebar .compact-report-grid {
  gap: 24px;
}

.has-app-sidebar .product-info,
.has-app-sidebar .metric-card,
.has-app-sidebar .report-panel,
.has-app-sidebar .form-panel,
.has-app-sidebar .detail-panel,
.has-app-sidebar .product-detail-card {
  padding: 20px;
}

@media (max-width: 960px) {
  .detail-media {
    width: min(100%, 620px);
    margin-inline: auto;
  }

  .detail-media > img {
    min-height: 0;
    height: clamp(260px, 54vw, 380px);
    max-height: 380px;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.56);
  }
}

@media (max-width: 720px) {
  body.has-app-sidebar .subpage,
  body.has-app-sidebar .section-wrap,
  body.has-app-sidebar .site-footer,
  body.has-app-sidebar .admin-page,
  body:not(.has-app-sidebar) .subpage {
    width: calc(100% - 28px);
  }

  .catalog-search div {
    grid-template-columns: minmax(0, 1fr) 54px;
    gap: 8px;
  }

  .catalog-search input {
    min-height: 52px;
  }

  .catalog-search button {
    position: relative;
    display: grid;
    width: 54px;
    min-width: 54px;
    min-height: 52px;
    place-items: center;
    padding: 0;
    font-size: 0;
  }

  .catalog-search button::before {
    content: "";
    width: 16px;
    height: 16px;
    border: 2px solid currentColor;
    border-radius: 50%;
  }

  .catalog-search button::after {
    content: "";
    position: absolute;
    width: 9px;
    height: 2px;
    background: currentColor;
    transform: translate(8px, 8px) rotate(45deg);
  }

  .detail-media > img {
    height: clamp(220px, 58vw, 300px);
    max-height: 300px;
  }

  .has-app-sidebar .catalog-layout {
    gap: 22px;
    margin-top: 26px;
  }

  .has-app-sidebar .product-grid,
  .has-app-sidebar .metric-grid,
  .has-app-sidebar .report-grid,
  .has-app-sidebar .compact-report-grid {
    gap: 18px;
  }
}

/* Warm charcoal, plum, amber, and sage dark theme. */
html[data-theme="dark"] {
  --ink: #f7e9df;
  --paper: #17111b;
  --sand: #2b1e2d;
  --cream: #332334;
  --copper: #f2b56b;
  --ember: #c83f64;
  --teal: #86c7ad;
  --indigo: #f1c98d;
  --gold: #df8d50;
  --muted: #ccb9c5;
  --line: rgba(246, 218, 201, 0.16);
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.5);
}

html[data-theme="dark"] body,
html[data-theme="dark"] body.has-landing-header {
  background:
    radial-gradient(circle at 8% 8%, rgba(160, 54, 91, 0.26), transparent 28%),
    radial-gradient(circle at 90% 18%, rgba(224, 143, 80, 0.16), transparent 30%),
    linear-gradient(135deg, #17111b 0%, #241827 48%, #120d16 100%);
  color: #f7e9df;
}

html[data-theme="dark"] .main-header,
html[data-theme="dark"] .main-header.is-scrolled,
html[data-theme="dark"] body.has-app-sidebar .logged-in-header {
  border-color: rgba(242, 181, 107, 0.2);
  background: linear-gradient(135deg, rgba(43, 28, 45, 0.96), rgba(24, 16, 27, 0.94));
  color: #f7e9df;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.38);
}

html[data-theme="dark"] .brand strong,
html[data-theme="dark"] .main-nav a,
html[data-theme="dark"] .cart-link,
html[data-theme="dark"] .main-header .ghost-button,
html[data-theme="dark"] .theme-toggle,
html[data-theme="dark"] .user-pill,
html[data-theme="dark"] .menu-toggle {
  color: #f7e9df;
}

html[data-theme="dark"] .brand small,
html[data-theme="dark"] .catalog-hero .eyebrow,
html[data-theme="dark"] .admin-hero .eyebrow,
html[data-theme="dark"] .result-bar a,
html[data-theme="dark"] .product-info small {
  color: #f2b56b;
}

html[data-theme="dark"] .main-nav,
html[data-theme="dark"] .theme-toggle,
html[data-theme="dark"] .cart-link,
html[data-theme="dark"] .main-header .ghost-button,
html[data-theme="dark"] .account-floating-badge,
html[data-theme="dark"] .menu-toggle {
  border-color: rgba(242, 181, 107, 0.22);
  background: rgba(255, 255, 255, 0.06);
}

html[data-theme="dark"] .main-nav a:hover,
html[data-theme="dark"] .main-nav a.active {
  background: rgba(200, 63, 100, 0.24);
  color: #fff4eb;
}

html[data-theme="dark"] .theme-toggle-mark {
  border-color: rgba(242, 181, 107, 0.5);
  background: linear-gradient(135deg, #c83f64, #df8d50);
}

html[data-theme="dark"] .theme-toggle.is-dark .theme-toggle-mark {
  background: linear-gradient(135deg, #86c7ad, #c83f64);
}

html[data-theme="dark"] .theme-toggle.is-dark .theme-toggle-mark span {
  background: #211623;
  box-shadow: inset -4px -2px 0 #f2b56b, 0 0 18px rgba(242, 181, 107, 0.32);
}

html[data-theme="dark"] .feature-card,
html[data-theme="dark"] .category-card,
html[data-theme="dark"] .product-card,
html[data-theme="dark"] .auth-card,
html[data-theme="dark"] .summary-card,
html[data-theme="dark"] .filter-panel,
html[data-theme="dark"] .type-picker a,
html[data-theme="dark"] .empty-state,
html[data-theme="dark"] .form-panel,
html[data-theme="dark"] .metric-card,
html[data-theme="dark"] .admin-table-wrap,
html[data-theme="dark"] .note-box,
html[data-theme="dark"] .payment-card,
html[data-theme="dark"] .payment-option,
html[data-theme="dark"] .notice-card,
html[data-theme="dark"] .report-panel,
html[data-theme="dark"] .report-chart-card,
html[data-theme="dark"] .chat-faq-panel,
html[data-theme="dark"] .chat-room,
html[data-theme="dark"] .seller-thread-list,
html[data-theme="dark"] .order-detail,
html[data-theme="dark"] .admin-filter-panel,
html[data-theme="dark"] .buyer-welcome,
html[data-theme="dark"] .media-card,
html[data-theme="dark"] .news-card,
html[data-theme="dark"] .preorder-box,
html[data-theme="dark"] .gallery-upload-box,
html[data-theme="dark"] .guide-book article,
html[data-theme="dark"] .variant-editor,
html[data-theme="dark"] .color-choice-panel,
html[data-theme="dark"] .review-card,
html[data-theme="dark"] .cart-card,
html[data-theme="dark"] .detail-panel,
html[data-theme="dark"] .product-detail-card {
  border-color: rgba(242, 181, 107, 0.16);
  background: linear-gradient(145deg, rgba(48, 31, 50, 0.94), rgba(28, 19, 31, 0.92));
  color: #f7e9df;
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.3);
}

html[data-theme="dark"] .product-info {
  background: linear-gradient(180deg, rgba(52, 34, 53, 0.98), rgba(31, 21, 34, 0.96));
}

html[data-theme="dark"] .catalog-hero,
html[data-theme="dark"] .admin-hero,
html[data-theme="dark"] .cta-section,
html[data-theme="dark"] body.has-landing-header .subpage > .catalog-hero:first-child,
html[data-theme="dark"] body.has-landing-header .auth-card {
  border-color: rgba(242, 181, 107, 0.2);
  background:
    linear-gradient(120deg, rgba(36, 24, 42, 0.96), rgba(73, 29, 49, 0.82)),
    url("../img/hero-tenun.png") center / cover;
  color: #f7e9df;
}

html[data-theme="dark"] .catalog-hero p,
html[data-theme="dark"] .admin-hero p,
html[data-theme="dark"] .cta-section p,
html[data-theme="dark"] body.has-landing-header .subpage > .catalog-hero:first-child p,
html[data-theme="dark"] body.has-landing-header .auth-card p,
html[data-theme="dark"] body.has-landing-header .auth-switch {
  color: #d7c4cc;
}

html[data-theme="dark"] .catalog-search input,
html[data-theme="dark"] .form-stack input,
html[data-theme="dark"] .form-stack textarea,
html[data-theme="dark"] .form-stack select,
html[data-theme="dark"] .buy-box input,
html[data-theme="dark"] .cart-item input[type="number"],
html[data-theme="dark"] .order-search input,
html[data-theme="dark"] .admin-product-search input {
  border-color: rgba(242, 181, 107, 0.2);
  background: rgba(255, 248, 241, 0.08);
  color: #fff5ed;
}

html[data-theme="dark"] .catalog-search input::placeholder,
html[data-theme="dark"] .form-stack input::placeholder,
html[data-theme="dark"] .form-stack textarea::placeholder,
html[data-theme="dark"] .order-search input::placeholder,
html[data-theme="dark"] .admin-product-search input::placeholder {
  color: rgba(247, 233, 223, 0.56);
}

html[data-theme="dark"] .solid-button,
html[data-theme="dark"] .primary-button,
html[data-theme="dark"] .catalog-search button,
html[data-theme="dark"] .buy-box button,
html[data-theme="dark"] .buy-now-button,
html[data-theme="dark"] .cart-icon-button,
html[data-theme="dark"] .chat-icon-button,
html[data-theme="dark"] .sidebar-nav a:hover,
html[data-theme="dark"] .sidebar-nav a.active,
html[data-theme="dark"] .sidebar-logout {
  border-color: rgba(242, 181, 107, 0.2);
  background: linear-gradient(135deg, #c83f64, #8d2949);
  color: #fff6ed;
  box-shadow: 0 16px 34px rgba(109, 24, 51, 0.32);
}

html[data-theme="dark"] .secondary-button,
html[data-theme="dark"] .ghost-button,
html[data-theme="dark"] .table-action,
html[data-theme="dark"] .admin-tabs a,
html[data-theme="dark"] .filter-chips a,
html[data-theme="dark"] .pagination a,
html[data-theme="dark"] .pagination span,
html[data-theme="dark"] .filter-panel a,
html[data-theme="dark"] .back-to-catalog,
html[data-theme="dark"] .auth-card .password-toggle {
  border-color: rgba(242, 181, 107, 0.18);
  background: rgba(255, 248, 241, 0.07);
  color: #f7e9df;
}

html[data-theme="dark"] .secondary-button:hover,
html[data-theme="dark"] .ghost-button:hover,
html[data-theme="dark"] .table-action:hover,
html[data-theme="dark"] .pagination a:hover,
html[data-theme="dark"] .back-to-catalog:hover {
  border-color: rgba(242, 181, 107, 0.38);
  background: linear-gradient(135deg, #df8d50, #c83f64);
  color: #24131c;
}

html[data-theme="dark"] .buy-box,
html[data-theme="dark"] .detail-media,
html[data-theme="dark"] .product-thumbs {
  border-color: rgba(242, 181, 107, 0.16);
  background: rgba(48, 31, 50, 0.86);
}

html[data-theme="dark"] .app-sidebar {
  border-color: rgba(242, 181, 107, 0.22);
  background: linear-gradient(155deg, rgba(49, 32, 51, 0.98), rgba(24, 16, 28, 0.96));
  color: #f7e9df;
  box-shadow: 0 26px 84px rgba(0, 0, 0, 0.46);
}

html[data-theme="dark"] .app-sidebar-brand strong,
html[data-theme="dark"] .sidebar-account strong,
html[data-theme="dark"] .sidebar-nav a,
html[data-theme="dark"] .sidebar-actions .theme-toggle {
  color: #f7e9df;
}

html[data-theme="dark"] .app-sidebar-brand span,
html[data-theme="dark"] .sidebar-account small,
html[data-theme="dark"] .sidebar-account span {
  color: #d7c4cc;
}

html[data-theme="dark"] .sidebar-account,
html[data-theme="dark"] .sidebar-nav a,
html[data-theme="dark"] .sidebar-actions .theme-toggle {
  border-color: rgba(242, 181, 107, 0.16);
  background: rgba(255, 248, 241, 0.06);
}

html[data-theme="dark"] .sidebar-icon {
  background: rgba(134, 199, 173, 0.16);
  color: #a9e0c6;
}

html[data-theme="dark"] .landing-contactbar {
  background: linear-gradient(90deg, #6f2340, #4c1e35);
  color: #fff6ed;
}

html[data-theme="dark"] .landing-header,
html[data-theme="dark"] body.has-landing-header .landing-header {
  border-bottom-color: rgba(242, 181, 107, 0.18);
  background: linear-gradient(180deg, #302034 0%, #211622 100%);
  color: #f7e9df;
}

html[data-theme="dark"] .landing-brand strong,
html[data-theme="dark"] .landing-actions,
html[data-theme="dark"] .landing-login-link,
html[data-theme="dark"] .landing-cart-link,
html[data-theme="dark"] .landing-nav > a,
html[data-theme="dark"] .landing-products-menu > summary,
html[data-theme="dark"] .landing-hero h1,
html[data-theme="dark"] .landing-section-title h2,
html[data-theme="dark"] .landing-category-card span,
html[data-theme="dark"] .landing-product-card h3 {
  color: #f7e9df;
}

html[data-theme="dark"] .landing-brand small,
html[data-theme="dark"] .landing-section-title span,
html[data-theme="dark"] .landing-section-title a,
html[data-theme="dark"] .landing-product-card small,
html[data-theme="dark"] .landing-category-card strong,
html[data-theme="dark"] .landing-hero h1 span,
html[data-theme="dark"] .landing-hero h1 .landing-title-accent {
  color: #f2b56b;
}

html[data-theme="dark"] .landing-search,
html[data-theme="dark"] .landing-actions .theme-toggle,
html[data-theme="dark"] .landing-menu-toggle {
  border-color: rgba(242, 181, 107, 0.2);
  background: rgba(255, 248, 241, 0.07);
  color: #f7e9df;
}

html[data-theme="dark"] .landing-search input {
  color: #f7e9df;
}

html[data-theme="dark"] .landing-search input::placeholder {
  color: rgba(247, 233, 223, 0.58);
}

html[data-theme="dark"] .landing-hero,
html[data-theme="dark"] body.has-landing-header .landing-hero {
  background:
    linear-gradient(90deg, rgba(23, 17, 27, 0.97), rgba(43, 24, 39, 0.9) 54%, rgba(108, 35, 61, 0.62)),
    url("../img/landing-slide-kain-2.webp") center / cover;
  color: #f7e9df;
}

html[data-theme="dark"] .landing-hero p,
html[data-theme="dark"] .landing-link {
  color: #d7c4cc;
}

html[data-theme="dark"] .landing-benefits,
html[data-theme="dark"] .landing-category-card,
html[data-theme="dark"] .landing-product-card,
html[data-theme="dark"] .landing-products-menu > div {
  border-color: rgba(242, 181, 107, 0.16);
  background: linear-gradient(145deg, rgba(49, 32, 51, 0.96), rgba(27, 18, 31, 0.94));
  color: #f7e9df;
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.32);
}

html[data-theme="dark"] .landing-benefits p,
html[data-theme="dark"] .landing-category-card p,
html[data-theme="dark"] .landing-product-card p,
html[data-theme="dark"] .landing-stats span {
  color: #d7c4cc;
}

html[data-theme="dark"] .landing-stats,
html[data-theme="dark"] .site-footer {
  border-color: rgba(242, 181, 107, 0.2);
  background: linear-gradient(135deg, #6f2340, #3e192c);
  color: #fff6ed;
}

html[data-theme="dark"] .landing-product-badge,
html[data-theme="dark"] .landing-cart-link b,
html[data-theme="dark"] .landing-pill,
html[data-theme="dark"] .landing-product-card > a span {
  border-color: rgba(242, 181, 107, 0.24);
  background: #8d2949;
  color: #fff6ed;
}

/* Checkout, chat, and sidebar interaction polish. */
.app-sidebar {
  padding-top: 14px;
}

.sidebar-edge-toggle,
.sidebar-close-button {
  position: absolute;
  z-index: 4;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(181, 22, 68, 0.32);
  background: var(--paper);
  color: var(--ember);
  box-shadow: 0 10px 24px rgba(31, 14, 27, 0.16);
}

.sidebar-edge-toggle {
  top: 18px;
  right: 8px;
  border-radius: 999px;
}

.sidebar-edge-toggle span {
  width: 9px;
  height: 9px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(-135deg);
  transition: transform 180ms ease;
}

body.sidebar-collapsed .sidebar-edge-toggle span {
  transform: rotate(45deg);
}

.sidebar-close-button {
  top: 14px;
  right: 14px;
  display: none;
  border-radius: 8px;
}

.sidebar-close-button span,
.sidebar-close-button span::after {
  width: 17px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  content: "";
  transform: rotate(45deg);
}

.sidebar-close-button span::after {
  display: block;
  transform: rotate(90deg);
}

.sidebar-edge-toggle:hover,
.sidebar-close-button:hover {
  border-color: var(--ember);
  background: var(--ember);
  color: #fffaf5;
}

.checkout-form > form.form-stack > label,
.checkout-form > form.form-stack > .delivery-location-picker,
.checkout-form > form.form-stack > .payment-method-group,
.checkout-form > form.form-stack > .payment-panel {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.52);
  padding: 16px;
}

.checkout-form > form.form-stack > label > span,
.checkout-form > form.form-stack > .delivery-location-picker > label > span,
.checkout-form > form.form-stack > .payment-method-group > span {
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 900;
}

.checkout-form > form.form-stack > label > input,
.checkout-form > form.form-stack > label > textarea,
.checkout-form > form.form-stack > .delivery-location-picker input,
.checkout-form > form.form-stack > .payment-method-group select,
.chat-product-send select {
  background: var(--paper);
}

.delivery-area-group .payment-options {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.delivery-area-group .payment-option,
.payment-method-group .payment-option {
  min-height: 0;
}

.order-detail > .summary-card > p,
.order-admin-layout > .summary-card > p {
  margin: 8px 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.46);
  padding: 11px 13px;
}

.chat-product-card {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 11px;
  margin: 10px 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
  padding: 10px;
}

.chat-product-card img {
  width: 76px;
  height: 76px;
  border-radius: 7px;
  object-fit: cover;
}

.chat-product-card > div {
  display: grid;
  align-content: start;
  gap: 4px;
  min-width: 0;
}

.chat-product-card strong {
  color: var(--ink);
  line-height: 1.25;
}

.chat-product-card small {
  color: var(--muted);
  line-height: 1.35;
}

.chat-product-card b {
  color: var(--ember);
}

.chat-product-link {
  display: inline-flex;
  width: fit-content;
  margin-top: 4px;
  border-radius: 7px;
  background: var(--ember);
  padding: 7px 10px;
  color: #fffaf5;
  font-size: 0.78rem;
  font-weight: 900;
}

.chat-product-link:hover {
  background: var(--gold);
  color: #20121b;
}

.chat-product-send {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.48);
  padding: 12px;
}

.chat-product-send > span {
  color: var(--ink);
  font-weight: 900;
}

.flobakarya-leaflet-marker {
  width: 30px !important;
  height: 42px !important;
  border: 0 !important;
  background: transparent !important;
}

.flobakarya-leaflet-marker span {
  position: absolute;
  left: 3px;
  top: 2px;
  width: 24px;
  height: 24px;
  border: 3px solid #fffaf5;
  border-radius: 50% 50% 50% 0;
  background: var(--ember);
  box-shadow: 0 8px 18px rgba(12, 10, 20, 0.32);
  transform: rotate(-45deg);
}

.flobakarya-leaflet-marker span::after {
  position: absolute;
  inset: 6px;
  border-radius: 999px;
  background: var(--copper);
  content: "";
}

.flobakarya-leaflet-marker.is-locked span,
.location-map-canvas.is-location-locked .flobakarya-leaflet-marker span {
  background: #0d5d86;
  box-shadow: 0 8px 20px rgba(13, 93, 134, 0.36);
}

.flobakarya-leaflet-marker.is-locked span::after,
.location-map-canvas.is-location-locked .flobakarya-leaflet-marker span::after {
  background: #7ed8ff;
}

@media (max-width: 960px) {
  .sidebar-edge-toggle {
    display: none;
  }

  .sidebar-close-button {
    display: grid;
  }

  .app-sidebar {
    padding-top: 62px;
  }
}

@media (max-width: 720px) {
  .app-sidebar {
    top: 12px;
    bottom: auto;
    left: 12px;
    width: calc(100vw - 24px);
    max-height: calc(100dvh - 24px);
    padding: 62px 12px 14px;
    transform: translateY(-12px) scale(0.98);
  }

  .app-sidebar.is-open {
    transform: translateY(0) scale(1);
  }

  .sidebar-account {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .delivery-area-group .payment-options {
    grid-template-columns: 1fr;
  }

  .checkout-form > form.form-stack > label,
  .checkout-form > form.form-stack > .delivery-location-picker,
  .checkout-form > form.form-stack > .payment-method-group,
  .checkout-form > form.form-stack > .payment-panel {
    padding: 13px;
  }

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

  .chat-product-card img {
    width: 64px;
    height: 64px;
  }
}

/* Navy, glowing maroon, and sky-blue dark theme. */
html[data-theme="dark"] {
  --ink: #f4f8ff;
  --paper: #08172b;
  --sand: #102b4a;
  --cream: #17395c;
  --copper: #8edcff;
  --ember: #f01955;
  --teal: #6edbd8;
  --indigo: #a7caff;
  --gold: #f4bd62;
  --muted: #b9cde4;
  --line: rgba(151, 211, 255, 0.2);
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.55);
}

html[data-theme="dark"] body,
html[data-theme="dark"] body.has-landing-header {
  background:
    radial-gradient(circle at 10% 10%, rgba(240, 25, 85, 0.2), transparent 28%),
    radial-gradient(circle at 88% 14%, rgba(142, 220, 255, 0.16), transparent 30%),
    linear-gradient(135deg, #061225 0%, #0b2543 50%, #050c19 100%);
  color: var(--ink);
}

html[data-theme="dark"] .main-header,
html[data-theme="dark"] .logged-in-header,
html[data-theme="dark"] .landing-header {
  background: linear-gradient(135deg, #07172d, #0d2a4b 58%, #092039);
  border-color: rgba(142, 220, 255, 0.24);
}

html[data-theme="dark"] .main-nav,
html[data-theme="dark"] .landing-nav {
  background: #08172b;
  border-color: rgba(142, 220, 255, 0.24);
}

html[data-theme="dark"] .main-nav a,
html[data-theme="dark"] .landing-nav a,
html[data-theme="dark"] .brand strong,
html[data-theme="dark"] .landing-brand strong,
html[data-theme="dark"] .logged-in-header .brand strong {
  color: #f4f8ff;
}

html[data-theme="dark"] .main-nav a.active,
html[data-theme="dark"] .main-nav a:hover,
html[data-theme="dark"] .landing-nav a.active,
html[data-theme="dark"] .landing-nav a:hover {
  background: linear-gradient(135deg, #f01955, #a90d3d);
  color: #fff;
}

html[data-theme="dark"] .app-sidebar {
  border-color: rgba(142, 220, 255, 0.28);
  background: linear-gradient(155deg, rgba(16, 43, 74, 0.98), rgba(7, 23, 45, 0.98));
  box-shadow: 0 24px 80px rgba(1, 7, 17, 0.5);
}

html[data-theme="dark"] .app-sidebar-brand strong,
html[data-theme="dark"] .sidebar-account strong,
html[data-theme="dark"] .sidebar-nav a,
html[data-theme="dark"] .sidebar-actions .theme-toggle,
html[data-theme="dark"] .sidebar-account span,
html[data-theme="dark"] .sidebar-account small,
html[data-theme="dark"] .app-sidebar-brand span {
  color: #f4f8ff;
}

html[data-theme="dark"] .sidebar-account,
html[data-theme="dark"] .sidebar-nav a,
html[data-theme="dark"] .sidebar-actions .theme-toggle,
html[data-theme="dark"] .checkout-form > form.form-stack > label,
html[data-theme="dark"] .checkout-form > form.form-stack > .delivery-location-picker,
html[data-theme="dark"] .checkout-form > form.form-stack > .payment-method-group,
html[data-theme="dark"] .checkout-form > form.form-stack > .payment-panel,
html[data-theme="dark"] .chat-product-card,
html[data-theme="dark"] .chat-product-send,
html[data-theme="dark"] .order-detail > .summary-card > p,
html[data-theme="dark"] .order-admin-layout > .summary-card > p {
  border-color: rgba(142, 220, 255, 0.2);
  background: rgba(16, 43, 74, 0.68);
}

html[data-theme="dark"] .sidebar-nav a:hover,
html[data-theme="dark"] .sidebar-nav a.active {
  border-color: rgba(240, 25, 85, 0.62);
  background: linear-gradient(135deg, #f01955, #a90d3d);
  color: #fff;
  box-shadow: 0 16px 34px rgba(240, 25, 85, 0.28);
}

html[data-theme="dark"] .sidebar-icon {
  background: rgba(142, 220, 255, 0.14);
  color: #8edcff;
}

html[data-theme="dark"] .sidebar-edge-toggle,
html[data-theme="dark"] .sidebar-close-button {
  border-color: rgba(142, 220, 255, 0.3);
  background: #102b4a;
  color: #8edcff;
}

html[data-theme="dark"] .catalog-hero,
html[data-theme="dark"] .admin-hero,
html[data-theme="dark"] .detail-layout,
html[data-theme="dark"] .checkout-layout,
html[data-theme="dark"] .chat-layout,
html[data-theme="dark"] .seller-chat-layout,
html[data-theme="dark"] .order-detail,
html[data-theme="dark"] .form-panel,
html[data-theme="dark"] .summary-card,
html[data-theme="dark"] .metric-card,
html[data-theme="dark"] .report-panel,
html[data-theme="dark"] .product-detail-card {
  border-color: rgba(142, 220, 255, 0.2);
  background: linear-gradient(145deg, rgba(16, 43, 74, 0.94), rgba(7, 23, 45, 0.94));
  color: var(--ink);
}

html[data-theme="dark"] .catalog-hero h1,
html[data-theme="dark"] .admin-hero h1,
html[data-theme="dark"] .detail-copy h1,
html[data-theme="dark"] .checkout-form h1,
html[data-theme="dark"] .section-heading h1 {
  color: #f4f8ff;
}

html[data-theme="dark"] .form-stack input,
html[data-theme="dark"] .form-stack textarea,
html[data-theme="dark"] .form-stack select,
html[data-theme="dark"] .chat-product-send select,
html[data-theme="dark"] .catalog-search input,
html[data-theme="dark"] .location-search-box input {
  border-color: rgba(142, 220, 255, 0.24);
  background: #08172b;
  color: #f4f8ff;
}

html[data-theme="dark"] .primary-button,
html[data-theme="dark"] .solid-button,
html[data-theme="dark"] .catalog-search button,
html[data-theme="dark"] .buy-now-button,
html[data-theme="dark"] .chat-product-link {
  background: linear-gradient(135deg, #f01955, #b20d42);
  color: #fff;
}

html[data-theme="dark"] .secondary-button,
html[data-theme="dark"] .ghost-button,
html[data-theme="dark"] .back-to-catalog {
  border-color: rgba(142, 220, 255, 0.34);
  background: rgba(142, 220, 255, 0.12);
  color: #8edcff;
}

html[data-theme="dark"] .landing-contactbar,
html[data-theme="dark"] .landing-stats,
html[data-theme="dark"] .landing-footer {
  background: linear-gradient(135deg, #890d38, #4c0b2a);
  color: #fff;
}

html[data-theme="dark"] .landing-hero,
html[data-theme="dark"] .landing-category-section,
html[data-theme="dark"] .landing-products-section,
html[data-theme="dark"] .landing-benefits {
  background-color: #08172b;
}

html[data-theme="dark"] .payment-option {
  border-color: rgba(142, 220, 255, 0.2);
  background: rgba(16, 43, 74, 0.62);
}

html[data-theme="dark"] .payment-option strong,
html[data-theme="dark"] .payment-option small,
html[data-theme="dark"] .chat-product-card strong,
html[data-theme="dark"] .chat-product-card small,
html[data-theme="dark"] .chat-product-send > span {
  color: #f4f8ff;
}

html[data-theme="dark"] .payment-option small,
html[data-theme="dark"] .form-hint {
  color: #b9cde4;
}

html[data-theme="dark"] .payment-panel,
html[data-theme="dark"] .payment-card {
  border-color: rgba(110, 219, 216, 0.24);
  background: rgba(110, 219, 216, 0.1);
}

html[data-theme="dark"] .flobakarya-leaflet-marker span {
  border-color: #f4f8ff;
  background: #f01955;
}

@media (max-width: 960px) {
  html[data-theme="dark"] .sidebar-scrim:not([hidden]) {
    background: rgba(2, 10, 24, 0.72);
  }
}

/* Final responsive pass: keep the landing content in one flow and the account menu as a side drawer. */
@media (max-width: 1180px) {
  .landing-hero {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }

  .landing-hero-copy {
    width: 100%;
    max-width: 780px;
    padding: clamp(34px, 6vw, 68px) clamp(22px, 7vw, 76px) 36px;
  }

  .landing-hero-media {
    min-height: clamp(280px, 45vw, 480px);
    border: 0;
    border-top: 6px solid #d7a34b;
    clip-path: none;
  }

  .landing-hero-main-image {
    display: block;
    min-height: clamp(280px, 45vw, 480px);
    object-fit: cover;
  }

  .app-sidebar {
    top: 0;
    bottom: 0;
    left: 0;
    width: min(360px, calc(100vw - 40px));
    max-height: 100dvh;
    border-radius: 0 14px 14px 0;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 64px 14px 16px;
    transform: translateX(calc(-100% - 24px));
  }

  .app-sidebar.is-open {
    transform: translateX(0);
  }

  .sidebar-nav {
    max-height: none;
    overflow: visible;
  }

  .sidebar-actions {
    margin-top: 14px;
  }

  .sidebar-edge-toggle {
    position: fixed;
    top: 50%;
    right: auto;
    left: 8px;
    display: grid;
    z-index: 90;
    transform: translateY(-50%);
  }

  body.sidebar-open .sidebar-edge-toggle {
    left: min(343px, calc(100vw - 57px));
  }

  .sidebar-close-button {
    display: grid;
  }
}

@media (min-width: 1181px) {
  .sidebar-edge-toggle {
    position: fixed;
    top: 50%;
    right: auto;
    left: 251px;
    z-index: 90;
    transform: translateY(-50%);
  }

  body.sidebar-collapsed .sidebar-edge-toggle {
    left: 63px;
  }
}

@media (max-width: 720px) {
  .landing-hero-copy {
    padding: 32px 20px 26px;
  }

  .landing-hero h1 {
    max-width: 100%;
    margin: 14px 0 16px;
    font-size: clamp(2.15rem, 10vw, 3.4rem);
    line-height: 1.02;
  }

  .landing-hero p {
    font-size: 1rem;
    line-height: 1.62;
  }

  .landing-hero-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    margin-top: 22px;
  }

  .landing-primary,
  .landing-link {
    width: 100%;
    min-height: 50px;
  }

  .landing-hero-media,
  .landing-hero-main-image {
    min-height: clamp(240px, 72vw, 340px);
  }

  .landing-hero-arrow {
    display: none;
  }

  .landing-hero-logo {
    right: 18px;
    bottom: 18px;
    width: 82px;
  }
}

/* Wide account layout: slide the full sidebar away and let the page reclaim its space. */
@media (min-width: 1181px) {
  body.has-app-sidebar {
    padding-left: 284px;
    transition: padding-left 240ms ease;
  }

  body.has-app-sidebar.sidebar-collapsed {
    padding-left: 24px;
  }

  body.has-app-sidebar .logged-in-header {
    left: calc(50vw + 142px);
    width: min(1180px, calc(100vw - 316px));
    transition: left 240ms ease, width 240ms ease;
  }

  body.has-app-sidebar.sidebar-collapsed .logged-in-header {
    left: 50%;
    width: min(1380px, calc(100vw - 48px));
  }

  body.has-app-sidebar .app-sidebar {
    width: 252px;
    padding: 14px;
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
    transition: transform 240ms ease;
  }

  body.has-app-sidebar.sidebar-collapsed .app-sidebar {
    width: 252px;
    padding: 14px;
    overflow-y: auto;
    transform: translateX(calc(-100% - 32px));
  }

  body.has-app-sidebar.sidebar-collapsed .app-sidebar-brand,
  body.has-app-sidebar.sidebar-collapsed .sidebar-account {
    grid-template-columns: 42px minmax(0, 1fr);
    justify-items: initial;
  }

  body.has-app-sidebar.sidebar-collapsed .app-sidebar-brand > div,
  body.has-app-sidebar.sidebar-collapsed .sidebar-account > div,
  body.has-app-sidebar.sidebar-collapsed .sidebar-nav a > strong,
  body.has-app-sidebar.sidebar-collapsed .sidebar-actions .theme-toggle-text {
    display: block;
  }

  body.has-app-sidebar.sidebar-collapsed .sidebar-account {
    padding: 12px;
  }

  body.has-app-sidebar.sidebar-collapsed .sidebar-nav a {
    grid-template-columns: 34px minmax(0, 1fr) auto;
    justify-items: initial;
    gap: 8px;
    padding: 9px 10px;
  }

  body.has-app-sidebar.sidebar-collapsed .sidebar-icon {
    width: 34px;
  }

  body.has-app-sidebar.sidebar-collapsed .sidebar-actions .theme-toggle {
    justify-content: flex-start;
    padding: 0 12px;
  }

  body.has-app-sidebar.sidebar-collapsed .sidebar-logout {
    min-width: 0;
    overflow: visible;
    justify-content: center;
    padding-inline: 12px;
    white-space: normal;
  }

  body.has-app-sidebar.sidebar-collapsed .sidebar-badge {
    position: static;
    min-width: 28px;
    height: 28px;
    padding: 0 8px;
    font-size: 0.88rem;
  }

  .sidebar-edge-toggle {
    left: 251px;
    z-index: 90;
    transition: left 240ms ease, background-color 180ms ease, color 180ms ease;
  }

  body.has-app-sidebar.sidebar-collapsed .sidebar-edge-toggle {
    left: 8px;
  }
}

/* Use a clear menu glyph for the edge control; the old arrow implied a different action. */
.sidebar-edge-toggle span,
.sidebar-edge-toggle span::before,
.sidebar-edge-toggle span::after {
  width: 17px;
  height: 2px;
  border: 0;
  border-radius: 999px;
  background: currentColor;
  content: "";
  transform: none;
}

.sidebar-edge-toggle span {
  position: relative;
}

.sidebar-edge-toggle span::before,
.sidebar-edge-toggle span::after {
  position: absolute;
  left: 0;
}

.sidebar-edge-toggle span::before {
  top: -5px;
}

.sidebar-edge-toggle span::after {
  top: 5px;
}

body.sidebar-collapsed .sidebar-edge-toggle span {
  transform: none;
}

/* Keep the single sidebar control near the top edge and clear space for it on small screens. */
@media (max-width: 1180px) {
  .has-app-sidebar .logged-in-header .brand {
    margin-left: 44px;
  }

  .sidebar-edge-toggle {
    top: 20px;
    transform: none;
  }

  body.sidebar-open .sidebar-edge-toggle {
    top: 20px;
  }
}

@media (min-width: 1181px) {
  .sidebar-edge-toggle {
    top: 30px;
    transform: none;
  }

  body.has-app-sidebar.sidebar-collapsed .sidebar-edge-toggle {
    top: 30px;
  }
}

/* Keep the account sidebar on the left while its single toggle stays on the right edge. */
@media (max-width: 1180px) {
  .has-app-sidebar .logged-in-header .brand {
    margin-left: 44px;
    margin-right: 0;
  }

  .app-sidebar {
    right: auto;
    left: 0;
    border-radius: 0 14px 14px 0;
    transform: translateX(calc(-100% - 24px));
  }

  .app-sidebar.is-open {
    transform: translateX(0);
  }

  .sidebar-edge-toggle {
    right: auto;
    left: 8px;
  }

  body.sidebar-open .sidebar-edge-toggle {
    left: min(343px, calc(100vw - 57px));
    right: auto;
  }
}

@media (min-width: 1181px) {
  body.has-app-sidebar {
    padding-left: 284px;
    padding-right: 0;
    overflow-x: hidden;
  }

  body.has-app-sidebar.sidebar-collapsed {
    padding-left: 24px;
    padding-right: 0;
  }

  body.has-app-sidebar .logged-in-header {
    left: calc(50vw + 142px);
  }

  body.has-app-sidebar.sidebar-collapsed .logged-in-header {
    left: 50%;
    width: min(1380px, calc(100vw - 48px));
  }

  body.has-app-sidebar .app-sidebar {
    right: auto;
    left: 16px;
    transform: translateX(0);
  }

  body.has-app-sidebar.sidebar-collapsed .app-sidebar {
    transform: translateX(calc(-100% - 32px));
  }

  .sidebar-edge-toggle {
    right: auto;
    left: 251px;
    pointer-events: auto;
    cursor: pointer;
    z-index: 100;
  }

  body.has-app-sidebar.sidebar-collapsed .sidebar-edge-toggle {
    left: 8px;
    right: auto;
  }
}

/* Account sidebar final behavior: one navbar toggle, left drawer, wide content when closed. */
.sidebar-edge-toggle,
.sidebar-close-button {
  display: none !important;
}

.sidebar-navbar-toggle {
  display: inline-grid !important;
  place-items: center;
  pointer-events: auto;
  cursor: pointer;
}

body.has-app-sidebar .logged-in-header {
  z-index: 100;
  grid-template-columns: minmax(0, 1fr) auto;
}

body.has-app-sidebar .logged-in-header .brand {
  min-width: 0;
}

body.has-app-sidebar .logged-in-header .brand span {
  min-width: 0;
}

body.has-app-sidebar .logged-in-header .brand strong,
body.has-app-sidebar .logged-in-header .brand small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 1180px) {
  body.has-app-sidebar {
    padding-left: 0;
  }

  body.has-app-sidebar.sidebar-collapsed {
    padding-left: 0;
  }

  body.has-app-sidebar .logged-in-header {
    display: grid;
    left: 12px;
    right: 12px;
    width: auto;
    max-width: none;
    transform: none;
  }

  body.has-app-sidebar .logged-in-header .brand {
    margin-left: 0;
    margin-right: 0;
    padding-right: 8px;
  }

  body.has-app-sidebar .logged-in-header .brand small {
    display: block;
  }

  .sidebar-navbar-toggle {
    position: relative;
    top: auto;
    right: auto;
    justify-self: end;
    z-index: 1;
  }

  .app-sidebar {
    right: auto;
    left: 0;
    top: 92px;
    bottom: 12px;
    width: min(310px, calc(100vw - 28px));
    max-height: none;
    border-radius: 0 14px 14px 0;
    overflow-y: auto;
    transform: translateX(calc(-100% - 24px));
    transition: transform 240ms ease, box-shadow 240ms ease;
    z-index: 94;
  }

  .app-sidebar.is-open {
    transform: translateX(0);
    box-shadow: 18px 0 40px rgba(7, 30, 56, 0.22);
  }

  .sidebar-scrim:not([hidden]) {
    z-index: 90;
  }
}

@media (max-width: 560px) {
  body.has-app-sidebar .logged-in-header {
    left: 8px;
    right: 8px;
  }

  body.has-app-sidebar .logged-in-header .brand {
    gap: 10px;
  }

  body.has-app-sidebar .logged-in-header .brand img {
    width: 44px;
    height: 44px;
  }

  body.has-app-sidebar .logged-in-header .brand small {
    display: none;
  }
}

@media (min-width: 1181px) {
  body.has-app-sidebar {
    padding-left: 284px;
    padding-right: 0;
    padding-top: 94px;
    overflow-x: hidden;
    transition: padding-left 240ms ease;
  }

  body.has-app-sidebar.sidebar-collapsed {
    padding-left: 24px;
  }

  body.has-app-sidebar .logged-in-header {
    display: grid;
    top: 16px;
    left: calc(50vw + 142px);
    right: auto;
    width: min(1180px, calc(100vw - 316px));
    max-width: none;
    min-height: 64px;
    transform: translateX(-50%);
    transition: left 240ms ease, width 240ms ease;
  }

  body.has-app-sidebar.sidebar-collapsed .logged-in-header {
    left: 50%;
    width: min(1380px, calc(100vw - 48px));
  }

  body.has-app-sidebar .app-sidebar {
    top: 16px;
    bottom: 16px;
    left: 16px;
    right: auto;
    width: 252px;
    padding: 14px;
    max-height: none;
    opacity: 1;
    pointer-events: auto;
    overflow-y: auto;
    transform: translateX(0);
    transition: transform 240ms ease;
  }

  body.has-app-sidebar.sidebar-collapsed .app-sidebar {
    transform: translateX(calc(-100% - 32px));
  }

  body.has-app-sidebar .sidebar-scrim {
    display: none !important;
  }

  body.has-app-sidebar .logged-in-header .sidebar-navbar-toggle {
    justify-self: end;
  }
}

/* Premium sidebar toggle for the logged-in navbar. */
.sidebar-navbar-toggle {
  position: relative;
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(232, 247, 255, 0.9)) padding-box,
    linear-gradient(135deg, rgba(165, 0, 45, 0.58), rgba(118, 190, 224, 0.58)) border-box;
  color: #071e38;
  box-shadow:
    0 16px 34px rgba(7, 30, 56, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.sidebar-navbar-toggle::before {
  position: absolute;
  inset: 11px;
  border: 1px solid rgba(7, 30, 56, 0.16);
  border-radius: 11px;
  background:
    linear-gradient(90deg, rgba(165, 0, 45, 0.9) 0 5px, transparent 5px),
    linear-gradient(135deg, rgba(255, 255, 255, 0.44), rgba(255, 255, 255, 0.08));
  content: "";
}

.sidebar-navbar-toggle::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0 28%, rgba(255, 255, 255, 0.55) 46%, transparent 64%);
  content: "";
  opacity: 0;
  transform: translateX(-120%);
  transition: opacity 180ms ease, transform 420ms ease;
}

.sidebar-navbar-toggle span {
  position: absolute;
  left: 50%;
  z-index: 1;
  display: block;
  width: 22px;
  height: 2px;
  margin: 0;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18);
  transform: translateX(-50%);
  transition: top 180ms ease, width 180ms ease, opacity 160ms ease, transform 180ms ease;
}

.sidebar-navbar-toggle span:nth-child(1) {
  top: 21px;
}

.sidebar-navbar-toggle span:nth-child(2) {
  top: 28px;
  width: 16px;
}

.sidebar-navbar-toggle span:nth-child(3) {
  top: 35px;
}

.sidebar-navbar-toggle:hover {
  transform: translateY(-1px);
  box-shadow:
    0 20px 42px rgba(7, 30, 56, 0.18),
    0 0 0 4px rgba(165, 0, 45, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.94);
}

.sidebar-navbar-toggle:hover::after {
  opacity: 1;
  transform: translateX(120%);
}

.sidebar-navbar-toggle:active {
  transform: translateY(0) scale(0.96);
}

.sidebar-navbar-toggle:focus-visible {
  outline: 3px solid rgba(118, 190, 224, 0.54);
  outline-offset: 4px;
}

.sidebar-navbar-toggle[aria-expanded="true"] {
  background:
    linear-gradient(135deg, #a5002d, #c91852) padding-box,
    linear-gradient(135deg, rgba(255, 255, 255, 0.62), rgba(118, 190, 224, 0.72)) border-box;
  color: #fffafc;
  box-shadow:
    0 18px 38px rgba(165, 0, 45, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.sidebar-navbar-toggle[aria-expanded="true"]::before {
  border-color: rgba(255, 250, 252, 0.28);
  background:
    linear-gradient(90deg, rgba(255, 250, 252, 0.9) 0 5px, transparent 5px),
    linear-gradient(135deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.04));
}

.sidebar-navbar-toggle[aria-expanded="true"] span:nth-child(1) {
  top: 28px;
  width: 22px;
  transform: translateX(-50%) rotate(45deg);
}

.sidebar-navbar-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
  transform: translateX(-50%) scaleX(0.3);
}

.sidebar-navbar-toggle[aria-expanded="true"] span:nth-child(3) {
  top: 28px;
  width: 22px;
  transform: translateX(-50%) rotate(-45deg);
}

body.has-app-sidebar.sidebar-collapsed .sidebar-navbar-toggle[aria-expanded="false"]::before {
  background:
    linear-gradient(90deg, transparent 0 calc(100% - 5px), rgba(165, 0, 45, 0.9) calc(100% - 5px) 100%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.44), rgba(255, 255, 255, 0.08));
}

html[data-theme="dark"] .sidebar-navbar-toggle {
  background:
    linear-gradient(135deg, rgba(11, 35, 64, 0.96), rgba(64, 16, 43, 0.92)) padding-box,
    linear-gradient(135deg, rgba(255, 40, 92, 0.76), rgba(89, 196, 255, 0.72)) border-box;
  color: #f7fbff;
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.34),
    0 0 0 1px rgba(89, 196, 255, 0.08) inset;
}

html[data-theme="dark"] .sidebar-navbar-toggle::before {
  border-color: rgba(154, 211, 244, 0.26);
  background:
    linear-gradient(90deg, rgba(255, 40, 92, 0.95) 0 5px, transparent 5px),
    linear-gradient(135deg, rgba(89, 196, 255, 0.16), rgba(255, 255, 255, 0.03));
}

html[data-theme="dark"] .sidebar-navbar-toggle[aria-expanded="true"] {
  background:
    linear-gradient(135deg, #ff1f5f, #9a0634) padding-box,
    linear-gradient(135deg, rgba(255, 255, 255, 0.36), rgba(89, 196, 255, 0.82)) border-box;
  box-shadow:
    0 18px 44px rgba(255, 31, 95, 0.28),
    0 0 0 1px rgba(89, 196, 255, 0.12) inset;
}

@media (max-width: 560px) {
  .sidebar-navbar-toggle {
    width: 54px;
    height: 54px;
    flex-basis: 54px;
    border-radius: 14px;
  }

  .sidebar-navbar-toggle::before {
    inset: 10px;
  }

  .sidebar-navbar-toggle span:nth-child(1) {
    top: 19px;
  }

  .sidebar-navbar-toggle span:nth-child(2) {
    top: 26px;
  }

  .sidebar-navbar-toggle span:nth-child(3) {
    top: 33px;
  }

  .sidebar-navbar-toggle[aria-expanded="true"] span:nth-child(1),
  .sidebar-navbar-toggle[aria-expanded="true"] span:nth-child(3) {
    top: 26px;
  }
}

/* Final simple sidebar toggle, chat contrast, and navy-maroon-sky dark theme. */
body.has-app-sidebar .logged-in-header {
  position: fixed;
  z-index: 160;
}

body.has-app-sidebar .logged-in-header .sidebar-navbar-toggle {
  position: relative;
  z-index: 3;
  display: inline-grid !important;
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(165, 0, 45, 0.28);
  border-radius: 14px;
  background: linear-gradient(145deg, #ffffff, #edf8ff);
  color: #08233f;
  box-shadow: 0 12px 26px rgba(7, 30, 56, 0.12);
  cursor: pointer;
  pointer-events: auto;
  transition: transform 170ms ease, box-shadow 170ms ease, border-color 170ms ease, background 170ms ease, color 170ms ease;
}

body.has-app-sidebar .logged-in-header .sidebar-navbar-toggle::before,
body.has-app-sidebar .logged-in-header .sidebar-navbar-toggle::after {
  display: none;
  content: none;
}

body.has-app-sidebar .logged-in-header .sidebar-navbar-toggle span {
  position: absolute;
  left: 50%;
  display: block;
  width: 23px;
  height: 2px;
  margin: 0;
  border-radius: 999px;
  background: currentColor;
  box-shadow: none;
  transform: translateX(-50%);
  transition: top 170ms ease, width 170ms ease, opacity 140ms ease, transform 170ms ease;
}

body.has-app-sidebar .logged-in-header .sidebar-navbar-toggle span:nth-child(1) {
  top: 18px;
}

body.has-app-sidebar .logged-in-header .sidebar-navbar-toggle span:nth-child(2) {
  top: 25px;
  width: 18px;
}

body.has-app-sidebar .logged-in-header .sidebar-navbar-toggle span:nth-child(3) {
  top: 32px;
}

body.has-app-sidebar .logged-in-header .sidebar-navbar-toggle:hover {
  border-color: rgba(165, 0, 45, 0.48);
  background: linear-gradient(145deg, #fff7fb, #e8f7ff);
  box-shadow:
    0 16px 34px rgba(7, 30, 56, 0.15),
    0 0 0 4px rgba(165, 0, 45, 0.06);
  transform: translateY(-1px);
}

body.has-app-sidebar .logged-in-header .sidebar-navbar-toggle:active {
  transform: translateY(0) scale(0.96);
}

body.has-app-sidebar .logged-in-header .sidebar-navbar-toggle:focus-visible {
  outline: 3px solid rgba(126, 216, 255, 0.56);
  outline-offset: 4px;
}

body.has-app-sidebar .logged-in-header .sidebar-navbar-toggle[aria-expanded="true"] {
  border-color: rgba(126, 216, 255, 0.42);
  background: linear-gradient(135deg, #a5002d, #cc1550);
  color: #fff;
  box-shadow:
    0 16px 32px rgba(165, 0, 45, 0.24),
    0 0 0 1px rgba(255, 255, 255, 0.14) inset;
}

body.has-app-sidebar .logged-in-header .sidebar-navbar-toggle[aria-expanded="true"] span:nth-child(1) {
  top: 25px;
  transform: translateX(-50%) rotate(45deg);
}

body.has-app-sidebar .logged-in-header .sidebar-navbar-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
  transform: translateX(-50%) scaleX(0.2);
}

body.has-app-sidebar .logged-in-header .sidebar-navbar-toggle[aria-expanded="true"] span:nth-child(3) {
  top: 25px;
  transform: translateX(-50%) rotate(-45deg);
}

.chat-faq-panel,
.seller-thread-list,
.chat-room {
  border-color: rgba(9, 48, 82, 0.14);
  background: rgba(255, 255, 255, 0.82);
  color: #071e38;
}

.chat-room-header,
.chat-compose {
  border-color: rgba(9, 48, 82, 0.12);
  background: rgba(255, 255, 255, 0.42);
}

.chat-faq-panel h2,
.seller-thread-list h2,
.chat-room-header strong,
.chat-compose label {
  color: #071e38;
}

.chat-faq-panel p,
.seller-thread-list p,
.chat-room-header span,
.chat-room-header small {
  color: #4d6680;
}

.chat-faq-panel button,
.seller-thread-list a {
  border-color: rgba(11, 95, 130, 0.18);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(232, 247, 255, 0.84));
  color: #071e38;
}

.chat-faq-panel button:hover,
.seller-thread-list a:hover,
.seller-thread-list a.active {
  border-color: rgba(165, 0, 45, 0.34);
  background: linear-gradient(145deg, rgba(255, 247, 251, 0.98), rgba(224, 245, 255, 0.9));
  color: #7c0828;
}

.chat-bubble {
  border: 1px solid rgba(9, 48, 82, 0.12);
}

.chat-buyer {
  background: linear-gradient(135deg, #0b5f82, #082f52);
  color: #fff;
}

.chat-seller {
  background: linear-gradient(145deg, #fff8fb, #eef9ff);
  color: #071e38;
}

.chat-system {
  background: rgba(165, 0, 45, 0.08);
  color: #071e38;
}

.chat-buyer > span,
.chat-buyer > p,
.chat-buyer > small {
  color: #fff;
}

.chat-seller > span,
.chat-seller > p,
.chat-system > span,
.chat-system > p {
  color: #071e38;
}

.chat-seller > small,
.chat-system > small {
  color: #4d6680;
}

.chat-product-card,
.chat-buyer .chat-product-card,
.chat-seller .chat-product-card,
.chat-system .chat-product-card {
  border-color: rgba(9, 48, 82, 0.14);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(238, 249, 255, 0.9));
  color: #071e38;
  box-shadow: 0 12px 26px rgba(7, 30, 56, 0.08);
}

.chat-product-card strong,
.chat-product-card small,
.chat-product-card b,
.chat-buyer .chat-product-card strong,
.chat-buyer .chat-product-card small,
.chat-buyer .chat-product-card b {
  color: #071e38;
  opacity: 1;
}

.chat-product-card small,
.chat-buyer .chat-product-card small {
  color: #4d6680;
}

.chat-product-card b,
.chat-buyer .chat-product-card b {
  color: #a5002d;
}

.chat-product-link {
  background: linear-gradient(135deg, #a5002d, #c91852);
  color: #fff;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --ink: #f5fbff;
  --paper: #06172c;
  --sand: #0a2747;
  --cream: #0d3155;
  --copper: #ff3a72;
  --ember: #c5093f;
  --teal: #7ed8ff;
  --indigo: #dff5ff;
  --gold: #8edcff;
  --muted: #b8d2e8;
  --line: rgba(126, 216, 255, 0.22);
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.56);
}

html[data-theme="dark"] body {
  background:
    linear-gradient(90deg, rgba(126, 216, 255, 0.055) 1px, transparent 1px),
    linear-gradient(180deg, rgba(126, 216, 255, 0.04) 1px, transparent 1px),
    linear-gradient(135deg, #050b18 0%, #071d36 52%, #27071f 100%);
  background-size: 38px 38px, 38px 38px, auto;
  color: #f5fbff;
}

html[data-theme="dark"] .main-header,
html[data-theme="dark"] .logged-in-header {
  border-color: rgba(126, 216, 255, 0.18);
  background: linear-gradient(145deg, rgba(19, 9, 24, 0.96), rgba(7, 27, 52, 0.94));
  color: #f5fbff;
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.38);
}

html[data-theme="dark"] .brand strong,
html[data-theme="dark"] .logged-in-header .brand strong,
html[data-theme="dark"] .app-sidebar-brand strong,
html[data-theme="dark"] .sidebar-account strong,
html[data-theme="dark"] .sidebar-nav a,
html[data-theme="dark"] .sidebar-actions .theme-toggle,
html[data-theme="dark"] .sidebar-logout {
  color: #f5fbff;
}

html[data-theme="dark"] .brand small,
html[data-theme="dark"] .logged-in-header .brand small,
html[data-theme="dark"] .app-sidebar-brand span,
html[data-theme="dark"] .sidebar-account span,
html[data-theme="dark"] .sidebar-account small {
  color: #8edcff;
}

html[data-theme="dark"] .app-sidebar,
html[data-theme="dark"] .catalog-hero,
html[data-theme="dark"] .admin-hero,
html[data-theme="dark"] .detail-layout,
html[data-theme="dark"] .checkout-layout,
html[data-theme="dark"] .chat-layout,
html[data-theme="dark"] .seller-chat-layout,
html[data-theme="dark"] .order-detail,
html[data-theme="dark"] .form-panel,
html[data-theme="dark"] .summary-card,
html[data-theme="dark"] .metric-card,
html[data-theme="dark"] .report-panel,
html[data-theme="dark"] .product-detail-card {
  border-color: rgba(126, 216, 255, 0.2);
  background: linear-gradient(145deg, rgba(11, 36, 66, 0.96), rgba(8, 24, 46, 0.95));
  color: #f5fbff;
}

html[data-theme="dark"] .sidebar-nav a,
html[data-theme="dark"] .sidebar-actions .theme-toggle,
html[data-theme="dark"] .sidebar-account,
html[data-theme="dark"] .chat-faq-panel button,
html[data-theme="dark"] .seller-thread-list a {
  border-color: rgba(126, 216, 255, 0.2);
  background: rgba(13, 49, 85, 0.62);
}

html[data-theme="dark"] .sidebar-nav a:hover,
html[data-theme="dark"] .sidebar-nav a.active,
html[data-theme="dark"] .seller-thread-list a:hover,
html[data-theme="dark"] .seller-thread-list a.active,
html[data-theme="dark"] .chat-faq-panel button:hover {
  border-color: rgba(126, 216, 255, 0.34);
  background: linear-gradient(135deg, #f01857, #970a35);
  color: #fff;
  box-shadow: 0 14px 32px rgba(240, 24, 87, 0.24);
}

html[data-theme="dark"] .sidebar-icon {
  background: rgba(126, 216, 255, 0.14);
  color: #8edcff;
}

html[data-theme="dark"] .sidebar-nav a.active .sidebar-icon,
html[data-theme="dark"] .sidebar-nav a:hover .sidebar-icon {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

html[data-theme="dark"] body.has-app-sidebar .logged-in-header .sidebar-navbar-toggle {
  border-color: rgba(126, 216, 255, 0.28);
  background: linear-gradient(145deg, #0b2442, #0d3155);
  color: #8edcff;
  box-shadow:
    0 14px 30px rgba(0, 0, 0, 0.36),
    0 0 0 1px rgba(126, 216, 255, 0.08) inset;
}

html[data-theme="dark"] body.has-app-sidebar .logged-in-header .sidebar-navbar-toggle:hover {
  border-color: rgba(255, 58, 114, 0.5);
  background: linear-gradient(145deg, #102f55, #171326);
  color: #f5fbff;
}

html[data-theme="dark"] body.has-app-sidebar .logged-in-header .sidebar-navbar-toggle[aria-expanded="true"] {
  border-color: rgba(126, 216, 255, 0.42);
  background: linear-gradient(135deg, #f01857, #9f0b37);
  color: #fff;
}

html[data-theme="dark"] .chat-faq-panel,
html[data-theme="dark"] .seller-thread-list,
html[data-theme="dark"] .chat-room {
  border-color: rgba(126, 216, 255, 0.2);
  background: linear-gradient(145deg, rgba(11, 36, 66, 0.96), rgba(8, 24, 46, 0.95));
  color: #f5fbff;
}

html[data-theme="dark"] .chat-room-header,
html[data-theme="dark"] .chat-compose {
  border-color: rgba(126, 216, 255, 0.18);
  background: rgba(6, 23, 44, 0.52);
}

html[data-theme="dark"] .chat-faq-panel h2,
html[data-theme="dark"] .seller-thread-list h2,
html[data-theme="dark"] .chat-room-header strong,
html[data-theme="dark"] .chat-compose label {
  color: #f5fbff;
}

html[data-theme="dark"] .chat-faq-panel p,
html[data-theme="dark"] .seller-thread-list p,
html[data-theme="dark"] .chat-room-header span,
html[data-theme="dark"] .chat-room-header small {
  color: #b8d2e8;
}

html[data-theme="dark"] .chat-buyer {
  border-color: rgba(255, 58, 114, 0.34);
  background: linear-gradient(135deg, #c5093f, #7e082d);
  color: #fff;
}

html[data-theme="dark"] .chat-seller {
  border-color: rgba(126, 216, 255, 0.22);
  background: linear-gradient(145deg, rgba(13, 49, 85, 0.92), rgba(6, 23, 44, 0.94));
  color: #f5fbff;
}

html[data-theme="dark"] .chat-system {
  border-color: rgba(126, 216, 255, 0.2);
  background: rgba(126, 216, 255, 0.1);
  color: #f5fbff;
}

html[data-theme="dark"] .chat-buyer > span,
html[data-theme="dark"] .chat-buyer > p,
html[data-theme="dark"] .chat-buyer > small,
html[data-theme="dark"] .chat-seller > span,
html[data-theme="dark"] .chat-seller > p,
html[data-theme="dark"] .chat-system > span,
html[data-theme="dark"] .chat-system > p {
  color: #fff;
}

html[data-theme="dark"] .chat-seller > small,
html[data-theme="dark"] .chat-system > small {
  color: #b8d2e8;
}

html[data-theme="dark"] .chat-product-card,
html[data-theme="dark"] .chat-buyer .chat-product-card,
html[data-theme="dark"] .chat-seller .chat-product-card,
html[data-theme="dark"] .chat-system .chat-product-card {
  border-color: rgba(126, 216, 255, 0.28);
  background: linear-gradient(145deg, rgba(13, 49, 85, 0.96), rgba(6, 23, 44, 0.98));
  color: #f5fbff;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.24);
}

html[data-theme="dark"] .chat-product-card strong,
html[data-theme="dark"] .chat-product-card small,
html[data-theme="dark"] .chat-product-card b,
html[data-theme="dark"] .chat-buyer .chat-product-card strong,
html[data-theme="dark"] .chat-buyer .chat-product-card small,
html[data-theme="dark"] .chat-buyer .chat-product-card b {
  color: #f5fbff;
  opacity: 1;
}

html[data-theme="dark"] .chat-product-card small,
html[data-theme="dark"] .chat-buyer .chat-product-card small {
  color: #b8d2e8;
}

html[data-theme="dark"] .chat-product-card b,
html[data-theme="dark"] .chat-buyer .chat-product-card b {
  color: #8edcff;
}

html[data-theme="dark"] .chat-product-link,
html[data-theme="dark"] .primary-button,
html[data-theme="dark"] .solid-button,
html[data-theme="dark"] .catalog-search button,
html[data-theme="dark"] .buy-now-button {
  background: linear-gradient(135deg, #f01857, #9f0b37);
  color: #fff;
}

html[data-theme="dark"] input,
html[data-theme="dark"] textarea,
html[data-theme="dark"] select {
  border-color: rgba(126, 216, 255, 0.24);
  background-color: rgba(6, 23, 44, 0.88);
  color: #f5fbff;
}

html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] textarea::placeholder {
  color: rgba(184, 210, 232, 0.72);
}

@media (max-width: 560px) {
  body.has-app-sidebar .logged-in-header .sidebar-navbar-toggle {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
    border-radius: 13px;
  }

  body.has-app-sidebar .logged-in-header .sidebar-navbar-toggle span:nth-child(1) {
    top: 16px;
  }

  body.has-app-sidebar .logged-in-header .sidebar-navbar-toggle span:nth-child(2) {
    top: 23px;
  }

  body.has-app-sidebar .logged-in-header .sidebar-navbar-toggle span:nth-child(3) {
    top: 30px;
  }

  body.has-app-sidebar .logged-in-header .sidebar-navbar-toggle[aria-expanded="true"] span:nth-child(1),
  body.has-app-sidebar .logged-in-header .sidebar-navbar-toggle[aria-expanded="true"] span:nth-child(3) {
    top: 23px;
  }
}

/* Keep the sidebar control as one calm hamburger button in both states. */
body.has-app-sidebar .logged-in-header .sidebar-navbar-toggle,
body.has-app-sidebar .logged-in-header .sidebar-navbar-toggle[aria-expanded="true"] {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  border: 1px solid rgba(165, 0, 45, 0.22);
  border-radius: 14px;
  background: linear-gradient(145deg, #fbfdff, #edf8ff);
  color: #08233f;
  box-shadow:
    0 12px 26px rgba(7, 30, 56, 0.12),
    0 0 0 1px rgba(255, 255, 255, 0.7) inset;
}

body.has-app-sidebar .logged-in-header .sidebar-navbar-toggle:hover,
body.has-app-sidebar .logged-in-header .sidebar-navbar-toggle[aria-expanded="true"]:hover {
  border-color: rgba(165, 0, 45, 0.38);
  background: linear-gradient(145deg, #ffffff, #e5f6ff);
  color: #a5002d;
  box-shadow:
    0 16px 34px rgba(7, 30, 56, 0.16),
    0 0 0 4px rgba(126, 216, 255, 0.16);
}

body.has-app-sidebar .logged-in-header .sidebar-navbar-toggle span,
body.has-app-sidebar .logged-in-header .sidebar-navbar-toggle[aria-expanded="true"] span {
  left: 50%;
  width: 22px;
  height: 2px;
  background: currentColor;
  opacity: 1;
  transform: translateX(-50%);
}

body.has-app-sidebar .logged-in-header .sidebar-navbar-toggle span:nth-child(1),
body.has-app-sidebar .logged-in-header .sidebar-navbar-toggle[aria-expanded="true"] span:nth-child(1) {
  top: 18px;
  transform: translateX(-50%);
}

body.has-app-sidebar .logged-in-header .sidebar-navbar-toggle span:nth-child(2),
body.has-app-sidebar .logged-in-header .sidebar-navbar-toggle[aria-expanded="true"] span:nth-child(2) {
  top: 25px;
  width: 18px;
  opacity: 1;
  transform: translateX(-50%);
}

body.has-app-sidebar .logged-in-header .sidebar-navbar-toggle span:nth-child(3),
body.has-app-sidebar .logged-in-header .sidebar-navbar-toggle[aria-expanded="true"] span:nth-child(3) {
  top: 32px;
  transform: translateX(-50%);
}

html[data-theme="dark"] body.has-app-sidebar .logged-in-header .sidebar-navbar-toggle,
html[data-theme="dark"] body.has-app-sidebar .logged-in-header .sidebar-navbar-toggle[aria-expanded="true"] {
  border-color: rgba(126, 216, 255, 0.32);
  background: linear-gradient(145deg, #0b2442, #0d3155);
  color: #8edcff;
  box-shadow:
    0 14px 30px rgba(0, 0, 0, 0.36),
    0 0 0 1px rgba(126, 216, 255, 0.12) inset;
}

html[data-theme="dark"] body.has-app-sidebar .logged-in-header .sidebar-navbar-toggle:hover,
html[data-theme="dark"] body.has-app-sidebar .logged-in-header .sidebar-navbar-toggle[aria-expanded="true"]:hover {
  border-color: rgba(255, 58, 114, 0.48);
  background: linear-gradient(145deg, #102f55, #171326);
  color: #f5fbff;
  box-shadow:
    0 16px 36px rgba(0, 0, 0, 0.42),
    0 0 0 4px rgba(126, 216, 255, 0.12);
}

@media (max-width: 560px) {
  body.has-app-sidebar .logged-in-header .sidebar-navbar-toggle,
  body.has-app-sidebar .logged-in-header .sidebar-navbar-toggle[aria-expanded="true"] {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
    border-radius: 13px;
  }

  body.has-app-sidebar .logged-in-header .sidebar-navbar-toggle span:nth-child(1),
  body.has-app-sidebar .logged-in-header .sidebar-navbar-toggle[aria-expanded="true"] span:nth-child(1) {
    top: 16px;
  }

  body.has-app-sidebar .logged-in-header .sidebar-navbar-toggle span:nth-child(2),
  body.has-app-sidebar .logged-in-header .sidebar-navbar-toggle[aria-expanded="true"] span:nth-child(2) {
    top: 23px;
  }

  body.has-app-sidebar .logged-in-header .sidebar-navbar-toggle span:nth-child(3),
  body.has-app-sidebar .logged-in-header .sidebar-navbar-toggle[aria-expanded="true"] span:nth-child(3) {
    top: 30px;
  }
}

/* Final navbar spacing: keep the toggle on the right without hugging the edge. */
body.has-app-sidebar .logged-in-header {
  padding: 12px 26px 12px 18px;
  gap: 18px;
}

body.has-app-sidebar .logged-in-header .sidebar-navbar-toggle,
body.has-app-sidebar .logged-in-header .sidebar-navbar-toggle[aria-expanded="true"] {
  margin-right: 0;
}

@media (min-width: 1181px) {
  body.has-app-sidebar .logged-in-header {
    width: min(1168px, calc(100vw - 344px));
  }

  body.has-app-sidebar.sidebar-collapsed .logged-in-header {
    width: min(1340px, calc(100vw - 76px));
  }
}

@media (max-width: 1180px) {
  body.has-app-sidebar .logged-in-header {
    padding: 10px 18px 10px 14px;
  }
}

@media (max-width: 560px) {
  body.has-app-sidebar .logged-in-header {
    padding: 10px 14px 10px 12px;
  }
}

/* Simpler checkout form and order summary. */
.checkout-form h1 {
  margin: 0;
  font-size: clamp(2.6rem, 5.6vw, 5rem);
}

.checkout-form > .eyebrow {
  margin-bottom: -6px;
}

.checkout-form-card {
  display: grid;
  gap: 18px;
  border: 1px solid rgba(9, 48, 82, 0.14);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.88), rgba(238, 249, 255, 0.72));
  padding: clamp(18px, 2.4vw, 26px);
  box-shadow: 0 18px 46px rgba(7, 30, 56, 0.09);
}

.checkout-card-head {
  display: grid;
  gap: 4px;
}

.checkout-card-head span {
  color: #a5002d;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.checkout-card-head p {
  margin: 0;
  color: #4d6680;
  font-weight: 800;
  line-height: 1.45;
}

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

.checkout-field-wide {
  grid-column: 1 / -1;
}

.checkout-form-card label,
.checkout-form-card .delivery-location-picker,
.checkout-form-card .payment-method-group {
  min-width: 0;
}

.checkout-form-card label {
  display: grid;
  gap: 8px;
  color: #071e38;
  font-weight: 900;
}

.checkout-form-card input,
.checkout-form-card textarea,
.checkout-form-card select {
  width: 100%;
  border: 1px solid rgba(9, 48, 82, 0.14);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.9);
  padding: 14px 16px;
  color: #071e38;
  font-weight: 800;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.checkout-form-card textarea {
  resize: vertical;
}

.checkout-form-card .form-hint {
  margin-top: 2px;
}

.checkout-form-card .delivery-location-picker {
  display: grid;
  gap: 12px;
  border-top: 1px solid rgba(9, 48, 82, 0.1);
  padding-top: 16px;
}

.checkout-form-card .location-actions {
  gap: 10px;
}

.checkout-form-card .payment-options {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.checkout-form-card .payment-option {
  min-height: 0;
  border-color: rgba(9, 48, 82, 0.14);
  background: rgba(255, 255, 255, 0.62);
  padding: 14px;
}

.checkout-form-card .payment-option:has(input:checked) {
  border-color: rgba(165, 0, 45, 0.44);
  background: linear-gradient(145deg, rgba(255, 246, 250, 0.96), rgba(232, 247, 255, 0.82));
  box-shadow: 0 0 0 3px rgba(165, 0, 45, 0.07);
}

.checkout-form-card .payment-panel {
  border-color: rgba(9, 48, 82, 0.13);
  background: rgba(255, 255, 255, 0.56);
}

.checkout-summary-simple {
  gap: 14px;
  padding: 18px;
}

.checkout-summary-simple > div {
  display: block;
  border-top: 0;
  padding-top: 0;
}

.checkout-summary-head {
  display: grid !important;
  gap: 2px;
}

.checkout-summary-head span {
  color: #a5002d;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.checkout-summary-head h2 {
  margin: 0;
  font-size: 1.75rem;
}

.checkout-summary-items {
  display: grid !important;
  gap: 8px;
}

.checkout-summary-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  border: 1px solid rgba(9, 48, 82, 0.1);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.58);
  padding: 12px;
}

.checkout-summary-item span,
.checkout-summary-item strong,
.checkout-summary-item small,
.checkout-summary-item b {
  min-width: 0;
}

.checkout-summary-item strong,
.checkout-summary-item small {
  display: block;
}

.checkout-summary-item strong {
  color: #071e38;
  line-height: 1.25;
}

.checkout-summary-item small {
  margin-top: 3px;
  color: #4d6680;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.35;
}

.checkout-summary-item b {
  color: #a5002d;
  white-space: nowrap;
}

.checkout-summary-lines {
  display: grid !important;
  gap: 8px;
  border-top: 1px solid rgba(9, 48, 82, 0.12) !important;
  padding-top: 12px !important;
}

.checkout-summary-lines > div,
.checkout-summary-simple .summary-total {
  display: flex !important;
  justify-content: space-between;
  gap: 14px;
}

.checkout-summary-lines > div span,
.checkout-summary-simple .summary-total span {
  color: #4d6680;
  font-weight: 800;
}

.checkout-summary-lines > div strong,
.checkout-summary-simple .summary-total strong {
  color: #071e38;
  text-align: right;
}

.checkout-summary-simple .summary-total {
  align-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, #a5002d, #c91852);
  padding: 14px 16px;
  color: #fff;
}

.checkout-summary-simple .summary-total span,
.checkout-summary-simple .summary-total strong {
  color: #fff;
}

.checkout-summary-simple .summary-total strong {
  font-size: 1.2rem;
}

.checkout-summary-simple p[data-summary-fee-note] {
  margin: 0;
  border-radius: 10px;
  background: rgba(126, 216, 255, 0.16);
  padding: 10px 12px;
  color: #4d6680;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.45;
}

html[data-theme="dark"] .checkout-form-card,
html[data-theme="dark"] .checkout-summary-simple {
  border-color: rgba(126, 216, 255, 0.2);
  background: linear-gradient(145deg, rgba(11, 36, 66, 0.96), rgba(8, 24, 46, 0.95));
  color: #f5fbff;
}

html[data-theme="dark"] .checkout-card-head span,
html[data-theme="dark"] .checkout-summary-head span {
  color: #8edcff;
}

html[data-theme="dark"] .checkout-card-head p,
html[data-theme="dark"] .checkout-summary-item small,
html[data-theme="dark"] .checkout-summary-lines > div span,
html[data-theme="dark"] .checkout-summary-simple p[data-summary-fee-note] {
  color: #b8d2e8;
}

html[data-theme="dark"] .checkout-form-card label,
html[data-theme="dark"] .checkout-summary-item strong,
html[data-theme="dark"] .checkout-summary-lines > div strong {
  color: #f5fbff;
}

html[data-theme="dark"] .checkout-form-card input,
html[data-theme="dark"] .checkout-form-card textarea,
html[data-theme="dark"] .checkout-form-card select,
html[data-theme="dark"] .checkout-form-card .payment-option,
html[data-theme="dark"] .checkout-summary-item,
html[data-theme="dark"] .checkout-form-card .payment-panel {
  border-color: rgba(126, 216, 255, 0.2);
  background: rgba(13, 49, 85, 0.62);
  color: #f5fbff;
}

html[data-theme="dark"] .checkout-form-card .payment-option:has(input:checked) {
  border-color: rgba(255, 58, 114, 0.46);
  background: linear-gradient(145deg, rgba(151, 10, 53, 0.42), rgba(13, 49, 85, 0.86));
}

html[data-theme="dark"] .checkout-summary-item b {
  color: #8edcff;
}

html[data-theme="dark"] .checkout-summary-simple .summary-total {
  background: linear-gradient(135deg, #f01857, #9f0b37);
}

html[data-theme="dark"] .checkout-summary-simple p[data-summary-fee-note] {
  background: rgba(126, 216, 255, 0.1);
}

@media (max-width: 860px) {
  .checkout-form h1 {
    font-size: clamp(2.25rem, 12vw, 3.4rem);
  }

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

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

  .checkout-summary-item b {
    white-space: normal;
  }
}

/* Cleaner checkout location picker. */
.location-map-modal {
  z-index: 1400;
  align-items: center;
  justify-items: center;
  overflow-y: auto;
  padding: clamp(12px, 3vw, 24px);
}

.location-map-dialog {
  grid-template-rows: auto auto minmax(260px, 1fr) auto;
  width: min(900px, calc(100vw - 32px));
  max-height: min(700px, calc(100dvh - 32px));
  overflow-x: hidden;
  overflow-y: auto;
  border-color: rgba(165, 0, 45, 0.15);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(250, 253, 255, 0.98), rgba(232, 247, 255, 0.96));
  padding: clamp(12px, 2vw, 18px);
}

.location-map-head {
  border-bottom: 1px solid rgba(9, 48, 82, 0.1);
  padding-bottom: 10px;
}

.location-map-head strong {
  color: #071e38;
  line-height: 1.2;
}

.location-map-head small {
  color: #4d6680;
  line-height: 1.4;
}

.location-map-tools {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto auto;
  align-items: stretch;
}

.location-search-box {
  min-width: 0;
}

.location-search-box input,
.location-map-tools .ghost-button {
  min-height: 48px;
}

.location-map-canvas {
  height: clamp(280px, 42dvh, 420px);
  min-height: 0;
  border-radius: 12px;
}

.location-map-canvas.is-location-locked {
  border-color: rgba(13, 93, 134, 0.42);
  box-shadow: 0 0 0 4px rgba(126, 216, 255, 0.18);
}

.location-map-canvas.is-location-locked::after {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 4;
  border: 1px solid rgba(13, 93, 134, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  padding: 7px 12px;
  color: #0d5d86;
  content: "Titik terkunci";
  font-size: 0.82rem;
  font-weight: 900;
}

.location-map-canvas.is-location-locked .location-map-pin {
  background: #0d5d86;
}

.location-map-canvas.is-location-locked .location-map-pin::after {
  background: #7ed8ff;
}

.location-map-foot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  border: 1px solid rgba(9, 48, 82, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  padding: 12px;
}

.location-map-foot span {
  color: #071e38;
  font-size: 0.96rem;
  font-weight: 900;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.location-map-foot .primary-button {
  min-height: 48px;
  white-space: nowrap;
}

.location-map-foot .primary-button:disabled {
  cursor: wait;
  opacity: 0.76;
}

html[data-theme="dark"] .location-map-dialog {
  border-color: rgba(126, 216, 255, 0.2);
  background: linear-gradient(145deg, rgba(11, 36, 66, 0.98), rgba(36, 8, 31, 0.97));
}

html[data-theme="dark"] .location-map-head {
  border-bottom-color: rgba(126, 216, 255, 0.16);
}

html[data-theme="dark"] .location-map-head strong,
html[data-theme="dark"] .location-map-foot span {
  color: #f5fbff;
}

html[data-theme="dark"] .location-map-head small {
  color: #b8d2e8;
}

html[data-theme="dark"] .location-map-foot {
  border-color: rgba(126, 216, 255, 0.18);
  background: rgba(9, 30, 56, 0.72);
}

html[data-theme="dark"] .location-map-canvas.is-location-locked::after {
  border-color: rgba(126, 216, 255, 0.3);
  background: rgba(9, 30, 56, 0.86);
  color: #8edcff;
}

@media (max-width: 980px) {
  .location-map-tools {
    grid-template-columns: minmax(0, 1fr) auto auto;
  }

  .location-search-box {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .location-map-modal {
    align-items: start;
    padding: 10px;
  }

  .location-map-dialog {
    width: calc(100vw - 20px);
    max-height: calc(100dvh - 20px);
    gap: 10px;
    padding: 10px;
  }

  .location-map-head,
  .location-map-foot {
    align-items: stretch;
  }

  .location-map-tools,
  .location-search-box,
  .location-map-foot {
    grid-template-columns: 1fr;
  }

  .location-map-tools .ghost-button {
    width: 100%;
  }

  .location-map-canvas {
    height: min(315px, 42dvh);
  }

  .location-map-foot .primary-button {
    width: 100%;
  }
}

/* Cleaner radio choice cards for delivery area and payment. */
.checkout-form-card .payment-method-group {
  display: grid;
  gap: 14px;
}

.checkout-form-card .payment-method-group > span {
  color: #3e5874;
  font-size: 1.02rem;
  font-weight: 900;
}

.checkout-form-card .payment-options,
.checkout-form-card .delivery-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.checkout-form-card .payment-option {
  position: relative;
  display: grid !important;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: start;
  min-height: 126px;
  gap: 14px !important;
  overflow: hidden;
  border: 1px solid rgba(9, 48, 82, 0.13) !important;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(241, 250, 255, 0.72));
  padding: 20px;
  color: #071e38 !important;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.checkout-form-card .payment-option:hover {
  border-color: rgba(165, 0, 45, 0.28) !important;
  box-shadow: 0 14px 32px rgba(7, 30, 56, 0.08);
  transform: translateY(-1px);
}

.checkout-form-card .payment-option input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 20px !important;
  height: 20px;
  min-width: 20px;
  margin: 2px 0 0;
  border: 2px solid rgba(9, 48, 82, 0.34);
  border-radius: 999px;
  background: #fff;
  padding: 0;
  box-shadow: inset 0 0 0 5px #fff;
}

.checkout-form-card .payment-option input[type="radio"]:checked {
  border-color: #0d6b8f;
  background: #0d6b8f;
}

.checkout-form-card .payment-option span {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.checkout-form-card .payment-option strong {
  color: #071e38;
  font-size: 1.05rem;
  line-height: 1.25;
}

.checkout-form-card .payment-option small {
  color: #4d6680;
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.5;
}

.checkout-form-card .payment-option:has(input:checked) {
  border-color: rgba(165, 0, 45, 0.4) !important;
  background: linear-gradient(145deg, rgba(255, 247, 251, 0.98), rgba(230, 248, 255, 0.88));
  box-shadow: 0 0 0 3px rgba(165, 0, 45, 0.07), 0 16px 34px rgba(7, 30, 56, 0.09);
}

html[data-theme="dark"] .checkout-form-card .payment-method-group > span {
  color: #b8d2e8;
}

html[data-theme="dark"] .checkout-form-card .payment-option {
  border-color: rgba(126, 216, 255, 0.18) !important;
  background: linear-gradient(145deg, rgba(12, 42, 75, 0.86), rgba(17, 27, 55, 0.8));
  color: #f5fbff !important;
}

html[data-theme="dark"] .checkout-form-card .payment-option:hover {
  border-color: rgba(126, 216, 255, 0.38) !important;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.22);
}

html[data-theme="dark"] .checkout-form-card .payment-option input[type="radio"] {
  border-color: rgba(184, 210, 232, 0.72);
  background: rgba(8, 23, 43, 0.95);
  box-shadow: inset 0 0 0 5px rgba(8, 23, 43, 0.95);
}

html[data-theme="dark"] .checkout-form-card .payment-option input[type="radio"]:checked {
  border-color: #8edcff;
  background: #8edcff;
}

html[data-theme="dark"] .checkout-form-card .payment-option strong {
  color: #f5fbff;
}

html[data-theme="dark"] .checkout-form-card .payment-option small {
  color: #b8d2e8;
}

html[data-theme="dark"] .checkout-form-card .payment-option:has(input:checked) {
  border-color: rgba(255, 58, 114, 0.52) !important;
  background: linear-gradient(145deg, rgba(126, 216, 255, 0.14), rgba(151, 10, 53, 0.34));
  box-shadow: 0 0 0 3px rgba(126, 216, 255, 0.08), 0 18px 38px rgba(0, 0, 0, 0.26);
}

@media (max-width: 760px) {
  .checkout-form-card .payment-options,
  .checkout-form-card .delivery-options {
    grid-template-columns: 1fr;
  }

  .checkout-form-card .payment-option {
    min-height: 0;
    padding: 16px;
  }
}

/* Final catalog polish: clearer product image uploads, Hasil Kebun quantity picker, and compact mobile cards. */
.upload-preview-field {
  display: grid;
  gap: 10px;
}

.upload-preview-field input[type="file"],
.gallery-upload-box input[type="file"] {
  width: 100%;
  border: 1px dashed rgba(9, 48, 82, 0.28);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.7);
  padding: 12px;
  color: #071e38;
  font-weight: 800;
}

.upload-preview-card {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  border: 1px solid rgba(9, 48, 82, 0.12);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(230, 248, 255, 0.72));
  padding: 12px;
}

.upload-preview-card-compact {
  margin-top: 8px;
}

.upload-preview-thumb {
  position: relative;
  display: grid;
  width: 82px;
  aspect-ratio: 1;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(165, 0, 45, 0.16);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(126, 216, 255, 0.24), rgba(165, 0, 45, 0.08)),
    rgba(255, 255, 255, 0.76);
}

.upload-preview-thumb::before {
  content: "IMG";
  color: rgba(7, 30, 56, 0.42);
  font-size: 0.76rem;
  font-weight: 900;
}

.upload-preview-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.upload-preview-card strong,
.upload-preview-card small {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.upload-preview-card strong {
  color: #071e38;
  font-size: 1rem;
}

.upload-preview-card small {
  color: #4d6680;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.5;
}

.harvest-quantity-modal {
  position: fixed;
  inset: 0;
  z-index: 220;
  display: none;
  place-items: center;
  overflow-y: auto;
  padding: 16px;
}

.harvest-quantity-modal.is-open {
  display: grid;
}

.is-harvest-quantity-open {
  overflow: hidden;
}

.harvest-quantity-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 30, 56, 0.58);
  backdrop-filter: blur(8px);
}

.harvest-quantity-panel {
  position: relative;
  display: grid;
  width: min(430px, 100%);
  gap: 14px;
  border: 1px solid rgba(165, 0, 45, 0.2);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(232, 248, 255, 0.94));
  padding: 24px;
  box-shadow: 0 26px 70px rgba(7, 30, 56, 0.28);
}

.harvest-quantity-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(165, 0, 45, 0.18);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.82);
  color: #071e38;
  font-weight: 900;
}

.harvest-quantity-panel h2 {
  margin: 0 46px 0 0;
  color: #071e38;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.55rem, 4vw, 2.1rem);
  line-height: 1.1;
}

.harvest-quantity-meta {
  color: #4d6680;
  font-size: 0.95rem;
  font-weight: 900;
}

.harvest-quantity-stepper {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 52px;
  overflow: hidden;
  border: 1px solid rgba(9, 48, 82, 0.15);
  border-radius: 14px;
  background: #fff;
}

.harvest-quantity-stepper button,
.harvest-quantity-stepper input {
  min-height: 56px;
  border: 0;
}

.harvest-quantity-stepper button {
  background: linear-gradient(135deg, #b0003b, #8f1234);
  color: #fff;
  font-size: 1.35rem;
  font-weight: 900;
}

.harvest-quantity-stepper input {
  width: 100%;
  background: transparent;
  color: #071e38;
  font-size: 1.35rem;
  font-weight: 900;
  text-align: center;
}

html[data-theme="dark"] .upload-preview-field input[type="file"],
html[data-theme="dark"] .gallery-upload-box input[type="file"] {
  border-color: rgba(126, 216, 255, 0.24);
  background: rgba(9, 30, 56, 0.78);
  color: #f5fbff;
}

html[data-theme="dark"] .upload-preview-card,
html[data-theme="dark"] .harvest-quantity-panel {
  border-color: rgba(126, 216, 255, 0.22);
  background: linear-gradient(145deg, rgba(9, 30, 56, 0.98), rgba(53, 10, 40, 0.94));
}

html[data-theme="dark"] .upload-preview-card strong,
html[data-theme="dark"] .harvest-quantity-panel h2,
html[data-theme="dark"] .harvest-quantity-close,
html[data-theme="dark"] .harvest-quantity-stepper input {
  color: #f5fbff;
}

html[data-theme="dark"] .upload-preview-card small,
html[data-theme="dark"] .harvest-quantity-meta {
  color: #b8d2e8;
}

html[data-theme="dark"] .harvest-quantity-close,
html[data-theme="dark"] .harvest-quantity-stepper {
  border-color: rgba(126, 216, 255, 0.22);
  background: rgba(8, 23, 43, 0.92);
}

@media (max-width: 860px) {
  .landing-page {
    overflow: visible;
  }

  .landing-brand-row {
    width: calc(100% - 28px);
    min-height: 100px;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    padding: 10px 0;
  }

  .landing-brand {
    gap: 12px;
  }

  .landing-brand img {
    width: clamp(58px, 12vw, 78px);
    height: clamp(58px, 12vw, 78px);
  }

  .landing-brand strong {
    font-size: clamp(1.8rem, 8.4vw, 3rem);
    line-height: 0.98;
  }

  .landing-brand small,
  .landing-search {
    display: none;
  }

  .landing-menu-toggle {
    display: flex;
    width: 74px;
    height: 74px;
    border-radius: 12px;
  }

  .landing-hero {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    min-height: 0 !important;
    overflow: visible !important;
    border-bottom: 0;
    background: linear-gradient(180deg, rgba(236, 249, 255, 0.96), rgba(246, 252, 255, 0.98)) !important;
    color: #071e38 !important;
  }

  .landing-hero::after {
    display: none;
  }

  .landing-hero-copy {
    width: 100% !important;
    max-width: none !important;
    align-content: start;
    padding: 34px 24px 20px !important;
  }

  .landing-pill {
    padding: 9px 16px;
    background: #a5002d;
    color: #fff;
    font-size: 0.82rem;
  }

  .landing-hero h1 {
    max-width: 100% !important;
    margin: 20px 0 18px !important;
    color: #071e38 !important;
    font-size: clamp(2.45rem, 11vw, 4.2rem) !important;
    line-height: 1 !important;
  }

  .landing-hero h1 span {
    color: #a5002d !important;
  }

  .landing-hero p {
    max-width: 100% !important;
    color: #093052 !important;
    font-size: clamp(1rem, 3.6vw, 1.14rem) !important;
    line-height: 1.62 !important;
  }

  .landing-hero-actions {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    margin-top: 22px !important;
  }

  .landing-primary,
  .landing-link {
    width: 100%;
    min-height: 54px;
    padding-inline: 16px;
    border-radius: 10px;
    font-size: 0.98rem;
  }

  .landing-hero-media {
    min-height: clamp(300px, 76vw, 440px) !important;
    border-left: 0 !important;
    border-top: 6px solid #d7a34b;
    clip-path: none !important;
  }

  .landing-hero-main-image {
    display: block;
    min-height: clamp(300px, 76vw, 440px) !important;
    height: 100% !important;
    object-fit: cover;
  }

  html[data-theme="dark"] .landing-hero {
    background: linear-gradient(145deg, rgba(8, 28, 54, 0.98), rgba(38, 9, 34, 0.96)) !important;
    color: #f5fbff !important;
  }

  html[data-theme="dark"] .landing-hero h1 {
    color: #f5fbff !important;
  }

  html[data-theme="dark"] .landing-hero h1 span {
    color: #ff3a72 !important;
  }

  html[data-theme="dark"] .landing-hero p {
    color: #b8d2e8 !important;
  }

  html[data-theme="dark"] .landing-pill {
    background: #e91658;
    color: #fff;
  }
}

@media (max-width: 720px) {
  body.has-app-sidebar .product-grid,
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  .product-card {
    border-radius: 10px;
  }

  .product-image {
    aspect-ratio: 1 / 1;
  }

  .product-image span {
    right: 6px;
    bottom: 6px;
    padding: 5px 7px;
    font-size: 0.63rem;
  }

  .product-info {
    gap: 6px !important;
    padding: 9px !important;
  }

  .product-info small,
  .stock-line,
  .product-detail-link {
    font-size: 0.68rem;
    line-height: 1.32;
  }

  .product-info h3 {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.16;
  }

  .product-info p {
    display: -webkit-box;
    overflow: hidden;
    font-size: 0.74rem;
    line-height: 1.36;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .product-bottom {
    gap: 8px !important;
    min-height: 0;
    padding-top: 8px !important;
  }

  .product-bottom > strong {
    font-size: 0.85rem;
    line-height: 1.25;
  }

  .product-actions {
    grid-template-columns: 34px 34px minmax(0, 1fr) !important;
    gap: 5px !important;
  }

  .product-actions .cart-icon-button,
  .product-actions .chat-icon-button {
    width: 34px;
    min-height: 34px;
    border-radius: 8px;
  }

  .product-actions .buy-now-button {
    min-height: 34px;
    padding: 0 7px;
    border-radius: 8px;
    font-size: 0.73rem;
    line-height: 1.1;
  }

  .cart-plus-icon {
    transform: scale(0.82);
  }
}

@media (max-width: 480px) {
  .landing-brand-row {
    width: calc(100% - 24px);
    min-height: 94px;
  }

  .landing-brand img {
    width: 58px;
    height: 58px;
  }

  .landing-brand strong {
    font-size: clamp(1.68rem, 9.2vw, 2.35rem);
  }

  .landing-menu-toggle {
    width: 64px;
    height: 64px;
  }

  .landing-hero-copy {
    padding: 28px 20px 18px !important;
  }

  .landing-hero h1 {
    font-size: clamp(2.25rem, 12vw, 3.2rem) !important;
  }

  .landing-hero-media,
  .landing-hero-main-image {
    min-height: 330px !important;
  }

  .harvest-quantity-panel {
    padding: 20px;
  }

  .upload-preview-card {
    grid-template-columns: 66px minmax(0, 1fr);
  }

  .upload-preview-thumb {
    width: 66px;
  }
}

/* Mobile marketplace pass: one public menu, no cramped brand, compact two-column shopping cards. */
.landing-mobile-menu {
  display: grid;
  width: min(1480px, calc(100% - 44px));
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  margin: 0 auto;
  border-top: 1px solid rgba(240, 189, 90, 0.34);
}

.landing-mobile-menu .landing-nav {
  width: auto;
  margin: 0;
  border-top: 0;
}

.landing-mobile-menu .landing-actions {
  min-width: 0;
}

.site-footer .footer-links {
  display: none !important;
}

.site-footer {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1.15fr);
}

@media (max-width: 1180px) {
  .landing-mobile-menu {
    display: none !important;
  }

  .landing-mobile-menu.is-open {
    display: grid !important;
    width: min(720px, calc(100% - 28px));
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    margin: 0 auto 14px;
    border: 1px solid rgba(9, 48, 82, 0.14);
    border-radius: 18px;
    background: rgba(246, 252, 255, 0.98);
    color: #071e38;
    padding: 12px;
    box-shadow: 0 18px 42px rgba(7, 30, 56, 0.12);
  }

  .landing-mobile-menu .landing-nav,
  .landing-mobile-menu .landing-actions,
  .landing-mobile-menu .landing-actions.is-open {
    display: grid !important;
    width: 100% !important;
    min-width: 0;
    gap: 8px;
    margin: 0 !important;
    border: 0 !important;
    background: transparent !important;
    padding: 0 !important;
    color: inherit !important;
    box-shadow: none !important;
  }

  .landing-mobile-menu .landing-nav {
    order: 1;
  }

  .landing-mobile-menu .landing-actions {
    order: 2;
    padding-top: 8px !important;
    border-top: 1px solid rgba(9, 48, 82, 0.12) !important;
  }

  .landing-mobile-menu .landing-nav > a,
  .landing-mobile-menu .landing-actions .theme-toggle,
  .landing-mobile-menu .landing-login-link,
  .landing-mobile-menu .landing-cart-link {
    display: flex;
    width: 100%;
    min-height: 50px;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    border: 1px solid transparent;
    border-radius: 12px;
    background: transparent;
    color: #071e38 !important;
    padding: 0 14px;
    font-size: 1rem;
    font-weight: 900;
    text-transform: none;
    clip-path: none;
  }

  .landing-mobile-menu .landing-nav > a.active,
  .landing-mobile-menu .landing-nav > a:hover,
  .landing-mobile-menu .landing-actions .theme-toggle:hover,
  .landing-mobile-menu .landing-login-link:hover,
  .landing-mobile-menu .landing-cart-link:hover {
    border-color: rgba(165, 0, 45, 0.16);
    background: linear-gradient(135deg, rgba(165, 0, 45, 0.12), rgba(126, 216, 255, 0.16));
  }

  .landing-mobile-menu .landing-actions .theme-toggle {
    justify-content: flex-start;
  }

  .landing-mobile-menu .landing-login-link {
    border-right: 1px solid transparent;
  }

  .landing-mobile-menu .landing-cart-link b {
    margin-left: auto;
    background: #a5002d;
    color: #fff;
  }

  html[data-theme="dark"] .landing-mobile-menu.is-open {
    border-color: rgba(126, 216, 255, 0.18);
    background: linear-gradient(145deg, rgba(8, 28, 54, 0.98), rgba(53, 10, 40, 0.96));
    color: #f5fbff;
  }

  html[data-theme="dark"] .landing-mobile-menu .landing-actions {
    border-top-color: rgba(126, 216, 255, 0.16) !important;
  }

  html[data-theme="dark"] .landing-mobile-menu .landing-nav > a,
  html[data-theme="dark"] .landing-mobile-menu .landing-actions .theme-toggle,
  html[data-theme="dark"] .landing-mobile-menu .landing-login-link,
  html[data-theme="dark"] .landing-mobile-menu .landing-cart-link {
    color: #f5fbff !important;
  }

  html[data-theme="dark"] .landing-mobile-menu .landing-nav > a.active,
  html[data-theme="dark"] .landing-mobile-menu .landing-nav > a:hover,
  html[data-theme="dark"] .landing-mobile-menu .landing-actions .theme-toggle:hover,
  html[data-theme="dark"] .landing-mobile-menu .landing-login-link:hover,
  html[data-theme="dark"] .landing-mobile-menu .landing-cart-link:hover {
    border-color: rgba(126, 216, 255, 0.24);
    background: linear-gradient(135deg, rgba(255, 58, 114, 0.28), rgba(126, 216, 255, 0.12));
  }
}

@media (max-width: 760px) {
  .landing-brand-row {
    width: calc(100% - 24px) !important;
    min-height: 92px !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
  }

  .landing-brand {
    min-width: 0;
    gap: 10px !important;
  }

  .landing-brand span {
    min-width: 0;
    overflow: hidden;
  }

  .landing-brand strong {
    max-width: 100%;
    overflow: hidden;
    font-size: clamp(1.55rem, 8.2vw, 2.45rem) !important;
    line-height: 1 !important;
    text-overflow: clip;
    white-space: nowrap;
  }

  .landing-brand img {
    width: 56px !important;
    height: 56px !important;
  }

  .landing-menu-toggle {
    width: 62px !important;
    min-width: 62px !important;
    height: 62px !important;
  }

  .result-bar {
    margin-top: 10px;
    font-size: 0.95rem;
  }

  .product-actions {
    grid-template-columns: 32px 32px minmax(0, 1fr) !important;
    align-items: stretch;
  }

  .product-actions .cart-icon-button,
  .product-actions .chat-icon-button,
  .product-actions .buy-now-button {
    min-height: 34px !important;
  }

  .product-actions .cart-icon-button,
  .product-actions .chat-icon-button {
    width: 32px !important;
    border-radius: 9px !important;
  }

  .product-actions .buy-now-button {
    white-space: nowrap !important;
    font-size: 0.72rem !important;
  }

  .product-actions .buy-now-button:disabled {
    opacity: 0.5;
    box-shadow: none;
  }

  .landing-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  .landing-product-card {
    border-radius: 12px;
  }

  .landing-product-card img {
    aspect-ratio: 1 / 1 !important;
  }

  .landing-product-card > div {
    gap: 5px;
    padding: 10px 46px 12px 10px !important;
  }

  .landing-product-card small {
    font-size: 0.68rem;
    line-height: 1.2;
  }

  .landing-product-card h3 {
    min-height: 2.45em;
    font-size: 0.85rem !important;
    line-height: 1.22 !important;
  }

  .landing-product-card p {
    font-size: 0.8rem;
    line-height: 1.25;
  }

  .landing-cart-button {
    right: 10px !important;
    bottom: 10px !important;
    width: 34px !important;
    height: 34px !important;
    border-radius: 10px !important;
  }

  .landing-section-title {
    align-items: start;
    gap: 10px;
  }

  .landing-section-title h2 {
    font-size: clamp(1.85rem, 8vw, 2.6rem) !important;
    line-height: 1.06;
  }

  .landing-section-title a {
    width: fit-content;
    white-space: normal;
  }

  .site-footer {
    width: calc(100% - 24px) !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 22px;
    padding: 26px 24px;
  }
}

@media (max-width: 420px) {
  .landing-brand-row {
    width: calc(100% - 20px) !important;
  }

  .landing-brand img {
    width: 50px !important;
    height: 50px !important;
  }

  .landing-brand strong {
    font-size: clamp(1.34rem, 8vw, 1.85rem) !important;
  }

  .landing-menu-toggle {
    width: 56px !important;
    min-width: 56px !important;
    height: 56px !important;
  }

  .product-grid {
    gap: 8px !important;
  }

  .product-info {
    padding: 8px !important;
  }

  .product-info h3 {
    font-size: 0.84rem !important;
  }

  .product-actions {
    grid-template-columns: 30px 30px minmax(0, 1fr) !important;
    gap: 4px !important;
  }

  .product-actions .cart-icon-button,
  .product-actions .chat-icon-button {
    width: 30px !important;
    min-height: 32px !important;
  }

  .product-actions .buy-now-button {
    min-height: 32px !important;
    padding-inline: 5px !important;
    font-size: 0.66rem !important;
  }
}

/* Final mobile marketplace cleanup: single menu panel, tighter cards, no cramped footer nav. */
body.has-landing-header .landing-header {
  z-index: 90;
}

body.has-landing-header .landing-mobile-menu {
  max-width: 1480px;
}

@media (max-width: 1180px) {
  body.has-landing-header .landing-header {
    display: grid !important;
    gap: 0;
  }

  body.has-landing-header .landing-mobile-menu:not(.is-open) {
    display: none !important;
  }

  body.has-landing-header .landing-mobile-menu.is-open {
    overflow: hidden;
    margin-top: 10px;
  }

  body.has-landing-header .landing-mobile-menu .landing-nav,
  body.has-landing-header .landing-mobile-menu .landing-actions {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  body.has-landing-header .landing-mobile-menu .landing-actions .theme-toggle,
  body.has-landing-header .landing-mobile-menu .landing-login-link,
  body.has-landing-header .landing-mobile-menu .landing-cart-link {
    min-height: 48px;
  }

  body.has-landing-header .landing-mobile-menu .landing-actions .theme-toggle-mark,
  body.has-landing-header .landing-mobile-menu .landing-action-svg,
  body.has-landing-header .landing-mobile-menu .landing-bag-icon {
    flex: 0 0 auto;
  }

  body.has-landing-header .landing-mobile-menu .landing-cart-link strong,
  body.has-landing-header .landing-mobile-menu .landing-login-link strong {
    min-width: 0;
  }
}

@media (max-width: 760px) {
  body.has-landing-header .landing-header {
    padding: 12px 0 10px !important;
  }

  body.has-landing-header .landing-brand-row {
    padding: 12px 14px !important;
  }

  body.has-landing-header .landing-brand small {
    display: none !important;
  }

  body.has-landing-header .catalog-hero {
    margin-top: 16px !important;
    padding: 24px 18px !important;
  }

  body.has-landing-header .catalog-hero h1 {
    font-size: clamp(2.05rem, 10.5vw, 3rem) !important;
    line-height: 1.03 !important;
  }

  body.has-landing-header .catalog-search > div {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  body.has-landing-header .filter-panel {
    padding: 12px !important;
  }

  body.has-landing-header .result-bar {
    align-items: flex-start !important;
    margin-bottom: 12px;
    border-radius: 10px;
    padding: 12px 0;
  }

  body.has-landing-header .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  body.has-landing-header .product-card {
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 10px 26px rgba(7, 30, 56, 0.09);
  }

  body.has-landing-header .product-image img {
    aspect-ratio: 1 / 1 !important;
    object-fit: cover;
  }

  body.has-landing-header .product-info {
    display: grid;
    min-height: 0;
    padding: 9px !important;
  }

  body.has-landing-header .product-info small {
    display: -webkit-box;
    min-height: 2.4em;
    overflow: hidden;
    color: #9b0030;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  body.has-landing-header .product-info h3 {
    display: -webkit-box;
    min-height: 2.45em;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  body.has-landing-header .product-info p {
    min-height: 2.55em;
  }

  body.has-landing-header .product-bottom > strong {
    min-height: 2.1em;
  }

  body.has-landing-header .product-actions {
    grid-template-columns: 34px 34px minmax(0, 1fr) !important;
  }

  body.has-landing-header .product-actions .buy-now-button {
    min-width: 0;
    justify-content: center;
    padding: 0 6px !important;
    text-align: center;
  }

  body.has-landing-header .product-actions .buy-now-button::before {
    transform: scale(0.82);
  }

  body.has-landing-header .landing-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  body.has-landing-header .landing-product-card {
    border-radius: 10px;
  }

  body.has-landing-header .landing-product-card img {
    aspect-ratio: 1 / 1 !important;
  }

  body.has-landing-header .landing-product-card > div {
    min-height: 154px;
  }

  body.has-landing-header .site-footer {
    margin-top: 34px !important;
  }
}

@media (max-width: 430px) {
  body.has-landing-header .landing-header {
    overflow: clip;
  }

  body.has-landing-header .landing-brand-row {
    width: calc(100% - 18px) !important;
    gap: 8px !important;
  }

  body.has-landing-header .landing-brand {
    gap: 8px !important;
  }

  body.has-landing-header .landing-brand img {
    width: 48px !important;
    height: 48px !important;
  }

  body.has-landing-header .landing-brand strong {
    font-size: clamp(1.45rem, 8.7vw, 1.78rem) !important;
    letter-spacing: 0 !important;
  }

  body.has-landing-header .landing-menu-toggle {
    width: 54px !important;
    min-width: 54px !important;
    height: 54px !important;
    border-radius: 14px !important;
  }

  body.has-landing-header .landing-mobile-menu.is-open {
    width: calc(100% - 18px);
    border-radius: 14px;
    padding: 10px;
  }

  body.has-landing-header .product-grid,
  body.has-landing-header .landing-product-grid {
    gap: 8px !important;
  }

  body.has-landing-header .product-info small,
  body.has-landing-header .stock-line,
  body.has-landing-header .product-detail-link {
    font-size: 0.64rem !important;
  }

  body.has-landing-header .product-info h3 {
    font-size: 0.8rem !important;
  }

  body.has-landing-header .product-info p {
    font-size: 0.68rem !important;
  }

  body.has-landing-header .product-bottom > strong {
    font-size: 0.8rem !important;
  }

  body.has-landing-header .product-actions {
    grid-template-columns: 29px 29px minmax(0, 1fr) !important;
    gap: 4px !important;
  }

  body.has-landing-header .product-actions .cart-icon-button,
  body.has-landing-header .product-actions .chat-icon-button {
    width: 29px !important;
    min-height: 31px !important;
  }

  body.has-landing-header .product-actions .buy-now-button {
    min-height: 31px !important;
    font-size: 0.62rem !important;
  }

  body.has-landing-header .landing-product-card > div {
    min-height: 144px;
    padding: 9px 42px 11px 9px !important;
  }

  body.has-landing-header .landing-product-card h3 {
    font-size: 0.78rem !important;
  }

  body.has-landing-header .landing-product-card p {
    font-size: 0.74rem !important;
  }
}

/* Navbar and mobile landing cleanup requested after marketplace pass. */
#kategori,
#produk-terbaru,
#kontak {
  scroll-margin-top: calc(var(--landing-contact-height, 0px) + var(--landing-header-height, 112px) + 18px);
}

@media (min-width: 1181px) {
  body.has-landing-header .landing-mobile-menu {
    display: flex;
    width: min(1480px, calc(100% - 44px));
    align-items: stretch;
    justify-content: space-between;
    gap: 16px;
    margin: 0 auto;
    border-top: 1px solid rgba(8, 42, 72, 0.12);
  }

  body.has-landing-header .landing-mobile-menu .landing-nav {
    display: flex;
    flex: 1 1 auto;
    width: auto !important;
    min-width: 0;
    margin: 0 !important;
    border: 0 !important;
  }

  body.has-landing-header .landing-mobile-menu .landing-nav > a {
    min-width: 0;
    padding-right: clamp(12px, 1vw, 20px);
    padding-left: clamp(12px, 1vw, 20px);
    white-space: nowrap;
  }

  body.has-landing-header .landing-mobile-menu .landing-nav > a.active {
    min-width: clamp(160px, 10vw, 184px);
    padding-right: 30px;
    padding-left: 42px;
  }

  body.has-landing-header .landing-mobile-menu .landing-actions {
    display: flex;
    flex: 0 0 auto;
    min-width: 0;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
  }

  body.has-landing-header .landing-mobile-menu .theme-toggle {
    width: 74px;
    min-width: 74px;
    padding: 0 10px;
    justify-content: center;
  }

  body.has-landing-header .landing-mobile-menu .theme-toggle-text {
    display: none;
  }

  body.has-landing-header .landing-mobile-menu .landing-login-link,
  body.has-landing-header .landing-mobile-menu .landing-cart-link {
    gap: 9px;
  }

  body.has-landing-header .landing-mobile-menu .landing-login-link strong,
  body.has-landing-header .landing-mobile-menu .landing-cart-link strong {
    font-size: 0.95rem;
    white-space: nowrap;
  }
}

@media (max-width: 760px) {
  body.has-landing-header {
    --landing-header-height: 116px !important;
  }

  body.has-landing-header .landing-page {
    padding-top: var(--landing-header-height) !important;
  }

  body.has-landing-header .subpage {
    padding-top: calc(var(--landing-header-height) + 18px) !important;
  }

  #kategori,
  #produk-terbaru,
  #kontak {
    scroll-margin-top: calc(var(--landing-header-height) + 16px);
  }

  body.has-landing-header .landing-brand-row {
    min-height: 92px !important;
    border-radius: 0 !important;
    padding: 12px 14px !important;
  }

  body.has-landing-header .landing-brand strong {
    white-space: nowrap !important;
  }

  body.has-landing-header .landing-menu-toggle {
    box-shadow: 0 10px 26px rgba(7, 30, 56, 0.11);
  }

  body.has-landing-header .landing-hero {
    width: calc(100% - 24px) !important;
    margin: 16px auto 0 !important;
    overflow: hidden !important;
    border: 1px solid rgba(8, 42, 72, 0.12);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(246, 252, 255, 0.98), rgba(225, 244, 255, 0.98)) !important;
    box-shadow: 0 18px 42px rgba(8, 42, 72, 0.11);
  }

  body.has-landing-header .landing-hero-copy {
    padding: 24px 20px 18px !important;
  }

  body.has-landing-header .landing-pill {
    width: fit-content;
    max-width: 100%;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 0.76rem !important;
    line-height: 1.1;
  }

  body.has-landing-header .landing-hero h1 {
    margin: 16px 0 14px !important;
    font-size: clamp(2rem, 9vw, 2.85rem) !important;
    line-height: 1.02 !important;
  }

  body.has-landing-header .landing-hero p {
    font-size: 0.98rem !important;
    line-height: 1.56 !important;
  }

  body.has-landing-header .landing-hero-actions {
    gap: 10px !important;
    margin-top: 18px !important;
  }

  body.has-landing-header .landing-primary,
  body.has-landing-header .landing-link {
    min-height: 50px !important;
    border-radius: 12px !important;
  }

  body.has-landing-header .landing-hero-media,
  body.has-landing-header .landing-hero-main-image {
    min-height: clamp(230px, 64vw, 330px) !important;
  }

  body.has-landing-header .landing-hero-media {
    border-top: 5px solid #9e0a31 !important;
  }

  body.has-landing-header .landing-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  body.has-landing-header .landing-category-card {
    border-radius: 10px;
  }

  body.has-landing-header .landing-category-card img {
    aspect-ratio: 1 / 1 !important;
  }

  body.has-landing-header .landing-category-card span {
    margin: 10px 9px 4px;
    font-size: 0.72rem !important;
    line-height: 1.22;
  }

  body.has-landing-header .landing-category-card p {
    display: -webkit-box;
    min-height: 2.55em;
    margin: 0 9px 8px;
    overflow: hidden;
    font-size: 0.68rem !important;
    line-height: 1.28;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  body.has-landing-header .landing-category-card strong {
    margin: auto 9px 10px;
    padding: 5px 8px;
    font-size: 0.66rem !important;
  }
}

@media (max-width: 430px) {
  body.has-landing-header {
    --landing-header-height: 108px !important;
  }

  body.has-landing-header .landing-brand-row {
    width: calc(100% - 16px) !important;
    min-height: 86px !important;
  }

  body.has-landing-header .landing-brand img {
    width: 44px !important;
    height: 44px !important;
  }

  body.has-landing-header .landing-brand strong {
    font-size: clamp(1.34rem, 8.2vw, 1.68rem) !important;
  }

  body.has-landing-header .landing-menu-toggle {
    width: 52px !important;
    min-width: 52px !important;
    height: 52px !important;
  }
}

/* Mobile marketplace polish: consistent hero, compact search, and one-line actions. */
.food-order-hint {
  display: grid;
  gap: 5px;
  margin: 0 0 16px;
  padding: 14px 16px;
  border: 1px solid rgba(165, 0, 45, 0.16);
  border-left: 5px solid #a5002d;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(232, 247, 255, 0.94));
  box-shadow: 0 14px 30px rgba(7, 30, 56, 0.08);
}

.food-order-hint strong {
  color: #9b0030;
  font-size: 0.96rem;
  font-weight: 900;
}

.food-order-hint p {
  margin: 0;
  color: #4d6680;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.5;
}

.food-chat-note {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(165, 0, 45, 0.08);
  color: #9b0030;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1.15;
}

html[data-theme="dark"] .food-order-hint {
  border-color: rgba(126, 216, 255, 0.2);
  border-left-color: #ff4a7d;
  background: linear-gradient(135deg, rgba(8, 28, 54, 0.96), rgba(68, 10, 38, 0.9));
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.25);
}

html[data-theme="dark"] .food-order-hint strong {
  color: #ff7ea5;
}

html[data-theme="dark"] .food-order-hint p {
  color: #c8d9ea;
}

html[data-theme="dark"] .food-chat-note {
  background: rgba(255, 74, 125, 0.16);
  color: #ffadc8;
}

@media (max-width: 760px) {
  body.has-landing-header {
    --landing-header-height: 122px !important;
  }

  body.has-landing-header .landing-contactbar {
    display: none !important;
  }

  body.has-landing-header .landing-header {
    right: 0 !important;
    left: 0 !important;
    overflow: visible !important;
    padding: 10px 0 !important;
  }

  body.has-landing-header .landing-brand-row {
    width: calc(100% - 20px) !important;
    min-height: 88px !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: 10px !important;
    padding: 12px 12px !important;
    border-radius: 0 !important;
  }

  body.has-landing-header .landing-brand,
  body.has-landing-header .landing-brand span {
    min-width: 0 !important;
  }

  body.has-landing-header .landing-brand img {
    width: 48px !important;
    height: 48px !important;
  }

  body.has-landing-header .landing-brand strong {
    overflow: hidden !important;
    max-width: 100% !important;
    font-size: clamp(1.4rem, 6.6vw, 1.82rem) !important;
    line-height: 1 !important;
    text-overflow: clip !important;
    white-space: nowrap !important;
  }

  body.has-landing-header .landing-menu-toggle {
    width: 56px !important;
    min-width: 56px !important;
    height: 56px !important;
    border-radius: 14px !important;
  }

  body.has-landing-header .landing-page {
    padding-top: calc(var(--landing-header-height) + 10px) !important;
  }

  body.has-landing-header .subpage {
    padding-top: calc(var(--landing-header-height) + 20px) !important;
  }

  #kategori,
  #produk-terbaru,
  #kontak {
    scroll-margin-top: calc(var(--landing-header-height) + 18px) !important;
  }

  body.has-landing-header .landing-hero,
  html[data-theme="dark"] body.has-landing-header .landing-hero {
    display: grid !important;
    width: calc(100% - 24px) !important;
    min-height: 0 !important;
    grid-template-columns: minmax(0, 1fr) !important;
    margin: 0 auto 0 !important;
    overflow: hidden !important;
    border: 1px solid rgba(8, 42, 72, 0.12) !important;
    border-radius: 18px !important;
    box-shadow: 0 18px 42px rgba(8, 42, 72, 0.11) !important;
  }

  body.has-landing-header .landing-hero::before,
  body.has-landing-header .landing-hero::after {
    display: none !important;
    content: none !important;
  }

  body.has-landing-header .landing-hero {
    background: linear-gradient(180deg, rgba(247, 252, 255, 0.98), rgba(226, 245, 255, 0.98)) !important;
  }

  html[data-theme="dark"] body.has-landing-header .landing-hero {
    background: linear-gradient(145deg, rgba(8, 28, 54, 0.98), rgba(43, 9, 36, 0.96)) !important;
  }

  body.has-landing-header .landing-hero-copy {
    order: 1 !important;
    width: 100% !important;
    max-width: none !important;
    padding: 22px 18px 16px !important;
  }

  body.has-landing-header .landing-pill {
    padding: 8px 14px !important;
    font-size: 0.72rem !important;
  }

  body.has-landing-header .landing-hero h1,
  body.has-landing-header .landing-hero h1 .landing-title-main {
    max-width: 100% !important;
    margin: 14px 0 12px !important;
    font-size: clamp(1.85rem, 8.2vw, 2.58rem) !important;
    line-height: 1.04 !important;
  }

  body.has-landing-header .landing-hero h1 span,
  body.has-landing-header .landing-hero h1 .landing-title-accent {
    display: block !important;
    font-size: inherit !important;
    line-height: inherit !important;
  }

  body.has-landing-header .landing-hero p {
    max-width: 100% !important;
    font-size: 0.94rem !important;
    line-height: 1.52 !important;
  }

  body.has-landing-header .landing-hero-actions {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 9px !important;
    margin-top: 16px !important;
  }

  body.has-landing-header .landing-primary,
  body.has-landing-header .landing-link {
    width: 100% !important;
    min-height: 46px !important;
    justify-content: center !important;
    border-radius: 12px !important;
    font-size: 0.9rem !important;
    line-height: 1.2 !important;
  }

  body.has-landing-header .landing-dots {
    justify-content: center !important;
    margin-top: 16px !important;
  }

  body.has-landing-header .landing-hero-media,
  body.has-landing-header .landing-hero-main-image {
    order: 2 !important;
    min-height: clamp(210px, 58vw, 310px) !important;
    height: auto !important;
  }

  body.has-landing-header .landing-hero-media {
    border-top: 5px solid #9e0a31 !important;
    border-left: 0 !important;
    clip-path: none !important;
  }

  body.has-landing-header .landing-hero-logo {
    width: 58px !important;
    height: 58px !important;
    right: 14px !important;
    bottom: 14px !important;
  }

  body.has-landing-header .catalog-hero {
    display: grid !important;
    width: calc(100% - 24px) !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 18px !important;
    margin: 0 auto 16px !important;
    padding: 22px 18px !important;
    overflow: hidden !important;
    border-radius: 18px !important;
  }

  body.has-landing-header .catalog-hero::before,
  body.has-landing-header .catalog-hero::after {
    pointer-events: none !important;
  }

  body.has-landing-header .catalog-hero h1 {
    max-width: 100% !important;
    margin: 10px 0 12px !important;
    font-size: clamp(1.78rem, 8vw, 2.45rem) !important;
    line-height: 1.06 !important;
  }

  body.has-landing-header .catalog-hero p {
    max-width: 100% !important;
    font-size: 0.9rem !important;
    line-height: 1.5 !important;
  }

  body.has-landing-header .catalog-search {
    min-width: 0 !important;
  }

  body.has-landing-header .catalog-search > div {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 52px !important;
    gap: 8px !important;
    align-items: stretch !important;
  }

  body.has-landing-header .catalog-search input {
    min-width: 0 !important;
    height: 52px !important;
    padding: 0 14px !important;
    border-radius: 12px !important;
    font-size: 0.82rem !important;
  }

  body.has-landing-header .catalog-search button {
    position: relative !important;
    width: 52px !important;
    min-width: 52px !important;
    height: 52px !important;
    min-height: 52px !important;
    padding: 0 !important;
    border-radius: 12px !important;
    font-size: 0 !important;
    line-height: 0 !important;
  }

  body.has-landing-header .catalog-search button::before {
    position: absolute;
    top: 14px;
    left: 14px;
    width: 17px;
    height: 17px;
    border: 3px solid currentColor;
    border-radius: 50%;
    content: "";
  }

  body.has-landing-header .catalog-search button::after {
    position: absolute;
    top: 32px;
    left: 30px;
    width: 11px;
    height: 3px;
    border-radius: 999px;
    background: currentColor;
    content: "";
    transform: rotate(45deg);
  }

  body.has-landing-header .filter-panel {
    width: calc(100% - 24px) !important;
    margin: 0 auto 16px !important;
    padding: 10px !important;
  }

  body.has-landing-header .filter-dropdown > summary {
    min-height: 52px !important;
    padding: 0 14px !important;
    font-size: 0.92rem !important;
  }

  body.has-landing-header .result-bar {
    width: calc(100% - 24px) !important;
    margin: 0 auto 12px !important;
    padding: 10px 0 !important;
    font-size: 0.84rem !important;
  }

  body.has-landing-header .food-order-hint {
    width: calc(100% - 24px) !important;
    margin: 0 auto 14px !important;
    padding: 12px 13px !important;
    border-radius: 12px !important;
  }

  body.has-landing-header .food-order-hint strong {
    font-size: 0.86rem !important;
  }

  body.has-landing-header .food-order-hint p {
    font-size: 0.76rem !important;
    line-height: 1.4 !important;
  }

  body.has-landing-header .landing-category-grid,
  body.has-landing-header .landing-product-grid,
  body.has-landing-header .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  body.has-landing-header .product-card {
    display: grid !important;
    overflow: hidden !important;
    border-radius: 10px !important;
  }

  body.has-landing-header .product-image {
    aspect-ratio: 1 / 1 !important;
  }

  body.has-landing-header .product-image img {
    width: 100% !important;
    height: 100% !important;
    aspect-ratio: 1 / 1 !important;
    object-fit: cover !important;
  }

  body.has-landing-header .product-info {
    display: grid !important;
    gap: 6px !important;
    padding: 9px !important;
  }

  body.has-landing-header .product-info small {
    min-height: 1.25em !important;
    font-size: 0.62rem !important;
    line-height: 1.25 !important;
    -webkit-line-clamp: 1 !important;
  }

  body.has-landing-header .product-info h3 {
    min-height: 2.35em !important;
    margin: 0 !important;
    font-size: 0.82rem !important;
    line-height: 1.17 !important;
    -webkit-line-clamp: 2 !important;
  }

  body.has-landing-header .product-info p {
    min-height: 2.45em !important;
    font-size: 0.68rem !important;
    line-height: 1.35 !important;
    -webkit-line-clamp: 2 !important;
  }

  body.has-landing-header .stock-line,
  body.has-landing-header .product-detail-link,
  body.has-landing-header .food-chat-note {
    font-size: 0.62rem !important;
    line-height: 1.2 !important;
  }

  body.has-landing-header .food-chat-note {
    padding: 4px 7px !important;
  }

  body.has-landing-header .product-bottom {
    gap: 6px !important;
  }

  body.has-landing-header .product-bottom > strong {
    min-height: 1.35em !important;
    font-size: 0.82rem !important;
    line-height: 1.15 !important;
  }

  body.has-landing-header .product-card .product-actions {
    display: grid !important;
    width: 100% !important;
    grid-template-columns: 32px 32px minmax(58px, 1fr) !important;
    gap: 5px !important;
    align-items: center !important;
  }

  body.has-landing-header .product-card .product-actions > form {
    display: contents !important;
  }

  body.has-landing-header .product-card .product-actions .cart-icon-button,
  body.has-landing-header .product-card .product-actions .chat-icon-button {
    width: 32px !important;
    min-width: 32px !important;
    height: 34px !important;
    min-height: 34px !important;
    padding: 0 !important;
    border-radius: 8px !important;
  }

  body.has-landing-header .product-card .product-actions .buy-now-button {
    width: 100% !important;
    min-width: 0 !important;
    height: 34px !important;
    min-height: 34px !important;
    padding: 0 7px !important;
    border-radius: 8px !important;
    font-size: 0.62rem !important;
    line-height: 1 !important;
    text-align: center !important;
    white-space: nowrap !important;
  }

  body.has-landing-header .product-card .product-actions .buy-now-button::before {
    display: none !important;
  }
}

@media (max-width: 430px) {
  body.has-landing-header {
    --landing-header-height: 118px !important;
  }

  body.has-landing-header .landing-brand-row {
    width: calc(100% - 16px) !important;
    min-height: 84px !important;
    padding: 10px 10px !important;
  }

  body.has-landing-header .landing-brand {
    gap: 8px !important;
  }

  body.has-landing-header .landing-brand img {
    width: 42px !important;
    height: 42px !important;
  }

  body.has-landing-header .landing-brand strong {
    font-size: clamp(1.22rem, 6.25vw, 1.55rem) !important;
  }

  body.has-landing-header .landing-menu-toggle {
    width: 52px !important;
    min-width: 52px !important;
    height: 52px !important;
  }

  body.has-landing-header .landing-page {
    padding-top: calc(var(--landing-header-height) + 8px) !important;
  }

  body.has-landing-header .subpage {
    padding-top: calc(var(--landing-header-height) + 18px) !important;
  }

  body.has-landing-header .landing-hero h1,
  body.has-landing-header .landing-hero h1 .landing-title-main {
    font-size: clamp(1.68rem, 7.8vw, 2.15rem) !important;
  }

  body.has-landing-header .landing-hero p {
    font-size: 0.84rem !important;
  }

  body.has-landing-header .catalog-hero h1 {
    font-size: clamp(1.62rem, 7.4vw, 2.05rem) !important;
  }

  body.has-landing-header .catalog-search > div {
    grid-template-columns: minmax(0, 1fr) 48px !important;
    gap: 7px !important;
  }

  body.has-landing-header .catalog-search input,
  body.has-landing-header .catalog-search button {
    height: 48px !important;
    min-height: 48px !important;
  }

  body.has-landing-header .catalog-search button {
    width: 48px !important;
    min-width: 48px !important;
  }

  body.has-landing-header .catalog-search button::before {
    top: 13px;
    left: 13px;
    width: 15px;
    height: 15px;
  }

  body.has-landing-header .catalog-search button::after {
    top: 30px;
    left: 28px;
    width: 10px;
  }

  body.has-landing-header .product-card .product-actions {
    grid-template-columns: 29px 29px minmax(52px, 1fr) !important;
    gap: 4px !important;
  }

  body.has-landing-header .product-card .product-actions .cart-icon-button,
  body.has-landing-header .product-card .product-actions .chat-icon-button {
    width: 29px !important;
    min-width: 29px !important;
    height: 31px !important;
    min-height: 31px !important;
  }

  body.has-landing-header .product-card .product-actions .buy-now-button {
    height: 31px !important;
    min-height: 31px !important;
    padding: 0 5px !important;
    font-size: 0.56rem !important;
  }
}

/* Premium responsive pass for public, buyer, seller, and super admin screens. */
:root {
  --premium-action: #a5002d;
  --premium-action-strong: #7f0828;
  --premium-action-alt: #0b5f82;
  --premium-action-soft: rgba(165, 0, 45, 0.09);
  --premium-surface: rgba(255, 255, 255, 0.88);
  --premium-surface-strong: rgba(255, 255, 255, 0.96);
  --premium-shadow: 0 18px 48px rgba(8, 42, 72, 0.12);
}

html[data-theme="dark"] {
  --premium-action: #e34668;
  --premium-action-strong: #9b123c;
  --premium-action-alt: #62c4e8;
  --premium-action-soft: rgba(227, 70, 104, 0.16);
  --premium-surface: rgba(8, 28, 54, 0.88);
  --premium-surface-strong: rgba(9, 35, 61, 0.96);
  --premium-shadow: 0 22px 58px rgba(0, 0, 0, 0.36);
}

input,
textarea,
select,
button,
.primary-button,
.solid-button,
.ghost-button,
.secondary-button,
.table-action,
.buy-now-button,
.cart-icon-button,
.chat-icon-button,
.chat-product-link {
  max-width: 100%;
}

.primary-button,
.solid-button,
.catalog-search button,
.buy-now-button,
.chat-product-link {
  border-color: transparent !important;
  background: linear-gradient(135deg, var(--premium-action), var(--premium-action-strong)) !important;
  color: #fff !important;
  box-shadow: 0 12px 28px rgba(165, 0, 45, 0.2);
}

html[data-theme="dark"] .primary-button,
html[data-theme="dark"] .solid-button,
html[data-theme="dark"] .catalog-search button,
html[data-theme="dark"] .buy-now-button,
html[data-theme="dark"] .chat-product-link {
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.26);
}

.primary-button:hover,
.solid-button:hover,
.catalog-search button:hover,
.buy-now-button:hover,
.chat-product-link:hover {
  filter: brightness(1.04);
  transform: translateY(-1px);
}

button:disabled,
.primary-button:disabled,
.solid-button:disabled,
.catalog-search button:disabled,
.cart-icon-button:disabled,
.chat-icon-button:disabled,
.buy-now-button:disabled {
  border-color: rgba(77, 102, 128, 0.18) !important;
  background: linear-gradient(135deg, rgba(77, 102, 128, 0.12), rgba(77, 102, 128, 0.2)) !important;
  color: rgba(77, 102, 128, 0.68) !important;
  box-shadow: none !important;
  filter: none !important;
  opacity: 1 !important;
  transform: none !important;
}

html[data-theme="dark"] button:disabled,
html[data-theme="dark"] .primary-button:disabled,
html[data-theme="dark"] .solid-button:disabled,
html[data-theme="dark"] .catalog-search button:disabled,
html[data-theme="dark"] .cart-icon-button:disabled,
html[data-theme="dark"] .chat-icon-button:disabled,
html[data-theme="dark"] .buy-now-button:disabled {
  border-color: rgba(184, 210, 232, 0.14) !important;
  background: linear-gradient(135deg, rgba(184, 210, 232, 0.08), rgba(184, 210, 232, 0.14)) !important;
  color: rgba(200, 217, 234, 0.55) !important;
}

.ghost-button,
.secondary-button,
.table-action,
button.table-action {
  border: 1px solid rgba(11, 95, 130, 0.18) !important;
  background: var(--premium-surface-strong) !important;
  color: var(--ink) !important;
  box-shadow: 0 10px 22px rgba(8, 42, 72, 0.08);
}

.ghost-button:hover,
.secondary-button:hover,
.table-action:hover,
button.table-action:hover,
.admin-tabs a:hover,
.admin-tabs a.active,
.filter-chips a:hover,
.filter-chips a.active,
.filter-panel a:hover,
.filter-panel a.active {
  border-color: transparent !important;
  background: linear-gradient(135deg, var(--premium-action), var(--premium-action-alt)) !important;
  color: #fff !important;
}

.danger-action,
button.danger-action {
  border-color: rgba(165, 0, 45, 0.18) !important;
  background: rgba(165, 0, 45, 0.08) !important;
  color: var(--premium-action-strong) !important;
}

.danger-action:hover,
button.danger-action:hover {
  background: linear-gradient(135deg, #b50036, #78102c) !important;
  color: #fff !important;
}

.admin-table-wrap,
.admin-filter-panel,
.filter-dropdown-wrap,
.form-panel,
.summary-card,
.checkout-form-card,
.detail-panel,
.cart-card,
.metric-card,
.report-panel,
.report-chart-card {
  border: 1px solid var(--line);
  background: var(--premium-surface);
  box-shadow: var(--premium-shadow);
  backdrop-filter: blur(18px);
}

.admin-table-wrap {
  overflow-x: auto;
  padding: 16px 18px;
  border-radius: 14px;
}

.admin-table {
  width: 100%;
  min-width: 980px;
  table-layout: auto;
}

.admin-table th,
.admin-table td {
  word-break: normal !important;
  overflow-wrap: normal !important;
}

.admin-table th {
  white-space: nowrap;
}

.admin-table td {
  color: var(--ink);
  font-size: 0.95rem;
  line-height: 1.35;
}

.admin-table td small,
.table-product small {
  word-break: normal !important;
  overflow-wrap: anywhere !important;
}

.table-product {
  min-width: min(280px, 34vw);
}

.table-product span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.status-pill,
.table-action,
button.table-action {
  display: inline-flex;
  min-width: max-content;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap !important;
  word-break: normal !important;
  overflow-wrap: normal !important;
}

.status-pill {
  border: 1px solid rgba(11, 95, 130, 0.12);
  background: rgba(11, 95, 130, 0.1);
  color: var(--premium-action-alt);
}

html[data-theme="dark"] .status-pill {
  border-color: rgba(98, 196, 232, 0.2);
  background: rgba(98, 196, 232, 0.14);
  color: #aee6ff;
}

.table-actions {
  min-width: max-content;
  align-items: center;
  gap: 8px;
}

.admin-product-search > div,
.catalog-search > div {
  min-width: 0;
}

.filter-dropdown > summary,
.compact-filter-dropdown > summary {
  min-width: 0;
}

.filter-dropdown > summary span,
.compact-filter-dropdown > summary span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-hero,
.catalog-hero,
.section-heading,
.checkout-layout,
.detail-layout,
.chat-layout,
.seller-chat-layout,
.seller-chat-inner,
.order-admin-layout,
.metric-grid,
.report-grid,
.compact-report-grid {
  max-width: 100%;
  min-width: 0;
}

@media (min-width: 1181px) {
  body.has-app-sidebar {
    padding-top: 108px !important;
  }

  body.has-app-sidebar .subpage,
  body.has-app-sidebar .admin-page {
    padding-top: 18px !important;
  }

  body.has-app-sidebar .logged-in-header {
    width: min(1220px, calc(100vw - 320px)) !important;
  }

  body.has-app-sidebar.sidebar-collapsed .logged-in-header {
    width: min(1420px, calc(100vw - 52px)) !important;
  }

  .admin-page {
    width: min(1420px, calc(100% - 44px)) !important;
  }

  .admin-filter-panel {
    gap: 18px;
  }

  .admin-filter-dropdowns {
    align-items: end;
  }

  .admin-table td:last-child {
    width: 1%;
  }
}

@media (max-width: 1180px) {
  body.has-app-sidebar {
    padding-top: 102px !important;
  }

  body.has-app-sidebar .logged-in-header {
    top: 10px !important;
    width: calc(100% - 22px) !important;
  }

  body.has-app-sidebar .subpage,
  body.has-app-sidebar .section-wrap,
  body.has-app-sidebar .site-footer,
  body.has-app-sidebar .admin-page {
    width: calc(100% - 24px) !important;
    padding-top: 16px !important;
  }

  .admin-hero,
  .catalog-hero,
  .section-heading {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 16px !important;
    padding: 22px !important;
  }

  .admin-hero .primary-button,
  .section-heading .primary-button {
    width: fit-content;
  }

  .admin-filter-panel,
  .filter-dropdown-wrap {
    padding: 14px !important;
  }

  .admin-filter-dropdowns,
  .payment-options,
  .delivery-options,
  .checkout-field-grid,
  .location-actions,
  .report-grid,
  .compact-report-grid,
  .order-admin-layout,
  .chat-layout,
  .seller-chat-inner {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .admin-product-search > div,
  .catalog-search > div {
    grid-template-columns: minmax(0, 1fr) auto !important;
  }

  .admin-table {
    min-width: 860px;
  }
}

@media (max-width: 860px) {
  body.has-app-sidebar {
    padding-top: 96px !important;
  }

  body.has-app-sidebar .logged-in-header {
    min-height: 68px !important;
  }

  body.has-app-sidebar .logged-in-header .brand img {
    width: 42px !important;
    height: 42px !important;
  }

  body.has-app-sidebar .logged-in-header .brand strong {
    font-size: clamp(1.15rem, 5.6vw, 1.75rem) !important;
  }

  .admin-page {
    width: calc(100% - 20px) !important;
  }

  .admin-tabs,
  .filter-chips,
  .report-toolbar {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px !important;
  }

  .admin-tabs a,
  .filter-chips a,
  .report-toolbar a {
    min-height: 44px;
    justify-content: center;
    text-align: center;
  }

  .admin-filter-panel,
  .filter-dropdown-wrap,
  .admin-table-wrap {
    width: 100%;
    padding: 12px !important;
    border-radius: 14px !important;
  }

  .admin-product-search > div,
  .catalog-search > div {
    grid-template-columns: minmax(0, 1fr) 54px !important;
    gap: 8px !important;
  }

  .admin-product-search button,
  .catalog-search button {
    width: 54px !important;
    min-width: 54px !important;
    padding: 0 !important;
    font-size: 0 !important;
  }

  .admin-table {
    display: block;
    min-width: 0 !important;
  }

  .admin-table thead {
    display: none;
  }

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

  .admin-table tr {
    display: grid;
    gap: 0;
    width: 100%;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--premium-surface-strong);
    box-shadow: 0 10px 24px rgba(8, 42, 72, 0.08);
  }

  .admin-table td {
    display: grid;
    grid-template-columns: minmax(92px, 34%) minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    width: 100%;
    border: 0 !important;
    padding: 8px 0 !important;
    font-size: 0.92rem;
  }

  .admin-table td::before {
    color: var(--muted);
    content: attr(data-label);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
  }

  .admin-table td[colspan] {
    display: block;
    text-align: center;
  }

  .admin-table td[colspan]::before {
    display: none;
  }

  .admin-table .table-product {
    min-width: 0;
    align-items: flex-start;
  }

  .admin-table .table-product img {
    width: 50px;
    height: 50px;
    flex: 0 0 auto;
  }

  .admin-table .table-actions,
  .admin-table td.table-actions,
  .admin-table td .table-actions {
    display: flex;
    min-width: 0;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .admin-table .table-action,
  .admin-table button.table-action {
    min-width: 96px;
    min-height: 38px;
    padding: 0 12px;
  }

  .status-pill {
    min-width: 0;
    width: fit-content;
    max-width: 100%;
    padding: 7px 10px;
  }

  .table-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .table-head a {
    width: fit-content;
  }
}

@media (max-width: 520px) {
  body.has-app-sidebar {
    padding-top: 90px !important;
  }

  body.has-app-sidebar .subpage,
  body.has-app-sidebar .section-wrap,
  body.has-app-sidebar .site-footer,
  body.has-app-sidebar .admin-page {
    width: calc(100% - 16px) !important;
  }

  .admin-hero,
  .catalog-hero,
  .section-heading,
  .form-panel,
  .summary-card,
  .checkout-form-card,
  .detail-panel,
  .cart-card {
    padding: 16px !important;
    border-radius: 14px !important;
  }

  .admin-hero h1,
  .section-heading h1,
  .checkout-form h1,
  .detail-copy h1 {
    font-size: clamp(1.8rem, 9vw, 2.35rem) !important;
    line-height: 1.06 !important;
  }

  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  .metric-card {
    padding: 14px !important;
  }

  .metric-card strong {
    font-size: clamp(1.35rem, 8vw, 1.9rem) !important;
  }

  .admin-tabs,
  .filter-chips,
  .report-toolbar {
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-table tr {
    padding: 11px;
  }

  .admin-table td {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
    padding: 7px 0 !important;
  }

  .admin-table td::before {
    font-size: 0.68rem;
  }

  .admin-table .table-actions,
  .admin-table td.table-actions,
  .admin-table td .table-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .admin-table .table-actions form {
    display: contents;
  }

  .admin-table .table-action,
  .admin-table button.table-action {
    width: 100%;
    min-width: 0;
  }

  .admin-product-search input,
  .catalog-search input {
    min-width: 0;
    font-size: 0.86rem !important;
  }
}

/* Product form feature dropdowns and food-only ordering rules. */
.product-form-dropdown {
  overflow: hidden;
  border: 1px solid rgba(9, 48, 82, 0.13);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(232, 248, 255, 0.72));
  box-shadow: 0 16px 34px rgba(8, 42, 72, 0.08);
}

.product-form-dropdown > summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 18px;
  gap: 12px;
  align-items: center;
  min-height: 62px;
  padding: 14px 16px;
  cursor: pointer;
  list-style: none;
}

.product-form-dropdown > summary::-webkit-details-marker {
  display: none;
}

.product-form-dropdown > summary::after {
  width: 9px;
  height: 9px;
  border-right: 3px solid currentColor;
  border-bottom: 3px solid currentColor;
  content: "";
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

.product-form-dropdown[open] > summary::after {
  transform: rotate(225deg);
}

.product-form-dropdown > summary > span {
  min-width: 0;
  color: #071e38;
  font-size: 1rem;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.feature-switch {
  position: relative;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  margin: 0 !important;
}

.feature-switch input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.feature-switch b {
  position: relative;
  display: inline-flex;
  width: 68px;
  height: 34px;
  align-items: center;
  border: 1px solid rgba(77, 102, 128, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  color: #4d6680;
  font-size: 0;
  font-weight: 900;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.62);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.feature-switch b::before {
  position: absolute;
  left: 6px;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #d7e5ef;
  box-shadow: 0 5px 12px rgba(8, 42, 72, 0.14);
  content: "";
  transition: transform 0.2s ease, background 0.2s ease;
}

.feature-switch b::after {
  margin-left: 32px;
  content: "Off";
  font-size: 0.72rem;
  line-height: 1;
}

.feature-switch input:checked + b {
  border-color: transparent;
  background: linear-gradient(135deg, #b0003b, #0b5f82);
  color: #fff;
}

.feature-switch input:checked + b::before {
  background: #fff;
  transform: translateX(33px);
}

.feature-switch input:checked + b::after {
  margin-right: 30px;
  margin-left: 11px;
  content: "On";
}

.feature-switch input:focus-visible + b {
  outline: 3px solid rgba(126, 216, 255, 0.48);
  outline-offset: 3px;
}

.product-feature-panel {
  display: grid;
  gap: 14px;
  padding: 0 16px 16px;
  border-top: 1px solid rgba(9, 48, 82, 0.08);
}

.product-feature-panel[hidden] {
  display: none !important;
}

.product-form-feature.is-feature-off > summary {
  color: #6a7b8f;
  background: rgba(255, 255, 255, 0.5);
}

.product-form-feature.is-feature-off > summary > span {
  color: #61758b;
}

.product-form-dropdown .preorder-box,
.product-form-dropdown .gallery-upload-box,
.product-form-dropdown .variant-editor,
.product-form-dropdown .color-choice-panel {
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.product-form-dropdown .variant-editor-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.product-form-dropdown .variant-editor-head .help-popover {
  grid-column: 1 / -1;
}

.product-form-dropdown .color-choice-grid {
  grid-template-columns: repeat(auto-fit, minmax(136px, 1fr));
  gap: 10px;
}

.product-form-dropdown .color-choice {
  display: flex;
  min-height: 46px;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(9, 48, 82, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.78);
  padding: 10px 12px;
}

.product-form-dropdown .color-choice:has(input:checked) {
  border-color: rgba(165, 0, 45, 0.34);
  background: linear-gradient(135deg, rgba(165, 0, 45, 0.1), rgba(126, 216, 255, 0.16));
}

.product-form-dropdown .color-choice input {
  width: 18px;
  height: 18px;
  accent-color: #a5002d;
}

.product-form-dropdown .color-choice i {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  border: 1px solid rgba(7, 30, 56, 0.18);
  border-radius: 999px;
  background: var(--choice-color, #0f6a68);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.34);
}

.product-form-dropdown .gallery-admin-grid {
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
}

.product-actions-food {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  width: 100%;
}

.product-actions-food form {
  width: 100%;
}

.food-chat-button,
.product-actions-food .food-chat-button,
.food-only-buy-box .food-chat-button {
  display: inline-flex !important;
  width: 100% !important;
  min-width: 0 !important;
  height: 48px !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  border-radius: 14px !important;
  padding: 0 16px !important;
}

.food-chat-button b {
  display: inline !important;
  color: inherit;
  font-size: 0.92rem;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.food-only-buy-box > div {
  grid-template-columns: minmax(0, 1fr) !important;
}

.food-only-buy-box form {
  display: block;
  width: 100%;
}

html[data-theme="dark"] .product-form-dropdown {
  border-color: rgba(126, 216, 255, 0.18);
  background: linear-gradient(145deg, rgba(9, 30, 56, 0.96), rgba(53, 10, 40, 0.86));
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.22);
}

html[data-theme="dark"] .product-form-dropdown > summary > span {
  color: #f5fbff;
}

html[data-theme="dark"] .product-feature-panel {
  border-top-color: rgba(126, 216, 255, 0.12);
}

html[data-theme="dark"] .product-form-feature.is-feature-off > summary {
  background: rgba(8, 23, 43, 0.5);
}

html[data-theme="dark"] .product-form-feature.is-feature-off > summary > span {
  color: #b8d2e8;
}

html[data-theme="dark"] .feature-switch b {
  border-color: rgba(126, 216, 255, 0.22);
  background: rgba(8, 23, 43, 0.82);
  color: #b8d2e8;
}

html[data-theme="dark"] .feature-switch input:checked + b {
  background: linear-gradient(135deg, #ff4a7d, #62c4e8);
  color: #08172b;
}

html[data-theme="dark"] .product-form-dropdown .color-choice {
  border-color: rgba(126, 216, 255, 0.16);
  background: rgba(8, 23, 43, 0.72);
}

html[data-theme="dark"] .product-form-dropdown .color-choice:has(input:checked) {
  border-color: rgba(126, 216, 255, 0.38);
  background: linear-gradient(135deg, rgba(255, 74, 125, 0.2), rgba(98, 196, 232, 0.16));
}

@media (max-width: 860px) {
  .product-form-dropdown > summary {
    grid-template-columns: minmax(0, 1fr) auto 14px;
    min-height: 56px;
    padding: 12px 14px;
  }

  .product-feature-panel {
    padding: 0 14px 14px;
  }

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

  .product-form-dropdown .variant-row {
    grid-template-columns: minmax(0, 1fr) !important;
  }

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

  body.has-landing-header .product-card .product-actions:not(.product-actions-food) {
    grid-template-columns: 42px 42px minmax(0, 1fr) !important;
    gap: 6px !important;
  }

  body.has-landing-header .product-card .product-actions .cart-icon-button,
  body.has-landing-header .product-card .product-actions .chat-icon-button {
    width: 42px !important;
    min-width: 42px !important;
    height: 42px !important;
  }

  body.has-landing-header .product-card .product-actions .buy-now-button {
    min-width: 0 !important;
    min-height: 42px !important;
    padding: 0 10px !important;
    font-size: 0.78rem !important;
  }

  body.has-landing-header .product-card .product-actions-food {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

@media (max-width: 430px) {
  .feature-switch {
    min-width: 62px;
  }

  .feature-switch b {
    width: 60px;
    height: 32px;
  }

  .feature-switch b::before {
    width: 20px;
    height: 20px;
  }

  .feature-switch input:checked + b::before {
    transform: translateX(28px);
  }

  .feature-switch b::after {
    margin-left: 29px;
    font-size: 0.68rem;
  }

  .feature-switch input:checked + b::after {
    margin-right: 25px;
    margin-left: 10px;
  }

  .product-form-dropdown .color-choice {
    min-height: 42px;
    gap: 7px;
    padding: 8px;
  }

  .product-form-dropdown .color-choice b {
    font-size: 0.78rem;
  }

  .product-form-dropdown .color-choice i {
    width: 18px;
    height: 18px;
  }
}

/* Keep landing carousel arrows above decorative hero layers. */
.landing-hero .landing-hero-arrow {
  z-index: 120 !important;
  pointer-events: auto !important;
  cursor: pointer;
  touch-action: manipulation;
}

.landing-hero .landing-hero-arrow span {
  pointer-events: none;
}

/* Final product mobile fixes: unique galleries, choice preview, compact colors, and dark contrast. */
.size-modal-product {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  margin: -4px 0 12px;
  border: 1px solid rgba(9, 48, 82, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  padding: 10px;
}

.size-modal-product[hidden] {
  display: none !important;
}

.size-modal-product img {
  width: 84px;
  height: 84px;
  border-radius: 11px;
  object-fit: cover;
}

.size-modal-product span,
.size-modal-help {
  color: #4d6680;
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1.35;
}

.size-modal-product strong {
  display: block;
  margin-top: 2px;
  color: #071e38;
  font-size: 1rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.size-modal-help {
  display: block;
  grid-column: 1 / -1;
  margin: -2px 0 4px;
}

.color-option i {
  background: var(--choice-color, #0f6a68);
}

.chat-icon-button span::after {
  background: transparent !important;
}

.product-actions-food form {
  display: block !important;
  width: 100% !important;
}

.product-actions-food .food-chat-button,
.food-only-buy-box .food-chat-button {
  width: 100% !important;
  min-width: 0 !important;
}

.product-actions-food .food-chat-button span,
.food-only-buy-box .food-chat-button span {
  flex: 0 0 auto;
}

.detail-media > span,
.product-image > span {
  z-index: 4;
}

html[data-theme="dark"] .detail-media > span,
html[data-theme="dark"] .product-image > span,
html[data-theme="dark"] .landing-product-badge,
html[data-theme="dark"] .landing-product-card > a span {
  border: 1px solid rgba(255, 255, 255, 0.68) !important;
  background: rgba(255, 250, 240, 0.94) !important;
  color: #071e38 !important;
  text-shadow: none !important;
}

html[data-theme="dark"] .size-modal-product {
  border-color: rgba(126, 216, 255, 0.2);
  background: rgba(8, 23, 43, 0.72);
}

html[data-theme="dark"] .size-modal-product strong {
  color: #f5fbff;
}

html[data-theme="dark"] .size-modal-product span,
html[data-theme="dark"] .size-modal-help {
  color: #b8d2e8;
}

@media (max-width: 760px) {
  .size-modal {
    align-items: start;
    padding: 8px !important;
  }

  .size-modal-panel {
    width: min(100%, 680px);
    max-height: calc(100dvh - 16px) !important;
    border-radius: 14px;
    padding: 18px !important;
  }

  .size-modal-panel h2 {
    margin-right: 42px;
    font-size: clamp(1.72rem, 8.5vw, 2.55rem) !important;
    line-height: 1.02;
  }

  .size-modal-product {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 10px;
    padding: 8px;
  }

  .size-modal-product img {
    width: 72px;
    height: 72px;
  }

  .size-modal-colors {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  .size-modal-colors .size-modal-label,
  .size-modal-colors .size-modal-help {
    grid-column: 1 / -1;
  }

  .color-option {
    grid-template-columns: minmax(0, 1fr) !important;
    min-height: 58px !important;
    justify-items: center;
    gap: 6px !important;
    border-radius: 12px !important;
    padding: 8px 6px !important;
    text-align: center !important;
  }

  .color-option i {
    width: 22px !important;
    height: 22px !important;
  }

  .color-option strong {
    font-size: 0.72rem !important;
    line-height: 1.12 !important;
  }

  .size-option {
    min-height: 58px;
    gap: 8px;
    padding: 10px 12px;
  }

  body.has-landing-header .product-card .product-actions-food {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
  }

  body.has-landing-header .product-card .product-actions-food .food-chat-button {
    width: 100% !important;
    min-width: 0 !important;
    height: 42px !important;
    min-height: 42px !important;
    border-radius: 10px !important;
    padding: 0 8px !important;
    gap: 7px !important;
  }

  body.has-landing-header .product-card .product-actions-food .food-chat-button span {
    width: 17px !important;
    height: 14px !important;
  }

  body.has-landing-header .product-card .product-actions-food .food-chat-button b {
    display: inline !important;
    font-size: 0.8rem !important;
  }
}

@media (max-width: 380px) {
  .size-modal-colors {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  .color-option strong {
    font-size: 0.68rem !important;
  }
}

/* Kain Tenun choice and marketplace layout refinement. */
.subpage .product-grid,
body.has-landing-header .subpage .product-grid {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important;
  gap: 14px !important;
  align-items: stretch;
}

@media (min-width: 1180px) {
  .subpage .product-grid,
  body.has-landing-header .subpage .product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}

.product-card,
body.has-landing-header .product-card {
  border-radius: 12px !important;
  box-shadow: 0 10px 26px rgba(8, 42, 72, 0.1) !important;
}

.product-image,
body.has-landing-header .product-image {
  aspect-ratio: 1 / 1 !important;
  background: #f8fbff !important;
}

.product-image img,
body.has-landing-header .product-image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

.product-image::after,
body.has-landing-header .product-image::after {
  opacity: 0.18 !important;
}

.product-image > span,
body.has-landing-header .product-image > span {
  top: 9px !important;
  right: 9px !important;
  bottom: auto !important;
  max-width: calc(100% - 18px);
  border-radius: 999px !important;
  padding: 5px 9px !important;
  font-size: 0.7rem !important;
  line-height: 1 !important;
}

.product-info,
body.has-landing-header .product-info {
  gap: 7px !important;
  padding: 12px !important;
}

.product-info h3,
body.has-landing-header .product-info h3 {
  display: -webkit-box;
  min-height: 2.36em;
  margin: 0 !important;
  overflow: hidden;
  font-size: clamp(0.95rem, 1.25vw, 1.08rem) !important;
  line-height: 1.18 !important;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.product-info p,
body.has-landing-header .product-info p {
  display: -webkit-box;
  min-height: 2.55em;
  overflow: hidden;
  font-size: 0.82rem !important;
  line-height: 1.42 !important;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.product-info small,
.stock-line,
.product-detail-link,
.food-chat-note {
  font-size: 0.76rem !important;
  line-height: 1.25 !important;
}

.product-bottom {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr);
  gap: 9px !important;
  min-height: 0 !important;
  padding-top: 9px !important;
}

.product-bottom > strong {
  font-size: clamp(0.98rem, 1.25vw, 1.14rem) !important;
}

.product-actions:not(.product-actions-food),
body.has-landing-header .product-actions:not(.product-actions-food) {
  display: grid !important;
  grid-template-columns: 38px 38px minmax(74px, 1fr) !important;
  gap: 7px !important;
  width: 100% !important;
  align-items: center !important;
}

.product-actions:not(.product-actions-food) > form,
body.has-landing-header .product-actions:not(.product-actions-food) > form {
  display: contents !important;
}

.product-actions .cart-icon-button,
.product-actions .chat-icon-button,
body.has-landing-header .product-actions .cart-icon-button,
body.has-landing-header .product-actions .chat-icon-button {
  width: 38px !important;
  min-width: 38px !important;
  height: 38px !important;
  min-height: 38px !important;
  border-radius: 10px !important;
  padding: 0 !important;
}

.product-actions .buy-now-button,
body.has-landing-header .product-actions .buy-now-button {
  width: 100% !important;
  min-width: 0 !important;
  height: 38px !important;
  min-height: 38px !important;
  border-radius: 10px !important;
  padding: 0 9px !important;
  font-size: 0.78rem !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}

.detail-layout,
body.has-landing-header .detail-layout {
  grid-template-columns: minmax(360px, 0.92fr) minmax(0, 1fr) !important;
  gap: clamp(18px, 3vw, 34px) !important;
  align-items: start !important;
}

.detail-media,
body.has-landing-header .detail-media {
  overflow: hidden !important;
  border-radius: 18px !important;
  background: rgba(255, 255, 255, 0.78) !important;
  padding: 12px !important;
  box-shadow: 0 18px 44px rgba(8, 42, 72, 0.13) !important;
}

.detail-media > img,
body.has-landing-header .detail-media > img {
  display: block !important;
  width: 100% !important;
  height: min(58vh, 610px) !important;
  min-height: 410px !important;
  border-radius: 14px !important;
  background: #fff !important;
  object-fit: contain !important;
  object-position: center !important;
}

.detail-media > span,
body.has-landing-header .detail-media > span {
  top: 24px !important;
  left: 24px !important;
  bottom: auto !important;
  border-radius: 999px !important;
  padding: 7px 12px !important;
  font-size: 0.72rem !important;
  line-height: 1 !important;
}

.product-thumbs,
body.has-landing-header .product-thumbs {
  position: static !important;
  display: flex !important;
  max-width: none !important;
  margin-top: 10px !important;
  overflow-x: auto !important;
  gap: 8px !important;
  border: 1px solid rgba(9, 48, 82, 0.1) !important;
  border-radius: 14px !important;
  background: rgba(255, 255, 255, 0.62) !important;
  padding: 8px !important;
  scroll-snap-type: x proximity;
}

.product-thumbs button,
body.has-landing-header .product-thumbs button {
  flex: 0 0 62px !important;
  width: 62px !important;
  height: 62px !important;
  border-color: rgba(9, 48, 82, 0.14) !important;
  border-radius: 10px !important;
  background: #fff !important;
  opacity: 1 !important;
  scroll-snap-align: start;
}

.product-thumbs button.active,
body.has-landing-header .product-thumbs button.active {
  border-color: var(--premium-action) !important;
  box-shadow: 0 0 0 3px rgba(165, 0, 45, 0.12);
}

.detail-gallery-arrow {
  position: absolute;
  top: calc(50% - 42px);
  z-index: 5;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(165, 0, 45, 0.9);
  box-shadow: 0 12px 24px rgba(8, 42, 72, 0.18);
  cursor: pointer;
}

.detail-gallery-prev {
  left: 22px;
}

.detail-gallery-next {
  right: 22px;
}

.detail-gallery-arrow::before {
  content: "";
  width: 13px;
  height: 13px;
  border-top: 3px solid #fff;
  border-right: 3px solid #fff;
}

.detail-gallery-prev::before {
  transform: rotate(-135deg);
  margin-left: 4px;
}

.detail-gallery-next::before {
  transform: rotate(45deg);
  margin-right: 4px;
}

.detail-copy h1,
body.has-landing-header .detail-copy h1 {
  font-size: clamp(2.5rem, 5.2vw, 5rem) !important;
  line-height: 0.98 !important;
}

.size-modal-request {
  display: grid;
  gap: 10px;
  margin: 8px 0 12px;
  border: 1px solid rgba(9, 48, 82, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.58);
  padding: 12px;
}

.size-modal-request[hidden] {
  display: none !important;
}

.request-name-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
}

.request-name-toggle input {
  width: 18px;
  height: 18px;
  accent-color: var(--premium-action);
}

.size-modal-request input[type="text"] {
  min-height: 44px;
  border: 1px solid rgba(9, 48, 82, 0.14);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.9);
  padding: 0 12px;
  color: var(--ink);
  font-weight: 900;
}

.size-modal-request input[type="text"]:disabled {
  opacity: 0.55;
}

.request-name-note {
  display: grid;
  gap: 3px;
  border: 1px solid rgba(165, 0, 45, 0.14);
  border-radius: 13px;
  background: rgba(165, 0, 45, 0.07);
  padding: 12px 14px;
}

.request-name-note strong {
  color: var(--premium-action-strong);
  font-size: 0.86rem;
}

.request-name-note span {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

html[data-theme="dark"] .detail-media,
html[data-theme="dark"] body.has-landing-header .detail-media,
html[data-theme="dark"] .product-thumbs,
html[data-theme="dark"] body.has-landing-header .product-thumbs,
html[data-theme="dark"] .size-modal-request,
html[data-theme="dark"] .request-name-note {
  border-color: rgba(126, 216, 255, 0.18) !important;
  background: rgba(8, 23, 43, 0.74) !important;
}

html[data-theme="dark"] .request-name-note strong {
  color: #ff7ea5;
}

html[data-theme="dark"] .product-image,
html[data-theme="dark"] body.has-landing-header .product-image,
html[data-theme="dark"] .detail-media > img,
html[data-theme="dark"] body.has-landing-header .detail-media > img,
html[data-theme="dark"] .product-thumbs button,
html[data-theme="dark"] body.has-landing-header .product-thumbs button,
html[data-theme="dark"] .size-modal-request input[type="text"] {
  background: rgba(4, 14, 28, 0.92) !important;
  color: #f5fbff !important;
}

@media (max-width: 980px) {
  .detail-layout,
  body.has-landing-header .detail-layout {
    grid-template-columns: 1fr !important;
  }

  .detail-media > img,
  body.has-landing-header .detail-media > img {
    height: clamp(270px, 68vw, 430px) !important;
    min-height: 0 !important;
  }
}

@media (max-width: 760px) {
  .subpage .product-grid,
  body.has-landing-header .subpage .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  .product-info,
  body.has-landing-header .product-info {
    padding: 9px !important;
  }

  .product-info h3,
  body.has-landing-header .product-info h3 {
    min-height: 2.3em !important;
    font-size: 0.84rem !important;
  }

  .product-info p,
  body.has-landing-header .product-info p {
    min-height: 2.42em !important;
    font-size: 0.68rem !important;
  }

  .product-bottom > strong {
    font-size: 0.82rem !important;
  }

  .product-actions:not(.product-actions-food),
  body.has-landing-header .product-actions:not(.product-actions-food) {
    grid-template-columns: 32px 32px minmax(58px, 1fr) !important;
    gap: 5px !important;
  }

  .product-actions .cart-icon-button,
  .product-actions .chat-icon-button,
  body.has-landing-header .product-actions .cart-icon-button,
  body.has-landing-header .product-actions .chat-icon-button {
    width: 32px !important;
    min-width: 32px !important;
    height: 34px !important;
    min-height: 34px !important;
  }

  .product-actions .buy-now-button,
  body.has-landing-header .product-actions .buy-now-button {
    height: 34px !important;
    min-height: 34px !important;
    padding: 0 7px !important;
    font-size: 0.62rem !important;
  }

  .detail-layout,
  body.has-landing-header .detail-layout {
    gap: 14px !important;
  }

  .detail-media,
  body.has-landing-header .detail-media {
    padding: 8px !important;
    border-radius: 14px !important;
  }

  .detail-media > img,
  body.has-landing-header .detail-media > img {
    height: clamp(245px, 70vw, 335px) !important;
    border-radius: 12px !important;
  }

  .detail-gallery-arrow {
    top: calc(50% - 38px);
    width: 36px;
    height: 36px;
  }

  .detail-gallery-prev {
    left: 14px;
  }

  .detail-gallery-next {
    right: 14px;
  }

  .product-thumbs,
  body.has-landing-header .product-thumbs {
    padding: 7px !important;
  }

  .product-thumbs button,
  body.has-landing-header .product-thumbs button {
    flex-basis: 54px !important;
    width: 54px !important;
    height: 54px !important;
  }

  .detail-copy h1,
  body.has-landing-header .detail-copy h1 {
    font-size: clamp(1.75rem, 8vw, 2.45rem) !important;
    line-height: 1.05 !important;
  }

  .detail-description {
    font-size: 0.95rem !important;
    line-height: 1.55 !important;
  }

  .buy-box {
    padding: 12px !important;
  }

  .buy-box > div {
    grid-template-columns: 72px 40px 40px minmax(70px, 1fr) !important;
    gap: 7px !important;
  }

  .size-modal-panel h2 {
    font-size: clamp(1.48rem, 7vw, 2.1rem) !important;
  }

  .size-modal-request {
    padding: 10px;
  }
}

/* 2026-09-13 final overrides: keep this block last. */
.landing-nav a,
.main-nav a {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
}

.nav-menu-icon {
  position: relative !important;
  display: inline-block !important;
  width: 22px !important;
  height: 22px !important;
  flex: 0 0 22px !important;
  color: currentColor !important;
  background: transparent !important;
}

.nav-menu-icon::before,
.nav-menu-icon::after {
  content: "" !important;
  position: absolute !important;
  box-sizing: border-box !important;
}

.nav-icon-home::before {
  left: 4px;
  top: 9px;
  width: 14px;
  height: 10px;
  border: 2px solid currentColor;
  border-top: 0;
  border-radius: 2px;
}

.nav-icon-home::after {
  left: 5px;
  top: 3px;
  width: 12px;
  height: 12px;
  border-left: 2px solid currentColor;
  border-top: 2px solid currentColor;
  transform: rotate(45deg);
}

.nav-icon-catalog::before,
.nav-icon-guide::before,
.nav-icon-news::before {
  inset: 3px 5px;
  border: 2px solid currentColor;
  border-radius: 3px;
}

.nav-icon-catalog::after,
.nav-icon-news::after {
  left: 8px;
  top: 8px;
  width: 7px;
  height: 2px;
  background: currentColor;
  box-shadow: 0 5px 0 currentColor;
}

.nav-icon-category::before {
  left: 4px;
  top: 4px;
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: currentColor;
  box-shadow: 9px 0 0 currentColor, 0 9px 0 currentColor, 9px 9px 0 currentColor;
}

.nav-icon-gallery::before {
  inset: 4px 3px;
  border: 2px solid currentColor;
  border-radius: 4px;
}

.nav-icon-gallery::after {
  right: 6px;
  top: 7px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.nav-icon-guide::after {
  left: 10px;
  top: 4px;
  width: 2px;
  height: 14px;
  background: currentColor;
}

.nav-icon-contact::before {
  left: 4px;
  top: 6px;
  width: 14px;
  height: 10px;
  border: 2px solid currentColor;
  border-radius: 3px;
}

.nav-icon-contact::after {
  left: 5px;
  top: 6px;
  width: 12px;
  height: 8px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
}

html[data-theme="light"] .catalog-search label:not(.sr-only),
html[data-theme="light"] .admin-product-search label,
html[data-theme="light"] .order-search label {
  color: #071e38 !important;
  text-shadow: none !important;
}

html[data-theme="light"] input,
html[data-theme="light"] textarea,
html[data-theme="light"] select,
html[data-theme="light"] .catalog-search input,
html[data-theme="light"] .landing-search input {
  color: #071e38 !important;
}

html[data-theme="light"] input::placeholder,
html[data-theme="light"] textarea::placeholder,
html[data-theme="light"] .catalog-search input::placeholder,
html[data-theme="light"] .landing-search input::placeholder {
  color: #6a7c8f !important;
  opacity: 1 !important;
}

.detail-media > span,
.product-image > span,
html[data-theme="dark"] .detail-media > span,
html[data-theme="dark"] .product-image > span {
  background: rgba(255, 250, 240, 0.96) !important;
  color: #071e38 !important;
  text-shadow: none !important;
}

.product-actions:not(.product-actions-food),
body.has-landing-header .product-actions:not(.product-actions-food) {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 7px !important;
  width: 100% !important;
}

.product-actions:not(.product-actions-food) > form,
body.has-landing-header .product-actions:not(.product-actions-food) > form {
  display: contents !important;
  width: auto !important;
}

.product-actions .cart-icon-button,
.product-actions .chat-icon-button,
body.has-landing-header .product-actions .cart-icon-button,
body.has-landing-header .product-actions .chat-icon-button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 5px !important;
  width: 100% !important;
  min-width: 0 !important;
  height: 40px !important;
  min-height: 40px !important;
  padding: 0 8px !important;
  border-radius: 10px !important;
  overflow: hidden !important;
}

.product-actions .cart-icon-button b,
.product-actions .chat-icon-button b,
.detail-cart-button b,
.detail-chat-button b {
  display: inline !important;
  color: inherit !important;
  font-size: 0.75rem !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}

.product-actions .chat-icon-button span,
.detail-chat-button span {
  flex: 0 0 auto !important;
  width: 17px !important;
  height: 15px !important;
  border: 2px solid currentColor !important;
  border-radius: 6px !important;
  background: transparent !important;
}

.product-actions .chat-icon-button span::after,
.detail-chat-button span::after {
  display: none !important;
}

.product-actions .buy-now-button,
body.has-landing-header .product-actions .buy-now-button {
  grid-column: 1 / -1 !important;
  width: 100% !important;
  min-width: 0 !important;
  height: 40px !important;
  min-height: 40px !important;
}

.product-actions-food .food-chat-button {
  grid-column: 1 / -1 !important;
}

.detail-cart-button,
.detail-chat-button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  width: 100% !important;
  min-width: 0 !important;
}

.buy-box > div {
  grid-template-columns: 94px minmax(98px, 1fr) minmax(92px, 1fr) minmax(128px, 1.2fr) !important;
}

.size-modal-options {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

.size-modal-options .size-modal-label {
  grid-column: 1 / -1 !important;
}

.size-option {
  grid-template-columns: minmax(0, 1fr) !important;
  justify-items: center !important;
  min-height: 70px !important;
  text-align: center !important;
}

.size-option strong,
.size-option span,
.size-option small {
  text-align: center !important;
}

.order-product-list {
  display: grid !important;
  gap: 12px !important;
  margin-top: 18px !important;
}

.order-product-card {
  display: grid !important;
  grid-template-columns: 96px minmax(0, 1fr) minmax(120px, auto) !important;
  align-items: center !important;
  gap: 14px !important;
  border: 1px solid rgba(9, 48, 82, 0.12) !important;
  border-radius: 14px !important;
  background: rgba(255, 255, 255, 0.86) !important;
  padding: 12px !important;
  box-shadow: 0 12px 30px rgba(9, 48, 82, 0.08) !important;
}

.order-product-card img,
.order-table-product img {
  width: 96px !important;
  height: 96px !important;
  border-radius: 12px !important;
  object-fit: cover !important;
  background: #edf8fc !important;
}

.order-product-info strong,
.order-product-info span,
.order-product-price span,
.order-product-price strong {
  display: block !important;
}

.order-product-info strong {
  color: var(--ink) !important;
  font-size: 1rem !important;
}

.order-product-info span,
.order-product-price span {
  color: var(--muted) !important;
  font-weight: 800 !important;
}

.order-product-price {
  text-align: right !important;
}

.order-product-price strong {
  color: var(--maroon) !important;
  font-size: 1.05rem !important;
}

.order-table-product {
  display: grid !important;
  grid-template-columns: 64px minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 10px !important;
  min-width: 220px !important;
}

.order-table-product img {
  width: 64px !important;
  height: 64px !important;
  border-radius: 9px !important;
}

.order-table-product strong,
.order-table-product small {
  display: block !important;
}

.cart-item {
  grid-template-columns: 38px 96px minmax(0, 1fr) 86px 118px 184px !important;
  grid-template-areas: "select image info qty subtotal actions" !important;
}

.cart-item > .cart-item-info {
  grid-area: info !important;
  min-width: 0 !important;
}

.cart-item > .cart-item-actions {
  grid-area: actions !important;
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 8px !important;
  width: 100% !important;
  min-width: 0 !important;
}

.cart-item > .cart-item-actions .table-action {
  width: 100% !important;
  min-width: 0 !important;
  text-align: center !important;
}

.cart-view-product {
  border-color: rgba(9, 48, 82, 0.16) !important;
  background: rgba(255, 255, 255, 0.88) !important;
  color: #071e38 !important;
}

html[data-theme="dark"] .order-product-card,
html[data-theme="dark"] .cart-view-product {
  border-color: rgba(126, 216, 255, 0.18) !important;
  background: rgba(8, 23, 43, 0.74) !important;
  color: #f5fbff !important;
}

html[data-theme="dark"] .order-product-info strong,
html[data-theme="dark"] .order-product-price strong {
  color: #f5fbff !important;
}

html[data-theme="dark"] .order-product-info span,
html[data-theme="dark"] .order-product-price span {
  color: #b8d2e8 !important;
}

.order-detail .section-heading.compact h1 {
  font-size: clamp(2rem, 5vw, 4.2rem) !important;
  line-height: 0.98 !important;
  overflow-wrap: anywhere !important;
}

.detail-copy,
body.has-landing-header .detail-copy {
  gap: 12px !important;
}

.detail-copy h1,
body.has-landing-header .detail-copy h1 {
  font-size: clamp(2rem, 5vw, 4.6rem) !important;
  line-height: 0.98 !important;
}

@media (max-width: 900px) {
  .buy-box > div {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .buy-box > div input,
  .buy-box > div .buy-now-button {
    grid-column: 1 / -1 !important;
  }

  .cart-item {
    grid-template-columns: 34px 78px minmax(0, 1fr) !important;
    grid-template-areas:
      "select image info"
      "qty qty qty"
      "subtotal actions actions" !important;
  }

  .cart-item > input[type="number"] {
    width: 100% !important;
  }
}

@media (max-width: 760px) {
  .landing-nav a {
    display: flex !important;
  }

  .product-actions:not(.product-actions-food),
  body.has-landing-header .product-actions:not(.product-actions-food) {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 6px !important;
  }

  .product-actions .cart-icon-button,
  .product-actions .chat-icon-button,
  body.has-landing-header .product-actions .cart-icon-button,
  body.has-landing-header .product-actions .chat-icon-button {
    height: 37px !important;
    min-height: 37px !important;
    padding: 0 6px !important;
  }

  .product-actions .cart-icon-button b,
  .product-actions .chat-icon-button b {
    font-size: 0.68rem !important;
  }

  .product-actions .buy-now-button,
  body.has-landing-header .product-actions .buy-now-button {
    height: 38px !important;
    min-height: 38px !important;
  }

  .detail-copy h1,
  body.has-landing-header .detail-copy h1 {
    font-size: clamp(1.72rem, 7.8vw, 2.35rem) !important;
    line-height: 1.05 !important;
  }

  .detail-spec {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  .detail-description {
    font-size: 0.9rem !important;
    line-height: 1.48 !important;
  }

  .size-modal-options {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  .size-option {
    min-height: 62px !important;
    padding: 9px 8px !important;
  }

  .size-option strong {
    font-size: 0.88rem !important;
  }

  .size-option span,
  .size-option small {
    font-size: 0.72rem !important;
  }

  .order-detail .section-heading.compact h1 {
    font-size: clamp(1.55rem, 8vw, 2.2rem) !important;
    line-height: 1.08 !important;
  }

  .order-detail .section-heading.compact p {
    font-size: 0.92rem !important;
    line-height: 1.45 !important;
  }

  .order-product-card {
    grid-template-columns: 82px minmax(0, 1fr) !important;
    align-items: start !important;
    gap: 10px !important;
    padding: 10px !important;
  }

  .order-product-card img {
    width: 82px !important;
    height: 82px !important;
  }

  .order-product-price {
    grid-column: 2 !important;
    text-align: left !important;
  }
}

@media (max-width: 420px) {
  .product-actions .cart-icon-button b,
  .product-actions .chat-icon-button b {
    font-size: 0.64rem !important;
  }

  .product-actions .chat-icon-button span,
  .detail-chat-button span {
    width: 15px !important;
    height: 13px !important;
  }

  .cart-icon-button .cart-plus-icon {
    transform: scale(0.86) !important;
  }

  .cart-item {
    grid-template-columns: 30px 72px minmax(0, 1fr) !important;
    gap: 9px !important;
    padding: 10px !important;
  }

  .cart-item > img {
    width: 72px !important;
    height: 72px !important;
  }
}

/* 2026-09-13 navbar, chat, guide and compact choice polish. */
.landing-nav > a,
.main-nav > a {
  position: relative !important;
  flex: 0 0 auto !important;
  min-width: 0 !important;
  justify-content: center !important;
  gap: 8px !important;
  overflow: visible !important;
  text-overflow: clip !important;
  white-space: nowrap !important;
}

.landing-nav > a .nav-menu-icon,
.main-nav > a .nav-menu-icon {
  order: 0 !important;
  width: 19px !important;
  height: 19px !important;
  flex: 0 0 19px !important;
}

.landing-nav > a {
  padding: 0 clamp(10px, 1vw, 18px) !important;
  font-size: 0.92rem !important;
  letter-spacing: 0 !important;
}

.landing-nav > a.active {
  min-width: 184px !important;
  justify-content: center !important;
  padding-left: 28px !important;
}

.main-nav {
  gap: 4px !important;
}

.main-nav > a {
  padding: 0 clamp(9px, 0.8vw, 15px) !important;
  font-size: 0.88rem !important;
}

@media (min-width: 1281px) {
  .main-nav > a {
    padding-right: 11px !important;
    padding-left: 11px !important;
    font-size: 0.82rem !important;
  }

  .main-nav > a .nav-menu-icon {
    width: 17px !important;
    height: 17px !important;
    flex-basis: 17px !important;
  }
}

.chat-icon-button > span,
.detail-chat-button > span {
  position: relative !important;
  display: inline-block !important;
  width: 20px !important;
  height: 15px !important;
  flex: 0 0 20px !important;
  border: 2px solid currentColor !important;
  border-radius: 6px !important;
  background: transparent !important;
}

.chat-icon-button > span::before,
.detail-chat-button > span::before {
  content: "" !important;
  position: absolute !important;
  left: 4px !important;
  top: 4px !important;
  width: 3px !important;
  height: 3px !important;
  border-radius: 50% !important;
  background: currentColor !important;
  box-shadow: 5px 0 0 currentColor, 10px 0 0 currentColor !important;
}

.chat-icon-button > span::after,
.detail-chat-button > span::after {
  content: "" !important;
  display: block !important;
  position: absolute !important;
  left: 2px !important;
  bottom: -6px !important;
  width: 6px !important;
  height: 6px !important;
  border-left: 2px solid currentColor !important;
  border-bottom: 2px solid currentColor !important;
  background: transparent !important;
  transform: skewY(-28deg) !important;
}

.product-actions .chat-icon-button b,
.detail-chat-button b {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  max-width: none !important;
  overflow: visible !important;
  text-overflow: clip !important;
  white-space: nowrap !important;
}

.product-actions .cart-icon-button b,
.product-actions .chat-icon-button b {
  font-size: clamp(0.64rem, 0.72vw, 0.76rem) !important;
}

.product-actions .chat-icon-button,
.detail-chat-button {
  min-width: 0 !important;
  overflow: visible !important;
}

.product-actions .chat-icon-button {
  padding-right: 6px !important;
  padding-left: 6px !important;
}

.product-actions .chat-icon-button > span,
.detail-chat-button > span {
  flex: 0 0 17px !important;
}

.food-only-buy-box .food-chat-button {
  gap: 8px !important;
  padding-right: 10px !important;
  padding-left: 10px !important;
}

.food-only-buy-box .food-chat-button b {
  font-size: 0.78rem !important;
}

.buy-box > div {
  grid-template-columns: 88px minmax(122px, 1fr) minmax(138px, 1fr) minmax(104px, 0.82fr) !important;
  gap: 8px !important;
}

.buy-box .detail-cart-button,
.buy-box .detail-chat-button,
.buy-box .buy-now-button {
  min-width: 0 !important;
  width: 100% !important;
  padding-right: 10px !important;
  padding-left: 10px !important;
}

.buy-box .detail-chat-button b,
.buy-box .detail-cart-button b,
.buy-box .buy-now-button {
  white-space: nowrap !important;
}

@media (max-width: 900px) {
  .buy-box > div {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  .buy-box > div > input[type="number"],
  .buy-box > div > .buy-now-button {
    grid-column: 1 / -1 !important;
  }

  .buy-box .detail-cart-button,
  .buy-box .detail-chat-button,
  .buy-box .buy-now-button {
    width: 100% !important;
    min-width: 0 !important;
  }
}

.size-modal-options > .size-option {
  grid-column: auto !important;
  min-width: 0 !important;
}

.guide-book article {
  grid-template-columns: 46px minmax(0, 1fr) !important;
  align-items: center !important;
}

@media (min-width: 900px) {
  .size-modal-options {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 760px) {
  .landing-nav > a,
  .main-nav > a {
    justify-content: flex-start !important;
    padding-right: 12px !important;
    padding-left: 12px !important;
    font-size: 0.98rem !important;
  }

  .landing-nav > a.active {
    justify-content: flex-start !important;
    padding-left: 12px !important;
  }

  .product-actions .chat-icon-button b,
  .detail-chat-button b {
    font-size: 0.62rem !important;
  }

  .chat-icon-button > span,
  .detail-chat-button > span {
    width: 17px !important;
    height: 13px !important;
    flex-basis: 17px !important;
  }

  .chat-icon-button > span::before,
  .detail-chat-button > span::before {
    left: 3px !important;
    top: 3px !important;
    width: 2px !important;
    height: 2px !important;
    box-shadow: 4px 0 0 currentColor, 8px 0 0 currentColor !important;
  }

  .guide-book article {
    grid-template-columns: 40px minmax(0, 1fr) !important;
    gap: 10px !important;
    padding: 12px !important;
  }
}

@media (min-width: 1181px) {
  body.has-landing-header .landing-mobile-menu {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0 !important;
    border-top: 0 !important;
  }

  body.has-landing-header .landing-mobile-menu .landing-actions {
    order: 1 !important;
    width: 100% !important;
    min-height: 54px !important;
    justify-content: flex-end !important;
    gap: 14px !important;
    border-bottom: 1px solid rgba(8, 42, 72, 0.12) !important;
  }

  body.has-landing-header .landing-mobile-menu .landing-nav {
    order: 2 !important;
    width: 100% !important;
    min-height: 50px !important;
    justify-content: flex-start !important;
  }

  html[data-theme="dark"] body.has-landing-header .landing-mobile-menu .landing-actions {
    border-bottom-color: rgba(126, 216, 255, 0.18) !important;
  }
}

@media (max-width: 1180px) {
  body.has-landing-header .landing-mobile-menu.is-open {
    display: flex !important;
    flex-direction: column !important;
  }

  body.has-landing-header .landing-mobile-menu .landing-actions {
    order: 1 !important;
    border-top: 0 !important;
    padding-top: 0 !important;
  }

  body.has-landing-header .landing-mobile-menu .landing-nav {
    order: 2 !important;
  }
}

@media (max-width: 420px) {
  .product-actions .chat-icon-button b,
  .detail-chat-button b {
    font-size: 0.56rem !important;
  }
}

/* Keep desktop header controls beside search and let the navbar fill its row. */
@media (min-width: 1181px) {
  body.has-landing-header .landing-brand-row {
    grid-template-columns: minmax(360px, 0.92fr) minmax(300px, 420px) minmax(340px, auto) !important;
    align-items: center !important;
    gap: clamp(14px, 2vw, 32px) !important;
  }

  body.has-landing-header .landing-brand-row > .landing-actions {
    display: flex !important;
    grid-column: 3 !important;
    grid-row: 1 !important;
    width: 100% !important;
    min-width: 0 !important;
    justify-content: flex-end !important;
    gap: clamp(10px, 1.1vw, 18px) !important;
    align-self: center !important;
  }

  body.has-landing-header .landing-brand-row > .landing-actions .theme-toggle {
    flex: 0 0 74px !important;
    width: 74px !important;
    min-width: 74px !important;
  }

  body.has-landing-header .landing-mobile-menu {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    border-top: 1px solid rgba(8, 42, 72, 0.12) !important;
  }

  body.has-landing-header .landing-mobile-menu .landing-nav {
    display: flex !important;
    width: 100% !important;
    min-height: 50px !important;
    margin: 0 !important;
    border-top: 0 !important;
    gap: 0 !important;
  }

  body.has-landing-header .landing-mobile-menu .landing-nav > a {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    justify-content: center !important;
    padding-right: 12px !important;
    padding-left: 12px !important;
  }

  body.has-landing-header .landing-mobile-menu .landing-nav > a.active {
    min-width: 0 !important;
    justify-content: center !important;
    padding-right: 12px !important;
    padding-left: 12px !important;
  }
}

@media (max-width: 1180px) {
  body.has-landing-header .landing-brand-row > .landing-actions {
    display: none !important;
    grid-column: 1 / -1 !important;
    grid-row: 2 !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  body.has-landing-header .landing-brand-row > .landing-actions.is-open {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    align-items: stretch !important;
    gap: 10px !important;
    margin: 10px 0 12px !important;
    border: 1px solid rgba(127, 18, 49, 0.14) !important;
    border-radius: 16px !important;
    background: rgba(255, 255, 255, 0.98) !important;
    padding: 10px !important;
  }

  body.has-landing-header .landing-brand-row > .landing-actions.is-open .theme-toggle,
  body.has-landing-header .landing-brand-row > .landing-actions.is-open .landing-login-link,
  body.has-landing-header .landing-brand-row > .landing-actions.is-open .landing-cart-link {
    width: 100% !important;
    justify-content: center !important;
    border: 1px solid rgba(127, 18, 49, 0.14) !important;
    border-radius: 14px !important;
    background: rgba(255, 255, 255, 0.72) !important;
    color: #071e38 !important;
    padding: 11px 14px !important;
  }

  html[data-theme="dark"] body.has-landing-header .landing-brand-row > .landing-actions.is-open {
    border-color: rgba(255, 91, 171, 0.28) !important;
    background: rgba(30, 3, 20, 0.98) !important;
  }

  html[data-theme="dark"] body.has-landing-header .landing-brand-row > .landing-actions.is-open .theme-toggle,
  html[data-theme="dark"] body.has-landing-header .landing-brand-row > .landing-actions.is-open .landing-login-link,
  html[data-theme="dark"] body.has-landing-header .landing-brand-row > .landing-actions.is-open .landing-cart-link {
    border-color: rgba(255, 91, 171, 0.28) !important;
    background: rgba(255, 91, 171, 0.12) !important;
    color: #fff5fb !important;
  }
}

/* Make every product action readable on narrow cards and detail layouts. */
@media (max-width: 760px) {
  body.has-landing-header .product-card .product-actions:not(.product-actions-food),
  .product-card .product-actions:not(.product-actions-food) {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 6px !important;
    width: 100% !important;
  }

  body.has-landing-header .product-card .product-actions:not(.product-actions-food) > form,
  .product-card .product-actions:not(.product-actions-food) > form {
    display: contents !important;
  }

  body.has-landing-header .product-card .product-actions .cart-icon-button,
  body.has-landing-header .product-card .product-actions .chat-icon-button,
  .product-card .product-actions .cart-icon-button,
  .product-card .product-actions .chat-icon-button {
    display: inline-flex !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 42px !important;
    height: auto !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
    overflow: hidden !important;
    padding: 5px 6px !important;
  }

  body.has-landing-header .product-card .product-actions .cart-icon-button b,
  body.has-landing-header .product-card .product-actions .chat-icon-button b,
  .product-card .product-actions .cart-icon-button b,
  .product-card .product-actions .chat-icon-button b {
    min-width: 0 !important;
    max-width: 100% !important;
    overflow-wrap: anywhere !important;
    white-space: normal !important;
    text-align: center !important;
    line-height: 1.05 !important;
    font-size: clamp(0.6rem, 2.5vw, 0.72rem) !important;
  }

  body.has-landing-header .product-card .product-actions .cart-plus-icon,
  .product-card .product-actions .cart-plus-icon {
    flex: 0 0 18px !important;
    width: 18px !important;
    height: 18px !important;
  }

  body.has-landing-header .product-card .product-actions .chat-icon-button > span,
  .product-card .product-actions .chat-icon-button > span {
    flex: 0 0 17px !important;
    width: 17px !important;
    height: 14px !important;
  }

  body.has-landing-header .product-card .product-actions .buy-now-button,
  .product-card .product-actions .buy-now-button {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 42px !important;
    height: auto !important;
    padding: 8px 10px !important;
    line-height: 1.05 !important;
    white-space: normal !important;
  }
}

@media (max-width: 900px) {
  .buy-box:not(.food-only-buy-box) > div {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  .buy-box:not(.food-only-buy-box) > div > input[type="number"] {
    grid-column: 1 / -1 !important;
  }

  .buy-box:not(.food-only-buy-box) > div > .detail-cart-button {
    grid-column: 1 !important;
  }

  .buy-box:not(.food-only-buy-box) > div > .detail-chat-button {
    grid-column: 2 !important;
  }

  .buy-box:not(.food-only-buy-box) > div > .buy-now-button {
    grid-column: 1 / -1 !important;
  }

  .buy-box .detail-cart-button,
  .buy-box .detail-chat-button,
  .buy-box .buy-now-button {
    min-width: 0 !important;
    min-height: 42px !important;
    height: auto !important;
    padding: 8px 7px !important;
    line-height: 1.05 !important;
  }

  .buy-box .detail-cart-button b,
  .buy-box .detail-chat-button b,
  .buy-box .buy-now-button {
    max-width: 100% !important;
    overflow-wrap: anywhere !important;
    white-space: normal !important;
    text-align: center !important;
  }
}

/* Final product detail layout overrides. */
.detail-layout,
body.has-landing-header .detail-layout {
  display: grid !important;
  width: 100% !important;
  max-width: 1480px !important;
  min-width: 0 !important;
  margin: 0 auto !important;
  grid-template-columns: minmax(0, 0.96fr) minmax(0, 1.04fr) !important;
  grid-template-areas:
    "media copy"
    "actions copy" !important;
  gap: 16px !important;
  align-items: start !important;
  box-sizing: border-box !important;
  overflow: visible !important;
  border: 1px solid rgba(9, 48, 82, 0.12) !important;
  border-radius: 18px !important;
  background: rgba(255, 255, 255, 0.42) !important;
  padding: clamp(12px, 1.7vw, 22px) !important;
  box-shadow: 0 18px 44px rgba(8, 42, 72, 0.08) !important;
}

.has-app-sidebar .detail-layout,
body.has-landing-header.has-app-sidebar .detail-layout {
  max-width: none !important;
  margin-right: 0 !important;
  margin-left: 0 !important;
}

.detail-layout > .detail-media,
body.has-landing-header .detail-layout > .detail-media {
  grid-area: media !important;
  width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}

.detail-layout > .detail-copy,
body.has-landing-header .detail-layout > .detail-copy {
  grid-area: copy !important;
  min-width: 0 !important;
  width: 100% !important;
  box-sizing: border-box !important;
  align-self: stretch !important;
  gap: 12px !important;
  padding: clamp(16px, 2vw, 26px) !important;
  border: 1px solid rgba(9, 48, 82, 0.12) !important;
  border-radius: 14px !important;
  background: rgba(255, 255, 255, 0.76) !important;
  overflow: hidden !important;
}

.detail-layout > .buy-box,
body.has-landing-header .detail-layout > .buy-box {
  grid-area: actions !important;
  width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
  align-self: start !important;
  gap: 8px !important;
  padding: 12px !important;
  border: 1px solid rgba(9, 48, 82, 0.12) !important;
  box-shadow: 0 10px 26px rgba(8, 42, 72, 0.08) !important;
}

.detail-layout > .buy-box:not(.food-only-buy-box) > div,
body.has-landing-header .detail-layout > .buy-box:not(.food-only-buy-box) > div {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 8px !important;
  min-width: 0 !important;
}

.detail-layout > .buy-box:not(.food-only-buy-box) > div > .buy-now-button,
body.has-landing-header .detail-layout > .buy-box:not(.food-only-buy-box) > div > .buy-now-button {
  grid-column: 1 / -1 !important;
}

.detail-layout > .buy-box .detail-cart-button,
.detail-layout > .buy-box .detail-chat-button,
.detail-layout > .buy-box .buy-now-button,
body.has-landing-header .detail-layout > .buy-box .detail-cart-button,
body.has-landing-header .detail-layout > .buy-box .detail-chat-button,
body.has-landing-header .detail-layout > .buy-box .buy-now-button {
  width: 100% !important;
  min-width: 0 !important;
  min-height: 44px !important;
  height: auto !important;
  box-sizing: border-box !important;
  padding: 8px 10px !important;
  line-height: 1.12 !important;
  text-align: center !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
}

.detail-layout > .food-only-buy-box > div,
body.has-landing-header .detail-layout > .food-only-buy-box > div {
  display: block !important;
  min-width: 0 !important;
}

.detail-layout > .food-only-buy-box form,
body.has-landing-header .detail-layout > .food-only-buy-box form {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
}

.detail-layout .detail-copy h1,
body.has-landing-header .detail-layout .detail-copy h1 {
  max-width: 100% !important;
  font-size: clamp(2rem, 3.4vw, 3.5rem) !important;
  line-height: 1.02 !important;
  overflow-wrap: anywhere !important;
}

.detail-layout .detail-description,
body.has-landing-header .detail-layout .detail-description {
  margin: 0 !important;
  font-size: clamp(0.94rem, 1.1vw, 1.08rem) !important;
  line-height: 1.48 !important;
}

.detail-layout .detail-spec,
body.has-landing-header .detail-layout .detail-spec {
  gap: 7px !important;
}

.detail-layout .detail-spec div,
body.has-landing-header .detail-layout .detail-spec div {
  grid-template-columns: minmax(58px, 82px) minmax(0, 1fr) !important;
  gap: 8px !important;
  padding-top: 8px !important;
  overflow-wrap: anywhere !important;
}

.detail-layout .detail-copy .variant-preview-list,
body.has-landing-header .detail-layout .detail-copy .variant-preview-list {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 7px !important;
  margin: 4px 0 !important;
}

.detail-layout .detail-copy .color-preview-list,
body.has-landing-header .detail-layout .detail-copy .color-preview-list {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

.detail-layout .detail-copy .variant-preview-list span,
body.has-landing-header .detail-layout .detail-copy .variant-preview-list span {
  min-width: 0 !important;
  justify-content: center !important;
  padding: 8px 7px !important;
  text-align: center !important;
  overflow-wrap: anywhere !important;
}

.detail-layout .note-box,
body.has-landing-header .detail-layout .note-box {
  border-top: 1px solid rgba(9, 48, 82, 0.12) !important;
  padding: 12px 0 0 !important;
}

.detail-media > img,
body.has-landing-header .detail-media > img {
  height: clamp(300px, 35vw, 520px) !important;
  min-height: 0 !important;
}

.size-modal-quantity {
  display: grid;
  gap: 7px;
  margin-top: 10px;
  border-top: 1px solid rgba(9, 48, 82, 0.12);
  padding-top: 10px;
}

.size-modal-quantity[hidden] {
  display: none !important;
}

.size-modal-stepper {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  gap: 7px;
  min-width: 0;
}

.size-modal-stepper button,
.size-modal-stepper input {
  min-width: 0;
  min-height: 44px;
  box-sizing: border-box;
  border: 1px solid rgba(9, 48, 82, 0.16);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
  font: inherit;
  font-weight: 900;
  text-align: center;
}

.size-modal-stepper button {
  cursor: pointer;
  font-size: 1.25rem;
}

.size-modal-stepper button:hover {
  border-color: var(--premium-action);
  background: rgba(165, 0, 45, 0.08);
}

html[data-theme="dark"] .detail-layout,
html[data-theme="dark"] body.has-landing-header .detail-layout,
html[data-theme="dark"] .detail-layout > .detail-copy,
html[data-theme="dark"] body.has-landing-header .detail-layout > .detail-copy,
html[data-theme="dark"] .detail-layout > .buy-box,
html[data-theme="dark"] body.has-landing-header .detail-layout > .buy-box {
  border-color: rgba(126, 216, 255, 0.18) !important;
  background: rgba(8, 23, 43, 0.76) !important;
}

html[data-theme="dark"] .size-modal-quantity {
  border-top-color: rgba(126, 216, 255, 0.18);
}

html[data-theme="dark"] .size-modal-stepper button,
html[data-theme="dark"] .size-modal-stepper input {
  border-color: rgba(126, 216, 255, 0.2);
  background: rgba(4, 14, 28, 0.88);
  color: #f5fbff;
}

@media (max-width: 980px) {
  .detail-layout,
  body.has-landing-header .detail-layout {
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-areas:
      "media"
      "actions"
      "copy" !important;
    max-width: 760px !important;
    margin-right: auto !important;
    margin-left: auto !important;
  }

  .has-app-sidebar .detail-layout,
  body.has-landing-header.has-app-sidebar .detail-layout {
    max-width: none !important;
  }
}

@media (max-width: 560px) {
  .detail-layout,
  body.has-landing-header .detail-layout {
    gap: 10px !important;
    border-radius: 14px !important;
    padding: 9px !important;
  }

  .detail-layout > .detail-copy,
  body.has-landing-header .detail-layout > .detail-copy {
    padding: 14px !important;
    border-radius: 12px !important;
  }

  .detail-layout .detail-copy .color-preview-list,
  body.has-landing-header .detail-layout .detail-copy .color-preview-list {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .detail-media > img,
  body.has-landing-header .detail-media > img {
    height: clamp(230px, 70vw, 350px) !important;
  }
}


/* 2026-09-20 final footer visibility override */
.site-footer {
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr) minmax(190px, .78fr) minmax(0, 1.1fr) !important;
  align-items: stretch;
}

.site-footer .footer-links {
  display: grid !important;
  align-content: start;
  gap: 10px;
  min-width: 0;
}

@media (max-width: 1100px) {
  .site-footer {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 680px) {
  .site-footer {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

/* 2026-09-20: institution photos replace decorative tenun backgrounds. */
:root {
  --institution-photo: url("../img/lapas-kupang-light.png");
}

html[data-theme="dark"] {
  --institution-photo: url("../img/lapas-kupang-dark.png");
}

:is(.catalog-hero, .admin-hero, .cta-section) {
  background-image: var(--institution-photo) !important;
  background-position: center 52% !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
}

:is(.catalog-hero, .admin-hero, .cta-section) :is(h1, h2, h3, strong, p, .eyebrow) {
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.48);
}

.hero-image {
  background-image: var(--institution-photo) !important;
  background-position: center 52% !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
}

.site-footer,
body.has-landing-header .site-footer,
body.has-app-sidebar .site-footer {
  background-image:
    linear-gradient(105deg, rgba(111, 7, 43, 0.84) 0%, rgba(122, 8, 45, 0.72) 44%, rgba(6, 48, 61, 0.72) 100%),
    var(--institution-photo) !important;
  background-position: center, center 56% !important;
  background-size: cover, cover !important;
  background-repeat: no-repeat !important;
}

html[data-theme="dark"] :is(.catalog-hero, .admin-hero, .cta-section) {
  background-image: var(--institution-photo) !important;
  background-position: center 52% !important;
  background-size: cover !important;
}

html[data-theme="dark"] :is(.catalog-hero, .admin-hero, .cta-section) :is(h1, h2, h3, strong, p, .eyebrow) {
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.58);
}

html[data-theme="dark"] .hero-image {
  background-image: var(--institution-photo) !important;
  background-position: center 52% !important;
  background-size: cover !important;
}

html[data-theme="dark"] .site-footer,
html[data-theme="dark"] body.has-landing-header .site-footer,
html[data-theme="dark"] body.has-app-sidebar .site-footer {
  background-image:
    linear-gradient(105deg, rgba(55, 5, 26, 0.82) 0%, rgba(69, 8, 31, 0.68) 44%, rgba(3, 27, 40, 0.7) 100%),
    var(--institution-photo) !important;
  background-position: center, center 56% !important;
  background-size: cover, cover !important;
}

/* News description uses true black on the light photograph. */
.catalog-hero .news-hero-description,
body.has-landing-header .subpage > .catalog-hero:first-child .news-hero-description {
  color: #050505 !important;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.84) !important;
}

html[data-theme="dark"] .catalog-hero .news-hero-description,
html[data-theme="dark"] body.has-landing-header .subpage > .catalog-hero:first-child .news-hero-description {
  color: #f7fbff !important;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.78) !important;
}

/* The office photograph belongs behind the plain authentication card. */
body.has-landing-header .auth-page {
  background-image:
    linear-gradient(rgba(232, 246, 253, 0.24), rgba(232, 246, 253, 0.48)),
    url("../img/lapas-kupang-light.png") !important;
  background-position: center, center 52% !important;
  background-size: cover, cover !important;
  background-repeat: no-repeat !important;
}

body.has-landing-header .auth-card {
  border-color: rgba(21, 78, 104, 0.18) !important;
  background: #ffffff !important;
  background-image: none !important;
  color: #10293c !important;
  box-shadow: 0 24px 64px rgba(5, 32, 50, 0.24) !important;
}

body.has-landing-header .auth-card :is(h1, h2, h3, strong, p, label) {
  text-shadow: none !important;
}

html[data-theme="dark"] body.has-landing-header .auth-page {
  background-image:
    linear-gradient(rgba(2, 11, 23, 0.34), rgba(2, 11, 23, 0.56)),
    url("../img/lapas-kupang-dark.png") !important;
  background-position: center, center 52% !important;
  background-size: cover, cover !important;
}

html[data-theme="dark"] body.has-landing-header .auth-card {
  border-color: rgba(117, 198, 202, 0.22) !important;
  background: #111c27 !important;
  background-image: none !important;
  color: #f3f7f8 !important;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.48) !important;
}

/* Keep public hero copy readable without hiding the institution photograph. */
body.has-landing-header .subpage > .catalog-hero:first-child {
  background-image: var(--institution-photo) !important;
  background-position: center 52% !important;
  background-size: cover !important;
}

body.has-landing-header .catalog-hero > :is(div, form) {
  position: relative;
  z-index: 1;
  min-width: 0;
}

body.has-landing-header .catalog-hero h1 {
  color: #061d33 !important;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.96),
    0 4px 18px rgba(6, 29, 51, 0.14) !important;
}

body.has-landing-header .catalog-hero > div:first-child > p:not(.eyebrow) {
  color: #0b304a !important;
  font-weight: 600;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.96) !important;
}

body.has-landing-header .catalog-hero .eyebrow {
  color: #97052f !important;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) !important;
}

body.has-landing-header .catalog-hero .news-hero-description {
  color: #050505 !important;
}

body.has-landing-header .catalog-search label {
  color: #061d33 !important;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.92) !important;
}

body.has-landing-header .catalog-search input::placeholder {
  color: #526a7d;
  opacity: 1;
}

html[data-theme="dark"] body.has-landing-header .subpage > .catalog-hero:first-child {
  background-image: var(--institution-photo) !important;
  background-position: center 52% !important;
  background-size: cover !important;
}

html[data-theme="dark"] body.has-landing-header .catalog-hero h1 {
  color: #f7fbff !important;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.74) !important;
}

html[data-theme="dark"] body.has-landing-header .catalog-hero > div:first-child > p:not(.eyebrow),
html[data-theme="dark"] body.has-landing-header .catalog-hero .news-hero-description {
  color: #dcecf2 !important;
  text-shadow: 0 2px 7px rgba(0, 0, 0, 0.84) !important;
}

html[data-theme="dark"] body.has-landing-header .catalog-hero .eyebrow {
  color: #ffd27a !important;
  text-shadow: 0 2px 7px rgba(0, 0, 0, 0.86) !important;
}

html[data-theme="dark"] body.has-landing-header .catalog-search label {
  color: #f5fbff !important;
  text-shadow: 0 2px 7px rgba(0, 0, 0, 0.84) !important;
}

html[data-theme="dark"] body.has-landing-header .catalog-search input::placeholder {
  color: #b7c7d0;
  opacity: 1;
}

/* 2026-09-20: Tentang FLOBAKARYA. */
.nav-icon-about::before {
  inset: 2px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.nav-icon-about::after {
  content: "i";
  inset: 0;
  display: grid;
  place-items: center;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
}

.about-page {
  --about-maroon: #9f0731;
  --about-maroon-deep: #72051f;
  --about-aqua: #2c9eb2;
  --about-aqua-soft: #dff5f6;
  --about-gold: #d6a23c;
  --about-navy: #061f38;
  --about-copy: #183b50;
  --about-line: rgba(6, 55, 78, 0.16);
  display: grid;
  gap: 0;
  color: var(--about-copy);
}

body.has-landing-header .about-page {
  width: min(1480px, calc(100% - 44px));
  padding-top: calc(var(--landing-contact-height) + var(--landing-header-height) + 28px);
}

.about-page :is(h1, h2, h3, p, blockquote) {
  margin-top: 0;
}

.about-page :is(h1, h2, h3) {
  color: var(--about-navy);
}

.about-page h2 {
  font-size: 2.75rem;
  line-height: 1.04;
}

.about-page h3 {
  font-size: 1.32rem;
  line-height: 1.28;
}

.about-page p,
.about-page li,
.about-page address {
  line-height: 1.75;
}

.about-kicker {
  margin-bottom: 10px;
  color: var(--about-maroon) !important;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.about-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: 500px;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.62fr);
  align-items: stretch;
  overflow: hidden;
  border: 1px solid rgba(8, 56, 76, 0.18);
  border-radius: 8px 8px 0 0;
  background-image: var(--institution-photo);
  background-position: center 50%;
  background-size: cover;
  box-shadow: 0 24px 64px rgba(7, 39, 61, 0.12);
}

.about-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  bottom: 0;
  left: 55%;
  width: 7px;
  background: var(--about-maroon);
}

.about-hero-copy {
  display: flex;
  max-width: 840px;
  flex-direction: column;
  justify-content: center;
  padding: 58px 56px 62px;
}

.about-hero h1 {
  margin-bottom: 20px;
  color: var(--about-navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 5rem;
  line-height: 0.94;
  letter-spacing: 0;
  white-space: nowrap;
}

.about-hero-lead {
  max-width: 700px;
  margin-bottom: 28px;
  color: #244b61;
  font-size: 1.22rem;
  font-weight: 650;
}

.about-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 24px;
}

.about-hero-actions .primary-button {
  min-height: 50px;
  border-radius: 7px;
}

.about-anchor-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 12px;
  color: var(--about-navy);
  font-weight: 900;
  text-decoration: none;
}

.about-anchor-link::after {
  content: "";
  width: 30px;
  height: 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: skewX(-35deg);
}

.about-anchor-link:hover {
  color: var(--about-maroon);
}

.about-hero-emblem {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 18px;
  min-width: 0;
  padding: 46px 36px;
  background: rgba(5, 31, 53, 0.84);
  color: #ffffff;
  text-align: center;
}

.about-hero-emblem img {
  width: min(250px, 80%);
  aspect-ratio: 1;
  border: 7px solid rgba(255, 255, 255, 0.86);
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.3);
}

.about-hero-emblem strong {
  max-width: 340px;
  color: #ffe0a0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.34rem;
  line-height: 1.45;
}

.about-section {
  padding: 80px 56px;
  border-right: 1px solid var(--about-line);
  border-bottom: 1px solid var(--about-line);
  border-left: 1px solid var(--about-line);
  background: #ffffff;
}

.about-section-heading {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: start;
  gap: 24px;
}

.about-section-heading > span,
.about-growth-heading > span {
  display: grid;
  width: 62px;
  height: 62px;
  place-items: center;
  border: 1px solid rgba(159, 7, 49, 0.25);
  border-radius: 50%;
  color: var(--about-maroon);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.22rem;
  font-weight: 800;
}

.about-intro {
  display: grid;
  grid-template-columns: minmax(270px, 0.72fr) minmax(0, 1.35fr) minmax(220px, 0.62fr);
  align-items: start;
  gap: 44px;
}

.about-intro-copy {
  padding-top: 4px;
  color: #27495d;
  font-size: 1.05rem;
}

.about-intro-copy p:last-child,
.about-logo-copy p:last-child,
.about-sepe-copy p:last-child,
.about-growth-copy p:last-child {
  margin-bottom: 0;
}

.about-bridge-note {
  display: grid;
  gap: 12px;
  padding: 8px 0 8px 24px;
  border-left: 5px solid var(--about-aqua);
  color: #315468;
}

.about-bridge-note strong {
  color: var(--about-navy);
  font-size: 1.05rem;
}

.about-logo-section {
  display: grid;
  grid-template-columns: minmax(300px, 0.8fr) minmax(0, 1.2fr);
  align-items: center;
  gap: 72px;
  padding: 84px 72px;
  border-right: 1px solid var(--about-line);
  border-bottom: 1px solid var(--about-line);
  border-left: 1px solid var(--about-line);
  background: var(--about-aqua-soft);
  scroll-margin-top: 120px;
}

body.has-landing-header .about-logo-section {
  scroll-margin-top: calc(var(--landing-contact-height) + var(--landing-header-height) + 18px);
}

.about-logo-stage {
  position: relative;
  display: grid;
  justify-items: center;
}

.about-logo-stage::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
  background: rgba(6, 55, 78, 0.2);
}

.about-logo-stage img {
  position: relative;
  width: min(330px, 90%);
  aspect-ratio: 1;
  border: 10px solid #ffffff;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 24px 55px rgba(5, 54, 77, 0.18);
}

.about-logo-stage span {
  position: relative;
  margin-top: -18px;
  border: 1px solid rgba(214, 162, 60, 0.6);
  border-radius: 999px;
  background: var(--about-navy);
  color: #ffffff;
  padding: 9px 20px;
  font-weight: 900;
}

.about-logo-copy {
  max-width: 740px;
  font-size: 1.08rem;
}

.about-sepe {
  display: grid;
  grid-template-columns: 90px minmax(0, 1.12fr) minmax(280px, 0.78fr);
  align-items: start;
  gap: 38px;
}

.about-symbol-number {
  color: rgba(159, 7, 49, 0.22);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 4.8rem;
  font-weight: 800;
  line-height: 0.9;
}

.about-sepe-copy {
  color: #27495d;
  font-size: 1.04rem;
}

.about-value-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.about-value-list li {
  position: relative;
  min-height: 52px;
  border-bottom: 1px solid var(--about-line);
  padding: 13px 12px 13px 34px;
  color: var(--about-navy);
  font-weight: 800;
}

.about-value-list li::before {
  content: "";
  position: absolute;
  top: 21px;
  left: 5px;
  width: 12px;
  height: 12px;
  border: 3px solid var(--about-aqua);
  border-radius: 50%;
}

.about-color-section {
  background: #f2f7f8;
}

.about-wide-heading {
  display: grid;
  max-width: 850px;
  gap: 4px;
  margin-bottom: 34px;
}

.about-wide-heading > p:last-child {
  max-width: 680px;
  color: #456276;
  font-size: 1.02rem;
}

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

.about-color-item {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(6, 55, 78, 0.14);
  border-top: 6px solid var(--item-color);
  border-radius: 8px;
  background: #ffffff;
  padding: 30px 30px 26px;
  box-shadow: 0 14px 34px rgba(7, 44, 65, 0.08);
}

.about-color-item.color-maroon {
  --item-color: #9f0731;
}

.about-color-item.color-aqua {
  --item-color: #2c9eb2;
}

.about-color-item.color-gold {
  --item-color: #d6a23c;
}

.about-color-item.color-white {
  --item-color: #d7e1e5;
}

.about-color-swatch {
  float: right;
  width: 44px;
  height: 44px;
  margin: -4px 0 14px 20px;
  border: 1px solid rgba(6, 31, 56, 0.16);
  border-radius: 50%;
  background: var(--item-color);
  box-shadow: inset 0 0 0 6px rgba(255, 255, 255, 0.38);
}

.about-color-item small {
  display: block;
  margin-bottom: 11px;
  color: var(--item-color);
  font-weight: 900;
}

.about-color-item h3 {
  max-width: 520px;
  margin-bottom: 16px;
}

.about-color-item p {
  color: #405f71;
}

.about-color-item blockquote {
  margin-bottom: 0;
  border-left: 4px solid var(--item-color);
  padding: 6px 0 6px 16px;
  color: var(--about-navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1.5;
}

.about-growth {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1.18fr);
  gap: 70px;
  padding: 86px 58px;
  border-top: 8px solid var(--about-aqua);
  background: var(--about-navy);
  color: #d9eaf0;
}

.about-growth :is(h2, .about-kicker) {
  color: #ffffff !important;
}

.about-growth-heading > span {
  margin-bottom: 28px;
  border-color: rgba(255, 217, 145, 0.42);
  color: #ffd991;
}

.about-growth-copy {
  align-self: end;
  border-left: 5px solid var(--about-maroon);
  padding-left: 34px;
  font-size: 1.06rem;
}

.about-tagline-heading {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1.3fr);
  align-items: end;
  column-gap: 56px;
  margin-bottom: 46px;
}

.about-tagline-heading .about-kicker {
  grid-column: 1 / -1;
}

.about-tagline-heading h2 {
  margin-bottom: 0;
}

.about-tagline-heading blockquote {
  margin-bottom: 0;
  color: var(--about-maroon);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.35;
}

.about-tagline-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--about-line);
}

.about-tagline-steps article {
  min-width: 0;
  padding: 28px 30px 4px;
  border-left: 1px solid var(--about-line);
}

.about-tagline-steps article:first-child {
  padding-left: 0;
  border-left: 0;
}

.about-tagline-steps article:last-child {
  padding-right: 0;
}

.about-tagline-steps span {
  display: block;
  margin-bottom: 22px;
  color: var(--about-aqua);
  font-weight: 900;
}

.about-tagline-steps p {
  color: #405f71;
}

.about-store {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1.2fr) auto;
  align-items: center;
  gap: 38px;
  padding: 46px 56px;
  border-top: 5px solid var(--about-gold);
  border-radius: 0 0 8px 8px;
  background: var(--about-maroon-deep);
  color: #ffffff;
}

.about-store :is(h2, .about-kicker) {
  color: #ffffff !important;
}

.about-store h2 {
  margin-bottom: 0;
  font-size: 2.1rem;
}

.about-store address {
  margin: 0;
  color: #fde6ed;
  font-style: normal;
  font-weight: 700;
}

.about-store-link {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 7px;
  color: #ffffff;
  padding: 0 22px;
  font-weight: 900;
  text-decoration: none;
}

.about-store-link:hover {
  border-color: #ffffff;
  background: #ffffff;
  color: var(--about-maroon-deep);
}

html[data-theme="dark"] .about-page {
  --about-copy: #d7e7ed;
  --about-line: rgba(129, 195, 202, 0.2);
  color: var(--about-copy);
}

html[data-theme="dark"] .about-page :is(h1, h2, h3) {
  color: #f5fbff;
}

html[data-theme="dark"] .about-hero {
  border-color: rgba(113, 191, 198, 0.22);
  background-image: var(--institution-photo);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.36);
}

html[data-theme="dark"] .about-hero h1,
html[data-theme="dark"] .about-anchor-link {
  color: #f5fbff;
}

html[data-theme="dark"] .about-hero-lead {
  color: #d1e5eb;
}

html[data-theme="dark"] .about-hero-emblem {
  background: rgba(67, 7, 31, 0.74);
}

html[data-theme="dark"] .about-section {
  background: #0b1823;
}

html[data-theme="dark"] .about-intro-copy,
html[data-theme="dark"] .about-sepe-copy,
html[data-theme="dark"] .about-wide-heading > p:last-child,
html[data-theme="dark"] .about-color-item p,
html[data-theme="dark"] .about-tagline-steps p {
  color: #c7d9df;
}

html[data-theme="dark"] .about-bridge-note {
  color: #bdd1d9;
}

html[data-theme="dark"] .about-bridge-note strong,
html[data-theme="dark"] .about-value-list li,
html[data-theme="dark"] .about-color-item blockquote {
  color: #f2f8fa;
}

html[data-theme="dark"] .about-logo-section {
  background: #0b2730;
}

html[data-theme="dark"] .about-logo-stage::before {
  background: rgba(108, 195, 200, 0.28);
}

html[data-theme="dark"] .about-logo-stage img {
  border-color: #eaf6f7;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
}

html[data-theme="dark"] .about-color-section {
  background: #08131d;
}

html[data-theme="dark"] .about-color-item {
  border-color: rgba(117, 189, 196, 0.2);
  background: #102330;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.24);
}

html[data-theme="dark"] .about-color-item.color-white {
  --item-color: #dce8eb;
}

html[data-theme="dark"] .about-color-swatch {
  border-color: rgba(255, 255, 255, 0.24);
}

html[data-theme="dark"] .about-growth {
  background: #06131f;
}

html[data-theme="dark"] .about-store {
  background: #63051f;
}

.about-page a:focus-visible {
  outline: 3px solid var(--about-aqua);
  outline-offset: 3px;
}

@media (max-width: 1180px) {
  .about-hero {
    min-height: 450px;
    grid-template-columns: minmax(0, 1fr) 320px;
  }

  .about-hero-copy {
    padding: 46px 40px;
  }

  .about-hero h1 {
    font-size: 4rem;
  }

  .about-intro {
    grid-template-columns: 230px minmax(0, 1fr);
  }

  .about-bridge-note {
    grid-column: 2;
  }

  .about-sepe {
    grid-template-columns: 70px minmax(0, 1fr);
  }

  .about-value-list {
    grid-column: 2;
  }

  .about-store {
    grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1.2fr);
  }

  .about-store-link {
    width: max-content;
  }
}

@media (max-width: 820px) {
  body.has-landing-header .about-page,
  .about-page {
    width: min(100% - 28px, 720px);
  }

  body.has-landing-header .about-page {
    padding-top: calc(var(--landing-contact-height) + var(--landing-header-height) + 18px);
  }

  .about-hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .about-hero::after {
    top: auto;
    right: 0;
    bottom: 245px;
    left: 0;
    width: auto;
    height: 6px;
  }

  .about-hero-copy {
    min-height: 420px;
    padding: 46px 34px;
  }

  .about-hero h1 {
    font-size: 3.45rem;
  }

  .about-hero-emblem {
    grid-template-columns: 150px minmax(0, 1fr);
    min-height: 245px;
    padding: 28px 34px;
    text-align: left;
  }

  .about-hero-emblem img {
    width: 150px;
  }

  .about-section,
  .about-logo-section,
  .about-growth,
  .about-store {
    padding: 58px 34px;
  }

  .about-intro,
  .about-logo-section,
  .about-growth,
  .about-tagline-heading,
  .about-store {
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
  }

  .about-bridge-note {
    grid-column: auto;
  }

  .about-logo-stage img {
    width: min(280px, 76%);
  }

  .about-color-grid,
  .about-tagline-steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .about-tagline-heading .about-kicker {
    grid-column: auto;
  }

  .about-tagline-steps article,
  .about-tagline-steps article:first-child,
  .about-tagline-steps article:last-child {
    border-top: 1px solid var(--about-line);
    border-left: 0;
    padding: 28px 0 4px;
  }

  .about-tagline-steps {
    border-top: 0;
  }
}

/* 2026-09-28: product selection, checkout, chat, and order workflow revision. */
body.has-app-sidebar .logged-in-header {
  grid-template-columns: minmax(0, 1fr) auto auto;
}

.header-cart-quick {
  position: relative;
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  border: 1px solid rgba(165, 0, 45, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  color: #8f0028;
}

.header-cart-quick:hover,
.header-cart-quick:focus-visible {
  border-color: #a5002d;
  background: #fff3f7;
}

.header-cart-quick__icon {
  position: relative;
  display: block;
  width: 25px;
  height: 18px;
  border: 2px solid currentColor;
  border-top: 0;
  transform: skew(-7deg);
}

.header-cart-quick__icon::before {
  content: "";
  position: absolute;
  top: -7px;
  left: -6px;
  width: 8px;
  height: 8px;
  border-top: 2px solid currentColor;
}

.header-cart-quick__icon::after {
  content: "";
  position: absolute;
  right: 2px;
  bottom: -7px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: -17px 0 currentColor;
}

.header-cart-quick b {
  position: absolute;
  top: -7px;
  right: -7px;
  display: grid;
  min-width: 24px;
  height: 24px;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #a5002d;
  color: #fff;
  font-size: 0.72rem;
}

.product-card .product-info h3,
body.has-landing-header .product-card .product-info h3 {
  font-size: clamp(1.32rem, 1.4vw, 1.65rem);
  line-height: 1.14;
}

.product-card .product-info h3 a {
  color: #071e38;
  text-decoration: none;
}

.product-actions .chat-icon-button {
  min-width: 0;
  padding-inline: 10px;
}

.product-actions .chat-icon-button b {
  min-width: 0;
  font-size: 0.8rem;
  line-height: 1.15;
  white-space: normal;
  overflow-wrap: anywhere;
}

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

.size-modal-options .size-modal-label {
  grid-column: 1 / -1;
}

.size-option {
  grid-template-columns: 88px minmax(0, 1fr);
  grid-template-rows: auto auto auto;
  align-items: center;
  min-height: 112px;
  padding: 10px;
}

.size-option img {
  grid-row: 1 / span 4;
  width: 88px;
  height: 88px;
  border-radius: 6px;
  object-fit: contain;
  background: #eef8fb;
}

.size-option strong,
.size-option span,
.size-option small {
  min-width: 0;
  overflow-wrap: anywhere;
}

.size-option-dimensions,
.product-detail-v2__size-grid small {
  display: block;
  color: #506b7c;
  font-size: 0.78rem;
  font-weight: 800;
}

.harvest-quantity-product {
  display: block;
  width: min(230px, 100%);
  max-height: 230px;
  margin: 0 auto 14px;
  border-radius: 8px;
  object-fit: contain;
  background: #eef8fb;
}

.harvest-quantity-product[hidden] {
  display: none;
}

.product-lightbox {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: grid;
  place-items: center;
  padding: 20px;
}

.product-lightbox[hidden] {
  display: none;
}

.product-lightbox__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(1, 12, 25, 0.82);
  backdrop-filter: blur(7px);
}

.product-lightbox__dialog {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(980px, 94vw);
  max-height: 92vh;
  place-items: center;
  border-radius: 8px;
  background: #fff;
  padding: 18px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.42);
}

.product-lightbox__dialog img {
  display: block;
  max-width: 100%;
  max-height: calc(92vh - 36px);
  object-fit: contain;
}

.product-lightbox__close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #a5002d;
  color: #fff;
  font-size: 1.7rem;
  cursor: pointer;
}

.is-product-lightbox-open {
  overflow: hidden;
}

.back-to-catalog {
  border: 2px solid #8f0028;
  background: #a5002d;
  color: #fff;
  box-shadow: 0 10px 24px rgba(165, 0, 45, 0.2);
}

.back-to-catalog:hover,
.back-to-catalog:focus-visible {
  background: #071e38;
  border-color: #071e38;
  color: #fff;
}

.chat-bubble.is-own {
  margin-left: auto;
  margin-right: 0;
}

.chat-bubble.is-other {
  margin-left: 0;
  margin-right: auto;
}

.chat-bubble.is-own,
.chat-bubble.is-other {
  width: min(78%, 680px);
}

.chat-bubble.is-own > small,
.chat-bubble.is-other > small,
.chat-bubble .chat-message-meta,
.chat-bubble .chat-message-meta time {
  color: #38556b;
  opacity: 1;
}

.chat-bubble.is-own {
  border-color: rgba(165, 0, 45, 0.4);
  background: #fff0f5;
}

.chat-bubble.is-other {
  border-color: rgba(7, 30, 56, 0.16);
  background: #f1f8fc;
}

.checkout-delivery-method {
  margin-bottom: 24px;
}

.delivery-method-options {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.delivery-method-option {
  min-height: 124px;
  align-items: flex-start;
}

.pickup-location-link {
  display: inline-flex;
  margin-top: 12px;
}

.pickup-location-panel {
  display: grid;
  gap: 5px;
  border-top: 1px solid rgba(9, 48, 82, 0.1);
  border-left: 4px solid #a5002d;
  border-radius: 8px;
  background: rgba(238, 249, 255, 0.66);
  padding: 16px 18px;
}

.checkout-form-card .delivery-location-picker[hidden] {
  display: none;
}

.pickup-location-panel[hidden] {
  display: none;
}

.pickup-location-panel > span {
  color: #a5002d;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.pickup-location-panel > strong {
  color: #071e38;
  font-size: 1rem;
}

.pickup-location-panel > p {
  margin: 0;
  color: #4d6680;
  font-weight: 700;
  line-height: 1.45;
}

html[data-theme="dark"] .pickup-location-panel {
  border-color: rgba(126, 216, 255, 0.22);
  border-left-color: #f01857;
  background: rgba(13, 49, 85, 0.62);
}

html[data-theme="dark"] .pickup-location-panel > span {
  color: #ff9fbd;
}

html[data-theme="dark"] .pickup-location-panel > strong {
  color: #f5fbff;
}

html[data-theme="dark"] .pickup-location-panel > p {
  color: #b8d2e8;
}

.payment-option.is-disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

.checkout-summary-item {
  grid-template-columns: 66px minmax(0, 1fr) auto;
  align-items: center;
}

.checkout-summary-item > img {
  width: 66px;
  height: 66px;
  border-radius: 6px;
  object-fit: contain;
  background: #eef8fb;
}

.order-status-tabs {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  width: 100%;
  margin: 0 0 22px;
  border: 1px solid rgba(7, 30, 56, 0.12);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.order-status-tabs a {
  position: relative;
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #27485e;
  font-weight: 900;
  text-align: center;
  text-decoration: none;
}

.order-status-tab-count {
  display: inline-grid;
  min-width: 25px;
  height: 25px;
  place-items: center;
  border-radius: 999px;
  background: #eef2f5;
  color: #27485e;
  font-size: 0.78rem;
  line-height: 1;
}

.order-status-tabs a:hover,
.order-status-tabs a:focus-visible {
  background: #eef8fb;
  color: #8f0028;
}

.order-status-tabs a.active {
  color: #a5002d;
}

.order-status-tabs a.active .order-status-tab-count {
  background: #a5002d;
  color: #fff;
}

.order-status-tabs a.active::after {
  content: "";
  position: absolute;
  right: 16px;
  bottom: 0;
  left: 16px;
  height: 4px;
  background: #a5002d;
}

.buyer-order-list,
.seller-order-list {
  display: grid;
  gap: 16px;
}

.buyer-order-card,
.seller-order-card {
  border: 1px solid rgba(7, 30, 56, 0.13);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(7, 30, 56, 0.07);
  overflow: hidden;
}

.buyer-order-card > header,
.seller-order-card > header,
.buyer-order-card > footer,
.seller-order-card > footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 18px;
}

.buyer-order-card > header,
.seller-order-card > header {
  border-bottom: 1px solid rgba(7, 30, 56, 0.1);
}

.buyer-order-card > footer,
.seller-order-card > footer {
  border-top: 1px solid rgba(7, 30, 56, 0.1);
  background: #fbfdfe;
}

.buyer-order-card > footer span {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.buyer-order-card > footer strong {
  color: #a5002d;
  font-size: 1.2rem;
}

.buyer-order-product,
.seller-order-body {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 18px;
  color: #071e38;
  text-decoration: none;
}

.buyer-order-product:hover {
  background: #f4fbfe;
}

.buyer-order-product img,
.seller-order-body img {
  width: 104px;
  height: 104px;
  border-radius: 6px;
  object-fit: contain;
  background: #eef8fb;
}

.buyer-order-product span,
.seller-order-body div,
.seller-order-card > header span {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.buyer-order-product strong,
.seller-order-body strong {
  font-size: 1.12rem;
  overflow-wrap: anywhere;
}

.buyer-order-product small,
.seller-order-body small,
.seller-order-card > header small {
  color: #506b7c;
}

.seller-order-body > b {
  color: #a5002d;
  font-size: 1.2rem;
}

.seller-order-alert,
.buyer-received-note {
  margin: 0 18px 14px;
  border-left: 4px solid #a5002d;
  background: #fff0f5;
  padding: 10px 12px;
  color: #6f1431;
}

.seller-order-card footer form {
  margin: 0;
}

.seller-order-product-preview {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.seller-order-product-preview > span {
  color: #a5002d;
  font-weight: 900;
}

.seller-order-product-preview > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.seller-order-product-preview figure {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  margin: 0;
  border: 1px solid rgba(7, 30, 56, 0.12);
  border-radius: 6px;
  padding: 8px;
}

.seller-order-product-preview img {
  width: 70px;
  height: 70px;
  border-radius: 5px;
  object-fit: contain;
  background: #eef8fb;
}

.seller-order-product-preview figcaption {
  color: #173950;
  font-size: 0.84rem;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.order-received-card {
  border-color: rgba(0, 124, 104, 0.28);
  background: #effbf7;
}

html[data-theme="dark"] .header-cart-quick,
html[data-theme="dark"] .order-status-tabs,
html[data-theme="dark"] .buyer-order-card,
html[data-theme="dark"] .seller-order-card,
html[data-theme="dark"] .product-lightbox__dialog {
  border-color: rgba(126, 216, 255, 0.22);
  background: #0b2030;
  color: #f5fbff;
}

html[data-theme="dark"] .product-detail-v2__back {
  border-color: #f5c85d;
  background: #f5c85d;
  color: #071e38;
}

html[data-theme="dark"] .header-cart-quick {
  color: #f5c85d;
}

html[data-theme="dark"] .product-card .product-info h3 a,
html[data-theme="dark"] .buyer-order-product,
html[data-theme="dark"] .buyer-order-product strong,
html[data-theme="dark"] .seller-order-body strong,
html[data-theme="dark"] .seller-order-product-preview figcaption {
  color: #f5fbff;
}

html[data-theme="dark"] .buyer-order-product small,
html[data-theme="dark"] .seller-order-body small,
html[data-theme="dark"] .seller-order-card > header small,
html[data-theme="dark"] .order-status-tabs a {
  color: #c6dce5;
}

html[data-theme="dark"] .order-status-tabs a.active,
html[data-theme="dark"] .buyer-order-card > footer strong,
html[data-theme="dark"] .seller-order-body > b {
  color: #ffb5ca;
}

html[data-theme="dark"] .order-status-tab-count {
  background: #173847;
  color: #dff7ff;
}

html[data-theme="dark"] .order-status-tabs a.active .order-status-tab-count {
  background: #d0003d;
  color: #fff;
}

html[data-theme="dark"] .buyer-order-card > footer,
html[data-theme="dark"] .seller-order-card > footer {
  border-color: rgba(126, 216, 255, 0.14);
  background: #071926;
}

html[data-theme="dark"] .chat-bubble.is-own {
  border-color: rgba(255, 133, 169, 0.38);
  background: #50142b;
}

html[data-theme="dark"] .chat-bubble.is-other {
  border-color: rgba(126, 216, 255, 0.24);
  background: #123149;
}

html[data-theme="dark"] .chat-bubble.is-own > small,
html[data-theme="dark"] .chat-bubble.is-other > small,
html[data-theme="dark"] .chat-bubble .chat-message-meta,
html[data-theme="dark"] .chat-bubble .chat-message-meta time {
  color: #e1edf2;
}

html[data-theme="dark"] .size-option img,
html[data-theme="dark"] .checkout-summary-item > img,
html[data-theme="dark"] .buyer-order-product img,
html[data-theme="dark"] .seller-order-body img,
html[data-theme="dark"] .seller-order-product-preview img,
html[data-theme="dark"] .harvest-quantity-product {
  background: #071926;
}

html[data-theme="dark"] .seller-order-alert,
html[data-theme="dark"] .buyer-received-note,
html[data-theme="dark"] .order-received-card {
  background: #361525;
  color: #ffe1e9;
}

@media (max-width: 820px) {
  .delivery-method-options,
  .size-modal-options,
  .seller-order-product-preview > div {
    grid-template-columns: minmax(0, 1fr);
  }

  .order-status-tabs {
    display: flex;
    overflow-x: auto;
    scrollbar-width: thin;
  }

  .order-status-tabs a {
    flex: 0 0 132px;
  }

  .buyer-order-product,
  .seller-order-body {
    grid-template-columns: 86px minmax(0, 1fr);
  }

  .buyer-order-product img,
  .seller-order-body img {
    width: 86px;
    height: 86px;
  }

  .seller-order-body > b {
    grid-column: 2;
  }

  .buyer-order-card > footer,
  .seller-order-card > footer {
    align-items: stretch;
    flex-direction: column;
  }

  .buyer-order-card > footer .primary-button,
  .seller-order-card > footer .primary-button,
  .seller-order-card > footer .ghost-button,
  .seller-order-card > footer form,
  .seller-order-card > footer form button {
    width: 100%;
  }
}

@media (max-width: 560px) {
  body.has-app-sidebar .logged-in-header {
    grid-template-columns: minmax(0, 1fr) 48px 48px;
    gap: 7px;
  }

  .header-cart-quick,
  body.has-app-sidebar .logged-in-header .sidebar-navbar-toggle {
    width: 48px;
    height: 48px;
  }

  .chat-bubble.is-own,
  .chat-bubble.is-other {
    width: 92%;
  }

  .checkout-summary-item {
    grid-template-columns: 54px minmax(0, 1fr);
  }

  .checkout-summary-item > img {
    width: 54px;
    height: 54px;
  }

  .checkout-summary-item > b {
    grid-column: 2;
  }

  .buyer-order-product,
  .seller-order-body {
    gap: 12px;
    padding: 14px;
  }

  .buyer-order-card > header,
  .seller-order-card > header {
    align-items: flex-start;
    flex-direction: column;
  }

  .size-option {
    grid-template-columns: 74px minmax(0, 1fr);
  }

  .size-option img {
    width: 74px;
    height: 74px;
  }
}

@media (max-width: 760px) {
  body.has-landing-header .product-card .product-actions .cart-icon-button b,
  body.has-landing-header .product-card .product-actions .chat-icon-button b,
  .product-card .product-actions .cart-icon-button b,
  .product-card .product-actions .chat-icon-button b {
    overflow-wrap: normal !important;
    word-break: normal !important;
    hyphens: none !important;
  }
}

html[data-theme="dark"] .size-option-dimensions,
html[data-theme="dark"] .product-detail-v2__size-grid small {
  color: #c6dce5;
}

/* 2026-09-21: editable, owner-only chat messages for buyers and sellers. */
.chat-message-body {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.chat-message-meta {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.chat-message-meta > small {
  min-width: 0;
}

.chat-message-actions {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 5px;
}

.chat-message-action {
  display: inline-grid;
  width: 30px;
  height: 30px;
  min-width: 30px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
  color: inherit;
  opacity: 0.82;
  padding: 0;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, opacity 160ms ease, transform 160ms ease;
}

.chat-message-action::before {
  width: 15px;
  height: 15px;
  background: currentColor;
  content: "";
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.chat-message-action-edit::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z'/%3E%3Cpath d='m15 5 4 4'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z'/%3E%3Cpath d='m15 5 4 4'/%3E%3C/svg%3E");
}

.chat-message-action-delete::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6h18'/%3E%3Cpath d='M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6'/%3E%3Cpath d='M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2'/%3E%3Cpath d='M10 11v6'/%3E%3Cpath d='M14 11v6'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6h18'/%3E%3Cpath d='M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6'/%3E%3Cpath d='M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2'/%3E%3Cpath d='M10 11v6'/%3E%3Cpath d='M14 11v6'/%3E%3C/svg%3E");
}

.chat-message-action:hover,
.chat-message-action:focus-visible {
  background: rgba(255, 255, 255, 0.24);
  opacity: 1;
  transform: translateY(-1px);
}

.chat-message-action-delete:hover,
.chat-message-action-delete:focus-visible {
  border-color: #ff8eae;
  color: #ff8eae;
}

.chat-message-action:focus-visible {
  outline: 2px solid #7ed8ff;
  outline-offset: 2px;
}

.chat-message-action:disabled {
  cursor: wait;
  opacity: 0.48;
  transform: none;
}

.chat-seller .chat-message-action,
.chat-system .chat-message-action {
  background: rgba(7, 30, 56, 0.06);
  color: #254b68;
}

.chat-seller .chat-message-action:hover,
.chat-seller .chat-message-action:focus-visible {
  background: rgba(11, 95, 130, 0.12);
  color: #0b5f82;
}

.chat-bubble.is-deleted {
  border-style: dashed;
  box-shadow: none;
  opacity: 0.82;
}

.chat-message-deleted {
  font-style: italic;
  opacity: 0.82;
}

.chat-message-editor {
  display: grid;
  gap: 8px;
}

.chat-message-editor-label,
.chat-message-editor textarea {
  display: block;
  width: 100%;
}

.chat-message-editor textarea {
  min-height: 78px;
  max-height: 220px;
  resize: vertical;
  border: 1px solid rgba(7, 30, 56, 0.22);
  border-radius: 7px;
  background: #fff;
  color: #071e38;
  padding: 10px 11px;
  font: inherit;
  line-height: 1.45;
}

.chat-message-editor textarea:focus {
  border-color: #0b5f82;
  outline: 3px solid rgba(126, 216, 255, 0.3);
}

.chat-message-editor-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.chat-message-save,
.chat-message-cancel {
  min-height: 34px;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 6px 12px;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 900;
  cursor: pointer;
}

.chat-message-save {
  border-color: #a5002d;
  background: #a5002d;
  color: #fff;
}

.chat-message-cancel {
  border-color: rgba(7, 30, 56, 0.2);
  background: rgba(255, 255, 255, 0.86);
  color: #071e38;
}

.chat-message-save:hover,
.chat-message-save:focus-visible {
  background: #c91852;
}

.chat-message-cancel:hover,
.chat-message-cancel:focus-visible {
  background: #e9f7ff;
}

html[data-theme="dark"] .chat-seller .chat-message-action,
html[data-theme="dark"] .chat-system .chat-message-action {
  background: rgba(126, 216, 255, 0.08);
  color: #dff5ff;
}

html[data-theme="dark"] .chat-seller .chat-message-action:hover,
html[data-theme="dark"] .chat-seller .chat-message-action:focus-visible,
html[data-theme="dark"] .chat-system .chat-message-action:hover,
html[data-theme="dark"] .chat-system .chat-message-action:focus-visible {
  background: rgba(126, 216, 255, 0.18);
  color: #fff;
}

html[data-theme="dark"] .chat-message-editor textarea {
  border-color: rgba(126, 216, 255, 0.36);
  background: #06172c;
  color: #f5fbff;
}

html[data-theme="dark"] .chat-message-cancel {
  border-color: rgba(126, 216, 255, 0.28);
  background: rgba(13, 49, 85, 0.9);
  color: #f5fbff;
}

@media (max-width: 560px) {
  .chat-message-meta {
    align-items: flex-end;
    flex-wrap: wrap;
  }

  .chat-message-actions {
    margin-left: auto;
  }
}

@media (max-width: 560px) {
  body.has-landing-header .about-page,
  .about-page {
    width: calc(100% - 20px);
  }

  .about-page h2 {
    font-size: 2.15rem;
  }

  .about-page h3 {
    font-size: 1.18rem;
  }

  .about-hero-copy {
    min-height: 390px;
    padding: 38px 22px 42px;
  }

  .about-hero h1 {
    font-size: 2.2rem;
  }

  .about-hero-lead {
    font-size: 1.05rem;
  }

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

  .about-hero-actions .primary-button,
  .about-anchor-link {
    justify-content: center;
  }

  .about-hero::after {
    bottom: 282px;
  }

  .about-hero-emblem {
    grid-template-columns: minmax(0, 1fr);
    min-height: 282px;
    gap: 12px;
    padding: 24px 20px;
    text-align: center;
  }

  .about-hero-emblem img {
    width: 132px;
  }

  .about-hero-emblem strong {
    font-size: 1.08rem;
  }

  .about-section,
  .about-logo-section,
  .about-growth,
  .about-store {
    padding: 46px 22px;
  }

  .about-section-heading {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .about-section-heading > span,
  .about-growth-heading > span {
    width: 50px;
    height: 50px;
  }

  .about-intro {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .about-sepe {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .about-symbol-number {
    font-size: 3.6rem;
  }

  .about-value-list {
    grid-column: auto;
  }

  .about-color-item {
    padding: 24px 20px 22px;
  }

  .about-growth-copy {
    padding-left: 20px;
  }

  .about-tagline-heading blockquote {
    font-size: 1.55rem;
  }

  .about-store h2 {
    font-size: 1.8rem;
  }

  .about-store-link {
    width: 100%;
  }
}

@media (max-width: 360px) {
  .about-hero h1 {
    font-size: 2rem;
  }
}

/* Keep light-theme copy crisp on the unobstructed office photograph. */
html:not([data-theme="dark"]) :is(.catalog-hero, .admin-hero, .cta-section) :is(h1, h2, h3, strong),
html:not([data-theme="dark"]) body.has-landing-header .catalog-hero h1,
html:not([data-theme="dark"]) .about-hero h1 {
  color: #ffffff !important;
  text-shadow:
    0 2px 2px rgba(2, 15, 27, 0.98),
    0 0 8px rgba(2, 15, 27, 0.88),
    0 5px 18px rgba(2, 15, 27, 0.7) !important;
}

html:not([data-theme="dark"]) :is(.catalog-hero, .admin-hero, .cta-section) p,
html:not([data-theme="dark"]) body.has-landing-header .catalog-hero > div:first-child > p:not(.eyebrow),
html:not([data-theme="dark"]) body.has-landing-header .catalog-hero .news-hero-description,
html:not([data-theme="dark"]) .about-hero-lead {
  color: #f7fbff !important;
  text-shadow:
    0 1px 2px rgba(2, 15, 27, 0.98),
    0 0 7px rgba(2, 15, 27, 0.9),
    0 3px 12px rgba(2, 15, 27, 0.74) !important;
}

html:not([data-theme="dark"]) :is(.catalog-hero, .admin-hero) .eyebrow,
html:not([data-theme="dark"]) body.has-landing-header .catalog-hero .eyebrow,
html:not([data-theme="dark"]) .about-hero .about-kicker {
  color: #fff1cf !important;
  text-shadow:
    0 1px 2px rgba(42, 3, 17, 0.98),
    0 0 7px rgba(42, 3, 17, 0.88) !important;
}

html:not([data-theme="dark"]) body.has-landing-header .catalog-search label {
  color: #ffffff !important;
  text-shadow:
    0 1px 2px rgba(2, 15, 27, 0.98),
    0 0 7px rgba(2, 15, 27, 0.9) !important;
}

/* 2026-09-21: about copy alignment and the curated gallery banners. */
.about-page :is(
  .about-intro-copy p,
  .about-bridge-note span,
  .about-logo-copy p,
  .about-sepe-copy p,
  .about-color-item p,
  .about-growth-copy p,
  .about-tagline-steps p
) {
  hyphens: auto;
}

body.has-landing-header .gallery-showcase-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.gallery-showcase-card {
  min-width: 0;
  border-radius: 8px;
}

.gallery-showcase-card img,
body.has-landing-header .gallery-showcase-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #dff3f8;
  object-fit: contain;
}

.gallery-showcase-card > div {
  padding: 18px 20px 20px;
}

.gallery-showcase-card h2 {
  color: #071e38;
  font-size: 1.35rem;
  line-height: 1.25;
}

.gallery-showcase-card p {
  margin: 0;
  color: #3c5a6c;
  line-height: 1.65;
}

html[data-theme="dark"] .gallery-showcase-card img,
html[data-theme="dark"] body.has-landing-header .gallery-showcase-card img {
  background: #071b29;
}

html[data-theme="dark"] .gallery-showcase-card h2 {
  color: #f6fbff;
}

html[data-theme="dark"] .gallery-showcase-card p {
  color: #cbdde3;
}

@media (min-width: 700px) {
  .about-page :is(
    .about-intro-copy p,
    .about-bridge-note span,
    .about-logo-copy p,
    .about-sepe-copy p,
    .about-color-item p,
    .about-growth-copy p,
    .about-tagline-steps p
  ),
  .gallery-showcase-card p {
    text-align: justify;
    text-align-last: left;
  }
}

@media (max-width: 820px) {
  body.has-landing-header .gallery-showcase-grid,
  .gallery-showcase-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .gallery-showcase-card > div {
    padding: 16px 16px 18px;
  }
}

/* Keep the seller order preview readable beside the account sidebar. */
.order-admin-layout > .summary-card > .seller-order-product-preview {
  display: grid;
  justify-content: stretch;
  align-items: stretch;
  gap: 10px;
}

.seller-order-product-preview > span,
.seller-order-product-preview > div,
.seller-order-product-preview figure,
.seller-order-product-preview figcaption {
  min-width: 0;
  width: 100%;
}

.seller-order-product-preview figcaption {
  overflow-wrap: break-word;
  word-break: normal;
}

@media (max-width: 1399px) {
  .has-app-sidebar .order-admin-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .has-app-sidebar .order-admin-layout > .summary-card {
    position: static;
    width: 100%;
  }
}

/* Message ownership controls alignment; text must remain legible in both roles. */
.chat-bubble.is-own,
.chat-bubble.is-other,
.chat-bubble.is-own > span,
.chat-bubble.is-own > p,
.chat-bubble.is-other > span,
.chat-bubble.is-other > p {
  color: #071e38;
}

html[data-theme="dark"] .chat-bubble.is-own,
html[data-theme="dark"] .chat-bubble.is-other,
html[data-theme="dark"] .chat-bubble.is-own > span,
html[data-theme="dark"] .chat-bubble.is-own > p,
html[data-theme="dark"] .chat-bubble.is-other > span,
html[data-theme="dark"] .chat-bubble.is-other > p {
  color: #f5fbff;
}

html[data-theme="dark"] .seller-order-product-preview > span {
  color: #ffabc3;
}

html[data-theme="dark"] .order-step:not(.is-complete):not(.is-current) {
  border-color: rgba(126, 216, 255, 0.18);
  background: #1b303e;
  color: #d8e6ed;
}

/* Final catalog sizing: product names stay prominent and chat labels never clip. */
.product-card .product-info h3,
body.has-landing-header .product-card .product-info h3 {
  font-size: clamp(1.15rem, 1.2vw, 1.3rem) !important;
  line-height: 1.16;
}

.product-card .product-actions .chat-icon-button,
body.has-landing-header .product-card .product-actions .chat-icon-button {
  min-height: 44px !important;
  height: auto !important;
  gap: 4px !important;
  padding-inline: 6px !important;
}

.product-card .product-actions .chat-icon-button b,
body.has-landing-header .product-card .product-actions .chat-icon-button b {
  min-width: 0;
  max-width: 100%;
  font-size: 0.72rem !important;
  line-height: 1.05 !important;
  white-space: normal !important;
  overflow-wrap: normal !important;
  word-break: normal !important;
  hyphens: none !important;
  text-align: center;
}

@media (max-width: 760px) {
  .product-card .product-info h3,
  body.has-landing-header .product-card .product-info h3 {
    font-size: 1rem !important;
  }

  .product-card .product-actions .chat-icon-button b,
  body.has-landing-header .product-card .product-actions .chat-icon-button b {
    font-size: 0.68rem !important;
  }
}

/* 2026-10-01: consistent typography and light-photo contrast. */
body,
body :is(h1, h2, h3, h4, h5, h6, p, a, button, label, input, textarea, select, option, li, dt, dd, strong, small, span, address) {
  letter-spacing: 0 !important;
}

body {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

:is(.subpage, .landing-page, .account-main, .seller-main) :is(h1, h2, h3, h4) {
  overflow-wrap: break-word;
  text-wrap: balance;
}

:is(.subpage, .landing-page, .account-main, .seller-main) :is(p, li, address) {
  line-height: 1.62;
}

html:not([data-theme="dark"]) body {
  color: #0a2940;
}

html:not([data-theme="dark"]) :is(.summary-card, .filter-panel, .product-card, .guide-card, .news-card, .media-card) {
  color: #0a2940;
}

html:not([data-theme="dark"]) :is(.summary-card, .filter-panel, .product-card, .guide-card, .news-card, .media-card) p {
  color: #405f73;
}

html:not([data-theme="dark"]) .catalog-hero .catalog-search > label,
html[data-theme="light"] .catalog-hero .catalog-search > label {
  color: #ffffff !important;
  -webkit-text-stroke: 0.25px rgba(2, 15, 27, 0.72);
  text-shadow:
    0 1px 2px rgba(2, 15, 27, 0.98),
    0 0 8px rgba(2, 15, 27, 0.92),
    0 3px 14px rgba(2, 15, 27, 0.78) !important;
}

html:not([data-theme="dark"]) .about-hero .about-anchor-link {
  color: #ffffff !important;
  -webkit-text-stroke: 0.2px rgba(2, 15, 27, 0.66);
  text-shadow:
    0 1px 2px rgba(2, 15, 27, 0.98),
    0 0 8px rgba(2, 15, 27, 0.92),
    0 3px 14px rgba(2, 15, 27, 0.76) !important;
}

html:not([data-theme="dark"]) .about-hero .about-anchor-link:hover,
html:not([data-theme="dark"]) .about-hero .about-anchor-link:focus-visible {
  color: #fff0bd !important;
}

.about-hero h1 {
  max-width: 100%;
  font-size: 4.5rem;
  line-height: 0.98;
  white-space: normal;
}

.about-intro {
  grid-template-columns: minmax(250px, 0.72fr) minmax(420px, 1.45fr) minmax(250px, 0.72fr);
  gap: 36px;
}

.about-page :is(
  .about-intro-copy p,
  .about-bridge-note span,
  .about-logo-copy p,
  .about-sepe-copy p,
  .about-color-item p,
  .about-growth-copy p,
  .about-tagline-steps p
) {
  hyphens: none;
  text-align: left !important;
  word-spacing: normal;
}

.about-intro-copy p,
.about-logo-copy p,
.about-sepe-copy p,
.about-growth-copy p,
.about-tagline-steps p {
  max-width: 74ch;
}

.about-intro-copy p + p,
.about-logo-copy p + p,
.about-sepe-copy p + p,
.about-growth-copy p + p,
.about-tagline-steps p + p {
  margin-top: 1rem;
}

@media (max-width: 1180px) {
  .about-hero h1 {
    font-size: 3.65rem;
  }

  .about-intro {
    grid-template-columns: minmax(220px, 0.72fr) minmax(0, 1.35fr);
  }

  .about-bridge-note {
    grid-column: 2;
  }
}

@media (max-width: 760px) {
  .about-hero h1 {
    font-size: 2.35rem;
    line-height: 1.04;
  }

  .about-intro,
  .about-bridge-note {
    grid-template-columns: minmax(0, 1fr);
    grid-column: auto;
  }

  :is(.subpage, .landing-page, .account-main, .seller-main) :is(p, li, address) {
    line-height: 1.55;
  }
}

body.has-app-sidebar .about-hero {
  grid-template-columns: minmax(0, 1.35fr) minmax(250px, 0.65fr);
}

body.has-app-sidebar .about-hero-copy {
  padding: 42px 38px 46px;
}

body.has-app-sidebar .about-hero h1 {
  font-size: 3.35rem;
}

body.has-app-sidebar .about-hero-emblem {
  gap: 14px;
  padding: 32px 22px;
}

body.has-app-sidebar .about-hero-emblem img {
  width: min(190px, 78%);
}

body.has-app-sidebar .about-hero-emblem strong {
  font-size: 1.08rem;
}

html[data-theme="dark"] .catalog-hero > div:first-child > p:not(.eyebrow),
html[data-theme="dark"] .about-hero-lead {
  color: #ffffff !important;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 1),
    0 0 8px rgba(0, 0, 0, 0.94),
    0 4px 16px rgba(0, 0, 0, 0.84) !important;
}

html[data-theme="dark"] .about-hero .about-kicker {
  color: #ffe3a3 !important;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 1),
    0 0 8px rgba(0, 0, 0, 0.94) !important;
}

html[data-theme="dark"] .about-hero .about-anchor-link {
  color: #ffffff !important;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 1),
    0 0 8px rgba(0, 0, 0, 0.94) !important;
}

@media (max-width: 980px) {
  body.has-app-sidebar .about-hero {
    grid-template-columns: minmax(0, 1fr);
  }

  body.has-app-sidebar .about-hero::after {
    top: auto;
    right: 0;
    bottom: 250px;
    left: 0;
    width: auto;
    height: 6px;
  }

  body.has-app-sidebar .about-hero-emblem {
    min-height: 250px;
    grid-template-columns: 150px minmax(0, 1fr);
  }
}

/* Keep editorial pages inside the signed-in workspace and preserve natural word spacing. */
body.has-app-sidebar .about-page,
body.has-app-sidebar .about-hero,
body.has-app-sidebar .about-hero-copy,
body.has-app-sidebar .about-hero-emblem {
  min-width: 0;
  max-width: 100%;
}

body.has-app-sidebar .about-page {
  grid-template-columns: minmax(0, 1fr);
}

body.has-app-sidebar .about-hero {
  width: 100%;
}

body.has-app-sidebar .about-hero h1 {
  overflow-wrap: anywhere;
  white-space: normal;
}

body.has-app-sidebar .about-intro {
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
}

body.has-app-sidebar .about-intro .about-bridge-note {
  grid-column: 2;
}

body.has-app-sidebar .about-intro .about-section-heading {
  grid-template-columns: 50px minmax(0, 1fr);
  gap: 14px;
}

body.has-app-sidebar .about-intro .about-section-heading > span {
  width: 50px;
  height: 50px;
}

body.has-app-sidebar .about-intro .about-section-heading h2 {
  font-size: 1.8rem;
}

@media (max-width: 760px) {
  body.has-app-sidebar .about-intro {
    grid-template-columns: minmax(0, 1fr);
  }

  body.has-app-sidebar .about-intro .about-bridge-note {
    grid-column: auto;
  }
}

@media (max-width: 560px) {
  body.has-app-sidebar .logged-in-header .brand strong {
    overflow: visible;
    font-size: 1.05rem !important;
    text-overflow: clip;
  }

  body.has-app-sidebar .about-hero h1 {
    overflow-wrap: normal;
    font-size: 2.2rem;
  }
}

.about-page :is(
  .about-intro-copy p,
  .about-bridge-note span,
  .about-logo-copy p,
  .about-sepe-copy p,
  .about-color-item p,
  .about-growth-copy p,
  .about-tagline-steps p
),
.gallery-showcase-card p,
#tentang .section-heading p {
  hyphens: none;
  text-align: left;
  text-align-last: auto;
  word-spacing: 0;
}

/* Light surfaces use darker accent variants so small editorial labels stay readable. */
html:not([data-theme="dark"]) .about-page > :not(.about-hero) .about-kicker {
  color: #8f0a32 !important;
  text-shadow: none !important;
}

html:not([data-theme="dark"]) .about-page :is(.about-growth, .about-store) .about-kicker {
  color: #fff1cf !important;
  text-shadow:
    0 1px 2px rgba(42, 3, 17, 0.98),
    0 0 7px rgba(42, 3, 17, 0.88) !important;
}

html:not([data-theme="dark"]) .about-color-item.color-aqua small,
html:not([data-theme="dark"]) .about-tagline-steps span {
  color: #126a79;
}

html:not([data-theme="dark"]) .about-color-item.color-gold small {
  color: #795400;
}

html:not([data-theme="dark"]) .about-color-item.color-white small {
  color: #526a73;
}

html:not([data-theme="dark"]) body.has-app-sidebar .chat-bubble.chat-buyer small {
  color: #741638 !important;
}

html[data-theme="dark"] .about-page > :not(.about-hero) .about-kicker {
  color: #ffe0a0 !important;
  text-shadow: none !important;
}

html[data-theme="dark"] .about-section-heading > span,
html[data-theme="dark"] .about-growth-heading > span {
  border-color: rgba(255, 159, 189, 0.56);
  color: #ff9fbd;
}

html[data-theme="dark"] .about-symbol-number {
  color: rgba(255, 159, 189, 0.58);
}

html[data-theme="dark"] .about-tagline-heading blockquote {
  color: #f5cd76;
}

/* The halal mark stays inside food and drink product photography. */
.product-image-link,
.product-detail-v2__zoom-trigger,
.landing-product-card > a,
.cart-item-image,
.checkout-summary-media,
.chat-product-media,
.order-product-media,
.buyer-order-media {
  position: relative;
}

.halal-image-badge {
  position: absolute !important;
  right: 7px !important;
  bottom: 7px !important;
  z-index: 8 !important;
  display: block !important;
  width: 46px !important;
  height: 27px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid rgba(105, 38, 112, 0.34) !important;
  border-radius: 5px !important;
  background-color: #fff !important;
  background-image: url("../img/certificates/halal-indonesia-id53110081219751026.png") !important;
  background-position: left center !important;
  background-repeat: no-repeat !important;
  background-size: auto 100% !important;
  box-shadow: 0 3px 9px rgba(7, 30, 56, 0.22) !important;
  box-sizing: border-box !important;
  pointer-events: none;
}

.halal-image-badge--card {
  width: 72px !important;
  height: 42px !important;
}

.halal-image-badge--detail {
  right: 12px !important;
  bottom: 12px !important;
  width: 92px !important;
  height: 53px !important;
}

.checkout-summary-media {
  width: 66px;
  height: 66px;
}

.checkout-summary-media > img {
  width: 100%;
  height: 100%;
  border-radius: 6px;
  object-fit: contain;
  background: #eef8fb;
}

.chat-product-media {
  display: block;
  width: 96px;
  height: 96px;
}

.chat-product-media > img {
  width: 100% !important;
  height: 100% !important;
}

.order-product-media {
  width: 96px;
  height: 96px;
}

.order-product-media > img {
  width: 100% !important;
  height: 100% !important;
}

.buyer-order-media {
  display: block !important;
  width: 104px;
  height: 104px;
}

.buyer-order-media > img {
  width: 100% !important;
  height: 100% !important;
}

.checkout-bank-account {
  display: grid;
  grid-template-columns: minmax(120px, auto) minmax(0, 1fr);
  gap: 8px 16px;
  margin: 12px 0;
  padding: 14px;
  border: 1px solid rgba(165, 0, 45, 0.2);
  border-radius: 7px;
  background: #fff7fa;
  color: #18384e;
}

.checkout-bank-account > span {
  color: #5b7181;
  font-size: 0.86rem;
  font-weight: 800;
}

.checkout-bank-account > b,
.checkout-bank-account > strong {
  color: #8f0028;
  font-size: 1rem;
  overflow-wrap: anywhere;
}

html[data-theme="dark"] .checkout-bank-account {
  border-color: rgba(111, 205, 239, 0.26);
  background: #102638;
  color: #f7fbff;
}

/* Product reviews and the multi-image product viewer. */
.review-stars {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: #b9c5cb;
  line-height: 1;
}

.review-stars > span {
  font-size: 1rem;
}

.review-stars > .is-filled {
  color: #e69a00;
}

.review-stars--large > span {
  font-size: 1.3rem;
}

.product-card-review-summary,
.product-detail-review-summary {
  display: flex;
  align-items: center;
  width: fit-content;
  color: #466274;
  text-decoration: none;
}

.product-card-review-summary {
  gap: 7px;
  margin-top: -2px;
  font-size: 0.78rem;
  font-weight: 800;
}

.product-card-review-summary:hover span,
.product-detail-review-summary:hover span {
  color: #8f0028;
}

.product-detail-review-summary {
  flex-wrap: wrap;
  gap: 8px;
  margin: -2px 0 4px;
  border-bottom: 1px solid rgba(7, 30, 56, 0.12);
  padding-bottom: 14px;
}

.product-detail-review-summary > strong {
  color: #8f0028;
}

.product-detail-review-summary > span {
  color: #526d7e;
  font-size: 0.88rem;
  font-weight: 800;
}

.buyer-review-editor {
  display: grid;
  gap: 16px;
  margin-top: -1px;
  border: 1px solid rgba(7, 30, 56, 0.13);
  border-top: 3px solid #a5002d;
  border-radius: 0 0 8px 8px;
  background: #fffafc;
  padding: 18px;
}

.buyer-review-editor > header,
.product-review-form__footer,
.product-review-card > header,
.product-reviews__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.buyer-review-editor > header h3,
.buyer-review-editor > header p {
  margin: 0;
}

.buyer-review-editor > header h3 {
  margin-top: 3px;
  color: #071e38;
  font-size: 1.12rem;
}

.verified-review-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border: 1px solid rgba(0, 118, 96, 0.24);
  border-radius: 999px;
  background: #eaf8f4;
  padding: 5px 9px;
  color: #006c5a;
  font-size: 0.72rem;
  font-weight: 900;
}

.product-review-form {
  display: grid;
  gap: 14px;
}

.product-review-form fieldset {
  display: grid;
  gap: 8px;
  margin: 0;
  border: 0;
  padding: 0;
}

.product-review-form legend,
.product-review-form label > span {
  color: #173950;
  font-size: 0.86rem;
  font-weight: 900;
}

.review-star-picker {
  display: flex;
  align-items: center;
  gap: 4px;
}

.review-star-picker label {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(7, 30, 56, 0.13);
  border-radius: 7px;
  background: #fff;
  color: #b9c5cb;
  cursor: pointer;
  transition: border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.review-star-picker label:hover,
.review-star-picker label:focus-within {
  border-color: #e69a00;
  transform: translateY(-1px);
}

.review-star-picker label.is-active {
  border-color: rgba(230, 154, 0, 0.42);
  background: #fff7dd;
  color: #e69a00;
}

.review-star-picker label > span {
  font-size: 1.55rem;
  line-height: 1;
}

.product-review-form textarea {
  width: 100%;
  margin-top: 7px;
  resize: vertical;
}

.product-review-form__footer small {
  color: #5b7181;
}

.product-reviews {
  margin-top: 28px;
  border-top: 1px solid rgba(7, 30, 56, 0.14);
  padding: 32px 0 8px;
  scroll-margin-top: 132px;
}

.product-reviews__heading {
  align-items: flex-end;
  margin-bottom: 22px;
}

.product-reviews__heading h2,
.product-reviews__heading p {
  margin: 0;
}

.product-reviews__heading h2 {
  color: #071e38;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.3rem);
  letter-spacing: 0;
}

.product-reviews__heading > div:first-child > p:last-child {
  margin-top: 7px;
  color: #526d7e;
}

.product-reviews__score {
  display: grid;
  grid-template-columns: auto auto;
  align-items: baseline;
  gap: 3px 8px;
  min-width: 190px;
  border-left: 4px solid #a5002d;
  padding-left: 16px;
}

.product-reviews__score > strong {
  color: #a5002d;
  font-size: 2rem;
}

.product-reviews__score > span,
.product-reviews__score > small {
  color: #526d7e;
  font-weight: 800;
}

.product-reviews__score .review-stars,
.product-reviews__score > small {
  grid-column: 1 / -1;
}

.product-reviews__empty {
  border: 1px dashed rgba(7, 30, 56, 0.22);
  border-radius: 8px;
  padding: 24px;
  text-align: center;
}

.product-reviews__empty strong {
  color: #173950;
  font-size: 1.1rem;
}

.product-reviews__empty p {
  margin: 6px 0 0;
  color: #526d7e;
}

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

.product-review-card {
  display: grid;
  align-content: start;
  gap: 12px;
  min-width: 0;
  border: 1px solid rgba(7, 30, 56, 0.13);
  border-radius: 8px;
  background: #fff;
  padding: 18px;
}

.product-review-card > header {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
}

.product-review-card > header > div:nth-child(2) {
  display: grid;
  justify-items: start;
  gap: 4px;
  min-width: 0;
}

.product-review-card > header strong {
  color: #071e38;
  overflow-wrap: anywhere;
}

.product-review-card time,
.product-review-card > small {
  color: #607888;
  font-size: 0.78rem;
  font-weight: 800;
}

.product-review-avatar {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: #a5002d;
  color: #fff;
  font-weight: 900;
}

.product-review-card__rating {
  display: flex;
  align-items: center;
  gap: 8px;
}

.product-review-card__rating > strong {
  color: #8f0028;
  font-size: 0.86rem;
}

.product-review-card > p {
  margin: 0;
  color: #294b61;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.product-lightbox__dialog {
  grid-template-columns: 52px minmax(0, 1fr) 52px;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 12px;
  width: min(1120px, 96vw);
}

.product-lightbox__stage {
  position: relative;
  grid-column: 2;
  grid-row: 1;
  display: grid;
  width: 100%;
  max-height: calc(92vh - 92px);
  min-height: min(620px, calc(92vh - 92px));
  place-items: center;
  overflow: hidden;
  border-radius: 7px;
  background: #eef5f7;
  touch-action: pan-y;
  user-select: none;
}

.product-lightbox__stage > img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: calc(92vh - 92px);
  object-fit: contain;
}

.product-lightbox__arrow {
  position: relative;
  z-index: 3;
  display: grid;
  grid-row: 1;
  align-self: center;
  width: 48px;
  height: 56px;
  place-items: center;
  border: 1px solid rgba(7, 30, 56, 0.15);
  border-radius: 7px;
  background: #071e38;
  color: #fff;
  cursor: pointer;
}

.product-lightbox__arrow[hidden] {
  display: none;
}

.product-lightbox__arrow::before {
  content: "";
  width: 12px;
  height: 12px;
  border-top: 3px solid currentColor;
  border-left: 3px solid currentColor;
}

.product-lightbox__arrow--prev {
  grid-column: 1;
}

.product-lightbox__arrow--prev::before {
  transform: rotate(-45deg);
}

.product-lightbox__arrow--next {
  grid-column: 3;
}

.product-lightbox__arrow--next::before {
  transform: rotate(135deg);
}

.product-lightbox__arrow:hover,
.product-lightbox__arrow:focus-visible {
  background: #a5002d;
}

.product-lightbox__meta {
  grid-column: 2;
  grid-row: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  color: #3e5d70;
  font-size: 0.88rem;
  font-weight: 800;
}

.product-lightbox__meta span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-lightbox__meta strong {
  color: #8f0028;
  white-space: nowrap;
}

.halal-image-badge--lightbox {
  right: 14px !important;
  bottom: 14px !important;
  width: 104px !important;
  height: 60px !important;
}

html[data-theme="dark"] .product-detail-review-summary {
  border-color: rgba(126, 216, 255, 0.18);
}

html[data-theme="dark"] .product-card-review-summary,
html[data-theme="dark"] .product-detail-review-summary > span,
html[data-theme="dark"] .product-reviews__heading > div:first-child > p:last-child,
html[data-theme="dark"] .product-reviews__score > span,
html[data-theme="dark"] .product-reviews__score > small,
html[data-theme="dark"] .product-review-form__footer small,
html[data-theme="dark"] .product-review-card time,
html[data-theme="dark"] .product-review-card > small {
  color: #c1d7e1;
}

html[data-theme="dark"] .buyer-review-editor,
html[data-theme="dark"] .product-review-card,
html[data-theme="dark"] .product-reviews__empty {
  border-color: rgba(126, 216, 255, 0.22);
  background: #0b2030;
}

html[data-theme="dark"] .buyer-review-editor > header h3,
html[data-theme="dark"] .product-review-form legend,
html[data-theme="dark"] .product-review-form label > span,
html[data-theme="dark"] .product-reviews__heading h2,
html[data-theme="dark"] .product-reviews__empty strong,
html[data-theme="dark"] .product-review-card > header strong,
html[data-theme="dark"] .product-review-card > p {
  color: #f5fbff;
}

html[data-theme="dark"] .review-star-picker label {
  border-color: rgba(126, 216, 255, 0.22);
  background: #071926;
}

html[data-theme="dark"] .review-star-picker label.is-active {
  border-color: rgba(245, 200, 93, 0.54);
  background: #332a13;
  color: #f5c85d;
}

html[data-theme="dark"] .product-lightbox__stage {
  background: #06141f;
}

html[data-theme="dark"] .product-lightbox__meta {
  color: #d7e7ee;
}

@media (max-width: 760px) {
  .buyer-review-editor > header,
  .product-review-form__footer,
  .product-reviews__heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .product-review-form__footer .primary-button {
    width: 100%;
  }

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

  .product-reviews__score {
    width: 100%;
  }

  .product-review-card > header {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .product-review-card time {
    grid-column: 2;
  }

  .product-lightbox {
    padding: 8px;
  }

  .product-lightbox__dialog {
    grid-template-columns: 40px minmax(0, 1fr) 40px;
    gap: 6px;
    width: 100%;
    padding: 10px;
  }

  .product-lightbox__stage {
    min-height: min(620px, calc(92vh - 88px));
  }

  .product-lightbox__arrow {
    width: 38px;
    height: 48px;
  }

  .product-lightbox__close {
    top: 6px;
    right: 6px;
    width: 38px;
    height: 38px;
  }

  .product-lightbox__meta {
    font-size: 0.78rem;
  }

  .halal-image-badge--lightbox {
    right: 8px !important;
    bottom: 8px !important;
    width: 74px !important;
    height: 43px !important;
  }
}

html[data-theme="dark"] .checkout-bank-account > span {
  color: #b9d1df;
}

html[data-theme="dark"] .checkout-bank-account > b,
html[data-theme="dark"] .checkout-bank-account > strong {
  color: #ffd36a;
}

@media (max-width: 560px) {
  .halal-image-badge--card {
    width: 62px !important;
    height: 36px !important;
  }

  .halal-image-badge--detail {
    right: 8px !important;
    bottom: 8px !important;
    width: 74px !important;
    height: 43px !important;
  }

  .checkout-summary-media {
    width: 54px;
    height: 54px;
  }

  .checkout-bank-account {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .checkout-bank-account > strong {
    margin-bottom: 6px;
  }
}

/* Revision 29: denser storefront, clearer order states, and Shopee-style product viewer. */
.product-card[data-product-card-link] {
  cursor: pointer;
  touch-action: manipulation;
}

.product-card[data-product-card-link] .product-image-link {
  touch-action: manipulation;
}

.product-card[data-product-card-link]:focus-visible {
  outline: 3px solid #19a8b8;
  outline-offset: 3px;
}

.product-grid .product-card.reveal {
  opacity: 1;
  transform: none;
}

.product-detail-v2__variant[role="button"] {
  cursor: pointer;
}

.product-detail-v2__variant[role="button"]:focus-visible {
  outline: 3px solid #19a8b8;
  outline-offset: 2px;
}

.product-detail-v2__back.back-to-catalog {
  border: 2px solid #071e38;
  background: #a5002d;
  color: #fff;
  box-shadow: 0 10px 24px rgba(165, 0, 45, 0.24);
}

.product-detail-v2__back.back-to-catalog:hover,
.product-detail-v2__back.back-to-catalog:focus-visible {
  border-color: #071e38;
  background: #071e38;
  color: #fff;
}

.product-lightbox__dialog {
  grid-template-columns: minmax(0, 1.55fr) minmax(250px, 0.75fr);
  grid-template-rows: minmax(0, 1fr);
  align-items: stretch;
  gap: 0;
  width: min(1080px, 96vw);
  max-height: 92vh;
  padding: 0;
  overflow: hidden;
}

.product-lightbox__viewer {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 0;
  place-items: center;
  background: #edf3f6;
}

.product-lightbox__stage {
  grid-column: auto;
  grid-row: auto;
  width: 100%;
  min-height: min(650px, 86vh);
  max-height: 86vh;
  border-radius: 0;
  touch-action: pan-y;
}

.product-lightbox__stage.is-zoomed {
  touch-action: none;
}

.product-lightbox__stage > img {
  width: 100%;
  height: 100%;
  max-height: 86vh;
  object-fit: contain;
  transform-origin: center;
  will-change: transform;
}

.product-lightbox__arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  grid-column: auto;
  grid-row: auto;
  transform: translateY(-50%);
  border: 0;
  background: rgba(7, 30, 56, 0.82);
}

.product-lightbox__arrow--prev {
  left: 12px;
}

.product-lightbox__arrow--next {
  right: 12px;
}

.product-lightbox__zoom-tools {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 6px;
  border-radius: 7px;
  background: rgba(7, 30, 56, 0.9);
  padding: 6px;
  color: #fff;
}

.product-lightbox__zoom-tools button {
  display: grid;
  min-width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 5px;
  background: transparent;
  color: #fff;
  cursor: pointer;
  font-weight: 900;
}

.product-lightbox__zoom-tools button:last-child {
  padding-inline: 10px;
}

.product-lightbox__zoom-tools button:hover,
.product-lightbox__zoom-tools button:focus-visible {
  background: #a5002d;
}

.product-lightbox__zoom-tools button:disabled {
  opacity: 0.42;
  cursor: default;
}

.product-lightbox__zoom-tools strong {
  min-width: 50px;
  text-align: center;
  font-size: 0.78rem;
}

.product-lightbox__rail {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  background: #fff;
  padding: 56px 18px 18px;
}

.product-lightbox__rail h2 {
  margin: 0;
  color: #071e38;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
  line-height: 1.18;
}

.product-lightbox__price {
  color: #a5002d;
  font-size: 1.15rem;
}

.product-lightbox__rail > small {
  margin-top: auto;
  color: #607888;
  line-height: 1.5;
}

.product-lightbox__meta {
  grid-column: auto;
  grid-row: auto;
  border-top: 1px solid rgba(7, 30, 56, 0.1);
  border-bottom: 1px solid rgba(7, 30, 56, 0.1);
  padding-block: 10px;
}

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

.product-lightbox__thumbs button {
  aspect-ratio: 1;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 5px;
  background: #edf3f6;
  padding: 0;
  cursor: pointer;
}

.product-lightbox__thumbs button.active,
.product-lightbox__thumbs button:hover,
.product-lightbox__thumbs button:focus-visible {
  border-color: #e84b2c;
}

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

.payment-rejected-card,
.payment-rejected-pill,
.payment-status-rejected {
  border-color: #d94a45 !important;
  background: #fff0ef !important;
  color: #92231f !important;
}

.cancellation-status-approved,
.cancellation-status-requested,
.cancellation-status-rejected {
  border-color: #d59a2a !important;
  background: #fff7df !important;
  color: #744d00 !important;
}

.payment-status-paid {
  color: #08765f !important;
}

.buyer-order-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.buyer-order-actions form,
.order-product-price form {
  margin: 0;
}

.order-chat-seller {
  min-height: 38px;
  padding: 8px 12px;
  font-size: 0.82rem;
}

html[data-theme="dark"] .product-lightbox__rail {
  background: #0b2030;
}

html[data-theme="dark"] .product-lightbox__rail h2,
html[data-theme="dark"] .product-lightbox__rail > small,
html[data-theme="dark"] .product-lightbox__meta {
  color: #edf8fc;
}

html[data-theme="dark"] .payment-rejected-card,
html[data-theme="dark"] .payment-rejected-pill,
html[data-theme="dark"] .payment-status-rejected {
  border-color: #ff817a !important;
  background: #3a1719 !important;
  color: #ffd4d1 !important;
}

html[data-theme="dark"] .cancellation-status-approved,
html[data-theme="dark"] .cancellation-status-requested,
html[data-theme="dark"] .cancellation-status-rejected {
  border-color: #d3a33e !important;
  background: #34290e !important;
  color: #ffe09a !important;
}

@media (min-width: 901px) {
  body.has-app-sidebar {
    padding-left: 264px;
  }

  .app-sidebar {
    top: 12px;
    bottom: 12px;
    left: 12px;
    width: 232px;
    gap: 10px;
    padding: 11px;
  }

  .app-sidebar-brand,
  .sidebar-account {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 9px;
  }

  .app-sidebar-brand img,
  .sidebar-account img {
    width: 42px;
    height: 42px;
  }

  .sidebar-nav a {
    min-height: 48px;
    padding: 8px 10px;
  }

  .subpage,
  .admin-page {
    padding-top: 24px;
    padding-bottom: 48px;
  }

  .section-heading h1,
  .checkout-form > h1 {
    font-size: 3rem;
  }

  .product-detail-v2__info h1 {
    font-size: 2.75rem;
  }

  .product-grid {
    gap: 16px;
  }

  .product-info {
    gap: 7px;
    padding: 14px;
  }

  .buyer-order-product,
  .seller-order-body {
    grid-template-columns: 84px minmax(0, 1fr) auto;
    gap: 14px;
    padding: 14px 16px;
  }

  .buyer-order-product img,
  .seller-order-body img {
    width: 84px;
    height: 84px;
  }
}

@media (max-width: 760px) {
  .product-lightbox__dialog {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 62vh) minmax(0, auto);
    width: 100%;
    max-height: 96vh;
    overflow-y: auto;
  }

  .product-lightbox__stage {
    min-height: 62vh;
    max-height: 62vh;
  }

  .product-lightbox__stage > img {
    max-height: 62vh;
  }

  .product-lightbox__rail {
    max-height: 34vh;
    padding: 14px;
  }

  .product-lightbox__rail h2,
  .product-lightbox__rail > .eyebrow,
  .product-lightbox__rail > small {
    display: none;
  }

  .product-lightbox__thumbs {
    display: flex;
    overflow-x: auto;
  }

  .product-lightbox__thumbs button {
    width: 66px;
    min-width: 66px;
  }

  .product-lightbox__zoom-tools {
    right: 8px;
    bottom: 8px;
  }

  .buyer-order-card > footer {
    align-items: stretch;
    flex-direction: column;
  }

  .buyer-order-actions,
  .buyer-order-actions > * {
    width: 100%;
  }

  .buyer-order-actions .primary-button,
  .buyer-order-actions .ghost-button {
    width: 100%;
  }
}

/* Revision 29: product detail must be visible immediately at normal browser zoom. */
.product-detail-v2.reveal,
.product-reviews.reveal {
  opacity: 1 !important;
  transform: none !important;
}

/* Keep the product return action unmistakable in every theme. */
a.product-detail-v2__back.back-to-catalog.ghost-button {
  border-color: #7f001f !important;
  background: #a5002d !important;
  color: #ffffff !important;
  box-shadow: 0 12px 28px rgba(165, 0, 45, 0.32) !important;
}

a.product-detail-v2__back.back-to-catalog.ghost-button:hover,
a.product-detail-v2__back.back-to-catalog.ghost-button:focus-visible {
  border-color: #5f0018 !important;
  background: #7f001f !important;
  color: #ffffff !important;
  box-shadow: 0 14px 32px rgba(127, 0, 31, 0.4) !important;
}

html[data-theme="dark"] a.product-detail-v2__back.back-to-catalog.ghost-button {
  border-color: #ff6f91 !important;
  background: #c0003b !important;
  color: #ffffff !important;
}

/* Keep the desktop workspace spacious at 100% browser zoom. */
@media (min-width: 1181px) {
  html {
    zoom: 0.8;
  }

  body.has-app-sidebar .logged-in-header {
    right: 12px !important;
    left: 264px !important;
    width: auto !important;
    max-width: none !important;
    transform: none !important;
  }

  body.has-app-sidebar .subpage,
  body.has-app-sidebar .section-wrap,
  body.has-app-sidebar .site-footer,
  body.has-app-sidebar .admin-page {
    width: calc(100% - 32px) !important;
    max-width: none !important;
    margin-right: 16px !important;
    margin-left: 16px !important;
  }

  body.has-app-sidebar.sidebar-collapsed .logged-in-header {
    right: 12px !important;
    left: 24px !important;
    width: auto !important;
    max-width: none !important;
    transform: none !important;
  }

  body.has-app-sidebar .app-sidebar {
    gap: 7px !important;
    padding: 10px !important;
  }

  body.has-app-sidebar .app-sidebar-brand {
    padding: 8px !important;
  }

  body.has-app-sidebar .sidebar-account {
    padding: 8px !important;
  }

  body.has-app-sidebar .sidebar-nav {
    gap: 5px !important;
  }

  body.has-app-sidebar .sidebar-nav a {
    min-height: 44px !important;
    padding: 6px 8px !important;
  }

  body.has-app-sidebar .sidebar-art {
    min-height: 54px !important;
    flex-basis: 54px !important;
    margin-top: 0 !important;
  }

  body.has-app-sidebar .sidebar-actions {
    gap: 6px !important;
    padding-top: 0 !important;
  }

  body.has-app-sidebar .sidebar-actions .theme-toggle,
  body.has-app-sidebar .sidebar-logout {
    min-height: 40px !important;
  }
}

/* Purchase modal images reuse the product viewer and its zoom controls. */
.size-modal-zoomable-image {
  cursor: zoom-in !important;
  transition: filter 160ms ease, outline-color 160ms ease;
}

.size-modal-zoomable-image:hover {
  filter: brightness(0.94);
  outline: 3px solid rgba(165, 0, 45, 0.5);
  outline-offset: 2px;
}

.size-modal-zoomable-image:focus-visible {
  outline: 3px solid #a5002d;
  outline-offset: 3px;
}

html[data-theme="dark"] .size-modal-zoomable-image:hover,
html[data-theme="dark"] .size-modal-zoomable-image:focus-visible {
  outline-color: #7ed8ff;
}

/* Shared zoom viewer for purchase choices and order product images. */
.standalone-image-lightbox {
  z-index: 520;
}

.standalone-image-lightbox__dialog {
  grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
  width: min(980px, 96vw);
  max-height: 94dvh;
}

.standalone-image-lightbox__viewer {
  min-height: min(720px, 88dvh);
}

.standalone-image-lightbox__stage {
  min-height: min(720px, 88dvh);
  max-height: 88dvh;
}

.standalone-image-lightbox__stage > img {
  max-height: 88dvh;
}

.standalone-image-lightbox__rail {
  justify-content: center;
}

.standalone-image-lightbox__rail h2 {
  overflow-wrap: anywhere;
}

/* The former divider split the institution photo in the middle. */
.about-hero::after {
  display: none !important;
  content: none !important;
}

@media (max-width: 760px) {
  .standalone-image-lightbox {
    padding: 8px;
  }

  .standalone-image-lightbox__dialog {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 72dvh) auto;
    width: 100%;
    max-height: calc(100dvh - 16px);
  }

  .standalone-image-lightbox__viewer,
  .standalone-image-lightbox__stage {
    min-height: 72dvh;
    max-height: 72dvh;
  }

  .standalone-image-lightbox__stage > img {
    max-height: 72dvh;
  }

  .standalone-image-lightbox__rail {
    display: block;
    max-height: none;
    padding: 12px 14px;
  }

  .standalone-image-lightbox__rail .eyebrow,
  .standalone-image-lightbox__rail small {
    display: none;
  }

  .standalone-image-lightbox__rail h2 {
    display: block;
    font-size: 1rem;
  }
}

/* Tumbler choices keep the visual model separate from size and price. */
.size-modal-options.is-grouped-model-size {
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 12px;
}

.size-modal-options.is-grouped-model-size > .size-modal-label {
  margin: 4px 0 0;
}

.size-modal-model-grid,
.size-modal-size-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.model-option,
.grouped-size-option {
  display: grid;
  min-width: 0;
  border: 1px solid #ccdbe3;
  border-radius: 8px;
  background: #fff;
  color: #071e38;
  cursor: pointer;
  font: inherit;
  text-align: center;
}

.model-option {
  grid-template-rows: 116px auto;
  gap: 8px;
  align-items: center;
  padding: 10px;
}

.model-option img {
  width: 100%;
  height: 116px;
  border-radius: 6px;
  object-fit: contain;
  background: #eef8fb;
}

.model-option strong,
.grouped-size-option strong,
.grouped-size-option span,
.grouped-size-option small {
  min-width: 0;
  overflow-wrap: anywhere;
}

.model-option strong {
  font-size: 0.92rem;
}

.grouped-size-help {
  margin-top: -8px;
}

.grouped-size-option {
  align-content: center;
  gap: 3px;
  min-height: 94px;
  padding: 10px 8px;
}

.grouped-size-option strong {
  font-size: 0.94rem;
}

.grouped-size-option span {
  color: #00627d;
  font-weight: 900;
}

.grouped-size-option small {
  color: #526c7d;
  font-size: 0.72rem;
  font-weight: 800;
}

.model-option:hover,
.grouped-size-option:hover:not(:disabled),
.model-option.active,
.grouped-size-option.active {
  border-color: #a5002d;
  background: #fff2f6;
  box-shadow: 0 0 0 2px rgba(165, 0, 45, 0.12);
}

.model-option:focus-visible,
.grouped-size-option:focus-visible {
  outline: 3px solid #19a8b8;
  outline-offset: 2px;
}

.grouped-size-option:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

.product-detail-model-size {
  display: grid;
  gap: 12px;
}

.product-detail-model-grid,
.product-detail-size-price-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.product-detail-model-grid button,
.product-detail-size-price-grid > span {
  display: grid;
  min-width: 0;
  border: 1px solid #d5e1e7;
  border-radius: 8px;
  background: #fff;
  padding: 9px;
  color: #071e38;
  text-align: center;
}

.product-detail-model-grid button {
  gap: 7px;
  cursor: zoom-in;
  font: inherit;
}

.product-detail-model-grid img {
  width: 100%;
  height: 110px;
  border-radius: 6px;
  object-fit: contain;
  background: #eef8fb;
}

.product-detail-model-grid span,
.product-detail-size-price-grid strong,
.product-detail-size-price-grid b,
.product-detail-size-price-grid small {
  min-width: 0;
  overflow-wrap: anywhere;
}

.product-detail-model-grid span,
.product-detail-size-price-grid strong {
  font-weight: 900;
}

.product-detail-size-price-grid > span {
  gap: 3px;
}

.product-detail-size-price-grid b {
  color: #a5002d;
}

.product-detail-size-price-grid small {
  color: #526c7d;
  font-weight: 700;
}

html[data-theme="dark"] .model-option,
html[data-theme="dark"] .grouped-size-option,
html[data-theme="dark"] .product-detail-model-grid button,
html[data-theme="dark"] .product-detail-size-price-grid > span {
  border-color: rgba(126, 216, 255, 0.22);
  background: #0b2030;
  color: #f5fbff;
}

html[data-theme="dark"] .model-option.active,
html[data-theme="dark"] .grouped-size-option.active {
  border-color: #f01857;
  background: #321522;
}

html[data-theme="dark"] .grouped-size-option span,
html[data-theme="dark"] .grouped-size-option small,
html[data-theme="dark"] .product-detail-size-price-grid small {
  color: #b9d6e3;
}

@media (max-width: 560px) {
  .size-modal-model-grid,
  .size-modal-size-grid,
  .product-detail-model-grid,
  .product-detail-size-price-grid {
    gap: 7px;
  }

  .model-option {
    grid-template-rows: 82px auto;
    padding: 7px;
  }

  .model-option img,
  .product-detail-model-grid img {
    height: 82px;
  }

  .model-option strong,
  .grouped-size-option strong,
  .product-detail-model-grid span,
  .product-detail-size-price-grid strong {
    font-size: 0.78rem;
  }

  .grouped-size-option {
    min-height: 88px;
    padding: 7px 5px;
  }

  .grouped-size-option span,
  .product-detail-size-price-grid b {
    font-size: 0.74rem;
  }

  .grouped-size-option small,
  .product-detail-size-price-grid small {
    font-size: 0.66rem;
  }
}
