/*
 * Knightfall storefront system
 *
 * This is the final public-site layer shared by the homepage and every PHP
 * storefront route. Admin pages intentionally do not load this file.
 */

:root {
  --store-frame: 1344px;
  --store-gutter: clamp(24px, 3.35vw, 48px);
  --store-ink: #101317;
  --store-muted: #6d706e;
  --store-line: #e2e4e7;
  --store-paper: #f4f4f5;
  --store-surface: #fff;
}

.payment-provider-note { margin: 0; padding: 16px 0; text-align: center; font-size: .85rem; color: var(--store-ink); }
.checkout-layout[hidden], .checkout-cart-status[hidden] { display: none !important; }
.checkout-cart-status { padding: 28px; }
.checkout-cart-status p { margin-top: 0; }
.checkout-items-details { margin-bottom: 20px; border-bottom: 1px solid var(--store-line); padding-bottom: 18px; }
.checkout-items-details summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; font-size: .9rem; font-weight: 750; line-height: 1.5; }
.checkout-items-details summary::after { content: "+"; font-size: 1.25rem; }
.checkout-items-details[open] summary::after { content: "−"; }
.checkout-items { list-style: none; padding: 0; margin: 18px 0; }
.checkout-items li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--store-line); font-size: .85rem; }
.checkout-items li > div { display: grid; gap: 5px; overflow-wrap: anywhere; }
.checkout-items li > strong { white-space: nowrap; }
.checkout-items li span, .checkout-items li small { color: var(--store-muted); }
.checkout-edit-cart { font-size: .85rem; text-decoration: underline; }
@media (max-width: 800px) {
  .checkout-layout { display: flex !important; flex-direction: column; }
  .checkout-layout > .checkout-summary { order: -1; width: 100%; box-sizing: border-box; position: static; }
  .checkout-flow { width: 100%; min-width: 0; }
}

@media (max-width: 680px) {
  html:not([data-admin="true"]) .product-title-row,
  body[data-home-page="true"] .product-title-row { display: flex !important; flex-direction: column !important; align-items: stretch !important; gap: 8px !important; }
  html:not([data-admin="true"]) .product-title-row h3,
  body[data-home-page="true"] .product-title-row h3 { width: 100% !important; font-size: .875rem !important; line-height: 1.3 !important; overflow-wrap: anywhere; }
  html:not([data-admin="true"]) .product-title-row .product-price,
  body[data-home-page="true"] .product-title-row .product-price { align-self: flex-start !important; text-align: left !important; }
}

html:not([data-admin="true"]) body,
html:not([data-admin="true"]) button,
html:not([data-admin="true"]) input,
html:not([data-admin="true"]) select,
html:not([data-admin="true"]) textarea {
  font-family: "Manrope", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html:not([data-admin="true"]) .shell {
  width: min(var(--store-frame), calc(100% - (var(--store-gutter) * 2)));
}

html:not([data-admin="true"]) .page h1,
html:not([data-admin="true"]) .page h2,
html:not([data-admin="true"]) .page h3,
html:not([data-admin="true"]) .shop-hero h1,
html:not([data-admin="true"]) .category-page-title,
html:not([data-admin="true"]) .product-copy-panel h1,
html:not([data-admin="true"]) .tracking-page-heading h1,
html:not([data-admin="true"]) .auth-intro h1,
html:not([data-admin="true"]) .auth-card h2 {
  font-family: "Syne", "Manrope", sans-serif;
}

html:not([data-admin="true"]) .site-header {
  background: rgba(255, 255, 255, .94);
}

html:not([data-admin="true"]) .page {
  padding-top: clamp(44px, 5vw, 72px);
}

html:not([data-admin="true"]) .shop-hero h1 {
  font-weight: 650;
  letter-spacing: -.055em;
}

html:not([data-admin="true"]) .product-copy-panel h1 {
  font-weight: 650;
  letter-spacing: -.05em;
}

/* Product-card prices must remain immediately scannable beside long titles. */
html:not([data-admin="true"]) .product-card .product-price,
body[data-home-page="true"] .catalog-product-row .product-price,
body[data-home-page="true"] #featured-product-grid .product-price {
  font-size: 1rem !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
}

html:not([data-admin="true"]) .product-card .product-price s,
body[data-home-page="true"] .catalog-product-row .product-price s,
body[data-home-page="true"] #featured-product-grid .product-price s {
  font-size: .72rem !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
}

/* Shared editorial/support pages. */
.content-page {
  width: min(1040px, 100%);
  margin: 0 auto;
}

.content-page-hero {
  display: grid;
  gap: 18px;
  max-width: 800px;
  margin-bottom: clamp(38px, 6vw, 72px);
}

