/* Brew Lab r6 visual layer. Original ordering, Square and notification styles remain intact. */
:root{--brew-olive:#34452F;--brew-sage:#A3B58E;--brew-cream:#FFFAF0;--brew-pink:#F5B4CE;--brew-page-bg:#FFFAF0;--brew-round:24px}
body{background:#eef0e8;color:#34452F}.app-shell{background:var(--brew-page-bg);box-shadow:0 5px 75px #283b2817}
.app-topbar{height:76px;background:var(--brew-header-bg,#FFFAF0);color:var(--brew-header-text,#34452F);background-image:var(--brew-header-image,none);background-size:cover;background-position:center;border-color:#34452F14}
.app-topbar .identity{color:inherit}.app-topbar .identity strong{font-size:20px;letter-spacing:-.045em}
.identity-icon{border-radius:13px;background:#fffdf7d8}.notification-bell{background:#fffdf6;color:#34452F;border-color:#34452F1a}
.service-chip{background:#fffdf4df;color:#34452F}
.app-page{background:var(--brew-page-bg);background-image:var(--brew-page-image,none);background-size:cover;background-position:center;padding-bottom:40px}
.app-page .page-intro{margin:-19px -15px 21px;padding:28px 23px 16px;background:var(--page-header-bg,var(--brew-cream));color:var(--page-header-text,#34452F);background-image:var(--page-header-image,none);background-size:cover;background-position:center;border-radius:0 0 25px 25px}
.page-intro h1{font-size:clamp(30px,7vw,46px);font-weight:850;line-height:1.09;letter-spacing:-.06em;color:inherit}
.page-intro h1 em{font-family:Georgia,'Times New Roman',serif;font-weight:500;color:inherit}.page-intro .eyebrow{color:inherit;opacity:.72}.page-intro p{color:inherit;opacity:.72}
.hero{isolation:isolate;min-height:335px!important;background:var(--hero-bg,var(--brew-olive))!important;border-radius:var(--brew-round)!important;box-shadow:0 14px 30px #2b40272c}
.hero::after,.hero-glow{display:none!important}
#homePage .hero{padding:32px 23px 26px;position:relative;overflow:hidden}
#homePage .hero .eyebrow{color:#dce9d6;position:relative;z-index:2}
#homePage .hero h1{font-size:clamp(29px,6.4vw,48px);line-height:1.07;letter-spacing:-.05em;max-width:66%;font-weight:900;position:relative;z-index:2;margin:14px 0}
#homePage .hero h1 em{font-family:Georgia,serif;font-size:.99em;font-weight:500;font-style:italic;color:#FFF9E8}
#homePage .hero p:not(.customer-home-greeting){max-width:59%;font-size:13px;line-height:1.55;color:#e9f0df;position:relative;z-index:2}
#homePage .hero .hero-action{background:#FFFAF0;color:#34452F;border:0;border-radius:13px;font-weight:850;font-size:12px;min-height:46px;display:inline-flex;gap:8px;align-items:center;padding:12px 18px;position:relative;z-index:2}
#homePage .hero-mark{filter:none;opacity:1;width:40%;height:100%;right:0;bottom:0;object-fit:cover;object-position:center;border-radius:0 var(--brew-round) var(--brew-round) 0;z-index:0;pointer-events:none}
#homePage .hero::before{content:"";position:absolute;z-index:1;top:0;bottom:0;right:25%;width:23%;background:linear-gradient(90deg,var(--hero-bg,#34452F),transparent);pointer-events:none}
#homePage .hero:has(.hero-mark[src$="logo.png"]) .hero-mark{object-fit:contain;opacity:.23;padding:12px}
.customer-home-greeting{color:#e4efdd;z-index:3;position:relative}
.intro-note{border:none;border-radius:17px;margin-top:16px;background:#f0f0e7}.intro-sparkle{font-size:20px}.intro-note strong{color:#34452F}
.section-heading{margin-top:32px}.section-heading h2{color:var(--brew-olive);font-size:clamp(22px,5.5vw,29px);letter-spacing:-.05em}
.feature-card,.product-card{border-radius:var(--brew-round);border-color:#34452F19;box-shadow:0 7px 17px #253d2b10}
.feature-card{flex:0 0 min(78%,350px)}.feature-img{height:205px}.feature-body{padding:17px}.feature-body h3{font-size:17px}.feature-body p{font-size:12px}
.home-promo-banner{background:var(--promo-bg,#E8D9BF);margin-top:33px;min-height:207px;border-radius:var(--brew-round);display:grid;grid-template-columns:58% 42%;overflow:hidden;color:#34452F;box-shadow:0 8px 20px #34452F12}
.home-promo-content{position:relative;z-index:2;padding:23px 12px 23px 21px;display:flex;flex-direction:column;align-items:flex-start;justify-content:center}
.home-promo-content .eyebrow{font-size:9px;line-height:1.3;letter-spacing:.1em;color:#617664}
.home-promo-content h2{font-size:clamp(21px,5vw,30px);line-height:1.08;letter-spacing:-.048em;margin:8px 0 7px;max-width:270px}
.home-promo-content p{font-size:11px;line-height:1.45;color:#63715d;margin:0 0 12px}
.home-promo-button{border:0;border-radius:10px;background:var(--brew-olive);color:#FFFAF0;font-size:11px;min-height:42px;padding:10px 15px;font-weight:800}
.home-promo-visual{min-width:0;min-height:100%;overflow:hidden}.home-promo-visual img{width:100%;height:100%;object-fit:cover}
.home-promo-visual:has(img[src$="logo.png"]) img{object-fit:contain;padding:18px;opacity:.58}
.category-tile{border-radius:20px;background:#FFFEF9}.category-tile strong{color:var(--brew-olive)}
.filter-chip.active{background:var(--brew-olive);border-color:var(--brew-olive)}
#menuPage .product-grid{grid-template-columns:1fr;gap:15px}
#menuPage .product-card{display:grid;grid-template-columns:minmax(115px,39%) minmax(0,1fr);min-height:194px;overflow:hidden}
#menuPage .product-photo{height:100%;min-height:194px;aspect-ratio:auto}
#menuPage .product-photo img{width:100%;height:100%;object-fit:cover}
#menuPage .product-body{padding:15px 13px;display:flex;flex-direction:column;justify-content:center;min-width:0}
#menuPage .product-body h3{font-size:18px;line-height:1.15;letter-spacing:-.035em;margin:7px 0}
#menuPage .product-description{font-size:11px;line-height:1.45;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;color:#6f7c6c}
#menuPage .product-type{font-size:9px;letter-spacing:.1em}
#menuPage .product-footer{margin-top:auto;display:flex;align-items:center;gap:7px;flex-wrap:wrap}
#menuPage .product-footer strong{font-size:15px;color:var(--brew-olive)}
#menuPage .product-footer .customize-btn{font-size:11px;background:var(--brew-olive);color:#FFFAF0;border-radius:10px;min-height:40px;padding:10px 12px;margin-left:auto}
#menuPage .product-card:has(img[src$="logo.png"]) .product-photo img{object-fit:contain;padding:17px;background:#f0f1e6}
.reward-summary{border:0;border-radius:28px;background:var(--brew-olive);box-shadow:0 12px 30px #20392327;padding:23px 20px 24px}
.reward-summary::after{display:none}.reward-summary h2{font-size:24px}.reward-summary p{font-size:12px}
.reward-beaker-scene{display:flex;gap:8px;align-items:center;justify-content:center;margin:14px auto 1px;max-width:460px;min-height:222px}
.reward-beaker-art{width:57%;max-width:205px;min-width:133px;overflow:visible;filter:drop-shadow(0 8px 7px #142f1d38)}
#rewardBeakerLiquid{transform-origin:center bottom;transition:transform .85s cubic-bezier(.15,.8,.25,1)}
.reward-beaker-progress{flex:1;min-width:95px;display:flex;flex-direction:column;gap:4px}
.reward-beaker-progress strong{font-size:clamp(37px,8vw,66px);line-height:1;letter-spacing:-.07em;color:#FFFAF0}.reward-beaker-progress strong span{font-size:.46em;color:#bdcfb9;font-weight:500;letter-spacing:0}
.reward-beaker-progress>span{font-size:11px;color:#dbe7d5}
.reward-stamp-grid{grid-template-columns:repeat(8,minmax(0,1fr));gap:5px;margin:10px 0 18px}
.reward-stamp{aspect-ratio:1;border-radius:100%;font-size:10px;max-width:37px}.reward-stamp.earned{background:#f6e6bc;color:#34452F}
.reward-summary .outline-button{border-radius:12px;min-height:46px}
/* In-app Orders: read-only views, secured through Supabase SQL */
.orders-view-tabs{display:grid;grid-template-columns:1fr 1fr;gap:5px;padding:5px;background:#e9eee3;border-radius:16px;margin-bottom:13px}
.orders-view-tab{border:0;border-radius:12px;min-height:43px;background:transparent;font-size:12px;font-weight:800;color:#6d7d6b}
.orders-view-tab.active{background:#fffdf7;color:var(--brew-olive);box-shadow:0 2px 9px #1837221e}
.orders-inline-status{font-size:12px;color:#637662;line-height:1.5;margin:12px 2px}
.orders-dashboard-list{display:grid;gap:15px}.order-dashboard-card{background:#fffdf9;border:1px solid #34452F1b;border-radius:var(--brew-round);padding:18px;box-shadow:0 8px 18px #2f43280d}
.order-card-top{display:flex;align-items:center;justify-content:space-between;gap:8px}.order-card-top strong{font-size:17px;color:var(--brew-olive)}
.order-card-status{border-radius:999px;padding:8px 11px;background:#e9eee0;color:#34523a;font-size:10px;font-weight:850}
.order-card-status.ready{background:#e0efd8}.order-card-status.declined{background:#f8e8e2;color:#9c4837}
.order-card-date{font-size:11px;color:#7a8979;margin:9px 0 16px}
.order-timeline{display:flex;align-items:flex-start;justify-content:space-between;gap:2px;margin:17px 0 9px}
.order-stage{flex:1;display:flex;align-items:center;flex-direction:column;gap:7px;color:#93a290;font-size:9px;text-align:center}
.order-stage>span:first-child{height:29px;width:29px;display:grid;place-items:center;border-radius:50%;border:2px solid #e5eae0;background:#fffefa;font-size:12px}
.order-stage.done{color:#3e6142;font-weight:750}.order-stage.done>span:first-child{background:#34452F;color:white;border-color:#34452F}
.order-detail-list{background:#f4f5ed;padding:12px;border-radius:14px;color:#61725f;font-size:11px}.order-detail-line{display:flex;align-items:center;justify-content:space-between;gap:10px;line-height:1.5;margin:5px 0}
.order-card-foot{border-top:1px solid #e7eadf;margin-top:14px;padding-top:13px;display:flex;justify-content:space-between;gap:7px;align-items:center;font-size:11px;color:#718370}
.order-card-foot strong{font-size:14px;color:#34452F}.order-card-foot a{color:#34452F;text-decoration:underline;font-weight:850}
.order-empty-card{background:#fffefa;border:1px dashed #afc3ae;border-radius:18px;padding:22px 15px;text-align:center;color:#6a7e68;font-size:12px;line-height:1.6}
.orders-bottom-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin:15px 0}.orders-bottom-actions button{min-height:47px;white-space:normal;font-size:11px;padding:11px}
.orders-privacy-note{font-size:11px;color:#889487;line-height:1.6;margin:18px 0}
/* Raised center button: both beaker and Rewards label INSIDE the large olive dome */
.bottom-tabs.modern-tabs{grid-template-columns:repeat(5,minmax(0,1fr));height:76px;padding-bottom:env(safe-area-inset-bottom);background:#fffaf0f2;border-top:1px solid #34452F24;overflow:visible;box-shadow:0 -6px 22px #2d3d2914;backdrop-filter:blur(18px)}
.bottom-tabs.modern-tabs .tab{color:#788875;min-width:0;font-size:10px;font-weight:750;justify-content:center;gap:4px;position:relative;padding:5px 0}
.bottom-tabs.modern-tabs .tab .nav-icon{display:grid;place-items:center;width:24px;height:24px;color:inherit}
.bottom-tabs.modern-tabs .tab .nav-icon svg{width:22px;height:22px}
.bottom-tabs.modern-tabs .tab.active:not(.rewards-nav-tab){color:var(--brew-olive)}
.bottom-tabs.modern-tabs .rewards-nav-tab{overflow:visible;align-self:stretch;padding:0;z-index:2}
.bottom-tabs.modern-tabs .rewards-nav-bubble{position:absolute;left:50%;bottom:8px;transform:translateX(-50%);height:clamp(94px,23vw,110px);width:clamp(94px,23vw,110px);border-radius:50%;background:var(--brew-olive);color:#FFFAF0;border:4px solid var(--brew-cream);box-shadow:0 8px 19px #20382245;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0;transition:box-shadow .15s}
.bottom-tabs.modern-tabs .rewards-nav-beaker{width:42px;height:48px;display:block;flex:none}
.bottom-tabs.modern-tabs .rewards-nav-bubble>span{color:#FFFAF0;font-size:11px;font-weight:850;line-height:1.15}
.bottom-tabs.modern-tabs .rewards-nav-tab.active .rewards-nav-bubble{box-shadow:0 0 0 3px var(--brew-sage),0 9px 19px #20382255}
.bottom-tabs.modern-tabs .rewards-nav-tab:focus-visible .rewards-nav-bubble{outline:3px solid #c1dbc0;outline-offset:4px}
.cart-float{bottom:calc(80px + env(safe-area-inset-bottom))}.site-footer{padding-bottom:calc(105px + env(safe-area-inset-bottom))}
@media(max-width:580px){.app-topbar{height:69px;padding:0 14px}.app-page{padding:16px 15px 43px}.app-page .page-intro{margin-top:-16px}.identity strong{font-size:18px}.identity small{font-size:8px}
#homePage .hero{min-height:360px!important;padding:28px 18px}#homePage .hero h1{max-width:70%;font-size:clamp(28px,7.7vw,38px)}#homePage .hero p:not(.customer-home-greeting){max-width:60%;font-size:11px}#homePage .hero-mark{width:42%}
.bottom-tabs.modern-tabs{height:72px}.bottom-tabs.modern-tabs .rewards-nav-bubble{bottom:6px}
}
@media(max-width:380px){.home-promo-banner{grid-template-columns:61% 39%}.home-promo-content{padding:17px 12px}.home-promo-content h2{font-size:22px}#menuPage .product-card{grid-template-columns:38% 62%}#menuPage .product-body{padding:12px 10px}#menuPage .product-body h3{font-size:15px}#menuPage .product-footer .customize-btn{font-size:10px;min-height:36px;padding:8px}#homePage .hero h1{font-size:30px}.bottom-tabs.modern-tabs .rewards-nav-bubble{height:89px;width:89px}.bottom-tabs.modern-tabs .rewards-nav-beaker{height:40px;width:40px}.bottom-tabs.modern-tabs .rewards-nav-bubble>span{font-size:10px}}
@media(prefers-reduced-motion:reduce){#rewardBeakerLiquid{transition:none}}

/* Before the live menu returns a real featured image, keep the brand watermark subtle. */
#homePage .hero:has(.hero-mark[src$="logo.png"]) .hero-mark{width:33%;height:55%;right:8px;bottom:10px;object-fit:contain;opacity:.11;padding:12px;border-radius:0}

/* r6 Home Refinement: clean specialty-coffee editorial layout; preserve all existing actions. */
:root{--brew-round:22px}
.app-topbar{background-color:var(--brew-header-bg,#34452F);color:var(--brew-header-text,#FFFAF0);background-image:var(--brew-header-image,none);border-color:transparent}
.app-topbar .identity{color:inherit}.app-topbar .identity strong{color:inherit}.app-topbar .identity small{color:inherit;opacity:.8}
.app-topbar .identity-icon{background:#fffdf2;border:1px solid #fff6e345}
.app-topbar .notification-bell{background:#FFFAF017;color:#FFFAF0;border-color:#fff9e851}
.app-topbar .service-chip{color:#FFFAF0;background:#FFFAF01c}
#homePage .hero{background:var(--hero-bg,#F1E7D7)!important;color:var(--banner-text,#34452F);min-height:344px!important;box-shadow:0 8px 24px #253b2b12}
#homePage .hero::before{background:linear-gradient(90deg,var(--hero-bg,#F1E7D7) 0%,transparent 100%);right:28%;width:23%}
#homePage .hero .eyebrow{color:var(--banner-text,#34452F);opacity:.65}
#homePage .hero h1{color:var(--banner-text,#34452F);max-width:67%;font-size:clamp(30px,7.3vw,42px);font-weight:850}
#homePage .hero h1 em{color:inherit;font-weight:500;font-family:Georgia,serif}
#homePage .hero p:not(.customer-home-greeting){color:var(--banner-text,#34452F);opacity:.8}
#homePage .hero .hero-action{color:var(--banner-button-text,#FFFAF0);background:var(--banner-button-bg,#34452F);min-height:46px;border-radius:999px;font-size:13px}
#homePage .hero-mark{right:0;width:44%;background-color:#DDCFB8;object-position:center center}
#homePage .hero:has(.hero-mark[src$="logo.png"]) .hero-mark{opacity:.3;object-fit:contain;width:40%;height:78%;right:0;bottom:10%;background:transparent;padding:22px}
.customer-home-greeting{color:var(--banner-text,#34452F)}
#homePage .hero .customer-home-greeting{color:var(--banner-text,#34452F)}
.intro-note{margin-top:14px;padding:14px 16px;border-radius:18px;background:#F1F0E6;color:#34452F;box-shadow:none}
.intro-note .intro-sparkle{font-size:22px}
.intro-note strong{font-size:13px}.intro-note p{font-size:11px;color:#66715F}
#homePage .section-heading{margin-top:27px;margin-bottom:13px}
#homePage .section-heading .eyebrow{color:#677865}
#homePage .feature-card{flex-basis:min(74%,290px);background:var(--page-card-bg,#FFFFFF);box-shadow:0 6px 18px #34452F12}
#homePage .feature-img{height:175px;background:#E9E2D5}
#homePage .feature-body{padding:14px 15px}.feature-body h3{color:#34452F;font-size:17px}
#homePage .feature-body .customize-btn{color:#FFFAF0;background:var(--page-button-bg,#34452F)}
.home-promo-banner{color:var(--banner-text,#34452F);border:1px solid #34452F0c}
.home-promo-content .eyebrow,.home-promo-content p{color:var(--banner-text,#34452F);opacity:.7}
.home-promo-content h2{color:var(--banner-text,#34452F);font-size:clamp(20px,5vw,29px)}
.home-promo-button{color:var(--banner-button-text,#FFFAF0);background:var(--banner-button-bg,#34452F);border-radius:999px;font-size:12px}
.home-rewards-strip{width:100%;border:1px solid #34452F1f;background:var(--page-card-bg,#FFFFFF);display:flex;align-items:center;text-align:left;gap:14px;border-radius:20px;padding:15px 16px;margin:24px 0 1px;box-shadow:0 7px 20px #34452F10;color:var(--page-accent,#34452F);cursor:pointer;min-height:98px}
.home-rewards-strip-icon{height:59px;width:59px;flex:none;background:#E7EBD8;border-radius:16px;display:grid;place-items:center;color:#34452F}
.home-rewards-strip-icon svg{height:46px;width:46px}
.home-rewards-strip-copy{flex:1;min-width:0;display:flex;flex-direction:column;gap:7px}
.home-rewards-strip-copy strong{font-size:19px;letter-spacing:-.035em}
.home-rewards-strip-copy small{font-size:11px;line-height:1.45;color:#6A7867}
.home-rewards-progress{height:8px;width:100%;max-width:210px;border-radius:999px;overflow:hidden;background:#E3E7DD;display:block}
.home-rewards-progress>span{display:block;height:100%;width:0%;border-radius:999px;background:#8CA46E;transition:width .5s ease}
.home-rewards-strip-arrow{font-size:24px;font-weight:500;color:#34452F}
.home-rewards-strip:focus-visible{outline:3px solid var(--brew-sage);outline-offset:2px}
#homePage .category-tile{background:var(--page-card-bg,#FFFFFF)}
.app-page .page-intro h1{color:inherit}
.app-page .page-intro h1 em{color:inherit}
#menuPage .product-card,.order-dashboard-card,.reward-history-item{background:var(--page-card-bg,#FFFFFF)}
#menuPage .customize-btn,#menuPage .product-footer .customize-btn{background:var(--page-button-bg,#34452F);color:var(--page-button-text,#FFFAF0)}
#menuPage .page-intro,#ordersPage .page-intro,#rewardsPage .page-intro,#accountPage .page-intro{border-bottom:1px solid #34452F10}
@media(max-width:380px){#homePage .hero{min-height:356px!important}#homePage .hero h1{font-size:29px;max-width:68%}#homePage .hero-mark{width:42%}.home-rewards-strip{padding:12px;gap:10px}.home-rewards-strip-icon{height:51px;width:51px}.home-rewards-strip-copy strong{font-size:17px}}
@media(prefers-reduced-motion:reduce){.home-rewards-progress>span{transition:none}}

/* Keep the hero headline fully clear of the photograph on narrow iPhone widths. */
#homePage .hero h1{font-size:clamp(23px,5.7vw,32px);max-width:55%;line-height:1.13;overflow-wrap:normal;word-break:normal}
#homePage .hero h1 em{display:inline;white-space:normal}
#homePage .hero p:not(.customer-home-greeting){max-width:51%}
#homePage .hero::before{right:32%;width:25%}
@media(max-width:430px){#homePage .hero h1{font-size:clamp(23px,6.35vw,29px);max-width:57%}#homePage .hero-mark{width:43%}}
@media(max-width:360px){#homePage .hero h1{font-size:22px;max-width:58%}#homePage .hero p:not(.customer-home-greeting){max-width:53%;font-size:10px}}
