/* Commerce surfaces only. Editorial pages and the homepage article cards stay on their own styles. */
body.trofa-shared-shell {
    --trofa-app-green: #17633c;
    --trofa-app-green-hover: #104b2d;
    --trofa-app-ink: #243c30;
    --trofa-app-muted: #526459;
    --trofa-app-line: #dce5de;
    --trofa-app-soft: #f0f6f1;
    accent-color: var(--trofa-app-green);
}

body.trofa-shared-shell .trofa-site-header {
    background: #fff;
    border-bottom-color: var(--trofa-app-line);
}

body.trofa-shared-shell .trofa-header-search {
    border-color: #c8d6cb;
    border-radius: 10px;
}

body.trofa-shared-shell .trofa-header-search:focus-within {
    border-color: var(--trofa-app-green);
    box-shadow: 0 0 0 3px rgba(23, 99, 60, .12);
}

body.trofa-commerce-app .trofa-store.woocommerce .woocommerce-breadcrumb {
    margin-bottom: 16px;
    color: var(--trofa-app-muted);
}

body.trofa-commerce-app .trofa-filters {
    border: 1px solid var(--trofa-app-line);
    background: #fff;
    border-radius: 14px;
}

body.trofa-commerce-app .trofa-filters input[type=search]:focus,
body.trofa-commerce-app .trofa-filters select:focus {
    border-color: var(--trofa-app-green);
    outline: 3px solid rgba(23, 99, 60, .12);
    outline-offset: 1px;
}

body.trofa-commerce-app .trofa-categories a {
    border-radius: 999px;
    background: #fff;
}

body.trofa-commerce-app .trofa-categories a[aria-current=page] {
    background: var(--trofa-app-green);
    color: #fff;
}

body.trofa-commerce-app .trofa-store.woocommerce ul.products:not(.trofa-carousel-track) li.trofa-product-card {
    text-align: center;
    border-radius: 14px;
    border-color: var(--trofa-app-line);
    background: #fff;
}

body.trofa-commerce-app .woocommerce-Price-currencySymbol { margin-inline: 0; }

body.trofa-commerce-app .trofa-store.woocommerce ul.products:not(.trofa-carousel-track) li.product .button {
    min-height: 46px;
    border-radius: 8px;
}

body.trofa-commerce-app .trofa-catalog-toolbar .woocommerce-ordering select,
body.trofa-commerce-app .trofa-commerce-page.woocommerce .input-text,
body.trofa-commerce-app .trofa-commerce-page.woocommerce select {
    border-radius: 9px;
}

body.trofa-commerce-app .trofa-commerce-page.woocommerce #place_order,
body.trofa-commerce-app .trofa-commerce-page.woocommerce .wc-proceed-to-checkout a {
    min-height: 52px;
    border-radius: 9px;
    font-size: 15px;
}

@media (hover: hover) and (pointer: fine) {
    body.trofa-commerce-app .trofa-store.woocommerce ul.products:not(.trofa-carousel-track) li.trofa-product-card {
        transition: border-color .16s ease, box-shadow .16s ease;
    }
    body.trofa-commerce-app .trofa-store.woocommerce ul.products:not(.trofa-carousel-track) li.trofa-product-card:hover {
        border-color: #a8c5b1;
        box-shadow: 0 8px 22px rgba(27, 72, 45, .08);
    }
}

.trofa-mobile-tabbar { display: none; }