.content-page-hero .content-page-label {
  margin: 0;
  color: var(--store-muted);
  font-size: .67rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.content-page-hero h1 {
  margin: 0;
  font-size: clamp(2.8rem, 6vw, 5.8rem);
  font-weight: 650;
  letter-spacing: -.065em;
  line-height: .92;
  text-transform: uppercase;
}

.content-page-hero > p:last-child {
  max-width: 670px;
  margin: 0;
  color: var(--store-muted);
  font-size: clamp(.96rem, 1.4vw, 1.08rem);
  line-height: 1.7;
}

.content-page-list {
  display: grid;
  border-top: 1px solid var(--store-line);
}

.content-page-item {
  display: grid;
  grid-template-columns: minmax(190px, .7fr) minmax(0, 1.3fr);
  gap: clamp(28px, 6vw, 86px);
  padding: clamp(28px, 4vw, 46px) 0;
  border-bottom: 1px solid var(--store-line);
}

.content-page-item h2 {
  margin: 0;
  font-size: clamp(1.05rem, 2vw, 1.45rem);
  font-weight: 650;
  letter-spacing: -.025em;
  line-height: 1.15;
}

.content-page-item p {
  margin: 0;
  color: #50545a;
  font-size: .94rem;
  line-height: 1.78;
}

.content-page-item a {
  color: var(--store-ink);
  font-weight: 700;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.content-page-updated {
  margin: 28px 0 0;
  color: var(--store-muted);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* FAQ is interactive without requiring JavaScript. */
.content-faq {
  border-top: 1px solid var(--store-line);
}

.content-faq details {
  border-bottom: 1px solid var(--store-line);
}

.content-faq summary {
  display: grid;
  min-height: 86px;
  grid-template-columns: minmax(0, 1fr) 34px;
  align-items: center;
  gap: 20px;
  cursor: pointer;
  font-family: "Syne", "Manrope", sans-serif;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 620;
  list-style: none;
}

.content-faq summary::-webkit-details-marker { display: none; }
.content-faq summary::after {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--store-line);
  border-radius: 50%;
  content: "+";
  font-family: "Manrope", sans-serif;
  font-size: 1.1rem;
}
.content-faq details[open] summary::after { content: "−"; }
.content-faq p {
  max-width: 760px;
  margin: -5px 54px 30px 0;
  color: #50545a;
  line-height: 1.75;
}

/* Contact page: a composed workspace instead of an unframed form. */
.contact-page-layout {
  display: grid;
  grid-template-columns: minmax(230px, .65fr) minmax(0, 1.35fr);
  align-items: start;
  gap: clamp(34px, 7vw, 96px);
}

.contact-page-aside {
  display: grid;
  gap: 28px;
  padding-top: 8px;
}

.contact-page-aside article {
  padding-top: 18px;
  border-top: 1px solid var(--store-line);
}

.contact-page-aside h2,
.contact-page-aside p { margin: 0; }
.contact-page-aside h2 {
  margin-bottom: 8px;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.contact-page-aside p,
.contact-page-aside a {
  color: var(--store-muted);
  font-size: .86rem;
  line-height: 1.65;
}

.contact-page-form {
  max-width: none;
  padding: clamp(24px, 4.5vw, 48px);
  border: 1px solid var(--store-line);
  border-radius: 14px;
  background: var(--store-surface);
}

.contact-page-form .contact-field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.contact-page-form input,
.contact-page-form textarea {
  border-radius: 6px;
}

.contact-page-form > button {
  min-height: 50px;
  border-radius: 7px;
  text-transform: uppercase;
  letter-spacing: .09em;
}

.contact-page-consent {
  grid-template-columns: 18px minmax(0, 1fr) !important;
  align-items: start;
  gap: 10px !important;
  color: var(--store-muted) !important;
  font-size: .74rem !important;
  font-weight: 550 !important;
  line-height: 1.55;
}
.contact-page-consent input {
  width: 18px;
  min-height: 18px;
  margin-top: 1px;
}

/* Shared PHP footer aligns with the same 1344px frame as the homepage. */
html:not([data-admin="true"]) .site-footer {
  padding: clamp(58px, 7vw, 88px) 0 28px;
}

html:not([data-admin="true"]) .site-footer-main {
  grid-template-columns: minmax(300px, 1.65fr) repeat(2, minmax(150px, .65fr));
  gap: clamp(38px, 7vw, 104px);
}

html:not([data-admin="true"]) .site-footer-brand {
  gap: 16px;
}

html:not([data-admin="true"]) .site-footer-brand .site-footer-instagram {
  justify-self: start;
}

html:not([data-admin="true"]) .site-footer-main > nav:last-child {
  width: max-content;
  justify-self: end;
}

html:not([data-admin="true"]) .site-footer-legal {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  margin-top: 46px;
}

html:not([data-admin="true"]) .site-footer-legal > :last-child {
  justify-self: end;
  text-align: right;
}

/* Homepage newsletter + footer: one frame and one column rhythm. */
body[data-home-page="true"] .site-footer-section {
  padding: 46px var(--store-gutter) 24px !important;
}

body[data-home-page="true"] .site-footer-section > div {
  width: min(var(--store-frame), 100%);
  max-width: var(--store-frame) !important;
}

body[data-home-page="true"] #newsletter {
  display: grid !important;
  grid-template-columns: minmax(280px, .8fr) minmax(440px, 1.2fr);
  align-items: center !important;
  gap: clamp(34px, 5vw, 64px) !important;
  margin-bottom: 42px !important;
  padding: 28px 32px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #f3f4f5 !important;
  box-shadow: none !important;
  text-align: left;
}

body[data-home-page="true"] #newsletter > div {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  text-align: left !important;
}

body[data-home-page="true"] #newsletter form {
  display: grid !important;
  width: 100% !important;
  grid-template-columns: minmax(0, 1fr) 136px;
  gap: 10px !important;
}

