/* EATSONE Front Order V7.1 — precise typographic & layout refinement.
   Layered after v7; preserves original PHP / AJAX / data-* functionality.
   Colors and spacing drawn from the supplied new-front order.html design. */
body.order-front-v7{
  --o71-ink:#2e2925;--o71-muted:#83766b;--o71-border:#e5dbd0;
  --o71-brown:#554338;--o71-cream:#fffdf9;--o71-bg:#f7f2eb;
  color:var(--o71-ink);background:var(--o71-bg);
  font-family:"Noto Sans TC","PingFang TC","Microsoft JhengHei",sans-serif;
  font-size:14px;line-height:1.6;letter-spacing:0;
  -webkit-font-smoothing:antialiased;
}
.order-front-v7 .order-hybrid-page{background:linear-gradient(180deg,#faf7f2 0%,#f7f2ec 55%,#f6f1ea 100%);padding-top:48px}
.order-front-v7 .order-hybrid-page>.section-inner{width:min(1216px,calc(100% - 56px))}
.order-front-v7 .site-header .nav-wrap{width:min(1216px,calc(100% - 56px))}
.order-front-v7 .site-header .brand-title{white-space:normal;overflow-wrap:anywhere;font-family:"Noto Serif TC","Songti TC","PMingLiU",serif;font-weight:650;letter-spacing:.06em}
.order-front-v7 .order-front-brand-copy{gap:3px}
.order-front-v7 .site-header .nav{letter-spacing:.06em}
.order-front-v7 .order-hero-top{display:grid;grid-template-columns:minmax(0,1fr) minmax(300px,375px);gap:36px;align-items:center;margin:0 0 28px}
.order-front-v7 .order-hero-copy{min-width:0}
.order-front-v7 .order-hero-copy .kicker{display:flex;gap:12px;align-items:center;white-space:normal;flex-wrap:wrap;font:10px/1.5 Arial,sans-serif;letter-spacing:.24em;margin:0 0 15px;color:#987d69}
.order-front-v7 .order-hero-copy .section-title{font:600 clamp(37px,4.15vw,54px)/1.3 "Noto Serif TC","Songti TC","PMingLiU",serif;letter-spacing:.11em;margin:0 0 13px;word-break:keep-all}
.order-front-v7 .order-front-intro{font-size:14px;line-height:1.8;letter-spacing:.05em;color:#84796f}
.order-front-v7 .order-hero-store.store-switcher-v150{background:var(--o71-cream);border:1px solid #ded3c7;border-radius:10px;box-shadow:0 7px 23px rgba(65,43,26,.035)}
.order-front-v7 .store-switch-trigger-v150{padding:18px 20px;min-height:96px;align-items:center;gap:14px}
.order-front-v7 .store-switch-current-v150{min-width:0;display:flex;flex-direction:column;gap:6px;align-items:flex-start;text-align:left}
.order-front-v7 .store-switch-current-v150 small{font-size:11px;font-weight:500;line-height:1.4;color:#958579}
.order-front-v7 .store-switch-current-v150 strong{font:650 17px/1.4 "Noto Serif TC","Songti TC","PMingLiU",serif;color:#342b26;letter-spacing:.035em;overflow-wrap:anywhere}
.order-front-v7 .store-switch-current-v150 [data-selected-store-hours-label]{font-size:11px;line-height:1.5;color:#897f73}
/* Flatten duplicated brand heading in the old toolbar: the real store selector is above. */
.order-front-v7 .order-toolbar-card{
  display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;
  grid-template-areas:"method actions" "tabs tabs"!important;
  align-items:center!important;gap:15px 14px!important;
  margin:0 0 20px!important;padding:24px 28px!important;
  background:#fffdf9!important;border:1px solid #e6dcd2!important;
  box-shadow:0 8px 24px rgba(63,42,24,.03)!important;
  border-radius:11px!important;
}
.order-front-v7 .order-toolbar-card>.order-toolbar-brand{display:none!important}
.order-front-v7 .order-toolbar-card>.order-front-method-heading{grid-area:method!important;display:grid!important;grid-template-columns:minmax(0,1fr);gap:4px;border:0!important;padding:0!important;margin:0!important;align-items:start;min-width:0}
.order-front-v7 .order-front-method-heading .order-front-eyebrow{font:10px/1.4 Arial,sans-serif;letter-spacing:.22em;color:#aa8871}
.order-front-v7 .order-front-method-heading h3{font:600 24px/1.4 "Noto Serif TC","Songti TC","PMingLiU",serif;letter-spacing:.065em;color:#382d27;margin:0}
.order-front-v7 .order-front-method-heading .order-front-guide-link{display:none}
.order-front-v7 .order-toolbar-card>.order-quick-actions-v147{grid-area:actions!important;display:flex!important;gap:10px;align-self:center;justify-content:flex-end;flex-wrap:wrap;min-width:0}
.order-front-v7 .order-quick-actions-v147 a,.order-front-v7 .order-quick-actions-v147 button{font-size:12px;line-height:1.4}
.order-front-v7 .order-toolbar-card>.order-mode-tabs{
  grid-area:tabs!important;display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;
  min-height:0!important;margin:0!important;padding:5px!important;gap:5px!important;
  background:#f4eee8!important;border:1px solid #efe5db!important;border-radius:9px!important;
}
.order-front-v7 .order-mode-tabs button{
  width:100%;min-width:0;height:auto;min-height:48px;padding:11px 8px!important;
  border-radius:6px!important;white-space:nowrap;text-align:center;
  font-size:13px!important;font-weight:600!important;letter-spacing:.025em!important;line-height:1.4!important;
  border:0!important;box-shadow:none!important;
}
.order-front-v7 .order-mode-tabs button.active,.order-front-v7 .order-mode-tabs button[aria-pressed="true"]{background:#554338!important;color:#fff!important;box-shadow:0 2px 7px rgba(53,36,22,.13)!important}
/* Search and view mode now belong to the MENU section rather than the order method card. */
.order-front-v7 .order-content-area>.order-search-tools{
  display:flex!important;position:relative;z-index:3;align-items:center;justify-content:space-between;
  width:100%!important;max-width:none!important;margin:0 0 19px!important;
  padding:0 0 17px!important;gap:12px;border:0!important;border-bottom:1px solid #e5d9cd!important;
}
.order-front-v7 .order-content-area>.order-search-tools .order-search-box{max-width:none;width:min(100%,420px);min-height:43px;border:1px solid #d9cabe;border-radius:7px;background:#fffdf9}
.order-front-v7 .order-content-area>.order-search-tools .order-search-box input{font-size:13px;color:#4f4238}
.order-front-v7 .order-content-area>.order-search-tools .order-view-toggle{margin-left:auto;flex-shrink:0}
.order-front-v7 .order-content-area>.order-search-tools .order-view-toggle button{min-width:36px;min-height:35px}
.order-front-v7 .order-hybrid-grid{display:grid;grid-template-columns:minmax(175px,190px) minmax(0,1fr) minmax(238px,258px);gap:22px;align-items:start}
.order-front-v7 .order-left-sidebar,.order-front-v7 .order-right-sidebar,.order-front-v7 .order-content-area{min-width:0}
.order-front-v7 .order-category-panel{padding:18px 13px;border-radius:9px;background:#fffdf9;box-shadow:none}
.order-front-v7 .order-category-panel h2{font:600 18px/1.45 "Noto Serif TC","Songti TC",serif;letter-spacing:.02em;margin:0 0 12px}
.order-front-v7 .order-category-list a{font-size:13px;font-weight:500;line-height:1.5;letter-spacing:0;word-break:normal;overflow-wrap:anywhere;padding:10px 9px}
.order-front-v7 .order-category-list a.sub-category-link{font-size:12px;padding-left:18px}
.order-front-v7 .order-guide-card{border-radius:7px;font-size:12px;letter-spacing:.03em}
.order-front-v7 .order-front-menu-heading{padding:0 1px 17px;margin:0 0 18px;border-bottom:0}
.order-front-v7 .order-front-menu-heading .order-front-eyebrow{font:10px/1.4 Arial,sans-serif;letter-spacing:.22em;color:#ab8d77}
.order-front-v7 .order-front-menu-heading h2{font:600 27px/1.4 "Noto Serif TC","Songti TC","PMingLiU",serif;letter-spacing:.08em;color:#332920;margin:7px 0 8px}
.order-front-v7 .order-front-menu-heading p{font-size:12px;line-height:1.75;letter-spacing:.015em;color:#877b70}
/* Product sections, including categories built by the existing PHP renderer. */
.order-front-v7 .order-content-area .ocard-menu-section{margin:0 0 31px!important;padding:0;scroll-margin-top:135px}
.order-front-v7 .order-content-area .ocard-menu-section h2.order-category-heading-with-image{display:flex;align-items:center;gap:12px;margin:0 0 14px;padding:0 0 13px;border-bottom:1px solid #e4d8ca;color:#3b2e26;font:600 20px/1.5 "Noto Serif TC","Songti TC",serif;letter-spacing:.025em;min-width:0;flex-wrap:wrap}
.order-front-v7 .order-content-area .order-category-title-v284{font:inherit;min-width:0;overflow-wrap:anywhere}
.order-front-v7 .order-content-area .order-category-description-v284{font:400 12px/1.6 "Noto Sans TC","PingFang TC",sans-serif;letter-spacing:0;color:#88796e;flex:1 1 100%}
.order-front-v7 .order-content-area .order-category-heading-image{width:60px;height:52px;flex:0 0 60px;border-radius:7px;object-fit:cover}
.order-front-v7 .order-subcategory-tabs{margin:0 0 19px!important;gap:7px}
.order-front-v7 .order-subcategory-tabs a{font-size:12px;line-height:1.4;padding:8px 13px;border-radius:99px;white-space:nowrap}
.order-front-v7 .order-subcategory-heading{font:600 16px/1.6 "Noto Serif TC","Songti TC",serif;margin:18px 0 12px;padding:0 0 9px;border-bottom:1px solid #e7ddd3;letter-spacing:.03em}
.order-front-v7 .hybrid-product{
  display:grid;grid-template-columns:104px minmax(0,1fr) 32px;gap:12px;
  align-items:center;min-height:128px;padding:11px;margin:0 0 11px;
  border:1px solid #e7dcd0;border-radius:9px;background:#fffdf9;
  box-shadow:none;transition:box-shadow .18s,border-color .18s,transform .18s;
}
.order-front-v7 .hybrid-product>img{width:104px;height:104px;object-fit:cover;border-radius:6px;background:#eee3d7}
.order-front-v7 .hybrid-product .hybrid-product-body{min-width:0;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:6px}
.order-front-v7 .hybrid-product .hybrid-product-title{display:block;margin:0;min-width:0;width:100%}
.order-front-v7 .hybrid-product h3{font:600 15px/1.45 "Noto Serif TC","Songti TC","PMingLiU",serif;letter-spacing:.015em;margin:0;color:#372b25;overflow-wrap:anywhere}
.order-front-v7 .hybrid-product p{font:400 12px/1.55 "Noto Sans TC","PingFang TC",sans-serif;color:#85786c;margin:0;min-height:0;letter-spacing:0;-webkit-line-clamp:2;word-break:normal;overflow-wrap:anywhere}
.order-front-v7 .hybrid-product strong{font:700 15px/1.35 Arial,"Noto Sans TC",sans-serif;letter-spacing:0;color:#5b4839;white-space:nowrap}
.order-front-v7 .hybrid-plus{width:32px;height:32px;min-width:32px;min-height:32px;border:1px solid #d6c5b4;border-radius:50%;font-size:21px;background:#f5ede5;color:#624d3d;box-shadow:none}
.order-front-v7 .order-badge,.order-front-v7 .product-sale-status-v146{font-size:10px;font-weight:600;letter-spacing:0}
.order-front-v7 .order-content-area.is-grid-view .ocard-menu-section{gap:12px}
.order-front-v7 .order-content-area.is-grid-view .ocard-menu-section>:is(h2,h3,.order-subcategory-tabs,.empty-cell){grid-column:1/-1}
.order-front-v7 .order-content-area.is-grid-view .hybrid-product{display:block;padding:11px 11px 52px;margin:0;min-height:0}
.order-front-v7 .order-content-area.is-grid-view .hybrid-product img{width:100%;height:160px;object-fit:cover;border-radius:6px}
.order-front-v7 .order-content-area.is-grid-view .hybrid-product .hybrid-product-body{gap:7px;padding-top:11px;min-height:92px}
.order-front-v7 .order-content-area.is-grid-view .hybrid-product h3{font-size:15px}
.order-front-v7 .order-content-area.is-grid-view .hybrid-plus{position:absolute;right:11px;bottom:11px}
.order-front-v7 .order-right-sidebar .order-cart-panel{padding:19px;border-radius:9px;box-shadow:none;top:104px}
.order-front-v7 .cart-panel-head h2{font:600 19px/1.4 "Noto Serif TC","Songti TC",serif}
.order-front-v7 .cart-empty{font-size:12px;line-height:1.75;color:#928478}
.order-front-v7 .cart-summary{font-size:13px}
.order-front-v7 .cart-summary strong{font-size:16px}
.order-front-v7 .order-cart-panel .checkout-btn,.order-front-v7 [data-checkout-link]{border-radius:6px}
/* Critical: product, service, and stock hidden states must not be revived by presentation CSS. */
.order-front-v7 [hidden],.order-front-v7 [aria-hidden="true"][hidden]{display:none!important}
@media(max-width:1180px) and (min-width:981px){
  .order-front-v7 .order-hybrid-grid{grid-template-columns:150px minmax(0,1fr) 225px;gap:13px}
  .order-front-v7 .hybrid-product{grid-template-columns:84px minmax(0,1fr) 29px;gap:9px;padding:9px;min-height:107px}
  .order-front-v7 .hybrid-product>img{width:84px;height:86px}
  .order-front-v7 .hybrid-product h3{font-size:14px}
  .order-front-v7 .hybrid-product p{font-size:11px}
}
@media(max-width:980px){
  .order-front-v7 .site-header .nav-wrap{width:calc(100% - 28px);min-height:72px}
  .order-front-v7 .order-hybrid-page>.section-inner{width:calc(100% - 36px)}
  .order-front-v7 .order-hybrid-page{padding:30px 0 126px}
  .order-front-v7 .order-hero-top{display:grid;grid-template-columns:1fr;gap:20px;margin-bottom:20px}
  .order-front-v7 .order-hero-copy .section-title{font-size:38px}
  .order-front-v7 .store-switch-trigger-v150{min-height:79px;padding:15px 17px}
  .order-front-v7 .order-hybrid-grid{display:block}
  .order-front-v7 .order-left-sidebar{display:block}
  .order-front-v7 .order-right-sidebar{display:none}
  .order-front-v7 .order-category-panel{box-shadow:none}
  .order-front-v7 .order-toolbar-card{grid-template-columns:minmax(0,1fr) auto!important;grid-template-areas:"method actions" "tabs tabs"!important;gap:14px!important;padding:19px!important}
  .order-front-v7 .order-front-method-heading h3{font-size:22px}
  .order-front-v7 .order-content-area>.order-search-tools{display:none!important}
  .order-front-v7 .mobile-menu-nav-card{background:#faf7f2!important;border-color:#e8dbce!important}
  .order-front-v7 .mobile-menu-nav-card .order-mobile-guide-v270{font-size:13px}
  .order-front-v7 .order-front-menu-heading{padding-top:20px}
  .order-front-v7 .order-content-area .ocard-menu-section{scroll-margin-top:185px}
  .order-front-v7 .order-mobile-bar{grid-template-columns:minmax(0,1fr) minmax(0,1.9fr);gap:10px;padding:10px 15px calc(10px + env(safe-area-inset-bottom));background:#fffdf9;border-top:1px solid #ded2c5;box-shadow:0 -6px 20px rgba(42,31,22,.06)}
}
@media(max-width:620px){
  .order-front-v7 .order-hybrid-page>.section-inner{width:calc(100% - 28px)}
  .order-front-v7 .order-hybrid-page{padding-top:26px}
  .order-front-v7 .order-hero-copy .kicker{margin-bottom:12px;font-size:9px;gap:8px}
  .order-front-v7 .order-hero-copy .section-title{font-size:34px;line-height:1.35;margin-bottom:12px}
  .order-front-v7 .order-front-intro{font-size:13px;line-height:1.8}
  .order-front-v7 .store-switch-current-v150 strong{font-size:16px}
  .order-front-v7 .order-toolbar-card{
    display:grid!important;grid-template-columns:minmax(0,1fr)!important;
    grid-template-areas:"method" "tabs" "actions"!important;
    gap:14px!important;padding:18px 14px!important;border-radius:10px!important;
  }
  .order-front-v7 .order-toolbar-card>.order-front-method-heading{display:grid!important;grid-template-columns:1fr;gap:4px!important}
  .order-front-v7 .order-front-method-heading h3{font-size:20px;white-space:normal;line-height:1.4}
  .order-front-v7 .order-toolbar-card>.order-mode-tabs{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:4px!important;padding:4px!important;min-height:0!important}
  .order-front-v7 .order-mode-tabs button{font-size:11px!important;letter-spacing:0!important;line-height:1.35!important;white-space:nowrap;min-height:43px;padding:9px 2px!important}
  .order-front-v7 .order-toolbar-card>.order-quick-actions-v147{justify-content:flex-start;gap:9px;min-width:0}
  .order-front-v7 .order-quick-actions-v147 :is(a,button){font-size:12px}
  .order-front-v7 .order-front-menu-heading{padding:22px 0 13px;margin-bottom:12px}
  .order-front-v7 .order-front-menu-heading h2{font-size:24px;margin:5px 0 6px}
  .order-front-v7 .order-front-menu-heading p{font-size:12px;line-height:1.7}
  .order-front-v7 .order-content-area .ocard-menu-section h2.order-category-heading-with-image{font-size:19px;gap:9px;line-height:1.4;margin:0 0 12px;padding-bottom:12px}
  .order-front-v7 .order-content-area .order-category-heading-image{width:51px;height:49px;flex-basis:51px}
  .order-front-v7 .order-subcategory-tabs{gap:6px;margin-bottom:14px!important}
  .order-front-v7 .order-subcategory-tabs a{font-size:11px;padding:7px 11px}
  .order-front-v7 .order-subcategory-heading{font-size:15px}
  .order-front-v7 .hybrid-product{grid-template-columns:94px minmax(0,1fr) 33px;gap:10px;padding:10px;min-height:113px;margin:0 0 9px;border-radius:8px}
  .order-front-v7 .hybrid-product>img{width:94px;height:93px;border-radius:6px}
  .order-front-v7 .hybrid-product .hybrid-product-body{gap:4px}
  .order-front-v7 .hybrid-product h3{font-size:15px;line-height:1.45}
  .order-front-v7 .hybrid-product p{font-size:11px;line-height:1.5}
  .order-front-v7 .hybrid-product strong{font-size:14px}
  .order-front-v7 .hybrid-plus{width:32px;height:32px;min-width:32px;min-height:32px}
  .order-front-v7 .order-content-area.is-grid-view .ocard-menu-section{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .order-front-v7 .order-content-area.is-grid-view .hybrid-product{display:block;min-height:0;padding:8px 8px 47px}
  .order-front-v7 .order-content-area.is-grid-view .hybrid-product img{width:100%;height:auto;aspect-ratio:1.05}
  .order-front-v7 .order-content-area.is-grid-view .hybrid-product h3{font-size:13px}
  .order-front-v7 .order-content-area.is-grid-view .hybrid-product p{font-size:11px}
  .order-front-v7 .order-content-area.is-grid-view .hybrid-product .hybrid-product-body{min-height:110px}
  .order-front-v7 .order-mobile-bar{grid-template-columns:minmax(0,auto) minmax(0,1fr);gap:10px;padding:10px 12px calc(10px + env(safe-area-inset-bottom))}
  .order-front-v7 .order-mobile-bar .order-mobile-actions-v152{gap:7px}
  .order-front-v7 .order-mobile-bar strong{font-size:16px}
  .order-front-v7 .order-mobile-bar :is(.mobile-cart-open-btn-v152,.mobile-cart-view-btn){font-size:11px;min-height:43px;padding:9px 7px;white-space:nowrap}
}
@media(max-width:350px){
  .order-front-v7 .order-hybrid-page>.section-inner{width:calc(100% - 24px)}
  .order-front-v7 .hybrid-product{grid-template-columns:78px minmax(0,1fr) 30px;gap:8px;padding:8px;min-height:98px}
  .order-front-v7 .hybrid-product>img{width:78px;height:80px}
  .order-front-v7 .hybrid-product h3{font-size:14px}
  .order-front-v7 .hybrid-plus{width:29px;height:29px;min-width:29px;min-height:29px}
  .order-front-v7 .order-mode-tabs button{font-size:10px!important}
}
@media(prefers-reduced-motion:reduce){.order-front-v7 .hybrid-product{transition:none}}
/* V7.1 final: legacy v148/v152 button sizing had forced reservation into a full-width slab. */
.order-front-v7 .order-toolbar-card>.order-quick-actions-v147{
  display:flex!important;grid-template-columns:none!important;
  flex-wrap:wrap!important;align-items:center!important;justify-content:flex-end!important;
  gap:8px!important;width:auto!important;max-width:100%!important;
}
.order-front-v7 .order-toolbar-card>.order-quick-actions-v147 :is(.order-groupbuy-button,.order-reservation-button-v147){
  display:inline-flex!important;width:auto!important;flex:0 1 auto!important;
  min-height:36px!important;height:auto!important;min-width:0!important;
  grid-column:auto!important;order:0!important;
  padding:8px 13px!important;border-radius:7px!important;
  box-shadow:none!important;white-space:nowrap!important;
}
.order-front-v7 .order-toolbar-card>.order-quick-actions-v147 :is(.order-groupbuy-label,.order-reservation-button-v147 span){
  font-size:12px!important;font-weight:600!important;line-height:1.4!important;
}
/* Desktop shows the two-across menu layout of the new static design, with no product duplication. */
@media(min-width:1200px){
  .order-front-v7 .order-content-area:not(.is-grid-view)>.ocard-menu-section{
    display:grid;grid-template-columns:repeat(2,minmax(0,1fr));
    column-gap:10px;row-gap:10px;align-items:start;
  }
  .order-front-v7 .order-content-area:not(.is-grid-view)>.ocard-menu-section>:is(h2,h3,.order-subcategory-tabs,.empty-cell){grid-column:1/-1}
  .order-front-v7 .order-content-area:not(.is-grid-view)>.ocard-menu-section>.hybrid-product{
    margin:0;min-height:121px;grid-template-columns:82px minmax(0,1fr) 29px;gap:7px;padding:9px;
  }
  .order-front-v7 .order-content-area:not(.is-grid-view)>.ocard-menu-section>.hybrid-product>img{width:82px;height:96px}
  .order-front-v7 .order-content-area:not(.is-grid-view)>.ocard-menu-section>.hybrid-product h3{font-size:13px}
  .order-front-v7 .order-content-area:not(.is-grid-view)>.ocard-menu-section>.hybrid-product p{font-size:11px}
  .order-front-v7 .order-content-area:not(.is-grid-view)>.ocard-menu-section>.hybrid-product strong{font-size:14px}
  .order-front-v7 .order-content-area:not(.is-grid-view)>.ocard-menu-section>.hybrid-product .hybrid-plus{min-width:28px;min-height:28px;width:28px;height:28px;font-size:18px}
}
@media(max-width:980px){
  .order-front-v7 .order-toolbar-card>.order-quick-actions-v147{justify-content:flex-start!important}
}
@media(max-width:620px){
  .order-front-v7 .order-toolbar-card>.order-quick-actions-v147 :is(.order-groupbuy-button,.order-reservation-button-v147){min-height:34px!important;padding:7px 12px!important}
}
/* Long tenant names should not force a two-line mobile navigation header. */
@media(max-width:620px){
  .order-front-v7 .site-header .nav-wrap>.brand{min-width:0;flex:1 1 auto}
  .order-front-v7 .site-header .brand-logo{flex-shrink:0}
  .order-front-v7 .order-front-brand-copy{min-width:0;overflow:hidden}
  .order-front-v7 .order-front-brand-copy .brand-title{display:block;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;overflow-wrap:normal;font-size:18px}
}
@media(max-width:350px){
  .order-front-v7 .order-front-brand-copy .brand-title{font-size:15px}
}
