/* Customer mobile layout. Desktop composition and domain handlers are unchanged. */
@media (max-width:959px) {
 .botanical-page {--mobile-nav-space:calc(78px + env(safe-area-inset-bottom));--mobile-edge:max(16px,env(safe-area-inset-left),env(safe-area-inset-right));padding-bottom:var(--mobile-nav-space);scroll-padding-bottom:var(--mobile-nav-space)}
 .botanical-page .container {width:calc(100% - var(--mobile-edge) - var(--mobile-edge));max-width:760px;min-width:0}
 .botanical-page :is(main,section,article,aside,form,fieldset,.page-body,.account-content) {min-width:0}
 .botanical-page :is(h1,h2,h3,p,dd,.button,.card-add) {overflow-wrap:anywhere}
 .botanical-page .header-inner {display:grid;grid-template-columns:minmax(0,1fr);gap:12px;padding-block:12px;padding-block-start:max(12px,env(safe-area-inset-top))}
 .botanical-page .header-top {display:grid;grid-template-columns:minmax(0,1fr) 44px 44px;gap:8px;align-items:center;width:100%}
 .botanical-page .wordmark {grid-column:1;grid-row:1;justify-self:start;font-size:24px;min-height:44px;gap:8px}
 .botanical-page .header-actions {display:contents}
 .botanical-page .header-actions>.theme-toggle {grid-row:1;grid-column:2}
 .botanical-page .header-actions>.bag-link {grid-row:1;grid-column:3}
 .botanical-page .header-actions .account-actions {grid-column:1/-1;grid-row:2;display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:0;width:100%}
 .botanical-page .header-actions .account-actions .button {flex:1 1 100px;min-height:44px;min-width:0;padding:8px 12px;font-size:13px;line-height:1.7}
 .botanical-page .header-actions .icon-button,.botanical-page .site-notifications>summary {width:44px;min-width:44px;height:44px;min-height:44px;padding:10px}
 .botanical-page .site-notifications {flex:0 0 44px}
 .botanical-page .site-notifications>summary>span:not(.notification-count) {display:none}
 .botanical-page .site-search {width:100%;margin:0;min-height:48px;grid-column:1;grid-row:auto;transform:none}
 .botanical-page .site-search .search-field {min-height:48px;gap:8px}
 .botanical-page .site-search input {font-size:16px;min-height:44px;min-width:0;width:100%}
 .botanical-page .search-submit {min-width:44px;min-height:44px}
 .botanical-page .search-suggestions {max-height:min(55dvh,380px);overflow:auto;overscroll-behavior:contain}
 .botanical-page .notifications-popover {position:fixed;inset:calc(112px + env(safe-area-inset-top)) var(--mobile-edge) auto;width:auto;max-width:none;max-height:calc(100dvh - 112px - env(safe-area-inset-top) - var(--mobile-nav-space) - 16px);overflow:auto;overscroll-behavior:contain}
 .botanical-page .products-mobile-panel {inset:auto 12px calc(86px + env(safe-area-inset-bottom));max-height:calc(100dvh - 130px - env(safe-area-inset-bottom));overscroll-behavior:contain}
 .botanical-page .products-panel-heading button,.botanical-page .product-menu-category {min-height:44px}
 .botanical-page .mobile-navigation {min-height:70px;height:auto;padding:6px max(8px,env(safe-area-inset-right)) calc(6px + env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left));gap:4px;align-items:stretch}
 .botanical-page .mobile-navigation>:is(a,button) {min-width:0;min-height:56px;padding:6px 3px;margin:0;font-size:11px;line-height:1.5;gap:4px;border-radius:14px}
 .botanical-page .mobile-navigation .icon {width:22px;height:22px;flex-shrink:0}
 /* The small-screen hero has real rows. No absolute title/card/cup collision or pinned dead space. */
 .botanical-page .botanical-journey,.botanical-page.motion-ready .botanical-journey {height:auto;min-height:0}
 .botanical-page .journey-stage,.botanical-page.motion-ready .journey-stage {position:relative;top:auto;height:auto;min-height:0;overflow:clip}
 .botanical-page .scene-heading {padding-block:16px 0}
 .botanical-page .hero-content {display:flex;flex-direction:column;align-items:stretch;gap:16px;height:auto;padding-block:16px 24px}
 .botanical-page .hero-intro {position:relative;inset:auto;order:0;margin:0;text-align:center;font-size:clamp(36px,10vw,58px);line-height:1.45;letter-spacing:-1px;z-index:1}
 .botanical-page .hero-intro>span {position:static;display:block;inset:auto;font-size:1em;line-height:1.45;letter-spacing:-1px}
 .botanical-page .hero-visual {position:relative;inset:auto;order:1;align-self:center;flex:none;width:min(100%,360px);height:260px;margin:0;z-index:2}
 .botanical-page .hero-product-suggestion {position:relative;inset:auto;order:3;align-self:center;width:100%;max-width:400px;min-height:76px;margin:0;padding:12px;gap:12px;z-index:1}
 .botanical-page .hero-product-thumb {width:56px;height:56px;flex:0 0 56px}
 .botanical-page .suggestion-copy {min-width:0;flex:1}
 .botanical-page .hero-description {position:relative;inset:auto;order:2;width:100%;display:grid;gap:12px;margin:0;text-align:center;z-index:1}
 .botanical-page .hero-description>p {margin:0;font-size:14px;line-height:1.9;white-space:pre-line}
 .botanical-page .hero-description>.button {justify-self:stretch;min-height:48px;width:100%;font-size:14px}
 .botanical-page .note-origin {position:relative;inset:auto;order:3;width:100%;max-width:none;align-self:stretch}
 .botanical-page .ritual-copy,.botanical-page.motion-ready .ritual-copy {display:block;position:relative;inset:auto;order:4;opacity:1;visibility:visible;max-width:100%;text-align:center;margin-block:10px 0;padding-block:20px 0;border-top:1px solid var(--home-line)}
 .botanical-page .ritual-copy h2 {font-size:clamp(25px,7vw,36px);line-height:1.65;white-space:pre-line}
 .botanical-page .ritual-copy>p:not(.eyebrow) {font-size:14px;line-height:1.9}
 .botanical-page .journey-bottom {position:relative;inset:auto;padding-block:0 20px;gap:12px}
 .botanical-page .journey-progress {display:none}
 .botanical-page .photo-slider {position:relative;height:auto;min-height:0;aspect-ratio:16/9;margin-block:24px;border-radius:18px;overflow:hidden}
 .botanical-page .photo-slide {position:absolute;inset:0;height:100%;min-height:0}
 .botanical-page .photo-slide[hidden] {display:none}
 .botanical-page .photo-dots {bottom:10px}
 .botanical-page .photo-dots button {width:44px;height:44px;border:17px solid transparent;background-clip:content-box}
 .botanical-page .section-pad {padding-block:36px}
 .botanical-page .home-product-band {margin-block:0}
 .botanical-page .collection-row {padding-block:28px 32px}
 .botanical-page .collection-heading {display:grid;grid-template-columns:64px minmax(0,1fr);gap:4px 12px;align-items:center;margin-bottom:12px}
 .botanical-page .collection-heading>.companion-dock {width:64px;height:64px;margin:0;grid-column:1;grid-row:1/3}
 .botanical-page .collection-heading>div {grid-column:2;display:block;min-width:0}
 .botanical-page .collection-heading h2 {font-size:21px;line-height:1.7;margin:0}
 .botanical-page .collection-heading>.quiet-link {grid-column:2;font-size:12px;min-height:44px;display:flex;align-items:center;min-width:0;overflow-wrap:anywhere}
 .botanical-page .collection-summary {font-size:13px;line-height:1.9;margin-block:0 12px}
 .botanical-page .collection-products {grid-auto-columns:46%;gap:12px;padding-bottom:16px;scroll-padding-inline:2px;overscroll-behavior-inline:contain}
 .botanical-page .collection-products>.home-product-card {height:auto;min-width:0}
 .botanical-page .carousel-toolbar button {min-width:44px;min-height:44px}
 .botanical-page .category-child-links {gap:8px;flex-wrap:wrap}
 .botanical-page .category-child-links>a {min-height:44px;display:inline-flex;align-items:center;padding:8px 12px}
 .botanical-page .companion-section-heading {display:grid;grid-template-columns:minmax(0,1fr) 64px;align-items:center;gap:12px}
 .botanical-page .companion-section-heading h2 {font-size:24px;line-height:1.7;margin:0}
 .botanical-page .companion-section-heading>.companion-dock {width:64px;height:64px;margin:0}
 .botanical-page .brand-story,.botanical-page .inquiry-garden {display:grid;grid-template-columns:64px minmax(0,1fr);gap:16px;padding:20px;margin-block:24px}
 .botanical-page :is(.brand-story,.inquiry-garden)>.companion-dock {width:64px;height:64px;margin:0}
 .botanical-page :is(.brand-story,.inquiry-garden)>div {min-width:0}
 .botanical-page :is(.brand-story,.inquiry-garden) h2 {font-size:23px;line-height:1.7}
 .botanical-page :is(.brand-story,.inquiry-garden)>.button {grid-column:1/-1;justify-self:stretch;width:100%;min-height:48px}
 .botanical-page .faq-list summary {min-height:56px;padding:16px;font-size:15px;line-height:1.8}
 .botanical-page .faq-list details>p {padding-inline:16px;font-size:14px;line-height:2}
 .botanical-page .footer-grid {gap:16px;padding-block:28px}
 .botanical-page .footer-group>:is(button,summary) {min-height:48px;font-size:15px}
 .botanical-page .footer-group a {display:inline-flex;align-items:center;min-height:44px}
 .botanical-page .footer-fineprint,.botanical-page .kisan-credit {font-size:12px;line-height:1.9}
 .customer-page .page-intro {padding-block:24px}
 .customer-page .page-intro h1 {font-size:28px;line-height:1.6;margin-block:12px}
 .customer-page .page-body {padding-block:24px 36px}
 .customer-page :is(.panel,.record-card,.auth-card,.address-card) {padding:18px;border-radius:20px}
 .customer-page .auth-card {width:100%;max-width:570px}
 .customer-page :is(.two-column,.product-layout,.account-layout) {grid-template-columns:minmax(0,1fr);gap:24px}
 .customer-page .two-column>aside {position:static;top:auto}
 .customer-page :is(input:not([type=hidden]):not([type=checkbox]):not([type=radio]),select,textarea) {font-size:16px;line-height:1.7;min-height:48px;max-width:100%}
 .customer-page :is(input[type=checkbox],input[type=radio]) {width:22px;height:22px}
 .customer-page .choice {align-items:flex-start;padding:14px;line-height:1.9}
 .customer-page .choice>span {min-width:0;overflow-wrap:anywhere}
 .customer-page .choice>input {margin-top:4px}
 .customer-page :is(.button,.card-add) {min-height:48px;padding:10px 14px;font-size:14px;line-height:1.7}
 .customer-page .product-gallery {padding:14px;border-radius:20px}
 .customer-page .product-hero-image {height:auto;min-height:0;max-height:none;aspect-ratio:1;padding:12px;display:grid;place-items:center}
 .customer-page .product-hero-image img {height:100%;min-height:0;max-height:100%;width:100%;object-fit:contain}
 .customer-page .product-thumbnails {padding-top:12px}
 .customer-page .product-tabs {flex-wrap:nowrap;overflow:auto;margin-block:20px;padding:8px;gap:4px;overscroll-behavior-inline:contain}
 .customer-page .product-tabs>a {flex:0 0 auto;min-height:44px;padding:8px 12px}
 .customer-page .checkout-steps {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;padding:6px;margin-block:0 20px}
 .customer-page .checkout-steps>a {min-width:0;padding:8px 4px;white-space:normal;font-size:12px;line-height:1.7;justify-content:center;text-align:center}
 .customer-page .account-navigation {position:static;display:flex;overflow:auto;gap:6px;max-width:100%;padding:8px;overscroll-behavior-inline:contain}
 .customer-page .account-navigation>a {flex:0 0 auto;min-height:44px;font-size:13px;padding:10px 12px}
 .customer-page :is(.summary-list,.fact-list)>div {display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.4fr);gap:8px;align-items:start}
 .customer-page :is(.summary-list,.fact-list) dd {min-width:0;margin:0;overflow-wrap:anywhere}
 .customer-page .record-card form {align-items:stretch;gap:10px;margin-block:12px}
 .customer-page .record-card form>.button {flex:1 1 120px}
 .customer-page .guest-cart-line>a {gap:12px;align-items:center}
 .customer-page .guest-cart-line img {width:64px;height:64px;flex-shrink:0}
 .customer-page .guest-cart-line strong {min-width:0;overflow-wrap:anywhere}
 .customer-page .related-shelf-heading {flex-wrap:wrap;gap:8px}
 .customer-page .related-shelf-heading h2 {font-size:23px}
 .customer-page :is(.table-wrap,.table-responsive) {overscroll-behavior-inline:contain}
}
@media (max-width:599px) {
 .botanical-page .collection-products {grid-auto-columns:78%}
 .botanical-page .home-product-card .product-link,:root[data-home-theme=light] .botanical-page .home-product-card .product-link {padding:12px}
 .botanical-page .home-product-card .product-picture {min-height:0;border-radius:16px}
 .botanical-page .home-product-card .product-image,.customer-page .home-product-card .product-image {height:clamp(120px,34vw,180px)!important;width:100%;object-fit:contain}
 .botanical-page .home-product-card h3 {font-size:15px;line-height:1.7;margin-block:8px}
 .botanical-page .home-product-card .card-price strong {font-size:14px;line-height:1.8}
 .botanical-page .home-product-card .card-price small {font-size:12px;line-height:1.8}
 .botanical-page .home-product-card .product-category {font-size:12px;line-height:1.8}
 .botanical-page .home-product-card .product-mode {font-size:10px;padding:5px 8px}
 .botanical-page .home-product-card .card-purchase {padding:0 12px 12px}
 .botanical-page .home-product-card .card-add {min-height:46px;font-size:12px;padding:8px}
 .customer-page :is(.catalog-grid,.related-shelf-grid) {grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
 .customer-page :is(.dashboard-links,.stats-grid) {grid-template-columns:minmax(0,1fr);gap:12px}
}
@media (max-width:359px) {
 .botanical-page {--mobile-edge:max(12px,env(safe-area-inset-left),env(safe-area-inset-right))}
 .botanical-page .hero-visual {height:230px}
 .customer-page :is(.catalog-grid,.related-shelf-grid) {grid-template-columns:minmax(0,1fr)}
 .botanical-page .mobile-navigation>:is(a,button) {font-size:10px}
 .botanical-page .collection-heading h2 {font-size:19px}
}

@media(max-width:959px){
 html:has(body.botanical-page) {scroll-padding-block-end:calc(78px + env(safe-area-inset-bottom))}
 .botanical-page :is(input,select,textarea,button,summary,[id]) {scroll-margin-block:24px}
 .customer-page .auth-section {padding-block:28px}
 .customer-page .auth-card .auth-links>a {min-height:44px;display:inline-flex;align-items:center}
}

@media(max-width:959px){
 .botanical-page .home-companion .companion-cup:not(.scene-loaded) .botanical-cup-fallback {position:absolute;inset:0;width:100%;height:100%;transform:none}
}
@media(max-width:959px){
 .botanical-page .eyebrow,.botanical-page .scroll-cue {font-size:12px;line-height:1.8}
 .botanical-page .suggestion-copy small {font-size:11px;line-height:1.8}
 .botanical-page .suggestion-copy strong {font-size:14px;line-height:1.8}
 .botanical-page .suggestion-copy>span,.botanical-page .card-feedback {font-size:12px;line-height:1.8}
 .customer-page .breadcrumbs {font-size:12px;line-height:1.8}
}