body[data-home-page="true"] #newsletter form input {
  width: 100% !important;
}

body[data-home-page="true"] #newsletter form input,
body[data-home-page="true"] #newsletter form .site-button {
  min-height: 50px;
}

body[data-home-page="true"] #newsletter form .site-button {
  width: 136px;
  min-width: 136px;
}

body[data-home-page="true"] #newsletter form + p {
  margin-top: 10px !important;
  line-height: 1.55 !important;
}

body[data-home-page="true"] .home-footer {
  display: grid !important;
  grid-template-columns: minmax(360px, 1.2fr) repeat(2, minmax(150px, .45fr)) !important;
  gap: clamp(34px, 5vw, 64px) !important;
  margin-bottom: 28px !important;
}

body[data-home-page="true"] .home-footer > div {
  grid-column: auto !important;
  grid-column-start: auto !important;
}

body[data-home-page="true"] .home-footer > div:last-child {
  width: max-content;
  justify-self: end;
}

body[data-home-page="true"] .home-footer .footer-instagram-icon {
  align-self: flex-start;
}

body[data-home-page="true"] .home-footer ul > * + * {
  margin-top: 10px !important;
}

body[data-home-page="true"] .home-footer > div:first-child {
  justify-content: flex-start;
  gap: 20px;
}

body[data-home-page="true"] .home-footer > div:first-child p {
  margin-bottom: 0 !important;
}

body[data-home-page="true"] .footer__column--info {
  padding: 14px 0 16px;
  border-top: 1px solid var(--store-line);
}

body[data-home-page="true"] .footer-legal {
  padding-top: 18px;
}

body[data-home-page="true"] .footer-legal > :first-child {
  justify-self: start;
}

body[data-home-page="true"] .footer-legal > :last-child {
  justify-self: end;
}

@media (max-width: 900px) {
  html:not([data-admin="true"]) .site-footer-main {
    grid-template-columns: minmax(0, 1.35fr) repeat(2, minmax(120px, .65fr));
    gap: 34px;
  }

  body[data-home-page="true"] #newsletter {
    grid-template-columns: 1fr;
    gap: 24px !important;
  }

  body[data-home-page="true"] .home-footer {
    grid-template-columns: minmax(0, 1.15fr) repeat(2, minmax(120px, .55fr)) !important;
    gap: 28px !important;
  }
}

@media (max-width: 680px) {
  :root { --store-gutter: 16px; }

  html:not([data-admin="true"]) .shell {
    width: calc(100% - (var(--store-gutter) * 2));
  }

  html:not([data-admin="true"]) .page {
    padding-top: 36px;
  }

  html:not([data-admin="true"]) .product-card .product-price,
  html:not([data-admin="true"]) .product-title-row .product-price,
  body[data-home-page="true"] .catalog-product-row .product-price,
  body[data-home-page="true"] #featured-product-grid .product-price {
    font-size: .9rem !important;
  }

  html:not([data-admin="true"]) .product-card .product-price s,
  body[data-home-page="true"] .catalog-product-row .product-price s,
  body[data-home-page="true"] #featured-product-grid .product-price s {
    font-size: .66rem !important;
  }

  .content-page-hero {
    gap: 14px;
    margin-bottom: 36px;
  }

  .content-page-hero h1 {
    font-size: clamp(2.35rem, 12vw, 3.5rem);
  }

  .content-page-item {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 25px 0;
  }

  .content-faq summary {
    min-height: 78px;
    font-size: 1rem;
  }

  .content-faq p {
    margin-right: 0;
  }

  .contact-page-layout {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .contact-page-aside {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  .contact-page-form {
    padding: 22px 18px;
  }

  .contact-page-form .contact-field-row {
    grid-template-columns: 1fr;
  }

  html:not([data-admin="true"]) .site-footer-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px 14px;
    text-align: center;
  }

  html:not([data-admin="true"]) .site-footer-brand {
    grid-column: 1 / -1;
    justify-items: center;
  }

  html:not([data-admin="true"]) .site-footer-brand .site-footer-instagram {
    justify-self: center;
  }

  html:not([data-admin="true"]) .site-footer-main > nav:last-child {
    width: auto;
    justify-self: stretch;
  }

  html:not([data-admin="true"]) .site-footer-legal {
    grid-template-columns: 1fr;
  }

  html:not([data-admin="true"]) .site-footer-legal > :last-child {
    justify-self: center;
    text-align: center;
  }

  body[data-home-page="true"] .site-footer-section {
    padding: 38px var(--store-gutter) 20px !important;
  }

  body[data-home-page="true"] #newsletter {
    display: grid !important;
    grid-template-columns: 1fr;
    gap: 22px !important;
    margin-bottom: 34px !important;
    padding: 24px 18px !important;
    text-align: center;
  }

  body[data-home-page="true"] #newsletter > div {
    text-align: center !important;
  }

  body[data-home-page="true"] #newsletter form {
    grid-template-columns: 1fr;
    gap: 10px !important;
  }

  body[data-home-page="true"] #newsletter form .site-button {
    width: 100%;
    min-width: 0;
  }

  body[data-home-page="true"] #newsletter form + p {
    margin-top: 11px !important;
    font-size: .72rem !important;
    text-align: left;
  }

  body[data-home-page="true"] .home-footer {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 26px 14px !important;
    margin-bottom: 24px !important;
    text-align: center;
  }

  body[data-home-page="true"] .home-footer > div:first-child {
    grid-column: 1 / -1 !important;
    align-items: center;
  }

  body[data-home-page="true"] .home-footer > div:last-child {
    width: auto;
    justify-self: stretch;
  }

  body[data-home-page="true"] .home-footer .footer-instagram-icon {
    align-self: center;
  }

  body[data-home-page="true"] .footer-legal {
    gap: 10px;
  }

  body[data-home-page="true"] .footer-legal > :first-child,
  body[data-home-page="true"] .footer-legal > :last-child {
    justify-self: center;
  }
}

