/* TRESORI_CHILD_RESPONSIVE_CSS */
@media (min-width: 768px) {
  body .tresori-header.tresori-header .tresori-header__search--mobile { display: none; }
}
@media (max-width: 1279px) {
  body .tresori-header.tresori-header .tresori-header__nav,
  body .tresori-header.tresori-header .tresori-header__divider--left { display: none; }
}
@media (max-width: 1024px) {
  /* TRESORI_JOURNAL_DIVIDERS */
  @media (min-width: 768px) {
    /* Home's two-column rows need one full-width edge, including a sparse last row.
       Retain the native border width so card sizing and spacing stay unchanged. */
    .tresori-stories .tresori-stories-loop .e-loop-item .tresori-stories-card { border-bottom-color: transparent; }
    .tresori-stories .tresori-stories-loop .e-loop-item:nth-child(odd of .e-loop-item)::after {
      content: "";
      position: absolute;
      left: 0;
      bottom: 0;
      width: calc(200% + var(--grid-column-gap));
      border-bottom: 1px solid var(--e-global-color-colston);
      pointer-events: none;
    }
  }
  .tresori-stories-loop .e-loop-item:not(:nth-child(3n + 1 of .e-loop-item))::before { content: none; }
  .tresori-stories-loop .e-loop-item:nth-child(even of .e-loop-item)::before {
    content: "";
    position: absolute;
    left: calc(var(--grid-column-gap) / -2);
    top: 0;
    bottom: 0;
    border-left: .8px solid var(--e-global-color-colston);
    pointer-events: none;
  }

  body .tresori-header.tresori-header .tresori-header__showroom,
  body .tresori-header.tresori-header .tresori-header__appointment,
  body .tresori-header.tresori-header .tresori-header__divider--search { display: none; }
  body .tresori-header.tresori-header .tresori-header__actions { flex-basis: 122px; width: 122px; min-height: 20px; }
}
@media (max-width: 767px) {
  /* TRESORI_JOURNAL_DIVIDERS */
  .tresori-stories-loop .e-loop-item:nth-child(even of .e-loop-item)::before { content: none; }

  body .tresori-header.tresori-header .tresori-header__left { gap: 24px; padding-right: 0; }
  body .tresori-header.tresori-header .tresori-header__search--desktop { display: none; }
  body .tresori-header.tresori-header .tresori-header__right { padding-top: 0; padding-right: 0; }
  body .tresori-header.tresori-header .tresori-header__actions { flex-basis: 64px; width: 64px; }
  body .tresori-header.tresori-header .tresori-header__account { margin-left: 0; }
  body .tresori-header.tresori-header .tresori-header__drawer nav.elementor-nav-menu--dropdown { max-width: 100vw; }
}
@media (prefers-reduced-motion: reduce) {
  body .tresori-header .tresori-header__drawer nav.elementor-nav-menu--dropdown { transition-duration: 0s; }
}

/* TRESORI_WAY_LIVE_RESPONSIVE_START */
/* Room aspect ratio now follows the source at every width; native responsive spacing is preserved. */
/* TRESORI_WAY_LIVE_RESPONSIVE_END */

/* TRESORI_HEADER_FOOTER_REFINEMENT: 479px is not an enabled kit breakpoint. */
@media (max-width: 767px) {
  body .tresori-header .tresori-header__cart { top: 0; }
}
/* Batch3: native two-column footer remains in effect down to320px. */
@media (max-width: 1200px) {
  .tresori-footer .tresori-footer-rule { opacity: 1; }
}


/* Native full-screen skin has percentage padding and no overlay-padding control. */
@media (max-width: 1024px) {
  body .tresori-header .tresori-header__search .elementor-search-form__container { padding-inline: 24px; }
}
@media (max-width: 767px) {
  body .tresori-header .tresori-header__search .elementor-search-form__container { padding-inline: 20px; }
}
@media (max-width: 375px) {
  body .tresori-header .tresori-header__search .elementor-search-form__container { padding-inline: 16px; }
}

