/* ACDC Casa · v387 · mobile only. Desktop and checkout are untouched.
   Intentional !important: override older editorial layers without changing them. */
@media (max-width: 767px) {
  /* Header: balanced 44px controls, a real centre column, no absolute logo. */
  body.acdc-theme.head-offset { padding-top: 0 !important; }
  .acdc-theme #acdc-site-header {
    position: sticky !important; top: 0 !important; left: 0 !important;
    width: 100% !important; transform: none !important; margin: 0 !important;
    background: #fff !important; color: #171717 !important;
    border-bottom: 1px solid #e9e7e3 !important;
  }
  .acdc-theme #acdc-site-header .head-logo-row { padding: 0 !important; min-height: 64px !important; }
  .acdc-theme #acdc-site-header .head-logo-row > .container { width: 100% !important; padding: 0 8px !important; }
  .acdc-theme #acdc-site-header .head-logo-row > .container > .row {
    display: grid !important; grid-template-columns: 44px 44px minmax(0, 1fr) 44px 44px;
    align-items: center !important; gap: 0 !important; min-height: 64px !important;
    margin: 0 !important; position: relative !important;
  }
  .acdc-theme #acdc-site-header .acdc-mobile-menu-utility { grid-column: 1; grid-row: 1; }
  .acdc-theme #acdc-site-header .js-search-utility { grid-column: 2; grid-row: 1; }
  .acdc-theme #acdc-site-header .js-logo-container {
    grid-column: 3; grid-row: 1; display: block !important; position: static !important;
    width: 100% !important; max-width: 100% !important; min-width: 0 !important;
    left: auto !important; top: auto !important; transform: none !important;
    margin: 0 !important; padding: 0 2px !important; text-align: center !important;
  }
  .acdc-theme #acdc-site-header:has(.js-big-search-mobile) .js-logo-container { grid-column: 2 / 4; }
  .acdc-theme #acdc-site-header .acdc-header-brand {
    display: flex !important; flex-direction: column; align-items: center; justify-content: center;
    min-height: 44px; width: 100%; color: #171717 !important; text-decoration: none;
  }
  .acdc-theme #acdc-site-header .acdc-header-brand .logo-text {
    display: inline-flex !important; flex-wrap: nowrap; width: auto !important;
    font-size: clamp(18px, 5vw, 23px) !important; line-height: 1.15 !important;
    letter-spacing: -.055em !important; white-space: nowrap;
  }
  .acdc-theme #acdc-site-header .acdc-header-brand .acdc-logo-mark,
  .acdc-theme #acdc-site-header .acdc-header-brand .acdc-logo-word { color: #171717 !important; }
  .acdc-theme #acdc-site-header .acdc-header-brand-tagline { display: none !important; }
  .acdc-theme #acdc-site-header .acdc-favorites-utility.d-md-none {
    grid-column: 4; grid-row: 1; margin: 0 !important; width: 44px !important;
  }
  .acdc-theme #acdc-site-header .acdc-header-actions {
    grid-column: 5; grid-row: 1; display: flex !important; width: 44px !important;
    padding: 0 !important; margin: 0 !important; gap: 0 !important;
  }
  .acdc-theme #acdc-site-header .acdc-header-actions > .js-utility-col:not(.acdc-cart-utility) { display: none !important; }
  .acdc-theme #acdc-site-header .col-utility { min-width: 0 !important; padding: 0 !important; }
  .acdc-theme #acdc-site-header .utilities-container,
  .acdc-theme #acdc-site-header .cart-summary { margin: 0 !important; }
  .acdc-theme #acdc-site-header .btn-utility {
    display: inline-flex !important; align-items: center; justify-content: center;
    width: 44px !important; min-width: 44px !important; height: 44px !important;
    min-height: 44px !important; padding: 0 !important; margin: 0 !important;
    color: #171717 !important; background: transparent !important; border: 0 !important;
  }
  .acdc-theme #acdc-site-header .acdc-header-icon { width: 21px !important; height: 21px !important; }
  .acdc-theme #acdc-site-header .js-big-search-mobile { padding: 0 16px 12px !important; }
  .acdc-theme #acdc-site-header .js-big-search-mobile input { min-width: 0; font-size: 16px !important; }

  /* Drawer: one scroll area, stable close button, safe-area / keyboard support. */
  .acdc-theme #nav-hamburger.acdc-mobile-v387 {
    position: fixed !important; inset: 0 auto auto 0 !important;
    width: calc(100% - 24px) !important; max-width: 420px !important; min-width: 0 !important;
    height: 100vh !important; height: var(--acdc-mobile-viewport, 100dvh) !important;
    max-height: none !important; min-height: 0 !important;
    padding: 0 !important; margin: 0 !important; overflow: hidden !important;
    border: 0 !important; border-radius: 0 !important; background: #fff !important;
    color: #20201e !important; box-shadow: 12px 0 48px rgba(0,0,0,.16);
    transform: translateX(-102%) !important; opacity: 1 !important;
    z-index: 2147482001 !important; transition: transform 180ms ease !important;
  }
  .acdc-theme #nav-hamburger.acdc-mobile-v387.modal-show { transform: translateX(0) !important; }
  .acdc-theme #nav-hamburger.acdc-mobile-v387 > .modal-header,
  .acdc-theme #nav-hamburger.acdc-mobile-v387 > .modal-footer { display: none !important; }
  .acdc-theme #nav-hamburger.acdc-mobile-v387 > .modal-body.nav-body {
    display: block !important; height: 100% !important; min-height: 0 !important;
    max-height: none !important; width: 100% !important; padding: 0 !important;
    margin: 0 !important; overflow: hidden !important; transform: none !important;
  }
  .acdc-theme .js-modal-overlay[data-modal-id="#nav-hamburger"] {
    position: fixed !important; inset: 0 !important; width: 100% !important; height: 100% !important;
    z-index: 2147482000 !important; background: rgba(20,20,18,.48) !important;
  }
  .acdc-theme #nav-hamburger .acdc-mnav,
  .acdc-theme #nav-hamburger .acdc-mnav * { box-sizing: border-box; }
  .acdc-theme #nav-hamburger .acdc-mnav {
    display: flex; flex-direction: column; width: 100%; height: 100%;
    min-width: 0; min-height: 0; background: #fff; text-align: left;
    font-family: var(--body-font, Arial, sans-serif);
  }
  .acdc-mnav-head {
    display: flex; flex: 0 0 auto; align-items: center; justify-content: space-between;
    gap: 12px; min-height: 66px; padding: max(8px, env(safe-area-inset-top)) 12px 8px 20px;
    background: #fff; border-bottom: 1px solid #ece9e3;
  }
  .acdc-mnav-brand { display: inline-flex; align-items: baseline; min-height: 44px; line-height: 44px; font-size: 23px; letter-spacing: -.05em; color: #171717 !important; }
  .acdc-mnav-brand strong { font-weight: 800; }
  .acdc-mnav-brand > span { margin-left: 4px; font-weight: 400; }
  .acdc-mnav-close { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 44px; min-width: 44px; padding: 0 8px; border: 0; background: transparent; color: #383732; font: inherit; cursor: pointer; }
  .acdc-mnav-close > span { font-size: 12px; }
  .acdc-mnav svg { width: 21px; height: 21px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
  .acdc-mnav-scroll { flex: 1 1 auto; min-height: 0; min-width: 0; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; scrollbar-gutter: stable; padding-bottom: calc(18px + env(safe-area-inset-bottom)); scroll-padding-top: 12px; }
  .acdc-mnav-search { display: flex; align-items: center; height: 48px; min-width: 0; margin: 18px 20px 22px; padding: 0 0 0 13px; border: 1px solid #dedbd5; background: #faf9f7; border-radius: 4px; }
  .acdc-mnav-search input { width: 100%; min-width: 0; flex: 1; height: 46px; padding: 0; color: #20201e; background: transparent; border: 0; font: inherit; font-size: 16px; outline: none; -webkit-appearance: none; }
  .acdc-mnav-search input::placeholder { color: #706d66; opacity: 1; }
  .acdc-mnav-search button { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 46px; width: 46px; height: 46px; border: 0; background: transparent; color: #20201e; }
  .acdc-mnav-search:focus-within { outline: 2px solid #6c624f; outline-offset: 2px; }
  .acdc-theme #nav-hamburger .acdc-mnav-kicker { margin: 0 20px 9px !important; color: #706b61; font: inherit !important; font-size: 11px !important; font-weight: 600 !important; letter-spacing: .13em !important; line-height: 1.5 !important; text-transform: uppercase; }
  .acdc-theme #nav-hamburger .acdc-mnav-list { display: block; list-style: none; width: 100%; margin: 0; padding: 0; }
  .acdc-mnav-item { min-width: 0; margin: 0; padding: 0; }
  .acdc-mnav-root > .acdc-mnav-item { border-bottom: 1px solid #eeeae3; }
  .acdc-mnav-summary, .acdc-mnav-link {
    display: flex; align-items: center; justify-content: space-between; gap: 14px;
    min-height: 52px; padding: 13px 20px; margin: 0; color: #24231f !important;
    background: transparent; font: inherit; font-size: 16px; font-weight: 500;
    line-height: 1.45; letter-spacing: 0; text-transform: none;
    white-space: normal; overflow-wrap: anywhere; cursor: pointer; text-decoration: none !important;
  }
  .acdc-mnav-summary { list-style: none; }
  .acdc-mnav-summary::-webkit-details-marker { display: none; }
  .acdc-mnav-summary::marker { content: ''; }
  .acdc-mnav-summary > span:first-child { min-width: 0; }
  .acdc-mnav-chevron { width: 8px; height: 8px; flex: 0 0 8px; margin: 0 4px 4px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); transition: transform 160ms ease; }
  .acdc-mnav-group[open] > .acdc-mnav-summary { background: #f6f3ed; font-weight: 600; }
  .acdc-mnav-group[open] > .acdc-mnav-summary > .acdc-mnav-chevron { transform: rotate(225deg); margin-bottom: -4px; }
  .acdc-theme #nav-hamburger .acdc-mnav-sublist { width: auto; margin: 0 16px 10px; padding-left: 10px; border-left: 1px solid #d8d1c4; }
  .acdc-mnav-sublist .acdc-mnav-summary, .acdc-mnav-sublist .acdc-mnav-link { min-height: 48px; padding: 12px 10px; font-size: 14px; font-weight: 400; }
  .acdc-mnav-sublist .acdc-mnav-sublist { margin-left: 2px !important; margin-right: 0 !important; padding-left: 8px !important; }
  .acdc-mnav-sublist .acdc-mnav-all { font-weight: 600; color: #62523b !important; }
  .acdc-mnav-link > span:last-child { flex: 0 0 auto; color: #7c7467; }
  .acdc-mnav-tools { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); margin: 20px 20px 0; gap: 8px; }
  .acdc-mnav-tools button { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 7px; min-width: 0; min-height: 52px; padding: 10px 8px; border: 1px solid #dfdbd3; border-radius: 4px; color: #282621; background: #fff; font: inherit; font-size: 12px; line-height: 1.5; cursor: pointer; }
  .acdc-mnav-tools small { min-width: 19px; padding: 2px 5px; background: #292720; color: #fff; font-size: 10px; border-radius: 20px; }
  .acdc-mnav [hidden] { display: none !important; }
  .acdc-mnav-professionals { display: flex; align-items: center; justify-content: space-between; min-height: 66px; margin: 12px 20px 8px; padding: 13px 16px; background: #282821; color: #fff !important; border-radius: 4px; }
  .acdc-mnav-professionals strong { display: block; font-size: 14px; font-weight: 500; line-height: 1.6; }
  .acdc-mnav-professionals small { display: block; font-size: 11px; line-height: 1.6; color: #ddd8cc; }
  .acdc-mnav-professionals > span:last-child { font-size: 24px; }
  .acdc-mnav-account { display: flex; flex-wrap: wrap; align-items: center; gap: 0 20px; padding: 0 20px; }
  .acdc-mnav-account a { display: inline-flex; align-items: center; min-height: 44px; font-size: 13px; color: #48443d !important; text-decoration: underline; text-underline-offset: 4px; }
  .acdc-mnav-languages { padding: 0 20px; }
  .acdc-mnav-sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
  .acdc-mnav :is(a,button,summary):focus-visible { outline: 2px solid #786749; outline-offset: -3px; }

  /* Home: readable headings/actions and contained rails. */
  .acdc-theme.template-home .acdc-home { min-width: 0; width: 100%; margin-top: 0 !important; }
  .acdc-theme.template-home .acdc-home .container { max-width: 100%; }
  .acdc-theme.template-home .acdc-home .acdc-hero[data-acdc-hero-version="384"] { --acdc-h384-gutter: 20px; }
  .acdc-theme.template-home .acdc-home .acdc-hero[data-acdc-hero-version="384"] .acdc-h384-media { height: clamp(224px, 65vw, 400px) !important; }
  .acdc-theme.template-home .acdc-home .acdc-hero[data-acdc-hero-version="384"]::after { height: clamp(224px, 65vw, 400px) !important; }
  .acdc-theme.template-home .acdc-home .acdc-hero[data-acdc-hero-version="384"] .acdc-h384-image { object-position: 61% 59%; }
  .acdc-theme.template-home .acdc-home .acdc-hero[data-acdc-hero-version="384"] .acdc-hero-container { padding: 28px 20px !important; }
  .acdc-theme.template-home .acdc-home .acdc-hero[data-acdc-hero-version="384"] h1 { font-size: clamp(34px, 9vw, 52px) !important; overflow-wrap: break-word; }
  .acdc-theme.template-home .acdc-home .acdc-hero[data-acdc-hero-version="384"] .acdc-hero-actions .acdc-btn { width: 100% !important; min-width: 0 !important; font-size: 11px !important; letter-spacing: .08em !important; }
  .acdc-theme.template-home .acdc-home .acdc-hero[data-acdc-hero-version="384"] .acdc-hero-signature { font-size: 10px !important; line-height: 1.6 !important; letter-spacing: .05em !important; white-space: normal; }
  .acdc-theme.template-home .acdc-home .acdc-section-heading { display: flex !important; flex-direction: column !important; align-items: flex-start !important; gap: 10px !important; }
  .acdc-theme.template-home .acdc-home .acdc-section-heading > div { min-width: 0; width: 100%; }
  .acdc-theme.template-home .acdc-home .acdc-section-heading h2 { max-width: 100%; font-size: clamp(27px, 7.5vw, 36px) !important; line-height: 1.15 !important; overflow-wrap: break-word; }
  .acdc-theme.template-home .acdc-home .acdc-text-link { display: inline-flex; align-items: center; min-height: 44px; max-width: 100%; white-space: normal !important; gap: 10px; font-size: 12px !important; line-height: 1.5; }
  .acdc-theme.template-home .acdc-home .acdc-btn { max-width: 100%; min-width: 0 !important; min-height: 48px; white-space: normal !important; overflow-wrap: break-word; line-height: 1.5 !important; }
  .acdc-theme.template-home .acdc-home .acdc-category-grid { grid-template-columns: repeat(2,minmax(0,1fr)) !important; gap: 10px !important; }
  .acdc-theme.template-home .acdc-home .acdc-category-card { min-width: 0 !important; padding: 18px 12px !important; }
  .acdc-theme.template-home .acdc-home .acdc-category-label { min-width: 0; }
  .acdc-theme.template-home .acdc-home .acdc-category-label strong { font-size: 13px !important; line-height: 1.45 !important; white-space: normal; overflow-wrap: break-word; }
  .acdc-theme.template-home .acdc-home .acdc-category-label small { font-size: 10px !important; line-height: 1.5; }
  .acdc-theme.template-home .acdc-home .acdc-values-grid { grid-template-columns: minmax(0,1fr) !important; gap: 0 !important; }
  .acdc-theme.template-home .acdc-home .acdc-value { min-width: 0; min-height: 0; padding: 18px 0 !important; border-right: 0 !important; border-bottom: 1px solid #e3dfd7; }
  .acdc-theme.template-home .acdc-home .acdc-value:last-child { border-bottom: 0; }
  .acdc-theme.template-home .acdc-home .acdc-value-content { min-width: 0; }
  .acdc-theme.template-home .acdc-home .acdc-value h2 { font-size: 16px !important; line-height: 1.4 !important; }
  .acdc-theme.template-home .acdc-home .acdc-value p { font-size: 13px !important; line-height: 1.6 !important; }
  .acdc-theme.template-home .acdc-home .acdc-auto-products-shell { min-width: 0; max-width: 100%; }
  .acdc-theme.template-home .acdc-home .acdc-auto-products-track { min-width: 0; max-width: 100%; overscroll-behavior-x: contain; }
  .acdc-theme.template-home .acdc-home .acdc-promotion-spotlight-shell { display: grid !important; grid-template-columns: minmax(0,1fr) !important; min-width: 0; }
  .acdc-theme.template-home .acdc-home .acdc-promotion-spotlight-content { min-width: 0; padding: 28px 20px !important; }
  .acdc-theme.template-home .acdc-home .acdc-promotion-spotlight-content h2 { font-size: clamp(25px,7vw,34px) !important; line-height: 1.2 !important; overflow-wrap: break-word; }
  .acdc-theme.template-home .acdc-home .acdc-promotion-spotlight-button { width: 100%; min-height: 50px; white-space: normal; }
  .acdc-theme.template-home .acdc-home .acdc-promotion-spotlight-manifesto,
  .acdc-theme.template-home .acdc-home .acdc-promotion-spotlight-signature { display: none !important; }
  .acdc-theme.template-home .acdc-home .acdc-environments[data-acdc-editorial="385"] .acdc-environment-list { width: 100% !important; margin-left: 0 !important; grid-auto-columns: min(78vw,320px) !important; }
  .acdc-theme.template-home .acdc-home [data-acdc-editorial="385"] .acdc-e385-scroll-note { font-size: 10px !important; letter-spacing: .04em !important; }
  .acdc-theme.template-home .acdc-home .acdc-corporate-copy .acdc-btn { width: 100%; padding: 14px 16px !important; letter-spacing: .04em !important; }
}
@media (max-width: 767px) {
  .acdc-theme.template-home .acdc-home .item-product .item-name {
    display: -webkit-box !important; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
    white-space: normal !important; overflow: hidden; text-overflow: ellipsis;
    font-size: 13px !important; line-height: 1.5 !important; min-height: 3em;
    overflow-wrap: break-word; margin-bottom: 6px !important;
  }
  .acdc-theme.template-home .acdc-home .item-product .item-description { min-width: 0; }
  .acdc-theme.template-home .acdc-home .acdc-contact-grid { grid-template-columns: minmax(0,1fr) !important; gap: 22px !important; }
  .acdc-theme.template-home .acdc-home .acdc-contact-actions { display: flex !important; flex-direction: column; align-items: stretch !important; gap: 12px !important; }
  .acdc-theme.template-home .acdc-home .acdc-contact-actions .acdc-btn,
  .acdc-theme.template-home .acdc-home .acdc-corporate-feature .acdc-btn { width: 100% !important; padding: 14px 16px !important; letter-spacing: .04em !important; }
}
@media (max-width: 359px) {
  .acdc-mnav-tools { grid-template-columns: minmax(0,1fr); }
  .acdc-mnav-tools button { justify-content: flex-start; padding-left: 14px; min-height: 48px; }
}
@media (max-width: 767px) and (prefers-reduced-motion: reduce) {
  .acdc-theme #nav-hamburger.acdc-mobile-v387, .acdc-mnav-chevron { transition: none !important; }
}
