/* ARGANZIT — L'Or d'Argan : base rules from the Stitch design + store glue */
html.dark, html.dark body { width: 100vw; margin: 0; padding: 0; }
html.dark body { overscroll-behavior: none; background-color: #131313; }
.pb-safe { padding-bottom: env(safe-area-inset-bottom, 0px); }
.pt-safe { padding-top: env(safe-area-inset-top, 0px); }
main > :first-child { margin-top: 0 !important; }
main > :last-child { margin-bottom: 0 !important; }
::-webkit-scrollbar { display: none; }

/* Design pages use a 16px root (Origins base CSS is not loaded there) */
html.dark:not(.az-legacy-root) { font-size: 100%; }

[hidden] { display: none !important; }
[data-az-cart-count] { transition: transform 0.2s ease; }
[data-az-form-wrap] form { width: 100%; margin: 0; padding: 0; }
summary::-webkit-details-marker { display: none; }
#main-product-img { transition: opacity 0.15s ease, transform 0.5s ease-out; }

/* Product description coming from the store admin */
.az-rte { color: inherit; }
.az-rte p { margin: 0 0 0.5rem; }
.az-rte p:last-child { margin-bottom: 0; }
.az-rte ul, .az-rte ol { margin: 0.25rem 0 0.5rem; padding-left: 1.1rem; list-style: disc; }
.az-rte strong, .az-rte b { color: #e5e2e1; font-weight: 600; }
.az-rte img { max-width: 100%; height: auto; border-radius: 0.5rem; }
.az-rte a { color: #f0bd83; text-decoration: underline; }

/* Keep Origins defaults away from the design components (zero-specificity resets) */
:where(.az-ui) a, :where(.az-ui) button { font-size: inherit; color: inherit; transition: none; }

/* ---------- Legacy store pages (cart, collections, search, pages) in the dark & gold palette ---------- */
.az-legacy-root {
  --font-family: 'Plus Jakarta Sans', sans-serif;
  --color-primary: 229, 226, 225;
  --color-gray-50: #202020;
  --color-gray-300: #353535;
  --color-gray-500: #9c8e81;
  --color-base-white: #131313;
  --color-base-black: #e5e2e1;
  --media-background: #0e0e0e;
  --overlay-background: rgba(14, 14, 14, 0.8);
  --shadow-dark-sm: rgba(0, 0, 0, 0.35) 0px 3px 14px 0px, rgba(201, 154, 99, 0.18) 0px 0px 0px 1px;
}
.az-legacy { font-family: 'Plus Jakarta Sans', sans-serif; color: #e5e2e1; }
.az-legacy h1, .az-legacy h2, .az-legacy h3, .az-legacy .h1, .az-legacy .h2, .az-legacy .h3 {
  font-family: 'Playfair Display', serif; color: #e5e2e1; font-weight: 500;
}
.az-legacy yc-section { background-color: #131313; color: #e5e2e1; }
.az-legacy a { color: #e5e2e1; }
.az-legacy a:hover { color: #f0bd83; }
.az-legacy .yc-btn.primary, .az-legacy button.primary {
  background: linear-gradient(to right, #c99a63, #e8c08e, #f0bd83);
  color: #472a00;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.az-legacy .yc-btn.secondary, .az-legacy button.secondary {
  background-color: #2a2a2a;
  color: #f0bd83;
  border: 0;
}
.az-legacy input:not([type=checkbox]):not([type=radio]), .az-legacy textarea, .az-legacy select {
  background-color: #0e0e0e;
  color: #e5e2e1;
  border-color: rgba(201, 154, 99, 0.22);
}
.az-legacy input::placeholder, .az-legacy textarea::placeholder { color: #9c8e81; }
.az-legacy .compare-at, .az-legacy [data-product-item='compare-at-price'] { color: #9c8e81; }
.az-legacy .current, .az-legacy [data-product-item='price'] { color: #f0bd83; }
.az-legacy .product-card, .az-legacy .collection-card, .az-legacy .cart-item, .az-legacy .summary {
  background-color: #202020;
  border-radius: 0.5rem;
}
