/* Modern storefront: search and CMS-controlled homepage products. */
.header:has(.modern-search), .allIndex, .allProductArchive {
    --store-ink: #183b35;
    --store-muted: #58756d;
    --store-line: #dce8e4;
    --store-surface: #fff;
    --store-soft: #f5f8f7;
    --store-accent: var(--main-color-one, #168a72);
    --store-focus: #ffb345;
    --store-max-width: 1440px;
    --store-gutter: clamp(12px, 2vw, 28px);
    --product-gap: 12px;
    --card-radius: 14px;
    --card-shadow: 0 4px 18px rgba(22, 55, 44, .045);
    --store-price: #176b52;
    --store-danger: #aa4b4b;
}
.header:has(.modern-search) { overflow: visible; }
.modern-search { position: relative; z-index: 105; }
.modern-search-form { position: relative; margin: 0; }
.modern-search .input-search {
    width: 100%; min-height: 52px; padding: 10px 45px 10px 145px;
    background: #f5f8f7; border: 1px solid #dce8e4; border-radius: 16px;
    font-size: 16px; color: #183b35; box-shadow: none; transition: border-color .2s, box-shadow .2s, background .2s;
}
.modern-search .input-search:focus {
    background: #fff; border-color: var(--main-color-one, #168a72);
    box-shadow: 0 0 0 4px rgba(29, 142, 111, .13);
}
.modern-search-icon { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: #58756d; font-size: 19px; pointer-events: none; }
.modern-search .input-btn-search {
    position: absolute; left: 5px; top: 5px; height: calc(100% - 10px); min-width: 92px;
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 0 14px; border-radius: 12px; border: 0; color: #fff;
    background: var(--main-color-one, #168a72); font-size: 14px; font-weight: 700;
}
.modern-search .input-btn-search i { font-size: 17px; }
.modern-search-clear {
    position: absolute; left: 101px; top: 4px; z-index: 2; width: 44px; height: calc(100% - 8px);
    display: inline-flex; align-items: center; justify-content: center;
    border: 0; border-radius: 10px; background: transparent; color: var(--store-muted);
}
.modern-search-clear[hidden] { display: none !important; }
.modern-search-clear:hover { background: #e6f0ec; }
.modern-search .input-btn-search:focus-visible, .modern-search-panel a:focus-visible,
.modern-search button:focus-visible { outline: 3px solid var(--store-focus); outline-offset: 2px; }
.modern-search-panel {
    position: absolute; top: calc(100% + 8px); inset-inline: 0; z-index: 1100;
    max-height: min(54vh, 520px); overflow-y: auto; overscroll-behavior: contain;
    background: #fff; border: 1px solid #dce8e4; border-radius: 18px;
    box-shadow: 0 20px 45px rgba(21, 54, 47, .18); padding: 12px;
}
.modern-search-panel[hidden], .modern-search-panel [hidden] { display: none !important; }
.modern-search-panel-head { display: none; }
.modern-search-panel-title { margin: 2px 3px 12px; font-size: 14px; font-weight: 700; color: #234c42; }
.modern-search-recent, .modern-search-popular, .modern-search-related { padding: 5px 0 12px; }
.modern-search-recent:not(:last-child), .modern-search-popular:not(:last-child), .modern-search-related:not(:last-child) {
    border-bottom: 1px solid #edf2f0; margin-bottom: 10px;
}
.modern-search-recent-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.modern-search-recent-head button {
    border: 0; background: transparent; color: var(--store-muted); min-height: 44px; padding: 4px 8px; font-size: 12px;
}
.modern-search-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.modern-search-chips a {
    display: inline-flex; align-items: center; min-height: 44px; padding: 8px 12px;
    background: #f2f7f5; border-radius: 999px; color: #285b50; font-size: 13px; text-decoration: none;
}
.modern-search-status { margin: 8px; font-size: 13px; color: #536a62; }
.modern-search-options { display: grid; gap: 3px; }
.modern-search-option {
    display: flex; align-items: center; gap: 12px; min-height: 65px; padding: 7px;
    border-radius: 12px; color: #183b35; font-size: 14px; text-decoration: none;
}
.modern-search-option:hover, .modern-search-option[aria-selected="true"] { background: #eef8f4; color: #123d31; }
.modern-search-option img { width: 50px; height: 50px; flex: none; object-fit: contain; border-radius: 8px; background: #fff; }
.modern-search-option-details { display: flex; flex: 1; min-width: 0; flex-direction: column; gap: 3px; }
.modern-search-option-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.modern-search-option-brand { color: var(--store-muted); font-size: 12px; }
.modern-search-option-meta { display: flex; flex: none; flex-direction: column; align-items: flex-end; gap: 2px; font-size: 12px; white-space: nowrap; }
.modern-search-option-meta strong { color: var(--store-ink); font-size: 12px; }
.modern-search-option-meta small { font-size: 11px; }
.modern-search-option-meta .is-available { color: #18735a; }
.modern-search-option-meta .is-unavailable { color: #aa4b4b; }
.modern-search-all {
    display: flex; align-items: center; justify-content: space-between; min-height: 44px;
    padding: 8px 12px; margin-top: 6px; color: var(--main-color-one, #168a72);
    border-top: 1px solid #edf2f0; font-size: 14px; font-weight: 700; text-decoration: none;
}
.allIndex .product-box { height: 100%; border: 1px solid #e5ede9; border-radius: var(--card-radius); box-shadow: var(--card-shadow); }
.allIndex .product-box-image img { width: 100%; height: 200px; max-height: none; object-fit: contain; }
.allIndex .product-box-title h5 { font-size: 15px; line-height: 1.5; height: 3em; }
.allIndex .product-box-price-price h5 { font-size: clamp(15px, 1.6vw, 20px); }
.allIndex .product-box:hover .product-box-image img { filter: none; }
.allIndex .product-box-hover { display: none; }
.allIndex .product-box > a:focus-visible, .allIndex .product-row-item > a:focus-visible {
    outline: 3px solid var(--store-focus); outline-offset: 2px; border-radius: var(--card-radius);
}
.allIndex .store-product-brand { display: block; color: var(--store-muted); font-size: 12px; line-height: 1.5; }
.allIndex .store-product-stock { display: block; margin-top: 7px; font-size: 12px; font-weight: 600; }
.allIndex .store-product-stock.is-available { color: #18735a; }
.allIndex .store-product-stock.is-unavailable { color: var(--store-danger); }
.allIndex { background: #fff; color: var(--store-ink); }
.allIndex .store-section { padding-block: clamp(24px, 3.5vw, 52px); }
.allIndex .store-section--secondary { background: #f7faf8; }
.allIndex .store-section--special { background: #fbfcfb; }
.allIndex .store-section__container {
    width: 100%; max-width: var(--store-max-width); margin-inline: auto;
    padding-inline: var(--store-gutter);
}
.allIndex .store-section__header {
    display: flex; align-items: flex-end; justify-content: space-between; gap: 16px;
    margin-bottom: clamp(16px, 2vw, 26px);
}
.allIndex .store-section__heading { min-width: 0; }
.allIndex .store-section__heading h2 {
    margin: 0; color: var(--store-ink); font-size: clamp(20px, 2vw, 29px);
    font-weight: 800; line-height: 1.45;
}
.allIndex .store-section__heading h2 span { color: var(--store-accent); }
.allIndex .store-section__heading p {
    margin: 5px 0 0; color: var(--store-muted); font-size: clamp(12px, 1.2vw, 14px); line-height: 1.7;
}
.allIndex .store-section__more {
    display: inline-flex; flex: none; align-items: center; gap: 7px; min-height: 44px;
    padding: 8px 12px; border: 1px solid var(--store-line); border-radius: 10px;
    color: var(--store-accent); font-size: 13px; font-weight: 700; text-decoration: none;
}
.allIndex .store-section__more:hover { background: var(--store-soft); color: var(--store-ink); }
.allIndex .store-product-grid {
    display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: clamp(10px, 1.3vw, 18px); min-width: 0;
}
.allIndex .store-section .store-product-card {
    min-width: 0; height: 100%; overflow: hidden; border: 1px solid #e5ede9;
    border-radius: var(--card-radius); background: var(--store-surface); box-shadow: var(--card-shadow);
}
.allIndex .store-section .store-product-card__link {
    display: flex; flex-direction: column; height: 100%; color: var(--store-ink); text-decoration: none;
}
.allIndex .store-section .store-product-card__link:focus-visible, .allIndex .store-section__more:focus-visible {
    outline: 3px solid var(--store-focus); outline-offset: -3px;
}
.allIndex .store-section .store-product-card__media {
    position: relative; display: grid; place-items: center; overflow: hidden;
    width: 100%; aspect-ratio: 1 / 1; padding: 12px; background: #f8faf9;
}
.allIndex .store-section .store-product-card__media img {
    display: block; width: 100%; height: 100%; max-height: 220px;
    object-fit: contain; background: transparent;
}
.allIndex .store-section .store-product-card__discount {
    position: absolute; inset-block-start: 10px; inset-inline-start: 10px;
    padding: 5px 8px; border-radius: 7px; background: #a43d46;
    color: #fff; font-size: 11px; font-weight: 700;
}
.allIndex .store-section .store-product-card__body {
    display: flex; flex: 1; flex-direction: column; min-width: 0; padding: 13px;
}
.allIndex .store-section .store-product-card__brand {
    display: block; overflow: hidden; max-width: 100%; color: var(--store-muted);
    font-size: 12px; line-height: 1.5; text-overflow: ellipsis; white-space: nowrap;
}
.allIndex .store-section .store-product-card__title {
    display: -webkit-box; overflow: hidden; min-height: 3em; max-height: 3em;
    margin: 5px 0 12px; font-size: 14px; font-weight: 650; line-height: 1.5;
    -webkit-box-orient: vertical; -webkit-line-clamp: 2;
}
.allIndex .store-section .store-product-card__bottom {
    display: flex; align-items: flex-end; justify-content: space-between;
    gap: 8px; margin-top: auto; min-width: 0;
}
.allIndex .store-section .store-product-card__prices { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.allIndex .store-section .store-product-card__prices del { color: #7c8984; font-size: 11px; white-space: nowrap; }
.allIndex .store-section .store-product-card__prices strong {
    color: var(--store-price); font-size: clamp(13px, 1.25vw, 17px); line-height: 1.5; white-space: nowrap;
}
.allIndex .store-section .store-product-card__prices strong small { font-size: 11px; font-weight: 500; }
.allIndex .store-section .store-product-card__stock {
    flex: none; padding: 4px 6px; border-radius: 6px; font-size: 10px; line-height: 1.4; white-space: nowrap;
}
.allIndex .store-section .store-product-card__stock.is-available { background: #e9f6ef; color: #176b52; }
.allIndex .store-section .store-product-card__stock.is-unavailable { background: #fff0f0; color: #a43d46; }
.allIndex .store-section .store-product-card__cta {
    display: flex; align-items: center; justify-content: space-between; gap: 6px;
    min-height: 44px; margin-top: 12px; border-top: 1px solid #eef2f0;
    color: var(--store-accent); font-size: 12px; font-weight: 700;
}
.allIndex .store-section .store-product-card__countdown { margin-top: 2px; }
.allIndex .site-category > .container-fluid, .allIndex .advert-banner > .container-fluid,
.allIndex .blog-slider > .container-fluid { max-width: var(--store-max-width); padding-inline: var(--store-gutter); }
.allIndex .site-category-items { height: 100%; box-shadow: none !important; border: 1px solid var(--store-line); }
.allIndex .site-category-items a { display: grid; justify-items: center; gap: 9px; min-height: 100%; text-decoration: none; }
.allIndex .site-category-items-icon img { width: 88px; height: 88px; object-fit: contain; }
.allIndex .site-category-items h6 { margin: 0; font-size: 13px; line-height: 1.5; }
.allIndex .advert-banner-item { overflow: hidden; border-radius: var(--card-radius); }
.allIndex .store-banner-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 16px; }
.allIndex .advert-banner { padding-block: 12px; }
.allIndex .advert-banner-item img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 1; object-fit: contain; }
.allIndex .blog-slider img { max-width: 100%; height: auto; }
.allProductArchive .allPaginateHome .pages { display: flex; flex-wrap: wrap; gap: 7px; }
.allProductArchive .allPaginateHome .pages button {
    min-width: 42px; min-height: 42px; padding: 6px 10px; border: 1px solid #d9e8df;
    border-radius: 10px; background: #fff; color: #245947; font-size: 13px; font-weight: 700;
}
.allProductArchive .allPaginateHome .pages button.true { background: var(--main-color-one, #168a72); color: #fff; }
.allProductArchive .allPaginateHome .pages button:focus-visible { outline: 3px solid #ffb345; outline-offset: 2px; }
.allProductArchive .allPaginateHome .pages button:disabled:not(.true) { opacity: .45; cursor: default; }
@media (max-width: 1199.98px) {
    .header > .container-fluid > .row { --bs-gutter-x: .5rem; --bs-gutter-y: .5rem; }
    .modern-search-slot { margin-top: 0; }
    .modern-search-slot .modern-search-panel { max-height: min(50vh, 430px); }
    .modern-cart-shortcut { min-width: 44px; min-height: 44px; }
    .header .btn-responsive-menu { min-width: 44px; min-height: 44px; }
}
@media (max-width: 767.98px) {
    body.modern-search-lock { overflow: hidden !important; }
    .header.modern-search-layer { position: relative; z-index: 5000 !important; }
    .modern-search .input-search { min-height: 48px; padding-left: 99px; font-size: 16px; }
    .modern-search .input-btn-search { min-width: 43px; padding: 0; }
    .modern-search-clear { left: 48px; }
    .modern-search.modern-search-expanded {
        position: fixed !important; inset: 0 !important; z-index: 5001 !important;
        display: flex !important; flex-direction: column; width: 100vw; height: 100dvh;
        padding: calc(env(safe-area-inset-top) + 10px) 12px calc(env(safe-area-inset-bottom) + 10px);
        background: var(--store-surface); border-radius: 0;
    }
    .modern-search-expanded .modern-search-form { flex: none; }
    .modern-search-expanded .modern-search-panel {
        position: static; flex: 1; min-height: 0; max-height: none; overflow-y: auto;
        margin-top: 10px; padding: 0 2px; border: 0; border-radius: 0; box-shadow: none;
    }
    .modern-search-expanded .modern-search-panel-head {
        display: flex !important; align-items: center; justify-content: space-between;
        min-height: 52px; margin-bottom: 8px; border-bottom: 1px solid var(--store-line);
        color: var(--store-ink); font-weight: 700;
    }
    .modern-search-panel-head button {
        display: inline-flex; align-items: center; justify-content: center;
        width: 44px; height: 44px; border: 0; border-radius: 10px;
        background: var(--store-soft); color: var(--store-ink);
    }
    .modern-search-panel { border-radius: 16px; max-height: min(48vh, 400px); }
    .modern-search-option { min-height: 72px; }
    .modern-search-option-meta { max-width: 38%; }
    .allIndex .store-section .store-product-card__media { padding: 8px; }
    .allIndex .store-section .store-product-card__body { padding: 10px; }
    .allIndex .store-section .store-product-card__title { font-size: 12px; }
    .allIndex .store-section .store-product-card__prices strong { font-size: 13px; }
    .allIndex .store-section .store-product-card__stock { font-size: 9px; }
    .allProductArchive .productLists > .productList:not(.col-12) { width: 50%; }
    .allProductArchive .productLists { --bs-gutter-x: .6rem; --bs-gutter-y: .6rem; }
    .allProductArchive .product-box { height: 100%; padding: 9px; border-radius: 13px; }
    .allProductArchive .product-box-image img { width: 100%; height: 135px; max-height: none; object-fit: contain; }
    .allProductArchive .product-box-title h5 { height: 3em; font-size: 13px; line-height: 1.5; }
    .allProductArchive .product-box-price-price h5 { font-size: 15px; }
    .allProductArchive .product-box-price-price p, .allProductArchive .product-box-price-discount del { font-size: 11px; }
    .allProductArchive .product-box-hover { display: none; }
}
@media (prefers-reduced-motion: reduce) { .modern-search .input-search { transition: none; } }
@media (min-width: 1400px) {
    .allIndex .store-product-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
@media (min-width: 1024px) and (max-width: 1279.98px) {
    .allIndex .store-product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 768px) and (max-width: 1023.98px) {
    .allIndex .store-product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 767.98px) {
    .allIndex .store-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .allIndex .store-section__header { align-items: flex-start; }
    .allIndex .store-section__heading h2 { font-size: 20px; }
}
@media (max-width: 479.98px) {
    .allIndex .store-section__container { padding-inline: 12px; }
    .allIndex .store-product-grid { gap: 9px; }
    .allIndex .store-section .store-product-card__body { padding: 8px; }
    .allIndex .store-section .store-product-card__bottom { flex-wrap: wrap; align-items: flex-start; }
    .allIndex .store-section .store-product-card__stock { order: -1; }
    .allIndex .store-section .store-product-card__prices strong { font-size: 12px; }
    .allIndex .store-section__more { font-size: 11px; padding: 6px; }
}