/* Compact store discovery on desktop; keep results visible above the fold on phones. */
body.trofa-commerce-app .trofa-catalog-layout {
    display: grid;
    grid-template-columns: 274px minmax(0, 1fr);
    grid-template-areas: "sidebar results";
    align-items: start;
    gap: 24px;
}
body.trofa-commerce-app .trofa-catalog-sidebar { grid-area: sidebar; min-width: 0; }
body.trofa-commerce-app .trofa-catalog-results { grid-area: results; min-width: 0; }
body.trofa-commerce-app .trofa-catalog-filter-details {
    border: 1px solid var(--trofa-app-line);
    border-radius: 14px;
    background: #fff;
}
body.trofa-commerce-app .trofa-catalog-filter-details > summary {
    display: flex;
    min-height: 54px;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    color: var(--trofa-app-ink);
    font-weight: 700;
    cursor: pointer;
    list-style: none;
}
body.trofa-commerce-app .trofa-catalog-filter-details > summary::-webkit-details-marker { display: none; }
body.trofa-commerce-app .trofa-catalog-filter-details > summary:after { content: "⌄"; margin-inline-start: auto; color: var(--trofa-app-muted); }
body.trofa-commerce-app .trofa-catalog-filter-details[open] > summary:after { content: "⌃"; }
body.trofa-commerce-app .trofa-catalog-filter-body { padding: 0 14px 14px; }
body.trofa-commerce-app .trofa-catalog-filter-body h2 { margin: 4px 0 12px; font-size: 16px; }
body.trofa-commerce-app .trofa-catalog-filter-body .trofa-filters { display: grid; gap: 12px; margin: 0 0 12px; padding: 0; background: transparent; }
body.trofa-commerce-app .trofa-catalog-filter-body .trofa-filters > div { min-width: 0; }
body.trofa-commerce-app .trofa-catalog-filter-body .trofa-filters .trofa-stock-toggle { white-space: normal; }
body.trofa-commerce-app .trofa-catalog-filter-body .trofa-categories { margin: 0; }

