/* Marco Coffee V8 — faithful layout proportions from owner's two reference screenshots.
   This is actual UI styling: product photos still come from the product database. */
:root{--ref-gold:#ad781e;--ref-gold-light:#fcf4e8;--ref-ink:#28292b;--ref-border:#e6e7e8}
html{scroll-behavior:smooth}
body{background:#fff!important;color:#222}
button{transition:background .15s ease,border-color .15s ease,box-shadow .15s ease,transform .12s ease!important}
button:focus-visible,a:focus-visible{outline:3px solid #d2a15a!important;outline-offset:3px}
/* STOREFRONT — header at 94px and exact three-column structure */
.marco-compact-header{background:#fff!important;height:94px!important;box-shadow:0 2px 10px #16161608!important;border-bottom:1px solid #f0f0f0}
.compact-header-inner{width:calc(100% - 146px)!important;max-width:1800px!important;gap:34px!important}
.marco-compact-header .brand{gap:14px!important;flex-shrink:0}
.marco-compact-header .coffee-logo{height:62px!important;width:62px!important;color:var(--ref-gold)!important}
.marco-compact-header .brand-wordmark{font-family:Arial,sans-serif!important;letter-spacing:4px!important;font-size:19px!important;font-weight:800;color:#141414}
.marco-compact-header .header-search{max-width:740px!important;width:48%!important;margin-left:5%;margin-right:auto}
.marco-compact-header .header-search input{height:51px;border:1px solid #e2e2e3!important;background:#f7f7f8!important;padding-left:55px!important;font-size:14px!important}
.marco-compact-header .header-search>span{left:19px;font-size:29px;font-weight:400;color:#252525}
.marco-compact-header .nav-actions{gap:24px!important;min-width:226px;justify-content:flex-end}
.marco-compact-header .text-action{font-size:15px!important;color:#17191a!important;gap:10px;padding:10px!important}
.marco-compact-header .text-action .user-outline{display:inline-flex;align-items:center;justify-content:center;width:30px;height:31px}
.marco-compact-header .user-outline svg{height:27px;width:27px}
.marco-compact-header .bag-button{border-left:1px solid #eee!important;padding-left:21px!important;width:62px!important;height:49px!important}
.marco-compact-header .bag-button svg{width:30px;height:30px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.marco-compact-header .cart-count{right:2px!important;top:-8px!important}
.store-shell{max-width:1800px!important;width:100%;margin:0 auto!important;grid-template-columns:272px minmax(0,1fr) 446px!important;min-height:calc(100vh - 94px)}
.menu-sidebar{top:94px!important;max-height:calc(100vh - 94px)!important;padding:39px 18px 25px!important;border-right:1px solid #ececec!important;background:#fff!important}
.menu-sidebar .sidebar-heading{display:none!important}
.sidebar-tabs{display:flex;flex-direction:column;gap:6px!important}
.sidebar-tabs .filter{min-height:61px!important;padding:14px 22px!important;border:0!important;border-radius:12px!important;background:#fff!important;color:#222!important;box-shadow:none!important;text-align:left!important;font-size:15px!important;font-weight:650!important;gap:20px!important}
.sidebar-tabs .filter svg{height:25px;width:25px;flex:0 0 25px;color:#242424}
.sidebar-tabs .filter.active{background:#f7f1e7!important;box-shadow:inset 4px 0 #b98b32!important;border:0!important;color:#202020!important}
.sidebar-tabs .filter.active svg{color:#b1842e}
.sidebar-tabs .filter:hover:not(.active){background:#f8f8f8!important}
.sidebar-address{margin-top:25vh!important;border:0!important;opacity:.7;padding-left:12px}
.compact-menu-content{padding:33px 24px 25px 29px!important;min-width:0}
.menu-page-intro{margin:0 0 27px!important;min-height:63px!important;display:flex;justify-content:space-between;align-items:flex-start;gap:12px}
.menu-page-intro h1{font-family:Georgia,serif;font-size:37px!important;letter-spacing:-.8px!important;line-height:1.1;font-weight:700!important;margin:0 0 18px!important}
.title-underline{width:81px!important;height:3px!important;background:#be913a!important}
.menu-live-label{display:inline-flex;align-items:center;gap:6px;white-space:nowrap;border:1px solid #ead8ba;border-radius:30px;color:#8e6b34;font-size:10px;background:#fffbf3;padding:6px 10px;line-height:1;margin-top:7px}
.menu-live-label.is-live{border-color:#badbc1;background:#ecfaf0;color:#267140}
.catalog-notice{display:none!important}
.compact-products{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:14px!important}
.compact-product-card{height:177px!important;min-height:177px!important;grid-template-columns:164px minmax(0,1fr)!important;overflow:hidden!important;border:1px solid #ebebed!important;border-radius:16px!important;background:#fff!important;box-shadow:0 3px 15px #1d1d1d09!important;cursor:pointer}
.compact-product-card.selected{border-color:#c58f2a!important;box-shadow:0 0 0 1px #c58f2a,0 7px 20px #2020200c!important}
.compact-product-card:hover:not(.selected){border-color:#d8c49f!important;box-shadow:0 8px 22px #24242412!important}
.compact-product-card .compact-product-image{display:flex;align-items:center;justify-content:center;width:164px!important;min-height:174px!important;padding:13px!important;background:#fff!important}
.compact-product-card .compact-product-image img{background:#fafafa!important;border-radius:12px!important;height:148px!important;max-width:148px!important;width:100%!important;object-fit:contain!important}
.compact-product-card .no-photo{min-width:130px;min-height:110px;display:flex;align-items:center;justify-content:center;color:#999;border:1px dashed #dbdbdb;background:#fafafa;font-size:11px}
.compact-product-info{padding:16px 15px 15px 12px!important;display:flex;flex-direction:column;min-width:0}
.compact-product-info .product-title{font-family:Georgia,serif!important;font-size:21px!important;line-height:1.2!important;margin:0 0 9px!important;font-weight:700!important;color:#161616}
.compact-product-info .product-description{font-family:Arial,sans-serif;font-size:13px!important;color:#666!important;line-height:1.43!important;margin:0 0 8px!important;flex:1}
.compact-product-bottom{display:flex!important;flex-wrap:nowrap!important;align-items:center!important;justify-content:space-between!important;gap:8px!important}
.compact-product-bottom .product-price{color:var(--ref-gold)!important;font-family:Arial,sans-serif;font-size:20px!important;font-weight:750}
.compact-product-bottom .add-product{background:var(--ref-ink)!important;color:#fff!important;border:1px solid var(--ref-ink)!important;border-radius:10px!important;min-width:114px!important;min-height:39px!important;height:39px!important;font-size:12px!important;box-shadow:0 1px 3px #3332!important;white-space:nowrap}
.compact-product-bottom .add-product:hover{background:#474a50!important;border-color:#b28b48!important}
.desktop-product-detail{padding:29px 20px 30px 0!important;top:94px!important;max-height:calc(100vh - 94px)!important}
.detail-placeholder{border:1px solid #e8e8e8;box-shadow:0 5px 23px #20202010!important}
.desktop-product-detail .option-modal[open]{border:1px solid #ededed!important;border-radius:21px!important;box-shadow:0 7px 28px #2222!important;overflow:hidden!important}
.desktop-product-detail .option-modal-inner{padding:18px 21px 27px!important}
.option-hero-image{height:195px!important;max-height:195px!important;display:flex;align-items:center;justify-content:center;margin:0 0 18px!important;background:#f9f8f6!important;border-radius:12px!important;position:relative}
.option-hero-image img{height:100%!important;width:100%!important;object-fit:contain!important;background:#fafafa!important}
.detail-image-missing{color:#929292;font-size:13px;text-align:center}
.detail-image-missing[hidden]{display:none}
.detail-close{width:40px!important;height:40px!important;top:0!important;right:0!important;border-radius:0 18px 0 18px!important;border:0!important;box-shadow:0 2px 9px #1112!important}
.option-modal-header h2{font-family:Georgia,serif!important;font-size:29px!important;color:#171717!important}
.option-modal-header strong{color:var(--ref-gold)!important;font-size:21px!important}
.option-product-description{font-size:13px!important;color:#666!important;border-bottom:1px solid #e5e5e5;padding-bottom:15px;margin-bottom:2px!important}
.option-modal-inner .option-group{padding:10px 0!important;margin-bottom:4px!important;border:0!important;border-bottom:1px solid #e9e9e9!important}
.option-modal-inner .option-group legend{font-weight:750;font-size:15px!important;padding:12px 0 0!important;color:#222}
.option-modal-inner .option-group legend small{color:#888;font-size:10px!important;display:inline;margin-left:8px}
.option-modal-inner .option-choice-grid{gap:9px!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;margin:8px 0 12px!important}
.option-modal-inner .option-choice{min-width:0;border:1px solid #ddd!important;border-radius:12px!important;background:#fff!important;color:#242424!important;min-height:40px!important;padding:8px 9px!important;font-size:11px!important;justify-content:center;text-align:center}
.option-modal-inner .option-choice:has(input:checked){border-color:#b98a35!important;background:#fbf4e9!important;box-shadow:0 0 0 1px #c59745!important;color:#382c1d!important}
.option-modal-inner .option-choice:has(input:checked)::after{content:'✓';font-weight:900;color:#b18535;margin-left:4px}
.option-modal-inner .option-choice input{accent-color:#b78b3b}
.option-modal-inner .option-modal-footer{grid-template-columns:139px minmax(0,1fr)!important;padding-top:21px!important}
.option-modal-inner .option-modal-footer .btn{height:47px!important;min-height:47px!important;font-size:13px!important}
.option-modal-inner .option-modal-footer .qty-controls{height:47px!important;border:1px solid #ddd;border-radius:12px}
.option-modal-inner .option-modal-footer .qty-controls button{background:transparent!important;color:#333!important;border:0!important;box-shadow:none!important}
.option-no-extras{background:none!important;border-bottom:1px solid #eee!important}
/* ADMIN — navbar is a left column directly below the top bar. Keep actual data, not demo values. */
.inner-page{background:#fff!important}
.inner-header{padding:0!important;height:90px!important}
.inner-header-row{min-height:89px!important;width:calc(100% - 70px)!important}
.inner-header .coffee-logo{width:54px!important;height:54px!important;color:#b58126}
.inner-header .brand-wordmark{font-size:17px!important;letter-spacing:4px!important}
.admin-header-controls{gap:14px!important;min-width:0;flex:1}
.admin-header-controls h1{font-family:Georgia,serif;font-size:31px!important;margin-left:2px}
.shop-open-badge{padding:9px 13px!important;border-radius:25px!important;font-size:12px!important}
.header-bell{font-size:23px!important}
.top-sound-label{font-size:13px!important;white-space:nowrap}
.sound-switch{cursor:pointer}
.inner-header .back-store{font-size:11px!important;white-space:nowrap;opacity:.75}
.dashboard{max-width:none!important;width:100%!important;padding:0!important;margin:0!important}
#dashboardApp{width:100%}
.admin-workspace{display:grid!important;grid-template-columns:236px minmax(0,1fr)!important;gap:0!important;align-items:start!important;min-height:calc(100vh - 90px)}
.admin-workspace .dashboard-nav{border-right:1px solid #eee!important;border-radius:0!important;background:#fff!important;position:sticky!important;top:90px!important;max-height:calc(100vh - 90px)!important;overflow-y:auto!important;margin:0!important;padding:15px 16px!important;min-height:calc(100vh - 90px)!important;gap:2px!important}
.admin-workspace .dashboard-nav button{min-height:56px!important;padding:15px 17px!important;font-size:14px!important;background:white!important;color:#282828!important;border:0!important;border-radius:9px!important;font-weight:550!important}
.admin-workspace .dashboard-nav button.active{background:#2a2b2d!important;color:#fff!important;box-shadow:inset 4px 0 #b78932!important;font-weight:700!important}
.admin-workspace .dashboard-nav button:hover:not(.active){background:#f7f1e9!important;color:#222!important}
.admin-workspace .dashboard-nav button.nav-advanced{font-size:11px!important;color:#888!important;min-height:40px!important;padding:10px 17px!important}
.admin-workspace-main{padding:9px 12px 30px 18px!important;min-width:0}
.admin-stat-grid{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:16px!important;margin:0 0 17px!important}
.admin-stat{min-height:95px!important;padding:17px 19px!important;border-radius:14px!important;gap:5px 16px!important;box-shadow:0 3px 12px #2221!important}
.admin-stat .stat-icon{width:55px!important;height:55px!important;font-size:26px!important}
.admin-stat span:not(.stat-icon){font-size:14px!important}
.admin-stat strong{font-size:27px!important}
.overview-main-grid{display:grid!important;grid-template-columns:minmax(0,1.43fr) minmax(0,.98fr) minmax(0,.58fr)!important;gap:17px!important;align-items:stretch!important}
.admin-workspace-main .dashboard-panel{padding:21px 20px!important;border:1px solid #eee!important;border-radius:16px!important;box-shadow:0 3px 14px #2221!important;background:#fff!important}
.admin-workspace-main .dashboard-panel h2{font-family:Georgia,serif;font-size:24px!important;margin:0 0 10px!important}
.overview-groups,.overview-link{min-height:475px!important}
.overview-heading{margin-bottom:20px!important;padding-bottom:12px!important;border-bottom:0!important}
.overview-heading p{font-size:11px!important;color:#888!important}
.overview-heading .btn{padding:10px 11px!important;font-size:11px!important}
.overview-table th{padding:14px 10px!important}
.overview-table td{padding:13px 10px!important}
.overview-hint{border-radius:9px!important;padding:15px 17px!important;background:#fbf5ea!important}
.overview-link .field select{height:42px!important}
.overview-actions .dashboard-panel{padding:17px 14px!important}
.overview-actions .dashboard-panel button{border:1px solid #d7d7d7!important;background:#fff!important;color:#333!important;border-radius:9px!important;min-height:43px!important;padding:10px 11px!important;font-size:12px!important}
.overview-actions .dashboard-panel button:first-of-type{border-color:#b58738!important;background:#fffbf4!important}
.overview-assist{font-size:13px!important;line-height:1.6!important;border-radius:14px!important}
.overview-orders{margin:19px 0!important}
.overview-order-table{min-width:800px!important}
.admin-footer-tools{margin:15px 0 0!important;display:flex!important;gap:15px;align-items:center;justify-content:space-between;border-top:1px solid #ececec;padding-top:14px}
.admin-footer-tools .dashboard-welcome{color:#888;font-size:12px}
.admin-footer-tools button{font-size:12px!important}
#panel-settings .legal-warning{margin:0 0 15px!important}
@media(max-width:1550px) and (min-width:1101px){
  .store-shell{grid-template-columns:222px minmax(0,1fr) 360px!important}
  .compact-menu-content{padding-inline:16px!important}
  .compact-product-card{grid-template-columns:116px minmax(0,1fr)!important}
  .compact-product-card .compact-product-image{width:116px!important}
  .compact-product-card .compact-product-image img{height:138px!important}
  .compact-product-info{padding-left:5px!important}
  .compact-product-info .product-title{font-size:18px!important}
  .compact-product-info .product-description{font-size:12px!important}
  .compact-product-bottom .product-price{font-size:17px!important}
  .compact-product-bottom .add-product{min-width:90px!important;font-size:10px!important}
  .admin-workspace{grid-template-columns:210px minmax(0,1fr)!important}
  .overview-main-grid{grid-template-columns:minmax(0,1.15fr) minmax(0,1fr)!important}
  .overview-actions{grid-column:1/-1;display:grid!important;grid-template-columns:1.35fr 1fr;gap:16px}
}
@media(max-width:1199px){
  .store-shell{grid-template-columns:215px minmax(0,1fr)!important}
  .desktop-product-detail{display:contents}
  .desktop-product-detail .option-modal[open]{position:fixed!important;inset:0!important;margin:auto!important;max-height:calc(100vh - 26px)!important;overflow-y:auto!important;width:min(520px,calc(100% - 22px))!important;z-index:100!important}
  .marco-compact-header .header-search{width:42%!important}
}
@media(max-width:1100px){
  .admin-workspace{grid-template-columns:1fr!important}
  .admin-workspace .dashboard-nav{position:relative!important;top:0!important;min-height:0!important;max-height:none!important;display:flex!important;flex-direction:row!important;overflow-x:auto!important;border-right:0!important;border-bottom:1px solid #eee!important;padding:8px!important;gap:5px!important}
  .admin-workspace .dashboard-nav button{min-height:43px!important;flex:0 0 auto;white-space:nowrap!important;font-size:12px!important}
  .admin-workspace-main{padding:12px!important}
  .overview-main-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .overview-actions{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr}
}
@media(max-width:790px){
  .marco-compact-header{height:auto!important}
  .compact-header-inner{width:calc(100% - 26px)!important;display:grid!important;grid-template-columns:minmax(0,1fr) 90px!important;gap:7px!important;padding:8px 0!important}
  .marco-compact-header .coffee-logo{width:36px!important;height:36px!important}
  .marco-compact-header .brand-wordmark{font-size:12px!important;letter-spacing:1.5px!important}
  .marco-compact-header .nav-actions{min-width:0!important;width:90px!important;gap:0!important}
  .marco-compact-header .text-action{font-size:0!important;padding:5px!important}
  .marco-compact-header .user-outline svg{height:24px;width:24px}
  .marco-compact-header .bag-button{padding-left:5px!important;width:46px!important}
  .marco-compact-header .header-search{width:100%!important;max-width:none!important;margin:0!important}
  .store-shell{display:block!important}
  .menu-sidebar{position:relative!important;top:0!important;min-height:0!important;max-height:none!important;border-right:0!important;padding:8px 10px!important}
  .sidebar-tabs{flex-direction:row!important;gap:5px!important;overflow-x:auto!important}
  .sidebar-tabs .filter{min-height:41px!important;white-space:nowrap!important;flex:0 0 auto!important;font-size:12px!important;padding:9px 11px!important;gap:6px!important}
  .sidebar-tabs .filter svg{width:17px;height:17px;flex-basis:17px}
  .sidebar-address{display:none!important}
  .compact-menu-content{padding:20px 12px!important}
  .menu-page-intro{margin-bottom:19px!important;min-height:52px!important}
  .menu-page-intro h1{font-size:30px!important;margin-bottom:12px!important}
  .menu-live-label{font-size:9px!important;padding:5px 7px!important}
  .compact-products{gap:10px!important}
  .compact-product-card{min-height:166px!important;height:auto!important;grid-template-columns:116px minmax(0,1fr)!important}
  .compact-product-card .compact-product-image{width:116px!important;min-height:164px!important;padding:8px!important}
  .compact-product-card .compact-product-image img{height:137px!important}
  .compact-product-info{padding:12px 9px 12px 1px!important}
  .compact-product-info .product-title{font-size:16px!important}
  .compact-product-info .product-description{font-size:11px!important}
  .compact-product-bottom{flex-wrap:wrap!important}
  .compact-product-bottom .product-price{font-size:15px!important}
  .compact-product-bottom .add-product{height:35px!important;min-height:35px!important;min-width:105px!important;font-size:11px!important}
  .inner-header{height:auto!important}
  .inner-header-row{min-height:75px!important;width:calc(100% - 24px)!important}
  .admin-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .overview-main-grid{display:block!important}
  .overview-main-grid>*{margin-bottom:15px!important}
  .overview-actions{display:block!important}
  .overview-groups,.overview-link{min-height:0!important}
}
@media(max-width:520px){
  .compact-products{grid-template-columns:1fr!important}
  .compact-product-card{grid-template-columns:130px minmax(0,1fr)!important;min-height:155px!important;height:155px!important}
  .compact-product-card .compact-product-image{width:130px!important;min-height:153px!important}
  .compact-product-card .compact-product-image img{height:136px!important}
  .compact-product-bottom{flex-wrap:nowrap!important}
  .compact-product-bottom .add-product{min-width:95px!important;font-size:10px!important}
  .menu-live-label{display:none}
  .admin-stat{padding:10px!important;grid-template-columns:40px 1fr!important;gap:6px!important}
  .admin-stat .stat-icon{height:40px!important;width:40px!important}
  .admin-stat span:not(.stat-icon){font-size:11px!important}
  .admin-stat strong{font-size:18px!important}
  .inner-header .brand-wordmark{font-size:10px!important}
}

/* V8 polish: reference shows eight primary admin tabs only. Other areas remain available via quick actions. */
.admin-workspace .dashboard-nav button{display:flex!important;align-items:center!important;gap:17px!important}
.admin-workspace .dashboard-nav button svg{width:22px!important;height:22px!important;flex:0 0 22px!important;color:inherit}
.admin-workspace .dashboard-nav button.nav-advanced{display:none!important}
.admin-stat .stat-icon svg{width:28px;height:28px}
@media(max-width:1100px){.admin-workspace .dashboard-nav button{gap:6px!important}.admin-workspace .dashboard-nav button svg{width:16px!important;height:16px!important;flex-basis:16px!important}}


/* V30 admin sidebar scroll repair */
body .admin-workspace{align-items:start!important;min-height:calc(100vh - 90px)!important}
body .admin-workspace .dashboard-nav{position:sticky!important;top:90px!important;height:calc(100dvh - 90px)!important;max-height:calc(100dvh - 90px)!important;overflow-y:auto!important;overflow-x:hidden!important;overscroll-behavior:contain;scrollbar-gutter:stable;scrollbar-width:thin;padding-bottom:26px!important}
body .admin-workspace .dashboard-nav::-webkit-scrollbar{width:10px}
body .admin-workspace .dashboard-nav::-webkit-scrollbar-thumb{background:#d3c2a2;border-radius:999px;border:2px solid transparent;background-clip:padding-box}
body .admin-workspace .dashboard-nav details{display:block!important}
body .admin-workspace .dashboard-nav .orders-nav-group>summary{position:relative;z-index:1}
body .admin-workspace .dashboard-nav button.nav-advanced{display:flex!important;align-items:center!important;gap:17px!important;min-height:44px!important;color:#666!important;background:#fcfaf7!important;border:1px solid #eee3d1!important}
body .admin-workspace .dashboard-nav button.nav-advanced:hover{background:#f7f1e9!important;color:#222!important}
@media (max-width:960px){body .admin-workspace .dashboard-nav{height:auto!important;max-height:none!important;overflow-x:auto!important;overflow-y:hidden!important;}}
