:root {
    --store-navy: #102d53;
    --store-ink: #14243a;
    --store-muted: #45576e;
    --store-border: #dbe3ed;
    --store-surface: #f4f7fb;
    --store-gutter: clamp(1rem, 4vw, 3rem);
}

.skip-link {
    position: fixed;
    top: .75rem;
    left: .75rem;
    z-index: 50;
    transform: translateY(-200%);
    background: white;
    color: var(--store-navy);
    padding: .7rem 1rem;
    border-radius: .5rem;
}
.skip-link:focus { transform: none; }
:where(a, button, summary, input, select, textarea):focus-visible { outline: 2px solid #1264d1; outline-offset: 3px; }
#MainContent [hidden] { display: none; }

.store-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .6rem var(--store-gutter);
    border-bottom: 1px solid var(--store-border);
    background: white;
    position: relative;
    z-index: 5;
    font-weight: 500;
}
.store-header nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .5rem 1.15rem; }
.store-header details { position: relative; }
.store-header summary { cursor: pointer; }
.store-header nav a:hover, .store-header summary:hover { color: #155cb5; }
.store-dropdown {
    position: absolute;
    z-index: 10;
    background: white;
    width: 13rem;
    padding: .6rem;
    border: 1px solid var(--store-border);
    border-radius: .5rem;
    box-shadow: 0 .5rem 1.5rem #102d531a;
}
.store-dropdown a { display: block; padding: .45rem .5rem; border-radius: .3rem; }
.store-dropdown a:hover { background: var(--store-surface); }
.store-brand { flex-shrink: 0; }
.store-brand img { height: auto; width: 140px; }
.m-topbar { font-size: .9rem; border-bottom: 1px solid var(--store-border); padding-block: .4rem; }
.m-topbar__right { text-align: right; }
.nav-actions { display: flex; align-items: center; gap: .25rem; }
.nav-actions a { position: relative; display: grid; place-items: center; min-width: 2.5rem; min-height: 2.5rem; }
.nav-actions svg { width: 1.25rem; height: 1.25rem; }
.nav-actions span { position: absolute; top: 0; right: 0; background: var(--store-navy); color: white; border-radius: 1rem; padding: 0 .3rem; font-size: .75rem; }
.menu-toggle { display: none; font-size: 1.4rem; min-width: 2.75rem; min-height: 2.75rem; }

.store-content { max-width: 1320px; margin: 0 auto; padding: clamp(1.6rem, 4vw, 3.5rem) var(--store-gutter); color: var(--store-ink); }
.store-content h1 { font-size: clamp(2rem, 4vw, 3.6rem); line-height: 1.12; margin: 0 0 1rem; color: var(--store-ink); }
.store-content p { margin-block: .65rem; }
.store-content p a, .catalog-heading > a, .catalog-results a, .product-breadcrumb a, .cart-summary > a:last-child {
    text-decoration: underline;
    text-underline-offset: .2em;
}
.store-form { display: flex; align-items: center; gap: .65rem; flex-wrap: wrap; margin-block: 1rem; }
.store-form input, .catalog-filters :is(input, select) {
    min-height: 2.75rem;
    padding: .5rem .65rem;
    border: 1px solid #8393a8;
    border-radius: .45rem;
    background-color: white;
    color: var(--store-ink);
    font-size: 1rem;
}
.store-form input[type=number] { width: 5rem; }
.store-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-height: 2.75rem;
    padding: .55rem 1.15rem;
    border-radius: .45rem;
    background: var(--store-navy);
    color: white;
    font-weight: 600;
    text-align: center;
}
.store-button:hover { background: #19447a; color: white; }
.store-notice { padding: .7rem 1rem; border-inline-start: 3px solid #426b9a; background: var(--store-surface); }
.store-empty { margin-block: 1rem; padding: 1.5rem; border: 1px solid var(--store-border); border-radius: .65rem; }
.store-empty .store-button, .support-page .store-button { margin-top: .55rem; }
.support-page p { max-width: 54ch; }

.catalog-heading, .catalog-results { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: .7rem; }
.catalog-heading { margin-bottom: 1.3rem; }
.catalog-heading h1 { margin: 0; }
.catalog-heading a, .catalog-results a { color: var(--store-navy); font-weight: 600; }
.collection-banner { display: block; width: 100%; aspect-ratio: 4 / 1; object-fit: contain; height: auto; margin-bottom: 1.1rem; }
.catalog-filters {
    display: grid;
    grid-template-columns: minmax(14rem, 2fr) minmax(10rem, 1fr) minmax(12rem, 1fr) auto;
    gap: .65rem 1rem;
    align-items: end;
    padding: 1rem;
    border: 1px solid var(--store-border);
    border-radius: .65rem;
    background: var(--store-surface);
}
.catalog-filters label { display: grid; gap: .25rem; font-weight: 600; font-size: .9rem; }
.catalog-filters :is(input, select) { width: 100%; min-width: 0; font-weight: 400; }
.catalog-filters select {
    appearance: none;
    background: white var(--arrow-select-box) no-repeat right .7rem center / .8rem auto;
    padding-inline-end: 2rem;
}
.price-filter { grid-row: 2; grid-column: 1 / -1; }
.price-filter summary { width: fit-content; cursor: pointer; color: var(--store-navy); font-size: .9rem; font-weight: 600; }
.price-filter > div { display: grid; grid-template-columns: repeat(2, minmax(0, 9rem)); gap: .75rem; padding-top: .45rem; }
.catalog-results { margin-block: .65rem; color: var(--store-muted); font-size: .95rem; }
.store-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.1rem; }
.store-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: .9rem;
    background: white;
    border: 1px solid var(--store-border);
    border-radius: .65rem;
}
.card-product { width: 100%; margin-bottom: auto; }
.store-card img { width: 100%; aspect-ratio: 1; height: auto; object-fit: contain; background: #f8fafc; border-radius: .4rem; margin-bottom: .75rem; }
.store-card h2 { font-size: 1.07rem; font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }
.store-card a:hover h2 { color: #155cb5; }
.card-price { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; font-weight: 600; }
.stock-label { font-size: .8rem; color: #873535; background: #fcefee; padding: .12rem .35rem; border-radius: .25rem; }
.product-card-choice { color: var(--store-navy); font-weight: 600; text-decoration: underline; text-underline-offset: .2em; }
.card-actions, .product-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .2rem .8rem; }
.card-actions { margin-top: .55rem; border-top: 1px solid var(--store-border); width: 100%; padding-top: .4rem; }
.card-actions a, .card-actions button, .product-actions button { display: inline-flex; min-height: 2rem; align-items: center; color: var(--store-muted); font-size: .9rem; text-align: start; }
.card-actions a:hover, .card-actions button:hover, .product-actions button:hover { text-decoration: underline; color: var(--store-navy); }
.store-pages { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: .4rem; margin-block: 2rem 0; }
.store-pages a { display: grid; place-items: center; min-width: 2.65rem; min-height: 2.65rem; border: 1px solid var(--store-border); border-radius: .4rem; }
.store-pages a[aria-current] { background: var(--store-navy); color: white; }

.product-breadcrumb { display: flex; align-items: center; gap: .6rem; margin-bottom: 1.3rem; font-size: .9rem; color: var(--store-muted); }
.product-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    gap: .75rem clamp(1.5rem, 4vw, 3.5rem);
    align-items: start;
}
.product-gallery { grid-column: 1; grid-row: 1 / span 2; display: grid; gap: .75rem; }
.product-intro, .product-purchase { grid-column: 2; }
.product-intro h1, .product-intro h2 { font-size: clamp(1.8rem, 3.5vw, 3rem); line-height: 1.15; margin: 0; overflow-wrap: anywhere; }
.product-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: .65rem; font-size: 1.6rem; }
.product-price del { color: var(--store-muted); font-size: 1rem; }
.product-hero { width: 100%; height: clamp(15rem, 34vw, 32rem); padding: .45rem; object-fit: contain; background: #f8fafc; border: 1px solid var(--store-border); border-radius: .65rem; }
.product-thumbnails, .product-options { display: flex; gap: .5rem; flex-wrap: wrap; }
.product-thumbnails img { width: 3.9rem; height: 3.9rem; object-fit: contain; border: 1px solid var(--store-border); border-radius: .4rem; }
.product-thumbnails a[aria-current] img { outline: 2px solid var(--store-navy); outline-offset: -2px; }
.option-label { font-weight: 600; }
.product-options a { border: 1px solid #8393a8; border-radius: .4rem; padding: .43rem .7rem; }
.product-options a[aria-current] { background: var(--store-navy); border-color: var(--store-navy); color: white; }
.product-description { margin-top: 2.4rem; padding-top: 1.3rem; border-top: 1px solid var(--store-border); overflow-wrap: anywhere; overflow-x: auto; }
.product-description > h2:first-child { font-size: 1.5rem; margin-bottom: .75rem; }
.product-description ul, .product-description ol { padding-inline-start: 1.5rem; list-style: revert; }
.quick-view { width: min(95vw, 960px); max-height: 90dvh; overflow: auto; padding: clamp(.9rem, 3vw, 1.75rem); margin: auto; border: 0; border-radius: .75rem; }
.quick-view::backdrop { background: #14243ab3; }
.quick-close { display: block; margin: 0 0 .75rem auto; min-height: 2.25rem; text-decoration: underline; }
.quick-content[aria-busy=true] { opacity: .7; }
.product-preview { padding: 0; }

.store-cart-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto auto;
    gap: .8rem 1rem;
    align-items: center;
    padding: 1rem;
    margin-bottom: .65rem;
    border: 1px solid var(--store-border);
    border-radius: .6rem;
}
.store-cart-row > a { font-weight: 600; }
.store-cart-row .store-form { margin: 0; }
.store-cart-row button[name=quantity] { text-decoration: underline; color: var(--store-muted); }
.cart-summary { display: flex; justify-content: flex-end; align-items: center; flex-wrap: wrap; gap: .65rem 1rem; padding-block: .85rem; }
.order-form { display: block; width: 100%; max-width: 100%; border: 1px solid var(--store-border); border-radius: .6rem; }

#MainContent :is(.et-schools-slider, .et-brands-slider, .et-carousel, .et-testimonial-marquee) { min-width: 0; }
#MainContent :is(.et-schools-slider, .et-brands-slider, .et-carousel, .et-testimonial-marquee, .creator-channel-container) :is(.et-schools-viewport, .et-brands-viewport, .et-viewport, .et-testimonial-viewport, .creator-carousel),
#MainContent m-testimonials .swiper-wrapper {
    min-width: 0;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
}
#MainContent :is(.et-schools-slider, .et-brands-slider, .et-carousel, .et-testimonial-marquee, .creator-carousel) :is(.et-schools-track, .et-brands-track, .et-track, .et-testimonial-track, .creator-carousel-track) {
    animation: none;
    will-change: auto;
}
#MainContent :is(.et-schools-track, .et-brands-track, .et-track, .et-testimonial-group, .creator-carousel-track, m-testimonials .swiper-wrapper) > * { scroll-snap-align: start; }
#MainContent m-testimonials .swiper-slide { max-width: min(85vw, 420px); }

