/* Miras layout (T-283): the page skeleton drawn for the theme. Loaded last so it wins over the shared sheets. */
body.sector-shell[data-theme="miras"][data-screen][data-help-id] {
  --d-bg: #f6f7f4; --d-surface: #ffffff; --d-ink: #18231f; --d-muted: #55615b; --d-line: #dde3df; --d-accent: #1f4d3f; --d-on-accent: #ffffff; --d-soft: #e6efe9; --d-radius: 6px;
  --d-display: Georgia, "Iowan Old Style", "Palatino Linotype", "Times New Roman", serif; --d-body: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --bg: #f6f7f4; --line: #dde3df; --radius: 6px;
  background: var(--d-bg); color: var(--d-ink); font-family: var(--d-body); line-height: 1.5;
}
body.sector-shell[data-theme="miras"][data-screen][data-help-id] :is(h1, h2, h3) { font-family: var(--d-display); text-transform: none; }
body.sector-shell[data-theme="miras"][data-screen][data-help-id] .site-head .brand { font-family: var(--d-display); color: #18231f; text-decoration: none; }
body.sector-shell[data-theme="miras"][data-screen][data-help-id] .site-head.commerce-head { background: #ffffff; color: #18231f; border-bottom: 1px solid var(--d-line); box-shadow: none; }
body.sector-shell[data-theme="miras"][data-screen][data-help-id] .site-head .search { border-radius: var(--d-radius); }
body.sector-shell[data-theme="miras"][data-screen][data-help-id] .sector-actions .cart-link { border-radius: var(--d-radius); background: var(--d-accent); color: var(--d-on-accent); border-color: var(--d-accent); box-shadow: none; }
body.sector-shell[data-theme="miras"][data-screen][data-help-id] main { max-width: 1264px; margin-inline: auto; padding: 1.5rem 2rem 0; }
body.sector-shell[data-theme="miras"][data-screen][data-help-id] .home-composition { display: flex; flex-direction: column; gap: 3.5rem; }
body.sector-shell[data-theme="miras"][data-screen][data-help-id] .home-part { margin: 0; padding: 0; }
body.sector-shell[data-theme="miras"][data-screen][data-help-id] .te-breadcrumb { font-size: .8rem; color: var(--d-muted); }
body.sector-shell[data-theme="miras"][data-screen][data-help-id] main :is(.rail, .home-cats, .home-products) > h2 { margin: 0 0 1.25rem; padding: 0; border: 0; font-family: var(--d-display); line-height: 1.15; }
body.sector-shell[data-theme="miras"][data-screen][data-help-id] .home-products { margin-top: 3.5rem; }

/* Product card. */
body.sector-shell[data-theme="miras"][data-screen][data-help-id] main ul.grid:not(.list) { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.5rem 1rem; height: auto; margin: 0; padding: 0; overflow: visible; }
body.sector-shell[data-theme="miras"][data-screen][data-help-id] main ul.grid:not(.list) > .card { position: relative; display: flex; flex-direction: column; gap: .35rem; height: auto; min-height: 0; margin: 0; padding: 18px; border: 1px solid var(--d-line); border-bottom: 1px solid var(--d-line); border-radius: var(--d-radius); background: #ffffff; box-shadow: none; text-align: center; }
body.sector-shell[data-theme="miras"][data-screen][data-help-id] main ul.grid:not(.list) > .card > * { min-width: 0; margin: 0; }
body.sector-shell[data-theme="miras"][data-screen][data-help-id] main ul.grid:not(.list) > .card > .card-media { aspect-ratio: 1 / 1; margin-bottom: .35rem; border: 0; border-radius: calc(var(--d-radius) * .6); background: var(--d-soft); overflow: hidden; }
body.sector-shell[data-theme="miras"][data-screen][data-help-id] main ul.grid:not(.list) > .card :is(.product-badges, .card-price) { justify-content: center; }
body.sector-shell[data-theme="miras"][data-screen][data-help-id] main ul.grid:not(.list) > .card .card-media img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
body.sector-shell[data-theme="miras"][data-screen][data-help-id] main ul.grid:not(.list) > .card > .card-name { min-height: 0; padding: 0; font-family: var(--d-body); font-size: .95rem; font-weight: 600; color: var(--d-ink); text-decoration: none; overflow-wrap: anywhere; }
body.sector-shell[data-theme="miras"][data-screen][data-help-id] main ul.grid:not(.list) > .card > .card-price { padding: 0; font-size: 1.05rem; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--d-ink); }
body.sector-shell[data-theme="miras"][data-screen][data-help-id] .card .card-vat { display: none; }
body.sector-shell[data-theme="miras"][data-screen][data-help-id] .card .card-cta { display: grid; grid-template-columns: 1fr; gap: 0; }
body.sector-shell[data-theme="miras"][data-screen][data-help-id] .card .card-cta .card-buy { display: none; }
body.sector-shell[data-theme="miras"][data-screen][data-help-id] .card .card-cta :is(.card-primary, .sold-out) { width: 100%; min-height: 2.75rem; margin: 0; padding: 0 1rem; border: 0; border-radius: var(--d-radius); background: var(--d-accent); color: var(--d-on-accent); font-size: .85rem; font-weight: 700; text-align: center; }
body.sector-shell[data-theme="miras"][data-screen][data-help-id] .card .card-cta .sold-out { display: flex; align-items: center; justify-content: center; background: var(--d-soft); color: var(--d-muted); }
body.sector-shell[data-theme="miras"][data-screen][data-help-id] main ul.grid:not(.list) > .card .card-add { margin-top: auto; }
@media (hover: hover) and (min-width: 841px) {
  body.sector-shell[data-theme="miras"][data-screen][data-help-id] main ul.grid:not(.list) > .card .card-add { opacity: 0; transition: opacity .15s; }
  body.sector-shell[data-theme="miras"][data-screen][data-help-id] main ul.grid:not(.list) > .card:is(:hover, :focus-within) .card-add { opacity: 1; }
}

/* Category page. */
body.sector-shell[data-theme="miras"][data-screen][data-help-id] .page-head { margin: 0 0 1.25rem; padding: 0 0 1rem; border: 0; border-bottom: 1px solid var(--d-line); border-radius: 0; background: transparent; box-shadow: none; text-align: center; }
body.sector-shell[data-theme="miras"][data-screen][data-help-id] .page-head h1 { margin: 0; font-size: clamp(1.8rem, 3.4vw, 2.5rem); line-height: 1.1; }
body.sector-shell[data-theme="miras"][data-screen][data-help-id] .result-bar { margin: 0 0 1.25rem; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
body.sector-shell[data-theme="miras"][data-screen][data-help-id] .filter-actions .te-btn, body.sector-shell[data-theme="miras"][data-screen][data-help-id] .listing .te-btn { border-radius: var(--d-radius); background: var(--d-accent); border-color: var(--d-accent); color: var(--d-on-accent); }
body.sector-shell[data-theme="miras"][data-screen][data-help-id] .filter-actions .te-btn-ghost { background: transparent; color: var(--d-ink); border-color: var(--d-line); }
@media (min-width: 841px) {
  body.sector-shell[data-theme="miras"][data-screen][data-help-id] .listing { display: flex; flex-direction: column; gap: 1.75rem; }
  body.sector-shell[data-theme="miras"][data-screen][data-help-id] .listing .filter-bar { position: static; width: 100%; max-width: none; }
  body.sector-shell[data-theme="miras"][data-screen][data-help-id] .listing .desktop-filters form { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 1.25rem 2rem; padding: 1.25rem; border: 1px solid var(--d-line); border-radius: var(--d-radius); background: var(--d-surface); box-shadow: none; }
  body.sector-shell[data-theme="miras"][data-screen][data-help-id] .listing .desktop-filters .filter-group { flex: 1 1 11rem; min-width: 11rem; margin: 0; padding: 0; border: 0; }
  body.sector-shell[data-theme="miras"][data-screen][data-help-id] .listing .desktop-filters .filter-actions { flex: 0 0 auto; align-self: flex-end; display: flex; gap: .5rem; margin: 0; padding: 0; border: 0; }
}

/* Product page. */
@media (min-width: 981px) {
  body.sector-shell[data-theme="miras"][data-screen][data-help-id] .product { display: flex; flex-direction: row; gap: 2.5rem; align-items: flex-start; }
  body.sector-shell[data-theme="miras"][data-screen][data-help-id] .product .gallery { flex: 6 1 24rem; min-width: 0; position: static; display: flex; flex-direction: column; gap: .75rem; }
  body.sector-shell[data-theme="miras"][data-screen][data-help-id] .product .gallery-thumbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; }
  body.sector-shell[data-theme="miras"][data-screen][data-help-id] .product .gallery-thumbs label, body.sector-shell[data-theme="miras"][data-screen][data-help-id] .product .gallery-thumbs img { width: 100%; height: auto; aspect-ratio: 1; border-radius: calc(var(--d-radius) * .6); object-fit: cover; }
  body.sector-shell[data-theme="miras"][data-screen][data-help-id] .product .buybox { flex: 6 1 21rem; min-width: 0; position: static; }
}
body.sector-shell[data-theme="miras"][data-screen][data-help-id] .product .gallery-stage { aspect-ratio: 1 / 1; max-height: 40rem; padding: 0; outline: 0; border: 0; border-radius: var(--d-radius); background: var(--d-soft); box-shadow: none; overflow: hidden; }
body.sector-shell[data-theme="miras"][data-screen][data-help-id] .product .gallery-stage img { width: 100%; height: 100%; padding: 0; background: transparent; object-fit: cover; }
body.sector-shell[data-theme="miras"][data-screen][data-help-id] .product .buybox { display: flex; flex-direction: column; gap: 1rem; padding: 28px; border: 1px solid var(--d-ink); border-radius: var(--d-radius); background: #ffffff; box-shadow: none; }
body.sector-shell[data-theme="miras"][data-screen][data-help-id] .product .buybox > * { margin: 0; }
body.sector-shell[data-theme="miras"][data-screen][data-help-id] .product .buybox h1 { font-size: clamp(1.7rem, 3vw, 2.3rem); line-height: 1.12; }
body.sector-shell[data-theme="miras"][data-screen][data-help-id] .product .buy-price { font-family: var(--d-body); font-size: 1.9rem; line-height: 1; font-weight: 700; color: var(--d-ink); font-variant-numeric: tabular-nums; }
body.sector-shell[data-theme="miras"][data-screen][data-help-id] .product .buybox form > button { min-height: 3.25rem; border: 0; border-radius: var(--d-radius); background: var(--d-accent); color: var(--d-on-accent); font-weight: 700; }
body.sector-shell[data-theme="miras"][data-screen][data-help-id] .product .variant-card, body.sector-shell[data-theme="miras"][data-screen][data-help-id] .product-panel { border-radius: var(--d-radius); box-shadow: none; }

/* Cart. */
body.sector-shell[data-theme="miras"][data-screen][data-help-id] .steps li { border-radius: var(--d-radius); }
body.sector-shell[data-theme="miras"][data-screen][data-help-id] .cart-layout { display: flex; flex-direction: row; flex-wrap: wrap; gap: 1.75rem; align-items: flex-start; }
body.sector-shell[data-theme="miras"][data-screen][data-help-id] .cart-layout .cart-content { flex: 3 1 30rem; min-width: 0; }
body.sector-shell[data-theme="miras"][data-screen][data-help-id] .cart-layout .cart-summary { flex: 2 1 18rem; min-width: 0; padding: 1.5rem; border: 1px solid var(--d-ink); border-radius: var(--d-radius); background: #ffffff; box-shadow: none; }
body.sector-shell[data-theme="miras"][data-screen][data-help-id] .cart-heading h1 { font-size: clamp(1.7rem, 3vw, 2.2rem); line-height: 1.15; }
body.sector-shell[data-theme="miras"][data-screen][data-help-id] .cart-lines { margin: 0; padding: 0; border: 1px solid var(--d-line); border-radius: var(--d-radius); background: var(--d-surface); overflow: hidden; }
body.sector-shell[data-theme="miras"][data-screen][data-help-id] .cart-lines > li { margin: 0; padding: 1rem; border: 0; border-bottom: 1px solid var(--d-line); border-radius: 0; background: transparent; box-shadow: none; }
body.sector-shell[data-theme="miras"][data-screen][data-help-id] .cart-lines > li:last-child { border-bottom: 0; }
body.sector-shell[data-theme="miras"][data-screen][data-help-id] .cart-image, body.sector-shell[data-theme="miras"][data-screen][data-help-id] .cart-image img { border-radius: calc(var(--d-radius) * .6); }
body.sector-shell[data-theme="miras"][data-screen][data-help-id] .cart-summary .cart-checkout { min-height: 3.25rem; border: 0; border-radius: var(--d-radius); background: var(--d-accent); color: var(--d-on-accent); font-weight: 700; }

@media (max-width: 1099px) and (min-width: 841px) {
  body.sector-shell[data-theme="miras"][data-screen][data-help-id] main ul.grid:not(.list) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 840px) {
  body.sector-shell[data-theme="miras"][data-screen][data-help-id] main { padding: 1rem 1rem 0; }
  body.sector-shell[data-theme="miras"][data-screen][data-help-id] .home-composition { gap: 2.5rem; }
  body.sector-shell[data-theme="miras"][data-screen][data-help-id] main ul.grid:not(.list) { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem .75rem; }
  body.sector-shell[data-theme="miras"][data-screen][data-help-id] main ul.grid:not(.list) > .card > .card-price { white-space: normal; }
  body.sector-shell[data-theme="miras"][data-screen][data-help-id] main ul.grid:not(.list) > .card > * { overflow-wrap: anywhere; }
}

/* Home: a centred name over ruled menu lines, a double-framed welcome panel, headings between rules and a ruled product table. */
body.sector-shell[data-theme="miras"][data-screen][data-help-id] { --d-gold: #8a6d1f; }
body.sector-shell[data-theme="miras"][data-screen][data-help-id] .theme-announcement { background: var(--d-accent); color: #fff; font-size: .85rem; }
body.sector-shell[data-theme="miras"][data-screen][data-help-id] .theme-announcement a { color: inherit; }
body.sector-shell[data-theme="miras"][data-screen][data-help-id] .site-head.commerce-head { border-bottom: 3px double var(--d-ink); background: var(--d-bg); }
body.sector-shell[data-theme="miras"][data-screen][data-help-id] .site-head .brand { font-size: 2.1rem; font-weight: 600; }
body.sector-shell[data-theme="miras"][data-screen][data-help-id] .site-head .search { border: 1px solid var(--d-ink); border-radius: 0; background: #fff; box-shadow: none; overflow: hidden; }
body.sector-shell[data-theme="miras"][data-screen][data-help-id] .site-head .search input { border: 0; background: transparent; }
body.sector-shell[data-theme="miras"][data-screen][data-help-id] .site-head .search button { border: 0; border-radius: 0; background: var(--d-accent); color: #fff; }
body.sector-shell[data-theme="miras"][data-screen][data-help-id] .sector-actions .cart-link, body.sector-shell[data-theme="miras"][data-screen][data-help-id] .site-head .cat-toggle-label { border-radius: 0; }
body.sector-shell[data-theme="miras"][data-screen][data-help-id] .sector-hero { position: relative; display: block; min-height: 0; height: auto; margin: 0; padding: .625rem; overflow: visible; border: 1px solid var(--d-ink); border-radius: 0; background: transparent; box-shadow: none; color: var(--d-ink); }
body.sector-shell[data-theme="miras"][data-screen][data-help-id] .sector-hero::before, body.sector-shell[data-theme="miras"][data-screen][data-help-id] .sector-hero::after { content: none; }
body.sector-shell[data-theme="miras"][data-screen][data-help-id] .sector-hero > img { display: none; }
body.sector-shell[data-theme="miras"][data-screen][data-help-id] .sector-hero .sector-hero-copy { position: static; inset: auto; display: flex; flex-direction: column; align-items: center; gap: 1rem; width: auto; max-width: none; margin: 0; padding: 4rem 2rem; border: 1px solid var(--d-ink); background: var(--d-soft); color: var(--d-ink); text-align: center; text-shadow: none; transform: none; }
body.sector-shell[data-theme="miras"][data-screen][data-help-id] .sector-hero .sector-eyebrow { margin: 0; color: var(--d-gold); font-size: .8rem; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; }
body.sector-shell[data-theme="miras"][data-screen][data-help-id] .sector-hero h2 { margin: 0; max-width: 18ch; font-size: clamp(2.2rem, 4.6vw, 3.5rem); line-height: 1.1; font-weight: 500; color: var(--d-ink); }
body.sector-shell[data-theme="miras"][data-screen][data-help-id] .sector-hero .sector-hero-copy > p:not(.sector-eyebrow) { margin: 0; max-width: 52ch; font-size: 1.1rem; color: var(--d-muted); }
body.sector-shell[data-theme="miras"][data-screen][data-help-id] .sector-hero .sector-hero-copy > a { display: inline-flex; align-items: center; min-height: 3.1rem; margin: 0; padding: 0 1.9rem; border: 0; border-radius: 0; background: var(--d-accent); color: #fff; font-weight: 600; text-decoration: none; }
body.sector-shell[data-theme="miras"][data-screen][data-help-id] main :is(.rail, .home-cats, .home-products) > h2 { display: flex; align-items: center; gap: 1.25rem; font-size: 1.9rem; font-weight: 500; text-align: center; }
body.sector-shell[data-theme="miras"][data-screen][data-help-id] main :is(.rail, .home-cats, .home-products) > h2::before, body.sector-shell[data-theme="miras"][data-screen][data-help-id] main :is(.rail, .home-cats, .home-products) > h2::after { content: ""; flex: 1; height: 1px; background: var(--d-line); }
body.sector-shell[data-theme="miras"][data-screen][data-help-id] .home-cats .tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin: 0; padding: 0; }
body.sector-shell[data-theme="miras"][data-screen][data-help-id] .home-cats .tiles > li { grid-column: auto; grid-row: auto; width: auto; height: auto; min-height: 0; aspect-ratio: auto; margin: 0; padding: 0; border: 0; border-radius: 0; background: var(--d-soft); box-shadow: none; }
body.sector-shell[data-theme="miras"][data-screen][data-help-id] .home-cats .tiles > li:first-child { grid-column: span 2; grid-row: span 2; }
body.sector-shell[data-theme="miras"][data-screen][data-help-id] .home-cats .tiles > li:nth-child(n+8) { display: none; }
body.sector-shell[data-theme="miras"][data-screen][data-help-id] .home-cats .tiles > li > a { display: flex; flex-direction: row; align-items: flex-end; justify-content: flex-start; gap: 0; width: auto; height: 100%; min-height: 8rem; padding: .9rem; border: 0; border-radius: 0; background: transparent; box-shadow: none; color: var(--d-ink); font-family: var(--d-display); font-size: 1.1rem; text-decoration: none; }
body.sector-shell[data-theme="miras"][data-screen][data-help-id] .home-cats .tiles > li > a > :not(.category-icon, .category-arrow, img) { padding: .4rem .75rem; background: var(--d-bg); }
body.sector-shell[data-theme="miras"][data-screen][data-help-id] .home-cats .tiles :is(.category-icon, .category-arrow, img) { display: none; }
body.sector-shell[data-theme="miras"][data-screen][data-help-id] main ul.grid:not(.list) { gap: 0; border-top: 1px solid var(--d-line); border-left: 1px solid var(--d-line); }
body.sector-shell[data-theme="miras"][data-screen][data-help-id] main ul.grid:not(.list) > .card { border: 0; border-right: 1px solid var(--d-line); border-bottom: 1px solid var(--d-line); border-radius: 0; }
body.sector-shell[data-theme="miras"][data-screen][data-help-id] main ul.grid:not(.list) > .card > .card-media { aspect-ratio: 4 / 3; border-radius: 0; }
body.sector-shell[data-theme="miras"][data-screen][data-help-id] main ul.grid:not(.list) > .card > .card-name { font-family: var(--d-display); font-size: 1.2rem; font-weight: 500; }
body.sector-shell[data-theme="miras"][data-screen][data-help-id] .card .card-cta :is(.card-primary, .sold-out) { border-radius: 0; }
body.sector-shell[data-theme="miras"][data-screen][data-help-id] .site-foot { text-align: center; }
@media (max-width: 840px) {
  body.sector-shell[data-theme="miras"][data-screen][data-help-id] .sector-hero .sector-hero-copy { padding: 2.25rem 1.25rem; }
  body.sector-shell[data-theme="miras"][data-screen][data-help-id] .home-cats .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* Buy buttons share one line across a row: the foot takes the spare height, whatever notes a card carries. */
body.sector-shell[data-theme="miras"][data-screen][data-help-id] main ul.grid:not(.list) > .card > .card-foot { margin-top: auto; }
/* One button, one button's height: no room is kept for the hidden second action. */
body.sector-shell[data-theme="miras"][data-screen][data-help-id] main ul.grid:not(.list) > .card .card-cta { grid-template-rows: auto; grid-auto-rows: auto; min-height: 0; height: auto; }
body.sector-shell[data-theme="miras"][data-screen][data-help-id] .card .card-cta-gap { display: none; }
