/* FR Store commerce layer. Native WooCommerce data and forms remain authoritative. */
.woocommerce .fr-store-site ul.products[class*="columns-"] {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 14px;
    padding: 0;
    margin: 0 0 32px;
    clear: both;
}
.woocommerce .fr-store-site ul.products[class*="columns-"]::before,
.woocommerce .fr-store-site ul.products[class*="columns-"]::after { display: none; }
.woocommerce .fr-store-site ul.products[class*="columns-"] li.product {
    float: none;
    clear: none;
    width: 100%;
    margin: 0;
    min-width: 0;
    padding-bottom: 14px;
    border: 1px solid #e5e9ef;
    border-radius: 14px;
    box-shadow: none;
}
.woocommerce .fr-store-site ul.products li.product a img {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: contain;
    background: white;
    padding: 10px;
    margin: 0 0 12px;
}
.woocommerce .fr-store-site ul.products li.product .woocommerce-loop-product__title {
    font-size: 15px;
    line-height: 1.4;
    font-weight: 650;
    min-height: 42px;
    max-height: 42px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    margin: 0 14px;
    padding: 0;
}
.woocommerce .fr-store-site ul.products li.product .price {
    color: var(--fr-navy-950);
    font-size: 19px;
    font-weight: 800;
    margin: 10px 14px 14px;
}
.woocommerce .fr-store-site ul.products li.product .button {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    font-size: 13px;
    line-height: 1.3;
    padding: 10px 8px;
    margin: auto 12px 0;
    background: var(--fr-navy-900);
    color: white;
    border: 1px solid var(--fr-navy-900);
    border-radius: 8px;
}
.woocommerce .fr-store-site ul.products li.product .button:hover {
    background: var(--fr-orange);
    color: var(--fr-navy-950);
    border-color: var(--fr-orange);
}
.woocommerce .fr-store-site ul.products li.product a.added_to_cart { padding: 10px 14px 0; font-size: 14px; }
.woocommerce .fr-store-site ul.products li.product .onsale { z-index: 2; }

/* Discovery uses WooCommerce's native taxonomy and price filtering. */
.fr-store-catalog-discovery { clear: both; margin: 0 0 24px; }
.fr-store-collections {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 4px 0 14px;
    scrollbar-width: thin;
}
.fr-store-collections a {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 8px 15px;
    background: white;
    border: 1px solid var(--fr-line);
    border-radius: 24px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 650;
}
.fr-store-collections a:hover,
.fr-store-collections a[aria-current] { background: var(--fr-navy-900); color: white; border-color: var(--fr-navy-900); }
.fr-store-filter-panel { background: white; border: 1px solid var(--fr-line); border-radius: 12px; }
.fr-store-filter-panel summary {
    cursor: pointer;
    padding: 15px;
    min-height: 50px;
    font-weight: 700;
}
.fr-store-filter-panel summary .dashicons { vertical-align: middle; margin-right: 5px; }
.fr-store-filter-hint { color: var(--fr-muted); font-size: 13px; font-weight: 400; margin-left: 14px; }
.fr-store-filter-form { display: grid; gap: 14px; padding: 0 16px 18px; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: end; }
.fr-store-filter-form label { display: grid; gap: 6px; font-size: 13px; font-weight: 650; }
.fr-store-filter-form input,
.fr-store-filter-form select { min-width: 0; width: 100%; min-height: 46px; font-size: 16px; }
.fr-store-filter-form input { border: 1px solid var(--fr-line); border-radius: 8px; padding: 10px 12px; }
.fr-store-filter-form button { cursor: pointer; min-height: 46px; }
.fr-store-clear-filters { display: flex; align-items: center; justify-content: center; min-height: 46px; font-size: 14px; }
.woocommerce .woocommerce-result-count { font-size: 14px; color: var(--fr-muted); }
.woocommerce .woocommerce-ordering select { font-size: 14px; max-width: 100%; }
.woocommerce nav.woocommerce-pagination ul { border: 0; display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; }
.woocommerce nav.woocommerce-pagination ul li { border: 0; }
.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span { min-width: 44px; min-height: 44px; border-radius: 8px; padding: 14px; }
.woocommerce nav.woocommerce-pagination ul li span.current { background: var(--fr-navy-900); color: white; }

