/* Responsive adaptations of the existing Empório DG interface. */
:root{--dg-header-height:128px}
html{scroll-padding-top:calc(var(--dg-header-height) + 16px)}
button,a,input,select,textarea{touch-action:manipulation}
.dg-mobile-menu-toggle,.dg-admin-mobile-bar{display:none}
#adminDash.hidden{display:none!important}
#main-header .dg-primary-nav[hidden]{display:none!important}
.dg-header-layout,.dg-header-actions,.dg-header-search,#adminDash main,.dg-editor-grid>*,.dg-experience-layout>*,.dg-catalog-controls>*{min-width:0}
.dg-products-table td,.dg-products-table th{overflow-wrap:anywhere}
.dg-admin-table-hint{display:none;font-size:12px;line-height:1.6;margin:10px 0;color:rgb(var(--dg-wine-rgb))}
@media(max-width:1199px){
 #main-header{padding-top:env(safe-area-inset-top,0px)}
 #main-header .dg-header-layout{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px 12px;padding:12px max(16px,env(safe-area-inset-right,0px)) 12px max(16px,env(safe-area-inset-left,0px));max-width:none}
 #main-header .dg-header-brand{margin:0;max-width:170px;min-width:0}
 #main-header .dg-header-brand img{height:48px;max-width:100%;width:auto;object-fit:contain}
 #main-header .dg-header-brand h1{font-size:22px;margin-left:0;overflow-wrap:anywhere}
 #main-header .dg-header-actions{margin:0;gap:4px;display:flex;align-items:center}
 #main-header .dg-header-actions>*{margin-left:0!important}
 #main-header .dg-header-actions>button{display:inline-flex;justify-content:center;align-items:center;min-height:44px;min-width:44px;padding:8px}
 #main-header .dg-mobile-menu-toggle{display:inline-flex;border:1px solid rgb(var(--dg-gold-rgb)/.6);color:rgb(var(--dg-gold-rgb));border-radius:2px}
 #main-header .dg-mobile-menu-toggle:focus-visible{outline:2px solid white;outline-offset:2px}
 #main-header .dg-header-search{grid-column:1/-1;width:100%;position:relative;display:block}
 #main-header .dg-header-search input{width:100%;min-width:0;min-height:44px;font-size:16px;padding:10px 38px 10px 14px}
 #main-header .dg-header-search>i{top:15px;right:15px}
 #main-header .dg-primary-nav{position:absolute;top:100%;left:0;right:0;display:flex;flex-direction:column;flex-wrap:nowrap!important;align-items:stretch;gap:0!important;margin:0;padding:12px max(16px,env(safe-area-inset-right,0px)) 16px max(16px,env(safe-area-inset-left,0px));background:rgb(var(--dg-wine-rgb));border-top:1px solid rgb(var(--dg-gold-rgb)/.5);border-bottom:2px solid rgb(var(--dg-gold-rgb));max-height:calc(100vh - var(--dg-header-height));max-height:calc(100dvh - var(--dg-header-height));overflow-y:auto;overscroll-behavior:contain;font-size:14px;letter-spacing:.08em;box-shadow:0 8px 16px rgb(var(--dg-dark-rgb)/.15)}
 #main-header .dg-primary-nav>*{margin-left:0!important}
 #main-header .dg-primary-nav>a,#main-header .dg-primary-nav>button{display:flex;align-items:center;min-height:48px;padding:12px 8px;text-align:left;border-bottom:1px solid rgb(var(--dg-gold-rgb)/.2);white-space:normal}
 #main-header .dg-primary-nav .dg-header-languages{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:12px;display:grid}
 #main-header .dg-header-languages button{min-height:44px;justify-content:center;border:1px solid rgb(var(--dg-gold-rgb)/.4);padding:8px;font-size:13px}
 .hero-section{height:auto!important;min-height:100vh;min-height:100svh;padding-top:calc(var(--dg-header-height) + 48px)!important;padding-bottom:72px;align-items:center}
 .hero-section>.container{padding-left:24px;padding-right:24px}
 .hero-section h2{font-size:clamp(32px,6.8vw,58px);line-height:1.16;overflow-wrap:anywhere}
 .hero-section .max-w-2xl{max-width:680px}
 body .dg-experience-page{padding-top:calc(var(--dg-header-height) + 32px)}
 #country-filters button,.filter-btn{min-height:44px}
 .dg-catalog-controls{flex-wrap:wrap;justify-content:flex-end}
 .dg-catalog-controls>*{max-width:100%}
}
@media(max-width:767px){
 .modal{padding:8px!important;align-items:center;overscroll-behavior:contain}
 .modal .modal-content{max-width:100%;max-height:calc(100vh - 16px);max-height:calc(100dvh - 16px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px));overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
 .modal-content input:not([type=checkbox]):not([type=radio]):not([type=hidden]),.modal-content select,.modal-content textarea,.dg-field input:not([type=checkbox]),.dg-field select,.dg-field textarea,#adminDash input:not([type=checkbox]),#adminDash select,#adminDash textarea{font-size:16px!important;max-width:100%;min-width:0}
 .modal-content input:not([type=checkbox]):not([type=radio]):not([type=hidden]),.modal-content select,.dg-field input:not([type=checkbox]):not([type=color]):not([type=range]),.dg-field select,#adminDash select,#d-busca{min-height:44px}
 .modal-content input[type=file],.dg-field input[type=file]{width:100%;white-space:normal}
 .modal-content button,.modal-content a.dg-btn,.dg-btn{min-height:44px}
 .modal-content button[aria-label]{min-width:44px}
 #termsModal .modal-content>div:first-child{padding:16px;gap:12px}
 #termsModal h3{font-size:20px;line-height:1.4;min-width:0}
 #termsModal .modal-content>div:first-child button{flex-shrink:0}
 .dg-admin-table-hint{display:block}
 footer button{min-height:44px}
 .modal-content .dg-dialog-close{position:sticky!important;display:flex;align-items:center;justify-content:center;top:8px!important;right:auto!important;margin:8px 8px -52px auto;width:44px;min-width:44px;height:44px;padding:8px;color:rgb(var(--dg-wine-rgb));background:white;border:1px solid rgb(var(--dg-gold-rgb));z-index:25;border-radius:2px}
 #loginModal .modal-content,#campModal .modal-content,#adminModal .modal-content,#confirmModal .modal-content,#importModal .modal-content{padding:20px}
 #loginModal .dg-dialog-close,#campModal .dg-dialog-close,#adminModal .dg-dialog-close,#importModal .dg-dialog-close{margin-top:-12px;margin-right:-12px}
 #admin-titulo,#loginModal h3,#campModal h3,#importModal h3{padding-right:42px;font-size:26px;overflow-wrap:anywhere}
 #detailsModal .grid>div{min-width:0}
 #detailsModal .modal-content>.grid:first-of-type>div{padding:24px 20px}
 #detailsModal .modal-content>.grid:last-child{padding:24px 20px;gap:24px}
 #det-img{height:230px;max-width:100%;width:auto}
 #det-thumbs{max-width:100%;overflow-x:auto;padding:4px 0;gap:10px}
 #det-thumbs img{min-width:56px;min-height:64px;flex-shrink:0}
 #det-nome{font-size:28px;overflow-wrap:anywhere}
 #det-marca,#det-origem,#det-desc,#det-harm{overflow-wrap:anywhere}
 #det-specs .spec-row{gap:12px}
 #det-specs .spec-row>*{min-width:0;overflow-wrap:anywhere}
 #cartModal{padding:0!important}
 #cart-panel{width:100%;max-width:480px;height:100vh;height:100dvh;max-height:100dvh!important;border-radius:0;overflow-y:auto;padding-bottom:env(safe-area-inset-bottom,0px)}
 #cart-panel>div:first-child{position:sticky;top:0;z-index:20;flex-shrink:0;padding:16px;padding-top:max(16px,env(safe-area-inset-top,0px));gap:12px}
 #cart-panel>div:first-child h3{font-size:25px}
 #cart-panel>div:first-child button{min-width:44px;min-height:44px;flex-shrink:0}
 #cart-items{overflow:visible!important;flex:none!important;min-height:100px;padding:20px 16px}
 #cart-items>div.flex{display:grid;grid-template-columns:minmax(0,1fr);gap:14px}
 #cart-items>div.flex>div{min-width:0}
 #cart-items>div.flex>div:last-child{justify-content:flex-end;gap:12px}
 #cart-items .line-clamp-1{-webkit-line-clamp:2;font-size:15px}
 #cart-items button{width:44px;min-width:44px;height:44px;min-height:44px}
 #cart-items .w-8{width:36px}
 #cart-panel>div:last-child{padding:18px 16px 24px}
 #cart-coupon{min-width:0}
 #cart-coupon input{min-width:0;font-size:16px}
 #cart-coupon button{min-height:44px;padding:10px}
 #cart-total{font-size:28px;white-space:nowrap}
 #cart-total-label{font-size:12px;max-width:44%;align-self:center;overflow-wrap:anywhere}
 #shipping-summary{font-size:14px}
 #ageGate{padding:76px 16px 24px;overflow-y:auto;justify-content:flex-start;overscroll-behavior:contain}
 #ageGate>.text-center{padding:16px 4px;max-width:430px;margin:auto}
 #ageGate .lang-sw{top:max(12px,env(safe-area-inset-top,0px));right:16px;left:16px;justify-content:center;gap:8px}
 #ageGate .lang-sw button{min-height:44px;min-width:64px;justify-content:center}
 #ageGate h2{font-size:32px;line-height:1.2}
 #ageGate .flex.gap-4{flex-wrap:wrap;gap:12px}
 #ageGate .flex.gap-4 button{min-height:48px;flex:1;padding:12px 18px;white-space:normal}
 #ageGate p{line-height:1.7}
 .hero-section>.container{padding-left:20px;padding-right:20px}
 .hero-section h2{font-size:clamp(30px,8vw,48px)}
 .hero-section .text-lg{font-size:17px;line-height:1.6}
 .hero-section a.inline-block{min-height:48px;padding:14px 24px;max-width:100%;font-size:12px;text-align:center}
 #camp-bar{font-size:12px;line-height:1.7;letter-spacing:.08em;padding:14px 16px;overflow-wrap:anywhere}
 #camp-bar button{display:block;margin:8px auto 0;min-height:44px;padding:8px 16px}
 #sec-pilares .container{padding:28px 16px;gap:24px 12px}
 #sec-pilares p{line-height:1.6;letter-spacing:.06em}
 #catalogo{padding-top:48px;padding-bottom:48px}
 #catalogo>.container{padding-left:16px;padding-right:16px}
 #catalogo .text-center.mb-12{margin-bottom:24px}
 #catalogo h2{font-size:32px;line-height:1.2}
 .dg-category-filters{flex-wrap:nowrap!important;justify-content:flex-start!important;overflow-x:auto;gap:8px!important;padding-bottom:10px;scrollbar-width:thin;overscroll-behavior-x:contain}
 .dg-category-filters .filter-btn{flex:0 0 auto;white-space:nowrap;padding:10px 16px;font-size:12px;letter-spacing:.06em}
 #country-filters{flex-wrap:nowrap!important;justify-content:flex-start;overflow-x:auto;gap:8px;padding-bottom:10px;margin-bottom:16px;scrollbar-width:thin;overscroll-behavior-x:contain}
 #country-filters button{flex:0 0 auto;white-space:nowrap;font-size:12px;letter-spacing:.03em;padding:10px 14px}
 .dg-catalog-toolbar{display:block;margin-bottom:24px;padding-bottom:20px}
 .dg-catalog-toolbar #count{margin-bottom:14px;line-height:1.6}
 .dg-catalog-controls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 .dg-catalog-controls>*,.dg-catalog-controls select{width:100%;max-width:100%;min-width:0!important;min-height:46px}
 .dg-catalog-controls select{font-size:16px;letter-spacing:0;padding:10px 8px}
 .dg-catalog-controls button{font-size:12px;letter-spacing:.03em;padding:10px 8px;white-space:normal}
 .dg-catalog-controls .dg-grape-filter{display:block;max-width:none}
 #product-grid{grid-template-columns:minmax(0,1fr);gap:20px}
 .product-card{min-width:0}
 .product-card .card-img{height:240px}
 .product-card>.p-6{padding:20px}
 .product-card .h-4{height:auto;min-height:16px;overflow-wrap:anywhere}
 .product-card h3{font-size:21px;line-height:1.4}
 .product-card button{min-height:44px}
 .product-card .border-t.flex{flex-direction:column;align-items:stretch;gap:8px}
 .product-card .border-t span.flex{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;width:100%}
 .product-card .border-t span.flex button{min-width:0;width:100%}
 #admin-bar{padding:16px;overflow-wrap:anywhere}
 #admin-bar>div{flex-wrap:wrap;gap:8px}
 #admin-bar button{min-height:44px}
 #admin-email{display:block;margin-left:0}
 #adminDash:not(.hidden){display:flex}
 #adminDash{flex-direction:column;height:100vh;height:100dvh;padding-top:env(safe-area-inset-top,0px)}
 #adminDash>aside{display:none}
 .dg-admin-mobile-bar{display:grid;grid-template-columns:minmax(0,1fr) 44px 44px;gap:8px;padding:10px max(12px,env(safe-area-inset-right,0px)) 10px max(12px,env(safe-area-inset-left,0px));background:rgb(var(--dg-dark-rgb));color:white;flex-shrink:0}
 .dg-admin-mobile-bar select{min-width:0;width:100%;height:44px;padding:8px;font-size:16px;color:white;background:rgb(var(--dg-dark-rgb));border:1px solid rgb(var(--dg-gold-rgb));border-radius:2px}
 .dg-admin-mobile-bar button{width:44px;height:44px;border:1px solid rgb(var(--dg-gold-rgb)/.5);color:white;display:flex;align-items:center;justify-content:center}
 #adminDash>main{width:100%;min-width:0;min-height:0;flex:1;overscroll-behavior:contain}
 #adminDash>main>header{position:sticky;top:0;padding:16px;flex-wrap:wrap;gap:12px}
 #adminDash>main>header>div{min-width:0}
 #dash-titulo{font-size:25px;overflow-wrap:anywhere}
 #dash-sub{font-size:12px;line-height:1.5}
 #dash-acao button{min-height:44px;max-width:100%}
 #adminDash>main>div{padding:16px}
 #adminDash section,#adminDash .dg-box,#adminDash .dg-panel{min-width:0;max-width:100%}
 #kpis{gap:12px}
 #kpis>div{min-width:0;padding:16px}
 #kpis .font-serif{font-size:23px;overflow-wrap:anywhere}
 #kpis>div:last-child{grid-column:1/-1}
 #d-busca{min-width:0;width:100%;flex-basis:100%}
 #d-status{min-width:0;max-width:100%}
 #tab-catalogo>div.flex{align-items:stretch}
 #tab-catalogo button,#tab-campanhas button{min-height:44px}
 #tab-config .grid{grid-template-columns:minmax(0,1fr)}
 .dg-products-table{border:0!important;overflow:visible!important;background:transparent!important}
 .dg-products-table table{display:block;min-width:0!important;width:100%}
 .dg-products-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
 .dg-products-table tbody{display:grid;gap:14px}
 .dg-products-table tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 12px;padding:16px;border:1px solid rgb(var(--dg-grey-rgb));background:white}
 .dg-products-table td{display:block;min-width:0;padding:10px 0;white-space:normal}
 .dg-products-table td::before{content:attr(data-label);display:block;font-size:11px;font-weight:700;letter-spacing:.05em;color:rgb(var(--dg-wine-rgb));margin-bottom:5px}
 .dg-products-table td:first-child{grid-column:1/-1;padding-top:0;border-bottom:1px solid rgb(var(--dg-grey-rgb));margin-bottom:4px}
 .dg-products-table td:first-child::before,.dg-products-table td:last-child::before,.dg-products-table td[colspan]::before{display:none}
 .dg-products-table td:first-child>div{min-width:0;align-items:flex-start}
 .dg-products-table td:first-child>div>div{min-width:0}
 .dg-products-table td:first-child img{flex-shrink:0}
 .dg-products-table td:nth-child(6),.dg-products-table td:last-child,.dg-products-table td[colspan]{grid-column:1/-1}
 .dg-products-table td:last-child:not([colspan]){display:flex;justify-content:flex-end;gap:8px;border-top:1px solid rgb(var(--dg-grey-rgb));padding-bottom:0}
 .dg-products-table td button{width:44px;min-width:44px;min-height:44px;border:1px solid rgb(var(--dg-grey-rgb))}
 .dg-box{padding:18px}
 .dg-actions{gap:8px}
 .dg-actions .dg-btn{max-width:100%;white-space:normal;text-align:center}
 .dg-field label,.dg-label{line-height:1.5}
 .dg-frame-wrap{max-width:100%}
 .dg-experience-teaser{padding:44px 20px}
 .dg-experience-teaser-inner{gap:24px}
 .dg-experience-teaser h2{font-size:30px;overflow-wrap:anywhere}
 .dg-experience-teaser img{height:260px}
 body .dg-experience-page{padding-right:16px;padding-left:16px;padding-bottom:44px}
 .dg-experience-page h1{font-size:32px;overflow-wrap:anywhere}
 .dg-experience-copy{font-size:16px;overflow-wrap:anywhere}
 .dg-gallery-controls{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:8px}
 #dg-gallery-count{grid-column:1/-1;grid-row:1;text-align:center}
 .dg-gallery-controls button{min-height:44px;font-size:13px;padding:10px 12px;white-space:normal}
 #dg-gallery-prev{grid-row:2;grid-column:1}#dg-gallery-pause{grid-row:2;grid-column:2}#dg-gallery-next{grid-row:2;grid-column:3}
 .dg-footer-items a,.dg-footer-items p{max-width:100%;overflow-wrap:anywhere}
 .dg-footer-items a{min-height:44px;padding:8px 0}
 #toast{right:16px;left:auto;bottom:calc(16px + env(safe-area-inset-bottom,0px));max-width:calc(100vw - 32px);padding:16px;gap:12px;pointer-events:none}
 #toast-msg{overflow-wrap:anywhere}
 #wa-float{left:auto!important;right:max(16px,env(safe-area-inset-right,0px));bottom:calc(16px + env(safe-area-inset-bottom,0px));min-width:48px;min-height:48px}
 .dg-pick-exit{left:16px;right:16px;bottom:calc(16px + env(safe-area-inset-bottom,0px));padding:12px;min-height:48px}
}
@media(min-width:480px) and (max-width:767px){#product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.product-card .card-img{height:205px}.product-card>.p-6{padding:16px}.product-card h3{font-size:18px}}
@media(max-width:479px){#form-produto .grid{grid-template-columns:minmax(0,1fr)}#form-produto .grid>*{grid-column:1/-1!important;min-width:0}#form-produto #pais-grid{grid-template-columns:repeat(2,minmax(0,1fr))}#pais-grid button{min-height:44px;font-size:12px}.dg-panel .dg-row{grid-template-columns:minmax(0,1fr)}.dg-actions>.dg-btn{flex:1 1 130px}.dg-box .dg-btn{white-space:normal}.dg-manual-toolbar button{min-height:44px}}
@media(hover:none){.product-card:hover{transform:none;box-shadow:none}.product-card:hover .card-img img{transform:none}}
@media(prefers-reduced-motion:reduce){.dg-mobile-menu-toggle,.dg-primary-nav{transition:none!important}}
/* Mobile menu: preserve navigation handlers and improve touch/readability. */
@media(max-width:767px){
 #main-header .dg-header-layout{gap:8px 10px;padding-top:10px;padding-bottom:10px}
 #main-header .dg-header-brand img{height:44px}
 #main-header .dg-header-actions{gap:2px}
 #main-header .dg-header-actions>button{min-width:48px;min-height:48px;flex-shrink:0}
 #main-header .dg-primary-nav{font-size:16px;line-height:1.4;letter-spacing:.05em;padding-top:8px;padding-bottom:max(16px,env(safe-area-inset-bottom,0px));scroll-padding-block:8px}
 #main-header .dg-primary-nav>a,#main-header .dg-primary-nav>button{min-height:50px;padding:12px;overflow-wrap:anywhere}
 #main-header .dg-header-languages{padding-top:4px}
 #main-header .dg-header-languages button{min-height:48px;font-size:14px}
 #main-header .dg-primary-nav a:focus-visible,#main-header .dg-primary-nav button:focus-visible,#main-header .dg-header-actions>button:focus-visible{outline:2px solid rgb(var(--dg-gold-rgb));outline-offset:-3px}
 #main-header .dg-primary-nav>a:active,#main-header .dg-primary-nav>button:active{background:rgb(var(--dg-gold-rgb)/.12)}
}