@media (max-width: 1120px) {
    .store-header { display: grid; grid-template-columns: 1fr auto 1fr; gap: .6rem; }
    .store-header.is-enhanced .menu-toggle { display: block; justify-self: start; }
    .store-header nav { grid-column: 1 / -1; order: 4; justify-content: start; }
    .store-header.is-enhanced nav { display: none; }
    .store-header.is-enhanced nav.open { display: flex; flex-direction: column; align-items: stretch; padding-block: .45rem; }
    .store-header nav > :is(a, details) { padding: .35rem 0; }
    .store-header .store-dropdown { position: static; box-shadow: none; width: auto; margin-top: .4rem; }
    .store-brand { grid-column: 2; }
    .store-brand img { width: 110px; }
    .nav-actions { grid-column: 3; justify-self: end; }
    .m-topbar__left, .m-topbar__right { display: none; }
    .m-topbar__center { width: 100%; }
}
@media (max-width: 880px) {
    .store-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .catalog-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .catalog-search { grid-column: 1 / -1; }
    .price-filter { grid-row: auto; }
}
@media (max-width: 680px) {
    .store-header { padding-inline: .75rem; }
    .nav-actions a { min-width: 2.2rem; }
    .store-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
    .store-card { padding: .65rem; }
    .store-card h2 { font-size: 1rem; }
    .catalog-heading { margin-bottom: .95rem; }
    .product-layout { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; }
    .product-intro, .product-gallery, .product-purchase { grid-column: 1; grid-row: auto; }
    .product-hero { height: clamp(15rem, 68vw, 24rem); }
    .product-thumbnails img { width: 3.15rem; height: 3.15rem; }
    .store-cart-row { grid-template-columns: minmax(0, 1fr) auto; }
    .cart-summary { justify-content: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
    #MainContent [data-et-content] { animation: none !important; }
}

@media (max-width: 680px) {
    #MainContent .et-testimonial-marquee .et-marquee-arrow {
        display: flex;
        width: 2.4rem;
        height: 2.4rem;
    }
}