@media (max-width: 420px) {
  .contact-page-aside { grid-template-columns: 1fr; }
}

@media(max-width:700px){
 html:not([data-admin="true"]) .site-header .shell,
 body[data-home-page="true"] #header-pill{padding-right:var(--store-gutter)!important;padding-left:var(--store-gutter)!important}
}

/* Product feeds must offer recovery without pretending the catalog is empty. */
.catalog-load-feedback {
  margin: 16px 0;
  padding: 18px;
  border: 1px solid var(--store-line);
  border-radius: 12px;
  background: var(--store-surface);
  color: var(--store-ink);
  font-size: .95rem;
  line-height: 1.6;
}
.catalog-load-feedback[hidden] { display: none !important; }
.catalog-load-feedback p { margin: 0 0 12px; }

/* Keep the visible rail centred in the range input's full control height. */
.shop-price-slider-control { height: 48px; }
.shop-price-slider-control input[type="range"] { height: 48px !important; min-height: 48px; }

[data-cart-checkout][aria-disabled="true"],
[data-clear-cart]:disabled { opacity: .5; cursor: not-allowed; }
.product-load-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 20px; }

/* The same cart markup is used by both storefront stylesheets. */
#cart-list .cart-item-details:only-child { grid-column: 1 / -1; width: 100%; }
#cart-list .cart-item-name { white-space: normal; overflow-wrap: anywhere; }
#cart-list .cart-controls { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
#cart-list .cart-remove-button {
  display: inline-grid;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--store-line);
  border-radius: 6px;
}
#cart-list .cart-remove-button svg { width: 17px; height: 17px; }
#cart-list button:disabled { opacity: .5; cursor: wait; }
[data-cart-update-status] { margin: 0 0 12px; color: var(--store-muted); font-size: .9rem; }

#cart-coupon-form [data-status="busy"] { color: var(--store-muted); }
#cart-coupon-form [data-status="error"] { color: #8c2929; }
#checkout-payment-button:disabled { opacity: .5; cursor: not-allowed; }
.header-search-form:focus-within { outline: 2px solid #111820; outline-offset: 3px; }
.header-search-submit:focus-visible { outline: 2px solid #111820 !important; outline-offset: -4px; }
.shop-search-context { overflow-wrap: anywhere; }

/* Forms precede secondary contact information in the reading order. */
.contact-page-layout > .contact-page-form { grid-column: 2; grid-row: 1; }
.contact-page-layout > .contact-page-aside { grid-column: 1; grid-row: 1; }

/* Phone layouts: controls must fit their own container, not just the viewport. */
@media (max-width: 680px) {
  html:not([data-admin="true"]) :is(form, fieldset, label, .form-row, .contact-field-row, .auth-card, .tracking-page-card, .product-purchase) {
    min-width: 0;
    max-width: 100%;
  }
  html:not([data-admin="true"]) input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="hidden"]),
  html:not([data-admin="true"]) select,
  html:not([data-admin="true"]) textarea {
    box-sizing: border-box;
    min-width: 0;
    max-width: 100%;
    font-size: 16px !important;
    font-weight: 400;
    line-height: 1.4;
    letter-spacing: normal;
    text-transform: none;
  }
  html:not([data-admin="true"]) main :is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="hidden"]), select, textarea) {
    width: 100%;
    min-height: 48px;
    padding: 12px;
  }
  html:not([data-admin="true"]) main textarea { min-height: 140px; resize: vertical; }
  html:not([data-admin="true"]) main :is(.form, .tracking-lookup) label {
    font-size: 14px !important;
    line-height: 1.45;
    letter-spacing: normal;
    text-transform: none;
  }
  html:not([data-admin="true"]) main :is(.form, .tracking-lookup) button[type="submit"] {
    min-height: 48px;
    height: auto;
    padding: 12px 16px;
    font-size: 16px !important;
    line-height: 1.4;
    white-space: normal;
    letter-spacing: normal;
    text-transform: none;
  }
  html:not([data-admin="true"]) .page { padding-top: 24px; }
  html:not([data-admin="true"]) :is(.auth-intro, .content-page-hero, .tracking-page-heading, .shop-hero, .product-copy-panel) h1 {
    margin-bottom: 12px;
    font-size: clamp(28px, 8vw, 34px) !important;
    line-height: 1.12 !important;
    letter-spacing: -.035em !important;
    overflow-wrap: anywhere;
    text-wrap: initial;
  }
  html:not([data-admin="true"]) :is(.auth-intro, .content-page-hero, .tracking-page-heading, .shop-hero) > p:last-of-type {
    margin: 0;
    font-size: 16px;
    line-height: 1.55;
  }
  .auth-layout { gap: 24px; }
  .auth-intro ul { display: none; }
  .auth-card, .contact-page-form, .tracking-page-card { padding: 20px 16px; border-radius: 12px; box-shadow: none; }
  .auth-card .form, .contact-page-form { gap: 18px; }
  .form-row { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .auth-switch, .form-help, .password-requirements, .tracking-page-help { font-size: 14px; line-height: 1.5; }
  .password-requirements span { font-size: 14px; line-height: 1.5; }
  html:not([data-admin="true"]) .site-footer nav a { font-size: 14px; line-height: 1.5; }
  html:not([data-admin="true"]) .product-card .product-price { font-size: 16px !important; }
  html:not([data-admin="true"]) .product-card .product-price s { font-size: 12px !important; }
  .content-page-hero, .tracking-page-heading { margin-bottom: 24px; }
  .content-page-hero { gap: 12px; }
  .content-page-hero h1 { margin-bottom: 0 !important; }
  .contact-page-layout { gap: 28px; }
  .contact-page-layout > .contact-page-form { grid-column: 1; grid-row: 1; }
  .contact-page-layout > .contact-page-aside { grid-column: 1; grid-row: 2; }
  .contact-page-aside a { overflow-wrap: anywhere; }
  .tracking-page { padding: 0 0 48px; }
  .tracking-page-form { gap: 18px; }
  .shop-hero { padding: 0 0 20px; }
  .header-search-control.is-open .header-search-form { width: min(280px, calc(100vw - 112px)); }
  .header-search-input { font-size: 16px !important; }
  body[data-home-page="true"] #newsletter form input { min-height: 48px; font-size: 16px !important; }
}

