/* Shared customer shell. Staff templates use a separate base. */
.customer-app { --app-tabs-height:62px; background:#f7f4ee; color:#28251f; }
.customer-app .platform-page-content { min-height:55vh; }
.customer-app .platform-page-content :is(.store-shell,.history-shell,.order-shell,.product-detail-shell,.account-layout) { min-width:0; }
.customer-app .platform-page-content :is(.row > *,.store-panel,.history-card,.order-card,.account-card,.checkout-main,.checkout-summary-wrap) { min-width:0; }
.customer-app .platform-page-content :is(h1,h2,h3,p,.store-panel,.history-card,.order-card,.detail-buy-box) { overflow-wrap:break-word; }
.customer-app .platform-page-content :is(input,select,textarea) { max-width:100%; }
.customer-app .platform-page-content :is(img,video,iframe) { max-width:100%; }
.customer-app .platform-page-content :is(button,.btn,.store-btn,.store-btn-outline,.store-btn-dark,.account-primary) { touch-action:manipulation; }
.customer-app .platform-page-content :is(.card,.store-panel,.history-card,.order-card) { border-color:#e9e1d2; box-shadow:0 4px 20px #463a1906; }
.customer-app .platform-page-content .table-responsive { border-radius:14px; scrollbar-width:thin; }
.customer-app .platform-page-content :is(a,button,input,select,textarea):focus-visible { outline:2px solid #b38b25; outline-offset:3px; }
.customer-app .platform-page-content :is(.store-page,.history-page,.order-page,.platform-blog-page,.platform-info-page) { padding-bottom:36px; }
.customer-app .platform-blog-page .card { overflow:hidden; border-radius:18px; }
.customer-app .customer-story { max-width:960px; margin:24px auto; }
.customer-app .customer-story .card-header { background:#f7f0dd !important; color:#30291b !important; padding:24px; }
.customer-app .customer-story .card-body { padding:clamp(18px,4vw,36px); }
.customer-app .customer-story .lead { font-size:1rem; line-height:1.8; }
.customer-app .customer-story .embed-responsive { aspect-ratio:16/9; }
.customer-app .customer-story iframe { width:100%; height:100%; }
.customer-app .customer-account-links { display:flex; gap:8px; flex-wrap:wrap; margin:18px 0; }
.customer-app .customer-account-links a { padding:10px 14px; border:1px solid #e2d7c0; border-radius:12px; background:#fff; color:#70551f; text-decoration:none; font-size:13px; }
.customer-app .customer-profile { max-width:900px; margin:24px auto; padding:0 16px; }
.customer-app .customer-profile .account-card { padding:clamp(20px,4vw,36px); }
.customer-app .customer-profile h1 { font-size:28px; font-weight:650; letter-spacing:-.03em; }
.customer-app .customer-profile .form-row { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; margin-bottom:20px; }
.customer-app .customer-profile .form-row > div { width:100%; max-width:none; padding:0; }
.customer-app .customer-profile :is(input:not([type=checkbox]),textarea) { width:100%; border:1px solid #e0d6c3; border-radius:12px; padding:12px; background:#fffdf9; }
.customer-app .customer-profile label { display:block; font-size:13px; margin-bottom:6px; color:#6f6250; }
.customer-app .customer-profile textarea { min-height:110px; }
.customer-app .customer-profile .account-primary { background:#d4af37; color:#241e12; border:0; border-radius:14px; min-height:46px; padding:12px 22px; font-weight:650; }
@media(max-width:767px) {
 .customer-app { --app-tabs-height:calc(64px + env(safe-area-inset-bottom,0px)); }
 .customer-app .platform-menu-cart { display:none; }
 .customer-app:has(.navbar-collapse.show) .platform-chat-button { display:none; }
 .customer-app .platform-store-nav {
   max-height:calc(100vh - 80px - env(safe-area-inset-bottom,0px));
   max-height:calc(100dvh - 80px - env(safe-area-inset-bottom,0px));
   overflow-y:auto;
   overscroll-behavior:contain;
   scrollbar-width:thin;
 }
 .customer-app .platform-nav-actions .platform-dropdown {
   position:static !important;
   transform:none !important;
   min-width:0;
   width:100%;
   margin:8px 0 0;
 }
 .customer-app .platform-page-content :is(.container,.container-fluid) { max-width:100%; }
 .customer-app .platform-page-content :is(.form-control,.form-select,.account-form input,.account-form textarea,.customer-profile input,.customer-profile textarea) { font-size:16px; }
 .customer-app .platform-page-content :is(.btn,.store-btn,.store-btn-outline,.store-btn-dark) { white-space:normal; }
 .customer-app .platform-page-content :is(.detail-breadcrumb,.order-item,.order-meta,.history-card,.account-card) { overflow-wrap:anywhere; }
 .customer-app .customer-profile .form-row { grid-template-columns:minmax(0,1fr); gap:16px; }
 .customer-app .account-page { padding:20px 12px 28px; }
 .customer-app .account-layout { gap:18px; }
 .customer-app .account-story { padding:8px 4px; }
 .customer-app .account-story h1 { font-size:28px; margin-bottom:12px; }
 .customer-app .account-story p { font-size:14px; line-height:1.6; margin-bottom:12px; }
 .customer-app .account-benefits { display:none; }
 .customer-app .account-card { padding:22px; border-radius:20px; }
 .customer-app .platform-info-hero { gap:20px; }
 .customer-app .platform-info-hero h1 { font-size:clamp(26px,7vw,36px); }
 .customer-app .platform-blog-page .p-4 { padding:18px !important; }
 .customer-app .platform-blog-page .card-title { font-size:20px; }
 /* Keep purchase controls above the persistent tabs, with room to scroll. */
 .customer-app.commerce-app .commerce-dock { bottom:calc(var(--app-tabs-height) + 4px); padding-bottom:12px; }
 .customer-app.commerce-cart .cart-page { padding-bottom:180px; }
 .customer-app.commerce-checkout .checkout-page { padding-bottom:240px; }
 .customer-app .platform-page-content [id] { scroll-margin-top:calc(var(--store-nav-height,76px) + 14px); }
}
@media(prefers-reduced-motion:reduce) { .customer-app .platform-page-content *, .customer-app .platform-page-content *::before, .customer-app .platform-page-content *::after { scroll-behavior:auto !important; } }