/* Responsive persistent card: existing safe shelf, now normal document flow. */
@media (max-width: 1024px) {
  .tresori-way-live .tresori-way-live-hotspot > .elementor-widget-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    aspect-ratio: auto;
  }
  .tresori-way-live .tresori-way-live-hotspot > .elementor-widget-container > img {
    position: relative;
    inset: auto;
    height: auto;
    aspect-ratio: 1440 / 640;
    flex: none;
  }
  .tresori-way-live .tresori-way-live-hotspot .e-hotspot {
    display: contents;
    transform: none;
  }
  /* Keep the native crop-aware inline left/top values on the real button.
     The boxless wrapper lets the active card participate in widget layout. */
  .tresori-way-live .tresori-way-live-hotspot .e-hotspot__button {
    position: absolute;
    left: inherit;
    top: inherit;
    transform: translate(-50%, -50%);
  }
  .tresori-way-live .tresori-way-live-hotspot:has(.e-hotspot--active) .e-hotspot__button {
    transform: translate(-50%, calc(-50% + 211px));
  }
  .tresori-way-live .tresori-way-live-hotspot .e-hotspot__tooltip {
    left: calc((100% - 240px) / 2) !important;
    top: 0 !important;
    z-index: 5;
  }
  .tresori-way-live .tresori-way-live-hotspot .e-hotspot--active .e-hotspot__tooltip {
    position: relative;
    top: auto !important;
    bottom: auto !important;
    left: auto !important;
    order: -1;
    flex: none;
    margin: 0 0 8px;
  }
  .tresori-way-live .tresori-way-live-hotspot .e-hotspot__tooltip {
    display: none;
    transition: none;
    transform: none;
  }
  .tresori-way-live .tresori-way-live-hotspot .e-hotspot--active .e-hotspot__tooltip {
    display: block;
  }
}

/* Contact CF7-only responsive gaps. Native Elementor owns outer layout. */
@media (max-width:1366px) {
  .tresori-contact-form { gap: 30px; }
  .tresori-contact-form__fields { gap: 30px; }
  .tresori-contact-form__row { gap: 32px; }
  .tresori-contact-form__submit .elementor-button { min-width: 160px; min-height: 47px; padding: 12px 24px; }
}
@media (max-width:1200px) {
  .tresori-contact-form { gap: 28px; }
  .tresori-contact-form__fields { gap: 28px; }
  .tresori-contact-form__row { gap: 28px; }
  .tresori-contact-form__submit .elementor-button { min-width: 150px; min-height: 46px; padding: 11px 22px; }
}
@media (max-width:1024px) {
  .tresori-contact-form { gap: 26px; }
  .tresori-contact-form__fields { gap: 26px; }
  .tresori-contact-form__row { gap: 24px; }
  .tresori-contact-form__submit .elementor-button { min-width: 145px; min-height: 45px; padding: 10px 20px; }
}
@media (max-width:880px) {
  .tresori-contact-form { gap: 24px; }
  .tresori-contact-form__fields { gap: 24px; }
  .tresori-contact-form__row { gap: 22px; }
  .tresori-contact-form__submit .elementor-button { min-width: 140px; min-height: 44px; padding: 10px 18px; }
}
@media (max-width:767px) {
  .tresori-contact-form { gap: 22px; }
  .tresori-contact-form__fields { gap: 22px; }
  .tresori-contact-form__row { flex-direction: column; gap: 22px; }
  .tresori-contact-form__submit .elementor-button { min-width: 135px; padding: 10px 16px; }
}

/* Batch3 approved stylesheet-only exception: preserve the complete native Home document.
   Existing Italian header only; intrinsic children wrap when their actual widths no longer fit. */
