/* CSS khusus fitur customer; aturan umum masih ada di ../../styles.css */

/* =========================================================
   V15 — WARKOP MOBILE CAFE UI
   Customer inspired by modern fast-casual ordering apps.
   ========================================================= */
:root{
  --w-bg:#fff8ef;
  --w-card:#ffffff;
  --w-ink:#241710;
  --w-muted:#85766b;
  --w-brown:#6b3f24;
  --w-brown-dark:#3e2518;
  --w-cream:#f5e5d4;
  --w-orange:#c97936;
  --w-green:#3f6b4a;
  --w-line:#eadfd4;
}

body{background:linear-gradient(180deg,#fffaf4 0%,#f6eee6 100%)!important;color:var(--w-ink)!important;}
.glass-nav{background:rgba(255,250,244,.96)!important;border-bottom:1px solid var(--w-line)!important}


/* Customer page */
#page-menu{background:var(--w-bg)!important;max-width:none!important;padding:0 0 7rem!important}
.customer-menu-shell{width:100%;max-width:1120px;margin:0 auto;padding:18px 20px 20px}
.customer-topbar{display:flex;align-items:center;justify-content:space-between;gap:14px;background:rgba(255,255,255,.9);padding:13px 14px;border:1px solid var(--w-line);border-radius:20px;box-shadow:0 8px 25px rgba(62,37,24,.07);position:sticky;top:86px;z-index:15;backdrop-filter:blur(12px)}
.customer-profile{display:flex;align-items:center;gap:11px;min-width:0}.customer-avatar{width:42px;height:42px;border-radius:14px;background:var(--w-cream);color:var(--w-brown);display:flex;align-items:center;justify-content:center;flex:none}.customer-greeting{font-size:10px;color:var(--w-muted);font-weight:700;margin-bottom:2px}.customer-profile strong{font-size:15px;color:var(--w-ink)}.customer-table-pill{display:inline-flex;align-items:center;gap:4px;background:#f7efe7;color:var(--w-brown);border:1px solid #ead7c6;border-radius:999px;padding:4px 8px;font-size:10px;font-weight:800}.customer-notification{width:43px;height:43px;border-radius:14px;border:1px solid var(--w-line);background:#fff;color:var(--w-brown-dark);display:flex;align-items:center;justify-content:center;position:relative;box-shadow:0 4px 12px rgba(62,37,24,.06);transition:.2s}.customer-notification:hover{background:var(--w-cream);transform:translateY(-1px)}.customer-notification-badge{position:absolute;right:-4px;top:-5px;min-width:19px;height:19px;border-radius:999px;background:#c84432;color:#fff;border:2px solid #fff;font-size:9px;font-weight:900;display:flex;align-items:center;justify-content:center;padding:0 4px}
.customer-promo-wrap{margin-top:15px}.customer-promo-container{height:205px;border-radius:22px;overflow:hidden;position:relative;background:#eee4da;box-shadow:0 12px 30px rgba(62,37,24,.1)}.customer-promo-slide{position:absolute;inset:0;display:none;background:var(--w-brown-dark)}.customer-promo-slide.active{display:block}.customer-promo-slide img{width:100%;height:100%;object-fit:cover;display:block}.customer-promo-slide:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(36,23,16,.62),rgba(36,23,16,.05) 65%,transparent)}.customer-promo-caption{position:absolute;z-index:2;left:20px;bottom:18px;color:#fff;display:flex;flex-direction:column;gap:4px;max-width:70%}.customer-promo-caption span{font-size:9px;font-weight:900;letter-spacing:.12em;background:#e7a15d;color:#3e2518;border-radius:999px;padding:4px 7px;width:max-content}.customer-promo-caption b{font-size:22px;line-height:1.05}.promo-placeholder{height:100%;display:flex;align-items:center;gap:15px;padding:24px;background:linear-gradient(135deg,#6b3f24,#3e2518);color:#fff}.promo-placeholder>span{width:58px;height:58px;border-radius:18px;background:rgba(255,255,255,.13);display:flex;align-items:center;justify-content:center;font-size:24px}.promo-placeholder b{display:block;font-size:20px}.promo-placeholder small{display:block;margin-top:4px;color:#eadfd4;font-size:11px}
.customer-section-title{display:flex;align-items:end;justify-content:space-between;gap:12px;margin:22px 2px 12px}.customer-section-title>div>span{font-size:10px;color:var(--w-orange);font-weight:900;text-transform:uppercase;letter-spacing:.12em}.customer-section-title h2{font-size:23px;font-weight:900;letter-spacing:-.03em;margin-top:1px}.customer-location{font-size:10px;color:var(--w-muted);font-weight:800;background:#fff;border:1px solid var(--w-line);border-radius:999px;padding:7px 10px;white-space:nowrap}.customer-location i{color:var(--w-orange);margin-right:3px}
.customer-category-row{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-bottom:18px}.customer-category-row .menu-filter{border:0!important;box-shadow:none!important;background:transparent!important;color:var(--w-muted)!important;padding:0!important;display:flex!important;flex-direction:column;gap:6px;min-width:0}.customer-category-row .menu-filter .category-icon{width:58px;height:58px;border-radius:18px;background:#fff;border:1px solid var(--w-line);display:flex;align-items:center;justify-content:center;font-size:19px;color:var(--w-brown);box-shadow:0 5px 15px rgba(62,37,24,.05);transition:.2s}.customer-category-row .menu-filter b{font-size:10px}.customer-category-row .menu-filter.active .category-icon{background:var(--w-brown-dark);color:#fff;border-color:var(--w-brown-dark);box-shadow:0 8px 18px rgba(62,37,24,.16)}.customer-category-row .menu-filter.active b{color:var(--w-brown-dark)}
.customer-menu-heading{display:flex;align-items:center;justify-content:space-between;margin:4px 1px 10px}.customer-menu-heading h3{font-size:16px;font-weight:900}.customer-menu-heading span{font-size:10px;color:var(--w-muted);font-weight:800}
.customer-menu-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.customer-menu-card{background:#fff;border:1px solid var(--w-line);border-radius:18px;overflow:hidden;box-shadow:0 7px 20px rgba(62,37,24,.06);transition:.2s;min-width:0}.customer-menu-card:hover{transform:translateY(-2px);box-shadow:0 12px 25px rgba(62,37,24,.1)}.customer-menu-image{height:145px;position:relative;overflow:hidden;background:#efe5dc}.customer-menu-image img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .45s}.customer-menu-card:hover .customer-menu-image img{transform:scale(1.05)}.customer-menu-tag{position:absolute;top:8px;left:8px;background:#fff;color:var(--w-brown);border-radius:999px;padding:5px 7px;font-size:8px;font-weight:900;text-transform:uppercase;display:inline-flex;gap:4px;align-items:center;box-shadow:0 4px 10px rgba(0,0,0,.08)}.customer-menu-body{padding:11px;display:flex;flex-direction:column;min-height:130px}.customer-menu-info h3{font-size:13px;line-height:1.25;font-weight:900;color:var(--w-ink);margin-bottom:4px}.customer-menu-info p{font-size:9px;color:#a09287;line-height:1.3;margin-bottom:8px}.customer-menu-info strong{font-size:14px;color:var(--w-brown-dark)}.customer-add-button{margin-top:auto;width:100%;height:35px;border-radius:10px;border:1px solid #d7c2ae;background:#fff;color:var(--w-brown-dark);font-size:11px;font-weight:900;display:flex;align-items:center;justify-content:center;gap:6px;transition:.2s}.customer-add-button:hover{background:var(--w-brown-dark);color:#fff;border-color:var(--w-brown-dark)}.customer-qty-control{margin-top:auto;height:35px;border-radius:10px;display:grid;grid-template-columns:1fr 1fr 1fr;align-items:center;overflow:hidden;background:var(--w-brown-dark);color:#fff}.customer-qty-control button{height:100%;color:#fff}.customer-qty-control button:hover{background:#55331f}.customer-qty-control b{text-align:center;font-size:12px}.customer-empty-menu{grid-column:1/-1;min-height:230px;background:#fff;border:1px dashed #d9c9bb;border-radius:18px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;color:var(--w-muted)}.customer-empty-menu span{width:54px;height:54px;border-radius:17px;background:var(--w-cream);color:var(--w-brown);display:flex;align-items:center;justify-content:center;font-size:20px;margin-bottom:4px}.customer-empty-menu b{color:var(--w-brown-dark)}.customer-empty-menu small{font-size:10px}
.customer-cart-float{position:fixed;right:18px;bottom:18px;z-index:45}.customer-cart-button{display:flex;align-items:center;gap:11px;min-width:190px;padding:9px 10px 9px 9px;border-radius:16px;background:var(--w-brown-dark);color:#fff;box-shadow:0 14px 32px rgba(62,37,24,.25);border:1px solid rgba(255,255,255,.1);transition:.2s}.customer-cart-button:hover{transform:translateY(-2px);background:#2f1c12}.customer-cart-icon{position:relative;width:39px;height:39px;border-radius:12px;background:#fff;color:var(--w-brown-dark);display:flex;align-items:center;justify-content:center}.customer-cart-icon em{position:absolute;right:-5px;top:-5px;min-width:18px;height:18px;border-radius:999px;background:#e69b54;color:#3e2518;border:2px solid var(--w-brown-dark);font-size:9px;font-style:normal;font-weight:900;display:flex;align-items:center;justify-content:center;padding:0 3px}.customer-cart-text{display:flex;flex-direction:column;align-items:flex-start;flex:1}.customer-cart-text small{font-size:9px;color:#d9c9bb;font-weight:800}.customer-cart-text strong{font-size:14px}.customer-cart-button>i{font-size:11px;color:#d9c9bb}


/* Customer menu canvas */
.cafe-menu-page{background:
  radial-gradient(circle at 8% 3%,rgba(207,160,119,.13),transparent 25%),
  radial-gradient(circle at 94% 18%,rgba(239,207,174,.18),transparent 24%),
  linear-gradient(180deg,#fffaf5 0%,#f8f0e8 100%)!important;
}
.customer-menu-shell{width:min(1180px,100%);margin:0 auto;padding:20px 18px 32px}
.customer-topbar{
  position:sticky!important;top:76px!important;z-index:35!important;
  min-height:66px!important;padding:10px 12px!important;margin-bottom:15px!important;
  border-radius:20px!important;background:rgba(255,255,255,.92)!important;
  border:1px solid rgba(230,216,203,.95)!important;box-shadow:0 9px 26px rgba(59,35,22,.07)!important;
  backdrop-filter:blur(16px)!important;
}
.customer-profile{gap:10px!important}
.customer-avatar{width:42px!important;height:42px!important;border-radius:14px!important;background:linear-gradient(145deg,#6b432d,#402519)!important;color:#fff!important;box-shadow:0 7px 16px rgba(64,37,25,.18)!important}
.customer-greeting{font-size:9px!important;color:#9a8779!important;font-weight:800!important;letter-spacing:.02em}
.customer-profile strong{font-size:14px!important;color:var(--v16-espresso)!important;letter-spacing:-.02em}
.customer-table-pill{background:#f6eee7!important;border:1px solid #e7d8ca!important;color:#684632!important;padding:5px 9px!important;border-radius:999px!important;font-size:9px!important;font-weight:900!important}
.customer-notification{width:43px!important;height:43px!important;border-radius:14px!important;background:#fff!important;color:var(--v16-brown)!important;border:1px solid var(--v16-line)!important;box-shadow:0 6px 16px rgba(54,31,20,.07)!important}
.customer-notification:hover{background:#f5eadf!important;transform:translateY(-1px)}
.customer-notification-badge{background:#c94e46!important;color:#fff!important;border:3px solid #fff!important;min-width:20px!important;height:20px!important;font-size:9px!important}


/* Promo: compact premium banner */
.customer-promo-wrap{margin:0 0 17px!important}
.customer-promo-container{height:205px!important;border-radius:23px!important;box-shadow:var(--v16-shadow)!important;border:1px solid rgba(226,210,196,.9)!important;background:#e9ddd3!important;overflow:hidden!important}
.customer-promo-container img{transition:transform .6s ease!important}
.customer-promo-container:hover img{transform:scale(1.02)!important}
.promo-placeholder{height:100%;display:flex;align-items:center;justify-content:center;gap:13px;background:linear-gradient(135deg,#f2e7de,#fffaf5);color:#765b48}
.promo-placeholder>i{width:46px;height:46px;border-radius:15px;background:#fff;color:#a06b46;display:flex;align-items:center;justify-content:center;box-shadow:0 8px 20px rgba(54,31,20,.08)}


/* Product grid — tighter and more premium */
.customer-menu-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important}
.customer-menu-card{border-radius:19px!important;border:1px solid #e9ddd4!important;box-shadow:0 9px 25px rgba(54,31,20,.065)!important;background:#fff!important}
.customer-menu-card:hover{transform:translateY(-3px)!important;box-shadow:0 15px 32px rgba(54,31,20,.11)!important}
.customer-menu-image{height:152px!important;background:#eee4db!important}
.customer-menu-tag{top:9px!important;left:9px!important;background:rgba(255,255,255,.94)!important;color:#68442f!important;padding:5px 8px!important;border:1px solid rgba(230,216,203,.9)!important}
.customer-menu-body{padding:12px!important;min-height:137px!important}
.customer-menu-info h3{font-size:13px!important;color:#291911!important}
.customer-menu-info p{font-size:9px!important;color:#9a8a80!important}
.customer-menu-info strong{font-size:14px!important;color:#5a3421!important}
.customer-add-button{height:37px!important;border-radius:11px!important;background:#f7eee7!important;color:#5a3421!important;border:1px solid #e4d2c3!important}
.customer-add-button:hover{background:#4b2d1f!important;color:#fff!important;border-color:#4b2d1f!important}
.customer-qty-control{height:37px!important;border-radius:11px!important;background:#4b2d1f!important}


/* Floating cart: clearer, smaller, modern */
.customer-cart-float{right:16px!important;bottom:16px!important}
.customer-cart-button{min-width:174px!important;padding:8px!important;border-radius:17px!important;background:linear-gradient(135deg,#533222,#3b2418)!important;box-shadow:0 16px 34px rgba(54,31,20,.24)!important}
.customer-cart-icon{width:38px!important;height:38px!important;border-radius:12px!important}
.customer-cart-icon em{background:#d9985e!important;color:#fff!important;border-color:#4b2d1f!important}
.customer-cart-text small{color:#d9c9bc!important;font-size:8px!important}.customer-cart-text strong{font-size:13px!important}


/* Tombol kembali pada halaman menu customer */
.customer-back-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-shrink: 0;
    padding: 10px 13px;
    border: 1px solid #d6c2ad;
    border-radius: 12px;
    background: #6f4e37;
    color: #fffaf5;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease;
}
.customer-back-button:hover {
    background: #4b3325;
    transform: translateY(-1px);
}
.customer-back-button:focus-visible {
    outline: 3px solid #c9a27e;
    outline-offset: 2px;
}
@media (max-width: 480px) {
    .customer-back-button {
        padding: 9px 10px;
        font-size: 12px;
    }
}
