:root {
  --m1-primary: #1f3a5f;
  --m1-accent: #e07a1f;
  --m1-bg: #ffffff;
  --m1-surface: #f6f7f9;
  --m1-text: #1b1f24;
  --m1-muted: #4b5563;
  --m1-border: #e5e7eb;
  color-scheme: light;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--m1-text); background: var(--m1-bg); line-height: 1.5; }
a { color: var(--m1-accent); }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .75rem 1.25rem; background: var(--m1-primary); color: #fff; }
.site-header a { color: #fff; text-decoration: none; }
.brand { font-weight: 700; font-size: 1.15rem; display: flex; align-items: center; gap: .5rem; }
.brand img { height: 36px; max-width: 180px; object-fit: contain; }
.site-nav { display: flex; gap: 1rem; align-items: center; }
.site-nav .inline { display: inline; margin: 0; }
.site-nav .link { background: none; border: 0; color: #fff; cursor: pointer; font: inherit; padding: 0; }
.site-main { max-width: 1100px; margin: 0 auto; padding: 1.5rem 1.25rem; min-height: 60vh; }
.site-footer { border-top: 1px solid var(--m1-border); color: var(--m1-muted); font-size: .9rem; padding: 1rem 1.25rem; text-align: center; }
.hero { padding: 2rem 0; }
.hero h1 { margin: 0 0 .25rem; font-size: 2rem; color: var(--m1-primary); }
.hero p { margin: 0; color: var(--m1-muted); font-size: 1.1rem; }
.card { background: var(--m1-surface); border: 1px solid var(--m1-border); border-radius: 8px; padding: 1.25rem; }
.grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.form { max-width: 420px; }
.form label { display: block; font-weight: 600; margin: .75rem 0 .25rem; }
.form input { width: 100%; padding: .55rem .65rem; border: 1px solid var(--m1-border); border-radius: 6px; font: inherit; }
.btn { display: inline-block; margin-top: 1rem; padding: .6rem 1.1rem; border: 0; border-radius: 6px; background: var(--m1-accent); color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
.alert { padding: .75rem 1rem; border-radius: 6px; margin: 1rem 0; }
.alert-error { background: #fdecea; color: #8a1c1c; border: 1px solid #f5c2c0; }
.alert-info { background: #e8f1fb; color: #1f3a5f; border: 1px solid #c7dcf2; }
.muted { color: var(--m1-muted); }
dl.kv { display: grid; grid-template-columns: max-content 1fr; gap: .35rem 1rem; }
dl.kv dt { font-weight: 600; }
dl.kv dd { margin: 0; }
.pill { display: inline-block; background: var(--m1-surface); border: 1px solid var(--m1-border); border-radius: 999px; padding: .1rem .6rem; font-size: .85rem; margin: .15rem; }
.search-inline input { padding: .35rem .5rem; border: 0; border-radius: 6px; font: inherit; width: 160px; }
.crumbs { font-size: .9rem; color: var(--m1-muted); margin-bottom: .5rem; display: flex; gap: .4rem; flex-wrap: wrap; }
.subcats { margin: .25rem 0 1rem; }
.subcats .pill { text-decoration: none; color: var(--m1-text); }
.grid.products { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.product-card { display: block; color: inherit; text-decoration: none; background: var(--m1-bg); border: 1px solid var(--m1-border); border-radius: 8px; padding: .75rem; }
.product-card h3 { font-size: 1rem; margin: .5rem 0 .25rem; }
.product-card .price { margin: 0; }
.product-card .price s { color: var(--m1-muted); margin-right: .4rem; }
.product-image { aspect-ratio: 1; background: var(--m1-surface); border-radius: 6px; display: grid; place-items: center; overflow: hidden; }
.product-image img { width: 100%; height: 100%; object-fit: cover; }
.tagline { color: var(--m1-accent); font-weight: 600; margin: 0 0 .25rem; }
.category-card { text-decoration: none; color: inherit; text-align: center; }
.category-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 6px; }
.category-card h3 { margin: .5rem 0 0; }
.product { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 800px) { .product { grid-template-columns: 1fr 1fr; } }
.product-gallery img { width: 100%; border-radius: 8px; }
.product-gallery .thumbs { display: flex; gap: .5rem; margin-top: .5rem; }
.product-gallery .thumbs img { width: 72px; height: 72px; object-fit: cover; }
.tiers { border-collapse: collapse; margin: 1rem 0; }
.tiers th, .tiers td { text-align: left; padding: .4rem .8rem; border-bottom: 1px solid var(--m1-border); }
.tiers s { color: var(--m1-muted); margin-right: .4rem; }
.variants { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem; }
.pager { display: flex; gap: .5rem; margin: 1.5rem 0; }
.pager .current { font-weight: 700; }
.form.search { display: flex; gap: .5rem; max-width: 600px; align-items: flex-end; }
.form.search input { flex: 1; }
.form.search .btn { margin-top: 0; }
.add-to-cart { margin: 1rem 0; }
.add-to-cart select, .add-to-cart input { max-width: 240px; }
table.cart { width: 100%; border-collapse: collapse; margin: 1rem 0; }
table.cart th, table.cart td { text-align: left; padding: .5rem .6rem; border-bottom: 1px solid var(--m1-border); vertical-align: top; }
table.cart td.right, table.cart tfoot td.right { text-align: right; }
table.cart .qty { width: 5rem; padding: .3rem; }
.btn.secondary { background: var(--m1-primary); }
.checkout { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 900px) { .checkout { grid-template-columns: 2fr 1fr; align-items: start; } }
.checkout .card { margin-bottom: 1rem; }
.checkout label { display: block; font-weight: 600; margin: .6rem 0 .2rem; }
.checkout label.radio, .checkout label.check { font-weight: 400; display: flex; gap: .5rem; align-items: center; margin: .35rem 0; }
.checkout input[type=text], .checkout input[type=email], .checkout input:not([type]), .checkout textarea { width: 100%; padding: .5rem .6rem; border: 1px solid var(--m1-border); border-radius: 6px; font: inherit; }
.checkout-summary .row { display: flex; justify-content: space-between; padding: .25rem 0; }
.checkout-summary .row.total { border-top: 1px solid var(--m1-border); margin-top: .5rem; padding-top: .5rem; font-weight: 700; }
.block { margin: 1.5rem 0; }
.block-hero { background: var(--m1-surface) center/cover no-repeat; border-radius: 10px; padding: 3rem 2rem; }
.block-hero-inner { max-width: 640px; background: rgba(255,255,255,.88); border-radius: 8px; padding: 1.5rem; }
.block-hero h1 { margin: 0 0 .5rem; color: var(--m1-primary); font-size: 2rem; }
.block-banner { padding: .75rem 1rem; border-radius: 6px; text-align: center; font-weight: 600; }
.block-banner.tone-info { background: #e8f1fb; color: #1f3a5f; } .block-banner.tone-warn { background: #fdece3; color: #9a3412; } .block-banner.tone-accent { background: var(--m1-accent); color: #fff; }
.block-banner a { color: inherit; }
.block-image img { width: 100%; border-radius: 8px; } .block-image figcaption { color: var(--m1-muted); font-size: .9rem; margin-top: .4rem; }
.block-text { max-width: 760px; }
/* ----- blocks: layout wrapper ----- */
.block-wrap { margin: 0 auto; }
.block-wrap.full-bleed { width: 100vw; position: relative; left: 50%; right: 50%; margin-left: -50vw; margin-right: -50vw; max-width: none; }
.block-wrap.full-bleed .block-hero { border-radius: 0; }
/* ----- hero slider ----- */
/* Slides are real <img>s. Responsive: the slider is as tall as the image (cover and contain look the same, the whole image shows).
   Fixed: the slider has the chosen aspect ratio and the image either covers (crops) or is contained (letterboxed). */
.hero-slider { position: relative; overflow: hidden; border-radius: 10px; background: var(--m1-surface); padding: 0; }
.hero-slider .slides { display: grid; }
.hero-slider .slide { grid-area: 1 / 1; position: relative; opacity: 0; transition: opacity .6s ease; pointer-events: none; }
.hero-slider .slide.active { opacity: 1; z-index: 1; pointer-events: auto; }
.hero-slider.transition-slide .slides { display: flex; transition: transform .6s ease; }
.hero-slider.transition-slide .slide { flex: 0 0 100%; opacity: 1; pointer-events: auto; }
.hero-slider .slide-img { display: block; width: 100%; height: auto; }
.hero-slider.responsive .slide:not(.active) .slide-img { visibility: hidden; }
.hero-slider.fixed-aspect .slides, .hero-slider.fixed-aspect .slide { height: 100%; }
.hero-slider.fixed-aspect .slide-img { height: 100%; object-fit: cover; }
.hero-slider.fixed-aspect .slide.fit-contain .slide-img { object-fit: contain; }
.hero-slider .slide-link { position: absolute; inset: 0; z-index: 1; }
.hero-slider .slide-inner { position: absolute; top: 50%; left: 2rem; transform: translateY(-50%); z-index: 2; max-width: min(640px, calc(100% - 4rem)); padding: 1.5rem; border-radius: 8px; }
.hero-slider .slide-inner.overlay { background: rgba(255,255,255,.88); }
.hero-slider .slide-inner.pos-center { left: 50%; transform: translate(-50%, -50%); text-align: center; } .hero-slider .slide-inner.pos-right { left: auto; right: 2rem; }
.hero-slider .slide-inner h1 { margin: 0 0 .5rem; color: var(--m1-primary); font-size: 2rem; } .hero-slider .slide-inner .btn { margin-right: .5rem; }
.hero-slider .slide:not(:has(.slide-img)) { min-height: 320px; }
.slider-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; background: rgba(255,255,255,.85); border: 0; border-radius: 50%; width: 40px; height: 40px; font-size: 1.5rem; line-height: 1; cursor: pointer; }
.slider-arrow.prev { left: .75rem; } .slider-arrow.next { right: .75rem; }
.slider-dots { position: absolute; bottom: .75rem; left: 0; right: 0; display: flex; justify-content: center; gap: .4rem; z-index: 3; }
.slider-dots .dot { width: 10px; height: 10px; border-radius: 50%; border: 0; background: rgba(255,255,255,.6); cursor: pointer; padding: 0; } .slider-dots .dot.active { background: var(--m1-accent); }
/* ----- image block modes ----- */
.image-gallery { display: grid; gap: 1rem; grid-template-columns: repeat(var(--cols, 3), 1fr); }
.image-gallery figure, .image-carousel figure { margin: 0; } .image-gallery img { width: 100%; border-radius: 8px; display: block; }
.image-carousel { position: relative; overflow: hidden; }
.image-carousel .slides { display: flex; transition: transform .5s ease; } .image-carousel .slide { flex: 0 0 100%; text-align: center; }
.image-carousel.transition-fade .slides { display: block; position: relative; } .image-carousel.transition-fade .slide { position: absolute; inset: 0; opacity: 0; transition: opacity .5s; } .image-carousel.transition-fade .slide.active { position: relative; opacity: 1; }
.image-carousel img { max-width: 100%; max-height: 70vh; border-radius: 8px; }
.slider-thumbs { display: flex; gap: .4rem; justify-content: center; margin-top: .5rem; flex-wrap: wrap; }
.slider-thumbs .thumb { border: 2px solid transparent; padding: 0; background: none; cursor: pointer; border-radius: 6px; } .slider-thumbs .thumb.active { border-color: var(--m1-accent); }
.slider-thumbs img { width: 64px; height: 64px; object-fit: cover; border-radius: 4px; display: block; }
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.9); z-index: 100; display: grid; place-items: center; }
.lightbox img { max-width: 92vw; max-height: 85vh; } .lightbox-close { position: absolute; top: 1rem; right: 1rem; font-size: 2rem; background: none; color: #fff; border: 0; cursor: pointer; }
.lightbox-caption { position: absolute; bottom: 1rem; color: #fff; } body.lightbox-open { overflow: hidden; }
/* ----- product carousel ----- */
.product-carousel { position: relative; }
.carousel-viewport { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; } .carousel-viewport::-webkit-scrollbar { display: none; }
.carousel-track { display: flex; gap: 1rem; } .carousel-item { flex: 0 0 220px; scroll-snap-align: start; }
/* ----- text, icon buttons, spacer ----- */
.block-text.align-center { text-align: center; } .block-text.align-right { text-align: right; }
.rich-text font[size="7"] { font-size: 2.2rem; } .rich-text font[size="6"] { font-size: 1.8rem; } .rich-text font[size="5"] { font-size: 1.4rem; } .rich-text font[size="4"] { font-size: 1.15rem; }
.block-icon-buttons { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
.icon-button { display: flex; flex-direction: column; align-items: center; gap: .5rem; padding: 1rem 1.25rem; border: 1px solid var(--m1-border); border-radius: 8px; text-decoration: none; color: var(--m1-text); background: var(--m1-surface); min-width: 160px; }
.icon-button img { width: 48px; height: 48px; object-fit: contain; }
/* ----- header nav and footer ----- */
.main-nav { display: flex; gap: .25rem; flex-wrap: wrap; }
.main-nav .nav-item { position: relative; } .main-nav .nav-item > a { color: #fff; text-decoration: none; padding: .4rem .6rem; display: inline-block; }
.main-nav .dropdown { display: none; position: absolute; top: 100%; left: 0; background: #fff; border: 1px solid var(--m1-border); border-radius: 6px; min-width: 200px; z-index: 20; padding: .4rem 0; }
.main-nav .dropdown a { display: block; padding: .4rem .9rem; color: var(--m1-text); text-decoration: none; } .main-nav .dropdown a:hover { background: var(--m1-surface); }
.main-nav .has-dropdown:hover .dropdown, .main-nav .has-dropdown:focus-within .dropdown { display: block; }
.brand .second-logo { margin-left: .75rem; }
.site-footer { text-align: left; } .site-footer .footer-inner { max-width: 1100px; margin: 0 auto; display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 800px) { .site-footer .footer-inner { grid-template-columns: 2fr 1fr 1fr; } }
.site-footer.text-dark { color: #1b1f24; } .site-footer.text-dark a { color: #1b1f24; } .site-footer.text-light { color: #fff; } .site-footer.text-light a { color: #fff; }
.footer-links { list-style: none; padding: 0; margin: 0; } .footer-social { display: flex; flex-wrap: wrap; gap: .75rem; } .footer-legal { grid-column: 1 / -1; font-size: .85rem; opacity: .8; }
.card.promo { margin: 1rem 0; } .card.promo label { margin-right: .5rem; } .card.promo input { padding: .4rem .5rem; margin-right: .5rem; }
