/* Dedicated mobile layout for the REVE DE MODE storefront. */
@media (min-width: 761px) { .main-nav a:not(.favorites-nav):not(.cart-nav) > svg { display: none; } }
@media (max-width: 760px) {
  html { scroll-padding-top: 74px; }
  body { padding-bottom: 0; font-size: 16px; }

  .site-header {
    z-index: 32;
    height: 64px;
    padding: 0 14px;
    gap: 7px;
    justify-content: space-between;
  }
  .site-header .brand { min-width: 0; gap: 6px; }
  .site-header .brand-mark { width: 42px; height: 22px; }
  .site-header .brand-name { font-size: 11px; letter-spacing: .045em; white-space: nowrap; }
  .site-header .header-contact {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    margin: 0;
    padding: 0;
    border-radius: 50%;
  }
  .site-header .header-contact:before { font-size: 15px; }
  .site-header .language-switch { height: 40px; }
  .site-header .language-switch select { width: 44px; height: 40px; padding: 0 4px; font-size: 10px; }
  .site-header .header-search-toggle { width: 40px; height: 40px; flex-basis: 40px; }
  .site-header .header-search-toggle svg { width: 19px; height: 19px; }
  .site-header .menu-toggle { display: none; }

  .site-header .main-nav {
    position: static;
    inset: auto;
    z-index: 30;
    width: 100%;
    max-height: none;
    margin: 6px 0 0;
    padding: 5px;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: stretch;
    gap: 3px;
    overflow: visible;
    border: 1px solid #ffffff20;
    border-radius: 16px;
    background: rgba(16, 17, 23, .94);
    box-shadow: none;
    backdrop-filter: none;
    white-space: normal;
    transition: border-color .2s, box-shadow .2s;
  }
  .site-header .main-nav.menu-open { max-height: none; padding: 5px; border-color: #ffffff20; }
  .site-header .main-nav a {
    position: relative;
    min-width: 0;
    min-height: 58px;
    padding: 7px 2px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    overflow: hidden;
    border: 0;
    border-radius: 11px;
    color: #aaaab7;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.15;
    text-align: center;
    white-space: nowrap;
    transition: color .18s, background .18s, transform .18s;
  }
  .site-header .main-nav a:last-child { border: 0; }
  .site-header .main-nav a svg { width: 19px; height: 19px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
  .site-header .main-nav a.is-active { background: #25263b; color: #f1f0ff; }
  .site-header .main-nav a.is-active:after { right: auto; bottom: 3px; left: 50%; width: 18px; height: 2px; border-radius: 2px; background: #aaa9ff; box-shadow: 0 0 10px #8585ff99; transform: translateX(-50%); }
  .site-header .main-nav a:active { transform: scale(.96); }
  .site-header .main-nav a b {
    position: absolute;
    top: 1px;
    right: calc(50% - 25px);
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border: 1px solid #8585ed77;
    border-radius: 12px;
    background: #292a42;
    color: #e4e3ff;
    font-size: 10px;
    line-height: 14px;
  }
  .site-header .main-nav .favorites-nav svg,
  .site-header .main-nav .cart-nav svg { width: 19px; height: 19px; }
  .header-search-panel { top: 72px; right: 12px; width: calc(100% - 24px); }
  .header-search-form { min-height: 48px; }
  .header-search-form input { min-height: 44px; font-size: 16px; }
  .header-search-submit { min-height: 40px; font-size: 13px; }
  .search-suggestion-chips button { min-height: 40px; font-size: 12px; }
  .search-suggestion-product { min-height: 54px; }
  .search-suggestion-product strong { font-size: 14px; }
  .search-suggestion-product small { font-size: 12px; }

  .page-tab-status {
    min-height: 48px;
    margin: 7px 14px 13px;
    padding: 8px 11px;
    gap: 8px;
  }
  .page-tab-status > span { font-size: 9px; letter-spacing: .07em; white-space: nowrap; }
  .page-tab-status > strong { font-size: 12px; letter-spacing: .05em; white-space: nowrap; }
  .page-tab-status > strong:before { width: 6px; height: 6px; margin-right: 6px; }
  .page-tab-status > i { font-size: 9px; white-space: nowrap; }

  .hero { padding: 30px 18px 20px; min-height: 0; grid-template-columns: 1fr; gap: 0; }
  .hero-visual { grid-row: 1; width: min(78vw, 300px); height: 150px; margin: 0 auto 2px; }
  .hero-visual .hero-logo-wrap { width: 88%; height: auto; aspect-ratio: 2.35; }
  .hero-copy { grid-row: 2; max-width: none; }
  .hero-copy > .eyebrow { margin-bottom: 13px; font-size: 10px; }
  .hero h1 { font-size: clamp(37px, 10vw, 46px); line-height: 1.08; }
  .hero-description { margin: 12px 0 17px; font-size: 14px; }
  .hero .button { min-height: 48px; gap: 22px; font-size: 14px; }
  .hero-index { margin-top: 20px; }
  .coordinate-top { top: 2px; right: 4px; }
  .coordinate-bottom { bottom: 3px; left: 4px; }
  .hero-side-label { display: none; }

  .banner-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    margin: 0 auto 46px;
    padding: 0 16px;
  }
  .banner, .banner-secondary { height: 132px; min-height: 132px; padding: 14px 13px; }
  .banner-kicker { max-width: 95%; font-size: 10px; line-height: 1.4; }
  .banner-title { font-size: 16px; }
  .banner-arrow { right: 12px; bottom: 12px; font-size: 16px; }

  .catalog-section, .contact-section { padding-right: 16px; padding-left: 16px; }
  .catalog-section { padding-bottom: 52px; }
  .section-heading { align-items: flex-end; gap: 12px; margin-bottom: 17px; }
  .section-heading h2 { font-size: 29px; }
  .section-heading .eyebrow { margin-bottom: 8px; font-size: 9px; }
  .section-note { max-width: 45%; font-size: 11px; line-height: 1.4; text-align: right; }
  .catalog-controls { min-height: 0; padding-bottom: 12px; margin-bottom: 16px; display: grid; gap: 9px; }
  .category-list {
    min-width: 0;
    margin: 0 -4px;
    padding: 0 4px 3px;
    gap: 6px;
    scroll-padding-inline: 4px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    -webkit-mask-image: linear-gradient(to right, #000 0%, #000 91%, transparent 100%);
    mask-image: linear-gradient(to right, #000 0%, #000 91%, transparent 100%);
  }
  .category-chip { min-height: 44px; padding: 0 12px; border-radius: 22px; font-size: 12px; scroll-snap-align: start; }
  .sort-control { min-height: 44px; justify-content: space-between; gap: 10px; font-size: 13px; }
  .sort-control select { max-width: none; min-height: 44px; padding: 0 24px 0 8px; border: 1px solid #ffffff20; border-radius: 4px; background-color: #111218; font-size: 14px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 25px 10px; }
  .product-image-wrap { aspect-ratio: .78; border-radius: 5px; }
  .product-tag { top: 8px; left: 8px; padding: 6px 7px; font-size: 10px; }
  .product-actions { top: 7px; right: 7px; gap: 6px; }
  .product-actions .like-button, .product-actions .cart-circle { width: 40px; height: 40px; }
  .product-actions .like-button svg, .product-actions .cart-circle svg { width: 18px; height: 18px; }
  .like-button { width: 40px; height: 40px; }
  .like-button svg { width: 18px; height: 18px; }
  .product-meta { margin: 10px 0 7px; gap: 5px; font-size: 12px; letter-spacing: .08em; }
  .product-info { align-items: flex-start; gap: 8px; }
  .product-info h3 { margin-bottom: 5px; font-size: 14px; line-height: 1.35; }
  .product-price { font-size: 14px; }
  .product-open { width: 36px; height: 36px; flex: 0 0 36px; font-size: 16px; }
  .add-to-cart-button { min-height: 46px; margin-top: 10px; padding: 0 9px; gap: 7px; font-size: 12px; }
  .add-to-cart-button svg { width: 17px; height: 17px; }
  .add-to-cart-button b { font-size: 9px; }
  .empty-state { min-height: 240px; padding: 30px 18px; }

  .cart-view { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .cart-summary { position: static; order: initial; padding: 18px; }
  .cart-summary h3 { margin-bottom: 14px; font-size: 18px; }
  .cart-total-line { font-size: 12px; }
  .cart-order { min-height: 48px; height: auto; font-size: 12px; }
  .cart-summary > p { font-size: 11px; }
  .cart-row { grid-template-columns: 58px minmax(0, 1fr) auto; gap: 8px; padding: 9px; }
  .cart-thumb { width: 58px; height: 74px; }
  .cart-product h3 { margin-bottom: 6px; font-size: 13px; line-height: 1.35; }
  .cart-product > p, .cart-edit { font-size: 12px; line-height: 1.4; }
  .cart-line-actions { min-width: 74px; gap: 6px; }
  .cart-line-actions > strong { font-size: 11px; }
  .quantity-controls { gap: 4px; font-size: 12px; }
  .quantity-controls button { width: 40px; min-width: 40px; height: 40px; }
  .cart-remove { min-width: 44px; min-height: 40px; font-size: 12px; }
  .checkout-form, .order-confirmation { padding: 18px; }
  .checkout-fields { grid-template-columns: minmax(0, 1fr); gap: 15px; }
  .checkout-fields label { gap: 8px; font-size: 14px; }
  .checkout-fields input, .checkout-fields textarea { min-height: 48px; padding: 12px; font-size: 16px; }
  .checkout-fields textarea { min-height: 96px; }
  .checkout-comment { grid-column: auto; }
  .checkout-note { font-size: 12px; }
  .place-order { width: 100%; min-height: 50px; height: auto; font-size: 14px; }
  .checkout-heading h3, .order-confirmation h3 { font-size: 20px; }
  .order-review-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .order-confirmation-actions > * { min-height: 44px; flex: 1 1 100%; }

  .contact-section { padding-bottom: 38px; }
  .contact-panel { padding: 22px 18px; gap: 17px; }
  .contact-copy h2 { font-size: 26px; }
  .contact-links { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .contact-links > a { min-height: 58px; padding: 9px 24px 9px 0; }
  .contact-type { margin-bottom: 5px; font-size: 12px; }
  .contact-value { font-size: 14px; }
  .site-footer { padding: 18px 16px 24px; gap: 12px; font-size: 12px; }
  .footer-brand { font-size: 12px; }
  .footer-links { gap: 12px 15px; font-size: 12px; }
  .back-top { min-height: 40px; display: inline-flex; align-items: center; }
}

@media (max-width: 420px) {
  .site-header { padding-right: 11px; padding-left: 11px; gap: 5px; }
  .site-header .brand { gap: 5px; }
  .site-header .brand-mark { width: 38px; height: 20px; }
  .site-header .brand-name { font-size: 10px; letter-spacing: .025em; }
  .site-header .header-contact, .site-header .header-search-toggle { width: 38px; height: 38px; flex-basis: 38px; }
  .site-header .language-switch select { width: 40px; height: 38px; }
  .page-tab-status { margin-right: 11px; margin-left: 11px; padding-right: 8px; padding-left: 8px; gap: 6px; }
  .page-tab-status > span { font-size: 9px; letter-spacing: .04em; }
  .page-tab-status > strong { font-size: 12px; }
  .page-tab-status > i { font-size: 9px; }
  .banner-row { padding-right: 12px; padding-left: 12px; gap: 7px; }
  .banner, .banner-secondary { min-height: 124px; height: 124px; padding: 12px 10px; }
  .banner-title { font-size: 15px; }
  .catalog-section, .contact-section { padding-right: 12px; padding-left: 12px; }
  .product-grid { column-gap: 8px; }
  .product-info h3 { font-size: 13px; }
  .product-open { width: 32px; height: 32px; flex-basis: 32px; }
  .add-to-cart-button { padding: 0 6px; gap: 5px; font-size: 11px; }
  .add-to-cart-button b { font-size: 9px; }
  .cart-row { grid-template-columns: 52px minmax(0, 1fr) auto; gap: 6px; padding: 7px; }
  .cart-thumb { width: 52px; height: 68px; }
  .cart-line-actions { min-width: 70px; }
  .quantity-controls { gap: 3px; }
  .quantity-controls button { width: 36px; min-width: 36px; height: 40px; }
  .cart-product h3 { font-size: 11px; }
}

@media (max-width: 350px) {
  .site-header .brand-name { font-size: 9px; }
  .site-header .header-contact, .site-header .header-search-toggle { width: 36px; height: 36px; flex-basis: 36px; }
  .site-header .language-switch select { width: 38px; height: 36px; }
  .site-header .main-nav a { font-size: 11px; }
  .page-tab-status > i { display: none; }
  .section-note { max-width: 40%; font-size: 10px; }
  .product-actions .like-button, .product-actions .cart-circle { width: 36px; height: 36px; }
}

@media (max-width: 760px) {
  .detail-main { padding: 21px 16px 64px; }
  .detail-back { min-height: 44px; margin-bottom: 13px; font-size: 13px; }
  .detail-layout { grid-template-columns: minmax(0, 1fr); gap: 21px; }
  .detail-image-frame { position: relative; top: auto; width: 100%; min-height: 0; max-height: 60vh; max-height: 60svh; aspect-ratio: .88; border-radius: 6px; }
  .detail-image-frame > img { object-fit: cover; }
  .detail-information { padding-top: 0; }
  .detail-information > .eyebrow { margin-bottom: 10px; font-size: 11px; }
  .detail-information h1 { font-size: clamp(25px, 7vw, 31px); }
  .detail-price { margin: 10px 0 13px; font-size: 20px; }
  .detail-description { padding: 14px 0 16px; font-size: 14px; line-height: 1.65; }
  .variant-block { padding: 15px 0 16px; }
  .variant-heading { margin-bottom: 10px; font-size: 14px; }
  .variant-hint { font-size: 12px; }
  .size-options, .color-options { gap: 9px; }
  .size-option { min-width: 46px; min-height: 44px; height: auto; font-size: 14px; }
  .color-option { min-height: 44px; font-size: 14px; }
  .color-option i { width: 22px; height: 22px; }
  .detail-contact { position: static; min-height: 52px; height: auto; margin: 7px 0 14px; padding: 0 14px; border-radius: 5px; font-size: 14px; box-shadow: none; }
  .detail-cart-status { min-height: 20px; margin: 0 0 13px; font-size: 13px; }
  .detail-specs { padding-top: 18px; }
  .detail-specs h2 { font-size: 17px; }
  .spec-row { min-height: 42px; gap: 14px; font-size: 13px; }
  .detail-footnote { font-size: 12px; line-height: 1.6; }
  .product-page .site-footer { padding-bottom: 24px; }
}

@media (hover: none) and (max-width: 760px) {
  .product-card:hover .product-image { transform: none; filter: none; }
  .product-card:active { transform: scale(.99); }
}

@media (prefers-reduced-motion: reduce) {
  .site-header .main-nav a { transition: none; }
}


@media (max-width: 760px) {
  .empty-state p { font-size: 14px; line-height: 1.6; }
  .empty-state .text-link { min-height: 44px; font-size: 14px; }
  .contact-copy > p:last-child { font-size: 14px; line-height: 1.6; }
  .reviews-empty-panel .eyebrow { font-size: 10px; }
  .reviews-empty-panel > p:not(.eyebrow) { font-size: 14px; }
  .review-prompts article > span { font-size: 10px; }
  .review-prompts h3 { font-size: 15px; }
  .review-prompts p { font-size: 14px; }
  .checkout-heading > p:last-child { font-size: 14px; line-height: 1.6; }
  .checkout-error { font-size: 13px; }
  .order-confirmation-date { font-size: 12px; }
  .order-review-fields span, .order-review-items h4 { font-size: 12px; }
  .order-review-fields b { font-size: 13px; }
  .order-review-items li { font-size: 12px; }
  .order-review-items li small { font-size: 12px; }
  .order-review-items li b { font-size: 12px; }
  .order-review-total { font-size: 13px; }
  .order-send-note { font-size: 13px; }
  .copy-order-button, .send-order-button { min-height: 48px; font-size: 13px; }
  .variant-dialog-inner { padding: 22px 18px; }
  .variant-dialog-inner h2 { font-size: 22px; }
  .variant-product-price { margin-bottom: 20px; font-size: 17px; }
  .variant-dialog-inner legend { margin-bottom: 11px; font-size: 14px; }
  .variant-option { min-height: 46px; font-size: 14px; }
  .variant-hint { font-size: 13px; }
  .variant-add-button { min-height: 50px; font-size: 14px; }
  .variant-dialog-close { width: 44px; height: 44px; }
}

@media (max-width: 760px) {
  .page-tab-status { position: relative; top: auto; }
  .reveal,
  .reveal.is-visible {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    animation: none !important;
    transition: none !important;
  }
  .product-card,
  .product-card:active,
  .product-image {
    transform: none !important;
    filter: none !important;
    animation: none !important;
    transition: none !important;
  }
  .hero-logo-wrap,
  .page-tab-status > strong:before { animation: none !important; }
}

/* Keep the mobile page in normal document flow: no floating dock or sticky buy bar. */
@media (max-width: 760px) {
  html { scroll-behavior: auto !important; }
  body { padding-bottom: 0 !important; }
  .site-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 40px 44px 40px 32px;
    grid-template-areas: "brand contact language search theme" "nav nav nav nav nav";
    gap: 0 6px;
    height: auto !important;
    min-height: 64px;
    padding: 5px 14px 8px;
    align-items: center;
  }
  .site-header .brand { grid-area: brand; }
  .site-header .header-contact { grid-area: contact; }
  .site-header .language-switch { grid-area: language; }
  .site-header .header-search-toggle { grid-area: search; }
  .site-header .theme-toggle { grid-area: theme; }
  .site-header .main-nav {
    position: static !important;
    inset: auto !important;
    grid-area: nav;
    width: 100%;
    max-height: none;
    margin: 6px 0 0;
    padding: 5px;
    overflow: visible;
    border-radius: 11px;
    background: #101117;
    box-shadow: none;
    backdrop-filter: none;
    transition: none;
  }
  .site-header .main-nav.menu-open { max-height: none; padding: 5px; }
  .site-header .main-nav a { transition: color .15s, background .15s; }
  .site-header .main-nav a:active { transform: none; }
  .header-search-panel { top: 140px; }
  .detail-contact { position: static !important; bottom: auto; z-index: auto; box-shadow: none !important; }
  .detail-gallery { position: relative !important; top: auto !important; }
  .detail-main { padding-bottom: 64px; }
  .product-page .site-footer, .site-footer { padding-bottom: 24px !important; }
  .cart-summary { position: static !important; }
  .cart-view, .checkout-form, .order-confirmation, .empty-state,
  .content-enter, .product-page .detail-main { animation: none !important; }
  .order-status-dot { animation: none !important; }
}

@media (max-width: 420px) {
  .site-header { grid-template-columns: minmax(0, 1fr) 38px 40px 38px 32px; gap: 0 5px; }
}

@media (max-width: 350px) {
  .site-header { grid-template-columns: minmax(0, 1fr) 36px 38px 36px 28px; gap: 0 4px; }
}

@media (hover: none) and (max-width: 760px) {
  .banner:hover, .button:hover, .product-card:hover, .product-image:hover,
  .product-open:hover, .like-button:hover, .cart-circle:hover,
  .detail-thumbnail:hover, .header-search-toggle:hover, .theme-toggle:hover {
    transform: none !important;
    filter: none !important;
    box-shadow: none !important;
  }
}
