/* Retain Trofa's green identity and locally hosted Persian typeface. */
.trofa-store, .trofa-sales, .trofa-cart-link { --trofa-green:#17633c; --trofa-green-hover:#104b2d; --trofa-ink:#243c30; --trofa-muted:#526459; --trofa-line:#dce5de; --trofa-pale:#f0f6f1; font-family:IRANSans,sans-serif; color:var(--trofa-ink); line-height:1.9; }
.trofa-store *, .trofa-sales * { box-sizing:border-box; }
.trofa-store, .trofa-sales { width:min(1160px,calc(100% - 48px)); margin-inline:auto; }
.trofa-store { padding-block:32px 64px; }
.trofa-store h1, .trofa-sales h1 { font-size:32px; font-weight:700; line-height:1.65; margin:0 0 12px; text-wrap:balance; color:var(--trofa-ink); }
.trofa-store h2, .trofa-sales h2 { color:var(--trofa-ink); }
.trofa-store p, .trofa-sales p { margin:0 0 16px; }
.trofa-store a, .trofa-sales a { text-decoration:none; text-underline-offset:4px; }
.trofa-store a:hover, .trofa-sales a:hover { text-decoration:underline; }
.trofa-store ::selection, .trofa-sales ::selection { background:#c9e5ce; color:#104b2d; }
.trofa-store :focus-visible, .trofa-sales :focus-visible, .trofa-cart-link:focus-visible { outline:3px solid #17633c; outline-offset:4px; }
.trofa-store input, .trofa-store select, .trofa-store textarea { accent-color:var(--trofa-green); caret-color:var(--trofa-green); font:inherit; }
.trofa-button, .trofa-store.woocommerce a.button, .trofa-store.woocommerce button.button, .trofa-store.woocommerce input.button, .trofa-sales.woocommerce a.button, .trofa-sales .woocommerce a.button { background:var(--trofa-green); color:#fff; border:0; border-radius:6px; padding:12px 20px; font:700 14px/1.7 IRANSans,sans-serif; min-height:46px; display:inline-flex; align-items:center; justify-content:center; cursor:pointer; text-decoration:none; }
.trofa-button:hover, .trofa-store.woocommerce a.button:hover, .trofa-store.woocommerce button.button:hover, .trofa-sales .woocommerce a.button:hover { background:var(--trofa-green-hover); color:#fff; text-decoration:none; }
.trofa-store.woocommerce .button:disabled, .trofa-store.woocommerce .button.disabled, .trofa-sales .woocommerce .button.loading { opacity:.55; cursor:wait; }
.trofa-secondary { color:var(--trofa-green); font-weight:700; min-height:44px; display:inline-flex; align-items:center; gap:8px; }
.trofa-cart-link { display:inline-flex; align-items:center; gap:8px; padding:8px 12px; min-height:44px; white-space:nowrap; font-size:13px; color:#17633c; }
.trofa-cart-count { border-radius:50%; background:#17633c; color:#fff; min-width:25px; height:25px; text-align:center; font-size:12px; line-height:25px; font-variant-numeric:tabular-nums; }
body.trofa-commerce header .elementor-widget-woocommerce-menu-cart, body.home header .elementor-widget-woocommerce-menu-cart { width:auto !important; flex:0 0 auto; min-width:110px; }
body.trofa-commerce header .elementor-widget-wrap:has(> .elementor-widget-woocommerce-menu-cart), body.home header .elementor-widget-wrap:has(> .elementor-widget-woocommerce-menu-cart) { flex-wrap:nowrap; align-items:center; justify-content:space-between; }
.trofa-catalog-heading { display:flex; align-items:center; justify-content:space-between; gap:24px; margin-block:12px 24px; }
.trofa-catalog-heading p, .trofa-sales-copy p { color:var(--trofa-muted); max-width:65ch; }
.trofa-store.woocommerce .woocommerce-breadcrumb { color:var(--trofa-muted); font-size:12px; margin-bottom:20px; }
.trofa-store.woocommerce .woocommerce-breadcrumb a { color:var(--trofa-green); }
.trofa-filters { display:flex; align-items:end; gap:18px; padding:22px; background:var(--trofa-pale); border-radius:12px; margin-bottom:16px; }
.trofa-filters > div { min-width:190px; }
.trofa-filters .trofa-search-field { flex:1; }
.trofa-filters label { display:block; font-size:13px; margin-bottom:6px; }
.trofa-filters input[type=search], .trofa-filters select { height:46px; padding:8px 12px; width:100%; border:1px solid #a8b8ac; border-radius:6px; background:#fff; color:var(--trofa-ink); min-width:0; }
.trofa-filters input::placeholder { color:var(--trofa-muted); }
.trofa-filters .trofa-stock-toggle { display:flex; gap:8px; align-items:center; min-height:46px; white-space:nowrap; margin:0; cursor:pointer; }
.trofa-stock-toggle input { width:18px; height:18px; }
.trofa-categories { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:30px; }
.trofa-categories a { padding:7px 16px; color:var(--trofa-muted); border:1px solid var(--trofa-line); border-radius:6px; min-height:42px; font-size:13px; }
.trofa-categories a[aria-current=page] { background:var(--trofa-green); color:#fff; border-color:var(--trofa-green); }
.trofa-catalog-toolbar { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-block:24px 18px; }
.trofa-store.woocommerce .woocommerce-result-count, .trofa-store.woocommerce .woocommerce-ordering { margin:0; float:none; color:var(--trofa-muted); font-size:13px; }
.trofa-store.woocommerce .woocommerce-ordering select { min-height:44px; border:1px solid var(--trofa-line); border-radius:6px; padding:8px; background:#fff; max-width:100%; }
.trofa-store.woocommerce ul.products, .trofa-sales .woocommerce ul.products { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:22px; margin:0; padding:0; list-style:none; }
.trofa-store.woocommerce ul.products:before, .trofa-store.woocommerce ul.products:after, .trofa-sales .woocommerce ul.products:before, .trofa-sales .woocommerce ul.products:after { display:none; }
.trofa-store.woocommerce ul.products li.trofa-product-card, .trofa-sales .woocommerce ul.products li.trofa-product-card { width:auto; float:none; margin:0; padding:18px; border:1px solid var(--trofa-line); border-radius:12px; display:flex; flex-direction:column; background:#fff; min-width:0; text-align:right; }
.trofa-product-details { display:flex; min-width:0; flex:1 1 auto; flex-direction:column; color:var(--trofa-ink); }
.trofa-product-image { position:relative; display:flex; width:100%; min-height:170px; align-items:center; justify-content:center; overflow:hidden; margin-bottom:12px; padding:8px; border-radius:9px; background:#f7faf7; }
.trofa-store.woocommerce ul.products li.product .trofa-product-image img, .trofa-sales .woocommerce ul.products li.product .trofa-product-image img { display:block; width:100%; height:158px; margin:0; object-fit:contain; }
.trofa-store.woocommerce ul.products li.product .woocommerce-loop-product__title, .trofa-sales .woocommerce ul.products li.product .woocommerce-loop-product__title { padding:0; margin:0 0 10px; font:700 15px/1.9 IRANSans,sans-serif; min-height:57px; overflow-wrap:anywhere; }
.trofa-product-status { position:absolute; inset-block-start:10px; inset-inline-start:10px; display:inline-flex; min-height:26px; align-items:center; margin:0!important; padding:3px 8px; border:1px solid rgba(220,229,222,.92); border-radius:999px; background:rgba(255,255,255,.94); font-size:11px; line-height:1.6; }
.trofa-product-status.is-in-stock { color:var(--trofa-green); }
.trofa-product-status.is-unavailable { color:#755039; }
.trofa-product-price { min-height:38px; margin:0 0 12px; }
.trofa-store.woocommerce .price, .trofa-sales .price, .trofa-sales .woocommerce ul.products li.product .price { color:var(--trofa-ink); font-size:16px; font-weight:700; line-height:1.8; font-variant-numeric:tabular-nums; }
.trofa-store .woocommerce-Price-currencySymbol, .trofa-sales .woocommerce-Price-currencySymbol { font-size:12px; font-weight:400; margin-inline:4px; }
.trofa-price-inquiry { color:var(--trofa-muted); font-size:13px; }
.trofa-store.woocommerce ul.products li.product .button, .trofa-sales .woocommerce ul.products li.product .button { margin:0; width:100%; padding:10px 6px; font-size:13px; }
.trofa-store.woocommerce ul.products li.product .trofa-view-product { margin-top:auto; min-height:46px; }
.trofa-store.woocommerce li.outofstock .button, .trofa-store.woocommerce li:not(.purchasable) .button { background:var(--trofa-pale); color:var(--trofa-green); }
.trofa-store .added_to_cart, .trofa-sales .added_to_cart { color:var(--trofa-green); font-size:13px; text-align:center; padding-top:10px; }
.trofa-store.woocommerce nav.woocommerce-pagination { margin-top:30px; }
.trofa-store.woocommerce nav.woocommerce-pagination ul { border:0; display:flex; flex-wrap:wrap; gap:6px; justify-content:center; }
.trofa-store.woocommerce nav.woocommerce-pagination ul li { border:1px solid var(--trofa-line); border-radius:6px; overflow:hidden; }
.trofa-store.woocommerce nav.woocommerce-pagination ul li a, .trofa-store.woocommerce nav.woocommerce-pagination ul li span { min-height:44px; min-width:44px; padding:13px; color:var(--trofa-green); }
.trofa-store.woocommerce nav.woocommerce-pagination ul li span.current { background:var(--trofa-green); color:#fff; }
.trofa-help { margin-top:48px; padding:26px 0; border-block:1px solid var(--trofa-line); display:flex; align-items:center; justify-content:space-between; gap:24px; clear:both; }
.trofa-help h2 { font-size:18px; margin:0 0 6px; font-weight:700; line-height:1.8; }
.trofa-help p { color:var(--trofa-muted); font-size:14px; margin:0; }
.trofa-help > a { color:var(--trofa-green); white-space:nowrap; font-size:14px; font-weight:700; min-height:44px; display:flex; flex-direction:column; justify-content:center; }
.trofa-empty { padding:48px 24px; text-align:center; background:var(--trofa-pale); border-radius:12px; }
.trofa-empty h2 { font-size:23px; }
.trofa-sales { padding-block:30px 50px; }
.trofa-sales-hero { display:grid; grid-template-columns:1.25fr 1fr; align-items:center; gap:38px; padding:40px; border-radius:16px; background:var(--trofa-pale); }
.trofa-sales-copy h1 { font-size:36px; max-width:20ch; }
.trofa-sales-copy p { font-size:15px; }
.trofa-sales-actions { display:flex; align-items:center; flex-wrap:wrap; gap:22px; margin-block:24px; }
.trofa-sales-copy .trofa-sales-identity { font-size:12px; margin-bottom:0; }
.trofa-featured { display:flex; align-items:center; gap:20px; color:var(--trofa-ink); }
.trofa-featured img { width:46%; height:230px; object-fit:contain; mix-blend-mode:multiply; }
.trofa-featured h2 { font-size:18px; line-height:1.9; margin:0 0 14px; }
.trofa-featured-action { display:block; color:var(--trofa-green); font-size:13px; margin-top:18px; text-decoration:underline; }
.trofa-section-heading { display:flex; justify-content:space-between; align-items:center; gap:18px; margin:36px 0 18px; }
.trofa-section-heading h2 { font-size:24px; font-weight:700; margin:0; }
.trofa-section-heading a { font-size:13px; color:var(--trofa-green); min-height:44px; display:flex; align-items:center; }
.trofa-product-page.woocommerce div.product { margin-top:28px; }
.trofa-product-page.woocommerce div.product .product_title { font-size:30px; line-height:1.7; }
.trofa-product-page.woocommerce div.product p.price { color:var(--trofa-ink); font-size:21px; }
.trofa-store .product_meta a, .trofa-commerce-page .product-name a { color:var(--trofa-green); }
.trofa-product-page.woocommerce div.product div.images { float:right; width:44%; }
.trofa-product-page.woocommerce div.product div.summary { float:left; width:51%; }
.trofa-product-page.woocommerce div.product div.images img { max-height:440px; object-fit:contain; }
.trofa-product-page.woocommerce .woocommerce-product-gallery { opacity:1 !important; }
.trofa-product-page .woocommerce-product-details__short-description { font-size:15px; line-height:2; }
.trofa-product-page .trofa-availability { color:var(--trofa-green); font-size:14px; }
.trofa-product-page.woocommerce div.product form.cart { display:flex; flex-wrap:wrap; gap:12px; align-items:center; margin-block:24px; }
.trofa-product-page.woocommerce div.product form.cart .quantity { float:none; margin:0; }
.trofa-product-page.woocommerce .quantity .qty { min-height:46px; width:72px; border:1px solid #a8b8ac; border-radius:6px; font:inherit; }
.trofa-product-weight, .trofa-product-page .product_meta { font-size:13px; color:var(--trofa-muted); }
.trofa-product-page .product_meta > span { display:block; }
.trofa-product-page.woocommerce div.product .woocommerce-tabs { clear:both; padding-top:32px; }
.trofa-product-page.woocommerce div.product .woocommerce-tabs ul.tabs { display:flex; gap:8px; padding:0; border-bottom:1px solid var(--trofa-line); flex-wrap:wrap; }
.trofa-product-page.woocommerce div.product .woocommerce-tabs ul.tabs li { border:0; background:transparent; margin:0; padding:4px 14px; }
.trofa-product-page.woocommerce div.product .woocommerce-tabs ul.tabs li.active { background:var(--trofa-pale); }
.trofa-product-page.woocommerce div.product .woocommerce-tabs ul.tabs li:before, .trofa-product-page.woocommerce div.product .woocommerce-tabs ul.tabs li:after { display:none; }
.trofa-product-page.woocommerce div.product .woocommerce-tabs .panel { max-width:75ch; font-size:15px; line-height:2.1; }
.trofa-product-page .related.products { clear:both; padding-top:24px; }
.trofa-product-page .related.products > h2 { font-size:23px; margin-bottom:22px; }
.trofa-purchase-path { display:flex; flex-wrap:wrap; align-items:center; gap:12px; color:var(--trofa-muted); font-size:13px; margin-bottom:24px; }
.trofa-purchase-path a { color:var(--trofa-green); min-height:44px; display:inline-flex; align-items:center; }
.trofa-purchase-path [aria-current=page] { font-weight:700; color:var(--trofa-ink); }
.trofa-commerce-page h1 { margin-bottom:28px; }
.trofa-commerce-page.woocommerce .input-text, .trofa-commerce-page.woocommerce select { min-height:46px; border:1px solid #a8b8ac; border-radius:6px; padding:8px 12px; background:#fff; }
.trofa-commerce-page.woocommerce .form-row label { line-height:2; font-size:14px; }
.trofa-commerce-page.woocommerce table.shop_table { border-color:var(--trofa-line); border-radius:12px; }
.trofa-commerce-page.woocommerce table.shop_table td { padding:16px 12px; }
.trofa-store.woocommerce .woocommerce-info, .trofa-store.woocommerce .woocommerce-message { background:var(--trofa-pale); color:var(--trofa-ink); border-top-color:var(--trofa-green); }
.trofa-store.woocommerce .woocommerce-error { color:#813a2f; background:#fff5f1; }
.trofa-commerce-page.woocommerce #payment { background:var(--trofa-pale); border-radius:12px; }
@media (max-width:1024px) {
    .trofa-filters { flex-wrap:wrap; }
    .trofa-filters .trofa-search-field { flex:1 1 45%; }
    .trofa-filters > div { flex:1 1 35%; }
    .trofa-filters .trofa-stock-toggle { flex:1; }
    .trofa-sales-hero { padding:30px; gap:24px; }
    .trofa-sales-copy h1 { font-size:29px; }
    .trofa-featured { flex-direction:column; gap:10px; text-align:center; }
    .trofa-featured img { width:100%; height:155px; }
    .trofa-featured h2 { font-size:15px; margin-bottom:6px; }
    .trofa-featured-action { margin-top:6px; }
    .trofa-store.woocommerce ul.products, .trofa-sales .woocommerce ul.products { gap:14px; }
}
@media (min-width:768px) and (max-width:1024px) {
    body.trofa-commerce header .elementor-inner-section:has(.trofa-cart-link) > .elementor-container, body.home header .elementor-inner-section:has(.trofa-cart-link) > .elementor-container { flex-wrap:nowrap; align-items:center; }
    body.trofa-commerce header .elementor-inner-section:has(.trofa-cart-link) > .elementor-container > .elementor-column, body.home header .elementor-inner-section:has(.trofa-cart-link) > .elementor-container > .elementor-column { width:50% !important; min-width:0; }
}
@media (max-width:767px) {
    body.trofa-commerce header .elementor-widget-image.elementor-hidden-desktop img, body.home header .elementor-widget-image.elementor-hidden-desktop img { width:170px; height:auto; }
    .trofa-store, .trofa-sales { width:calc(100% - 32px); }
    .trofa-store { padding-block:22px 40px; }
    .trofa-store h1, .trofa-sales h1 { font-size:27px; }
    .trofa-catalog-heading { display:block; }
    .trofa-catalog-heading p { font-size:14px; }
    .trofa-filters { padding:16px; gap:12px; }
    .trofa-filters .trofa-search-field, .trofa-filters > div { flex:1 1 100%; min-width:0; }
    .trofa-filters button { width:100%; }
    .trofa-categories { gap:6px; margin-bottom:20px; }
    .trofa-categories a { padding:8px 12px; font-size:12px; }
    .trofa-catalog-toolbar { align-items:start; flex-direction:column; gap:10px; }
    .trofa-store.woocommerce ul.products, .trofa-sales .woocommerce ul.products { grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
    .trofa-store.woocommerce ul.products li.trofa-product-card, .trofa-sales .woocommerce ul.products li.trofa-product-card { padding:12px; }
    .trofa-store.woocommerce ul.products li.product .trofa-product-image, .trofa-sales .woocommerce ul.products li.product .trofa-product-image { min-height:132px; margin-bottom:10px; padding:4px; }
    .trofa-store.woocommerce ul.products li.product .trofa-product-image img, .trofa-sales .woocommerce ul.products li.product .trofa-product-image img { height:124px; }
    .trofa-store.woocommerce ul.products li.product .woocommerce-loop-product__title, .trofa-sales .woocommerce ul.products li.product .woocommerce-loop-product__title { font-size:13px; min-height:72px; }
    .trofa-store.woocommerce .price, .trofa-sales .woocommerce ul.products li.product .price { font-size:14px; }
    .trofa-store.woocommerce ul.products li.product .button, .trofa-sales .woocommerce ul.products li.product .button { font-size:12px; }
    .trofa-product-status { font-size:10px; min-height:24px; }
    .trofa-sales { padding-top:20px; }
    .trofa-sales-hero { grid-template-columns:1fr; padding:24px; gap:24px; }
    .trofa-sales-copy h1 { max-width:100%; }
    .trofa-sales-copy p { font-size:14px; }
    .trofa-sales-actions { gap:16px; }
    .trofa-featured { flex-direction:row; text-align:right; gap:18px; padding-top:20px; border-top:1px solid var(--trofa-line); }
    .trofa-featured img { width:36%; height:145px; }
    .trofa-section-heading { align-items:start; gap:12px; }
    .trofa-section-heading h2 { font-size:20px; }
    .trofa-section-heading a { font-size:11px; }
    .trofa-help { flex-direction:column; align-items:start; gap:12px; margin-top:32px; }
    .trofa-help h2 { font-size:17px; }
    .trofa-product-page.woocommerce div.product div.images, .trofa-product-page.woocommerce div.product div.summary { float:none; width:100%; }
    .trofa-product-page.woocommerce div.product div.images img { max-height:260px; }
    .trofa-product-page.woocommerce div.product .product_title { font-size:25px; }
    .trofa-product-page.woocommerce div.product .woocommerce-tabs ul.tabs li { padding-inline:8px; font-size:13px; }
    .trofa-cart-link { font-size:12px; padding:6px; gap:5px; }
}
@media (prefers-reduced-motion:reduce) {
    .trofa-store *, .trofa-sales * { scroll-behavior:auto !important; transition:none !important; animation:none !important; }
}