/* Focused account entry and a cart summary that stays easy to scan. */
body.trofa-commerce-app .trofa-account-page {
    display: flex;
    min-height: min(600px, calc(100svh - 320px));
    align-items: center;
    justify-content: center;
}
body.trofa-commerce-app .trofa-auth-stage { width: min(100%, 440px); margin: auto; }
body.trofa-commerce-app .trofa-auth { width: 100%; margin: 0 auto; box-shadow: 0 12px 36px rgba(27, 72, 45, .07); }
body.trofa-commerce-app .trofa-auth-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
body.trofa-commerce-app .trofa-cart-page { display: flow-root; }
body.trofa-commerce-app .trofa-cart-page .woocommerce-cart-form { float: right; width: calc(68% - 14px); }
body.trofa-commerce-app .trofa-cart-page .cart-collaterals { float: left; width: calc(32% - 14px); }
body.trofa-commerce-app .trofa-cart-page .cart_totals { float: none; width: 100%; padding: 20px; border: 1px solid var(--trofa-app-line); border-radius: 14px; background: #fff; }
body.trofa-commerce-app .trofa-cart-page .cart_totals h2 { margin: 0 0 14px; font-size: 19px; }
body.trofa-commerce-app .trofa-cart-page table.shop_table { border-collapse: separate; border-spacing: 0; overflow: hidden; border: 1px solid var(--trofa-app-line); background: #fff; }
body.trofa-commerce-app .trofa-cart-page table.shop_table th { background: #f5f8f5; font-size: 13px; }
body.trofa-commerce-app .trofa-cart-page .product-thumbnail img { width: 68px; height: 68px; object-fit: contain; border-radius: 8px; background: #f7faf7; }
body.trofa-commerce-app .trofa-cart-page .product-name a { font-weight: 700; }
body.trofa-commerce-app .trofa-cart-page .coupon { display: flex; gap: 8px; }
body.trofa-commerce-app .trofa-cart-page .coupon .input-text { width: min(180px, 48%); min-height: 44px; }
body.trofa-commerce-app .trofa-cart-page .coupon button,
body.trofa-commerce-app .trofa-cart-page button[name=update_cart] { min-height: 44px; border-radius: 8px; }
body.trofa-commerce-app .trofa-cart-page .wc-proceed-to-checkout { padding: 14px 0 0; }
body.trofa-commerce-app .trofa-cart-page .wc-proceed-to-checkout a { width: 100%; }
body.trofa-commerce-app .trofa-cart-page .cart-empty { margin: 0 0 20px; padding: 28px 24px; border: 1px solid var(--trofa-app-line); border-radius: 14px; background: var(--trofa-app-soft); text-align: center; }
body.trofa-commerce-app .trofa-cart-page .cart-empty:before { content: "✓"; color: var(--trofa-app-green); font-family: inherit; font-size: 22px; line-height: 1; }
body.trofa-commerce-app .trofa-cart-page .return-to-shop { text-align: center; }

@media (max-width: 767px) {
    body.trofa-commerce-app {
        padding-bottom: calc(78px + env(safe-area-inset-bottom));
        background: #f8faf8;
        -webkit-tap-highlight-color: rgba(23, 99, 60, .12);
    }

    body.trofa-commerce-app.woocommerce-checkout {
        padding-bottom: 24px;
    }

    body.trofa-commerce-app .trofa-site-header {
        position: sticky;
        top: 0;
        z-index: 80;
        box-shadow: 0 2px 10px rgba(28, 58, 39, .06);
    }

    body.trofa-commerce-app .trofa-header-main {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas: "brand menu" "search search";
        gap: 8px;
        margin-inline: 16px;
        padding: 8px 0 10px;
    }

    body.trofa-commerce-app .trofa-brand {
        grid-area: brand;
        flex: none;
        width: 92px;
        min-height: 40px;
    }

    body.trofa-commerce-app .trofa-brand img {
        width: 92px;
        height: 40px;
        object-fit: contain;
    }

    body.trofa-commerce-app .trofa-header-search {
        grid-area: search;
        width: 100%;
        max-width: none;
        min-height: 46px;
        background: #f6f9f6;
    }

    body.trofa-commerce-app .trofa-header-search input {
        min-height: 44px;
        padding-inline: 14px;
        font-size: 16px;
    }

    body.trofa-commerce-app .trofa-header-search button {
        min-width: 46px;
        min-height: 44px;
    }

    body.trofa-commerce-app .trofa-header-actions,
    body.trofa-commerce-app .trofa-header-nav {
        display: none;
    }

    body.trofa-commerce-app .trofa-catalog-heading h1,
    body.trofa-commerce-app .trofa-product-page .product_title,
    body.trofa-commerce-app .trofa-commerce-page > h1 {
        font-size: clamp(24px, 6vw, 28px);
        line-height: 1.55;
    }

    body.trofa-commerce-app .trofa-catalog-heading {
        display: grid;
        grid-template-columns: minmax(0, 1fr) max-content;
        grid-template-areas: "title consultation" "description description";
        align-items: center;
        gap: 4px 8px;
        margin-block: 8px 12px;
    }

    body.trofa-commerce-app .trofa-catalog-heading > div {
        display: contents;
    }

    body.trofa-commerce-app .trofa-catalog-heading h1 {
        grid-area: title;
        min-width: 0;
        margin: 0;
        font-size: clamp(22px, 6vw, 26px);
    }

    body.trofa-commerce-app .trofa-catalog-heading > a {
        grid-area: consultation;
        justify-self: end;
        max-width: 100%;
        gap: 4px;
        font-size: 12px;
        white-space: nowrap;
    }

    body.trofa-commerce-app .trofa-catalog-heading p {
        grid-area: description;
        margin: 0;
        font-size: 12px;
        line-height: 1.7;
    }

    body.trofa-commerce-app .trofa-filters {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(118px, .7fr);
        align-items: end;
        gap: 12px;
        margin-bottom: 12px;
        padding: 14px;
        border-radius: 14px;
    }

    body.trofa-commerce-app .trofa-filters .trofa-search-field,
    body.trofa-commerce-app .trofa-filters > div:not(.trofa-search-field) {
        grid-column: 1 / -1;
        min-width: 0;
    }

    body.trofa-commerce-app .trofa-filters input[type=search],
    body.trofa-commerce-app .trofa-filters select {
        min-height: 48px;
        border-radius: 9px;
        font-size: 16px;
    }

    body.trofa-commerce-app .trofa-filters label {
        font-size: 13px;
    }

    body.trofa-commerce-app .trofa-filters .trofa-stock-toggle {
        grid-column: 1;
        min-height: 48px;
        white-space: normal;
        font-size: 13px;
    }

    body.trofa-commerce-app .trofa-filters .trofa-stock-toggle input {
        flex: 0 0 20px;
        width: 20px;
        height: 20px;
    }

    body.trofa-commerce-app .trofa-filters > .trofa-button {
        grid-column: 2;
        width: 100%;
        min-height: 48px;
        padding-inline: 10px;
        border-radius: 9px;
        font-size: 13px;
    }

    body.trofa-commerce-app .trofa-categories {
        flex-wrap: nowrap;
        gap: 8px;
        overflow-x: auto;
        overscroll-behavior-inline: contain;
        padding-block: 4px 8px;
        margin-bottom: 16px;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    body.trofa-commerce-app .trofa-categories::-webkit-scrollbar { display: none; }

    body.trofa-commerce-app .trofa-categories a {
        flex: 0 0 auto;
        min-height: 42px;
        padding: 8px 14px;
        border-radius: 999px;
        white-space: nowrap;
        font-size: 13px;
    }

    body.trofa-commerce-app .trofa-catalog-toolbar {
        align-items: center;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 8px;
        margin-block: 18px 12px;
    }

    body.trofa-commerce-app .trofa-catalog-toolbar .woocommerce-result-count {
        font-size: 12px;
    }

    body.trofa-commerce-app .trofa-catalog-toolbar .woocommerce-ordering {
        max-width: 100%;
    }

    body.trofa-commerce-app .trofa-catalog-toolbar .woocommerce-ordering select {
        min-height: 44px;
        max-width: min(52vw, 220px);
        font-size: 13px;
    }

    body.trofa-commerce-app .trofa-store.woocommerce ul.products:not(.trofa-carousel-track) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    body.trofa-commerce-app .trofa-store.woocommerce ul.products:not(.trofa-carousel-track) li.trofa-product-card {
        min-height: 0;
        padding: 10px;
        border-radius: 12px;
    }

    body.trofa-commerce-app .trofa-store.woocommerce ul.products:not(.trofa-carousel-track) li.product img {
        height: 128px;
        margin-bottom: 10px;
    }

    body.trofa-commerce-app .trofa-store.woocommerce ul.products:not(.trofa-carousel-track) li.product .woocommerce-loop-product__title {
        min-height: 0;
        margin-bottom: 4px;
        font-size: 13px;
        line-height: 1.8;
    }

    body.trofa-commerce-app .trofa-store.woocommerce ul.products:not(.trofa-carousel-track) li .trofa-product-status {
        min-height: 34px;
        margin-bottom: 6px !important;
        font-size: 11px;
    }

    body.trofa-commerce-app .trofa-store.woocommerce ul.products:not(.trofa-carousel-track) li .trofa-product-price {
        min-height: 34px;
        margin-bottom: 8px;
        font-size: 13px;
    }

    body.trofa-commerce-app .trofa-store.woocommerce ul.products:not(.trofa-carousel-track) li.product .button {
        min-height: 44px;
        padding: 8px 6px;
        font-size: 12px;
    }

    body.trofa-commerce-app .trofa-product-page.woocommerce div.product div.images,
    body.trofa-commerce-app .trofa-product-page.woocommerce div.product div.summary {
        float: none;
        width: 100%;
    }

    body.trofa-commerce-app .trofa-product-page.woocommerce div.product div.images {
        margin-bottom: 20px;
        padding: 12px;
        border-radius: 16px;
        background: #fff;
    }

    body.trofa-commerce-app .trofa-product-page.woocommerce div.product div.images img {
        width: 100%;
        max-height: 280px;
        object-fit: contain;
    }

    body.trofa-commerce-app .trofa-product-page.woocommerce div.product .product_title {
        margin-bottom: 8px;
        font-size: 23px;
        line-height: 1.65;
    }

    body.trofa-commerce-app .trofa-product-page.woocommerce div.product p.price {
        margin-block: 8px 12px;
        font-size: 22px;
    }

    body.trofa-commerce-app .trofa-product-page.woocommerce div.product form.cart {
        position: sticky;
        bottom: calc(78px + env(safe-area-inset-bottom));
        z-index: 30;
        margin-inline: -16px;
        padding: 12px 16px;
        border-block: 1px solid var(--trofa-app-line);
        background: rgba(255, 255, 255, .98);
        box-shadow: 0 -8px 20px rgba(27, 72, 45, .08);
    }

    body.trofa-commerce-app .trofa-product-page.woocommerce div.product form.cart .single_add_to_cart_button {
        min-height: 50px;
        border-radius: 9px;
        font-size: 15px;
    }

    body.trofa-commerce-app .trofa-commerce-page h1 {
        margin-bottom: 18px;
        font-size: 25px;
    }

    body.trofa-commerce-app .trofa-commerce-page.woocommerce .form-row {
        float: none;
        width: 100%;
        margin-bottom: 14px;
    }

    body.trofa-commerce-app .trofa-commerce-page.woocommerce .input-text,
    body.trofa-commerce-app .trofa-commerce-page.woocommerce select {
        min-height: 48px;
        font-size: 16px;
    }

    body.trofa-commerce-app .trofa-commerce-page.woocommerce table.shop_table {
        display: block;
        overflow: visible;
        border: 0;
        border-radius: 0;
        background: transparent;
    }

    body.trofa-commerce-app .trofa-cart-page .woocommerce-cart-form,
    body.trofa-commerce-app .trofa-cart-page .cart-collaterals { float: none; width: 100%; }
    body.trofa-commerce-app .trofa-cart-page table.shop_table thead { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
    body.trofa-commerce-app .trofa-cart-page table.shop_table tbody { display: grid; gap: 12px; }
    body.trofa-commerce-app .trofa-cart-page table.shop_table tr.cart_item {
        display: grid;
        grid-template-columns: 68px minmax(0, 1fr) auto;
        grid-template-areas: "thumb name remove" "thumb price remove" "quantity quantity quantity" "subtotal subtotal subtotal";
        gap: 4px 12px;
        padding: 14px;
        border: 1px solid var(--trofa-app-line);
        border-radius: 14px;
        background: #fff;
        box-shadow: 0 4px 14px rgba(27, 72, 45, .04);
    }
    body.trofa-commerce-app .trofa-cart-page table.shop_table tr.cart_item td { padding: 0; border: 0; text-align: right; }
    body.trofa-commerce-app .trofa-cart-page table.shop_table td.product-remove { grid-area: remove; }
    body.trofa-commerce-app .trofa-cart-page table.shop_table td.product-thumbnail { grid-area: thumb; }
    body.trofa-commerce-app .trofa-cart-page table.shop_table td.product-name { grid-area: name; align-self: end; font-size: 13px; }
    body.trofa-commerce-app .trofa-cart-page table.shop_table td.product-price { grid-area: price; color: var(--trofa-app-muted); font-size: 12px; }
    body.trofa-commerce-app .trofa-cart-page table.shop_table td.product-quantity { grid-area: quantity; display: flex; align-items: center; gap: 14px; min-height: 52px; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--trofa-app-line); }
    body.trofa-commerce-app .trofa-cart-page table.shop_table td.product-subtotal { grid-area: subtotal; display: flex; justify-content: space-between; gap: 12px; padding-top: 8px; border-top: 1px solid var(--trofa-app-line)!important; font-size: 13px; font-weight: 700; }
    body.trofa-commerce-app .trofa-cart-page table.shop_table td.product-subtotal:before { content: attr(data-title); color: var(--trofa-app-muted); font-weight: 400; }
    body.trofa-commerce-app .trofa-cart-page .product-thumbnail img { width: 68px; height: 68px; }
    body.trofa-commerce-app .trofa-cart-page .quantity .qty { min-height: 42px; width: 72px; border: 1px solid var(--trofa-app-line); border-radius: 8px; }
    body.trofa-commerce-app .trofa-cart-page .cart-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; }
    body.trofa-commerce-app .trofa-cart-page .coupon { flex: 1 1 100%; }
    body.trofa-commerce-app .trofa-cart-page .coupon .input-text { flex: 1; width: auto; min-width: 0; }
    body.trofa-commerce-app .trofa-cart-page .cart_totals { margin-top: 16px; padding: 16px; }
    body.trofa-commerce-app .trofa-cart-page .wc-proceed-to-checkout { position: sticky; bottom: calc(78px + env(safe-area-inset-bottom)); z-index: 40; margin-inline: -8px; padding: 10px 8px; background: rgba(255,255,255,.97); box-shadow: 0 -8px 18px rgba(27,72,45,.08); }
    body.trofa-commerce-app .trofa-cart-page .cart-empty { padding: 22px 16px; }
    body.trofa-commerce-app .trofa-account-page { min-height: calc(100svh - 230px); align-items: flex-start; padding-top: clamp(32px, 9vh, 80px); }
    body.trofa-commerce-app .trofa-auth { padding: 20px 18px; }
    body.trofa-commerce-app .trofa-catalog-layout { grid-template-columns: minmax(0, 1fr); grid-template-areas: "sidebar" "results"; gap: 6px; }
    body.trofa-commerce-app .trofa-catalog-filter-details { border: 0; background: transparent; }
    body.trofa-commerce-app .trofa-catalog-filter-details > summary { min-height: 46px; width: fit-content; padding: 8px 12px; border: 1px solid var(--trofa-app-line); border-radius: 10px; background: #fff; font-size: 13px; }
    body.trofa-commerce-app .trofa-catalog-filter-details[open] { padding: 10px; border: 1px solid var(--trofa-app-line); background: #fff; }
    body.trofa-commerce-app .trofa-catalog-filter-details[open] > summary { width: 100%; margin-bottom: 8px; }
    body.trofa-commerce-app .trofa-catalog-filter-body { padding: 0; }
    body.trofa-commerce-app .trofa-catalog-filter-body h2 { display: none; }
    body.trofa-commerce-app .trofa-catalog-filter-body .trofa-filters { grid-template-columns: minmax(0,1fr) auto; gap: 8px; }
    body.trofa-commerce-app .trofa-catalog-filter-body .trofa-filters .trofa-search-field { grid-column: 1 / -1; }
    body.trofa-commerce-app .trofa-catalog-filter-body .trofa-filters > div:not(.trofa-search-field) { grid-column: 1 / -1; }
    body.trofa-commerce-app .trofa-catalog-filter-body .trofa-filters .trofa-stock-toggle { grid-column: 1; }
    body.trofa-commerce-app .trofa-catalog-filter-body .trofa-filters > .trofa-button { grid-column: 2; width: auto; min-width: 124px; }
    body.trofa-commerce-app .trofa-catalog-filter-body .trofa-filters input[type=search],
    body.trofa-commerce-app .trofa-catalog-filter-body .trofa-filters select {
        box-sizing: border-box;
        width: calc(100% - 8px);
        margin: 4px;
    }
    body.trofa-commerce-app .trofa-catalog-filter-body .trofa-categories { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
    body.trofa-commerce-app .trofa-catalog-filter-body .trofa-categories::-webkit-scrollbar { display: none; }

    body.trofa-commerce-app .trofa-commerce-page.woocommerce table.shop_table th,
    body.trofa-commerce-app .trofa-commerce-page.woocommerce table.shop_table td {
        padding: 12px 10px;
        font-size: 13px;
    }

    body.trofa-commerce-app .trofa-commerce-page.woocommerce .wc-proceed-to-checkout a,
    body.trofa-commerce-app .trofa-commerce-page.woocommerce #place_order {
        width: 100%;
    }

    body.trofa-commerce-app .trofa-auth {
        margin: 12px auto 30px;
        padding: 22px 18px;
        border-radius: 14px;
    }

    body.trofa-commerce-app .trofa-auth input {
        min-height: 50px;
    }

    body.trofa-commerce-app .woocommerce-MyAccount-navigation {
        overflow-x: auto;
        margin: 0 -16px 18px;
        padding-inline: 16px;
        scrollbar-width: none;
    }

    body.trofa-commerce-app .woocommerce-MyAccount-navigation::-webkit-scrollbar { display: none; }

    body.trofa-commerce-app .woocommerce-MyAccount-navigation ul {
        display: flex;
        flex-wrap: nowrap;
        gap: 8px;
        width: max-content;
    }

    body.trofa-commerce-app .woocommerce-MyAccount-navigation li { flex: 0 0 auto; }

    body.trofa-commerce-app .woocommerce-MyAccount-navigation a {
        min-height: 44px;
        padding: 9px 14px;
        border: 1px solid var(--trofa-app-line);
        border-radius: 999px;
        background: #fff;
        white-space: nowrap;
    }

    .trofa-mobile-tabbar {
        position: fixed;
        inset-inline: 0;
        bottom: 0;
        z-index: 100;
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 4px;
        min-height: calc(68px + env(safe-area-inset-bottom));
        padding: 7px 10px calc(7px + env(safe-area-inset-bottom));
        border-top: 1px solid var(--trofa-app-line);
        background: rgba(255, 255, 255, .98);
        box-shadow: 0 -8px 24px rgba(28, 58, 39, .08);
    }

    .trofa-app-tab {
        position: relative;
        display: flex;
        min-width: 0;
        min-height: 48px;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2px;
        border-radius: 10px;
        color: var(--trofa-app-muted) !important;
        text-decoration: none !important;
        -webkit-tap-highlight-color: transparent;
    }

    .trofa-app-tab[aria-current="page"] {
        color: var(--trofa-app-green) !important;
        background: var(--trofa-app-soft);
    }

    .trofa-app-tab-icon {
        position: relative;
        display: inline-flex;
        width: 25px;
        height: 25px;
        align-items: center;
        justify-content: center;
    }

    .trofa-app-tab-icon svg { width: 22px; height: 22px; }
    .trofa-app-tab-label { font-size: 11px; font-weight: 600; line-height: 1.4; }

    .trofa-app-cart-count:not([hidden]) {
        position: absolute;
        top: -3px;
        inset-inline-start: -8px;
        display: inline-flex;
        min-width: 17px;
        height: 17px;
        align-items: center;
        justify-content: center;
        padding-inline: 4px;
        border: 2px solid #fff;
        border-radius: 999px;
        background: #b34b32;
        color: #fff;
        font-size: 9px;
        font-weight: 700;
        line-height: 1;
        font-variant-numeric: tabular-nums;
    }

    body.trofa-commerce-app .trofa-mobile-tabbar :focus-visible {
        outline: 3px solid var(--trofa-app-green);
        outline-offset: 2px;
    }
}

@media (max-width: 380px) {
    body.trofa-commerce-app .trofa-filters {
        grid-template-columns: minmax(0, 1fr) minmax(108px, .8fr);
        gap: 10px;
        padding: 12px;
    }

    body.trofa-commerce-app .trofa-store.woocommerce ul.products:not(.trofa-carousel-track) { gap: 8px; }
    body.trofa-commerce-app .trofa-store.woocommerce ul.products:not(.trofa-carousel-track) li.trofa-product-card { padding: 8px; }
    body.trofa-commerce-app .trofa-store.woocommerce ul.products:not(.trofa-carousel-track) li.product .woocommerce-loop-product__title { font-size: 12px; }
}

@media (min-width: 768px) and (max-width: 1024px) {
    body.trofa-commerce-app .trofa-catalog-layout { grid-template-columns: minmax(0, 1fr) 240px; gap: 16px; }
    body.trofa-commerce-app .trofa-cart-page .woocommerce-cart-form { width: calc(62% - 8px); }
    body.trofa-commerce-app .trofa-cart-page .cart-collaterals { width: calc(38% - 8px); }
}

@media (max-width: 767px) {
    body.trofa-commerce-app .trofa-cart-page .coupon button,
    body.trofa-commerce-app .trofa-cart-page button[name=update_cart] { padding-inline: 10px; font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
    body.trofa-commerce-app .trofa-store.woocommerce ul.products:not(.trofa-carousel-track) li.trofa-product-card { transition: none; }
}

/* Mouse and touch friendly WooCommerce quantity stepper. */
body.trofa-commerce-app .trofa-store.woocommerce .quantity.trofa-quantity-control {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    width: max-content;
    max-width: 100%;
    margin: 0;
    padding: 3px;
    border: 1px solid #cbd9cf;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 2px 7px rgba(27, 72, 45, .04);
    direction: rtl;
}
body.trofa-commerce-app .trofa-store.woocommerce .quantity.trofa-quantity-control .trofa-quantity-step {
    display: grid;
    flex: 0 0 40px;
    place-items: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 9px;
    background: #f0f6f1;
    color: var(--trofa-app-green);
    font: 700 21px/1 IRANSans, sans-serif;
    cursor: pointer;
    transition: background-color .16s ease, color .16s ease, transform .16s ease;
}
body.trofa-commerce-app .trofa-store.woocommerce .quantity.trofa-quantity-control .trofa-quantity-step:hover:not(:disabled) {
    background: var(--trofa-app-green);
    color: #fff;
}
body.trofa-commerce-app .trofa-store.woocommerce .quantity.trofa-quantity-control .trofa-quantity-step:active:not(:disabled) { transform: scale(.94); }
body.trofa-commerce-app .trofa-store.woocommerce .quantity.trofa-quantity-control .trofa-quantity-step:disabled { background: #f7f9f7; color: #aab6ad; cursor: not-allowed; }
body.trofa-commerce-app .trofa-store.woocommerce .quantity.trofa-quantity-control .qty {
    flex: 0 0 48px;
    width: 48px;
    min-width: 48px;
    min-height: 40px;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 8px;
    outline: 0;
    background: transparent !important;
    box-shadow: none !important;
    color: var(--trofa-app-ink);
    font: 700 16px/1.4 IRANSans, sans-serif;
    font-variant-numeric: tabular-nums;
    text-align: center;
    appearance: textfield;
}
body.trofa-commerce-app .trofa-store.woocommerce .quantity.trofa-quantity-control .qty::-webkit-inner-spin-button,
body.trofa-commerce-app .trofa-store.woocommerce .quantity.trofa-quantity-control .qty::-webkit-outer-spin-button { margin: 0; appearance: none; }
body.trofa-commerce-app .trofa-store.woocommerce .quantity.trofa-quantity-control:focus-within { border-color: var(--trofa-app-green); box-shadow: 0 0 0 3px rgba(23, 99, 60, .12); }
body.trofa-commerce-app .trofa-store.woocommerce .quantity.trofa-quantity-control .trofa-quantity-step:focus-visible { outline: 2px solid var(--trofa-app-green); outline-offset: 2px; }

@media (max-width: 767px) {
    body.trofa-commerce-app .trofa-cart-page table.shop_table td.product-quantity:before { content: "تعداد"; color: var(--trofa-app-muted); font-size: 13px; }
}
