/* Preserve Plus Beauté tokens; correct mobile overflow and shorten purchase path. */
.admin-main,.admin-grid,.admin-grid>*,.kpi-grid,.table-card,.content-card,.cart-layout>* {min-width:0;max-width:100%}
.table-scroll{max-width:100%;overflow-x:auto}
.admin-main{overflow-wrap:anywhere}
.admin-sidebar nav{max-width:100%;scrollbar-width:thin}
.server-error{padding:12px;border:1px solid var(--danger);color:var(--danger);border-radius:10px;background:var(--surface)}
.loading-page{text-align:center;padding:60px 20px}
.form-card h2{font-size:1.4rem;margin-top:26px}
.form-card p{overflow-wrap:anywhere}
.profile-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:20px}
.profile-actions .button{min-height:44px;flex:1 1 210px}
.profile-logout{margin-top:24px;min-height:44px}
.summary-card button+button{margin-top:10px}
.admin-helper{overflow-wrap:anywhere}
.purchase-shortcut{margin:18px 0;display:flex;gap:12px;align-items:center;flex-wrap:wrap}
.product-back-nav{margin:20px 0 12px}
.product-back-nav .button{min-height:44px;display:inline-flex;align-items:center;gap:10px}
.privacy-footer{display:block;margin-top:12px}
.order-detail-meta{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:16px 0;color:var(--muted);font-size:13px}
.order-detail-form{display:grid;gap:20px}
.order-customer-box{background:var(--surface-warm);padding:16px;border-radius:12px;margin-bottom:18px;overflow-wrap:anywhere}
.order-customer-box h3,.order-items-section h3{font-size:16px;margin:0 0 12px}
.order-customer-box p{margin:6px 0 0}
.order-detail-items{display:grid;gap:12px}
.order-detail-item{border:1px solid var(--line);border-radius:12px;overflow:hidden}
.order-item-main{display:flex;gap:14px;padding:14px;align-items:start}
.order-item-image{width:72px;height:88px;object-fit:contain;flex-shrink:0;background:var(--surface);border-radius:8px}
.order-image-placeholder{display:grid;place-items:center;font-size:12px;color:var(--muted);text-align:center}
.order-item-copy{min-width:0;overflow-wrap:anywhere}
.order-item-copy h4{font-size:15px;line-height:1.45;margin:0 0 8px}
.order-item-copy h3{font-size:15px;line-height:1.45;margin:0 0 8px}
.customer-order-details{margin:16px 0;min-width:0}
.customer-order-details>summary{cursor:pointer;min-height:44px;padding:12px;border:1px solid var(--line);border-radius:10px;font-weight:700;color:var(--meta)}
.customer-order-details>summary:focus-visible{outline:2px solid var(--meta);outline-offset:3px}
.customer-order-details[open]>summary{margin-bottom:16px}
.customer-order-details .order-financial-box{margin-top:16px}
.order-list>.order-card{min-width:0;overflow-wrap:anywhere}
.customer-orders .page-title{flex-wrap:wrap;gap:12px}
.customer-orders .account-layout>*,.customer-orders .order-list{min-width:0}
@media(max-width:600px){.customer-orders .page-title h1{width:100%;margin-bottom:0}.customer-orders .page-title .button{flex:1;min-width:0}.customer-orders .content-card{padding:10px}.customer-orders .order-card{padding:12px}.customer-orders .order-head{flex-wrap:wrap;gap:8px}}
.order-item-copy p{margin:8px 0 0;font-size:13px;white-space:pre-line}
.order-item-qty{display:inline-block;background:var(--surface-warm);padding:4px 8px;border-radius:6px;font-size:13px;font-weight:700}
.order-item-price{color:var(--muted)}
.order-part-label{display:flex;align-items:center;gap:10px;min-height:44px;cursor:pointer}
.order-part-label input{width:22px;height:22px;min-height:22px;margin:0;flex-shrink:0;accent-color:var(--meta)}
.order-variants tr.part-picked{background:var(--surface-warm);font-weight:700}
.order-edit-control{font-size:12px;min-height:44px;margin-top:6px;padding:8px}
.order-pick-part[hidden],.order-edit-control[hidden],#adjust-confirm[hidden]{display:none}
.order-adjust-editor{display:grid;gap:10px;padding:14px;border:1px solid var(--line);border-radius:10px;margin-top:14px;background:var(--surface-warm)}
.order-adjust-editor h4,.order-adjust-editor p{margin:0}
.order-adjust-editor select,.order-adjust-editor input{width:100%;min-width:0;min-height:44px}
.order-adjust-editor label{font-weight:700}
#adjust-preview{font-weight:700}
.order-variants{padding:0 14px 14px}
.order-variants table{width:100%;min-width:0;table-layout:fixed;border-collapse:collapse;font-size:14px;line-height:1.5}
.order-variants th,.order-variants td{padding:10px 12px;border-bottom:1px solid var(--line);text-align:left;white-space:normal;overflow-wrap:anywhere}
.order-variants th:last-child,.order-variants td:last-child{width:112px;text-align:right;white-space:nowrap}
.order-variants thead,.order-variants tfoot{background:var(--surface-warm)}
.order-variants tbody tr:nth-child(even){background:var(--surface)}
.order-variants td strong{font-size:17px;font-variant-numeric:tabular-nums}
.order-composition{padding:0 14px 14px;font-size:14px;line-height:1.6}
.order-composition p{background:var(--surface-warm);padding:12px;border-radius:8px}
.order-composition ul{list-style:none;padding:0;margin:0}
.order-composition li{padding:10px 0;border-bottom:1px solid var(--line);overflow-wrap:anywhere}
@media(max-width:420px){.order-variants{padding:0 10px 12px}.order-variants th,.order-variants td{padding:10px 8px}.order-variants th:last-child,.order-variants td:last-child{width:96px}}
.order-pick-label{display:flex;align-items:center;gap:12px;min-height:48px;padding:12px 14px;background:var(--surface-warm);border-top:1px solid var(--line);cursor:pointer;font-size:14px}
.order-pick-label input{width:22px;height:22px;min-height:22px;margin:0;accent-color:var(--meta);flex-shrink:0}
.order-pick-label:has(input:checked){font-weight:700}
.order-pick-label[hidden]{display:none}
#order-picking-help p{font-size:14px;margin:8px 0 12px}
#order-picking-progress{font-weight:700;color:var(--meta)}
.order-financial-box{display:grid;grid-template-columns:1fr 1fr;gap:16px;padding:16px;border:1px solid var(--line);border-radius:12px;font-size:13px}
.order-financial-box strong{display:block;margin-top:6px;font-size:16px}
@media(max-width:420px){.order-item-image{width:56px;height:72px}.order-financial-box{grid-template-columns:1fr}.order-item-main{gap:10px;padding:12px}}
.orders-view-toolbar{display:flex;justify-content:flex-end;margin:24px 0 16px}
.orders-view-toggle{display:flex;gap:6px}
.orders-view-toggle .button{min-height:44px;min-width:90px}
.orders-kanban-section>.order-head{flex-wrap:wrap;gap:16px;margin-bottom:20px}
.orders-kanban-section h2{margin-bottom:6px}
.orders-kanban-section .admin-helper{margin:0}
.orders-kanban{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;align-items:start}
.orders-kanban.is-filtered{grid-template-columns:minmax(0,360px)}
.kanban-column{min-width:0;background:var(--surface-warm);border:1px solid var(--line);border-radius:14px;padding:12px}
.kanban-column-head{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:44px;margin-bottom:12px}
.kanban-column-head h3{margin:0;font-size:14px;line-height:1.4}
.kanban-count{display:grid;place-items:center;min-width:28px;min-height:28px;padding:3px;border-radius:20px;background:var(--surface);font-size:12px;font-weight:700}
.kanban-cards{display:grid;gap:12px}
.kanban-order{min-width:0;background:var(--surface);border:1px solid var(--line);border-radius:10px;padding:12px;font-size:14px}
.kanban-customer{margin:16px 0;line-height:1.5}
.kanban-total{display:grid;gap:4px;margin:0 0 16px}
.kanban-total small{color:var(--muted)}
.kanban-order .button{width:100%;min-height:44px;padding:10px 8px;white-space:normal}
.kanban-empty{font-size:13px;color:var(--muted);text-align:center;margin:12px 0 20px}
@media(min-width:721px) and (max-width:1100px){.orders-kanban{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:720px){.orders-kanban,.orders-kanban.is-filtered{grid-template-columns:minmax(0,1fr)}}
.orders-card .order-head{margin-bottom:16px;flex-wrap:wrap}
.orders-card .order-head h2{margin-bottom:4px}
.orders-card .order-head p{margin:0}
.orders-table{min-width:0;table-layout:fixed}
.orders-table th:first-child{width:16%}
.orders-table th:nth-child(2){width:28%}
.orders-table th:nth-child(3){width:19%}
.orders-table th:nth-child(4){width:19%}
.orders-table th:last-child{width:18%}
.orders-table td{overflow-wrap:anywhere;vertical-align:middle}
.order-list-date{display:block;color:var(--muted);margin-top:4px}
.order-list-total{font-weight:700}
.order-list-action .button{min-height:44px;white-space:normal}
@media(max-width:900px){
 .orders-table,.orders-table tbody{display:block;width:100%}
 .orders-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
 .orders-table tr{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px;border:1px solid var(--line);border-radius:14px;padding:16px;margin-top:12px}
 .orders-table td{display:block;padding:0;border:0;min-width:0;font-size:14px}
 .orders-table td[data-label]::before{content:attr(data-label);display:block;font-size:12px;color:var(--muted);font-weight:400;margin-bottom:6px}
 .orders-table .order-list-action,.orders-table .orders-empty{grid-column:1/-1}
 .order-list-action .button{width:100%}
 .orders-card .table-scroll{overflow:visible}
}
@media(max-width:720px){
 .admin-shell{grid-template-rows:auto 1fr;min-height:100dvh;align-content:start}
 .admin-sidebar{align-self:start}
}
@media(max-width:760px){
 .admin-grid{display:grid;grid-template-columns:minmax(0,1fr)}
 .admin-main{padding:20px 14px}
 .kpi-grid{grid-template-columns:minmax(0,1fr)}
 .admin-modal{width:calc(100vw - 24px);max-height:calc(100dvh - 24px);overflow:auto}
 .product-hero{gap:18px}
 .product-purchase-section{scroll-margin-top:85px}
 .purchase-shortcut .button{width:100%}
 .floating-whatsapp{bottom:calc(18px + env(safe-area-inset-bottom))}
 .summary-card{padding-bottom:calc(24px + env(safe-area-inset-bottom))}
 .form-grid{grid-template-columns:minmax(0,1fr)}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important}}