.shop-catalog-controls.shop-catalog-controls--filters-only { justify-content: space-between !important; }
.shop-catalog-controls.shop-catalog-controls--filters-only > .shop-filter-toggle { margin-left: 0; }
@media (max-width: 680px) {
  .shop-catalog-controls.shop-catalog-controls--filters-only { margin: 16px 0; gap: 12px !important; overflow: visible; }
  .shop-catalog-controls .shop-filter-toggle { width: auto !important; min-height: 44px !important; padding: 10px 12px !important; font-size: 14px !important; letter-spacing: normal; text-transform: none; gap: 8px; }
  .shop-catalog-controls .shop-filter-toggle span:first-child { display: inline !important; font-size: inherit !important; }
  .shop-result-count { font-size: 14px; text-align: right; }
  .shop-filter-heading { min-height: 64px; padding: 0 16px; }
  .shop-filter-panel .shop-toolbar { padding: 0 16px 16px; }
  .shop-filter-search > span, .shop-filter-group summary { font-size: 14px !important; letter-spacing: normal; text-transform: none; }
  .shop-filter-options label { min-height: 44px; gap: 12px; }
  .shop-filter-options span { font-size: 15px !important; line-height: 1.4; letter-spacing: normal !important; text-transform: none !important; }
  .shop-filter-options small { font-size: 13px; }
  .shop-filter-actions { gap: 8px; padding: 12px 0 max(12px, env(safe-area-inset-bottom)); }
  .shop-filter-actions button, .shop-filter-actions .shop-filter-reset { font-size: 14px !important; line-height: 1.4; letter-spacing: normal; text-transform: none; }
  .shop-price-values { font-size: 14px; }
  .product-page { row-gap: 20px; }
  .product-gallery { width: 100% !important; }
  .product-main-image { width: 100%; height: auto; min-height: 0; aspect-ratio: 4 / 5; object-fit: contain; }
  .product-category { margin-bottom: 10px; }
  .product-copy-panel .product-page-price { margin-bottom: 14px; }
  .product-stock { margin-bottom: 14px; font-size: 14px; line-height: 1.45; }
  .product-purchase label { min-width: 0; font-size: 14px; line-height: 1.45; }
  .product-buy-row { grid-template-columns: 76px minmax(0, 1fr); gap: 12px; }
  .product-add { min-height: 48px; font-size: 16px !important; }
  .product-description { font-size: 16px; line-height: 1.6; }
  .cart-item-variant { font-size: 14px; line-height: 1.4; text-transform: none; }
  #cart-list .cart-row { grid-template-columns: 72px minmax(0, 1fr); column-gap: 12px; }
  #cart-list .cart-item-media { width: 72px; height: 90px; }
  .cart-controls { flex-wrap: wrap; gap: 8px !important; }
  .cart-controls .cart-quantity-controls { grid-template-columns: repeat(3, 40px); }
  .cart-quantity-controls button { width: 40px; min-height: 40px; }
  #cart-list .cart-remove-button { width: 40px; height: 40px; min-height: 40px; flex: 0 0 40px; }
  #shipping-msg { font-size: 14px !important; line-height: 1.5; letter-spacing: normal !important; text-transform: none !important; }
}

