/* Storefront-only improvements, loaded after the shared application stylesheet. */
.store-skip-link { position: fixed; top: -100px; left: 16px; z-index: 1000; padding: 14px; background: white; color: #172033; }
.store-skip-link:focus { top: 12px; }
.ninico-refresh :focus-visible { outline: 3px solid #2563eb; outline-offset: 3px; }
.store-clear-filters { display: inline-flex; align-items: center; min-height: 44px; color: #be123c; font-weight: 700; }
.ninico-filtered .ninico-hero, .ninico-filtered .ninico-services { display: none; }
.ninico-refresh .ninico-tabs { max-width: 100%; overflow-x: auto; }
.ninico-refresh .ninico-tabs a { flex-shrink: 0; }
.ninico-refresh .ninico-section-head { min-width: 0; }
.ninico-refresh .ninico-section-head > div { min-width: 0; }
.ninico-refresh .ninico-section-head h2 { overflow-wrap: anywhere; }
.ninico-refresh [data-cart-count][hidden] { display: none; }
.ninico-refresh .ninico-cart-drawer { overflow: hidden; }
.ninico-refresh .ninico-announcement { contain: paint; }
.store-category-dialog { width: min(480px, calc(100% - 24px)); max-height: 85vh; max-height: 85dvh; padding: 0; border: 0; border-radius: 22px; color: #172033; background: #fff; overscroll-behavior: contain; }
.store-category-dialog::backdrop { background: rgb(15 23 42 / 55%); }
.store-category-dialog header { position: sticky; top: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 22px; background: #fff; border-bottom: 1px solid #e5e7eb; }
.store-category-dialog header span { font-size: 11px; letter-spacing: .1em; color: #64748b; }
.store-category-dialog h2 { margin: 6px 0 0; font-size: 23px; }
.store-category-dialog button { flex: 0 0 44px; height: 44px; border: 0; border-radius: 50%; background: #f1f5f9; color: #172033; font-size: 28px; cursor: pointer; }
.store-category-dialog nav { display: grid; gap: 6px; padding: 16px; }
.store-category-dialog nav a { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 12px 16px; border-radius: 12px; color: inherit; text-decoration: none; overflow-wrap: anywhere; }
.store-category-dialog nav a:hover, .store-category-dialog [aria-current] { background: #fff1f2; color: #be123c; font-weight: 700; }
.store-category-help { display: block; padding: 18px 22px calc(22px + env(safe-area-inset-bottom)); color: #475569; border-top: 1px solid #e5e7eb; }
body.store-categories-open { overflow: hidden; }

@media (max-width: 760px) {
    .ninico-refresh { padding-bottom: calc(80px + env(safe-area-inset-bottom)); }
    .ninico-refresh .ninico-announcement { min-height: 32px; padding: 6px 12px; }
    .ninico-refresh .ninico-announcement-track { transform: none !important; width: 100%; }
    .ninico-refresh .ninico-announcement-group { width: 100%; padding: 0; justify-content: center; gap: 8px; }
    .ninico-refresh .ninico-announcement-group > span:first-child { max-width: 100%; font-size: 11px; }
    .ninico-refresh .ninico-announcement-group > a:not(.ninico-orbit-return-top) { display: none; }
    .ninico-refresh .ninico-announcement .ninico-orbit-return-top { margin: 0; }
    .ninico-refresh .ninico-header { width: 100%; grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 12px max(16px, calc((100vw - 600px) / 2)); background: #fff; }
    .ninico-refresh .ninico-logo { min-width: 0; }
    .ninico-refresh .ninico-logo strong { font-size: 22px; line-height: 1.2; overflow-wrap: anywhere; }
    .ninico-refresh .ninico-logo span { width: 32px; height: 32px; }
    .ninico-refresh .ninico-actions, .ninico-refresh .ninico-utility, .ninico-refresh .ninico-nav { display: none; }
    .ninico-refresh .ninico-search { min-height: 48px; border-radius: 12px; background: #f8fafc; }
    .ninico-refresh .ninico-search select { display: none; }
    .ninico-refresh .ninico-page { width: min(100% - 24px, 600px); }
    .ninico-refresh .ninico-hero { margin-bottom: 16px; }
    .ninico-refresh .ninico-main-banner { padding: 0; border-radius: 18px; }
    .ninico-refresh .ninico-hero-track, .ninico-refresh .ninico-hero-slide { min-height: 260px; }
    .ninico-refresh .ninico-hero-slide { padding: 22px; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 8px; align-items: center; }
    .ninico-refresh .ninico-hero-slide h1 { font-size: clamp(23px, 6vw, 32px); overflow-wrap: anywhere; }
    .ninico-refresh .ninico-hero-slide p { display: none; }
    .ninico-refresh .ninico-hero-slide img { position: static; width: 100%; max-height: 180px; margin: 0; transform: none; }
    .ninico-refresh .ninico-hero-placeholder { width: 100%; min-width: 0; }
    .ninico-refresh .ninico-main-banner .ninico-hero-placeholder { width: 100%; min-width: 0; }
    .ninico-refresh .ninico-main-banner .ninico-hero-placeholder small { white-space: normal; overflow-wrap: anywhere; font-size: 10px; text-align: center; }
    .ninico-refresh .ninico-services { display: none; }
    .ninico-refresh .ninico-section { padding: 16px 0; border: 0; background: transparent; }
    .ninico-refresh .ninico-section-head { gap: 10px; }
    .ninico-refresh .ninico-section-head h2 { font-size: 24px; line-height: 1.2; }
    .ninico-refresh .ninico-tabs { padding: 2px 0 8px; }
    .ninico-refresh .ninico-tabs a { border-radius: 24px; border: 1px solid #e2e8f0; background: white; }
    .ninico-refresh .ninico-tabs a.active { background: #fff1f2; border-color: #fda4af; color: #be123c; }
    .ninico-refresh .ninico-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .ninico-refresh .ninico-product-card { min-width: 0; grid-template-rows: auto 1fr auto; border-radius: 16px; }
    .ninico-refresh .ninico-product-media { min-height: 150px; padding: 30px 12px 8px; }
    .ninico-refresh .ninico-product-media img { width: 100%; height: 120px; object-fit: contain; }
    .ninico-refresh .ninico-product-copy { padding: 8px 12px 12px; }
    .ninico-refresh .ninico-product-copy h3 { font-size: 14px; line-height: 1.4; min-height: 39px; overflow-wrap: anywhere; }
    .ninico-refresh .ninico-product-copy small { font-size: 11px; overflow-wrap: anywhere; }
    .ninico-refresh .ninico-product-copy div { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; }
    .ninico-refresh .ninico-product-copy strong { font-size: 16px; overflow-wrap: anywhere; }
    .ninico-refresh .ninico-product-card form { padding: 0 10px 12px; }
    .ninico-refresh .ninico-product-card form button { min-height: 46px; font-size: 12px; border-radius: 10px; }
    .ninico-refresh .ninico-mobile-nav { display: grid; position: fixed; inset: auto 0 0; grid-template-columns: repeat(4, 1fr); background: #fff; border-top: 1px solid #e2e8f0; box-shadow: 0 -4px 20px rgb(15 23 42 / 6%); }
    .ninico-refresh .ninico-mobile-nav a { display: grid; place-items: center; align-content: center; gap: 4px; font-size: 11px; color: #334155; }
    .ninico-refresh .ninico-whatsapp-float { width: 44px; height: 44px; bottom: calc(78px + env(safe-area-inset-bottom)); }
    .ninico-cart-open .ninico-mobile-nav, .ninico-checkout-open .ninico-mobile-nav,
    .ninico-cart-open .ninico-whatsapp-float, .ninico-checkout-open .ninico-whatsapp-float { visibility: hidden; }
    .ninico-refresh .ninico-cart-drawer > aside { height: 100dvh; }
    .ninico-refresh .ninico-cart-quantity button, .ninico-refresh [data-cart-remove] button { min-width: 44px; min-height: 44px; }
    .ninico-refresh .ninico-cart-drawer-items { overscroll-behavior: contain; }
    .ninico-refresh .ninico-cart-drawer-items article > div { min-width: 0; overflow-wrap: anywhere; }
    .ninico-refresh .ninico-checkout.is-checkout-modal { padding: 0; }
    .ninico-refresh .ninico-checkout.is-checkout-modal .ninico-checkout-form { max-height: 100dvh; overscroll-behavior: contain; padding: 20px 16px calc(24px + env(safe-area-inset-bottom)); border-radius: 0; }
    .ninico-refresh .ninico-form-grid { grid-template-columns: 1fr; }
    .ninico-refresh .ninico-checkout-form input:not([type=radio]):not([type=checkbox]), .ninico-refresh .ninico-checkout-form select, .ninico-refresh .ninico-checkout-form textarea { font-size: 16px; min-height: 48px; max-width: 100%; }
    .ninico-refresh .ninico-checkout.is-checkout-modal .ninico-choice-grid.delivery-choices,
    .ninico-refresh .ninico-checkout.is-checkout-modal .ninico-choice-grid.payments { grid-template-columns: 1fr; }
    .ninico-refresh .ninico-checkout.is-checkout-modal .ninico-place-order { bottom: 0; }
    .axis-product-shell { width: calc(100% - 24px); }
    .axis-product-brand { min-width: 0; font-size: 17px; overflow-wrap: anywhere; }
    .axis-product-header > a:last-child { min-width: 44px; min-height: 44px; justify-content: center; }
    .axis-product-gallery { padding: 12px; }
    .axis-product-main-image, .axis-product-main-image img { min-height: 260px; height: 260px; }
    .axis-product-copy { padding: 22px 18px; }
    .axis-product-copy h1 { font-size: 30px; overflow-wrap: anywhere; }
    .axis-product-buy { position: sticky; bottom: 0; z-index: 5; grid-template-columns: minmax(0, 1fr) auto; padding: 12px 0 calc(12px + env(safe-area-inset-bottom)); background: #fff; }
}
@media (prefers-reduced-motion: reduce) {
    .ninico-refresh *, .ninico-refresh *::before, .ninico-refresh *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Keep payment choices visible before the final action, including on phones. */
.ninico-refresh .ninico-checkout.is-checkout-modal .ninico-place-order { position: static; }
.ninico-new-customer { padding: 16px; margin-bottom: 16px; border: 1px solid #dce4ee; border-radius: 12px; background: #f5f8fc; }
.ninico-new-customer p { margin: 8px 0; line-height: 1.5; }
.ninico-new-customer a { display: inline-block; padding: 8px 0; font-weight: 800; text-decoration: underline; }
#checkoutPayment { scroll-margin-top: 64px; }
.axis-product-buy > a { display: inline-flex; min-height: 54px; align-items: center; justify-content: center; gap: 9px; padding: 0 18px; border-radius: 12px; background: #0c9c58; color: #fff; font: inherit; font-weight: 900; text-decoration: none; }
.axis-product-buy > a:hover { background: #08733f; }
.axis-product-buy > a:focus-visible { outline: 3px solid #14213d; outline-offset: 3px; }

/* One shared alignment for the checkout heading, fields and final action. */
.ninico-refresh .ninico-checkout.is-checkout-modal .ninico-checkout-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    min-height: 0;
    margin: 0 0 20px;
    padding: 0 0 20px;
}
.ninico-refresh .ninico-checkout.is-checkout-modal .ninico-checkout-heading > div { flex: 1; min-width: 0; }
.ninico-refresh .ninico-checkout.is-checkout-modal .ninico-checkout-heading .ninico-checkout-close {
    position: static;
    float: none;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    margin: 0;
}
@media (max-width: 760px) {
    .ninico-refresh .ninico-checkout.is-checkout-modal .ninico-checkout-form {
        box-sizing: border-box;
        width: 100%;
        height: 100dvh;
        min-height: 0;
        max-height: 100dvh;
        padding: 20px 18px calc(28px + env(safe-area-inset-bottom));
        overflow-x: hidden;
    }
    .ninico-refresh .ninico-checkout.is-checkout-modal .ninico-checkout-heading h2 {
        font-size: clamp(22px, 5.6vw, 27px);
        line-height: 1.2;
        margin: 6px 0 0;
        overflow-wrap: normal;
        text-wrap: balance;
    }
    .ninico-refresh .ninico-checkout.is-checkout-modal .ninico-returning-toggle {
        display: grid;
        grid-template-columns: 20px minmax(0, 1fr);
        align-items: start;
        gap: 12px;
        min-height: 0;
        padding: 14px;
    }
    .ninico-refresh .ninico-checkout.is-checkout-modal .ninico-returning-toggle input { width: 20px; height: 20px; margin: 3px 0 0; }
    .ninico-refresh .ninico-checkout.is-checkout-modal .ninico-returning-toggle strong { font-size: 16px; line-height: 1.35; }
    .ninico-refresh .ninico-checkout.is-checkout-modal .ninico-returning-toggle small { display: block; margin-top: 4px; font-size: 14px; line-height: 1.45; }
    .ninico-refresh .ninico-checkout.is-checkout-modal .ninico-form-grid { gap: 16px; }
    .ninico-refresh .ninico-checkout.is-checkout-modal .ninico-form-grid label { min-width: 0; }
    .ninico-refresh .ninico-checkout.is-checkout-modal input:not([type=radio]):not([type=checkbox]),
    .ninico-refresh .ninico-checkout.is-checkout-modal select,
    .ninico-refresh .ninico-checkout.is-checkout-modal textarea { box-sizing: border-box; width: 100%; min-width: 0; padding: 12px 14px; font-size: 16px; }
    .ninico-refresh .ninico-checkout.is-checkout-modal input::placeholder { font-size: 14px; }
    .ninico-refresh .ninico-checkout.is-checkout-modal .ninico-place-order { width: 100%; margin: 24px 0 0; min-height: 52px; white-space: normal; }
}