.checkout-items{display:grid;gap:12px;margin:16px 0 20px;min-width:0}
.checkout-item{border:1px solid var(--line);border-radius:12px;overflow:hidden;min-width:0}
.checkout-item-head{display:flex;gap:12px;padding:12px;align-items:flex-start}
.checkout-item-head img{object-fit:contain;flex-shrink:0;border-radius:6px;background:var(--surface)}
.checkout-item-head>div{min-width:0}
.checkout-item-head h3{font-family:inherit;font-size:14px;line-height:1.5;margin:0;overflow-wrap:anywhere}
.checkout-item-head p{font-size:13px;line-height:1.5;margin:6px 0 0}
.checkout-item-details summary{min-height:44px;padding:12px;cursor:pointer;color:var(--brand);font-size:14px;font-weight:700;background:var(--surface-warm)}
.checkout-item-details summary:focus-visible{outline:2px solid var(--brand);outline-offset:-3px}
.checkout-item-details ul{list-style:none;margin:0;padding:0 12px}
.checkout-item-details li{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;padding:12px 0;border-top:1px solid var(--line);font-size:13px;line-height:1.6}
.checkout-item-details li span{overflow-wrap:anywhere}
.checkout-item-details li strong{white-space:nowrap}
.checkout-item-details .checkout-group{display:block;font-weight:700}
.checkout-composition-note{padding:0 12px;font-size:12px;color:var(--muted)}
.header-action-icon{width:22px;height:22px;flex-shrink:0;display:block}
.coupon-product-list{max-height:300px;overflow-y:auto;border:1px solid var(--border);border-radius:12px;padding:8px}
.coupon-product-option{display:flex;align-items:center;gap:12px;min-height:44px;padding:8px;cursor:pointer}
.coupon-product-option[hidden],#coupon-product-picker[hidden]{display:none}
.coupon-product-option input{width:20px;min-width:20px;height:20px;margin:0;accent-color:var(--brand)}
.coupon-form .check-line{display:flex;align-items:center;justify-content:flex-start;gap:12px;min-height:44px}
.coupon-form .check-line input{width:20px;min-width:20px;height:20px;margin:0;flex:0 0 20px}
.coupon-form .order-head .remove-link{flex-shrink:0;white-space:nowrap;min-height:44px}
.coupon-product-option span,.coupon-scope-description{overflow-wrap:anywhere}
.coupon-eligibility-note{font-size:.875rem;line-height:1.5}
#coupon-scope-error{color:var(--danger)}
