/* Composição própria para telefone e tablet. O desktop mantém atelier.css. */
@media(max-width:768px){
 html{scroll-padding-top:154px}
 .container{padding-inline:16px}
 .announcement{display:none}
 .announcement>span{font-size:0}
 .announcement strong{font-size:12px;letter-spacing:.03em}
 .announcement>a{display:none}
 .site-header .nav-row{height:100px;grid-template-columns:44px minmax(0,1fr) 44px;grid-template-rows:52px 40px;gap:0 10px;padding:0 14px 8px}
 .site-header .logo-lockup{grid-column:2;grid-row:1;justify-self:center;margin:0;padding:0 4px;font-size:24px;transform:translateY(-2px)}
 .site-header .logo-ring{height:43px;top:-10px;left:-10px;width:calc(100% + 20px)}
 .site-header .logo-atelier{font-size:7px;bottom:-10px}
 .site-header .hamburger{display:flex;grid-column:1;grid-row:1;width:44px;height:44px;justify-self:start;border:0;margin:0;padding:11px;background:none}
 .site-header .hamburger:hover{background:none}
 .site-header .utility-icons{grid-column:3;grid-row:1;gap:0}
 .site-header .utility-icons .icon-btn{width:44px;height:44px;padding:11px}
 .site-header .utility-icons .js-whatsapp{display:none}
 .site-header .store-search{grid-column:1/-1;grid-row:2;max-width:none;align-self:start;height:40px}
 .site-header .store-search .search-input,.site-header .store-search .search-input.open{height:38px;font-size:16px;padding:0 44px 0 12px}
 .site-header .store-search .icon-btn{width:40px;height:40px;top:-1px;right:-1px}
 .site-header .category-navigation{border-top:0}
 .category-navigation-inner{padding-inline:14px;gap:0;min-height:44px}
 .mobile-primary-nav{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));width:100%;gap:4px}
 .mobile-primary-nav>a,.mobile-primary-nav>button{display:flex;justify-content:center;align-items:center;gap:6px;min-height:44px;padding:8px 2px;border:0;border-bottom:2px solid transparent;background:none;text-decoration:none;font:500 13px var(--font-sans);color:#302c27;white-space:nowrap}
 .mobile-primary-nav>a:last-child,.mobile-primary-nav>button[aria-expanded=true]{color:#6b1f2b}.mobile-primary-nav>button[aria-expanded=true]{border-bottom-color:#6b1f2b}
 .site-header .nav-links{display:none;mask-image:none;-webkit-mask-image:none}
 .site-header .nav-links a{font-size:13px;min-height:44px;padding:10px 2px;font-weight:500}
 .site-header .nav-links a::after{background:#6b1f2b}
 .nav-customize{display:none}
 .site-header .nav-links.open{display:grid;position:absolute;top:100%;left:14px;right:14px;width:auto;padding:12px;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 10px;max-height:min(60dvh,390px);overflow:auto;background:#faf9f7;border:1px solid #e5ded9;border-radius:3px;box-shadow:0 8px 20px #30232212;mask-image:none;-webkit-mask-image:none;z-index:50}
 .site-header .nav-links.open a{padding:12px 8px;white-space:normal;line-height:1.4}
 .site-header .nav-links.open .mobile-personalize,.site-header .nav-links.open li:first-child{display:none}

 /* O produto vem antes da descrição, usando as mesmas fotografias da capa. */
 .hero-carousel.hero{padding-top:0}
 .hero-shell.container{padding-inline:16px}
 .hero-window{border:0;border-radius:0;overflow:hidden;contain:paint;clip-path:inset(0);background:transparent}
 .hero-track{display:grid;grid-auto-flow:column;grid-auto-columns:100%;gap:0;width:100%;align-items:stretch}
 .hero-slide{width:100%;max-width:100%;min-width:0;margin:0;padding:0;overflow:hidden;box-sizing:border-box}
 .hero-slide[data-theme] .hero-banner{background:transparent}
 .hero-banner{display:flex;flex-direction:column;align-items:stretch;gap:0;width:100%;min-width:0;min-height:0;padding:16px 0 12px;box-sizing:border-box}
 .banner-copy{display:contents}
 .banner-overline{order:0;padding:0;min-height:0;margin:0 0 6px;display:flex;align-items:center;max-width:100%}
 .banner-label{font-size:11px;letter-spacing:.07em;line-height:1.45}
 .banner-count{display:none}
 .hero-carousel .banner-title{order:1;font-size:clamp(28px,7.5vw,34px);font-weight:500;line-height:1.1;margin:0 0 8px;letter-spacing:-.025em;max-width:100%;overflow-wrap:anywhere}
 .banner-title span{display:inline}.banner-title span+span:before{content:' '}
 .banner-products,.banner-products.banner-products--two{order:2;display:grid;grid-template-columns:1fr;gap:0;width:100%;max-width:220px;height:clamp(160px,45vw,184px);align-self:center;justify-self:center;margin:0 0 10px}
 .banner-products .banner-product{width:100%;height:100%;max-width:none;overflow:visible}
 .banner-product img{display:block;object-fit:contain;aspect-ratio:auto;width:100%;height:100%;background:transparent}
 .banner-products .banner-product:nth-child(n+2){display:none}
 .banner-products .banner-product:nth-child(2){margin-top:0}
 .banner-product-name{display:none}
 .banner-description{order:3;font-size:14px;line-height:1.5;max-width:100%;min-height:0;margin:0 0 10px;color:#534e46;overflow-wrap:anywhere}
 .banner-bottom{order:4;display:flex;flex-wrap:nowrap;align-items:center;gap:10px}
 .banner-cta{min-height:44px;flex:1;justify-content:space-between;padding:10px;font-size:13px;letter-spacing:0;line-height:1.4;gap:8px;background:#6b1f2b;color:#fff;border-color:#6b1f2b;white-space:normal}
 .banner-cta svg{width:20px;height:20px;flex-shrink:0}
 .hero-banner:hover .banner-cta{transform:none}
 .banner-pricing{flex-shrink:0}.banner-pricing small{font-size:10px;line-height:1.5}.banner-pricing strong{font-size:16px;line-height:1.3}
 .hero-controls{min-height:44px;padding:0;grid-template-columns:1fr auto}
 .hero-numbers{font-size:12px}.hero-dot{width:44px;height:44px;flex-basis:44px}.hero-dot::before{width:16px;height:2px}.hero-dot[aria-current="true"]::before{width:20px}
 .hero-all-collections{display:none}
 .service-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 16px;padding-block:24px}
 .service-grid>div{border:0;padding:0;gap:10px;align-items:flex-start;min-width:0}
 .service-grid svg{width:24px;height:24px;flex-shrink:0}
 .service-grid strong{font-size:14px;line-height:1.45}.service-grid span{font-size:13px;line-height:1.55;color:#5f5853}

 .section:not(.studio-section){padding:28px 0}
 .arrivals-section .editorial-heading{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px;margin-bottom:14px}
 .arrivals-section .brand-word{white-space:nowrap}
 .arrivals-section .section-kicker{display:none}.arrivals-section .editorial-heading h2{font-size:24px;line-height:1.15}.arrivals-section .text-link{font-size:12px;gap:6px;min-height:44px;max-width:104px;white-space:normal;line-height:1.3}.arrivals-section .text-link svg{width:16px;height:16px;flex-shrink:0}
 .editorial-heading,.section-head.editorial-heading{flex-wrap:wrap;align-items:flex-start;gap:12px;margin-bottom:18px}
 .section:not(.studio-section) .section-head h2,.arrivals-section h2,.faq-intro h2{font-size:clamp(24px,6.7vw,30px);line-height:1.15}
 .section-kicker,.studio-eyebrow{font-size:12px;letter-spacing:.09em;line-height:1.5;margin-bottom:10px}
 .section-head p,.editorial-heading p{font-size:16px;line-height:1.65}
 .text-link,.editorial-heading>.text-link{font-size:14px;min-height:44px;padding:10px 0;gap:12px}
 .arrivals-grid,.catalog-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:22px 12px}
 .product-photo{width:100%;aspect-ratio:1;overflow:hidden}
 .product-photo img{object-fit:contain}
 .product-body{padding-top:8px;gap:4px;min-width:0}
 .product-cat{font-size:11px;line-height:1.4;letter-spacing:.06em}
 .product-name{font-size:14px;line-height:1.4;font-weight:500;min-height:0;overflow-wrap:anywhere}
 .product-name button{min-height:44px;width:100%;line-height:inherit;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
 .product-price{font-size:17px;line-height:1.3;font-weight:600}
 .card-colors{display:flex;flex-wrap:wrap;gap:2px;row-gap:0;min-width:0}
 .card-color{width:44px;height:44px;flex-shrink:0}.card-color::before{inset:9px}
 .card-color-label{flex-basis:auto;font-size:12px;line-height:1.4;margin:0 0 0 2px}
 .product-actions{padding-top:4px;gap:6px}
 .btn-small{font-size:14px;min-height:44px;padding:10px 8px;letter-spacing:0;line-height:1.3}
 .product-actions .btn-small.solid{gap:4px;text-align:left}.product-actions .btn-small.solid::after{font-size:14px;flex-shrink:0}
 .product-model-link{font-size:12px;min-height:44px;min-width:44px;right:6px;bottom:6px;padding:10px}
 .collections-grid{grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-flow:row;gap:18px 12px;overflow:visible;margin:0;padding:0}
 .collection-photo{aspect-ratio:1.15;width:100%;height:auto;background:transparent}
 .collection-photo img{object-fit:contain;transform:none}
 .collection-body{padding-top:8px;gap:3px}.collection-name{font-size:14px;line-height:1.4;font-weight:500;min-height:0}.collection-count{font-size:13px;line-height:1.4;color:#5f5853}
 .catalog-sort{width:100%;display:flex;flex-direction:row;justify-content:space-between;align-items:center;gap:12px;font-size:14px;margin-top:6px}
 .catalog-sort select{font-size:16px;min-height:48px;max-width:70%;padding:10px 30px 10px 12px}
 .filter-btn{font-size:15px;min-height:48px;padding:12px 8px;gap:6px;line-height:1.4}
 .filter-total{font-size:12px;min-width:24px;height:24px}
 .catalog-count{font-size:14px;line-height:1.6;margin-bottom:20px}
 .catalog-context{font-size:14px;line-height:1.5;gap:10px;padding:12px;align-items:center}
 .catalog-context button{min-height:44px;font-size:14px}
 .category-picker-options{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;max-height:55dvh}
 .category-picker-options .collection-filter{padding:10px;min-height:88px;gap:8px}
 .collection-filter-name{font-size:14px;line-height:1.35}.collection-filter-count{font-size:12px}
 .collection-filter-photo{width:44px;height:44px;flex-basis:44px}
 .pagination-buttons{gap:6px;flex-wrap:wrap;justify-content:center}
 .pagination-number,.pagination-step{min-width:44px;min-height:44px;font-size:14px;padding:8px 10px}
 .pagination-summary{font-size:14px}

 .studio-section>.container{padding-inline:16px}
 .studio-intro{grid-template-columns:1fr}
 .studio-poster img{height:280px;max-height:none;object-fit:contain}
 .studio-poster>span{font-size:12px;line-height:1.5;padding:8px;left:12px;bottom:12px}
 .studio-intro-copy{padding:24px 20px}
 .studio-intro h3{font-size:32px;line-height:1.15}.studio-intro-copy>p,.studio-small{font-size:16px;line-height:1.65}
 .studio-intro-steps{font-size:15px;line-height:1.6;gap:12px;margin:20px 0 24px}.studio-intro-steps b{width:30px;height:30px;font-size:13px}
 .studio-intro .btn-pill,.btn-pill{font-size:15px;min-height:52px;letter-spacing:.01em;line-height:1.4;padding:14px 18px}
 .studio-intro .btn-pill{width:100%;justify-content:center}
 /* Chamada da ferramenta compacta; diálogo e iframe continuam intactos. */
 .studio-section>.container>.section-head{margin-bottom:14px}.studio-section>.container>.section-head h2{font-size:26px}.studio-section>.container>.section-head p{font-size:14px;line-height:1.55;margin-bottom:0}
 .studio-intro{display:block;background:transparent}.studio-poster,.studio-intro-steps,.studio-intro-copy>.studio-eyebrow,.studio-intro-copy>h3,.studio-intro-copy>p:not(.studio-small){display:none}
 .studio-intro-copy{padding:0}.studio-intro .btn-pill{min-height:44px;font-size:14px;padding:10px 14px}.studio-small{font-size:13px;line-height:1.5}
 .studio-embed{width:100vw;height:100dvh;max-height:100dvh;border:0;border-radius:0;margin:0;padding:0}
 .studio-embed-bar{height:52px;padding:2px 12px;gap:8px}.studio-embed-bar b{font-size:23px}.studio-embed-bar small{font-size:8px}
 .studio-modal-title{display:none}#studioClose{width:48px;height:48px;flex-shrink:0}
 .story-layout{grid-template-columns:1fr;gap:24px}.story-copy h2{font-size:30px}.story-copy p{font-size:16px;line-height:1.75}
 .delivery-grid{grid-template-columns:1fr;gap:0}.delivery-card{padding:20px 0;border:0;border-bottom:1px solid var(--border)}
 .delivery-card h3{font-size:18px;line-height:1.4}.delivery-card p{font-size:15px;line-height:1.7}
 .faq-layout{gap:24px}.faq-item summary{font-size:16px;line-height:1.5;min-height:56px;padding:18px 0}.faq-answer p{font-size:16px;line-height:1.7}
 .measure-help,.contact-help,.measure-contact,.compact-measure-note{font-size:14px;line-height:1.65}
 .measure-table{font-size:14px}.measure-table td{font-size:14px}.measure-table thead th{font-size:13px}
 .field>label,.field label{font-size:14px;line-height:1.5}.field input,.field textarea{font-size:16px;min-height:48px}.field textarea{min-height:120px}
 .store-footer{padding:36px 0 24px}.footer-columns{grid-template-columns:1fr 1fr;gap:28px 18px}
 .footer-columns>div:first-child,.footer-columns>div:last-child{grid-column:1/-1}
 .footer-columns h3{font-size:16px;line-height:1.4;margin-bottom:10px}.footer-columns>div:first-child h3{font-size:24px}
 .footer-columns p,.footer-note{font-size:14px;line-height:1.7;color:#d3ccce}.footer-columns a{font-size:14px;line-height:1.5;min-height:44px;padding:10px 0;margin:0;color:#e1dbdd}
 .store-footer .social-row{justify-content:flex-start}.store-footer .social-badge{width:48px;height:48px}.store-footer .copy{font-size:12px;line-height:1.7;margin-top:18px;padding:0}
 /* O atendimento já está no rodapé; o atalho duplicado não cobre a compra. */
 .fab{display:none}
 body.shopping-open>.fab,body.studio-open>.fab{visibility:hidden}

 /* Detalhes e sacola mantêm o mesmo fluxo, com controles confortáveis. */
 .overlay{padding:0}
 .modal{width:100%;max-width:600px;max-height:100dvh;border-radius:0;padding:16px 18px max(24px,env(safe-area-inset-bottom))}
 .modal-close{position:sticky;top:0;right:auto;z-index:8;width:48px;height:48px;margin:0 0 -48px auto;padding:12px;box-shadow:0 1px 6px #25232312}
 .pd-gallery{width:100%;max-width:none;margin-inline:0}.pd-photo{touch-action:pan-y pinch-zoom;aspect-ratio:1}
 .pd-photo img{object-fit:contain;max-width:100%}.pd-photo.is-zoomed img{max-width:none}
 .pd-zoom{font-size:14px;min-height:44px;padding:10px 12px}
 .pd-photo-caption{font-size:14px;line-height:1.5}
 .pd-thumbs{display:flex;flex-wrap:nowrap;gap:10px;overflow-x:auto;overscroll-behavior-x:contain;padding:4px 0 10px;scroll-snap-type:x proximity;max-width:100%}
 .pd-thumb{width:72px;min-width:72px;min-height:94px;flex-shrink:0;scroll-snap-align:start}.pd-thumb span{font-size:12px}
 #productModalTitle{font-size:26px!important;line-height:1.2;margin-top:14px!important}
 .pd-price{font-size:24px!important;line-height:1.4}.pd-description{font-size:16px!important;line-height:1.65!important}
 .size-row,.color-row{gap:12px;flex-wrap:wrap}.size-btn{width:48px;height:48px;font-size:16px}.color-btn{width:44px;height:44px}
 .size-guide-details summary{font-size:14px;min-height:48px;padding-block:12px;line-height:1.5}
 .qty-row{flex-wrap:wrap;gap:12px;font-size:16px}.qty-control button{width:48px;height:48px}.qty-control input{height:48px;font-size:16px;width:64px}
 #confirmAddBtn{min-height:54px;font-size:16px;margin-top:16px}
 .inline-error{font-size:14px;line-height:1.6}
 .drawer{width:100vw;max-width:100vw;padding:18px 16px max(18px,env(safe-area-inset-bottom))}
 .drawer-head h3{font-size:28px}.drawer-head button{width:48px;height:48px;margin:0}
 .cart-item{gap:12px;padding-block:16px;flex-wrap:wrap}.cart-item-photo{width:80px;height:80px;flex-shrink:0}
 .cart-item-info{min-width:0}.cart-item-info p{font-size:16px;line-height:1.4;overflow-wrap:anywhere}.cart-item-info small{font-size:14px;line-height:1.5;color:#625b59}
 .cart-quantity{gap:12px}.cart-quantity button{width:44px;height:44px;font-size:20px}.cart-quantity span{font-size:16px}
 .remove-btn{min-height:44px;font-size:14px;padding:10px 0;color:#6b1f2b}.drawer-footer .subtotal-row{font-size:20px}.drawer-footer p{font-size:14px;line-height:1.6;color:#625b59}
 #checkoutBtn,#sendOrderBtn{min-height:54px;font-size:16px}
 .pay-options{display:grid;grid-template-columns:1fr;gap:12px}.pay-option{min-height:56px;font-size:15px;padding:12px;white-space:normal}
 .checkout-summary{font-size:16px;gap:14px}.checkout-summary>div{gap:12px}.checkout-delivery-note{font-size:14px;line-height:1.65}
}
@media(max-width:599px){.banner-products .banner-product:nth-child(2){display:none}}
@media(max-width:359px){
 .site-header .logo-lockup{font-size:24px}
 .category-picker-options .collection-filter{flex-direction:column;align-items:flex-start;gap:8px}
}
@media(min-width:600px) and (max-width:768px){
 .hero-carousel .banner-title{font-size:36px}
 .banner-products,.banner-products.banner-products--two{grid-template-columns:1fr;max-width:260px;height:200px}
 .collections-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
 .hero-banner{padding:20px 0 16px}
}

/* Compra móvel em uma tela; informações extensas abrem em leitura separada. */
@media(min-width:769px){.pd-info-back{display:none}}
@media(max-width:768px){
 #productOverlay{padding:0}
 #productModalBody{height:100dvh;max-height:100dvh;display:flex;flex-direction:column;overflow:auto;border-radius:0;padding:0}
 #productModalBody .pd-topbar{position:relative;flex:none;padding:2px 12px;min-height:44px}
 #productModalBody .pd-topbar>span{font-size:20px}
 #productModalBody .pd-layout{display:flex;flex-direction:column;gap:4px;padding:4px 12px max(8px,env(safe-area-inset-bottom));min-height:0}
 #productModalBody .pd-gallery{position:static;margin:0;max-width:none;width:100%}
 #productModalBody .pd-photo{height:clamp(88px,calc(100dvh - 495px),240px);min-height:0;max-height:none;aspect-ratio:auto;border-radius:6px}
 #productModalBody .pd-photo img{height:100%;width:100%;object-fit:contain}
 #productModalBody .pd-photo-caption,#productModalBody .pd-thumbs{display:none}
 #productModalBody .pd-photo-count{bottom:6px;right:8px;padding:4px 8px;font-size:10px}
 #productModalBody .pd-gallery-arrow{width:40px;height:44px;top:calc(50% - 22px)}
 #productModalBody .pd-purchase{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px 6px;padding:0;min-width:0}
 #productModalBody .pd-purchase>*{grid-column:1/-1;min-width:0}
 #productModalBody .product-cat{display:none}
 #productModalBody #productModalTitle{font-size:20px!important;line-height:1.15;margin:3px 0 0!important;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
 #productModalBody .pd-price{font-size:23px!important;line-height:1.15;margin:0}
 #productModalBody .pd-payment{font-size:10px;line-height:1.3;margin:0 0 2px}
 #productModalBody .field{margin:0}
 #productModalBody .field>label{font-size:11px;line-height:1.2;margin:0;display:block}
 #productModalBody .color-row{margin:1px 0 0;gap:10px;flex-wrap:nowrap;overflow-x:auto;padding:3px;scrollbar-width:thin}
 #productModalBody .color-btn{width:34px;height:34px;min-width:34px;flex:none}
 #productModalBody .size-row{display:flex;flex-wrap:nowrap;gap:6px;margin:3px 0 0;overflow-x:auto}
 #productModalBody .size-btn{flex:1;min-width:42px;width:auto;height:42px;font-size:13px}
 #productModalBody .pd-purchase>details{grid-column:auto;margin:0;border-radius:5px}
 #productModalBody .pd-purchase>details>summary{padding:7px 5px;min-height:42px;display:flex;align-items:center;justify-content:center;text-align:center;font-size:10px;line-height:1.2;list-style:none}
 #productModalBody .pd-purchase>details>summary span{display:none}
 #productModalBody .pd-purchase>details>summary::-webkit-details-marker{display:none}
 #productModalBody .qty-row{margin:0;padding:0;min-height:40px}
 #productModalBody .qty-row label{font-size:11px}
 #productModalBody .qty-control button{width:40px;height:40px}
 #productModalBody .qty-control input{height:40px;width:44px;font-size:16px}
 #productModalBody #confirmAddBtn{margin:0;min-height:46px;padding:10px;font-size:11px;border-radius:6px}
 #productModalBody .inline-error{margin:0;font-size:11px;line-height:1.2}
 #productModalBody .pd-purchase>details[open]{position:absolute;inset:44px 0 0;z-index:8;overflow:auto;background:#fff;padding:54px 14px 20px;border:0;border-radius:0;grid-column:1/-1}
 #productModalBody .pd-purchase>details[open]>summary{font-size:18px;justify-content:flex-start;text-align:left;padding:10px 0}
 #productModalBody .pd-info-back{position:absolute;top:6px;left:14px;min-height:44px;border:1px solid #e0d3d6;border-radius:6px;padding:8px 14px;background:#fff;color:var(--color-wine);font-size:13px}
 #productModalBody.pd-reading{overflow:hidden}
 #productModalBody .pd-purchase>details[open] p{font-size:14px!important}
}
@media(max-width:768px) and (max-height:600px){
 #productModalBody .pd-topbar{min-height:40px}
 #productModalBody .pd-photo{height:72px}
 #productModalBody .pd-payment{display:none}
 #productModalBody .pd-purchase>details>summary{min-height:34px}
 #productModalBody .color-btn{height:30px;width:30px;min-width:30px}
 #productModalBody .size-btn{height:36px}
}
@media(max-width:768px){
 #productModalBody .pd-purchase>details{order:1}
 #productModalBody .pd-purchase>.qty-row{order:2}
 #productModalBody .pd-purchase>.inline-error{order:3}
 #productModalBody .pd-purchase>#confirmAddBtn{order:4}
 #productModalBody .pd-purchase>details>summary{height:44px;min-height:44px;padding:5px;overflow-wrap:normal}
}