/* An editorial product heading, gallery and native purchase panel. */
body.single-product { background: white; }
.single-product .fr-store-content--commerce { max-width: 1280px; padding-top: 28px; }
.woocommerce .fr-store-content--commerce div.product { column-gap: 56px; row-gap: 0; align-items: start; }
.fr-store-product-intro { min-width: 0; padding-bottom: 20px; }
.fr-store-product-eyebrow { color: var(--fr-muted); font-size: 11px; letter-spacing: .16em; font-weight: 700; margin: 0 0 12px; }
.woocommerce div.product .fr-store-product-intro .product_title {
    font-size: clamp(28px, 3vw, 44px);
    line-height: 1.1;
    letter-spacing: -.035em;
    font-weight: 750;
    color: var(--fr-navy-950);
    margin: 0 0 18px;
}
.woocommerce div.product .fr-store-product-intro > .price {
    font-size: 30px;
    font-weight: 750;
    line-height: 1.2;
    letter-spacing: -.025em;
    color: var(--fr-navy-950);
    margin: 0 0 10px;
}
.woocommerce div.product .fr-store-product-intro > .price del { font-size: 18px; opacity: .65; }
.fr-store-payment-note { margin: 0; font-size: 13px; color: var(--fr-success); font-weight: 650; }
.fr-store-payment-note span { color: var(--fr-muted); font-weight: 400; }
.woocommerce .fr-store-content--commerce div.product .summary {
    background: transparent;
    border: 0;
    box-shadow: none;
    border-radius: 0;
    padding: 0;
}
.fr-store-purchase-anchor { display: block; scroll-margin-top: 160px; }
.woocommerce .fr-store-content--commerce div.product .woocommerce-product-gallery {
    background: #f6f7f8;
    border: 0;
    border-radius: 16px;
    padding: 14px;
    margin-bottom: 24px !important;
    align-self: start;
}
.woocommerce .fr-store-content--commerce div.product .woocommerce-product-gallery__image img {
    width: 100%;
    height: auto;
    max-height: 560px;
    aspect-ratio: 1;
    object-fit: contain;
}
.woocommerce div.product .woocommerce-product-gallery .flex-control-thumbs { display: flex; gap: 10px; padding: 12px 0 0; }
.woocommerce div.product .woocommerce-product-gallery .flex-control-thumbs li { width: 64px; float: none; flex: 0 0 64px; }
.woocommerce div.product .woocommerce-product-gallery .flex-control-thumbs li img { aspect-ratio: 1; object-fit: contain; border: 1px solid transparent; border-radius: 8px; }
.woocommerce div.product .woocommerce-product-gallery .flex-control-thumbs li img.flex-active { border-color: var(--fr-navy-900); }
.woocommerce .fr-store-content--commerce .woocommerce-product-details__short-description { color: #4b586c; font-size: 15px; line-height: 1.65; margin-bottom: 22px; }
.woocommerce .fr-store-content--commerce .woocommerce-product-details__short-description p { margin-top: 0; }
.woocommerce .fr-store-content--commerce .fr-store-variation-chips { background: transparent; border: 0; border-radius: 0; padding: 0; margin-bottom: 16px; gap: 20px; }
.fr-store-variation-chips:empty { display: none; }
.woocommerce .fr-store-content--commerce form.fr-store-options-enhanced table.variations[hidden] { display: none; }
.fr-store-variation-reset[hidden] { display: none; }
.woocommerce .fr-store-content--commerce .fr-store-variation-chip-group__label { font-size: 14px; font-weight: 650; }
.woocommerce .fr-store-content--commerce .fr-store-variation-chip {
    background: white;
    border: 1px solid #b8c1ce;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    min-width: 58px;
    min-height: 48px;
    padding: 10px 17px;
}
.woocommerce .fr-store-content--commerce .fr-store-variation-chip.is-selected {
    color: var(--fr-navy-900);
    background: var(--fr-orange-soft);
    border-color: var(--fr-navy-900);
    box-shadow: inset 0 0 0 1px var(--fr-navy-900);
}
.woocommerce .fr-store-content--commerce .fr-store-color-chip { display: inline-flex; align-items: center; gap: 9px; }
.fr-store-color-chip::before { content: ''; width: 18px; height: 18px; border: 1px solid #a7adb5; border-radius: 50%; background: var(--swatch); }
.fr-store-color-chip--beige { --swatch: #dbc6a6; }
.fr-store-color-chip--negro { --swatch: #202020; }
.fr-store-color-chip--blanco { --swatch: #fff; }
.fr-store-color-chip--azul { --swatch: #2b4a87; }
.fr-store-color-chip--rosa { --swatch: #e3adc3; }
.fr-store-color-chip--gris { --swatch: #898b90; }
.woocommerce .fr-store-content--commerce .fr-store-selection-status { margin: 0; color: #536278; font-size: 13px; line-height: 1.4; }
.woocommerce .fr-store-content--commerce .fr-store-variation-reset { font-size: 13px; min-height: 44px; padding: 6px 0; }
.woocommerce .fr-store-content--commerce div.product form.cart { margin-bottom: 0; }
.woocommerce .fr-store-content--commerce div.product form.cart .single_variation_wrap { width: 100%; }
.woocommerce div.product .woocommerce-variation-add-to-cart,
.woocommerce div.product form.cart:not(.variations_form):not(.grouped_form) { display: flex; gap: 10px; align-items: stretch; flex-wrap: wrap; }
.woocommerce .fr-store-content--commerce div.product form.cart .quantity { flex: 0 0 78px; width: 78px; margin: 0; }
.woocommerce .fr-store-content--commerce div.product form.cart .quantity .qty { width: 78px; min-height: 54px; border: 1px solid #b8c1ce; border-radius: 8px; background: white; font-size: 17px; }
.woocommerce .fr-store-content--commerce div.product form.cart .single_add_to_cart_button {
    flex: 1 1 160px;
    width: auto;
    min-height: 54px;
    padding: 14px;
    border: 1px solid var(--fr-orange);
    border-radius: 8px;
    background: var(--fr-orange);
    color: var(--fr-navy-950);
    font-size: 16px;
    font-weight: 750;
    line-height: 1.3;
}
.woocommerce .fr-store-content--commerce div.product form.cart .single_add_to_cart_button:hover { background: #ffad43; border-color: #ffad43; }
.woocommerce .fr-store-content--commerce div.product form.cart .single_add_to_cart_button:disabled { opacity: .55; cursor: not-allowed; }
.woocommerce .fr-store-content--commerce div.product .woocommerce-variation-price .price { font-size: 22px; margin: 0 0 12px; }
.woocommerce .fr-store-content--commerce .fr-store-confidence-strip { border: 0; border-top: 1px solid #e5e9ef; background: transparent; border-radius: 0; padding: 20px 0 0; margin: 24px 0 16px; }
.woocommerce .fr-store-content--commerce .fr-store-confidence-strip ul { gap: 15px; }
.woocommerce .fr-store-content--commerce .fr-store-confidence-strip li::before { content: none; }
.woocommerce .fr-store-content--commerce .fr-store-confidence-strip li { gap: 12px; align-items: start; }
.fr-store-confidence-strip .dashicons { width: 24px; height: 24px; font-size: 24px; margin-top: 1px; color: var(--fr-navy-800); }
.fr-store-confidence-strip strong,
.fr-store-confidence-strip small { display: block; }
.fr-store-confidence-strip strong { font-size: 13px; font-weight: 700; }
.fr-store-confidence-strip small { font-size: 12px; color: var(--fr-muted); font-weight: 400; margin-top: 2px; line-height: 1.5; }
.woocommerce .fr-store-content--commerce a.button.fr-store-whatsapp-draft-button { background: white; color: var(--fr-navy-900); border: 1px solid var(--fr-navy-900); font-size: 14px; font-weight: 650; min-height: 48px; }
.woocommerce .fr-store-content--commerce a.button.fr-store-whatsapp-draft-button:hover { background: var(--fr-navy-900); color: white; }
.fr-store-product-meta { display: grid; gap: 5px; font-size: 12px; color: var(--fr-muted); margin-top: 18px; }
.woocommerce div.product .woocommerce-tabs { margin-top: 38px; border-top: 1px solid var(--fr-line); padding-top: 24px; }
.woocommerce div.product .woocommerce-tabs ul.tabs { display: flex; gap: 20px; overflow-x: auto; padding: 0; margin: 0 0 24px; }
.woocommerce div.product .woocommerce-tabs ul.tabs::before,
.woocommerce div.product .woocommerce-tabs ul.tabs li::before,
.woocommerce div.product .woocommerce-tabs ul.tabs li::after { display: none; }
.woocommerce div.product .woocommerce-tabs ul.tabs li { flex: 0 0 auto; border: 0; border-bottom: 2px solid transparent; background: white; padding: 0; margin: 0; border-radius: 0; }
.woocommerce div.product .woocommerce-tabs ul.tabs li a { padding: 12px 0; font-size: 14px; }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active { border-bottom-color: var(--fr-navy-900); }
.woocommerce div.product .woocommerce-tabs .panel { max-width: 850px; font-size: 15px; color: #4b586c; line-height: 1.8; }
.woocommerce div.product .woocommerce-tabs .panel h2 { color: var(--fr-navy-950); font-size: 23px; letter-spacing: -.025em; }
.woocommerce .fr-store-content--commerce div.product .related { margin-top: 28px; }
.woocommerce .fr-store-content--commerce div.product .related h2 { font-size: 25px; letter-spacing: -.025em; margin-bottom: 24px; }
.fr-store-mobile-purchase { display: none; }

/* Navigation stays shallow; mobile navigation overlays instead of shifting content. */
.fr-store-search button,
.fr-store-cart__count { color: var(--fr-navy-950); }
.fr-store-header__navigation-inner { min-height: 46px; }
.fr-store-menu a,
.fr-store-category-navigation a { display: inline-flex; align-items: center; min-height: 44px; }
.admin-bar .fr-store-header { top: 32px; }
@media (min-width: 760px) {
    .fr-store-header__navigation-inner { gap: 18px; }
    .fr-store-category-navigation { flex-wrap: nowrap; gap: 18px; overflow-x: auto; scrollbar-width: none; }
    .fr-store-category-navigation a { white-space: nowrap; }
    .fr-store-navigation { display: none; }
    .fr-store-filter-form { grid-template-columns: 1.3fr 1.2fr .8fr .8fr auto auto; }
    .woocommerce .fr-store-site ul.products[class*="columns-"] { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
}
@media (min-width: 1000px) {
    .woocommerce .fr-store-site ul.products[class*="columns-"] { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
    .woocommerce .fr-store-content--commerce div.product { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
    .fr-store-product-intro { grid-column: 2; grid-row: 1; }
    .woocommerce .fr-store-content--commerce div.product div.woocommerce-product-gallery { grid-column: 1; grid-row: 1 / span 2; position: sticky; top: 170px; }
    .woocommerce .fr-store-content--commerce div.product .summary { grid-column: 2; grid-row: 2; }
}
@media (max-width: 899px) {
    .woocommerce .fr-store-content--commerce div.product { grid-template-columns: minmax(0, 1fr); }
    .fr-store-product-intro { grid-row: 1; padding-bottom: 20px; }
    .woocommerce .fr-store-content--commerce div.product .woocommerce-product-gallery { grid-row: 2; }
    .woocommerce .fr-store-content--commerce div.product .summary { grid-row: 3; }
    .woocommerce .fr-store-content--commerce div.product .related ul.products[class*="columns-"] {
        display: grid;
        grid-auto-flow: column;
        grid-auto-columns: minmax(170px, 43%);
        grid-template-columns: none;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 14px;
        padding: 2px 2px 16px;
    }
    .woocommerce .fr-store-content--commerce div.product .related ul.products li.product { scroll-snap-align: start; }
    .fr-store-mobile-purchase {
        position: fixed;
        z-index: 25;
        bottom: 0;
        left: 0;
        right: 0;
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 14px;
        padding: 12px 18px max(12px, env(safe-area-inset-bottom));
        border-top: 1px solid var(--fr-line);
        background: white;
        box-shadow: 0 -4px 20px #14233a0d;
    }
    .fr-store-mobile-purchase > div { min-width: 0; }
    .fr-store-mobile-purchase small { display: block; max-width: 180px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 11px; color: var(--fr-muted); }
    .fr-store-mobile-purchase strong { font-size: 19px; color: var(--fr-navy-950); }
    .fr-store-mobile-purchase a { display: flex; align-items: center; justify-content: center; min-height: 48px; background: var(--fr-orange); color: var(--fr-navy-950); text-decoration: none; padding: 10px 18px; border-radius: 8px; font-size: 14px; font-weight: 700; white-space: nowrap; }
    .single-product .fr-store-footer { padding-bottom: 110px; }
}
@media (max-width: 759px) {
    .fr-store-header__utility { display: none; }
    .fr-store-header__navigation { position: absolute; top: 100%; left: 0; right: 0; max-height: 70vh; overflow-y: auto; box-shadow: 0 14px 24px #14233a22; }
    .fr-store-menu,
    .fr-store-category-navigation { gap: 0; width: 100%; }
    .fr-store-header__navigation a { width: 100%; }
    .fr-store-category-navigation { padding-bottom: 10px; }
    .fr-store-header__main { min-height: 58px; }
    .fr-store-logo { font-size: 27px; }
    .fr-store-cart,
    .fr-store-menu-toggle { min-height: 44px; }
    .fr-store-filter-hint { display: none; }
    .fr-store-filter-form label:nth-of-type(-n+2) { grid-column: 1 / -1; }
    .fr-store-content--commerce { padding-left: 16px; padding-right: 16px; }
    .single-product .fr-store-content--commerce { padding-top: 22px; }
    .woocommerce .fr-store-content--commerce div.product .woocommerce-product-gallery { padding: 10px; border-radius: 12px; }
    .woocommerce .fr-store-content--commerce div.product .woocommerce-product-gallery__image img { max-height: 350px; }
    .woocommerce div.product .fr-store-product-intro .product_title { font-size: 30px; margin-bottom: 12px; }
    .woocommerce div.product .fr-store-product-intro > .price { font-size: 27px; }
    .woocommerce .fr-store-site ul.products li.product .woocommerce-loop-product__title { font-size: 14px; margin: 0 12px; min-height: 40px; max-height: 40px; }
    .woocommerce .fr-store-site ul.products li.product .price { font-size: 17px; margin-left: 12px; margin-right: 12px; }
    .woocommerce .woocommerce-result-count,
    .woocommerce .woocommerce-ordering { float: none; margin-bottom: 16px; }
    .woocommerce .woocommerce-ordering select { width: 100%; }
    .admin-bar .fr-store-header { top: 46px; }
}
@media (max-width: 359px) {
    .woocommerce .fr-store-site ul.products[class*="columns-"] { grid-template-columns: minmax(0, 1fr); gap: 16px; }
    .woocommerce .fr-store-site ul.products li.product .button { font-size: 12px; margin-left: 8px; margin-right: 8px; }
    .fr-store-mobile-purchase { padding-left: 12px; padding-right: 12px; gap: 8px; }
    .fr-store-mobile-purchase a { padding-left: 12px; padding-right: 12px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .woocommerce .fr-store-site ul.products li.product { transition: none; }
}
