/* Boutique-only commercial, checkout and account styles. */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Boutique commercial depth */
.checkout-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0 18px;
}

.checkout-steps a,
.checkout-steps span {
  position: relative;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--panel) 82%, var(--field));
  color: var(--muted);
  padding: 7px 9px;
  text-decoration: none;
}

.checkout-steps b,
.account-order-steps b {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--field);
  color: var(--muted);
  font-size: 12px;
}

.checkout-steps .active,
.checkout-steps .done {
  border-color: color-mix(in srgb, var(--accent) 42%, var(--line));
  color: var(--ink);
}

.checkout-steps .done b,
.checkout-steps .active b,
.account-order-steps .done b {
  background: var(--moss);
  color: var(--paper);
}

.product-search-suggestion {
  grid-template-columns: 36px minmax(0, 1fr) !important;
  align-items: center;
}

.product-search-suggestion img {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  object-fit: cover;
  background: var(--field);
}

.product-search-suggestion strong,
.product-search-suggestion small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.search-filter-links a {
  display: inline-grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 2px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--ink);
  padding: 6px 10px;
  text-decoration: none;
}

.search-filter-links i {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--swatch);
  grid-row: span 2;
}

.search-filter-links small {
  color: var(--muted);
  font-size: 9px;
  text-transform: uppercase;
}

.search-filter-links span {
  font-size: 12px;
  font-weight: 750;
}

