/* Phone presentation only. Tablets and desktop retain their native layout. */
@media (max-width: 767px) {
  body[class] .lmde-header-inner {
    display: grid !important;
    grid-template-areas: 'menu brand actions' 'search search search';
    grid-template-columns: 56px minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 8px !important;
    width: 100% !important;
    max-width: none !important;
    padding: 8px 12px 10px !important;
  }
  body[class] .lmde-brand {
    grid-area: brand;
    width: auto !important;
    min-width: 0 !important;
    margin: 0 !important;
    justify-content: center !important;
  }
  body[class] .lmde-brand-logo {
    width: 108px !important;
    max-width: 100% !important;
    height: 54px !important;
    object-fit: contain;
  }
  body[class] .lmde-brand-copy { display: none !important; }
  body[class] .lmde-search-form {
    grid-area: search;
    width: 100% !important;
    margin: 0 !important;
    min-height: 44px !important;
  }
  body[class] .lmde-search-form input {
    height: 44px !important;
    min-width: 0 !important;
    font-size: 16px !important;
    padding-left: 12px !important;
  }
  body[class] .lmde-search-form button {
    width: 48px !important;
    min-height: 44px !important;
  }
  body[class] .lmde-header-actions {
    grid-area: actions;
    display: flex !important;
    gap: 0 !important;
    margin: 0 !important;
    width: auto !important;
  }
  body[class] .lmde-header-actions > a {
    position: relative;
    width: 40px !important;
    min-width: 40px !important;
    height: 48px !important;
    min-height: 48px !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  body[class] .lmde-header-actions > a > span {
    display: block !important;
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    clip: rect(0, 0, 0, 0) !important;
    overflow: hidden !important;
    white-space: nowrap !important;
  }
  body[class] .lmde-header-actions .material-icons { font-size: 24px !important; }
  body[class] .lmde-cart-link strong {
    position: absolute !important;
    right: 0 !important;
    top: 0 !important;
    width: 16px !important;
    height: 16px !important;
    line-height: 16px !important;
    font-size: 10px !important;
    margin: 0 !important;
  }
  .lmde-phone-menu-toggle {
    grid-area: menu;
    min-height: 48px;
    padding: 0 6px;
    border: 1px solid #d8beb5;
    border-radius: 7px;
    background: #fff8f3;
    color: #7b1e22;
    font-size: 14px;
    font-weight: 700;
  }
  body.lmde-phone-ready .lmde-phone-navigation {
    position: static !important;
    margin: 0 !important;
    padding: 8px 12px !important;
    background: #fff8f3 !important;
    border-bottom: 1px solid #ead8cf;
    box-shadow: none !important;
  }
  body.lmde-phone-ready .lmde-phone-navigation[hidden],
  body.lmde-phone-ready .lmde-phone-navigation .lmde-submenu[hidden] { display: none !important; }
  body.lmde-phone-ready .lmde-phone-navigation > .lmde-container {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100% !important;
    padding: 0 !important;
    overflow: visible !important;
    gap: 0 !important;
  }
  body.lmde-phone-ready .lmde-phone-navigation a {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    min-height: 44px !important;
    width: auto !important;
    padding: 8px 12px !important;
    font-size: 15px !important;
    line-height: 1.35 !important;
    color: #65171b !important;
    white-space: normal !important;
    border: 0 !important;
    text-transform: none !important;
    background: transparent !important;
  }
  body.lmde-phone-ready .lmde-phone-navigation .has-submenu {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 44px;
    width: 100% !important;
    border-top: 1px solid #ead8cf;
  }
  body.lmde-phone-ready .lmde-phone-navigation .lmde-home-link .material-icons { color: #7b1e22 !important; margin-right: 8px; }
  body.lmde-phone-ready .lmde-phone-navigation .has-submenu > a .material-icons { display: none !important; }
  .lmde-phone-submenu-toggle {
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #65171b;
    font-size: 24px;
  }
  body.lmde-phone-ready .lmde-phone-navigation .lmde-submenu:not([hidden]) {
    grid-column: 1 / -1;
    display: block !important;
    position: static !important;
    min-width: 0 !important;
    width: 100% !important;
    padding: 0 0 8px 12px !important;
    background: #f7eee8 !important;
    box-shadow: none !important;
    border: 0 !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
  }
  .lmde-phone-menu-toggle:focus-visible,
  .lmde-phone-submenu-toggle:focus-visible,
  .lmde-phone-description summary:focus-visible,
  .lmde-phone-categories summary:focus-visible {
    outline: 2px solid #8a3d45;
    outline-offset: 2px;
  }
  body#index .lmde-home { padding: 12px 0 24px !important; }
  body#index .lmde-home > .lmde-container { width: 100% !important; padding: 0 12px !important; }
  body#index .lmde-home-intro { margin: 0 0 14px !important; padding: 0 !important; }
  body#index .lmde-home-title-box {
    width: 100% !important;
    max-width: none !important;
    padding: 10px 12px !important;
    margin: 0 !important;
  }
  body#index .lmde-home-title-box h1 {
    font-size: 17px !important;
    line-height: 1.3 !important;
    margin: 0 !important;
    text-transform: none !important;
  }
  body#index .lmde-home-title-box h1::before,
  body#index .lmde-home-title-box h1::after { display: none !important; }
  body#index .lmde-arrivals { margin-top: 8px !important; }
  body#index .lmde-arrivals .lmde-section-heading { margin: 0 0 10px !important; gap: 6px !important; }
  body#index .lmde-arrivals .lmde-section-heading h2 { font-size: 24px !important; line-height: 1.2 !important; margin: 0 !important; }
  body#index .lmde-arrivals .lmde-section-heading h2::after { margin-top: 6px !important; }
  body#index .lmde-arrivals .lmde-section-heading a { margin: 0 !important; padding: 8px !important; }
  body#index .lmde-book-request-banner { margin-top: 22px !important; }
  body#category #hero_section,
  body#search #hero_section { min-height: 0 !important; }
  body#category #hero_section .page-title-wrapper,
  body#search #hero_section .page-title-wrapper { padding: 12px !important; }
  body#category #left-column .block-categories,
  body#search #left-column .block-categories { display: none !important; }
  body#category #wrapper { padding-top: 14px !important; }
  .lmde-phone-description { margin: 0 0 10px; }
  .lmde-phone-description-preview {
    margin: 0;
    color: #6f625b;
    font-size: 14px;
    line-height: 1.45;
    font-weight: 400;
    text-align: left;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .lmde-phone-description.is-open .lmde-phone-description-preview { display: none; }
  .lmde-phone-description #category-description,
  .lmde-phone-description #category-description p {
    text-align: left !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
    font-weight: 400 !important;
    margin: 0 0 10px !important;
  }
  .lmde-phone-description summary,
  .lmde-phone-categories > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 44px;
    padding: 8px 10px;
    color: #7b1e22;
    font-size: 14px;
    line-height: 1.35;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
  }
  .lmde-phone-description summary::-webkit-details-marker,
  .lmde-phone-categories > summary::-webkit-details-marker { display: none; }
  .lmde-phone-description summary::after,
  .lmde-phone-categories > summary::after { content: '+'; font-size: 20px; margin-left: 8px; }
  .lmde-phone-description details[open] > summary::after,
  .lmde-phone-categories[open] > summary::after { content: '\2212'; }
  .lmde-phone-categories {
    margin: 0 0 16px;
    border: 1px solid #ead8cf;
    border-radius: 8px;
    background: #fffaf6;
  }
  .lmde-phone-categories #subcategories { padding: 8px !important; margin: 0 !important; }
  .lmde-phone-categories .lmde-category-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 8px !important; }
  .lmde-phone-categories .lmde-category-card { padding: 10px 8px !important; min-height: 64px !important; }
  .lmde-phone-categories .lmde-category-card > .material-icons,
  .lmde-phone-categories .lmde-category-card > span { display: none !important; }
  .lmde-phone-categories .lmde-category-card > strong { font-size: 14px !important; line-height: 1.35 !important; }
  body#product #wrapper { padding-top: 12px !important; }
  body#product .breadcrumb { margin-bottom: 12px !important; padding: 10px 12px !important; }
  body#product .product-cover,
  body#product .product-cover .swiper-wrapper,
  body#product .product-cover .swiper-slide { height: 220px !important; min-height: 0 !important; }
  body#product .product-cover .swiper-slide { display: flex !important; width: 100% !important; align-items: center; justify-content: center; }
  body#product .product-cover picture { height: 100%; display: flex; align-items: center; justify-content: center; }
  body#product .product-cover img { max-height: 220px !important; height: auto !important; width: auto !important; max-width: 100% !important; object-fit: contain; }
  body#product .images-container { margin-bottom: 12px !important; }
  body#product h1 { font-size: 20px !important; line-height: 1.25 !important; margin-bottom: 6px !important; }
  body#product .product-prices { margin: 10px 0 !important; }
  body#product .product-description-short { margin-bottom: 10px !important; }
  body#product .product-quantity {
    display: grid !important;
    grid-template-columns: 66px minmax(0, 1fr);
    gap: 8px 10px;
    align-items: center;
  }
  body#product .product-quantity .qty,
  body#product .product-quantity .add { width: 100% !important; margin: 0 !important; }
  body#product .product-quantity .add-to-cart { width: 100% !important; min-height: 44px !important; font-size: 14px !important; }
  body#product .product-quantity .js-buy-now { grid-column: 1 / -1; margin: 0 !important; }
  body#product .product-quantity .bootstrap-touchspin { width: 66px !important; }
  body#product .product-quantity #quantity_wanted { min-height: 44px !important; }
  body#product .back-to-top,
  body#product .back-top-button,
  body#product .back-to-top-link { display: none !important; }
}

