.trofa-home-highlights { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; gap: 32px; margin-block: 28px 40px; }
.trofa-home-highlights.trofa-store { width: min(1160px, calc(100% - 48px)); margin-inline: auto; padding-block: 0; }
.trofa-home-hero-heading { display: flex; grid-column: 1 / -1; align-items: center; justify-content: space-between; gap: 20px; padding-block: 2px 12px; border-bottom: 1px solid #dce5de; }
.trofa-home-hero-intro { min-width: 0; }
.trofa-home-hero-intro h1 { margin: 0; color: #243c30; font-size: 24px; line-height: 1.5; white-space: nowrap; }
.trofa-home-hero-intro p { max-width: 68ch; margin: 6px 0 0; color: #526459; font-size: 14px; line-height: 1.9; }
.trofa-home-hero-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 10px; }
.trofa-home-hero-actions .trofa-button { white-space: nowrap; }
.trofa-home-hero-actions .trofa-secondary { white-space: nowrap; font-size: 13px; }
.trofa-home-carousel-panel { display: flex; min-width: 0; flex-direction: column; }
.trofa-home-carousel-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.trofa-home-carousel-heading > div { min-width: 0; }
.trofa-home-carousel-heading h2 { margin: 0; font-size: 21px; line-height: 1.7; }
.trofa-home-carousel-heading p { margin: 3px 0 0; color: #526459; font-size: 13px; line-height: 1.8; }
.trofa-home-carousel-heading > a { display: inline-flex; flex: 0 0 auto; align-items: center; min-height: 44px; color: #17633c; font-size: 13px; font-weight: 700; }

.trofa-carousel-viewport { overflow-x: auto; overscroll-behavior-inline: contain; scroll-behavior: smooth; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.trofa-carousel-viewport::-webkit-scrollbar { display: none; }
.trofa-carousel-track { display: flex; align-items: stretch; gap: 14px; width: 100%; margin: 0; padding: 0; list-style: none; }
.trofa-carousel-slide { flex: 0 0 100%; min-width: 0; scroll-snap-align: start; scroll-snap-stop: always; }

.trofa-home-article-slide { height: 400px; overflow: hidden; border: 1px solid #dce5de; border-radius: 12px; background: #fff; box-sizing: border-box; }
.trofa-home-article-slide > a { display: grid; grid-template-rows: 176px 1fr; height: 100%; color: #243c30; text-decoration: none; }
.trofa-home-article-media { display: block; overflow: hidden; background: #f0f6f1; }
.trofa-home-article-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.trofa-home-article-media img.trofa-home-article-placeholder { object-fit: contain; padding: 26px; }
.trofa-home-article-copy { display: grid; align-content: start; gap: 7px; padding: 13px 16px 16px; }
.trofa-home-article-copy time { color: #526459; font-size: 12px; }
.trofa-home-article-copy strong { display: -webkit-box; overflow: hidden; min-height: 3.4em; font-size: 15px; line-height: 1.8; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.trofa-home-article-excerpt { display: -webkit-box; overflow: hidden; min-height: 5.4em; color: #526459; font-size: 13px; line-height: 1.8; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.trofa-home-article-more { min-height: 24px; color: #17633c; font-size: 13px; font-weight: 700; }
.trofa-home-article-slide > a:hover .trofa-home-article-more { text-decoration: underline; text-underline-offset: 4px; }

@media (min-width: 901px) {
    .trofa-home-carousel-articles .trofa-home-article-slide { height: 440px; }
    .trofa-home-carousel-articles .trofa-home-article-slide > a { grid-template-rows: 196px 1fr; }
}

.trofa-home-carousel-products.trofa-store { width: auto; margin: 0; padding: 0; }
.trofa-home-carousel-products.trofa-store.woocommerce ul.products { display: flex; flex-wrap: nowrap; grid-template-columns: none; gap: 14px; width: 100%; margin: 0; padding: 0; list-style: none; }
.trofa-home-carousel-products.trofa-store.woocommerce ul.products:before,
.trofa-home-carousel-products.trofa-store.woocommerce ul.products:after { display: none; }
.trofa-home-carousel-products.trofa-store.woocommerce ul.products > li.trofa-product-card { display: flex; box-sizing: border-box; height: 400px; flex: 0 0 100%; flex-direction: column; min-width: 0; max-width: 100%; margin: 0; padding: 12px; border: 1px solid #dce5de; border-radius: 12px; background: #fff; }
.trofa-home-carousel-products.trofa-store.woocommerce ul.products > li .trofa-product-details { display: flex; flex: 1 1 auto; min-height: 0; flex-direction: column; color: #243c30; text-decoration: none; }
.trofa-home-carousel-products.trofa-store.woocommerce ul.products > li .trofa-product-image { height: 210px; min-height: 210px; margin-bottom: 8px; }
.trofa-home-carousel-products.trofa-store.woocommerce ul.products li.product .trofa-product-image img { height: 194px; margin: 0; object-fit: contain; }
.trofa-home-carousel-products.trofa-store.woocommerce ul.products li.product .woocommerce-loop-product__title { display: -webkit-box; overflow: hidden; min-height: 3.6em; margin: 0; padding: 0; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.trofa-home-carousel-products.trofa-store.woocommerce ul.products > li .trofa-product-price { min-height: 36px; margin: 0 0 8px; }
.trofa-home-carousel-products.trofa-store.woocommerce ul.products li.product .button { width: 100%; min-height: 44px; margin: 0; }

.trofa-home-products-row { margin-block: 0 40px; }
.trofa-home-products-row.trofa-store { width: min(1160px, calc(100% - 48px)); margin-inline: auto; padding-block: 0; }
.trofa-home-products-row .trofa-home-carousel-heading { margin-bottom: 12px; }
.trofa-home-products-row .trofa-carousel-viewport { padding: 4px; }
.trofa-home-products-row.trofa-store.woocommerce ul.products { display: flex; flex-wrap: nowrap; grid-template-columns: none; gap: 16px; width: 100%; margin: 0; padding: 0; list-style: none; }
.trofa-home-products-row.trofa-store.woocommerce ul.products:before,
.trofa-home-products-row.trofa-store.woocommerce ul.products:after { display: none; }
.trofa-home-products-row.trofa-store.woocommerce ul.products > li.trofa-product-card { display: flex; box-sizing: border-box; flex: 0 0 calc((100% - 48px) / 4); flex-direction: column; width: auto; height: 360px; max-width: none; min-width: 0; margin: 0; padding: 14px; border: 1px solid #dce5de; border-radius: 12px; background: #fff; scroll-snap-align: start; scroll-snap-stop: always; }
.trofa-home-products-row.trofa-store.woocommerce ul.products > li .trofa-product-details { display: flex; flex: 1 1 auto; min-width: 0; flex-direction: column; color: #243c30; text-decoration: none; }
.trofa-home-products-row.trofa-store.woocommerce ul.products > li .trofa-product-image { height: 152px; min-height: 152px; margin-bottom: 10px; }
.trofa-home-products-row.trofa-store.woocommerce ul.products li.product .trofa-product-image img { display: block; width: 100%; height: 136px; margin: 0; object-fit: contain; }
.trofa-home-products-row.trofa-store.woocommerce ul.products li.product .woocommerce-loop-product__title { display: -webkit-box; overflow: hidden; min-height: 3.6em; margin: 0; padding: 0; font: 700 14px/1.8 IRANSans, sans-serif; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.trofa-home-products-row.trofa-store.woocommerce ul.products > li .trofa-product-price { min-height: 38px; margin: 8px 0 8px !important; }
.trofa-home-products-row.trofa-store.woocommerce ul.products li.product .button { width: 100%; min-height: 44px; margin: 0; font-size: 13px; }

.trofa-home-agency { display: grid; grid-template-columns: 150px minmax(0,1fr); align-items: center; gap: 24px; margin-block: 0 34px; padding: 22px 24px; border: 1px solid #dce5de; border-radius: 14px; background: #f0f6f1; }
.trofa-home-agency-mark { display: grid; min-height: 112px; place-items: center; padding: 12px; border: 1px solid #dce5de; border-radius: 10px; background: #fff; }
.trofa-home-agency-mark img { display: block; width: 100%; max-height: 88px; object-fit: contain; }
.trofa-home-agency-copy > span { color: #526459; font-size: 12px; }
.trofa-home-agency-copy h2 { margin: 2px 0 4px; color: #243c30; font-size: 21px; line-height: 1.6; }
.trofa-home-agency-copy p { margin: 0 0 10px; color: #526459; font-size: 13px; line-height: 1.8; }
.trofa-home-agency-copy .trofa-button { min-height: 44px; padding: 8px 16px; font-size: 13px; }

.trofa-carousel-controls { display: flex; align-items: center; justify-content: flex-start; gap: 9px; min-height: 44px; margin-top: 14px; }
.trofa-carousel-controls[hidden] { display: none; }
.trofa-carousel-control-buttons { display: flex; align-items: center; gap: 9px; }
.trofa-carousel-control-buttons[hidden] { display: none !important; }
.trofa-carousel-all { display: inline-flex; align-items: center; min-height: 44px; margin-inline-start: 4px; color: #17633c; font-size: 13px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.trofa-carousel-all:hover { text-decoration: underline; text-underline-offset: 4px; }
.trofa-carousel-controls button { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 1px solid #dce5de; border-radius: 8px; background: #fff; color: #17633c; cursor: pointer; }
.trofa-carousel-controls button:hover:not(:disabled) { border-color: #17633c; background: #f0f6f1; }
.trofa-carousel-controls button:disabled { color: #839188; cursor: not-allowed; }
.trofa-carousel-controls button svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.trofa-carousel-controls button[data-trofa-toggle] { margin-inline-start: 4px; }
.trofa-carousel-controls button[data-trofa-toggle] span { font-size: 16px; font-weight: 700; line-height: 1; }
.trofa-carousel-controls [data-trofa-count] { min-width: 60px; color: #526459; font-size: 13px; font-variant-numeric: tabular-nums; text-align: center; }
.trofa-carousel-empty { padding: 22px 0; color: #526459; }

@media (max-width: 900px) {
    .trofa-home-highlights { grid-template-columns: minmax(0, 1fr); gap: 28px; }
    .trofa-home-carousel-products.trofa-store { border: 0; padding: 0; }
    .trofa-home-products-row.trofa-store.woocommerce ul.products > li.trofa-product-card { flex-basis: calc((100% - 32px) / 3); }
}

@media (max-width: 767px) {
    .trofa-home-highlights { margin-block: 18px 30px; gap: 22px; }
    .trofa-home-hero-heading { align-items: stretch; flex-direction: column; gap: 8px; padding-block: 0 12px; }
    .trofa-home-hero-intro h1 { font-size: 21px; }
    .trofa-home-hero-actions { align-items: center; flex-direction: row; gap: 8px; }
    .trofa-home-hero-actions .trofa-button, .trofa-home-hero-actions .trofa-secondary { min-height: 42px; width: auto; justify-content: center; padding: 8px 10px; border-radius: 8px; font-size: 11px; }
    .trofa-home-hero-actions .trofa-secondary { font-size: 10px; }
    .trofa-home-carousel-heading { align-items: flex-start; gap: 8px; margin-bottom: 14px; }
    .trofa-home-carousel-heading h2 { font-size: 19px; }
    .trofa-home-carousel-heading p { max-width: 32ch; font-size: 12px; }
    .trofa-home-carousel-heading > a { font-size: 12px; white-space: nowrap; }
    .trofa-home-carousel-articles .trofa-home-carousel-heading p { display: none; }
    .trofa-home-article-slide { height: 226px; }
    .trofa-home-article-slide > a { grid-template-rows: 126px minmax(0, 1fr); }
    .trofa-home-article-copy { display: block; padding: 10px 12px; }
    .trofa-home-article-copy time,
    .trofa-home-article-excerpt,
    .trofa-home-article-more { display: none; }
    .trofa-home-article-copy strong { min-height: 0; font-size: 13px; line-height: 1.75; -webkit-line-clamp: 2; }
    .trofa-carousel-controls { justify-content: space-between; flex-wrap: nowrap; gap: 4px; margin-top: 8px; }
    .trofa-carousel-control-buttons { flex: 0 0 auto; gap: 4px; }
    .trofa-carousel-controls button { width: 40px; height: 40px; }
    .trofa-carousel-controls button[data-trofa-toggle] { margin-inline-start: 0; }
    .trofa-carousel-controls [data-trofa-count] { min-width: 40px; font-size: 11px; }
    .trofa-carousel-all { flex: 0 1 auto; min-width: 0; max-width: 132px; min-height: 40px; margin-inline-start: 0; font-size: 11px; line-height: 1.5; white-space: normal; }
    .trofa-home-carousel-products.trofa-store.woocommerce ul.products > li.trofa-product-card { height: 390px; padding: 10px; }
    .trofa-home-carousel-products.trofa-store.woocommerce ul.products > li .trofa-product-image { height: 184px; min-height: 184px; margin-bottom: 8px; }
    .trofa-home-carousel-products.trofa-store.woocommerce ul.products li.product .trofa-product-image img { height: 166px; }
    .trofa-home-carousel-products.trofa-store.woocommerce ul.products > li .trofa-product-price { min-height: 34px; margin: 0 0 7px; }
    .trofa-home-products-row.trofa-store.woocommerce ul.products > li.trofa-product-card { flex-basis: min(78%, 250px); height: 350px; padding: 12px; }
    .trofa-home-products-row.trofa-store.woocommerce ul.products > li .trofa-product-image { height: 146px; min-height: 146px; }
    .trofa-home-products-row.trofa-store.woocommerce ul.products li.product .trofa-product-image img { height: 130px; }
    .trofa-home-agency { grid-template-columns: 74px minmax(0,1fr); gap: 14px; padding: 14px; }
    .trofa-home-agency-mark { min-height: 76px; padding: 6px; }
    .trofa-home-agency-mark img { max-height: 60px; }
    .trofa-home-agency-copy h2 { font-size: 17px; }
    .trofa-home-agency-copy p { font-size: 12px; }
}

@media (max-width: 380px) {
    .trofa-home-products-row.trofa-store.woocommerce ul.products > li.trofa-product-card { flex-basis: min(82%, 232px); }
}

@media (prefers-reduced-motion: reduce) {
    .trofa-carousel-viewport { scroll-behavior: auto; }
}