@media (max-width: 680px) {
  body[data-home-page="true"] .category-showcase { grid-template-columns: minmax(0, 1fr) !important; grid-template-rows: none !important; gap: 28px !important; }
  body[data-home-page="true"] .category-card,
  body[data-home-page="true"] .category-card:first-child { display: flex; flex-direction: column; aspect-ratio: auto !important; min-height: 0; background: #fff; border: 0; }
  body[data-home-page="true"] .category-card > img { position: relative; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
  body[data-home-page="true"] .category-card-body { position: relative; inset: auto; min-height: 0 !important; flex: 0 0 auto; padding: 12px 2px 0 !important; background: none; }
  body[data-home-page="true"] .category-card-title { color: var(--store-ink); font-family: "Manrope", sans-serif !important; font-size: 20px !important; line-height: 1.4 !important; letter-spacing: normal !important; text-transform: none; overflow-wrap: anywhere; }
  body[data-home-page="true"] .category-card-link { display: none; }
  .brand-page-hero { display: flex; align-items: flex-end; min-height: 210px !important; aspect-ratio: auto; }
  .brand-page-identity { position: relative; inset: auto; padding: 24px 18px !important; overflow-wrap: anywhere; }
  .brand-page-identity .category-page-title { margin: 0; font-size: 28px !important; line-height: 1.15; }
  .brand-page-identity p { max-width: 100%; margin-top: 10px !important; font-size: 16px !important; line-height: 1.5 !important; }
  .brand-page-shade { background: linear-gradient(0deg, rgba(0,0,0,.88), rgba(0,0,0,.45)) !important; }
  .shop-collection-bar { gap: 12px; margin: 16px 0; }
  .shop-collection-bar .shop-filter-toggle { min-height: 44px; padding: 10px 12px; gap: 8px; font-size: 14px; letter-spacing: normal; text-transform: none; flex: 0 1 auto; }
  .shop-collection-bar .shop-filter-toggle span { font-size: 14px !important; }
  .shop-collection-bar .shop-filter-toggle svg { flex: 0 0 20px; }
  .product-card-action { transition: transform .15s ease; }
}

@media (max-width: 680px) {
  .customer-modal[open] { display: flex; flex-direction: column; width: calc(100% - 24px); max-height: calc(100dvh - 24px); border-radius: 12px; }
  .customer-modal > header { flex: 0 0 auto; gap: 12px; padding: 16px; }
  .customer-modal > header h2 { font-size: 24px; line-height: 1.2; overflow-wrap: anywhere; }
  .customer-modal-close { flex: 0 0 44px; width: 44px; height: 44px; }
  .customer-modal-body { min-height: 0; max-height: none; overflow-y: auto; padding: 20px 16px; }
  .customer-modal-body .form label { font-size: 14px; line-height: 1.45; }
  .customer-modal-body .form button[type="submit"] { min-height: 48px; font-size: 16px; white-space: normal; }
}

/* Let mobile product names wrap naturally while row actions stay aligned. */
@media (max-width: 680px) {
  html:not([data-admin="true"]) .product-card .product-details h3 {
    font-family: "Manrope", sans-serif !important;
    font-size: 14px !important;
    font-weight: 650 !important;
    line-height: 1.4 !important;
    letter-spacing: normal !important;
    text-transform: none !important;
  }
  html:not([data-admin="true"]) .product-card .product-title-row { flex: 1; }
  html:not([data-admin="true"]) .product-card .product-title-row h3 { flex: 1; }
}

/* Shared sizing for the two mobile navigation templates, including nested links. */
.site-mobile-menu-links a,
.site-mobile-subcategory > summary,
#mobile-menu > nav .mobile-menu-links .mobile-link,
#mobile-menu .mobile-subcategory-menu > summary {
  display: flex;
  align-items: center;
  min-height: 44px;
  box-sizing: border-box;
  font-size: 15px;
  line-height: 1.45;
  letter-spacing: normal;
  text-transform: none;
  overflow-wrap: anywhere;
}
.site-mobile-account a, .site-mobile-account button,
#mobile-menu .mobile-menu-account a {
  font-size: 15px;
  line-height: 1.45;
  letter-spacing: normal;
  text-transform: none;
}

body[data-home-page="true"] :is(#shop, #categories, #brands, #track-order, #about, #newsletter) {
  scroll-margin-top: calc(var(--home-header-height, 100px) + 16px);
}

