/* Visual updates shared by shop, archive, product and cart. */
:root {
    --trato-action: #b94f00; /* white text: 5.02:1 */
    --trato-action-hover: #a84300;
    --trato-focus: #173b8a;
}

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
    outline: 3px solid var(--trato-focus) !important;
    outline-offset: 3px !important;
}
:where(input, select, textarea):focus-visible { border-color: var(--trato-focus) !important; }
.trato-footer { --trato-focus: #ffcf74; }
body.woocommerce-checkout .trato-checkout-card__heading > span,
.trato-shipping-rate--selected span::before,
body.woocommerce-checkout .trato-invoice-toggle input:checked + .trato-invoice-toggle__box { background: var(--trato-action); }

.trato-button, .trato-cart, .trato-cart-checkout, .trato-mobile-buy__button,
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button,
.woocommerce ul.products li.product .button, .woocommerce div.product .single_add_to_cart_button,
body.woocommerce-checkout #place_order, body.woocommerce-checkout form.checkout_coupon button,
body.woocommerce-checkout .wc-block-components-checkout-place-order-button,
.wc-block-components-button:not(.is-link) {
    background: var(--trato-action) !important;
    color: #fff !important;
}
.trato-button:hover, .trato-cart:hover, .trato-cart-checkout:hover, .trato-mobile-buy__button:hover,
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover,
.woocommerce ul.products li.product .button:hover, .woocommerce div.product .single_add_to_cart_button:hover,
body.woocommerce-checkout #place_order:hover, body.woocommerce-checkout form.checkout_coupon button:hover,
body.woocommerce-checkout .wc-block-components-checkout-place-order-button:hover,
.wc-block-components-button:not(.is-link):hover { background: var(--trato-action-hover) !important; }

/* A quieter contact bar and clear navigation states. */
.trato-utility__inner { gap: 0; min-height: 48px; }
.trato-utility__contact { min-height: 26px; padding: 0 18px; color: #344256 !important; font-size: .84rem; }
.trato-utility__contact:first-child { padding-left: 0; }
.trato-utility__contact.trato-utility__phone { margin-right: 0; padding-right: 12px; border-left: 1px solid #d6dce3; border-right: 1px solid #d6dce3; }
.trato-utility__social { display: inline-flex; align-items: center; height: 32px; gap: 0; }
.trato-utility__icon { display: inline-flex; flex: 0 0 34px; align-items: center; justify-content: center; width: 34px; min-height: 32px; height: 32px; padding: 0; border: 0; color: #344256 !important; }
.trato-utility__icon svg { display: block; width: 19px; height: 19px; flex: 0 0 19px; }
.trato-utility__instagram { border-left: 1px solid #d6dce3; }
.trato-utility__delivery { color: #475569; font-size: .84rem; }
.trato-nav .current-menu-item > a, .trato-nav .current-menu-ancestor > a,
.trato-nav a[aria-current="page"], .trato-mobile-nav .current-menu-item > a,
.trato-mobile-nav a[aria-current="page"] { background: var(--trato-soft); color: var(--trato-dark); }
.trato-nav a:hover, .trato-mobile-nav a:hover { background: #fff0e2; color: var(--trato-dark); }
.trato-header__inner { position: relative; }
.trato-search { position: relative; flex: none; }
.trato-search summary { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: var(--trato-ink); cursor: pointer; list-style: none; }
.trato-search summary::-webkit-details-marker { display: none; }
.trato-search summary:hover, .trato-search[open] summary { background: var(--trato-soft); color: var(--trato-dark); }
.trato-search summary svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.trato-search__form { position: absolute; z-index: 70; top: calc(100% + 14px); right: 0; width: min(370px, calc(100vw - 32px)); padding: 18px; border: 1px solid #dce3ea; border-radius: 16px; background: #fff; box-shadow: 0 18px 40px rgba(15, 23, 42, .16); }
.trato-search__form label { display: block; margin-bottom: 8px; color: var(--trato-ink); font-size: .86rem; font-weight: 800; }
.trato-search__form > div { display: flex; gap: 8px; }
.trato-search__form input[type="search"] { width: 100%; min-width: 0; min-height: 44px; padding: 0 12px; border: 1px solid #b8c4d1; border-radius: 9px; font: inherit; }
.trato-search__form button { min-height: 44px; padding: 0 14px; border: 0; border-radius: 9px; background: var(--trato-action); color: #fff; font: inherit; font-weight: 800; cursor: pointer; }
.trato-search__form button:hover { background: var(--trato-action-hover); }

/* Footer identity and compact inline payment marks. */
.trato-footer address { color: #d9e2ee; font-size: .84rem; font-style: normal; line-height: 1.65; }
.trato-footer address strong { color: #fff; }
.trato-footer__bottom { color: #d2dae5; }
.trato-footer__bottom > div { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 12px; }
.trato-payment-marks { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.trato-payment-marks__logo { display: inline-flex; align-items: center; justify-content: center; min-width: 76px; min-height: 38px; padding: 4px 10px; border: 1px solid #cbd5df; border-radius: 9px; background: #fff; color: #002124; }
.trato-payment-marks__logo img { display: block; width: 50px; height: 25px; object-fit: contain; }
.trato-payment-marks__fallback { font-size: 1rem; font-weight: 900; }
.trato-payment-marks__caption { color: #d9e2ee; font-size: .75rem; line-height: 1.35; }

/* Storefront hero and category cards. */
.trato-hero__card { position: relative; max-width: 430px; border-left: 0; }
.trato-hero__card::before { position: absolute; top: 16px; bottom: 16px; left: 0; width: 2px; background: var(--trato-action); content: ''; }
.trato-hero__card-icon { width: 56px; height: 56px; border-radius: 50%; }
.trato-hero__card-icon svg { width: 34px; height: 34px; fill: none; stroke: var(--trato-action); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.trato-section__title { max-width: none; margin-right: 0; margin-left: 0; text-align: left; }
.trato-category-gallery__item:hover { transform: translateY(-4px); box-shadow: 0 18px 36px rgba(15, 23, 42, .14); }
.trato-category-gallery__count { margin-top: auto; padding-top: 18px; color: #526071; font-size: .86rem; font-weight: 750; }

/* Product archives. WooCommerce supplies the breadcrumb and saved term description. */
.tax-product_cat .trato-page { background: #f5f7f9; }
.tax-product_cat .trato-page .page-title { position: relative; overflow: hidden; margin: 0 0 18px; padding: 56px 32px 34px; border: 1px solid #e0e6ec; border-radius: 20px; background: radial-gradient(circle at 92% 40%, #ffe5cc 0 11%, transparent 11.2%), linear-gradient(110deg, #fff, #fff7ed); color: var(--trato-ink); font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.16; }
.tax-product_cat .trato-page .page-title::before { position: absolute; top: 21px; left: 32px; color: var(--trato-dark); content: 'KATEGORIA'; font-size: .72rem; font-weight: 900; letter-spacing: .1em; }
.tax-product_cat .trato-archive-toolbar { justify-content: flex-end; margin: 0 0 22px; }
.trato-archive-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin: 22px 0; }
.woocommerce .trato-archive-toolbar .woocommerce-result-count,
.woocommerce .trato-archive-toolbar .woocommerce-ordering { float: none; margin: 0; color: #46566b; }
.woocommerce .trato-archive-toolbar select { min-height: 44px; padding: 8px 12px; border: 1px solid #bbc6d2; border-radius: 10px; background: #fff; color: var(--trato-ink); font: inherit; }
.woocommerce ul.products li.product a img { padding: 8px !important; }

/* Product details, fit information and trust cues. */
.trato-product-fit { margin: 0 0 17px; padding: 14px 16px; border: 1px solid #ffd6b2; border-radius: 12px; background: #fff8f1; }
.trato-product-fit h2 { margin: 0; color: var(--trato-ink); font-size: .85rem; }
.trato-product-fit p { margin: 3px 0 0; color: #344256; font-size: .9rem; }
.trato-product-assurances { margin: 0 0 18px; }
.trato-product-add-status { min-height: 1.5em; margin: -5px 0 16px; color: #1c6548; font-size: .84rem; font-weight: 700; }
.trato-product-add-status:empty { display: none; }
.trato-product-add-status.is-error { color: #9d2f23; }
.trato-product-add-status a { margin-left: 3px; color: var(--trato-dark); text-underline-offset: 2px; }
.single_add_to_cart_button:disabled { opacity: .65; cursor: wait; }
.trato-header .trato-cart__count { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; min-height: 22px; padding: 0 5px; line-height: 1; }
.trato-header .trato-cart.is-bumped { animation: trato-cart-bump .55s ease-out; }
@keyframes trato-cart-bump { 35% { transform: scale(1.12); } 100% { transform: scale(1); } }
.trato-cart-feedback { display: none; }
.trato-product-trust { display: flex; flex-wrap: wrap; gap: 9px 13px; margin: 0; padding: 0; list-style: none; }
.trato-product-trust li { display: inline-flex; align-items: center; gap: 5px; color: #344256; font-size: .76rem; font-weight: 750; }
.trato-product-trust svg { width: 19px; height: 19px; fill: none; stroke: var(--trato-dark); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
body.single-product.woocommerce div.product .product_meta { color: #4b5d72; }
body.single-product.woocommerce div.product .product_meta a { color: #314158; }
body.single-product.woocommerce div.product form.cart .quantity { display: inline-flex; align-items: stretch; overflow: hidden; border: 1px solid #bbc6d2; border-radius: 10px; }
body.single-product.woocommerce div.product form.cart .quantity .qty { width: 50px; min-height: 44px; border: 0; border-right: 1px solid #dce3ea; border-left: 1px solid #dce3ea; border-radius: 0; appearance: textfield; -moz-appearance: textfield; }
body.single-product.woocommerce div.product form.cart .quantity .qty::-webkit-outer-spin-button,
body.single-product.woocommerce div.product form.cart .quantity .qty::-webkit-inner-spin-button { margin: 0; -webkit-appearance: none; }
.trato-product-quantity-step { display: grid; place-items: center; width: 44px; min-height: 44px; padding: 0; border: 0; background: #f6f8fa; color: var(--trato-ink); font: inherit; font-size: 1.25rem; font-weight: 800; cursor: pointer; }
.trato-product-quantity-step:hover { background: var(--trato-soft); }
.trato-replacement-note { margin-top: 22px !important; padding: 13px 16px; border-left: 3px solid var(--trato-action); border-radius: 0 9px 9px 0; background: #fff8f1; color: #344256; font-size: .85rem; }
.trato-mobile-buy { display: none; }

/* Cart hierarchy and live free-shipping feedback. */
.trato-cart-heading { display: flex; align-items: end; justify-content: space-between; gap: 12px 24px; }
.trato-cart-heading a { color: var(--trato-dark); font-size: .88rem; font-weight: 800; text-decoration: none; }
.trato-cart-heading a:hover { text-decoration: underline; }
.trato-free-shipping { width: 100%; max-width: none; margin: 0 0 21px; padding: 15px 18px; border: 1px solid #e3d3c5; border-radius: 14px; background: #fff8f1; }
@media (min-width: 821px) { .trato-free-shipping { width: min(calc(66% - 18.5px), calc(100% - 358px)); } }
.trato-free-shipping p { margin: 0 0 8px; color: #344256; font-size: .88rem; }
.trato-free-shipping strong { color: var(--trato-dark); }
.trato-free-shipping progress { display: block; width: 100%; height: 9px; overflow: hidden; border: 0; border-radius: 999px; background: #e7edf2; accent-color: var(--trato-action); }
.trato-free-shipping progress::-webkit-progress-bar { border-radius: 999px; background: #e7edf2; }
.trato-free-shipping progress::-webkit-progress-value { border-radius: 999px; background: var(--trato-action); }
.trato-free-shipping progress::-moz-progress-bar { border-radius: 999px; background: var(--trato-action); }
.trato-cart-form.is-updating { opacity: .74; }
.trato-cart-form.is-updating .trato-quantity { pointer-events: none; }
.trato-cart-item__stock-note { margin: 9px 0 0; color: #9a3e00; font-size: .81rem; font-weight: 750; }
.trato-cart-item__stock-note:empty { display: none; }
.trato-cart-summary__breakdown { display: grid; gap: 10px; padding: 18px 24px; border-bottom: 1px solid #e8edf1; }
.trato-cart-summary__breakdown > div { display: flex; justify-content: space-between; gap: 12px; color: #475569; font-size: .87rem; }
.trato-cart-summary__breakdown strong { color: var(--trato-ink); text-align: right; white-space: nowrap; }
.trato-cart-summary__shipping .trato-shipping-rate span { flex-wrap: wrap; }
.trato-shipping-rate small { display: block; width: 100%; padding-left: 28px; color: #526071; font-size: .74rem; font-weight: 500; }
.trato-cart-summary__payment { display: grid; justify-items: center; gap: 8px; padding-top: 0; }
.trato-cart-summary__payment .trato-payment-marks { justify-content: center; }
.trato-cart-summary__payment .trato-payment-marks__caption { max-width: 190px; color: #526071; text-align: left; }
#trato-cart-region .cross-sells { margin: 36px 0 0; }
#trato-cart-region .cross-sells > h2 { margin: 0 0 18px; color: var(--trato-ink); font-size: 1.5rem; }
body.single-product.woocommerce div.product .related.products, body.single-product.woocommerce div.product .upsells.products { display: block !important; width: 100%; min-width: 0; }
body.single-product.woocommerce div.product .related ul.products, body.single-product.woocommerce div.product .upsells ul.products { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 260px)) !important; justify-content: start; gap: 18px; width: 100%; }
body.single-product.woocommerce div.product .related ul.products li.product, body.single-product.woocommerce div.product .upsells ul.products li.product { width: 100% !important; min-width: 0; }
body.single-product.woocommerce div.product .related ul.products li.product .woocommerce-loop-product__title, body.single-product.woocommerce div.product .upsells ul.products li.product .woocommerce-loop-product__title { overflow-wrap: anywhere; }
@media (max-width: 600px) {
    body.single-product.woocommerce div.product .related ul.products, body.single-product.woocommerce div.product .upsells ul.products { grid-template-columns: minmax(0, 1fr) !important; }
    body.single-product.woocommerce div.product .related ul.products li.product, body.single-product.woocommerce div.product .upsells ul.products li.product { max-width: 360px; }
    .tax-product_cat .trato-page .page-title { padding: 53px 20px 26px; }
    .tax-product_cat .trato-page .page-title::before { left: 20px; }
}

/* Small screens first; wider layouts only add space. */
.trato-utility__inner { min-height: 44px; }
.trato-utility__contact { min-height: 25px; padding: 0 11px; font-size: .78rem; }
.trato-utility__contact:first-child { padding-left: 0; }
.trato-utility__social { gap: 0; }
.trato-utility__icon { flex-basis: 34px; width: 34px; height: 32px; }
@media (max-width: 560px) {
    .trato-utility__contact:first-child { display: inline-flex; }
    .trato-utility__contact { flex: 0 0 auto; padding: 0 7px; font-size: .73rem; }
    .trato-utility__contact.trato-utility__phone { padding: 0 7px; border-left: 1px solid #d6dce3; border-right: 0; }
    .trato-utility__social { margin-left: auto; }
    .trato-utility__icon { flex-basis: 30px; width: 30px; }
}
.trato-header__inner { gap: 7px; }
.trato-search { position: static; margin-left: auto; }
.trato-search summary { width: 40px; height: 40px; }
.trato-search__form { top: calc(100% + 6px); right: 16px; left: 16px; width: auto; }
.trato-hero__card { margin: 0; }
.trato-footer__bottom > div { justify-content: flex-start; }
.trato-cart-heading { align-items: flex-start; flex-direction: column; }
.trato-cart-summary__breakdown { padding: 16px 18px; }
body.single-product { padding-bottom: 78px; }
.trato-mobile-buy { position: fixed; z-index: 60; right: 0; bottom: 0; left: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px max(16px, env(safe-area-inset-right)) calc(10px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); border-top: 1px solid #dce3ea; background: #fff; box-shadow: 0 -10px 24px rgba(15, 23, 42, .13); }
.trato-mobile-buy__price { color: var(--trato-dark); font-size: 1.05rem; font-weight: 900; white-space: nowrap; }
.trato-mobile-buy__button { min-height: 46px; padding: 0 11px; border: 0; border-radius: 999px; font: inherit; font-size: .8rem; font-weight: 850; cursor: pointer; }
@media (max-width: 600px) {
    .trato-cart-feedback { position: fixed; z-index: 80; right: 16px; bottom: calc(18px + env(safe-area-inset-bottom)); left: 16px; display: block; width: max-content; max-width: calc(100vw - 32px); margin: 0 auto; padding: 11px 16px; border: 1px solid #b8dcc6; border-radius: 12px; background: #eefaf2; box-shadow: 0 10px 28px rgba(15, 23, 42, .16); color: #165c39; font-size: .85rem; font-weight: 800; opacity: 0; pointer-events: none; transform: translateY(12px); transition: opacity .2s ease, transform .2s ease; }
    .trato-cart-feedback.is-visible { opacity: 1; transform: translateY(0); }
    .trato-cart-feedback.is-error { border-color: #edc5bb; background: #fff4f0; color: #922b20; }
    body.single-product .trato-cart-feedback { bottom: calc(85px + env(safe-area-inset-bottom)); }
}
@media (min-width: 381px) {
    .trato-mobile-buy__button { padding: 0 16px; font-size: .88rem; }
}
@media (min-width: 601px) {
    .trato-utility__inner { min-height: 48px; }
    .trato-utility__contact { padding: 0 18px; font-size: .84rem; }
    .trato-utility__contact:first-child { padding-left: 0; }
    .trato-utility__icon { flex-basis: 34px; width: 34px; }
    .trato-header__inner { gap: 12px; }
    .trato-footer__bottom > div { justify-content: flex-end; }
    .trato-cart-heading { align-items: end; flex-direction: row; }
    .trato-cart-summary__breakdown { padding: 18px 24px; }
    body.single-product { padding-bottom: 0; }
    .trato-mobile-buy { display: none; }
}
@media (min-width: 821px) {
    .trato-search { position: relative; margin-left: 0; }
    .trato-search__form { top: calc(100% + 14px); right: 0; left: auto; width: 370px; }
}
@media (prefers-reduced-motion: reduce) {
    .trato-category-gallery__item, .trato-category-gallery__image img { transition: none; }
    .trato-header .trato-cart.is-bumped { animation: none; }
    .trato-cart-feedback { transition: none; transform: none; }
}
.woocommerce .trato-prior-price {
    display: block;
    margin-top: 4px;
    color: #344256;
    font-size: .78rem;
    font-weight: 500;
    line-height: 1.45;
}
.woocommerce .trato-prior-price strong {
    color: #172536;
    font-weight: 800;
}