/* LMDE - keep long cart and selected-relay actions readable on phones - 20261019. */
@media (max-width: 767px) {
  #blockcart-modal .cart-content .cart-content-btn {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    width: 100%;
  }

  #blockcart-modal .cart-content .cart-content-btn > .btn,
  body#checkout #mondialrelay_summary #mondialrelay_change-relay {
    box-sizing: border-box;
    min-width: 0;
    width: 100%;
    height: auto;
    min-height: 44px;
    max-height: none;
    padding: 12px 16px;
    line-height: 1.35;
    white-space: normal;
    overflow: visible;
  }

  #blockcart-modal .cart-content .cart-content-btn > .btn {
    margin: 0;
  }
}

/* Category disclosures are rendered by Smarty, before scripts execute. */
.lmde-category-native-disclosure > summary .lmde-disclosure-open { display: none; }
.lmde-category-native-disclosure[open] > summary .lmde-disclosure-closed { display: none; }
.lmde-category-native-disclosure[open] > summary .lmde-disclosure-open { display: inline; }
@media (max-width: 767px) {
  .lmde-category-native-description:has(> details[open]) > .lmde-phone-description-preview { display: none; }
}
@media (min-width: 768px) {
  .lmde-category-native-description > .lmde-phone-description-preview { display: none; }
  .lmde-category-native-disclosure[open] > summary { display: none; }
  /* Modern browsers expose the full desktop presentation at first paint.
     Older no-JS browsers retain a working native summary instead of hiding it. */
  @supports selector(details::details-content) {
    .lmde-category-native-disclosure::details-content {
      content-visibility: visible !important;
      display: contents;
    }
    .lmde-category-native-disclosure > summary { display: none; }
  }
}
