/* Dawn-flavoured storefront styles for the dev page. Deliberately includes aggressive global
   rules (root font-size, button, img, div) so we can see the Shadow DOM keeps the widget intact. */
html { font-size: 62.5%; box-sizing: border-box; }
*, *::before, *::after { box-sizing: inherit; }
body {
  margin: 0;
  font-family: Assistant, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 1.6rem;
  letter-spacing: 0.06rem;
  line-height: 1.8;
  color: rgba(18, 18, 18, 0.75);
  background: #fff;
}
img { max-width: 100%; height: auto; }
button { font: inherit; text-transform: uppercase; letter-spacing: 0.2em; }
div { line-height: 1.8; }
a { color: inherit; }
h1 { font-size: 3rem; font-weight: 400; color: #121212; margin: 0 0 1rem; line-height: 1.2; }
.visually-hidden { position: absolute !important; overflow: hidden; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; clip: rect(0 0 0 0); word-wrap: normal !important; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 1rem; top: 1rem; z-index: 10; background: #fff; padding: 0.5rem 1rem; }
.page-width { max-width: 120rem; margin: 0 auto; padding: 0 1.5rem; }
@media (min-width: 750px) { .page-width { padding: 0 5rem; } }

.header { display: flex; align-items: center; gap: 2rem; padding: 1.6rem 2rem; border-bottom: 1px solid rgba(18, 18, 18, 0.08); position: sticky; top: 0; background: #fff; z-index: 5; }
.header__logo { font-size: 2.2rem; font-weight: 600; color: #121212; text-decoration: none; letter-spacing: 0; }
.header__nav { display: flex; gap: 1.6rem; flex: 1; font-size: 1.5rem; }
.header__nav a { text-decoration: none; }
.header__icon { position: relative; display: inline-flex; width: 4.4rem; height: 4.4rem; align-items: center; justify-content: center; color: #121212; }
.cart-count-bubble { position: absolute; bottom: 0.6rem; left: 2.4rem; background: #121212; color: #fff; height: 1.7rem; min-width: 1.7rem; border-radius: 100%; display: flex; justify-content: center; align-items: center; font-size: 0.9rem; line-height: 1; }

.product { display: grid; gap: 3rem; padding: 3rem 0 6rem; }
@media (min-width: 750px) { .product { grid-template-columns: 1.3fr 1fr; gap: 5rem; } }
.product__media img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; background: #f3f3f3; }
.price { font-size: 1.8rem; color: #121212; margin-bottom: 2rem; }
.variant-picker { border: 0; padding: 0; margin: 0 0 2rem; }
.variant-picker legend { margin-bottom: 0.8rem; font-size: 1.4rem; }
.variant-picker label { display: inline-block; margin: 0 0.6rem 0.8rem 0; }
.variant-picker input { position: absolute; opacity: 0; }
.variant-picker span { display: inline-block; padding: 0.8rem 2rem; border: 1px solid rgba(18, 18, 18, 0.55); border-radius: 4rem; cursor: pointer; font-size: 1.4rem; }
.variant-picker input:checked + span { background: #121212; color: #fff; }
.variant-picker input:disabled + span { opacity: 0.4; text-decoration: line-through; }
.variant-picker input:focus-visible + span { outline: 2px solid #121212; outline-offset: 2px; }
.product-form__buttons { max-width: 44rem; display: grid; gap: 1rem; }
.button { min-height: 4.6rem; border: 0; background: #121212; color: #fff; cursor: pointer; padding: 0 3rem; font-size: 1.5rem; letter-spacing: 0.1rem; text-transform: none; }
.button--secondary { background: #fff; color: #121212; box-shadow: inset 0 0 0 1px #121212; }
.button:disabled { opacity: 0.5; cursor: not-allowed; }
.product-form__error { color: #b42318; font-size: 1.4rem; }
.installment { font-size: 1.3rem; margin-bottom: 1.5rem; }
.product__description { margin-top: 3rem; }

.grid { list-style: none; padding: 0; margin: 3rem 0 6rem; display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem 1rem; }
@media (min-width: 750px) { .grid { grid-template-columns: repeat(4, 1fr); gap: 3rem 2rem; } }
.grid a { text-decoration: none; display: block; }
.grid img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.grid h3 { margin: 0.8rem 0 0; font-size: 1.5rem; font-weight: 400; color: #121212; }

.cart-table { width: 100%; border-collapse: collapse; margin: 2rem 0; font-size: 1.5rem; }
.cart-table th, .cart-table td { text-align: left; padding: 1.2rem 0.8rem; border-bottom: 1px solid #eee; vertical-align: top; }
.cart-table img { width: 6rem; }
.cart-props { font-size: 1.2rem; color: #6b6b6b; margin: 0.4rem 0 0; padding: 0; list-style: none; }
.cart-attrs { background: #f6f6f6; padding: 1.2rem 1.6rem; font-size: 1.4rem; }
code { font-size: 1.3rem; }

.dev-panel { position: fixed; left: 1.2rem; bottom: 1.2rem; z-index: 20; background: #fffbe6; border: 1px solid #e8d77a; border-radius: 0.8rem; font-size: 1.3rem; letter-spacing: 0; line-height: 1.5; max-width: 32rem; box-shadow: 0 4px 16px rgba(0,0,0,.08); }
.dev-panel summary { cursor: pointer; padding: 0.8rem 1.2rem; font-weight: 600; }
.dev-panel form { padding: 0 1.2rem 1.2rem; display: grid; gap: 0.6rem; }
.dev-panel label { display: flex; align-items: center; gap: 0.6rem; }
.dev-panel input[type='number'] { width: 5rem; }
.dev-panel__buttons { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.dev-panel button { font-size: 1.2rem; text-transform: none; letter-spacing: 0; padding: 0.4rem 0.8rem; cursor: pointer; }