@media(max-width:1024px) {
  .page-id-26731 .tresori-italian-curated .tresori-italian-curated-header { flex-direction:row;flex-wrap:wrap;align-items:flex-end;justify-content:space-between; }
  .page-id-26731 .tresori-italian-curated .tresori-italian-curated-header > .tresori-italian-curated-heading { width:max-content;max-width:100%;flex:0 0 auto; }
  .page-id-26731 .tresori-italian-curated .tresori-italian-curated-header > .tresori-italian-curated-all-brands { width:auto;max-width:100%;flex:0 0 auto; }
}

/* Kitchen paired index begins at tablet; mobile enhancement ends at 767px. */
@media (min-width: 768px) and (max-width: 1024px) {
  body .tresori-kitchen-styles .tresori-kitchen-styles__main {
    flex-direction: row;
    gap: clamp(20px, 2.5vw, 28px);
  }
  body .tresori-kitchen-styles .tresori-kitchen-styles__sidebar {
    width: 28%;
    flex: 0 0 28%;
    min-width: 0;
  }
  body .tresori-kitchen-styles .tresori-kitchen-styles__images {
    width: auto;
    flex: 1 1 0;
    min-width: 0;
  }
  body .tresori-kitchen-styles .tresori-kitchen-styles__index {
    position: sticky;
    top: 72px;
  }
}
/* Preserve the unrelated Brand range from Batch 4. */
@media (min-width: 750px) and (max-width: 1024px) {
  body .tresori-brand-lived .tresori-brand-lived-inner > .e-con-inner {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: clamp(24px, 3.125vw, 32px);
  }
  body .tresori-brand-lived .tresori-brand-lived-copy {
    width: 100%;
    flex: 0 0 100%;
  }
}
@media (min-width: 480px) and (max-width: 750px) {
  body .tresori-journal-page .tresori-journal-grid .tresori-stories-image img {
    height: 260px;
  }
}

/* Batch 5: preserve desktop facts; exact 480px lower boundary is not a Kit breakpoint. */
@media (min-width: 480px) and (max-width: 1024px) {
  body .tresori-brand-distinctive .tresori-brand-distinctive-facts {
    flex-direction: row;
    align-items: flex-start;
  }
  body .tresori-brand-distinctive .tresori-brand-distinctive-fact {
    flex: 1 1 0;
    width: 0;
    min-width: 0;
    overflow-wrap: anywhere;
  }
}
/* Native indicator palette only: established Rust/Paper tokens preserve badge geometry. */
body .tresori-header .tresori-header__cart {
  --items-indicator-background-color: var(--e-global-color-colrust);
  --items-indicator-text-color: var(--e-global-color-colpape);
}
/* Isolate the existing background SVG paint so the scrolled filter cannot flatten the native badge. */
body .tresori-header.tresori-header.tresori-header.elementor-sticky--effects .tresori-header__cart .elementor-menu-cart__toggle_button {
  position: relative;
  filter: none;
  background-image: none;
}
body .tresori-header.tresori-header.tresori-header.elementor-sticky--effects .tresori-header__cart .elementor-menu-cart__toggle_button::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: url("https://tresori.techsolutionn.com/wp-content/uploads/2026/09/tresori-figma-header-bag.svg") center / 20px 20px no-repeat;
  filter: brightness(0) invert(.062745098);
}

