:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;color:#2d2038;background:#faf8fc;font-synthesis:none;text-rendering:optimizeLegibility;--plum:#321b43;--purple:#704091;--purple-2:#9161ad;--lavender:#f2eaf7;--pink:#f4e3ee;--muted:#82788b;--border:#ece5f0;--green:#278463;--red:#b84c69}*{box-sizing:border-box}body{margin:0;min-width:320px}button,input,textarea,select{font:inherit}button{cursor:pointer}a{color:inherit;text-decoration:none}.is-hidden{display:none!important}.brand{display:flex;align-items:center;gap:11px;font-size:20px;font-weight:900;letter-spacing:1.2px;color:var(--plum)}.brand-mark{font-size:38px;color:#d6a6df;line-height:1}.brand-light{color:#ae82c4}.brand small{display:block;font-size:9px;letter-spacing:1.3px;color:#9a8ba2;font-weight:600;margin-top:4px}.eyebrow{font-size:10px;letter-spacing:2px;font-weight:850;color:#9364a9}.button{border:0;border-radius:10px;padding:12px 17px;font-size:12px;font-weight:800;display:inline-flex;align-items:center;justify-content:center;gap:9px;transition:transform .15s,background .15s}.button:hover:not(:disabled){transform:translateY(-1px)}.button:disabled{opacity:.5;cursor:not-allowed}.button-primary{background:#704091;color:#fff;box-shadow:0 8px 18px #70409125}.button-primary:hover:not(:disabled){background:#5e347a}.button-ghost{background:#fff;color:#684783;border:1px solid #e7ddeb}.button-ghost:hover:not(:disabled){background:#f8f2fb}.button-wide{width:100%;min-height:48px}.button-whatsapp{background:#198e58;color:#fff}.button-whatsapp:hover{background:#117848}.button-small{padding:8px 11px;font-size:11px;border-radius:8px;background:#704091;color:white}.button-muted{background:#f2ebf6;color:#684783;border:1px solid #e8dcec}.button-danger{background:#fff3f5;color:#b34965;border:1px solid #f1d7de}.button-small:disabled{opacity:.55}
/* Customer storefront */
.customer-page{background:#fbf9fc}.customer-header{height:76px;padding:0 max(24px,calc((100vw - 1160px)/2));display:flex;align-items:center;justify-content:space-between;background:#fff;border-bottom:1px solid #f0eaf2}.admin-shortcut{font-size:12px;font-weight:750;color:#76558b;padding:10px 13px;border:1px solid var(--border);border-radius:9px}.admin-shortcut:hover{background:#f7f0fa}.customer-main{max-width:1160px;margin:0 auto;padding:0 24px}.customer-hero{margin:30px 0 22px;background:radial-gradient(circle at 78% 40%,#9265a8 0,#6c447f 34%,#321b43 100%);border-radius:25px;min-height:310px;padding:48px 56px;color:#fff;display:flex;align-items:center;justify-content:space-between;overflow:hidden;position:relative}.customer-hero:after{content:"";position:absolute;width:390px;height:390px;border-radius:50%;border:1px solid #ffffff17;right:-75px;top:-50px;box-shadow:0 0 0 30px #ffffff08,0 0 0 70px #ffffff05}.hero-copy{max-width:550px;position:relative;z-index:1}.customer-hero .eyebrow{color:#e5bee9}.customer-hero h1{font-size:clamp(34px,5vw,56px);letter-spacing:-2px;line-height:1.05;margin:13px 0 14px}.customer-hero h1 em{font-style:normal;color:#eac9ee}.customer-hero p{max-width:445px;color:#e6d9eb;font-size:14px;line-height:1.7;margin:0}.hero-tags{display:flex;flex-wrap:wrap;gap:10px;margin-top:23px}.hero-tags span{background:#ffffff19;border:1px solid #ffffff1c;padding:8px 11px;border-radius:30px;font-size:11px;color:#f4eaf6}.hero-art{position:relative;z-index:1;width:250px;height:230px;display:grid;place-items:center}.açai-bowl{width:185px;height:145px;border-radius:24px 24px 80px 80px;background:linear-gradient(160deg,#b78bc7,#6c3d85 60%,#45225d);border:9px solid #f2d9f0;box-shadow:0 28px 35px #1b102d66;display:grid;place-items:center;position:relative;transform:rotate(-9deg)}.açai-bowl:before{content:"";position:absolute;width:190px;height:49px;border-radius:50%;background:#e3b5e4;border:7px solid #f8e5f7;top:-25px;left:-12px}.bowl-top{position:absolute;top:-27px;font-size:57px;z-index:1;filter:drop-shadow(0 4px 3px #40204c44)}.açai-bowl span{position:absolute;color:#f6d8f4;font-size:28px}.açai-bowl span:nth-of-type(1){right:-31px;top:14px}.açai-bowl span:nth-of-type(2){left:-33px;bottom:15px}.notice-strip{display:flex;align-items:center;gap:11px;background:#f2eaf7;color:#745487;border-radius:10px;padding:13px 16px;font-size:12px;line-height:1.5}.notice-icon{width:22px;height:22px;border-radius:50%;background:#e3d1ed;display:grid;place-items:center;font-weight:900;flex-shrink:0}.site-alert{display:none;margin:16px 0;padding:12px 14px;border-radius:9px;font-size:12px;line-height:1.5}.site-alert:not(:empty){display:block}.site-alert.error{background:#fff0f3;color:#a53e59}.site-alert.warning{background:#fff7e8;color:#87591a}.site-alert.success{background:#edf9f3;color:#1f8058}.menu-section,.cart-section,.checkout-section{padding:43px 0 0;scroll-margin-top:18px}.section-heading{display:flex;align-items:end;justify-content:space-between;gap:15px;margin-bottom:19px}.section-heading h2{font-size:25px;letter-spacing:-.7px;margin:6px 0}.section-heading p{color:#8b8192;font-size:12px;margin:0;line-height:1.6}.product-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}.product-card{background:#fff;border:1px solid #eee7f1;border-radius:15px;padding:20px;display:flex;gap:15px;align-items:center;min-width:0;box-shadow:0 7px 25px #34204007}.product-icon{width:54px;height:54px;border-radius:15px;background:linear-gradient(135deg,#f5e8f6,#ead9f0);display:grid;place-items:center;font-size:28px;flex-shrink:0}.product-info{min-width:0;flex:1}.product-name{font-size:14px;line-height:1.35;margin:0;color:#392847}.product-unit{font-size:10px;color:#a298aa;margin:5px 0 11px}.product-footer{display:flex;justify-content:space-between;align-items:center;gap:8px}.product-price{font-size:14px;color:#795295}.add-button{padding:8px 10px;background:#f1e8f6;border:1px solid #e6d9ee;color:#68447f;border-radius:8px;font-size:10px;font-weight:850;white-space:nowrap}.add-button:hover{background:#e8d9f1}.product-card.is-sold-out{background:#faf8fa;opacity:.76}.product-card.is-sold-out .product-name{text-decoration:line-through;color:#9a909e}.product-card.is-sold-out .product-icon{filter:grayscale(.8);opacity:.65}.product-card.is-sold-out .product-price{font-size:10px;letter-spacing:.6px;color:#b45a70;font-weight:850}.sold-out-label{font-size:10px;color:#a89eaa}.loading-card{grid-column:1/-1;padding:26px;border:1px dashed #dfd4e6;border-radius:13px;background:#fff;color:#8e8297;text-align:center;font-size:13px}.cart-count{font-size:11px;font-weight:800;color:#76558e;background:#f0e7f5;padding:8px 12px;border-radius:30px}.cart-panel,.checkout-panel{background:#fff;border:1px solid #eee7f1;border-radius:16px;padding:22px;box-shadow:0 7px 25px #34204007}.cart-lines{display:grid;gap:3px}.empty-cart,.empty-state{padding:21px 10px;text-align:center;color:#9a90a1;font-size:12px;line-height:1.6}.cart-line{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:18px;align-items:center;padding:13px 0;border-bottom:1px solid #f1edf3}.cart-line-info{display:grid;gap:5px;min-width:0}.cart-line-info strong{font-size:13px}.cart-line-info small{font-size:10px;color:#9b91a1}.cart-line-total{font-size:12px;color:#67467e;min-width:88px;text-align:right}.quantity-control{display:flex;align-items:center;gap:9px}.quantity-control button{width:27px;height:27px;border-radius:8px;border:1px solid #e8dfed;background:#fbf8fc;color:#6c4a81;font-size:16px;font-weight:800}.quantity-control span{font-size:12px;font-weight:800;min-width:12px;text-align:center}.cart-summary{display:flex;justify-content:space-between;align-items:center;margin:18px 0 15px;padding-top:6px;color:#7e7487;font-size:13px}.cart-summary strong{font-size:22px;color:#452b58}.checkout-panel{display:grid;gap:18px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px}.checkout-panel label,.stack-form label{display:grid;gap:7px;color:#54445f;font-size:12px;font-weight:750}.checkout-panel input,.checkout-panel textarea,.checkout-panel select,.stack-form input{width:100%;min-width:0;border:1px solid #e5dce9;background:#fdfbfe;padding:12px 13px;border-radius:9px;outline-color:#b38ac9;color:#35243f;font-size:13px}.checkout-panel textarea{resize:vertical}.fulfillment-choice{border:0;padding:0;margin:0;display:grid;gap:10px}.fulfillment-choice legend{font-size:12px;color:#54445f;font-weight:800;margin-bottom:8px}.choice{display:flex!important;grid-template-columns:auto 1fr;align-items:center;border:1px solid #ece4f0;border-radius:10px;padding:12px;cursor:pointer}.choice:has(input:checked){border-color:#b28aca;background:#faf5fc}.choice input{width:auto!important;accent-color:#754596}.choice span{display:grid;gap:3px}.choice strong{font-size:12px}.choice small{font-size:10px;color:#958b9d;font-weight:500}.checkout-disclaimer{background:#fbf6ed;border:1px solid #f0e7d8;color:#7c623c;border-radius:10px;padding:14px;font-size:11px;line-height:1.7}.checkout-actions{display:flex;justify-content:space-between;gap:12px}.success-panel{margin:42px auto 0;max-width:540px;background:#fff;border:1px solid #e8dfee;border-radius:20px;padding:32px;text-align:center;box-shadow:0 15px 40px #3420400c}.success-icon{width:52px;height:52px;margin:0 auto 18px;border-radius:50%;display:grid;place-items:center;background:#e8f7ef;color:#24855c;font-size:27px;font-weight:900}.success-panel h2{font-size:26px;margin:8px 0}.success-panel>p{font-size:12px;color:#8a8090;line-height:1.6}.success-code{display:grid;gap:6px;background:#faf7fc;border:1px dashed #d9c9e2;padding:16px;border-radius:12px;margin:22px 0}.success-code small{font-size:9px;letter-spacing:1.2px;color:#97899e;font-weight:800}.success-code strong{font-size:23px;color:#543466;letter-spacing:1px}.success-code span{font-size:12px;color:#877a91}.success-small{font-size:10px!important;margin:12px 0 18px}.customer-footer{display:flex;justify-content:space-between;gap:12px;border-top:1px solid #eee7f1;margin-top:52px;padding:22px 0 32px;color:#9a90a1;font-size:10px}.customer-footer span:first-child{color:#75518a;font-weight:850}
/* Admin */
.admin-page{background:#f8f6fa;min-height:100vh}.admin-shell{min-height:100vh}.login-card{width:min(440px,calc(100% - 32px));margin:7vh auto;background:#fff;border:1px solid #ece5f0;border-radius:20px;padding:35px;box-shadow:0 18px 50px #39224a10}.login-card .brand{margin-bottom:38px}.login-card h1{font-size:29px;letter-spacing:-1px;margin:8px 0}.login-card>p{color:#8b8192;font-size:12px;line-height:1.65;margin:0 0 22px}.stack-form{display:grid;gap:15px}.stack-form label small{font-weight:500;color:#988da0;line-height:1.5}.form-error{min-height:17px;color:#b24762;font-size:11px;margin:0}.back-link{display:inline-block;margin-top:25px;color:#80618f;font-size:11px;font-weight:750}.admin-app{min-height:100vh;display:grid;grid-template-columns:245px minmax(0,1fr)}.admin-sidebar{background:#291839;color:#fff;padding:29px 17px 20px;display:flex;flex-direction:column;min-height:100vh;position:sticky;top:0;height:100vh}.admin-sidebar .brand{color:#fff;margin:0 8px 42px}.admin-sidebar .brand small{color:#b5a4c2}.admin-nav{display:grid;gap:7px}.admin-nav-button{width:100%;display:flex;align-items:center;justify-content:space-between;text-align:left;padding:13px 12px;border-radius:9px;border:0;background:transparent;color:#c6b8d0;font-size:12px;font-weight:750}.admin-nav-button:hover,.admin-nav-button.is-active{background:#523369;color:#fff}.nav-count{border-radius:20px;background:#e8bde8;color:#482657;padding:2px 7px;font-size:9px}.sidebar-bottom{margin-top:auto;display:grid;gap:13px;border-top:1px solid #493458;padding:18px 8px 0}.sidebar-bottom a,.logout-button{font-size:11px;font-weight:750;color:#d7c2e2}.logout-button{text-align:left;border:0;background:transparent;padding:0;color:#bda9ca}.admin-content{padding:36px clamp(20px,4vw,55px);max-width:1600px;width:100%;margin:0 auto;min-width:0}.admin-topbar{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:26px}.admin-topbar h1{font-size:30px;letter-spacing:-1px;margin:7px 0 5px;color:#392747}.admin-topbar p{margin:0;color:#93899b;font-size:12px}.admin-alert{display:none;margin-bottom:18px;padding:12px 14px;border-radius:9px;font-size:12px;line-height:1.5}.admin-alert:not(:empty){display:block}.admin-alert.success{background:#eaf7ef;color:#26744f}.admin-alert.error{background:#fff0f3;color:#ad4662}.admin-tab{display:grid;gap:19px}.summary-cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px}.summary-cards article{background:#fff;border:1px solid #eee8f1;border-radius:13px;padding:17px}.summary-cards span{display:block;color:#786d83;font-size:11px;font-weight:700}.summary-cards strong{display:block;font-size:29px;color:#4c315c;margin:8px 0 2px}.summary-cards small{font-size:10px;color:#a197aa}.panel{background:#fff;border:1px solid #ece6f0;border-radius:14px;padding:22px;min-width:0;box-shadow:0 6px 22px #35204005}.panel-heading{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:18px}.panel-heading h2{font-size:16px;margin:0 0 5px;color:#3f2c4d}.panel-heading p{font-size:11px;color:#93899b;margin:0;line-height:1.55}.live-label{font-size:10px;color:#8b8192;white-space:nowrap}.live-label i{display:inline-block;width:7px;height:7px;border-radius:50%;background:#2fa87a;margin-right:5px}.orders-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.order-card{border:1px solid #eee7f1;border-radius:12px;padding:16px;min-width:0}.order-card-head{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;margin-bottom:14px}.order-code-wrap{display:grid;gap:4px}.order-code{font-size:14px;color:#513361}.order-code-wrap small{font-size:9px;color:#9e94a5}.status-badge{display:inline-flex;align-items:center;justify-content:center;padding:5px 8px;border-radius:20px;font-size:9px;font-weight:850;white-space:nowrap}.status-badge.pending{background:#fff4df;color:#9a671b}.status-badge.confirmed{background:#eaf2ff;color:#4a68a5}.status-badge.preparing{background:#f1eafa;color:#7650a0}.status-badge.ready{background:#e8f7f3;color:#287c71}.status-badge.completed,.status-badge.available{background:#e7f6ed;color:#26794f}.status-badge.cancelled{background:#f9e9ed;color:#a84f66}.order-customer{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-bottom:11px}.order-customer strong{font-size:12px;color:#473352}.order-customer span{font-size:10px;color:#897e91}.order-items{background:#faf8fb;border-radius:8px;padding:10px 11px;display:grid;gap:6px;color:#66566f;font-size:10px;line-height:1.45}.order-details{display:grid;gap:4px;color:#8d8295;font-size:10px;padding:10px 1px}.order-card-bottom{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;border-top:1px solid #f0ebf2;padding-top:12px;margin-top:4px}.order-total{font-size:13px;color:#4a315b}.order-actions{display:flex;gap:6px;flex-wrap:wrap}.data-table{width:100%;border-collapse:collapse;text-align:left;font-size:11px}.data-table th{font-size:9px;color:#9a90a0;text-transform:uppercase;letter-spacing:.7px;padding:11px 9px;border-bottom:1px solid #eee8f1}.data-table td{padding:12px 9px;border-bottom:1px solid #f1edf3;white-space:nowrap;color:#5c4d65}.stock-product-name{font-weight:750;color:#453250!important}.table-wrap{width:100%;overflow-x:auto}.table-input{width:92px;max-width:100%;border:1px solid #e7deeb;border-radius:7px;padding:7px 8px;background:#fdfbfe;color:#483653;font-size:11px}.quantity-input{width:75px}.inactive-row{opacity:.58}.add-product-panel{margin-top:0}.add-product-form{display:grid;grid-template-columns:minmax(200px,2fr) minmax(100px,1fr) minmax(100px,1fr) auto;gap:12px;align-items:end}.add-product-form label{display:grid;gap:7px;font-size:11px;color:#5d4c67;font-weight:750}.add-product-form input{min-width:0;width:100%;border:1px solid #e5dce9;border-radius:8px;padding:10px;font-size:12px;outline-color:#b38ac9}.settings-panel{max-width:650px}.settings-panel .stack-form{max-width:490px}.safety-note{max-width:650px;background:#fbf9fc}.safety-note h2{font-size:14px}.safety-note p{font-size:11px;line-height:1.65;color:#877c90}.safety-note code{display:inline-block;background:#f0eaf4;border-radius:6px;padding:7px 9px;font-size:10px;color:#65477b}.admin-footer{text-align:center;font-size:10px;color:#a59baa;padding:30px 0 8px}
@media(max-width:1000px){.product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.admin-app{grid-template-columns:205px minmax(0,1fr)}.orders-list{grid-template-columns:1fr}.summary-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.add-product-form{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.customer-header{height:66px;padding:0 15px}.brand{font-size:17px}.brand-mark{font-size:32px}.customer-main{padding:0 14px}.customer-hero{margin:16px 0;border-radius:18px;min-height:260px;padding:29px 23px}.customer-hero h1{font-size:37px}.hero-art{position:absolute;right:-53px;bottom:-25px;opacity:.35;transform:scale(.72)}.hero-copy{max-width:100%}.hero-tags span{font-size:9px}.section-heading{align-items:flex-start}.section-heading h2{font-size:22px}.section-heading p{max-width:270px}.product-grid{grid-template-columns:1fr;gap:9px}.product-card{padding:14px}.product-icon{width:48px;height:48px}.cart-panel,.checkout-panel{padding:15px}.cart-line{grid-template-columns:minmax(0,1fr) auto;gap:9px}.cart-line-total{grid-column:1/-1;text-align:left}.form-grid{grid-template-columns:1fr}.checkout-actions{flex-direction:column-reverse}.checkout-actions .button{width:100%}.customer-footer{flex-direction:column}.admin-app{display:block}.admin-sidebar{position:relative;height:auto;min-height:0;padding:13px 14px}.admin-sidebar .brand{margin:0 0 13px}.admin-nav{display:flex;overflow-x:auto;gap:5px}.admin-nav-button{white-space:nowrap;width:auto;padding:10px}.sidebar-bottom{display:flex;justify-content:space-between;margin-top:12px;padding:12px 3px 0}.admin-content{padding:23px 13px}.admin-topbar{align-items:flex-start}.admin-topbar h1{font-size:25px}.admin-topbar p{max-width:260px;line-height:1.5}.summary-cards{gap:8px}.summary-cards article{padding:12px}.summary-cards strong{font-size:24px}.summary-cards small{font-size:9px}.panel{padding:14px}.panel-heading{align-items:flex-start;flex-direction:column}.add-product-form{grid-template-columns:1fr 1fr}.add-product-form label:first-child{grid-column:1/-1}.login-card{margin:25px auto;padding:25px}.order-actions{width:100%}.order-actions .button{flex:1}.live-label{white-space:normal}}
@media(max-width:390px){.product-footer{align-items:flex-start;flex-direction:column}.product-price{font-size:13px}.add-product-form{grid-template-columns:1fr}.add-product-form label:first-child{grid-column:auto}.summary-cards article{padding:10px}.summary-cards span{font-size:10px}}
.customer-wa-link{font-size:10px;font-weight:800;color:#19865a;border:1px solid #cfe9da;background:#f1faf5;border-radius:7px;padding:5px 8px;white-space:nowrap}.stock-actions{display:flex;gap:5px;flex-wrap:wrap}.name-input{width:170px}.honeypot{position:absolute!important;left:-10000px!important;top:auto!important;width:1px!important;height:1px!important;overflow:hidden!important;opacity:0!important;pointer-events:none!important}

.recovery-success{color:#26744f;background:#eaf7ef;border-radius:8px;padding:10px 12px;line-height:1.55}

/* =========================================================
   PESSAÍ 2.3 — visual refresh, product photography and themes
   ========================================================= */
:root {
  color-scheme: light;
  --page-bg: #f7f2fa;
  --surface: #ffffff;
  --surface-raised: #fff;
  --surface-soft: #f3eaf8;
  --surface-muted: #eee4f3;
  --text-main: #30203d;
  --text-soft: #756782;
  --text-faint: #9a8da5;
  --line: #e8ddec;
  --accent: #853bb1;
  --accent-strong: #65258e;
  --accent-soft: #f1e4f8;
  --field-bg: #fff;
  --shadow-card: 0 14px 38px rgba(48, 22, 68, .075);
  --shadow-float: 0 22px 65px rgba(48, 22, 68, .14);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --page-bg: #100b17;
  --surface: #1b1425;
  --surface-raised: #21172d;
  --surface-soft: #2b1b3a;
  --surface-muted: #352443;
  --text-main: #f5edf9;
  --text-soft: #c0aecb;
  --text-faint: #9581a4;
  --line: #402e4d;
  --accent: #bd78e3;
  --accent-strong: #9b4dc9;
  --accent-soft: #342143;
  --field-bg: #171020;
  --shadow-card: 0 14px 38px rgba(0, 0, 0, .22);
  --shadow-float: 0 24px 70px rgba(0, 0, 0, .38);
}

html { min-height: 100%; background: var(--page-bg); }
body.customer-page,
body.admin-page {
  background: var(--page-bg);
  color: var(--text-main);
  transition: background-color .22s ease, color .22s ease;
}

.customer-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 5px 24px rgba(48, 22, 68, .035);
  backdrop-filter: blur(16px);
}
.customer-header-actions,
.admin-topbar-actions,
.login-top-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.login-top-row { justify-content: space-between; margin-bottom: 34px; }
.login-top-row .brand { margin: 0; }
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 39px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-soft);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, transform .18s ease, color .18s ease;
}
.theme-toggle:hover { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }
.theme-toggle [data-theme-icon] { font-size: 16px; line-height: 1; color: var(--accent); }

.brand { color: var(--text-main); }
.brand small { color: var(--text-faint); }
.admin-shortcut { color: var(--accent-strong); border-color: var(--line); background: var(--surface); }
.admin-shortcut:hover { background: var(--accent-soft); }

.customer-main { padding-bottom: 18px; }
.customer-hero {
  min-height: 336px;
  margin: 28px 0 20px;
  padding: 46px clamp(25px, 5vw, 60px);
  border: 1px solid rgba(255,255,255,.13);
  background:
    radial-gradient(circle at 85% 22%, rgba(202, 119, 232, .34), transparent 30%),
    radial-gradient(circle at 4% 100%, rgba(118, 42, 157, .4), transparent 42%),
    linear-gradient(116deg, #1b0e29 0%, #39204e 58%, #6a3b82 100%);
  box-shadow: var(--shadow-float);
}
.customer-hero::after {
  border-color: rgba(255,255,255,.16);
  box-shadow: 0 0 0 30px rgba(255,255,255,.035), 0 0 0 70px rgba(255,255,255,.025);
}
.customer-hero h1 { max-width: 620px; font-size: clamp(38px, 5.2vw, 62px); }
.customer-hero .eyebrow { color: #e8c5f5; }
.customer-hero p { max-width: 470px; font-size: 15px; }
.hero-tags span { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.16); }
.hero-art { width: min(38%, 360px); height: 255px; }
.hero-art.has-photo { width: min(42%, 400px); height: 278px; }
.hero-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 8px solid rgba(255,255,255,.82);
  border-radius: 30px 30px 82px 30px;
  box-shadow: 0 24px 50px rgba(0,0,0,.34);
  transform: rotate(3deg);
}
.açai-bowl { filter: drop-shadow(0 18px 18px rgba(0,0,0,.24)); }

.notice-strip {
  background: var(--surface-soft);
  color: var(--text-soft);
  border: 1px solid var(--line);
  border-radius: 13px;
}
.notice-icon { background: var(--surface-muted); color: var(--accent); }
.site-alert { border: 1px solid var(--line); }
.site-alert.error { background: #fff0f3; color: #a53e59; }
.site-alert.warning { background: #fff7e8; color: #87591a; }
.site-alert.success { background: #edf9f3; color: #1f8058; }

.menu-section, .cart-section, .checkout-section { padding-top: 46px; }
.section-heading h2 { color: var(--text-main); font-size: clamp(23px, 2.7vw, 29px); }
.section-heading p { color: var(--text-soft); }
.product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 19px; }
.product-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: var(--surface);
  box-shadow: var(--shadow-card);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-float); border-color: color-mix(in srgb, var(--accent) 42%, var(--line)); }
.product-media {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background:
    radial-gradient(circle at 70% 25%, rgba(255,255,255,.36), transparent 22%),
    linear-gradient(140deg, #e8c9ef, #8b55a1 55%, #442350);
}
.product-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease, filter .25s ease;
}
.product-card:hover .product-photo { transform: scale(1.045); }
.product-photo-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: #fff;
  font-size: clamp(54px, 6vw, 78px);
  text-shadow: 0 8px 18px rgba(30,10,42,.22);
  background:
    radial-gradient(ellipse at 50% 64%, #351542 0 23%, transparent 24%),
    radial-gradient(ellipse at 50% 58%, #5c2b70 0 36%, transparent 37%),
    radial-gradient(circle at 50% 45%, rgba(255,255,255,.24), transparent 34%),
    linear-gradient(145deg, #d6a8e4, #7b4690 54%, #32163f);
}
.product-sold-out-ribbon {
  position: absolute;
  top: 13px;
  right: 13px;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(35, 20, 43, .88);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .5px;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}
.product-info { display: flex; flex: 1; flex-direction: column; gap: 6px; padding: 17px 18px 18px; }
.product-name { color: var(--text-main); font-size: 15px; font-weight: 850; }
.product-unit { color: var(--text-faint); margin: 0 0 9px; }
.product-footer { margin-top: auto; align-items: center; }
.product-price { color: var(--accent-strong); font-size: 17px; font-weight: 900; }
.add-button {
  padding: 10px 13px;
  border: 1px solid var(--accent);
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  box-shadow: 0 7px 17px color-mix(in srgb, var(--accent) 23%, transparent);
}
.add-button:hover { background: var(--accent-strong); border-color: var(--accent-strong); }
.product-card.is-sold-out .product-photo { filter: grayscale(.7); opacity: .7; }
.product-card.is-sold-out .product-photo-placeholder { filter: grayscale(.55); }
.product-card.is-sold-out .product-price { color: #b35b72; }
.loading-card { background: var(--surface); border-color: var(--line); color: var(--text-soft); }

.cart-count { color: var(--accent-strong); background: var(--accent-soft); }
.cart-panel, .checkout-panel, .success-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 19px;
  box-shadow: var(--shadow-card);
  color: var(--text-main);
}
.cart-line { border-color: var(--line); }
.cart-line-info strong { color: var(--text-main); }
.cart-line-info small, .empty-cart { color: var(--text-soft); }
.cart-line-total, .cart-summary strong { color: var(--accent-strong); }
.quantity-control button { background: var(--surface-soft); border-color: var(--line); color: var(--accent-strong); }
.cart-summary { color: var(--text-soft); }
.checkout-panel label, .stack-form label, .fulfillment-choice legend { color: var(--text-main); }
.checkout-panel input, .checkout-panel textarea, .stack-form input {
  background: var(--field-bg);
  border-color: var(--line);
  color: var(--text-main);
}
.checkout-panel input::placeholder, .checkout-panel textarea::placeholder, .stack-form input::placeholder { color: var(--text-faint); }
.choice { background: var(--surface); border-color: var(--line); }
.choice:has(input:checked) { background: var(--accent-soft); border-color: var(--accent); }
.choice strong { color: var(--text-main); }
.choice small { color: var(--text-soft); }
.checkout-disclaimer { background: #fbf6ed; border-color: #f0e7d8; color: #7c623c; }
.success-code { background: var(--surface-soft); border-color: var(--line); }
.success-code strong { color: var(--accent-strong); }
.success-code span, .success-panel > p { color: var(--text-soft); }
.customer-footer { border-color: var(--line); color: var(--text-faint); }
.customer-footer span:first-child { color: var(--accent-strong); }

/* Admin surface: clearer hierarchy, denser but more polished layout. */
.admin-page { background: var(--page-bg); }
.login-card {
  position: relative;
  background: var(--surface);
  border-color: var(--line);
  border-radius: 23px;
  box-shadow: var(--shadow-float);
  color: var(--text-main);
}
.login-card h1 { color: var(--text-main); }
.login-card > p { color: var(--text-soft); }
.admin-app { background: var(--page-bg); }
.admin-sidebar {
  background: linear-gradient(180deg, #24122f 0%, #1b1026 100%);
  border-right: 1px solid rgba(255,255,255,.08);
  box-shadow: 10px 0 35px rgba(24, 10, 36, .08);
}
.admin-content { color: var(--text-main); }
.admin-topbar h1 { color: var(--text-main); }
.admin-topbar p { color: var(--text-soft); }
.summary-cards article, .panel, .order-card {
  background: var(--surface);
  border-color: var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  color: var(--text-main);
}
.summary-cards span, .panel-heading p, .live-label { color: var(--text-soft); }
.summary-cards strong, .panel-heading h2, .order-code, .order-customer strong, .order-total { color: var(--text-main); }
.summary-cards small, .order-code-wrap small, .order-customer span, .order-details { color: var(--text-faint); }
.order-items { background: var(--surface-soft); color: var(--text-soft); }
.order-card-bottom { border-color: var(--line); }
.data-table th { color: var(--text-faint); border-color: var(--line); }
.data-table td { color: var(--text-soft); border-color: var(--line); }
.stock-product-name { color: var(--text-main) !important; }
.table-input, .add-product-form input:not([type="file"]) {
  background: var(--field-bg);
  border-color: var(--line);
  color: var(--text-main);
}
.add-product-form label { color: var(--text-main); }
.settings-panel .stack-form label small { color: var(--text-soft); }
.safety-note { background: var(--surface); }
.safety-note h2 { color: var(--text-main); }
.safety-note p { color: var(--text-soft); }
.safety-note code { background: var(--surface-soft); color: var(--accent); }
.admin-footer { color: var(--text-faint); }
.button-ghost { background: var(--surface); color: var(--accent-strong); border-color: var(--line); }
.button-ghost:hover:not(:disabled) { background: var(--accent-soft); }
.button-muted { background: var(--accent-soft); color: var(--accent-strong); border-color: var(--line); }
.button-primary { background: linear-gradient(135deg, #8d43b8, #6a2d91); }

/* Product photo management in the admin stock table. */
.stock-photo-box { display: grid; justify-items: center; gap: 7px; min-width: 92px; }
.stock-photo-preview, .stock-photo-placeholder {
  display: grid;
  place-items: center;
  width: 72px;
  height: 58px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-soft);
  color: var(--accent);
  font-size: 25px;
}
.photo-upload-control {
  position: relative;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 5px !important;
  min-height: 27px;
  padding: 5px 8px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface-soft);
  color: var(--accent-strong) !important;
  font-size: 9px !important;
  cursor: pointer;
  white-space: nowrap;
}
.photo-upload-control:hover { border-color: var(--accent); background: var(--accent-soft); }
.photo-upload-control:has(input:disabled) { opacity: .5; cursor: not-allowed; }
.photo-upload-input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.photo-upload-input:disabled { cursor: not-allowed; }
.add-product-form { grid-template-columns: minmax(180px, 1.8fr) repeat(4, minmax(105px, .85fr)) minmax(180px, 1.2fr) auto; }
.photo-field small { color: var(--text-faint); font-size: 9px; font-weight: 550; }
.photo-field input[type="file"] { width: 100%; border: 1px dashed var(--line); border-radius: 9px; padding: 9px; background: var(--surface-soft); color: var(--text-soft); font-size: 10px; }

/* Dark theme overrides for legacy component colors. */
:root[data-theme="dark"] .customer-header { background: rgba(24, 14, 34, .93); border-color: var(--line); }
:root[data-theme="dark"] .admin-shortcut { background: var(--surface); color: var(--text-soft); border-color: var(--line); }
:root[data-theme="dark"] .notice-strip { background: var(--surface-soft); color: var(--text-soft); border-color: var(--line); }
:root[data-theme="dark"] .notice-icon { background: var(--surface-muted); color: var(--accent); }
:root[data-theme="dark"] .section-heading h2,
:root[data-theme="dark"] .product-name,
:root[data-theme="dark"] .cart-line-info strong,
:root[data-theme="dark"] .cart-summary strong,
:root[data-theme="dark"] .login-card h1,
:root[data-theme="dark"] .admin-topbar h1,
:root[data-theme="dark"] .panel-heading h2,
:root[data-theme="dark"] .summary-cards strong,
:root[data-theme="dark"] .order-code,
:root[data-theme="dark"] .order-customer strong,
:root[data-theme="dark"] .order-total { color: var(--text-main); }
:root[data-theme="dark"] .section-heading p,
:root[data-theme="dark"] .product-unit,
:root[data-theme="dark"] .cart-line-info small,
:root[data-theme="dark"] .cart-summary,
:root[data-theme="dark"] .login-card > p,
:root[data-theme="dark"] .admin-topbar p,
:root[data-theme="dark"] .summary-cards span,
:root[data-theme="dark"] .summary-cards small,
:root[data-theme="dark"] .panel-heading p,
:root[data-theme="dark"] .live-label,
:root[data-theme="dark"] .order-code-wrap small,
:root[data-theme="dark"] .order-customer span,
:root[data-theme="dark"] .order-details,
:root[data-theme="dark"] .empty-cart { color: var(--text-soft); }
:root[data-theme="dark"] .product-card,
:root[data-theme="dark"] .cart-panel,
:root[data-theme="dark"] .checkout-panel,
:root[data-theme="dark"] .success-panel,
:root[data-theme="dark"] .login-card,
:root[data-theme="dark"] .panel,
:root[data-theme="dark"] .summary-cards article,
:root[data-theme="dark"] .order-card,
:root[data-theme="dark"] .loading-card { background: var(--surface); border-color: var(--line); }
:root[data-theme="dark"] .order-items,
:root[data-theme="dark"] .success-code { background: var(--surface-soft); color: var(--text-soft); border-color: var(--line); }
:root[data-theme="dark"] .quantity-control button,
:root[data-theme="dark"] .button-ghost,
:root[data-theme="dark"] .button-muted { background: var(--surface-soft); border-color: var(--line); color: var(--text-main); }
:root[data-theme="dark"] .checkout-panel label,
:root[data-theme="dark"] .stack-form label,
:root[data-theme="dark"] .fulfillment-choice legend,
:root[data-theme="dark"] .add-product-form label { color: var(--text-main); }
:root[data-theme="dark"] .checkout-panel input,
:root[data-theme="dark"] .checkout-panel textarea,
:root[data-theme="dark"] .checkout-panel select,
:root[data-theme="dark"] .stack-form input,
:root[data-theme="dark"] .table-input,
:root[data-theme="dark"] .add-product-form input:not([type="file"]) { background: var(--field-bg); color: var(--text-main); border-color: var(--line); }
:root[data-theme="dark"] .checkout-panel input::placeholder,
:root[data-theme="dark"] .checkout-panel textarea::placeholder,
:root[data-theme="dark"] .stack-form input::placeholder { color: var(--text-faint); }
:root[data-theme="dark"] .choice { background: var(--surface); border-color: var(--line); }
:root[data-theme="dark"] .choice:has(input:checked) { background: var(--surface-soft); border-color: var(--accent); }
:root[data-theme="dark"] .choice strong { color: var(--text-main); }
:root[data-theme="dark"] .choice small { color: var(--text-soft); }
:root[data-theme="dark"] .customer-footer { border-color: var(--line); color: var(--text-faint); }
:root[data-theme="dark"] .customer-footer span:first-child { color: var(--accent); }
:root[data-theme="dark"] .data-table th,
:root[data-theme="dark"] .data-table td { border-color: var(--line); color: var(--text-soft); }
:root[data-theme="dark"] .stock-product-name { color: var(--text-main) !important; }
:root[data-theme="dark"] .safety-note { background: var(--surface); }
:root[data-theme="dark"] .safety-note h2 { color: var(--text-main); }
:root[data-theme="dark"] .safety-note p { color: var(--text-soft); }
:root[data-theme="dark"] .safety-note code { background: var(--surface-soft); color: var(--accent); }
:root[data-theme="dark"] .photo-upload-control { background: var(--surface-soft); color: var(--accent) !important; }
:root[data-theme="dark"] .photo-field input[type="file"] { background: var(--surface-soft); color: var(--text-soft); border-color: var(--line); }

@media (max-width: 1000px) {
  .add-product-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .photo-field { grid-column: 1 / -1; }
}
@media (max-width: 700px) {
  .customer-header-actions { gap: 7px; }
  .theme-toggle { min-height: 36px; padding: 7px 9px; gap: 5px; font-size: 10px; }
  .customer-hero { min-height: 285px; padding: 31px 24px; }
  .customer-hero h1 { font-size: clamp(34px, 10vw, 43px); }
  .hero-art, .hero-art.has-photo { width: 220px; height: 190px; right: -48px; bottom: -13px; opacity: .55; }
  .hero-photo { border-width: 5px; border-radius: 22px 22px 58px 22px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .product-info { padding: 13px; }
  .product-name { font-size: 13px; }
  .product-footer { align-items: flex-start; flex-direction: column; }
  .add-button { width: 100%; }
  .admin-topbar-actions { flex-wrap: wrap; justify-content: flex-end; }
  .admin-topbar-actions .theme-toggle { width: 39px; padding: 0; }
  .admin-topbar-actions .theme-toggle [data-theme-label] { display: none; }
  .login-top-row { gap: 8px; }
  .login-top-row .theme-toggle { width: 39px; padding: 0; flex-shrink: 0; }
  .login-top-row .theme-toggle [data-theme-label] { display: none; }
  .add-product-form { grid-template-columns: 1fr 1fr; }
  .add-product-form label:first-child, .photo-field { grid-column: 1 / -1; }
  .table-wrap { padding-bottom: 3px; }
}
@media (max-width: 430px) {
  .product-grid { grid-template-columns: 1fr; }
  .product-card { display: grid; grid-template-columns: minmax(118px, 42%) minmax(0, 1fr); }
  .product-media { height: 100%; min-height: 154px; aspect-ratio: auto; }
  .product-info { min-width: 0; justify-content: center; }
  .product-footer { gap: 9px; }
  .add-product-form { grid-template-columns: 1fr; }
  .add-product-form label:first-child, .photo-field { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}


/* =========================================================
   PESSAÍ 2.3.2 — modernização visual sem alterar a logomarca
   A imagem da marca é usada no arquivo original, sem filtros,
   recortes, redesenho ou alteração de cores.
   ========================================================= */
:root {
  color-scheme: light;
  --page-bg: #faf7fa;
  --surface: #ffffff;
  --surface-raised: #ffffff;
  --surface-soft: #f6eff6;
  --surface-muted: #eee2ef;
  --text-main: #2e2030;
  --text-soft: #746777;
  --text-faint: #9c8ea0;
  --line: #eadfea;
  --accent: #660064;
  --accent-strong: #4f004f;
  --accent-soft: #f4e7f3;
  --field-bg: #fffdfd;
  --brand-gold: #e5b900;
  --brand-green: #669934;
  --shadow-card: 0 12px 32px rgba(53, 13, 55, .075);
  --shadow-float: 0 22px 58px rgba(53, 13, 55, .14);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --page-bg: #140f16;
  --surface: #211923;
  --surface-raised: #2a202d;
  --surface-soft: #312436;
  --surface-muted: #3d2b42;
  --text-main: #fbf6fb;
  --text-soft: #cdbdce;
  --text-faint: #a28fa4;
  --line: #49364b;
  --accent: #c27bc2;
  --accent-strong: #e1a1df;
  --accent-soft: #39253b;
  --field-bg: #1a131d;
  --brand-gold: #edcf58;
  --brand-green: #8cb96a;
  --shadow-card: 0 14px 36px rgba(0, 0, 0, .23);
  --shadow-float: 0 24px 64px rgba(0, 0, 0, .38);
}

html { min-height: 100%; background: var(--page-bg); scroll-behavior: smooth; }
body.customer-page,
body.admin-page {
  background:
    radial-gradient(ellipse at 6% 0%, rgba(102, 0, 100, .055), transparent 34rem),
    var(--page-bg);
  color: var(--text-main);
  transition: background-color .22s ease, color .22s ease;
}

/* A arte original é preservada; a apresentação circular é feita apenas por CSS. */
.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  min-width: 0;
  color: var(--text-main);
  text-decoration: none;
}
.brand-logo {
  display: block;
  width: 104px;
  height: 104px;
  flex: 0 0 auto;
  object-fit: contain;
  object-position: center;
  background: #fff;
}
.brand-mark { display: none !important; }

.customer-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 116px;
  height: auto;
  padding: 6px max(20px, calc((100vw - 1240px) / 2));
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 28px rgba(43, 12, 47, .045);
  backdrop-filter: blur(18px);
}
.customer-header .brand-logo { width: 104px; height: 104px; }
.customer-header-actions,
.admin-topbar-actions,
.login-top-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}
.login-top-row { justify-content: space-between; margin-bottom: 28px; }
.login-top-row .brand-logo { width: 120px; height: 120px; }
.theme-toggle {
  min-height: 42px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-soft);
  box-shadow: 0 3px 10px rgba(43, 12, 47, .035);
  font-size: 11px;
  font-weight: 800;
  transition: transform .18s ease, border-color .18s ease, background .18s ease, color .18s ease;
}
.theme-toggle:hover {
  transform: translateY(-1px);
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-strong);
}
.theme-toggle [data-theme-icon] { color: var(--accent); font-size: 16px; }
.admin-shortcut {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 9px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--accent-strong);
  font-size: 11px;
  font-weight: 800;
  transition: background .18s ease, transform .18s ease, border-color .18s ease;
}
.admin-shortcut:hover {
  transform: translateY(-1px);
  border-color: var(--accent);
  background: var(--accent-soft);
}

.customer-main { max-width: 1240px; padding: 0 clamp(16px, 3vw, 28px) 28px; }
.customer-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(22px, 5vw, 64px);
  min-height: 350px;
  margin: 28px 0 22px;
  padding: clamp(30px, 5vw, 58px);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 30px;
  background:
    radial-gradient(circle at 78% 18%, rgba(226, 185, 0, .15), transparent 20rem),
    radial-gradient(circle at 12% 100%, rgba(193, 111, 195, .25), transparent 25rem),
    linear-gradient(118deg, #320932 0%, #560052 50%, #74116f 100%);
  box-shadow: var(--shadow-float);
}
.customer-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 440px;
  height: 440px;
  right: 21%;
  top: -310px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 50%;
  box-shadow: 0 0 0 28px rgba(255,255,255,.025), 0 0 0 62px rgba(255,255,255,.018);
}
.customer-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: 36%;
  bottom: -115px;
  width: 210px;
  height: 210px;
  border: 1px solid rgba(237,207,88,.23);
  border-radius: 50%;
}
.hero-copy { position: relative; z-index: 2; max-width: 560px; }
.customer-hero .eyebrow { color: #f0d5f0; }
.customer-hero h1 {
  max-width: 610px;
  margin: 14px 0 16px;
  color: #fff;
  font-size: clamp(38px, 5.2vw, 60px);
  font-weight: 850;
  letter-spacing: -2.5px;
  line-height: 1.02;
}
.customer-hero h1 em { color: #f0cf55; font-style: normal; }
.customer-hero p { max-width: 460px; color: rgba(255,255,255,.84); font-size: 15px; line-height: 1.75; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 25px; }
.hero-tags span {
  padding: 9px 13px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  background: rgba(255,255,255,.09);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  backdrop-filter: blur(8px);
}
.hero-art {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: min(36%, 370px);
  height: 270px;
  flex: 0 0 auto;
}
.hero-art.has-photo {
  width: min(39%, 390px);
  height: 275px;
  padding: 13px;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 26px;
  background: rgba(255,255,255,.11);
  box-shadow: 0 22px 46px rgba(17, 0, 24, .24);
  backdrop-filter: blur(9px);
}
.hero-photo {
  display: block;
  width: 100%;
  height: 100%;
  padding: 8px;
  object-fit: contain;
  object-position: center;
  border: 1px solid rgba(255,255,255,.65);
  border-radius: 18px;
  background: rgba(255,255,255,.96);
  box-shadow: none;
  transform: none;
}
.açai-bowl { filter: drop-shadow(0 20px 22px rgba(0,0,0,.25)); }

.notice-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 18px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface);
  color: var(--text-soft);
  box-shadow: 0 5px 18px rgba(43, 12, 47, .035);
  font-size: 12px;
  line-height: 1.6;
}
.notice-icon { background: var(--accent-soft); color: var(--accent); }
.site-alert { border: 1px solid var(--line); border-radius: 14px; }
.site-alert.error { background: #fff0f2; color: #9e344d; }
.site-alert.warning { background: #fff8e6; color: #7d5d17; }
.site-alert.success { background: #edf8f0; color: #246b44; }

.menu-section,
.cart-section,
.checkout-section { padding-top: 54px; scroll-margin-top: 132px; }
.section-heading { align-items: end; gap: 18px; margin-bottom: 22px; }
.section-heading .eyebrow { color: var(--accent); }
.section-heading h2 {
  margin: 7px 0 7px;
  color: var(--text-main);
  font-size: clamp(25px, 3vw, 32px);
  font-weight: 850;
  letter-spacing: -1px;
}
.section-heading p { color: var(--text-soft); font-size: 12px; line-height: 1.65; }
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 360px));
  justify-content: center;
  align-items: stretch;
  gap: 22px;
}
.product-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  min-width: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow-card);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.product-card:hover {
  transform: translateY(-5px);
  border-color: color-mix(in srgb, var(--accent) 30%, var(--line));
  box-shadow: var(--shadow-float);
}
.product-media {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 4 / 3;
  min-height: 225px;
  padding: 13px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 40%, rgba(255,255,255,.92), transparent 64%),
    linear-gradient(145deg, #f6eef5, #eee2ef);
  border-bottom: 1px solid var(--line);
}
.product-photo {
  display: block;
  width: 100%;
  height: 100%;
  padding: 5px;
  object-fit: contain;
  object-position: center center;
  border-radius: 15px;
  background: transparent;
  transition: transform .25s ease;
}
.product-card:hover .product-photo { transform: scale(1.025); }
.product-photo-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border-radius: 16px;
  color: #fff;
  font-size: clamp(58px, 7vw, 82px);
  text-shadow: 0 8px 18px rgba(30,10,42,.22);
  background:
    radial-gradient(ellipse at 50% 64%, #351542 0 23%, transparent 24%),
    radial-gradient(ellipse at 50% 58%, #5c2b70 0 36%, transparent 37%),
    radial-gradient(circle at 50% 45%, rgba(255,255,255,.24), transparent 34%),
    linear-gradient(145deg, #b46db2, #74116f 54%, #3b0a3d);
}
.product-sold-out-ribbon {
  position: absolute;
  top: 15px;
  right: 15px;
  padding: 7px 11px;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 999px;
  background: rgba(52, 13, 52, .88);
  color: #fff;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .45px;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}
.product-info {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 7px;
  padding: 20px 21px 21px;
}
.product-name { margin: 0; color: var(--text-main); font-size: 16px; font-weight: 850; line-height: 1.35; }
.product-unit { margin: 0 0 11px; color: var(--text-faint); font-size: 11px; }
.product-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; }
.product-price { color: var(--accent); font-size: 20px; font-weight: 900; letter-spacing: -.4px; }
.add-button {
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid var(--accent);
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 850;
  box-shadow: 0 7px 17px rgba(102,0,100,.16);
  transition: background .18s ease, transform .18s ease, box-shadow .18s ease;
}
.add-button:hover { transform: translateY(-1px); background: var(--accent-strong); box-shadow: 0 10px 22px rgba(102,0,100,.22); }
.product-card.is-sold-out { background: var(--surface); opacity: 1; }
.product-card.is-sold-out .product-photo { filter: grayscale(.65); opacity: .68; }
.product-card.is-sold-out .product-name { color: var(--text-faint); text-decoration: line-through; }
.product-card.is-sold-out .product-price { color: #b65a70; font-size: 12px; letter-spacing: .55px; }
.sold-out-label { color: var(--text-faint); font-size: 10px; font-weight: 700; }
.loading-card { border: 1px dashed var(--line); border-radius: 18px; background: var(--surface); color: var(--text-soft); }

.cart-count { padding: 9px 14px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-strong); font-size: 11px; font-weight: 850; }
.cart-panel,
.checkout-panel,
.success-panel {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow-card);
  color: var(--text-main);
}
.cart-panel { padding: clamp(18px, 3vw, 28px); }
.cart-line { border-color: var(--line); }
.cart-line-info strong { color: var(--text-main); }
.cart-line-info small,
.empty-cart { color: var(--text-soft); }
.cart-line-total,
.cart-summary strong { color: var(--accent); }
.quantity-control button { width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-soft); color: var(--accent); }
.cart-summary { color: var(--text-soft); }
.cart-summary strong { font-size: 24px; }
.checkout-panel { padding: clamp(18px, 3vw, 28px); gap: 20px; }
.checkout-panel label,
.stack-form label,
.fulfillment-choice legend { color: var(--text-main); }
.checkout-panel .payment-method-field small {
  color: var(--text-soft);
  font-size: 10px;
  font-weight: 500;
  line-height: 1.55;
}
.checkout-panel input,
.checkout-panel textarea,
.checkout-panel select,
.stack-form input,
.table-input,
.add-product-form input:not([type="file"]) {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--field-bg);
  color: var(--text-main);
  transition: border-color .18s ease, box-shadow .18s ease;
}
.checkout-panel input:focus,
.checkout-panel textarea:focus,
.checkout-panel select:focus,
.stack-form input:focus,
.table-input:focus,
.add-product-form input:not([type="file"]):focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 15%, transparent);
}
.checkout-panel input::placeholder,
.checkout-panel textarea::placeholder,
.stack-form input::placeholder { color: var(--text-faint); }
.choice { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.choice:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.choice strong { color: var(--text-main); }
.choice small { color: var(--text-soft); }
.checkout-disclaimer { border: 1px solid #eadfbf; border-radius: 13px; background: #fff9e9; color: #765e2e; }
.success-panel { padding: clamp(24px, 4vw, 38px); }
.success-code { border-color: var(--line); background: var(--surface-soft); }
.success-code strong { color: var(--accent); }
.success-code span,
.success-panel > p { color: var(--text-soft); }
.customer-footer { margin-top: 58px; padding: 24px 0 34px; border-color: var(--line); color: var(--text-faint); }
.customer-footer span:first-child { color: var(--accent); font-weight: 900; letter-spacing: .3px; }

/* Administrative area */
.admin-page { background: var(--page-bg); }
.login-card {
  width: min(500px, calc(100% - 32px));
  margin: 5vh auto;
  padding: clamp(26px, 4vw, 40px);
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--surface);
  box-shadow: var(--shadow-float);
  color: var(--text-main);
}
.login-card h1 { margin: 8px 0 10px; color: var(--text-main); font-size: 30px; letter-spacing: -.9px; }
.login-card > p { color: var(--text-soft); line-height: 1.7; }
.login-card .eyebrow { color: var(--accent); }
.login-card .back-link { display: inline-block; margin-top: 10px; color: var(--accent); font-size: 12px; font-weight: 750; }
.login-card .back-link:hover { text-decoration: underline; }
.admin-app { min-height: 100vh; background: var(--page-bg); }
.admin-sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  height: 100vh;
  padding: 20px 16px 22px;
  border-right: 1px solid rgba(255,255,255,.09);
  background:
    radial-gradient(circle at 20% 0%, rgba(191, 112, 188, .20), transparent 18rem),
    linear-gradient(180deg, #310b35 0%, #1c1122 100%);
  box-shadow: 10px 0 35px rgba(24, 10, 36, .08);
}
.admin-sidebar .brand { width: 100%; margin: 0 auto 28px; justify-content: center; }
.admin-sidebar .brand-logo { width: 140px; height: 140px; }
.admin-nav { display: grid; gap: 8px; }
.admin-nav-button {
  min-height: 46px;
  padding: 12px 13px;
  border: 1px solid transparent;
  border-radius: 13px;
  background: transparent;
  color: #e4d8e8;
  font-size: 12px;
  font-weight: 780;
  transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}
.admin-nav-button:hover { transform: translateX(2px); border-color: rgba(255,255,255,.10); background: rgba(255,255,255,.07); color: #fff; }
.admin-nav-button.is-active { border-color: rgba(255,255,255,.12); background: linear-gradient(110deg, rgba(148, 52, 151, .78), rgba(102, 0, 100, .66)); color: #fff; box-shadow: 0 8px 18px rgba(0,0,0,.14); }
.nav-count { border-radius: 999px; background: #f0ce55; color: #3a1738; padding: 3px 8px; font-size: 10px; font-weight: 900; }
.sidebar-bottom { border-color: rgba(255,255,255,.14); }
.sidebar-bottom a,
.logout-button { color: #e2d2e8; }
.admin-content { max-width: 1640px; padding: clamp(24px, 3.5vw, 48px); color: var(--text-main); }
.admin-topbar { align-items: center; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.admin-topbar h1 { margin: 7px 0 5px; color: var(--text-main); font-size: clamp(27px, 3vw, 34px); font-weight: 880; letter-spacing: -1.2px; }
.admin-topbar p { margin: 0; color: var(--text-soft); font-size: 12px; }
.admin-topbar .eyebrow { color: var(--accent); }
.admin-alert { border: 1px solid var(--line); border-radius: 13px; }
.admin-alert.success { background: #eef8f0; color: #226841; }
.admin-alert.error { background: #fff0f2; color: #9c344c; }
.admin-tab { gap: 22px; }
.summary-cards { gap: 15px; }
.summary-cards article {
  min-height: 124px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow-card);
}
.summary-cards span { color: var(--text-soft); font-size: 11px; font-weight: 780; }
.summary-cards strong { margin: 10px 0 4px; color: var(--accent); font-size: 30px; font-weight: 900; letter-spacing: -.8px; }
.summary-cards small { color: var(--text-faint); font-size: 10px; }
.panel {
  min-width: 0;
  padding: clamp(17px, 2.5vw, 26px);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow-card);
  color: var(--text-main);
}
.panel-heading { align-items: center; margin-bottom: 20px; }
.panel-heading h2 { color: var(--text-main); font-size: 17px; font-weight: 850; letter-spacing: -.25px; }
.panel-heading p { color: var(--text-soft); line-height: 1.6; }
.live-label { color: var(--text-soft); }
.orders-list { gap: 16px; }
.order-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-raised);
  box-shadow: 0 5px 16px rgba(43, 12, 47, .035);
}
.order-code { color: var(--accent); font-weight: 900; }
.order-items { border-radius: 11px; background: var(--surface-soft); color: var(--text-soft); }
.payment-status-line { font-weight: 800; }
.payment-status-line.pending { color: #9a6a1b; }
.payment-status-line.paid { color: #27845b; }
.payment-status-line.not_informed { color: var(--text-faint); }
.order-card-bottom { border-color: var(--line); }
.order-total { color: var(--text-main); font-size: 14px; font-weight: 900; }
.status-badge { padding: 6px 10px; border-radius: 999px; font-size: 9px; font-weight: 900; }
.data-table { font-size: 12px; }
.data-table th {
  padding: 13px 11px;
  border-bottom: 1px solid var(--line);
  color: var(--text-faint);
  font-size: 9px;
  letter-spacing: .9px;
}
.data-table td { padding: 13px 11px; border-bottom: 1px solid var(--line); color: var(--text-soft); }
.table-input { padding: 9px 10px; }
.add-product-form { align-items: end; gap: 14px; }
.add-product-form label { color: var(--text-main); font-size: 11px; font-weight: 800; }
.add-product-form input:not([type="file"]) { min-height: 42px; padding: 10px 12px; }
.photo-field input[type="file"] { border: 1px dashed var(--line); border-radius: 12px; padding: 11px; background: var(--surface-soft); color: var(--text-soft); }
.photo-field small { color: var(--text-faint); }
.stock-photo-preview,
.stock-photo-placeholder {
  width: 82px;
  height: 82px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-soft);
  object-fit: contain;
  padding: 4px;
}
.photo-upload-control { min-height: 30px; padding: 6px 10px; border-radius: 9px; font-size: 10px !important; }
.settings-panel .stack-form label { color: var(--text-main); }
.settings-panel .stack-form label small { color: var(--text-soft); }
.safety-note { background: var(--surface); }
.safety-note h2 { color: var(--text-main); }
.safety-note p { color: var(--text-soft); line-height: 1.7; }
.safety-note code { border-radius: 8px; background: var(--surface-soft); color: var(--accent); }
.admin-footer { color: var(--text-faint); }
.button { min-height: 40px; border-radius: 12px; font-weight: 850; }
.button-primary { background: linear-gradient(135deg, #7b187a, #590057); box-shadow: 0 8px 20px rgba(102,0,100,.18); }
.button-primary:hover:not(:disabled) { background: linear-gradient(135deg, #691268, #440044); }
.button-ghost { border: 1px solid var(--line); background: var(--surface); color: var(--accent); }
.button-ghost:hover:not(:disabled) { background: var(--accent-soft); }
.button-muted { border: 1px solid var(--line); background: var(--accent-soft); color: var(--accent-strong); }
.button-danger { border-radius: 11px; }
.back-link { color: var(--accent); }

/* Preserve legibility of status and helper surfaces in both themes. */
:root[data-theme="dark"] .product-media {
  background: radial-gradient(circle at 50% 40%, rgba(255,255,255,.08), transparent 64%), linear-gradient(145deg, #302334, #241a29);
}
:root[data-theme="dark"] .product-photo { background: transparent; }
:root[data-theme="dark"] .customer-header { background: color-mix(in srgb, var(--surface) 93%, transparent); border-color: var(--line); }
:root[data-theme="dark"] .admin-shortcut { background: var(--surface); color: var(--text-main); border-color: var(--line); }
:root[data-theme="dark"] .notice-strip { background: var(--surface); border-color: var(--line); color: var(--text-soft); }
:root[data-theme="dark"] .notice-icon { background: var(--surface-soft); color: var(--accent); }
:root[data-theme="dark"] .section-heading h2,
:root[data-theme="dark"] .product-name,
:root[data-theme="dark"] .cart-line-info strong,
:root[data-theme="dark"] .cart-summary strong,
:root[data-theme="dark"] .login-card h1,
:root[data-theme="dark"] .admin-topbar h1,
:root[data-theme="dark"] .panel-heading h2,
:root[data-theme="dark"] .summary-cards strong,
:root[data-theme="dark"] .order-code,
:root[data-theme="dark"] .order-customer strong,
:root[data-theme="dark"] .order-total { color: var(--text-main); }
:root[data-theme="dark"] .section-heading p,
:root[data-theme="dark"] .product-unit,
:root[data-theme="dark"] .cart-line-info small,
:root[data-theme="dark"] .cart-summary,
:root[data-theme="dark"] .login-card > p,
:root[data-theme="dark"] .admin-topbar p,
:root[data-theme="dark"] .summary-cards span,
:root[data-theme="dark"] .summary-cards small,
:root[data-theme="dark"] .panel-heading p,
:root[data-theme="dark"] .live-label,
:root[data-theme="dark"] .order-code-wrap small,
:root[data-theme="dark"] .order-customer span,
:root[data-theme="dark"] .order-details,
:root[data-theme="dark"] .empty-cart { color: var(--text-soft); }
:root[data-theme="dark"] .product-card,
:root[data-theme="dark"] .cart-panel,
:root[data-theme="dark"] .checkout-panel,
:root[data-theme="dark"] .success-panel,
:root[data-theme="dark"] .login-card,
:root[data-theme="dark"] .panel,
:root[data-theme="dark"] .summary-cards article,
:root[data-theme="dark"] .order-card,
:root[data-theme="dark"] .loading-card { background: var(--surface); border-color: var(--line); }
:root[data-theme="dark"] .order-items,
:root[data-theme="dark"] .success-code { background: var(--surface-soft); color: var(--text-soft); border-color: var(--line); }
:root[data-theme="dark"] .quantity-control button,
:root[data-theme="dark"] .button-ghost,
:root[data-theme="dark"] .button-muted { background: var(--surface-soft); border-color: var(--line); color: var(--text-main); }
:root[data-theme="dark"] .checkout-panel label,
:root[data-theme="dark"] .stack-form label,
:root[data-theme="dark"] .fulfillment-choice legend,
:root[data-theme="dark"] .add-product-form label { color: var(--text-main); }
:root[data-theme="dark"] .checkout-panel input,
:root[data-theme="dark"] .checkout-panel textarea,
:root[data-theme="dark"] .stack-form input,
:root[data-theme="dark"] .table-input,
:root[data-theme="dark"] .add-product-form input:not([type="file"]) { background: var(--field-bg); color: var(--text-main); border-color: var(--line); }
:root[data-theme="dark"] .checkout-panel input::placeholder,
:root[data-theme="dark"] .checkout-panel textarea::placeholder,
:root[data-theme="dark"] .stack-form input::placeholder { color: var(--text-faint); }
:root[data-theme="dark"] .choice { background: var(--surface); border-color: var(--line); }
:root[data-theme="dark"] .choice:has(input:checked) { background: var(--surface-soft); border-color: var(--accent); }
:root[data-theme="dark"] .choice strong { color: var(--text-main); }
:root[data-theme="dark"] .choice small { color: var(--text-soft); }
:root[data-theme="dark"] .customer-footer { border-color: var(--line); color: var(--text-faint); }
:root[data-theme="dark"] .data-table th,
:root[data-theme="dark"] .data-table td { border-color: var(--line); color: var(--text-soft); }
:root[data-theme="dark"] .stock-product-name { color: var(--text-main) !important; }
:root[data-theme="dark"] .photo-field input[type="file"] { background: var(--surface-soft); color: var(--text-soft); border-color: var(--line); }
:root[data-theme="dark"] .login-card .back-link { color: var(--accent-strong); }
:root[data-theme="dark"] .checkout-disclaimer { border-color: #66552d; background: #302719; color: #e7d6a9; }


:root[data-theme="dark"] .payment-status-line.pending { color: #f1c36c; }
:root[data-theme="dark"] .payment-status-line.paid { color: #83d6a5; }

@media (max-width: 900px) {
  .customer-header { padding-inline: 18px; }
  .customer-hero { gap: 20px; }
  .hero-art.has-photo { width: 36%; height: 245px; }
  .summary-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .add-product-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .photo-field { grid-column: 1 / -1; }
}
@media (max-width: 700px) {
  .customer-header { min-height: 92px; padding: 5px 13px; gap: 8px; }
  .customer-header .brand-logo { width: 82px; height: 82px; }
  .customer-header-actions { gap: 6px; }
  .customer-header-actions .theme-toggle { min-height: 36px; padding: 7px 10px; font-size: 10px; }
  .admin-shortcut { min-height: 36px; padding: 7px 10px; font-size: 10px; }
  .customer-main { padding-inline: 14px; }
  .customer-hero { min-height: 290px; margin: 18px 0 16px; padding: 29px 23px; border-radius: 23px; }
  .customer-hero h1 { max-width: 490px; font-size: clamp(34px, 8vw, 44px); letter-spacing: -1.5px; }
  .customer-hero p { max-width: 390px; font-size: 13px; }
  .hero-art { position: absolute; right: -22px; bottom: -20px; width: 185px; height: 170px; opacity: .35; }
  .hero-art.has-photo { right: 12px; bottom: 10px; width: 40%; height: 180px; padding: 7px; opacity: .9; }
  .hero-photo { padding: 4px; border-radius: 13px; }
  .hero-copy { max-width: 76%; }
  .hero-tags { gap: 6px; margin-top: 18px; }
  .hero-tags span { padding: 7px 9px; font-size: 9px; }
  .menu-section, .cart-section, .checkout-section { padding-top: 39px; }
  .section-heading { align-items: flex-start; }
  .section-heading h2 { font-size: 24px; }
  .product-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); justify-content: stretch; gap: 15px; }
  .product-media { min-height: 190px; aspect-ratio: 4 / 3; }
  .product-info { padding: 16px; }
  .product-name { font-size: 15px; }
  .product-price { font-size: 18px; }
  .add-button { min-height: 39px; padding: 9px 12px; }
  .customer-footer { flex-direction: column; gap: 7px; }
  .admin-app { display: block; }
  .admin-sidebar { position: relative; min-height: 0; height: auto; padding: 9px 13px 14px; }
  .admin-sidebar .brand { justify-content: flex-start; margin: 0 0 9px; }
  .admin-sidebar .brand-logo { width: 86px; height: 86px; }
  .admin-nav { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; }
  .admin-nav-button { flex: 0 0 auto; width: auto; min-height: 39px; padding: 9px 12px; white-space: nowrap; }
  .sidebar-bottom { display: flex; justify-content: space-between; margin-top: 8px; padding: 10px 3px 0; }
  .admin-content { padding: 22px 13px; }
  .admin-topbar { align-items: flex-start; flex-wrap: wrap; gap: 12px; }
  .admin-topbar h1 { font-size: 26px; }
  .admin-topbar-actions { justify-content: flex-start; }
  .admin-topbar-actions .theme-toggle { width: auto; padding: 8px 11px; }
  .admin-topbar-actions .theme-toggle [data-theme-label] { display: inline; }
  .orders-list { grid-template-columns: 1fr; }
  .login-card { margin: 18px auto; padding: 24px; }
  .login-top-row { align-items: flex-start; }
  .login-top-row .brand-logo { width: 96px; height: 96px; }
  .login-top-row .theme-toggle { width: auto; min-height: 36px; padding: 7px 10px; }
  .login-top-row .theme-toggle [data-theme-label] { display: inline; }
}
@media (max-width: 520px) {
  .customer-header { min-height: 82px; padding: 4px 10px; }
  .customer-header .brand-logo { width: 72px; height: 72px; }
  .customer-header-actions { gap: 5px; }
  .customer-header-actions .theme-toggle [data-theme-label] { display: none; }
  .customer-header-actions .theme-toggle { width: 38px; min-width: 38px; padding: 0; justify-content: center; }
  .admin-shortcut { font-size: 9px; padding: 7px 8px; }
  .customer-hero { min-height: 300px; padding: 26px 19px; }
  .hero-copy { max-width: 100%; padding-right: 42px; }
  .customer-hero h1 { font-size: clamp(32px, 9vw, 39px); }
  .customer-hero p { max-width: 100%; font-size: 12px; }
  .hero-art.has-photo { right: 4px; bottom: 4px; width: 126px; height: 145px; padding: 5px; opacity: .38; }
  .hero-art:not(.has-photo) { right: -45px; opacity: .2; }
  .hero-tags span { font-size: 8px; }
  .product-grid { grid-template-columns: 1fr; }
  .product-media { min-height: 220px; aspect-ratio: 5 / 4; }
  .product-info { padding: 17px; }
  .product-footer { align-items: center; flex-direction: row; }
  .add-button { width: auto; }
  .form-grid { grid-template-columns: 1fr; }
  .checkout-actions { flex-direction: column-reverse; }
  .checkout-actions .button { width: 100%; }
  .login-top-row .brand-logo { width: 82px; height: 82px; }
  .login-top-row .theme-toggle [data-theme-label] { display: none; }
  .login-top-row .theme-toggle { width: 38px; min-width: 38px; padding: 0; }
  .summary-cards { gap: 9px; }
  .summary-cards article { min-height: 110px; padding: 13px; }
  .summary-cards strong { font-size: 24px; }
  .panel { padding: 15px; }
  .panel-heading { align-items: flex-start; flex-direction: column; }
  .add-product-form { grid-template-columns: 1fr; }
  .photo-field { grid-column: auto; }
  .table-wrap { padding-bottom: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}


/* PESSAÍ 2.3.4 — refinamento do cabeçalho e das fotografias */
.customer-header {
  min-height: 88px;
  padding-block: 5px;
}
.customer-header .brand-logo {
  width: 78px;
  height: 78px;
  object-fit: contain;
  background: #fff;
  border-radius: 50%;
}
.customer-header .brand {
  padding: 3px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 3px 14px rgba(64, 20, 67, .08);
}
.customer-main { max-width: 1160px; }
.customer-hero {
  min-height: 300px;
  padding: clamp(28px, 4.5vw, 48px);
}
.hero-art:not(.has-photo) {
  width: min(34%, 330px);
  height: 230px;
}
.açai-bowl {
  transform: rotate(-5deg) scale(1.05);
}
.product-grid {
  grid-template-columns: repeat(auto-fill, minmax(245px, 1fr));
  gap: 22px;
}
.product-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  border-radius: 20px;
  overflow: hidden;
  background: var(--surface);
}
.product-media {
  width: 100%;
  aspect-ratio: 4 / 5;
  min-height: 0;
  height: auto;
  padding: 10px;
  background: #f4eff4;
  border-bottom: 1px solid var(--line);
}
.product-photo {
  width: 100%;
  height: 100%;
  padding: 0;
  object-fit: contain;
  object-position: center;
  border-radius: 12px;
  background: transparent;
  transform: none !important;
}
.product-card .product-info {
  width: 100%;
  padding: 17px 18px 18px;
}
.product-card .product-name { font-size: 15px; }
.product-card .product-price { font-size: 17px; font-weight: 850; }
.product-card .add-button {
  min-height: 40px;
  padding: 10px 15px;
  border-radius: 11px;
}
.product-card:hover { transform: translateY(-3px); }
.product-card.is-sold-out .product-photo {
  filter: grayscale(.35);
  opacity: .78;
}
@media (max-width: 700px) {
  .customer-header { min-height: 70px; padding: 4px 14px; }
  .customer-header .brand-logo { width: 62px; height: 62px; }
  .customer-hero { min-height: 260px; }
  .hero-art:not(.has-photo) { opacity: .24; right: -30px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .product-media { aspect-ratio: 3 / 4; padding: 7px; }
  .product-card .product-info { padding: 12px; }
  .product-card .product-name { font-size: 13px; }
  .product-card .product-footer { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 390px) {
  .product-grid { grid-template-columns: 1fr; }
  .product-card .product-footer { flex-direction: row; align-items: center; }
}


/* PESSAÍ 2.3.5 — marca circular sem modificar a arte original */
.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 78px;
  height: 78px;
  min-width: 78px;
  padding: 0;
  overflow: hidden;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 3px 14px rgba(64, 20, 67, .08);
  line-height: 0;
}
.brand-logo {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  flex: 0 0 100%;
  border-radius: 50%;
  clip-path: circle(50% at 50% 50%);
  object-fit: cover;
  object-position: center;
  background: transparent;
}
.customer-header .brand { width: 76px; height: 76px; min-width: 76px; }
.customer-header .brand-logo { width: 100%; height: 100%; }
.login-top-row .brand { width: 92px; height: 92px; min-width: 92px; }
.login-top-row .brand-logo { width: 100%; height: 100%; }
.admin-sidebar .brand {
  width: 112px;
  height: 112px;
  min-width: 112px;
  margin: 0 auto 28px;
}
.admin-sidebar .brand-logo { width: 100%; height: 100%; }
@media (max-width: 700px) {
  .customer-header .brand { width: 62px; height: 62px; min-width: 62px; }
  .login-top-row .brand { width: 76px; height: 76px; min-width: 76px; }
  .admin-sidebar .brand { width: 82px; height: 82px; min-width: 82px; }
}


/* PESSAÍ 2.3.6 — banner de marca: selo circular com a logo original */
.customer-hero {
  gap: clamp(18px, 3vw, 42px);
}
.hero-copy {
  flex: 1 1 58%;
  max-width: 620px;
}
.hero-brand {
  position: relative;
  z-index: 2;
  flex: 0 0 min(36%, 350px);
  min-height: 260px;
  display: grid;
  place-items: center;
  isolation: isolate;
}
.hero-brand::before {
  content: "";
  position: absolute;
  z-index: -2;
  width: 226px;
  aspect-ratio: 1;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.15) 0%, rgba(247,211,93,.10) 58%, rgba(255,255,255,0) 73%);
  box-shadow: 0 0 0 17px rgba(255,255,255,.045), 0 0 0 36px rgba(255,255,255,.025);
}
.hero-brand::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 276px;
  height: 224px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 50%;
  transform: rotate(-22deg);
}
.hero-brand-seal {
  position: relative;
  width: 208px;
  aspect-ratio: 1;
  padding: 7px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(247,211,93,.65);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 24px 48px rgba(20,0,24,.28), 0 0 0 8px rgba(255,255,255,.09);
  transform: rotate(-3deg);
  transition: transform .25s ease, box-shadow .25s ease;
}
.hero-brand-seal:hover {
  transform: rotate(0deg) translateY(-3px);
  box-shadow: 0 28px 54px rgba(20,0,24,.32), 0 0 0 9px rgba(255,255,255,.11);
}
.hero-brand-logo {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: contain;
  object-position: center;
  background: #fff;
}
.hero-brand-dot {
  position: absolute;
  display: block;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(255,255,255,.08);
}
.hero-brand-dot-gold {
  top: 32px;
  right: 34px;
  background: #f2cf52;
}
.hero-brand-dot-green {
  left: 35px;
  bottom: 34px;
  width: 9px;
  height: 9px;
  background: #78a84b;
}
@media (max-width: 900px) {
  .hero-brand { flex-basis: 32%; min-height: 230px; }
  .hero-brand-seal { width: 174px; }
  .hero-brand::before { width: 190px; }
  .hero-brand::after { width: 228px; height: 190px; }
}
@media (max-width: 700px) {
  .hero-brand { display: none; }
  .hero-copy { max-width: 100%; padding-right: 0; }
  .customer-hero { gap: 0; }
}


/* PESSAÍ 2.3.7 — painel administrativo realmente adaptado a celular */
.admin-page,
.admin-shell,
.admin-app,
.admin-content,
.admin-tab,
.panel,
.order-card {
  min-width: 0;
  max-width: 100%;
}
.admin-page { width: 100%; overflow-x: hidden; }
.admin-app { width: 100%; }
.admin-content { width: 100%; }
.table-wrap {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-soft) transparent;
}
.table-wrap .data-table { min-width: 700px; }
.table-scroll-hint {
  display: none;
  margin: 8px 0 0;
  color: var(--text-faint);
  font-size: 10px;
  line-height: 1.45;
}

@media (max-width: 900px) {
  .admin-app { grid-template-columns: 180px minmax(0, 1fr); }
  .admin-sidebar { padding-inline: 12px; }
  .admin-content { padding: 22px 18px; }
  .summary-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .add-product-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .add-product-form label:first-child { grid-column: 1 / -1; }
}

@media (max-width: 700px) {
  html, body.admin-page { width: 100%; min-width: 320px; overflow-x: hidden; }
  .admin-shell { width: 100%; min-width: 0; min-height: 100dvh; }
  .admin-app {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    min-width: 0;
    min-height: 100dvh;
  }
  .admin-sidebar {
    position: relative;
    inset: auto;
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    width: 100%;
    min-width: 0;
    min-height: 0;
    height: auto;
    padding: 10px 12px 11px;
    border-right: 0;
    border-bottom: 1px solid rgba(255,255,255,.12);
  }
  .admin-sidebar .brand {
    display: inline-flex;
    align-self: flex-start;
    width: 66px;
    height: 66px;
    min-width: 66px;
    margin: 0 0 10px;
  }
  .admin-sidebar .brand-logo { width: 100%; height: 100%; }
  .admin-nav {
    display: flex;
    flex-wrap: nowrap;
    width: 100%;
    max-width: 100%;
    gap: 7px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0 0 7px;
    margin: 0;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,.3) transparent;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
  }
  .admin-nav-button {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: auto;
    max-width: none;
    min-height: 42px;
    padding: 9px 12px;
    white-space: nowrap;
    font-size: 12px;
  }
  .sidebar-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 9px 16px;
    width: 100%;
    min-width: 0;
    margin-top: 5px;
    padding: 10px 2px 0;
  }
  .sidebar-bottom a,
  .logout-button { min-height: 32px; display: inline-flex; align-items: center; }
  .admin-content {
    display: block;
    flex: 1 1 auto;
    width: 100%;
    max-width: none;
    min-width: 0;
    margin: 0;
    padding: 18px 12px 28px;
  }
  .admin-topbar {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 12px;
    width: 100%;
    min-width: 0;
    margin-bottom: 18px;
    padding-bottom: 16px;
  }
  .admin-topbar > div:first-child { min-width: 0; max-width: 100%; }
  .admin-topbar .eyebrow { display: block; line-height: 1.5; overflow-wrap: anywhere; }
  .admin-topbar h1 { font-size: clamp(23px, 6vw, 28px); line-height: 1.15; overflow-wrap: anywhere; }
  .admin-topbar p { max-width: none; width: 100%; font-size: 12px; line-height: 1.55; overflow-wrap: anywhere; }
  .admin-topbar-actions {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    min-width: 0;
    gap: 8px;
  }
  .admin-topbar-actions > button { flex: 0 1 auto; min-width: 0; max-width: 100%; }
  .admin-topbar-actions .theme-toggle {
    display: inline-flex;
    width: auto;
    min-width: 0;
    min-height: 40px;
    padding: 8px 11px;
    white-space: nowrap;
  }
  .admin-topbar-actions .theme-toggle [data-theme-label] { display: inline; }
  #refresh-button { min-height: 40px; white-space: nowrap; }
  .admin-alert { width: 100%; max-width: 100%; overflow-wrap: anywhere; }
  .admin-tab { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; width: 100%; min-width: 0; }
  .summary-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    min-width: 0;
    gap: 9px;
  }
  .summary-cards article {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 104px;
    padding: 12px 11px;
    overflow-wrap: anywhere;
  }
  .summary-cards span { font-size: 10px; line-height: 1.35; overflow-wrap: anywhere; }
  .summary-cards strong { margin: 7px 0 3px; font-size: clamp(21px, 6vw, 26px); line-height: 1.05; }
  .summary-cards small { font-size: 9px; line-height: 1.35; overflow-wrap: anywhere; }
  .panel {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    padding: 14px 12px;
    border-radius: 16px;
  }
  .panel-heading {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    width: 100%;
    min-width: 0;
    margin-bottom: 14px;
  }
  .panel-heading > div { width: 100%; min-width: 0; }
  .panel-heading h2 { font-size: 16px; line-height: 1.3; overflow-wrap: anywhere; }
  .panel-heading p { font-size: 11px; line-height: 1.55; overflow-wrap: anywhere; }
  .live-label { white-space: normal; line-height: 1.4; }
  .orders-list { display: grid; grid-template-columns: minmax(0, 1fr); width: 100%; min-width: 0; gap: 11px; }
  .order-card {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    padding: 13px 12px;
    overflow: hidden;
  }
  .order-card-head { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px; }
  .order-code-wrap { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
  .order-code { overflow-wrap: anywhere; }
  .status-badge { max-width: 100%; white-space: normal; text-align: center; line-height: 1.3; }
  .order-customer { min-width: 0; max-width: 100%; gap: 6px 8px; overflow-wrap: anywhere; }
  .order-customer strong,
  .order-customer span { max-width: 100%; overflow-wrap: anywhere; word-break: break-word; }
  .customer-wa-link { max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
  .order-items,
  .order-details { min-width: 0; max-width: 100%; overflow-wrap: anywhere; word-break: break-word; }
  .order-items > div,
  .order-details > span { min-width: 0; overflow-wrap: anywhere; word-break: break-word; }
  .order-card-bottom {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    min-width: 0;
    gap: 11px;
  }
  .order-total { overflow-wrap: anywhere; }
  .order-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    min-width: 0;
    gap: 7px;
  }
  .order-actions .button {
    width: 100%;
    min-width: 0;
    min-height: 40px;
    padding: 8px 7px;
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.25;
    font-size: 10px;
  }
  .table-wrap { width: 100%; max-width: 100%; overflow-x: auto; }
  .table-wrap .data-table { min-width: 700px; width: 700px; }
  .table-scroll-hint { display: block; }
  .add-product-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
    width: 100%;
    min-width: 0;
    gap: 12px;
  }
  .add-product-form label,
  .add-product-form input,
  .add-product-form button { width: 100%; min-width: 0; max-width: 100%; }
  .add-product-form label:first-child { grid-column: auto; }
  .photo-field { grid-column: auto; min-width: 0; }
  .photo-field input[type="file"] { display: block; width: 100%; max-width: 100%; min-width: 0; font-size: 11px; }
  .photo-field small { display: block; line-height: 1.45; overflow-wrap: anywhere; }
  .settings-panel,
  .safety-note { width: 100%; max-width: 100%; min-width: 0; }
  .settings-panel .stack-form { width: 100%; max-width: 100%; min-width: 0; }
  .settings-panel .stack-form label,
  .settings-panel .stack-form input,
  .settings-panel .stack-form button { width: 100%; min-width: 0; max-width: 100%; }
  .safety-note p,
  .safety-note code { max-width: 100%; overflow-wrap: anywhere; word-break: break-word; }
  .admin-footer { padding: 22px 4px 8px; line-height: 1.5; overflow-wrap: anywhere; }
}

@media (max-width: 390px) {
  .admin-content { padding-inline: 10px; }
  .admin-sidebar { padding-inline: 10px; }
  .admin-nav-button { padding-inline: 10px; font-size: 11px; }
  .summary-cards { gap: 7px; }
  .summary-cards article { padding: 10px 9px; }
  .panel { padding-inline: 10px; }
  .order-actions { grid-template-columns: minmax(0, 1fr); }
  .order-actions .button { min-height: 38px; }
  .table-wrap .data-table { min-width: 660px; width: 660px; }
}

@media (max-width: 350px) {
  .summary-cards { grid-template-columns: minmax(0, 1fr); }
  .admin-topbar-actions { align-items: stretch; }
  .admin-topbar-actions > button { flex: 1 1 100%; }
}


/* Pessaí 2.4.0 — entrega obrigatória e taxas por região */
.delivery-only-note {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-soft);
  color: var(--text-main);
}
.delivery-only-note > span { font-size: 24px; }
.delivery-only-note div { display: grid; gap: 3px; }
.delivery-only-note small { color: var(--text-soft); }
.delivery-fee-preview {
  margin: -5px 0 2px;
  padding: 11px 13px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: var(--surface-soft);
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.5;
}
.delivery-fee-preview.is-fixed {
  border-color: #b8e1c8;
  color: #23734a;
  background: #effaf3;
}
.delivery-fee-preview.is-quote {
  border-color: #efd5a7;
  color: #835a1b;
  background: #fff8eb;
}
:root[data-theme="dark"] .delivery-fee-preview.is-fixed {
  border-color: #286443;
  color: #b5e5c6;
  background: #172d21;
}
:root[data-theme="dark"] .delivery-fee-preview.is-quote {
  border-color: #785727;
  color: #f0d29b;
  background: #302516;
}
.order-pricing {
  display: grid;
  gap: 4px;
  min-width: 180px;
}
.order-pricing > span {
  color: var(--text-soft);
  font-size: 11px;
}
.order-pricing .order-total { color: var(--accent-strong); }
.button-fee { white-space: nowrap; }
.delivery-area-form,
.delivery-area-row {
  display: grid;
  grid-template-columns: minmax(170px, 1.6fr) minmax(150px, 1fr) minmax(110px, .7fr) auto;
  gap: 12px;
  align-items: end;
}
.delivery-area-form {
  margin: 16px 0;
  padding: 16px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.delivery-area-form label,
.delivery-area-row label {
  display: grid;
  gap: 6px;
  min-width: 0;
  color: var(--text-main);
  font-size: 12px;
  font-weight: 750;
}
.delivery-area-form input,
.delivery-area-form select,
.delivery-area-row input,
.delivery-area-row select {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 9px 11px;
  color: var(--text-main);
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--field-bg);
}
.delivery-area-row {
  grid-template-columns: minmax(160px, 1.5fr) minmax(150px, 1fr) minmax(100px, .7fr) auto minmax(150px, auto);
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.delivery-area-active {
  display: flex !important;
  flex-direction: row;
  align-items: center;
  gap: 8px !important;
  white-space: nowrap;
}
.delivery-area-active input { width: 18px; min-height: 18px; }
.delivery-area-actions {
  display: flex;
  gap: 7px;
  align-items: center;
}
.delivery-area-settings .form-help {
  color: var(--text-soft);
  font-size: 12px;
  line-height: 1.55;
}
.delivery-areas-list { display: grid; gap: 4px; }
@media (max-width: 760px) {
  .delivery-area-form { grid-template-columns: 1fr 1fr; }
  .delivery-area-form label:first-child { grid-column: 1 / -1; }
  .delivery-area-form button { width: 100%; }
  .delivery-area-row {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 14px 0;
  }
  .delivery-area-row label:first-child { grid-column: 1 / -1; }
  .delivery-area-actions { grid-column: 1 / -1; }
  .delivery-area-actions .button { flex: 1; }
  .order-card-bottom { align-items: flex-start; flex-direction: column; }
  .order-actions { width: 100%; }
  .order-actions .button { flex: 1; }
  .order-pricing { width: 100%; }
}
@media (max-width: 390px) {
  .delivery-area-form { grid-template-columns: 1fr; }
  .delivery-area-form label:first-child { grid-column: auto; }
  .delivery-area-row { grid-template-columns: 1fr; }
  .delivery-area-row label:first-child { grid-column: auto; }
  .delivery-area-actions { width: 100%; }
}


/* PESSAÍ 2.7.0 — escolha de tamanho e estoques independentes */
.product-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  width: 100%;
}
.product-size-select {
  width: 100%;
  min-width: 0;
  min-height: 40px;
  padding: 8px 10px;
  color: var(--text-main);
  background: var(--field-bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 11px;
  font-weight: 750;
}
.product-card .product-info { min-width: 0; }
.product-card .add-button { min-height: 40px; padding-inline: 12px; }
.add-product-form {
  grid-template-columns: minmax(170px, 1.4fr) repeat(4, minmax(90px, .8fr)) minmax(170px, 1.2fr) auto;
}
.table-wrap .data-table { min-width: 1080px; }
@media (max-width: 900px) {
  .add-product-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .add-product-form label:first-child { grid-column: 1 / -1; }
}
@media (max-width: 700px) {
  .product-footer { grid-template-columns: minmax(0, 1fr); }
  .product-size-select, .product-card .add-button { width: 100%; min-height: 42px; }
  .add-product-form { grid-template-columns: minmax(0, 1fr); }
  .add-product-form label:first-child { grid-column: auto; }
  .table-wrap .data-table { min-width: 1080px; width: 1080px; }
}
