/* Shared sizing keeps translated content and wide tables inside their panels. */
main, .catalog-main, .two-column > *, .account-layout > *, .panel, .stack,
.admin-area, .footer-grid > *, .product-info, .form-row > * { min-width: 0; }
.panel, .summary-panel, .product-meta, .message-card, .contact-line, .footer-grid { overflow-wrap: anywhere; }
.table-scroll { max-width: 100%; overscroll-behavior-x: contain; }
.thumbs { overflow-x: auto; padding-bottom: 4px; }
.thumbs button { flex-shrink: 0; }
button, a, summary, input, select, textarea { touch-action: manipulation; }
:focus-visible { outline: 2px solid #a56574; outline-offset: 4px; }
.app-nav, .commerce-dock, .app-dialog { display: none; }
.ns-bot-icon { display: block; flex-shrink: 0; width: 26px; height: 26px; overflow: visible; }
.ns-bot-float { transform-origin: 16px 18px; animation: ns-bot-float 4s ease-in-out infinite; }
.ns-bot-eyes { transform-origin: 16px 17px; animation: ns-bot-blink 6s ease-in-out infinite; }
.ns-bot-signal { animation: ns-bot-signal 3s ease-in-out infinite; }
.bot-launch { min-height: 44px; padding-top: 9px; padding-bottom: 9px; }
.footer-powered { display: flex; justify-content: center; align-items: center; gap: 12px; padding: 12px 20px 18px; background: #292421; color: #ad9f92; font-size: 10px; }
.footer-powered a { display: inline-flex; align-items: center; min-height: 38px; }
.footer-powered img { width: 150px; height: auto; filter: grayscale(1); opacity: .35; transition: filter .25s ease, opacity .25s ease; }
.footer-powered a:hover img, .footer-powered a:focus-visible img { filter: grayscale(0); opacity: 1; }
.app-dialog[open] { display: flex; }
.app-dialog { color: var(--ink); background: var(--paper); border: 0; }
.app-dialog::backdrop { background: #21191db3; backdrop-filter: blur(3px); }
.app-dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.app-dialog-head .icon-button { min-width: 44px; min-height: 44px; }
.app-dialog-head h2 { font-size: 29px; margin: 0; letter-spacing: -1px; }
.app-dialog-head > span { font-size: 11px; letter-spacing: 2px; }
body.app-dialog-open { overflow: hidden; }
.header-actions { margin-left: auto; }
.header-search-toggle { min-width: 44px; min-height: 44px; }
.mobile-search { position: fixed; margin: auto; width: min(560px,calc(100% - 48px)); max-height: calc(100dvh - 48px); border-radius: 18px; padding: 28px; flex-direction: column; gap: 22px; overflow-y: auto; overscroll-behavior: contain; }
.mobile-search-form { display: flex; gap: 10px; }
.mobile-search-form input { flex: 1; min-width: 0; border-radius: 10px; font-size: 16px; }
.mobile-search-form .btn { padding: 12px 16px; border-radius: 10px; }
.search-collections { display: flex; flex-wrap: wrap; gap: 9px; }
.search-collections a { border: 1px solid var(--line); padding: 11px 14px; border-radius: 24px; font-size: 13px; min-height: 44px; }
.search-label { font-size: 12px; color: var(--muted); margin-bottom: 12px; }

@media (max-width: 1023px) {
    :root { --app-nav-height: 64px; --app-bottom: calc(var(--app-nav-height) + env(safe-area-inset-bottom, 0px)); }
    html { scroll-padding-top: 90px; }
    body { padding-bottom: var(--app-bottom); }
    .wrap { padding-left: max(24px,env(safe-area-inset-left,0px)); padding-right: max(24px,env(safe-area-inset-right,0px)); }
    .header { position: sticky; top: 0; box-shadow: 0 1px 0 var(--line); padding-top: env(safe-area-inset-top, 0px); }
    .header-main { height: 70px; gap: 14px; }
    .header-search, .nav, .header-actions > .icon-button { display: none; }
    .header-actions > .icon-button.header-search-toggle { display: inline-flex; }
    .mobile-only { display: inline-flex; }
    .header-main > .icon-button { width: 44px; height: 44px; margin-right: -10px; }
    .header-main .wordmark { margin-right: auto; }
    .brand-symbol { font-size: 36px; }
    .brand-text { font-size: 16px; letter-spacing: 3px; }
    .brand-text small { font-size: 5px; letter-spacing: 1.5px; }
    .wordmark { gap: 8px; }
    .header-actions { gap: 0; }
    .language-picker > summary { min-height: 44px; font-size: 11px; gap: 7px; }
    .language-options { border-radius: 12px; box-shadow: 0 10px 30px #29232126; }
    .language-options > a { min-height: 44px; font-size: 13px; border-radius: 7px; }
    .announcement { height: auto; min-height: 29px; padding: 6px 20px; font-size: 9px; justify-content: center; text-align: center; }
    .announcement > a { display: none; }
    .app-nav { position: fixed; z-index: 65; bottom: 0; left: 0; right: 0; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); height: var(--app-bottom); padding: 5px max(8px,env(safe-area-inset-right,0px)) env(safe-area-inset-bottom,0px) max(8px,env(safe-area-inset-left,0px)); background: #faf9f6f5; backdrop-filter: blur(16px); border-top: 1px solid var(--line); box-shadow: 0 -4px 20px #29232105; }
    .app-nav > a, .app-nav > button { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-width: 0; min-height: 48px; color: #7c736b; background: none; font-size: 10px; line-height: 1.3; border-radius: 12px; }
    .app-nav .icon { width: 21px; height: 21px; }
    .app-nav [aria-current] { color: var(--wine); font-weight: 600; background: #702e3d08; }
    .app-nav-icon { position: relative; }
    .app-nav-icon small { position: absolute; top: -5px; right: -10px; background: var(--wine); color: #fff; min-width: 17px; height: 17px; line-height: 17px; border-radius: 12px; font-size: 9px; padding: 0 4px; }
    .app-dialog { max-height: 100dvh; max-width: 100vw; }
    .mobile-drawer { position: fixed; margin: 0; inset: 0 0 0 auto; width: min(88vw,390px); height: 100dvh; padding: max(16px,env(safe-area-inset-top,0px)) 24px max(24px,env(safe-area-inset-bottom,0px)); flex-direction: column; gap: 16px; overflow-y: auto; overscroll-behavior: contain; }
    .mobile-drawer .app-dialog-head { padding-bottom: 10px; border-bottom: 1px solid var(--line); }
    .mobile-drawer .app-dialog-head > span { font-weight: 600; }
    .drawer-links { display: flex; flex-direction: column; }
    .drawer-links a { min-height: 44px; padding: 11px 0; display: block; font-size: 14px; line-height: 1.5; }
    .drawer-links a:nth-child(-n+2) { font-weight: 600; }
    .drawer-links a:nth-child(2) { border-bottom: 1px solid var(--line); padding-bottom: 15px; margin-bottom: 7px; }
    .drawer-links a:hover, .drawer-secondary a:hover { color: var(--wine); }
    .drawer-secondary { display: grid; gap: 0; border-top: 1px solid var(--line); padding-top: 12px; }
    .drawer-secondary a { min-height: 44px; padding: 10px 0; font-size: 13px; color: var(--muted); }
    .drawer-trade { margin-top: auto; background: var(--cream); border-radius: 12px; padding: 16px; }
    .drawer-trade p { font-size: 12px; line-height: 1.65; margin: 8px 0 12px; color: var(--muted); }
    .drawer-trade .btn { min-height: 44px; }
    .mobile-drawer[open] { animation: drawer-in .18s ease-out; }
    .mobile-search { position: fixed; margin: auto auto 0; inset: auto 0 0; width: 100%; max-width: 640px; max-height: calc(var(--visual-viewport-height,100dvh) - 16px); border-radius: 24px 24px 0 0; padding: 24px 24px max(28px,env(safe-area-inset-bottom,0px)); flex-direction: column; gap: 22px; overflow-y: auto; overscroll-behavior: contain; }
    .mobile-search[open] { animation: sheet-in .18s ease-out; }
    .app-nav > a:active, .app-nav > button:active { background: #702e3d10; }
    .btn, .btn.small { min-height: 46px; font-size: 12px; border-radius: 9px; }
    .text-link { font-size: 12px; line-height: 1.6; }
    .field > label { font-size: 12px; }
    .field input, .field select, .field textarea, .filter-bar select, .search-field input, .cart-row input { font-size: 16px; min-height: 46px; border-radius: 8px; }
    .field textarea { min-height: 120px; }
    .checkline { font-size: 12px; gap: 10px; min-height: 44px; align-items: flex-start; }
    .checkline input { width: 20px; height: 20px; margin: 1px 0 0; }
    .fine, .demo-note { font-size: 12px; }
    .panel { border-radius: 14px; }
    .summary-panel { border-radius: 14px; }
    .summary-line { font-size: 13px; }
    .payment-option { border-radius: 10px; font-size: 14px; }
    .payment-option label { display: flex; align-items: center; gap: 8px; min-height: 32px; }
    .payment-option small { font-size: 12px; }
    .two-column { grid-template-columns: minmax(0,1fr) 300px; gap: 24px; }
    .account-layout { grid-template-columns: minmax(0,1fr); }
    .product-detail { gap: 30px; }
    .product-info h1 { overflow-wrap: anywhere; }
    .product-main-image { aspect-ratio: 1/1.1; border-radius: 16px; }
    .product-details-text { font-size: 13px; }
    .product-details-text summary { min-height: 48px; }
    .description { font-size: 14px; line-height: 1.75; }
    .stock, .detail-price small, .pack-note { font-size: 12px; }
    .pack-note { border-radius: 9px; }
    .buy-meta { flex-wrap: wrap; font-size: 11px; gap: 8px 16px; }
    .commerce-dock { position: fixed; z-index: 64; left: 0; right: 0; bottom: var(--app-bottom); min-height: 78px; background: #faf9f6f5; backdrop-filter: blur(16px); border-top: 1px solid var(--line); padding: 12px max(20px,env(safe-area-inset-right,0px)) 12px max(20px,env(safe-area-inset-left,0px)); display: flex; justify-content: space-between; align-items: center; gap: 16px; box-shadow: 0 -8px 25px #29232108; }
    .commerce-dock > div { min-width: 0; }
    .commerce-dock small { display: block; color: var(--muted); font-size: 10px; line-height: 1.4; }
    .commerce-dock strong { display: block; font-size: 18px; line-height: 1.4; white-space: nowrap; }
    .commerce-dock .btn { min-width: 145px; max-width: 60%; padding: 12px 18px; }
    body.has-commerce-dock { padding-bottom: calc(var(--app-bottom) + 78px); }
    .bot-launch { display: grid; place-items: center; z-index: 70; width: 48px; height: 48px; min-height: 48px; border-radius: 50%; padding: 10px; right: max(16px,env(safe-area-inset-right,0px)); bottom: calc(var(--app-bottom) + 14px); box-shadow: 0 5px 22px #38282030; }
    .bot-launch > span { display: none; }
    .bot-launch .ns-bot-icon { width: 26px; height: 26px; }
    .has-commerce-dock .bot-launch { bottom: calc(var(--app-bottom) + 78px + 14px); }
    .bot-is-open .bot-launch { visibility: hidden; }
    .bot-panel { --bot-bottom-gap: calc(var(--app-bottom) + 12px); --bot-viewport-space: calc(var(--visual-viewport-height,100dvh) - var(--bot-bottom-gap) - 96px); z-index: 70; top: calc(var(--visual-viewport-top,0px) + var(--visual-viewport-height,100dvh) - var(--bot-bottom-gap)); right: max(12px,env(safe-area-inset-right,0px)); bottom: auto; transform: translateY(-100%); width: min(360px,calc(100vw - 24px)); max-width: calc(100vw - 24px); border-radius: 20px; }
    .has-commerce-dock .bot-panel { --bot-bottom-gap: calc(var(--app-bottom) + 78px + 12px); }
    .bot-header { flex-shrink: 0; padding: 14px 16px; }
    .bot-header strong { font-size: 15px; }
    .bot-header small { font-size: 11px; }
    .bot-header button { width: 44px; height: 44px; display: grid; place-items: center; }
    .bot-messages { min-height: 0; flex: 1; overscroll-behavior: contain; }
    .bot-msg { font-size: 14px; overflow-wrap: anywhere; }
    .bot-links a { font-size: 13px; min-height: 48px; }
    .bot-quick { flex-shrink: 0; flex-wrap: nowrap; overflow-x: auto; padding: 4px 16px 12px; }
    .bot-quick button { min-height: 44px; flex-shrink: 0; font-size: 12px; }
    .bot-input { flex-shrink: 0; padding: 10px; }
    .bot-input input { font-size: 16px; min-height: 44px; }
    .bot-input button { width: 44px; }
    .bot-bottom { flex-shrink: 0; font-size: 11px; padding: 8px 12px max(10px,env(safe-area-inset-bottom,0px)); }
    .keyboard-open .app-nav, .keyboard-open .commerce-dock, .keyboard-open .bot-launch { display: none; }
    .keyboard-open .bot-panel { --bot-bottom-gap: 8px; --bot-viewport-space: calc(var(--visual-viewport-height,100dvh) - 16px); }
    .keyboard-open .mobile-search { top: calc(var(--visual-viewport-top,0px) + 8px); bottom: auto; margin: 0 auto; border-radius: 20px; }
    .category-grid { scroll-snap-type: x proximity; scrollbar-width: thin; }
    .category-card { scroll-snap-align: start; }
    .admin-nav { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x proximity; }
    .admin-nav a { flex-shrink: 0; min-height: 44px; font-size: 12px; border-radius: 8px; scroll-snap-align: start; }
    .admin-toolbar { flex-wrap: wrap; }
    .admin-toolbar form { max-width: 100%; }
    .stat { border-radius: 12px; }
    .stat span { font-size: 12px; }
    .admin-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .admin-details { border-radius: 10px; }
    .admin-details summary { flex-wrap: wrap; font-size: 13px; }
    .table-scroll table { min-width: 480px; font-size: 12px; }
    .table-scroll th { font-size: 10px; }
    .table-scroll td { font-size: 12px; }
    .footer-bottom { padding-bottom: 24px; }
    .footer-grid > div > a:not(.wordmark) { min-height: 36px; font-size: 12px; margin: 4px 0; padding: 6px 0; }
    .footer-grid p { font-size: 12px; }
    .footer-grid h3 { font-size: 13px; margin-bottom: 12px; }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .product-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
    .catalog-products { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .catalog { grid-template-columns: 160px minmax(0,1fr); gap: 24px; }
    .filter-bar { flex-wrap: wrap; }
    .search-field { flex-basis: 100%; }
    .filter-bar select { flex: 1; max-width: none; }
    .product-meta h3, .product-price { font-size: 14px; }
    .product-sub { font-size: 10px; }
    .product-meta .eyebrow { font-size: 9px; }
}

@media (max-width: 767px) {
    .wrap { padding-left: max(20px,env(safe-area-inset-left,0px)); padding-right: max(20px,env(safe-area-inset-right,0px)); }
    .header-main { height: 64px; padding-left: max(20px,env(safe-area-inset-left,0px)); padding-right: max(20px,env(safe-area-inset-right,0px)); gap: 10px; }
    .brand-symbol { font-size: 33px; }
    .brand-text { font-size: 13px; letter-spacing: 2px; }
    .brand-text small { font-size: 4.5px; letter-spacing: 1.1px; margin-top: 6px; }
    .wordmark { gap: 6px; }
    .language-flag { width: 19px; height: 13px; }
    .hero { display: flex; flex-direction: column; min-height: 0; }
    .hero-copy { padding: 30px 24px 28px; order: 0; align-self: stretch; }
    .hero h1 { font-size: clamp(34px,8.6vw,48px); max-width: 500px; margin-bottom: 18px; letter-spacing: -1.5px; }
    .hero .eyebrow { font-size: 8px; letter-spacing: 1.5px; margin-bottom: 18px; }
    .hero p { font-size: 13px; line-height: 1.8; max-width: 490px; margin-bottom: 22px; }
    .hero-actions { gap: 14px; }
    .hero .btn { font-size: 12px; padding: 13px 18px; }
    .hero-actions .text-link { font-size: 11px; }
    .hero-note { font-size: 10px; margin-top: 22px; }
    .hero-visual { min-height: 0; height: clamp(250px,70vw,380px); order: 1; }
    .hero-caption { bottom: 20px; }
    .values-line { padding-top: 20px; padding-bottom: 20px; gap: 14px; font-size: 10px; }
    .values-line > span { flex: 1; flex-direction: column; text-align: center; gap: 6px; }
    .section { padding-top: 36px; }
    .section-heading { flex-wrap: wrap; align-items: center; gap: 14px; }
    .section-heading > div { flex: 1; min-width: 200px; }
    .section-heading h2 { font-size: 31px; max-width: none; }
    .section-heading .eyebrow { font-size: 9px; letter-spacing: 1.3px; }
    .section-heading > .text-link { font-size: 11px; max-width: none; margin-top: 0; flex-shrink: 1; }
    .section-heading > .text-link .icon { display: inline; }
    .category-grid { grid-template-columns: repeat(5,155px); margin-right: -20px; padding-right: 20px; gap: 12px; }
    .category-card > div { border-radius: 12px; }
    .category-card h3 { font-size: 13px; margin-top: 12px; }
    .category-card p { font-size: 11px; }
    .product-grid, .catalog-products { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px 12px; }
    .product-image { border-radius: 12px; aspect-ratio: 1/1.15; padding: 16px; }
    .product-badge { font-size: 8px; border-radius: 4px; top: 8px; left: 8px; padding: 4px 6px; }
    .product-meta { padding: 12px 1px 0; }
    .product-meta .eyebrow { font-size: 8px; line-height: 1.5; }
    .product-meta h3 { font-size: 13px; line-height: 1.45; margin: 6px 0; }
    .product-price { font-size: 14px; }
    .product-price small { font-size: 10px; }
    .product-sub { font-size: 10px; line-height: 1.5; }
    .product-view { display: none; }
    .catalog { display: block; }
    .catalog-sidebar { display: flex; margin: 0 -20px 20px 0; padding: 0 20px 8px 0; gap: 8px; overflow-x: auto; scroll-snap-type: x proximity; }
    .catalog-sidebar h3, .catalog-sidebar .sidebar-note { display: none; }
    .catalog-sidebar > a { flex-shrink: 0; white-space: nowrap; font-size: 12px; min-height: 44px; padding: 11px 15px; border: 1px solid var(--line); border-radius: 24px; gap: 10px; align-items: center; scroll-snap-align: start; }
    .catalog-sidebar > a.active { background: var(--wine); color: #fff; }
    .catalog-sidebar > a > span { font-size: 10px; }
    .filter-bar { flex-wrap: wrap; gap: 10px; }
    .filter-bar .search-field { flex-basis: 100%; min-width: 100%; height: 48px; border-radius: 9px; }
    .filter-bar select { flex: 1; max-width: none; min-width: 0; font-size: 14px; padding: 10px; }
    .filter-bar .btn { padding: 10px 20px; }
    .catalog-count { font-size: 11px; gap: 12px; flex-wrap: wrap; align-items: center; }
    .catalog-count label { min-height: 32px; }
    .pagination a, .pagination span { min-width: 44px; height: 44px; line-height: 44px; font-size: 13px; border-radius: 8px; }
    .page-intro { padding-top: 28px; padding-bottom: 26px; }
    .page-intro h1 { font-size: clamp(33px,8.4vw,43px); overflow-wrap: anywhere; }
    .page-intro p { font-size: 14px; }
    .eyebrow { font-size: 10px; letter-spacing: 1.5px; }
    .breadcrumbs { white-space: nowrap; overflow-x: auto; font-size: 11px; padding-top: 18px; padding-bottom: 18px; scrollbar-width: none; }
    .breadcrumbs > * { flex-shrink: 0; }
    .product-detail { display: block; padding-bottom: 25px; }
    .product-main-image { aspect-ratio: 1/1; padding: 25px; max-height: 520px; }
    .thumbs button { width: 64px; height: 64px; border-radius: 8px; }
    .product-info { padding-top: 24px; }
    .product-info h1 { font-size: 34px; letter-spacing: -1.2px; }
    .product-buy { margin-top: 20px; }
    .quantity-row input { width: 76px; }
    .two-column { display: grid; grid-template-columns: minmax(0,1fr); gap: 24px; padding-bottom: 40px; }
    .two-column > .summary-panel, .two-column > .panel + div { margin-top: 0; }
    .panel, .summary-panel { padding: 22px; }
    .form-row { grid-template-columns: minmax(0,1fr); gap: 0; }
    .cart-row { grid-template-columns: 70px minmax(0,1fr) 65px; gap: 12px; }
    .cart-row img { width: 70px; height: 90px; border-radius: 9px; }
    .cart-row h3 { font-size: 13px; line-height: 1.4; }
    .cart-row p { font-size: 11px; }
    .cart-row .muted { font-size: 10px; }
    .cart-row input { padding: 10px 8px; width: 65px; }
    .cart-row > strong { grid-column: 2/4; font-size: 14px; }
    .cart-actions { flex-wrap: wrap; align-items: center; }
    .cart-actions .text-link { font-size: 12px; max-width: none; min-height: 44px; align-items: center; }
    .auth-shell { display: block; margin: 24px 20px 40px; border-radius: 16px; overflow: hidden; }
    .auth-aside { display: none; }
    .auth-form { padding: 28px 22px; }
    .auth-form h1 { font-size: 33px; }
    .auth-switch { font-size: 13px; }
    .auth-switch a { display: inline-flex; min-height: 36px; align-items: center; }
    .account-head { flex-wrap: wrap; align-items: flex-start; }
    .page-intro .btn { min-height: 44px; font-size: 12px; }
    .pill { font-size: 11px; border-radius: 6px; }
    .trade-indicator { font-size: 12px; }
    .about-hero { display: flex; flex-direction: column; gap: 28px; padding-top: 25px; padding-bottom: 40px; }
    .about-hero > img { max-height: 380px; border-radius: 16px; }
    .about-hero h1 { font-size: 38px; }
    .about-hero p, .contact-info > p { font-size: 14px; }
    .benefit-grid { grid-template-columns: minmax(0,1fr); }
    .benefit-grid > div { border-radius: 14px; }
    .benefit-grid p { font-size: 13px; }
    .contact-info { margin-bottom: 0; }
    .contact-info h2 { font-size: 33px; }
    .contact-line { font-size: 14px; }
    .trade-banner { display: flex; flex-direction: column; }
    .trade-banner-image { min-height: 220px; max-height: 260px; border-radius: 16px 16px 0 0; }
    .trade-banner-image img { max-height: 220px; }
    .trade-banner-copy { padding: 30px 24px; border-radius: 0 0 16px 16px; }
    .trade-banner .eyebrow { font-size: 10px; }
    .trade-banner p { font-size: 13px; }
    .trade-footnote { font-size: 10px; }
    .story-strip { padding-top: 50px; padding-bottom: 44px; }
    .story-strip h2 { font-size: 36px; }
    .story-strip p { font-size: 14px; }
    .service-strip { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px 14px; }
    .service-strip > div { align-items: flex-start; font-size: 11px; }
    .service-strip small { font-size: 10px; }
    .footer-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 26px 20px; }
    .footer-grid > div:first-child, .footer-grid > div:last-child { grid-column: 1/-1; }
    .footer-bottom { font-size: 10px; }
    .variant-grid, .settings-grid { grid-template-columns: minmax(0,1fr); }
    .admin-area h1 { overflow-wrap: anywhere; }
    .variant-fields { padding: 16px; border-radius: 10px; }
    .stat { padding: 18px; }
    .order-top h1 { font-size: 32px; overflow-wrap: anywhere; }
}

@keyframes drawer-in { from { transform: translateX(100%); } to { transform: translateX(0); } }
@keyframes sheet-in { from { transform: translateY(30px); opacity: .3; } to { transform: translateY(0); opacity: 1; } }
@keyframes ns-bot-float { 0%,100% { transform: translateY(0) rotate(0); } 40% { transform: translateY(-1.5px) rotate(-3deg); } 65% { transform: translateY(-.5px) rotate(3deg); } }
@keyframes ns-bot-blink { 0%,43%,49%,100% { transform: scaleY(1); } 46% { transform: scaleY(.12); } }
@keyframes ns-bot-signal { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

@media (max-width: 359px) {
    .header-main { padding-left: 16px; padding-right: 16px; gap: 6px; }
    .header-main > .icon-button { width: 40px; margin-right: -8px; }
    .brand-text { font-size: 12px; letter-spacing: 1.6px; }
    .brand-symbol { font-size: 30px; }
    .brand-text small { font-size: 4px; letter-spacing: .8px; }
    .language-picker > summary { gap: 5px; font-size: 10px; }
    .app-nav > a, .app-nav > button { font-size: 9px; }
    .hero-copy { padding: 28px 20px; }
    .hero h1 { font-size: 34px; }
    .hero-actions .btn { width: 100%; }
    .product-image { padding: 12px; }
    .product-badge { font-size: 7px; }
    .product-meta h3 { font-size: 12px; }
    .cart-row { grid-template-columns: 56px minmax(0,1fr) 60px; gap: 10px; }
    .cart-row img { width: 56px; height: 78px; }
    .cart-row input { width: 60px; }
    .panel, .summary-panel { padding: 18px; }
    .commerce-dock { gap: 10px; padding-left: 16px; padding-right: 16px; }
    .commerce-dock .btn { min-width: 135px; padding: 12px; }
    .bot-quick { gap: 5px; padding-left: 12px; padding-right: 12px; }
    .bot-quick button { font-size: 11px; padding: 6px 9px; }
}

@media (max-height: 500px) and (max-width: 1023px) and (orientation: landscape) {
    .announcement { display: none; }
    .header-main { height: 56px; }
    .bot-panel { max-height: calc(var(--visual-viewport-height,100dvh) - 16px); }
    .bot-header { padding: 6px 14px; }
    .bot-quick { padding-bottom: 5px; }
    .bot-bottom { display: none; }
}

/* NS-Bot intake, persistent conversations and team follow-up. */
.bot-panel { width: min(320px,calc(100vw - 24px)); height: min(500px,calc(100dvh - 110px)); max-height: min(500px,calc(100dvh - 110px)); border-radius: 12px; }
.bot-panel.bot-panel-intake { height: auto; max-height: min(480px,calc(100dvh - 110px)); }
.bot-title { flex: 1; min-width: 0; }
.bot-header { gap: 8px; padding: 6px 12px; min-height: 48px; }
.bot-header strong { font-size: 13px; line-height: 1.35; }
.bot-header small { font-size: 10px; line-height: 1.4; }
.bot-header .bot-avatar { flex-shrink: 0; width: 28px; height: 28px; }
.bot-avatar .ns-bot-icon { width: 20px; height: 20px; }
.bot-header button { flex-shrink: 0; width: 32px; min-height: 36px; padding: 0; display: grid; place-items: center; margin-left: 0; }
.bot-header .icon { width: 18px; height: 18px; }
.bot-title small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bot-header .bot-end, .bot-header .bot-exit { display: inline-flex; align-items: center; justify-content: center; gap: 5px; width: auto; padding: 0 7px; border: 1px solid #ffffff60; border-radius: 5px; font-size: 11px; white-space: nowrap; }
.bot-header .bot-end .icon, .bot-header .bot-exit .icon { width: 13px; height: 13px; }
.bot-messages { flex: 1; min-height: 0; }
.bot-msg { font-size: 12px; line-height: 1.55; padding: 9px 11px; }
.bot-quick { padding: 4px 12px 8px; }
.bot-quick button { min-height: 32px; font-size: 11px; padding: 5px 9px; }
.bot-input { padding: 8px 12px; }
.bot-input input { min-height: 36px; font-size: 13px; line-height: 1.25; padding: 8px 10px; }
.bot-input button { width: 36px; }
.bot-bottom { min-height: 28px; padding: 5px 12px; font-size: 10px; line-height: 1.4; }
.bot-rating { padding: 16px; flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.bot-rating h2 { font-family: var(--sans); font-size: 18px; font-weight: 600; letter-spacing: -.3px; margin: 8px 0; }
.bot-rating > p { font-size: 12px; color: var(--muted); }
.bot-intake { display: flex; flex-direction: column; flex: 1; min-height: 0; overflow: hidden; }
.bot-intake-body { padding: 12px 12px 4px; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.bot-intake-intro h2 { font-family: var(--sans); font-size: 16px; font-weight: 600; line-height: 1.3; letter-spacing: -.2px; margin: 0 0 3px; }
.bot-intake-intro p { font-size: 11px; line-height: 1.5; color: var(--muted); margin: 0 0 10px; }
.bot-intake .field { margin-bottom: 8px; gap: 3px; min-width: 0; }
.bot-intake .field > label { font-size: 11px; line-height: 1.5; }
.bot-intake input { width: 100%; min-width: 0; min-height: 36px; padding: 8px 9px; border-radius: 6px; font-size: 13px; line-height: 1.25; }
.bot-contact-fields { display: grid; grid-template-columns: minmax(0,1fr); gap: 8px; }
.bot-contact-fields .field { margin-bottom: 0; }
.bot-intake .checkline { align-items: flex-start; gap: 7px; min-height: 36px; margin: 0; padding: 3px 0; font-size: 11px; line-height: 1.4; }
.bot-intake .checkline input { flex-shrink: 0; width: 16px; height: 16px; min-height: 0; padding: 0; margin: 1px 0 0; }
.bot-intake .checkline a { text-decoration: underline; }
.bot-intake-actions { flex-shrink: 0; padding: 4px 12px 12px; }
.bot-intake .btn { min-height: 36px; padding: 8px 12px; border-radius: 6px; font-size: 11px; line-height: 1.4; }
.bot-intake .bot-intake-note { font-size: 11px; line-height: 1.4; color: var(--muted); margin: 6px 0; }
.bot-intake .bot-error { font-size: 11px; padding: 6px 8px; margin: 6px 0; }
.bot-closing { padding: 18px; text-align: center; background: var(--cream); flex-shrink: 0; }
.bot-closing strong { font-size: 13px; }
.bot-closing p { font-size: 12px; color: var(--muted); margin: 5px 0 14px; }
.bot-rating { text-align: center; }
.bot-rating .field { text-align: left; }
.bot-rating textarea { min-height: 80px; font-size: 14px; }
.bot-finished { display: inline-grid; place-items: center; width: 48px; height: 48px; color: var(--wine); background: #702e3d0b; border-radius: 50%; margin: 6px auto; }
.bot-stars { display: flex; justify-content: center; gap: 5px; margin: 16px 0; }
.bot-stars button { width: 36px; height: 40px; color: var(--wine); background: none; font-size: 26px; border: 1px solid var(--line); border-radius: 8px; }
.bot-stars button:hover, .bot-stars button:focus-visible { background: #702e3d12; }
.bot-team { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 15px 8px; background: white; flex-shrink: 0; }
.bot-team button { color: var(--muted); padding: 6px 0; background: none; font-size: 9px; min-height: 32px; }
.bot-team .icon { height: 12px; width: 12px; margin-right: 4px; }
.bot-ai-label { display: block; font-size: 9px; color: var(--muted); margin-top: 8px; }
.bot-error { color: #9a3042; background: #f8e9ed; padding: 8px 14px; font-size: 12px; flex-shrink: 0; }
.bot-typing { font-size: 11px; color: var(--muted); }
.bot-lead-list { display: grid; gap: 14px; margin: 22px 0; }
.bot-lead-card { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.bot-lead-card > div { min-width: 0; }
.bot-lead-card strong { font-size: 16px; }
.bot-lead-card small { display: block; color: var(--muted); margin-top: 6px; }
.bot-lead-card p { color: var(--muted); font-size: 12px; margin: 8px 0 0; }
.bot-lead-card:hover { border-color: #a56574; }
.bot-ai-settings > summary { cursor: pointer; font-size: 15px; }
.bot-ai-settings[open] > summary { margin-bottom: 20px; }
.admin-bot-transcript { display: grid; gap: 16px; }
.admin-bot-message { padding: 16px; border-radius: 10px; background: var(--cream); }
.admin-bot-message.visitor { margin-left: 30px; background: #702e3d0b; }
.admin-bot-message > div { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.admin-bot-message strong { font-size: 12px; }
.admin-bot-message small { color: var(--muted); font-size: 10px; }
.admin-bot-message p { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13px; line-height: 1.8; margin: 8px 0 0; }
@media (max-width:1023px) {
    .bot-panel { height: min(460px,var(--bot-viewport-space)); max-height: var(--bot-viewport-space); }
    .bot-panel.bot-panel-intake { height: auto; max-height: min(480px,var(--bot-viewport-space)); }
    .bot-header button { width: 36px; height: 36px; }
    .bot-header .bot-title small { font-size: 10px; }
    .bot-rating textarea { font-size: 16px; min-height: 44px; }
    .bot-rating > p { font-size: 12px; }
    .bot-intake .checkline input { min-height: 0; }
    .bot-team { gap: 12px; }
    .bot-team button { font-size: 10px; min-height: 36px; }
    .bot-ai-label { font-size: 11px; }
    .bot-lead-card { flex-wrap: wrap; gap: 12px; }
    .bot-lead-card > div { flex-basis: 100%; }
    .bot-lead-card > .icon { display: none; }
}
@media (max-width:639px) {
    .bot-intake input, .bot-input input { font-size: 16px; min-height: 40px; padding: 7px 9px; }
    .bot-intake .btn { min-height: 40px; }
    .bot-intake .checkline input { min-height: 0; padding: 0; }
}
.bot-rating-submit { margin-bottom: 12px; border-radius: 8px; }

@media(max-width:760px){.gift-row{grid-template-columns:56px minmax(0,1fr);gap:12px}.gift-row>strong{grid-column:2}.gift-row img{width:56px;height:70px}.coupon-entry{flex-wrap:wrap}.coupon-entry .btn{width:100%}}

/* Store credits and privacy controls share the footer's compact base. */
.store-footer { padding-top: 32px; }
.store-footer .footer-grid { gap: 32px; padding-bottom: 24px; }
.store-footer .footer-grid h3 { font-size: 11px; margin: 4px 0 10px; }
.store-footer .footer-grid p { font-size: 11px; line-height: 1.75; margin: 12px 0; }
.store-footer .footer-grid .footer-links > a,
.store-footer .footer-grid .footer-contact-methods > a { display: flex; align-items: center; min-height: 28px; margin: 0; padding: 3px 0; color: #bfb2a6; font-size: 11px; line-height: 1.5; }
.store-footer .footer-contact-block > p { margin: 8px 0; }
.store-footer .footer-grid .footer-contact { min-height: 32px; margin: 0; padding: 5px 0; font-size: 11px; }
.store-footer .footer-bottom { padding-top: 14px; padding-bottom: 0; align-items: center; justify-content: flex-start; gap: 8px 20px; font-size: 10px; line-height: 1.7; }
.footer-copyright { margin: 0; }
.footer-credit { display: inline-block; }
.footer-credit a { color: #ddd1c5; text-underline-offset: 3px; }
.footer-credit a:hover, .footer-credit a:focus-visible { color: #fff; text-decoration: underline; }
.footer-locale { white-space: nowrap; }
.footer-utility { display: flex; align-items: center; justify-content: flex-end; gap: 8px 20px; min-height: 44px; padding-bottom: 8px; color: #ad9f92; font-size: 10px; line-height: 1.6; text-align: right; }
.store-footer .cookie-preferences-link { min-height: 36px; flex-shrink: 0; }
@media (max-width:1023px) {
    .store-footer .footer-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px 32px; }
    .store-footer .footer-grid .footer-links > a,
    .store-footer .footer-grid .footer-contact-methods > a { min-height: 44px; font-size: 12px; }
    .store-footer .footer-grid .footer-contact { min-height: 44px; font-size: 12px; }
    .store-footer .cookie-preferences-link { min-height: 44px; }
}
@media (max-width:767px) {
    .store-footer { padding-top: 26px; }
    .store-footer .footer-grid { gap: 20px; padding-bottom: 20px; }
    .store-footer .footer-brand, .store-footer .footer-contact-block { grid-column: 1/-1; }
    .store-footer .footer-grid h3 { font-size: 13px; margin: 0 0 6px; }
    .store-footer .footer-brand > p { max-width: 320px; font-size: 12px; margin: 10px 0 8px; }
    .store-footer .footer-location { font-size: 8px; }
    .store-footer .footer-contact-block { border-top: 1px solid #443a33; padding-top: 18px; }
    .footer-contact-methods { display: flex; flex-wrap: wrap; gap: 0 20px; }
    .store-footer .footer-contact-block > p { max-width: none; font-size: 12px; margin: 4px 0; }
    .store-footer .footer-grid .footer-contact { max-width: none; }
    .store-footer .footer-bottom { align-items: flex-start; gap: 6px 16px; padding-top: 12px; font-size: 10px; }
    .footer-copyright { flex-basis: 100%; }
    .footer-credit { display: block; }
    .footer-utility { flex-wrap: wrap; gap: 0 14px; padding-bottom: 6px; }
    .footer-utility > span { flex: 1 1 190px; font-size: 9px; }
}

/* A consistent summary and coupon control at every checkout width. */
.checkout-summary{border:1px solid #e5ddd3;border-radius:16px;background:#f3eee7;padding:26px;min-width:0}.checkout-summary .summary-heading{display:flex;align-items:baseline;justify-content:space-between;gap:14px;margin-bottom:24px}.checkout-summary .summary-heading h2{font-size:26px;margin:0;letter-spacing:-1px}.checkout-summary .summary-heading p{margin:0;white-space:nowrap;font-size:12px;color:#81766c}.checkout-summary .summary-amounts{margin:0}.checkout-summary .summary-line{align-items:flex-start;font-size:14px;line-height:1.6;margin:15px 0;gap:18px}.checkout-summary dt{min-width:0}.checkout-summary dd{margin:0;font-weight:600;white-space:nowrap;font-variant-numeric:tabular-nums}.checkout-summary dt small{display:block;font-size:11px;font-weight:500;margin-top:3px;letter-spacing:.2px}.checkout-summary .summary-discount{color:#286744}.checkout-summary .summary-payable{display:flex;align-items:center;justify-content:space-between;gap:18px;padding-top:20px;margin-top:20px;border-top:1px solid #d9cec1}.checkout-summary .summary-payable>div>strong{font-size:16px}.checkout-summary .summary-payable>strong{font-size:27px;line-height:1.3;letter-spacing:-.5px;white-space:nowrap;font-variant-numeric:tabular-nums;color:#552331}.checkout-summary .summary-payable small{display:block;margin-top:4px;font-size:11px;color:#786e65}.checkout-summary .summary-tax{display:flex;justify-content:space-between;gap:14px;margin-top:14px;font-size:12px;color:#867a6e;font-variant-numeric:tabular-nums}.checkout-summary .summary-savings{display:flex;align-items:center;justify-content:center;gap:7px;padding:10px 12px;border-radius:7px;background:#e4eee3;color:#286744;margin:16px 0 0;font-size:12px}.checkout-summary .summary-savings .icon{width:15px;height:15px}.checkout-summary .coupon-box{border-top:1px solid #ddd1c3;padding:20px 0 0;margin:22px 0 0}.checkout-summary .coupon-box label{font-size:13px;font-weight:500;margin-bottom:10px}.checkout-summary .coupon-entry{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:stretch;gap:9px}.checkout-summary .coupon-entry input{width:100%;min-width:0;height:48px;padding:12px 13px;border:1px solid #d8cfc5;border-radius:8px;background:#fff;font-size:13px;line-height:1.4;text-transform:uppercase}.checkout-summary .coupon-entry input::placeholder{text-transform:none;color:#9a9087;font-size:13px}.checkout-summary .coupon-entry .btn{margin:0;width:auto;min-width:86px;height:48px;min-height:48px;padding:10px 17px;border-radius:8px;line-height:1.4;font-size:13px;letter-spacing:0;background:#702e3d;color:#fff;white-space:nowrap}.checkout-summary .coupon-entry .btn:hover{background:#54222f}.checkout-summary .coupon-applied{display:flex;align-items:center;gap:10px;padding:12px;border:1px solid #ccdcca;border-radius:9px;background:#edf4eb;color:#286744}.checkout-summary .coupon-applied-icon{display:flex;flex-shrink:0}.checkout-summary .coupon-applied-icon .icon{width:19px;height:19px}.checkout-summary .coupon-applied>div{flex:1;min-width:0}.checkout-summary .coupon-applied strong{display:block;font-size:13px;letter-spacing:.5px;overflow-wrap:anywhere}.checkout-summary .coupon-applied small{display:block;font-size:11px;margin-top:2px}.checkout-summary .coupon-applied button{padding:6px 0 6px 8px;font-size:11px;background:none;color:inherit;text-decoration:underline;text-underline-offset:3px}.checkout-summary .coupon-unapplied{background:#f6f1e9;border-color:#dfd4c4;color:#817257}.checkout-summary .coupon-unapplied .coupon-applied-icon{display:none}.checkout-summary .coupon-feedback{font-size:12px;line-height:1.6;color:#286744;margin:10px 0 0}.checkout-summary .coupon-feedback.is-error{color:#9b3343}.checkout-summary .coupon-notice{font-size:12px;line-height:1.6;margin:10px 0 0;color:#786e65}.checkout-summary .summary-footnote{display:flex;align-items:flex-start;gap:7px;margin:21px 0 0;color:#968a7d;font-size:11px;line-height:1.6}.checkout-summary .summary-footnote .icon{width:13px;height:15px;margin-top:1px}.checkout-summary[aria-busy=true] .coupon-box{opacity:.6}.checkout-summary .coupon-box button:disabled{cursor:wait}@media(max-width:420px){.checkout-summary{padding:20px}.checkout-summary .summary-heading h2{font-size:24px}.checkout-summary .summary-heading p{font-size:11px}.checkout-summary .summary-line{font-size:13px}.checkout-summary .summary-payable>strong{font-size:25px}.checkout-summary .coupon-entry{gap:8px}.checkout-summary .coupon-entry .btn{min-width:78px;padding:10px 13px}}@media(max-width:340px){.checkout-summary{padding:18px}.checkout-summary .summary-heading{gap:8px}.checkout-summary .summary-heading h2{font-size:22px}.checkout-summary .summary-payable>div>strong{font-size:14px}.checkout-summary .coupon-entry .btn{min-width:70px;padding:10px}.checkout-summary .coupon-entry input{padding-left:10px;padding-right:10px}}