/* Kitchen native Image Box/Loop enhancement. Mobile includes 767px. */
.tresori-kitchen-styles .tresori-kitchen-read-more[hidden],
.tresori-kitchen-styles .tresori-kitchen-styles__index[hidden] { display:none; }
@media(max-width:767px) {
  /* Native sticky is desktop-only; discard any residual inline sticky geometry at this boundary. */
  body .tresori-kitchen-styles .tresori-kitchen-styles__index {
    position:static !important;inset:auto !important;transform:none !important;width:100% !important;max-width:100%;
  }
  body .tresori-kitchen-styles .tresori-kitchen-styles__index.elementor-sticky__spacer { display:none !important; }
  body .tresori-kitchen-styles .tresori-kitchen-styles__index[hidden] { display:none !important; }
  body .tresori-kitchen-styles[data-kitchen-styles-owner="v5"] .tresori-kitchen-styles__sidebar,
  body .tresori-kitchen-styles .tresori-kitchen-product-item[hidden] { display:none !important; }
  body .tresori-kitchen-styles .tresori-kitchen-accordion-heading {
    position:static;width:100%;max-width:100%;min-width:0;margin:0;padding:0;overflow:visible;
  }
  /* Reuse the existing index state tokens after moving native headers into mobile cards. */
  body .tresori-kitchen-styles .tresori-kitchen-accordion-heading :is(a.elementor-button,p.elementor-heading-title) {
    font-size:var(--tks-title-size);line-height:1.2;color:var(--tks-title-ink);transition:none;
  }
  body .tresori-kitchen-styles .tresori-kitchen-accordion-heading .tresori-kitchen-product-nav-link {
    display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:16px;
    width:100%;max-width:100%;min-height:44px;padding:10px 0;border:0;border-bottom:1px solid currentColor;border-radius:0;background:transparent;
  }
  .tresori-kitchen-styles .tresori-kitchen-accordion-heading .tresori-kitchen-product-nav-link::after { content:'+';flex:none;font-family:sans-serif;font-size:1.25rem;line-height:1; }
  .tresori-kitchen-styles .tresori-kitchen-accordion-heading .tresori-kitchen-product-nav-link[aria-expanded="true"]::after { content:'−'; }
  .tresori-kitchen-styles .tresori-kitchen-accordion-heading .tresori-kitchen-product-nav-link:focus-visible { outline:2px solid var(--e-global-color-colrust);outline-offset:3px; }
  body .tresori-kitchen-styles .tresori-kitchen-product-item .tresori-kitchen-product-box .elementor-image-box-content {
    position:static; inset:auto; padding:8px 0 0; background:none; pointer-events:auto;
  }
  body .tresori-kitchen-styles .tresori-kitchen-product-item .tresori-kitchen-product-box .elementor-image-box-title,
  body .tresori-kitchen-styles .tresori-kitchen-product-item .tresori-kitchen-product-box .elementor-image-box-content p {
    color:var(--e-global-color-colfors);
  }
  body .tresori-kitchen-styles .tresori-kitchen-product-item .tresori-kitchen-product-box .elementor-image-box-title { margin-top:0; }
  .tresori-kitchen-styles .tresori-kitchen-description { display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden; }
  .tresori-kitchen-styles .tresori-kitchen-description.is-expanded { display:block;-webkit-line-clamp:unset;overflow:visible; }
  .tresori-kitchen-styles .tresori-kitchen-read-more {
    align-self:flex-start;display:inline-flex;align-items:center;justify-content:flex-start;min-width:44px;min-height:44px;
    padding:0;border:0;border-radius:0;background:transparent;color:var(--e-global-color-colrust);
    font-family:var(--e-global-typography-workb02-font-family);font-size:.875rem;text-decoration:underline;cursor:pointer;
  }
  .tresori-kitchen-styles .tresori-kitchen-read-more:focus-visible { outline:2px solid var(--e-global-color-colrust);outline-offset:3px; }
}

/* Home Stories: align the visible reserved CTA only on its narrow wrapped row.
   Native intrinsic row/wrap and the 44px click target remain unchanged. */
@media (max-width:427px) {
 .tresori-stories .tresori-stories-journal-button.tresori-cta-reserved .elementor-button::before,
 .tresori-stories .tresori-stories-journal-button.tresori-cta-reserved .elementor-button::after { left:calc(var(--tr-visual-width) / 2); }
 .tresori-stories .tresori-stories-journal-button .elementor-button-content-wrapper { left:calc((var(--tr-visual-width) - 100%) / 2); }
}