.stock-limit,
.product-assurance-note {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.account-order-card {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 12px;
}

.account-order-card header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.account-order-card header span,
.account-order-lines span {
  display: grid;
  gap: 2px;
}

.account-order-steps {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 6px;
}

.account-order-steps span {
  display: grid;
  justify-items: center;
  gap: 4px;
  color: var(--muted);
  text-align: center;
}
.account-order-steps .done { color: var(--ink); }

.account-order-steps small {
  font-size: 10px;
  line-height: 1.15;
}

.account-order-lines {
  display: grid;
  gap: 6px;
}

.account-order-lines small,
.account-order-delivery {
  color: var(--muted);
  margin: 0;
}

@media (width <= 760px) {
  .checkout-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .checkout-steps a,
  .checkout-steps span {
    min-height: 38px;
    font-size: 12px;
  }

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

/* Boutique checkout and account polish */
.delivery-address-card > label,
.relay-fields > label,
.relay-search label,
.form-pair label,
.flat-address-fields label {
  display: grid;
  gap: 5px;
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.delivery-address-card label input,
.relay-fields label input,
.relay-search label input,
.form-pair label input,
.flat-address-fields label input {
  width: 100%;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
}

.flat-address-fields label:first-child,
.flat-address-fields label:nth-child(2) {
  grid-column: 1 / -1;
}

.checkout-state {
  margin: 8px 0;
  color: var(--success, var(--moss));
  font-size: 13px;
  font-weight: 700;
}
.checkout-state.error { color: var(--danger); }
.payment-trust-box p { margin-bottom: 0; }
.order-confirmation-page .checkout-steps { margin-bottom: 28px; }

.order-confirmation-status {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--field);
  padding: 7px 10px;
  font-weight: 700;
}

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

@media (width <= 760px) {
  .home-filters > .search { display: none; }

  .delivery-address-card > label,
  .relay-fields > label,
  .relay-search label,
  .form-pair label,
  .flat-address-fields label { font-size: 11px; }
}

@media (width <= 760px) {
  .topbar .nav .nav-favorites {
    display: none !important;
  }

  .cookie-consent {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .cookie-consent-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    width: 100%;
  }
}

/* Day-mode contrast corrections for shop controls and secondary text. */
body[data-mode="day"] .subnav .promo-link {
  color: #8f3b3f;
}

body[data-mode="day"] .button:not(.ghost, :disabled),
body[data-mode="day"] .search button:not(:disabled) {
  color: #fff;
}

body[data-mode="day"] .stock-badge.low {
  color: #68503e !important;
}

body[data-mode="day"] .footer {
  color: #6c645c;
}

/* Final shop legibility and touch-target polish. */
.product .category a {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
}

.product h2 a {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
}

@media (width <= 760px) {
  .product .category,
  .product .badges span,
  .price-stack .stock-badge,
  .cookie-consent p {
    font-size: 12px;
  }
}

body.account-sidebar-open {
  overflow: hidden;
}

body.account-sidebar-open::before {
  content: "";
  position: fixed;
  z-index: 169;
  inset: 0;
  background: rgb(33 30 25 / 28%);
}

.account-hover.sidebar-open .account-popover {
  display: none !important;
}

/* Pagan Spirit: locally hosted typography and tonal palette. */
@font-face {
  font-family: "Pagan Manrope";
  src: url("/assets/fonts/Manrope-Latin.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Pagan Cormorant";
  src: url("/assets/fonts/CormorantGaramond-Latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}


@font-face { font-family: "Pagan Inter"; src: url("/assets/fonts/Inter-Latin.woff2") format("woff2"); font-weight: 400 800; font-style: normal; font-display: swap; }

@font-face { font-family: "Pagan Source Sans 3"; src: url("/assets/fonts/SourceSans3-Latin.woff2") format("woff2"); font-weight: 400 800; font-style: normal; font-display: swap; }

@font-face { font-family: "Pagan Lora"; src: url("/assets/fonts/Lora-Latin.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }

@font-face { font-family: "Pagan Fraunces"; src: url("/assets/fonts/Fraunces-Latin.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }

@font-face { font-family: "Pagan Nunito Sans"; src: url("/assets/fonts/NunitoSans-Latin.woff2") format("woff2"); font-weight: 400 800; font-style: normal; font-display: swap; }

@font-face { font-family: "Pagan Libre Baskerville"; src: url("/assets/fonts/LibreBaskerville-400-Latin.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }

@font-face { font-family: "Pagan Libre Baskerville"; src: url("/assets/fonts/LibreBaskerville-700-Latin.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

body[data-package=""][data-mode="day"][data-day-skin="pagan-spirit"] {
  --paper: #f2eadf;
  --ink: #4e493f;
  --muted: #6c6d63;
  --moss: #7b8463;
  --moss-dark: #625f52;
  --clay: #858071;
  --gold: #9d8a5e;
  --panel: #fbf7ef;
  --field: #fffdf8;
  --tab: #ece2d5;
  --line: #ddd1c1;
  --danger: #a94347;
  --heart: #736f67;
  --heart-active: #a94347;
  --hover-green: #7e876f;
  --promo-brown: #827467;
  --warm-bg: #ede3d6;
  --product-bg: #e7dac8;
  --tag-bg: #ece2d5;
  --coupon-bg: #f2e8dc;
  --promo-color: var(--danger);
  --surface: var(--panel);
  --surface-soft: var(--warm-bg);
}

body[data-package=""][data-mode="night"][data-night-skin="pagan-spirit-night"] {
  --paper: #303128;
  --ink: #e2ddcf;
  --muted: #b8b3a7;
  --moss: #929b79;
  --moss-dark: #d7dac8;
  --clay: #929b79;
  --gold: #b9a474;
  --panel: #393a31;
  --field: #414238;
  --tab: #414238;
  --line: #565748;
  --danger: #c66a6d;
  --heart: #b8b1a2;
  --heart-active: #d67578;
  --hover-green: #a5ad8b;
  --promo-brown: #a28e78;
  --warm-bg: #34352c;
  --product-bg: #3b3c32;
  --tag-bg: #45463a;
  --coupon-bg: #404137;
  --promo-color: var(--danger);
  --surface: var(--panel);
  --surface-soft: var(--field);
}


body[data-package=""][data-font-set="pagan-editorial"] {
  --font-body: "Pagan Manrope", "Segoe UI", sans-serif;
  --font-display: "Pagan Cormorant", georgia, serif;
}

body[data-package=""][data-font-set="literary"] {
  --font-body: "Pagan Source Sans 3", "Segoe UI", sans-serif;
  --font-display: "Pagan Lora", georgia, serif;
}

body[data-package=""][data-font-set="heritage"] {
  --font-body: "Pagan Inter", "Segoe UI", sans-serif;
  --font-display: "Pagan Libre Baskerville", georgia, serif;
}

body[data-package=""][data-font-set="contemporary"] {
  --font-body: "Pagan Inter", "Segoe UI", sans-serif;
  --font-display: "Pagan Fraunces", georgia, serif;
}

body[data-package=""][data-font-set="humanist"] {
  --font-body: "Pagan Nunito Sans", "Segoe UI", sans-serif;
  --font-display: "Pagan Lora", georgia, serif;
}

body[data-package=""][data-font-set="clean"] {
  --font-body: "Pagan Manrope", "Segoe UI", sans-serif;
  --font-display: "Pagan Manrope", "Segoe UI", sans-serif;
}

body[data-package=""],
body[data-package=""] input,
body[data-package=""] select,
body[data-package=""] textarea,
body[data-package=""] button {
  font-family: var(--font-body, "Pagan Manrope", "Segoe UI Variable Text", "Segoe UI", sans-serif);
  letter-spacing: 0;
}

body[data-package=""] h1,
body[data-package=""] h2,
body[data-package=""] h3,
body[data-package=""] .brand strong,
body[data-package=""] .product h2,
body[data-package=""] .price-stack > span {
  font-family: var(--font-display, "Pagan Cormorant", Georgia, serif);
  letter-spacing: 0;
}

body[data-package=""] h1,
body[data-package=""] .brand strong {
  font-weight: 650;
}

body[data-package=""] .product h2,
body[data-package=""] .price-stack > span {
  font-weight: 600;
}

.font-pair-editor,
.admin-editor-fonts {
  display: grid;
  gap: 10px;
}

.font-pair-sample {
  display: grid;
  gap: 3px;
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
}

.font-pair-sample strong {
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1.1;
}

.font-pair-sample span {
  font-family: var(--font-body);
  font-size: 14px;
}

.buy-row button:not(.wishlist-button) .add-plus,
.product-actions .add-detail .add-plus {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  line-height: 1;
  transform: none;
}

.product-actions .add-detail {
  line-height: 1;
}