.store-button-whatsapp { background: #17644c; }
.store-button-whatsapp:hover { background: #104d3a; }

.checkout-page { max-width: 64rem; }
.checkout-layout {
    display: grid;
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
    align-items: start;
    gap: 1.25rem;
}
.checkout-items, .checkout-form, .checkout-copy {
    padding: clamp(1rem, 3vw, 1.5rem);
    border: 1px solid var(--store-border);
    border-radius: .65rem;
}
.checkout-items { background: var(--store-surface); }
.checkout-layout h2 { margin: 0 0 1rem; font-size: 1.3rem; font-weight: 600; }
.checkout-items ul { padding: 0; margin: 0 0 1rem; list-style: none; }
.checkout-items li { display: flex; justify-content: space-between; gap: .5rem; padding: .65rem 0; border-bottom: 1px solid var(--store-border); overflow-wrap: anywhere; }
.checkout-items li span + span { flex-shrink: 0; color: var(--store-muted); }
.checkout-items a { text-decoration: underline; text-underline-offset: .2em; }
.checkout-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem; }
.checkout-form > :is(h2, .checkout-field-wide, p, button) { grid-column: 1 / -1; }
.checkout-form h2 { margin: 0; }
.checkout-field, .checkout-copy { display: grid; gap: .35rem; font-weight: 600; }
.checkout-field :is(input, textarea), .checkout-copy textarea {
    width: 100%;
    min-height: 2.75rem;
    padding: .6rem .7rem;
    border: 1px solid #8393a8;
    border-radius: .45rem;
    color: var(--store-ink);
    background: white;
    font: inherit;
    font-weight: 400;
}
.checkout-form textarea, .checkout-copy textarea { resize: vertical; }
.checkout-field [aria-invalid=true] { border-color: #9b2c2c; }
.checkout-field-error { color: #9b2c2c; font-size: .9rem; }
.checkout-sharing { color: var(--store-muted); }
.checkout-copy .store-button { margin-top: .5rem; }
@media (max-width: 680px) {
    .checkout-layout { grid-template-columns: minmax(0, 1fr); }
}