@media (max-width: 680px) {
  .portal-overview-toolbar { gap: 18px; margin-bottom: 20px; }
  .portal-overview-toolbar > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .portal-overview-toolbar > div > a:first-child { grid-column: 1 / -1; }
  .portal-overview-toolbar .button { min-width: 0; min-height: 48px; padding: 10px 8px; font-size: 14px; line-height: 1.4; white-space: normal; }
  .customer-content-full .account-metrics article { min-height: 82px; padding: 12px 8px; }
  .customer-content-full .account-metrics span { font-size: 12px; line-height: 1.4; text-transform: none; overflow-wrap: anywhere; }
  .account-portal .account-card-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .account-portal .account-card-actions > :first-child { grid-column: 1 / -1; }
  .account-portal .account-card-actions .button { min-width: 0; min-height: 44px; padding: 10px 8px; font-size: 14px; line-height: 1.4; white-space: normal; }
  .account-portal .account-order-card, .account-portal .settings-card { padding: 20px 16px; border-radius: 12px; box-shadow: none; }
  .account-order-timeline { grid-template-columns: minmax(0, 1fr); gap: 8px; margin: 20px 0; }
  .account-order-timeline span { padding: 2px 0 2px 12px; border-top: 0; border-left: 3px solid #d8dde1; font-size: 14px; line-height: 1.4; }
  .account-portal .account-status { font-size: 12px; }
  .settings-card-heading { flex-wrap: wrap; gap: 12px; padding-bottom: 16px; margin-bottom: 20px; }
  .settings-card-heading > div { min-width: 0; }
  .settings-card-heading p, #account-password-requirements { font-size: 14px; line-height: 1.5; }
  .settings-card-heading > button { width: 100%; min-height: 44px; font-size: 14px; }
}

/* One compact size for purchase and sign-in actions in every product feed. */
html:not([data-admin="true"]) .product-card .product-card-action {
  box-sizing: border-box;
  width: 100%;
  height: 40px;
  min-height: 40px;
  flex-shrink: 0;
  padding: 3px 6px;
  border: 1px solid #101317;
  border-radius: 4px !important;
  font-size: 12px !important;
  line-height: 15px;
  font-weight: 700;
  letter-spacing: normal;
  white-space: normal;
}
html:not([data-admin="true"]) .product-card .product-price s,
html:not([data-admin="true"]) .product-page-price s {
  color: #b42318 !important;
  text-decoration-color: currentColor;
}

.product-image-frame { position: relative; min-width: 0; }
.product-wishlist-heart {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  display: grid; place-items: center; width: 40px; height: 40px; min-height: 40px;
  padding: 9px; border: 1px solid #d9dde1; border-radius: 50% !important;
  background: #fff; color: #101317; cursor: pointer;
}
.product-wishlist-heart svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.product-wishlist-heart[aria-pressed="true"] { color: #b42318; opacity: 1; }
.product-wishlist-heart[aria-pressed="true"] svg { fill: currentColor; }
.product-wishlist-heart:focus-visible { outline: 2px solid #101317; outline-offset: 3px; }
.product-save-row[hidden] { display: none; }
html:not([data-admin="true"]) .product-card .product-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 7px; color: #101317; }
html:not([data-admin="true"]) .product-card .product-price s { display: inline; margin: 0; }
.site-footer-legal .site-footer-policies, .footer-legal .footer-policy-links { display: flex; justify-content: center; justify-self: center; align-items: center; gap: 24px; text-align: center; }
@media (max-width: 780px) {
  #checkout-form { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  #checkout-form .checkout-field-half, #checkout-form .checkout-field-address,
  #checkout-form .checkout-field-unit, #checkout-form .checkout-field-third,
  #checkout-form .checkout-field-notes { grid-column: 1 / -1; }
  #checkout-form :is(input:not([type="checkbox"]), select) { box-sizing: border-box; width: 100%; min-width: 0; height: 48px; min-height: 48px; padding: 10px 12px; font-size: 16px; line-height: 1.4; border-radius: 8px; }
  #checkout-form textarea { box-sizing: border-box; width: 100%; min-height: 96px; padding: 10px 12px; font-size: 16px; }
  #checkout-form label { font-size: 14px; line-height: 1.4; }
  .site-footer-legal .site-footer-policies, .footer-legal .footer-policy-links { width: 100%; }
}

/* Field widths follow the expected content while controls share one height. */
#checkout-form { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 18px 12px; }
#checkout-form label:has([name="email"]) { grid-column: span 8; }
#checkout-form label:has([name="phone"]) { grid-column: span 4; }
#checkout-form label:has([name="first_name"]), #checkout-form label:has([name="last_name"]) { grid-column: span 6; }
#checkout-form label:has([name="address_line_1"]) { grid-column: 1 / -1; }
#checkout-form label:has([name="address_line_2"]) { grid-column: span 4; }
#checkout-form label:has([name="city"]) { grid-column: span 8; }
#checkout-form label:has([name="province_code"]) { grid-column: span 8; }
#checkout-form label:has([name="postal_code"]) { grid-column: span 4; }
#checkout-form :is(input:not([type="checkbox"]), select) { box-sizing: border-box; width: 100%; min-width: 0; height: 48px; padding: 10px 12px; font-size: 16px; }
@media (max-width: 780px) {
 #checkout-form label:has([name="email"]) { grid-column: 1 / -1; }
 #checkout-form label:has([name="phone"]) { grid-column: 1 / -1; }
 #checkout-form label:has([name="first_name"]) { grid-column: 1 / span 6; }
 #checkout-form label:has([name="postal_code"]) { grid-column: span 5; }
 #checkout-form label:has([name="province_code"]) { grid-column: span 7; }
}
@media (max-width: 360px) {
 #checkout-form label:has([name="province_code"]) { grid-column: 1 / -1; }
 #checkout-form label:has([name="postal_code"]) { grid-column: 1 / span 6; }
}
@media (min-width: 681px) {
 body[data-home-page="true"] .home-hero .home-hero-content h1.hero-headline {
  max-width: 11ch !important; font-family: "Syne", sans-serif !important;
  font-size: clamp(56px, 6.5vw, 104px) !important; font-weight: 800 !important;
  line-height: .95 !important; letter-spacing: -.055em !important; text-wrap: balance;
 }
}

/* Compact shared storefront controls; keep input text readable on phones. */
html:not([data-admin="true"]) body :is(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="range"]), select),
html:not([data-admin="true"]) body #checkout-form :is(input, select),
html:not([data-admin="true"]) body .product-quantity input {
 box-sizing: border-box; height: 40px !important; min-height: 40px !important;
 padding-top: 6px !important; padding-bottom: 6px !important; font-size: 16px;
}
html:not([data-admin="true"]) body :is(.button, .btn, .product-add, button[type="submit"], #checkout-form > button, #newsletter button) {
 min-height: 40px !important; padding-top: 6px !important; padding-bottom: 6px !important; line-height: 1.35;
}
html:not([data-admin="true"]) body .product-card .product-card-action {
 height: 36px !important; min-height: 36px !important; padding: 2px 6px !important;
}
html:not([data-admin="true"]) body .shop-filter-toggle { min-height: 40px !important; padding-top: 6px !important; padding-bottom: 6px !important; }
html:not([data-admin="true"]) body #checkout-form { row-gap: 14px; }
html:not([data-admin="true"]) body #checkout-form textarea { min-height: 80px; }
html:not([data-admin="true"]) :is(input, textarea)::placeholder { color: #737980; opacity: 1; }
.footer__payment { width: 100%; }
.list-payment { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; padding: 16px 0; margin: 0; list-style: none; }
.list-payment__item { display: flex; align-items: center; padding: 0; }
.list-payment__item .icon { display: block; width: 38px; height: 24px; }

@media (max-width: 680px) {
 body[data-home-page="true"] .category-card,
 body[data-home-page="true"] .category-card:first-child { position: relative; aspect-ratio: 1 !important; }
 body[data-home-page="true"] .category-card-body {
  position: absolute; inset: auto 0 0; width: 100%; box-sizing: border-box;
  padding: 48px 20px 20px !important;
  background: linear-gradient(transparent, rgba(0,0,0,.8));
 }
 body[data-home-page="true"] .category-card-title { color: #fff !important; }
}

/* Separate paired controls instead of joining independently rounded edges. */
html:not([data-admin="true"]) body .coupon-form > div {
 display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: start;
}
html:not([data-admin="true"]) body .coupon-form :is(input, button) {
 box-sizing: border-box; height: 40px !important; min-height: 40px !important;
 margin: 0; border-radius: 6px !important; padding: 6px 12px !important; line-height: 1.35;
}
html:not([data-admin="true"]) body :is(.checkout-payment-button, .checkout-back-button, .tracking-lookup button) {
 min-height: 40px !important; padding-top: 6px !important; padding-bottom: 6px !important;
}
@media (max-width: 680px) {
 body[data-home-page="true"] .category-card-title {
  font-family: "Syne", sans-serif !important; font-size: 1.55rem !important;
  font-weight: 750 !important; line-height: 1.1 !important; text-transform: uppercase;
 }
 body[data-home-page="true"] .category-card-link { display: block; margin-top: 12px; color: #fff; font-size: .68rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
}

/* Product detail media and actions share a compact, stable layout. */
html:not([data-admin="true"]) .product-main-image { width: 100%; height: auto; min-height: 0; aspect-ratio: 1; object-fit: contain; }
.product-price-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 20px 0 16px; }
.product-copy-panel .product-price-row .product-page-price { min-width: 0; flex-wrap: wrap; margin: 0; }
.product-price-row .product-wishlist-heart { position: static; flex: 0 0 40px; margin-left: auto; }
html:not([data-admin="true"]) .catalog-grid.product-related-grid {
 display: grid; grid-auto-flow: column; grid-template-columns: none !important;
 grid-auto-columns: calc((100% - 48px) / 4); gap: 16px; min-width: 0; max-width: 100%;
 overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none;
 padding-bottom: 8px;
}
.product-related-grid::-webkit-scrollbar { display: none; }
.product-related-grid > * { min-width: 0; scroll-snap-align: start; }
@media (max-width: 780px) {
 html:not([data-admin="true"]) .catalog-grid.product-related-grid { grid-auto-columns: 46%; gap: 12px; }
}

.product-related-section { min-width: 0; max-width: 100%; }

/* A single outer frame groups the image, information, and purchase action. */
html:not([data-admin="true"]) body .product-card {
 box-sizing: border-box; border: 1px solid #d2d6da !important;
 background: #fff !important; border-radius: 6px !important; overflow: hidden;
}
html:not([data-admin="true"]) body .product-card .product-details {
 padding: 12px !important; background: #fff;
}
@media (max-width: 680px) {
 html:not([data-admin="true"]) body .product-card .product-details { padding: 10px !important; }
}

/* Keep the image frame visibly separate from the outer card frame. */
html:not([data-admin="true"]) body .product-card .product-media {
 box-sizing: border-box; width: calc(100% - 16px) !important;
 margin: 8px 8px 0 !important; border: 1px solid #d2d6da !important;
 border-radius: 3px !important; overflow: hidden;
}
