/* The desktop stylesheet keeps ownership above the mobile breakpoint. */
@media (max-width:768px) {
  :root { --mobile-dock: calc(60px + env(safe-area-inset-bottom, 0px)); }
  html, body { overflow-x: clip; }
  body { padding-bottom: 0; }
  body:has(.mobile-contact-bar) { padding-bottom: var(--mobile-dock); }
  body:is(.has-modal,.has-menu) .mobile-contact-bar,
  body:has(dialog[open]) .mobile-contact-bar,
  body:has(.cookie-banner) .mobile-contact-bar,
  #app:has(.mobile-contact-bar) > .whatsapp-float { display:none; }
  .shell { max-width:100%; padding-inline:clamp(12px,3.8vw,22px); }
  .shop-main,.company-page,.client-area,.checkout-page,.legal-page,.gp-support-page { min-width:0; overflow-wrap:anywhere; }
  input:not([type=checkbox],[type=radio],[type=color]), select, textarea { font-size:16px !important; min-width:0; max-width:100%; }
  .primary,.secondary,.document-button,.preview-button,.quantity-stepper button,
  .gp-menu-categories :is(button,summary),.gp-menu-footer :is(a,button),.header-actions button { min-height:44px; }
  .quantity-stepper button,.gp-menu-close,.header-actions button { min-width:44px; }
  .shop-main :is(.section-head p,.detail-description > p,.editorial-content p),.company-page p,.legal-page p,.gp-support-page p { font-size:16px; }
  .microbar { padding:5px 12px; min-height:26px; font-size:11px; }
  .benefit-topbar { display:none; }
  .site-header { position:sticky; top:0; z-index:65; background:#fff; box-shadow:0 2px 8px #18375012; }
  .site-header .topbar { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:5px 8px; padding-block:5px; height:auto!important; }
  .site-header .topbar .brand { display:flex; align-items:center; min-height:44px; width:clamp(88px,33vw,180px); }
  .site-header .brand img { max-width:100%; height:auto; }
  .site-header .header-actions { display:flex; align-items:center; gap:1px; min-width:0; }
  .site-header .header-actions .account-entry span,.site-header .header-phone,.site-header .category-nav,
  .site-header .header-actions :is(.yc-launch,.language-toggle) { display:none!important; }
  .site-header .header-actions :is(.iconbtn,.menu-toggle) { display:inline-grid; place-content:center; width:44px; height:44px; padding:0; margin:0; }
  .site-header .header-search { grid-column:1/-1; grid-row:2; width:100%; max-width:none; margin:0; display:block; }
  .site-header .header-search > div { display:grid; grid-template-columns:minmax(0,1fr) 44px; gap:0; padding:0 2px 0 8px; }
  .site-header .header-search input { width:100%; min-height:44px; padding:4px 2px; }
  .site-header .header-search button { width:44px; min-height:44px; padding:0; display:grid; place-items:center; }
  .site-header .account-dropdown { right:0; max-width:calc(100vw - 28px); }
  .site-header .menu-toggle > span { width:20px; }
  .gp-mobile-menu { width:min(400px,100%); max-width:100%; padding-bottom:env(safe-area-inset-bottom,0px); }
  .gp-menu-categories :is(summary,button) { font-size:15px; }
  .mobile-home-categories { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; margin:14px 0 20px; }
  .mobile-home-categories a { display:flex; flex-direction:column; gap:5px; align-items:center; justify-content:flex-start; min-width:0; text-align:center; text-decoration:none; padding:6px; border:1px solid var(--line); border-radius:12px; color:var(--ink); font-size:12px; font-weight:600; }
  .mobile-home-categories img { width:100%; max-height:100px; height:auto; aspect-ratio:1; object-fit:contain; border-radius:8px; }
  .products.catalog-results,.related-products .products,.listing .products { grid-template-columns:repeat(2,minmax(0,1fr))!important; gap:9px; }
  .home-shelf .product-carousel { grid-auto-columns: minmax(0,calc((100% - 9px)/2))!important; gap:9px; }
  .product-card { min-width:0; }
  .product-card .product-art { width:100%; height:auto!important; min-height:0; aspect-ratio:1/1.12; }
  .product-card .product-art img { width:100%; height:100%; object-fit:contain; }
  .product-card :is(h2,h3) { font-size:14px; line-height:1.32; min-height:2.64em; }
  .product-card :is(h2,h3) a { display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; overflow:hidden; }
  .product-card .price { font-size:16px; }
  .product-card .price small,.product-card .mobile-minimum { font-size:11px; line-height:1.25; }
  .product-card .tag { inset:6px auto auto 6px; max-width:calc(100% - 12px); padding:3px 6px; font-size:10px; white-space:normal; }
  .quick-preview > div:nth-of-type(2) > p { display:none; }
  .catalog-layout { grid-template-columns:minmax(0,1fr)!important; gap:12px; }
  .catalog-sidebar { position:static; padding:0; background:#fff; }
  .mobile-disclosure { min-width:0; border:1px solid var(--line); border-radius:10px; margin:8px 0; }
  .mobile-disclosure > summary { cursor:pointer; padding:11px 12px; min-height:44px; font-weight:600; }
  .mobile-disclosure[open] > summary { border-bottom:1px solid var(--line); }
  .catalog-sidebar > .mobile-disclosure { margin:0; border:0; }
  .catalog-sidebar .catalog-filters { padding:10px; grid-template-columns:repeat(2,minmax(0,1fr)); }
  .mobile-sort { display:grid; gap:4px; padding:10px; font-size:14px; }
  .mobile-sort select { min-height:44px; padding:6px 8px; border:1px solid var(--line); border-radius:8px; background:#fff; color:inherit; }
  .detail-layout { display:flex; flex-direction:column; gap:12px; }
  .detail-photos,.detail-description { width:100%; min-width:0; }
  .detail-primary-photo { position:relative; height:auto!important; min-height:0; aspect-ratio:4/3; }
  .detail-primary-photo img { width:100%; height:100%; object-fit:contain; touch-action:pan-y pinch-zoom; }
  .detail-primary-photo .model-photo-note { position:absolute; inset:auto 0 0; margin:0; background:#ffffffec; font-size:11px; }
  .detail-photos .supplier-gallery { display:flex; gap:8px; overflow-x:auto; scroll-snap-type:x proximity; }
  .supplier-gallery > * { scroll-snap-align:start; flex:0 0 66px; min-width:0; }
  .detail-description h1 { margin:4px 0 7px; font-size:clamp(23px,6.6vw,34px); }
  .detail-description .detail-price { font-size:22px; }
  .detail-description .mobile-disclosure p { margin:0; padding:12px; font-size:16px; }
  .mobile-disclosure .detail-technical,.mobile-disclosure .print-option-summary { margin:0; padding:10px; }
  .technical-table-scroll,.matrix-wrap,.table-scroll { max-width:100%; overflow-x:auto; }
  .mobile-zoom { position:absolute; top:6px; right:6px; min-height:44px; font-size:12px; padding:5px 9px; }
  .detail-photos > .product-art { position:relative; }
  .mobile-photo-dialog { width:min(96vw,680px); max-height:88dvh; padding:12px; border:0; border-radius:14px; }
  .mobile-photo-dialog::backdrop { background:#0b223ace; }
  .mobile-photo-dialog > img { display:block; max-width:100%; max-height:72dvh; margin:auto; object-fit:contain; }
  .mobile-photo-dialog > button { display:block; margin:0 0 6px auto; min-height:44px; }
  #mobile-product-action { scroll-margin-top:114px; }
  .inline-size-row,.inline-size-head { grid-template-columns:minmax(0,1fr) minmax(50px,.65fr) minmax(134px,1.5fr); gap:4px; }
  .quantity-stepper { min-width:0; grid-template-columns:44px minmax(36px,1fr) 44px; }
  .quantity-stepper input { width:100%; min-height:44px; padding:2px; }
  .inline-color { min-height:44px; }
  .inline-purchase-actions,.detail-description .quote-start { width:100%; }
  .yc-header,.yc-controls,.yc-config,.yc-main-preview,.yc-workspace,.config-grid,.config-main,.config-aside { min-width:0; max-width:100%; }
  .yc-controls :is(button,select,input[type=file]),.yc-actions button,.yc-steps button,.yc-exit,.config-actions button { min-height:44px; }
  .yc-controls input[type=file] { width:100%; }
  .yc-config,.modern-config,.auth-modal { max-height:100dvh!important; }
  .yc-actions,.config-actions { padding-bottom:max(10px,env(safe-area-inset-bottom,0px)); }
  .checkout-grid,.gp-support-layout,.gp-support-fields { grid-template-columns:minmax(0,1fr); }
  .account-tabs { gap:5px; }
  .account-tabs button { flex:1 1 124px; }
  .shop-footer .footer-columns { display:grid; grid-template-columns:minmax(0,1fr); gap:3px; }
  .shop-footer .footer-columns .footer-brand { padding-bottom:8px; }
  .shop-footer .footer-logo { width:min(170px,55vw); }
  .shop-footer .mobile-disclosure { margin:3px 0; border-color:#ffffff30; }
  .shop-footer .mobile-disclosure > :not(summary) { margin-inline:12px; }
  .shop-footer .mobile-disclosure :is(a,button) { min-height:44px; display:flex; align-items:center; }
  .shop-footer .footer-company { font-size:12px; }
  .mobile-contact-bar { position:fixed; z-index:75; inset:auto 0 0; display:grid; grid-template-columns:1fr 1.3fr; gap:8px; padding:7px max(12px,env(safe-area-inset-right,0px)) calc(7px + env(safe-area-inset-bottom,0px)) max(12px,env(safe-area-inset-left,0px)); background:#fff; border-top:1px solid var(--line); }
  .mobile-contact-bar :is(a,button) { display:flex; align-items:center; justify-content:center; min-height:44px; gap:5px; padding:4px; border-radius:9px; background:#226397; color:#fff; font-size:13px; font-weight:600; text-align:center; text-decoration:none; border:0; }
  .mobile-contact-bar .mobile-whatsapp { background:#e9f8ef; color:#135434; overflow:hidden; }
  .mobile-whatsapp img { width:22px; height:22px; }
  #app:has(.mobile-contact-bar) .cookie-symbol { bottom:calc(var(--mobile-dock) + 7px); }
  .cookie-banner button { min-height:44px; }
  .cookie-banner :is(input[type=checkbox],input[type=radio]) { min-height:auto; }
  @media (max-width:359px) {
    .catalog-sidebar .catalog-filters { grid-template-columns:minmax(0,1fr); }
    .mobile-home-categories { gap:5px; }
    .mobile-home-categories a { padding:3px; font-size:10px; }
    .inline-size-row,.inline-size-head { grid-template-columns:minmax(0,1fr) 48px minmax(126px,1.55fr); }
  }
}
@media (max-width:768px) {
  .gp-menu-footer .mobile-menu-configurator { display:block; }
  body .yc-workspace { grid-template-columns:minmax(0,1fr); }
  .yc-header button,.yc-picker header button { min-width:44px; min-height:44px; }
}

@media (max-width:768px) {
  .mobile-product-pilot .product-breadcrumb { gap:4px; margin-bottom:8px; }
  .mobile-product-pilot .detail-layout { gap:9px; }
  .mobile-product-pilot .detail-primary-photo {
    display:block;
    box-sizing:border-box;
    aspect-ratio:1;
    height:auto!important;
    padding:48px 8px 0;
  }
  .mobile-product-pilot .detail-primary-photo > img {
    display:block;
    width:100%;
    height:100%;
    min-height:0;
    max-height:none;
    aspect-ratio:auto;
    object-fit:contain;
    object-position:center;
    image-orientation:from-image;
  }
  .mobile-product-pilot .detail-primary-photo:has(.model-photo-note) { padding-bottom:40px; }
  .mobile-product-pilot .detail-primary-photo .model-photo-note { padding:3px 8px; }
  .mobile-product-pilot .gallery-photo img { flex:none; aspect-ratio:auto; image-orientation:from-image; }
  .mobile-product-pilot .detail-photos .supplier-gallery { margin:6px 0 0; }
  .mobile-product-pilot .gallery-photo { flex:0 0 56px; height:66px; padding:2px; overflow:hidden; }
  .mobile-product-pilot .gallery-photo img { width:100%; height:43px; object-fit:contain; }
  .mobile-product-pilot .gallery-photo[aria-pressed=true] { border:2px solid #2f70b4; }
  .pilot-photo-count { position:absolute; left:8px; top:8px; padding:5px 8px; background:#fff; border-radius:8px; color:#173451; font-size:12px; }
  .mobile-product-pilot .detail-description .eyebrow { font-size:12px; }
  .mobile-product-pilot .detail-price { margin-block:8px; }
  .mobile-product-pilot .pilot-product-summary { margin:7px 0; font-size:16px; }
  .mobile-product-pilot .inline-colors { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:5px; }
  .mobile-product-pilot .inline-color { grid-template-columns:1fr; min-width:0; justify-items:center; text-align:center; padding:5px 2px; min-height:56px; gap:3px; }
  .mobile-product-pilot .inline-color[hidden],.pilot-selection[hidden] { display:none!important; }
  .mobile-product-pilot .inline-color span { font-size:10px; white-space:normal; overflow-wrap:anywhere; }
  .mobile-product-pilot .inline-color.selected { outline:2px solid #2f70b4; outline-offset:-2px; background:#e9f4ff; }
  .pilot-color-toggle { margin-block:8px; width:100%; }
  .pilot-size-group { margin:9px 0 4px; padding:7px 8px; border-radius:7px; background:#eaf3fa; font-size:14px; }
  .pilot-section > :not(summary) { margin:8px; }
  .pilot-section .technical-table-scroll { max-width:calc(100% - 16px); overflow:auto; }
  .pilot-tech-copy { white-space:pre-line; }
  .pilot-selection ul { padding-inline-start:24px; }
  .pilot-config .yc-workspace { padding-bottom:env(safe-area-inset-bottom,0px); }
  .pilot-config .yc-actions { position:sticky; bottom:0; z-index:3; background:white; }
  .pilot-config :is(input[type=file],.yc-print-tabs button,.yc-steps button) { min-height:44px; }
}
