/* Dynamic control internals only. Native Elementor containers own section/grid widths. */
/* Native top-layer dialog; existing facets/chips are reparented, not duplicated. */
.tresori-category-archive .tresori-category-drawer { position:fixed; inset:0; width:100%; max-width:none; height:100dvh; max-height:none; margin:0; padding:0; border:0; background:transparent; color:var(--tca-ink); overflow:hidden; }
.tresori-category-drawer::backdrop { background:rgb(16 16 16 / .45); }
.tresori-category-archive .tresori-category-drawer-panel { box-sizing:border-box; width:min(380px,calc(100% - 32px)); height:100%; padding:0 24px max(24px,env(safe-area-inset-bottom)); background:var(--e-global-color-colpape,#e3e2de); overflow-y:auto; overscroll-behavior:contain; box-shadow:8px 0 32px rgb(0 0 0 / .12); }
.tresori-category-drawer-head { display:flex; align-items:center; justify-content:space-between; gap:16px; position:sticky; top:0; z-index:1; padding:16px 0; background:var(--e-global-color-colpape,#e3e2de); }
.tresori-category-archive .tresori-category-drawer-head h2 { margin:0; font-family:var(--e-global-typography-furnh01-font-family,'Aethelion'),serif; font-size:var(--tca-heading); font-weight:400; line-height:1.2; color:#101010; }
.tresori-category-archive .tresori-category-drawer-close { flex:none; font-family:Arial,sans-serif; font-size:30px; line-height:1; width:44px; height:44px; padding:0; color:#101010; background:transparent; border:1px solid #cdcdcd; border-radius:50%; }
.tresori-category-archive .tresori-category-drawer-close:hover { background:var(--e-global-color-colston); }
.tresori-category-archive .tresori-category-drawer-status { font-family:var(--e-global-typography-workc01-font-family,'Work Sans'),sans-serif; font-size:14px; line-height:1.4; margin:0 0 12px; color:var(--tca-ink); }
.tresori-category-drawer-status:empty { display:none; }
.tresori-category-drawer .tresori-category-chips:not(:empty) { margin:0 0 16px; }
@media(max-width:767px) { .tresori-category-archive .tresori-category-drawer-panel { padding-inline:16px; padding-bottom:max(16px,env(safe-area-inset-bottom)); } .tresori-category-drawer-head { padding-block:12px; gap:12px; } .tresori-category-archive .tresori-category-drawer .tresori-category-price input[type=number] { padding-inline:8px; } }
.tresori-category-archive { --tca-body: 16px; --tca-heading: 32px; --tca-facet: 22px; --tca-gap: 24px; --tca-ink: var(--e-global-color-coldark, #504c48); }
.tresori-category-archive [hidden] { display: none !important; }
.tresori-category-archive :is(button, input, select, label) { font-family: var(--e-global-typography-workc01-font-family, 'Work Sans'), sans-serif; }
.tresori-category-toolbar, .tresori-category-order, .tresori-category-toggle { display: flex; align-items: center; }
.tresori-category-toolbar { justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: var(--tca-gap); }
.tresori-category-archive button { min-width: 44px; min-height: 44px; cursor: pointer; }
.tresori-category-archive .tresori-category-toggle { gap: 20px; border: 0; border-radius: 0; background: transparent; padding: 0; color: #101010; }
.tresori-category-toggle span { font-family: var(--e-global-typography-furnh01-font-family, 'Aethelion'); font-size: var(--tca-heading); font-weight: 400; line-height: 1.2; letter-spacing: 0; }
.tresori-category-toggle img { width: 20px; height: 20px; }
.tresori-category-order { gap: 14px; flex-wrap: wrap; font-size: 14px; line-height: 1.3; letter-spacing: -.7px; color: var(--tca-ink); }
.tresori-category-archive .tresori-category-order label { margin: 0 -2px 0 0; font-size: inherit; font-weight: 400; line-height: inherit; letter-spacing: inherit; color: inherit; }
.tresori-category-archive .tresori-category-order select { min-height: 44px; max-width: 100%; border: 0; border-radius: 0; padding: 8px 24px 8px 4px; background-color: transparent; color: var(--e-global-color-colfors); font-size: inherit; }
.tresori-category-count { text-transform: uppercase; }
.tresori-category-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.tresori-category-chips:not(:empty) { margin-top: 12px; }
.tresori-category-archive .tresori-category-chip { display: inline-flex; align-items: center; gap: 8px; padding: 9px 17px; border: 1px solid #e6e6e6; border-radius: 0; background: transparent; color: var(--tca-ink); font-size: var(--tca-body); font-weight: 400; line-height: 1.2; letter-spacing: -.02em; }
.tresori-category-chip span:last-child { display: inline-flex; align-items: center; justify-content: center; width: 14px; height: 14px; font-size: 20px; line-height: 1; }
.tresori-category-archive .tresori-category-chip:hover { background: var(--e-global-color-colston, #e3e2de); color: #101010; }
.tresori-category-archive .tresori-category-clear { background: transparent; border: 0; border-radius: 0; padding: 8px; color: var(--e-global-color-coldark, #504c48); text-decoration: underline; font-size: 14px; line-height: 1.2; letter-spacing: 0; }
.tresori-category-filters { font-family: var(--e-global-typography-workc01-font-family, 'Work Sans'), sans-serif; font-size: var(--tca-body); color: var(--e-global-color-coldark, #504c48); }
.tresori-category-filters details { border-top: 1px solid #cdcdcd; padding-block: var(--tca-gap); }
.tresori-category-archive .tresori-category-filters summary { display: flex; justify-content: space-between; align-items: center; min-height: 44px; list-style: none; cursor: pointer; font-family: var(--e-global-typography-furnh01-font-family, 'Aethelion'); font-size: var(--tca-facet); font-weight: 400; line-height: 1.2; letter-spacing: 0; color: #101010; }
.tresori-category-filters summary::-webkit-details-marker { display: none; }
.tresori-category-filters summary::after { content: ''; width: 9px; height: 9px; margin: 0 8px 4px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: rotate(45deg); }
.tresori-category-filters details[open] summary::after { transform: rotate(225deg); margin-bottom: 0; }
.tresori-category-filters fieldset { border: 0; padding: 4px 0 0; margin: 0; min-width: 0; }
.tresori-category-archive .tresori-category-option { display: flex; align-items: center; gap: 8px; min-height: 44px; cursor: pointer; margin: 0; font-size: var(--tca-body); font-weight: 400; line-height: 1.2; letter-spacing: -.02em; color: var(--tca-ink); }
.tresori-category-archive .tresori-category-option input { appearance: none; position: relative; width: 12px; height: 12px; flex: 0 0 12px; margin: 0; padding: 0; border: 1px solid var(--tca-ink); border-radius: 2px; background: transparent; }
.tresori-category-archive .tresori-category-option input:checked { background: var(--e-global-color-colrust); border-color: var(--e-global-color-colrust); }
.tresori-category-option input:checked::after { content: ''; position: absolute; left: 3px; top: 1px; width: 3px; height: 6px; border: solid white; border-width: 0 1px 1px 0; transform: rotate(45deg); }
.tresori-category-filters details:last-child { border-bottom: 1px solid #cdcdcd; }
.tresori-category-option span { overflow-wrap: anywhere; }
.tresori-category-no-options { margin: 8px 0 0; font-size: 14px; line-height: 1.4; }
.tresori-category-price { display: flex; align-items: center; gap: 8px; padding-top: 8px; }
.tresori-category-price::before { content: ''; order: 1; flex: 0 0 30px; height: 1px; background: var(--tca-ink); }
.tresori-category-price label:last-child { order: 2; }
.tresori-category-price label { flex: 1 1 0; min-width: 0; }
.tresori-category-archive .tresori-category-price input[type=number] { width: 100%; min-width: 0; min-height: 44px; padding: 9px 17px; border: 1px solid white; border-radius: 0; font-family: var(--e-global-typography-workc01-font-family, 'Work Sans'), sans-serif; font-size: var(--tca-body); font-weight: 400; line-height: 1.2; letter-spacing: -.02em; background: rgb(255 255 255 / .5); color: var(--tca-ink); }
.tresori-category-archive .tresori-category-price input::placeholder { color: var(--tca-ink); opacity: 1; }
.tresori-category-archive .tresori-category-price input[type=number] { appearance: textfield; -moz-appearance: textfield; }
.tresori-category-archive .tresori-category-price input[type=number]::-webkit-inner-spin-button,
.tresori-category-archive .tresori-category-price input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.tresori-category-archive .tresori-category-price-error:not([hidden]) { display: block; color: var(--e-global-color-colrust); font-size: var(--tca-body); line-height: 1.2; margin-top: 8px; }
.tresori-category-error { margin-top: 12px; padding: 12px; border: 1px solid var(--e-global-color-colrust); }
.tresori-category-archive .tresori-category-error button { background: var(--e-global-color-colrust); color: var(--e-global-color-colpape); border: 0; padding: 10px 18px; }
.tresori-category-archive :is(button, input, select, summary):focus-visible { outline: 2px solid var(--e-global-color-colrust); outline-offset: 3px; }
.tresori-category-select { display: inline-flex; position: relative; max-width: 100%; }
.tresori-category-archive .tresori-category-sort-trigger { display: inline-flex; align-items: center; gap: 8px; padding: 0; border: 0; border-radius: 0; background: transparent; color: #1a1d1e; font-size: inherit; font-weight: 500; line-height: 1.3; letter-spacing: -.7px; white-space: nowrap; }
.tresori-category-sort-chevron { position: relative; display: inline-block; flex: none; width: 18px; height: 18px; }
.tresori-category-sort-chevron::before, .tresori-category-sort-chevron::after { content: ""; position: absolute; width: 5.238831px; height: 1.5px; border-radius: .75px; background: #28070a; transform-origin: .75px .75px; }
.tresori-category-sort-chevron::before { left: 5.6025px; top: 7.305px; transform: rotate(44.918735deg); }
.tresori-category-sort-chevron::after { left: 8.25px; top: 9.945px; transform: rotate(-44.918735deg); }
.tresori-category-sort-trigger[aria-expanded=true] .tresori-category-sort-chevron { transform: scaleY(-1); }
.tresori-category-archive .tresori-category-sort-list { position: absolute; z-index: 20; top: 100%; right: 0; width: max-content; min-width: 200px; max-width: calc(100vw - 32px); max-height: 50vh; overflow-y: auto; margin: 0; padding: 4px; list-style: none; background: var(--e-global-color-colpape, #f8f7f2); border: 1px solid #cdcdcd; box-shadow: 0 4px 12px rgb(0 0 0 / .12); }
.tresori-category-sort-list [role=option] { display: flex; align-items: center; min-height: 44px; margin: 0; padding: 8px 12px; cursor: pointer; font-family: var(--e-global-typography-workc01-font-family, 'Work Sans'), sans-serif; font-size: 14px; font-weight: 400; line-height: 1.3; letter-spacing: -.7px; color: #1a1d1e; }
.tresori-category-sort-list [role=option][aria-selected=true] { font-weight: 500; }
.tresori-category-sort-list [role=option]:is(.is-active, :hover) { background: var(--e-global-color-colston, #e3e2de); outline: 1px solid var(--e-global-color-colrust); outline-offset: -1px; }
.tresori-category-grid { min-width: 0; }
/* Native grid tracks must not inherit a card's min-content badge width. */
.tresori-category-archive .tresori-category-grid .e-loop-item { min-width: 0; }
.is-category-loading .tresori-category-grid { opacity: .55; pointer-events: none; }
@media (max-width:1366px) { .tresori-category-archive { --tca-body:15.6px; --tca-heading:30px; --tca-facet:21px; --tca-gap:22px; } }
@media (max-width:1200px) { .tresori-category-archive { --tca-body:15.2px; --tca-heading:28px; --tca-facet:20px; --tca-gap:20px; } }
@media (max-width:1024px) { .tresori-category-archive { --tca-body:14.8px; --tca-heading:26px; --tca-facet:19px; --tca-gap:18px; } .tresori-category-order { gap: 8px; } .tresori-category-archive .tresori-category-sort-list { left: 0; right: auto; } }
@media (max-width:880px) { .tresori-category-archive { --tca-body:14.4px; --tca-heading:24px; --tca-facet:18px; --tca-gap:16px; } }
@media (max-width:767px) { .tresori-category-archive { --tca-body:14px; --tca-heading:22px; --tca-facet:17px; --tca-gap:14px; } .tresori-category-order { font-size:13px; } .tresori-category-archive .tresori-category-chip { padding:8px 12px; } .tresori-category-archive .tresori-category-toggle { gap:12px; } .tresori-category-sort-list [role=option] { font-size:13px; } }

/* Archive-only product card: native controls own type, media sizing and spacing.
 * Flatten Image Box wrappers solely to share its details row with native price. */
.tresori-archive-card { min-width:0; }
/* Native Image Box omits its figure when product media is unset. Reserve the
 * same responsive slot without fabricating media or changing the product. */
.tresori-archive-card-layout:not(:has(.elementor-image-box-img)) > .e-con-inner::before { content:''; grid-column:1/-1; grid-row:1; display:block; height:320px; background:#fff; }
@media(max-width:1366px) { .tresori-archive-card-layout:not(:has(.elementor-image-box-img)) > .e-con-inner::before { height:300px; } }
@media(max-width:1200px) { .tresori-archive-card-layout:not(:has(.elementor-image-box-img)) > .e-con-inner::before { height:280px; } }
@media(max-width:1024px) { .tresori-archive-card-layout:not(:has(.elementor-image-box-img)) > .e-con-inner::before { height:260px; } }
@media(max-width:880px) { .tresori-archive-card-layout:not(:has(.elementor-image-box-img)) > .e-con-inner::before { height:240px; } }
@media(max-width:767px) { .tresori-archive-card-layout:not(:has(.elementor-image-box-img)) > .e-con-inner::before { height:200px; } }
.tresori-archive-card-layout > .e-con-inner { display:grid; grid-template-columns:minmax(0,1fr) auto; align-content:start; min-width:0; }
.tresori-archive-card-box,
.tresori-archive-card-box > .elementor-widget-container,
.tresori-archive-card-box .elementor-image-box-wrapper { display:contents; }
.tresori-archive-card-box .elementor-image-box-img { grid-column:1/-1; grid-row:1; width:100%; margin:0!important; background:#fff; }
.tresori-archive-card-box .elementor-image-box-img a { display:block; width:100%; }
.tresori-archive-card-box .elementor-image-box-img img { display:block; width:100%; object-position:center; }
.tresori-archive-card-box .elementor-image-box-content { grid-column:1; grid-row:2; min-width:0; }
.tresori-archive-card-box .elementor-image-box-title a { font:inherit; color:inherit; letter-spacing:inherit; }
.tresori-archive-card-box .elementor-image-box-title { margin-block-start:0; }
.tresori-archive-card-box .elementor-image-box-description { margin:0; }
.tresori-archive-card-price { grid-column:2; grid-row:2; min-width:0; max-width:100%; }
.tresori-archive-card-price .price { margin:0!important; overflow-wrap:anywhere; }
.tresori-archive-card-action { grid-column:1/-1; grid-row:3; min-width:0; }
.tresori-archive-card-action .cart { margin:0!important; }
.tresori-archive-card-action .cart .button { display:inline-flex; align-items:center; gap:10px; min-height:44px; min-width:44px; white-space:normal; text-align:left; }
.tresori-archive-card-action .cart .button::after { content:''; display:block; flex:0 0 16px; width:16px; height:16px; background:currentColor; mask:url('/wp-content/uploads/2026/10/tresori-shop-decor-arrow.svg') center/contain no-repeat; transform:scaleX(-1); }
.tresori-archive-card-badge { pointer-events:none; }
.tresori-archive-card a:focus-visible { outline:2px solid var(--e-global-color-colrust); outline-offset:3px; }
@media(max-width:767px) {
 .tresori-archive-card-layout > .e-con-inner { grid-template-columns:minmax(0,1fr); }
 .tresori-archive-card-price { grid-column:1; grid-row:3; }
 .tresori-archive-card-action { grid-row:4; }
 .tresori-archive-card-price:not(:has(.price)) { display:none; }
 .tresori-archive-card-action .cart .button { gap:5px; }
}
@media(prefers-reduced-motion:reduce) { .tresori-archive-card a { transition:none!important; animation:none!important; } }

/* Archive card AJAX action: Elementor styles the initial button, but Woo inserts View cart beside the form. */
.tresori-archive-card-action .e-loop-add-to-cart-form-container { align-items:center; column-gap:10px; row-gap:4px; }
.tresori-archive-card-action .cart { min-width:0; }
.tresori-archive-card-action .e-loop-add-to-cart-form-container a.added_to_cart { display:inline-flex; align-items:center; gap:10px; min-height:44px; margin:0; padding:0; font-family:var(--e-global-typography-workc01-font-family),sans-serif; font-size:var(--e-global-typography-workc01-font-size); font-weight:var(--e-global-typography-workc01-font-weight); line-height:var(--e-global-typography-workc01-line-height); letter-spacing:var(--e-global-typography-workc01-letter-spacing); color:var(--e-global-color-colrust); white-space:nowrap; }
.tresori-archive-card-action .e-loop-add-to-cart-form-container a.added_to_cart:is(:hover,:focus-visible) { color:var(--e-global-color-colfors); }
.tresori-archive-card-action .e-loop-add-to-cart-form-container a.added_to_cart::after { content:''; display:block; flex:0 0 16px; width:16px; height:16px; background:currentColor; mask:url('/wp-content/uploads/2026/10/tresori-shop-decor-arrow.svg') center/contain no-repeat; transform:scaleX(-1); }
.tresori-archive-card-action .cart a.button.added:not(.loading)::after { content:none; display:none; }
.tresori-archive-card-action .cart a.button.loading::after { position:static; inset:auto; display:block; flex:0 0 16px; width:16px; height:16px; margin:0; background:none; mask:none; transform:none; }
@media(max-width:767px) { .tresori-archive-card-action .e-loop-add-to-cart-form-container a.added_to_cart { gap:5px; } }
@media(prefers-reduced-motion:reduce) { .tresori-archive-card-action .cart a.button.loading::after { animation:none; } }

/* Woo's completed Add state must share View cart's resting Rust, while both retain Forest hover/focus. */
.tresori-archive-card-action .cart a.button.added:not(.loading) { color:var(--e-global-color-colrust); }
.tresori-archive-card-action .cart a.button.added:not(.loading):is(:hover,:focus-visible) { color:var(--e-global-color-colfors); }

/* On the two-column narrow wrap, keep both 44px targets while closing the visible label gap. */
@media(max-width:378px) {
 .tresori-archive-card-action .e-loop-add-to-cart-form-container { row-gap:0!important; }
 .tresori-archive-card-action .e-loop-add-to-cart-form-container a.added_to_cart { align-items:flex-start!important; }
}
