:root {
    --primary: #FFC400;       
    --primary-hover: #FFD54F; 
    --dark: #111111;          
    --text-main: #111111;
    --text-sec: #767676;
    --bg-page: #FFFFFF;
    --bg-sub: #F9F9F9;
    --border: #E8E8E8;
    --radius-pill: 100px;
    --radius-card: 16px;
    --font-stack: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
body { margin: 0; font-family: var(--font-stack); background: #fff; -webkit-font-smoothing: antialiased; }
.bt-shop-wrapper * { box-sizing: border-box; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* 1. Header & Logo Logic */
.bt-site-header { position: sticky; top: 0; background: rgba(255,255,255,0.98); z-index: 800; height: 72px; border-bottom: 1px solid var(--border); backdrop-filter: blur(10px); }
.bt-header-inner { max-width: 1200px; margin: 0 auto; padding: 0 20px; display: flex; justify-content: space-between; align-items: center; height: 100%; width: 100%; }
.bt-brand-logo { font-size: 1.5rem; font-weight: 900; letter-spacing: -1px; display: flex; align-items: center; color: var(--dark); }
.bt-brand-dot { width: 8px; height: 8px; background: var(--primary); border-radius: 50%; margin-left: 4px; }
.bt-header-controls { display: flex; align-items: center; gap: 16px; }

/* Mobile/Desktop Logo Switch */
.bt-logo-mobile { display: none; }
@media (max-width: 600px) {
    .bt-logo-desktop { display: none; }
    .bt-logo-mobile { display: inline; }
}

/* Buttons */
.bt-btn-auth { background-color: var(--dark) !important; color: #ffffff !important; padding: 10px 20px; border-radius: var(--radius-pill); font-weight: 700; font-size: 0.9rem; }
.bt-mode-toggle { background: #eee; padding: 4px; border-radius: var(--radius-pill); display: flex; }
.bt-mode-btn { padding: 8px 16px; border-radius: var(--radius-pill); font-weight: 700; font-size: 0.85rem; color: #666; }
.bt-mode-btn.active { background: #fff; color: #000; box-shadow: 0 2px 5px rgba(0,0,0,0.1); }
.bt-cart-icon-btn { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; position: relative; color: var(--dark); }
.bt-cart-icon-btn:hover { background: #f5f5f5; }
.bt-cart-badge { position: absolute; top: 4px; right: 4px; background: #D92907; color: white; font-size: 0.7rem; font-weight: 700; min-width: 18px; height: 18px; border-radius: 10px; padding: 0 5px; display: flex; align-items: center; justify-content: center; border: 2px solid white; }

/* Layout Containers */
.bt-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; width: 100%; }

/* Hero */
.bt-merchant-hero { position: relative; margin-bottom: 20px; }
.bt-banner-wrapper { height: 320px; width: 100%; position: relative; background-image: url('https://images.unsplash.com/photo-1555396273-367ea4eb4db5?auto=format&fit=crop&w=1600&q=80'); background-size: cover; background-position: center; }
.bt-banner-gradient { position: absolute; bottom: 0; left: 0; width: 100%; height: 60%; background: linear-gradient(to top, rgba(0,0,0,0.7), transparent); }
.bt-banner-actions { position: absolute; bottom: 25px; right: 40px; display: flex; gap: 12px; z-index: 10; max-width: 1200px; margin: 0 auto; }
.bt-btn-white { background: #fff !important; color: #000; padding: 8px 16px; border-radius: var(--radius-pill); font-weight: 600; font-size: 0.9rem; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
.bt-merchant-logo { position: absolute; bottom: -40px; left: max(20px, calc(50% - 600px + 20px)); width: 100px; height: 100px; background: white; border-radius: 50%; padding: 4px; box-shadow: 0 4px 20px rgba(0,0,0,0.15); z-index: 20; }
.bt-logo-img { width: 100%; height: 100%; border-radius: 50%; background-size: cover; }
.bt-info-bar { display: flex; justify-content: space-between; align-items: flex-end; padding-top: 50px; padding-bottom: 10px; }
.bt-merchant-title h1 { font-size: 2.2rem; font-weight: 900; margin: 0 0 8px 0; line-height: 1.1; }
.bt-merchant-tags { font-weight: 500; color: var(--text-sec); display: flex; gap: 10px; align-items: center; font-size: 0.95rem; }
.bt-tag-pill { background: #FFF4CC; color: #8a6d00; padding: 4px 8px; border-radius: 6px; font-weight: 700; font-size: 0.8rem; }
.bt-search-input { background: var(--bg-sub); padding: 12px 20px; border-radius: var(--radius-pill); font-weight: 600; border: none; outline: none; width: 280px; }

/* Nav & Grid */
.bt-nav-sticky { position: sticky; top: 72px; background: rgba(255,255,255,0.98); z-index: 700; margin-top: 20px; padding: 15px 0; border-bottom: 1px solid var(--border); }
.bt-nav-list { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; }
.bt-nav-link { padding: 8px 18px; background: #F0F0F0; border-radius: var(--radius-pill); font-weight: 700; color: #666; text-decoration: none; font-size: 0.9rem; transition: 0.2s; white-space: nowrap; font-family: var(--font-stack); }
.bt-nav-link.active, .bt-nav-link:hover { background: #000; color: #fff; }
.bt-main-grid { padding-top: 40px; padding-bottom: 80px; }
.bt-section-header { font-size: 1.4rem; font-weight: 800; margin-bottom: 24px; }
.bt-menu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 30px; }
.bt-product-card { background: #fff; border-radius: var(--radius-card); border: 1px solid var(--border); overflow: hidden; cursor: pointer; transition: 0.2s; display: flex; flex-direction: column; height: 100%; }
.bt-product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); border-color: #000; }
.bt-p-img-box { height: 180px; background: #f5f5f5; overflow: hidden; }
.bt-p-img-box img { width: 100%; height: 100%; object-fit: cover; transition: 0.4s; }
.bt-product-card:hover .bt-p-img-box img { transform: scale(1.05); }
.bt-p-info { padding: 16px; display: flex; flex-direction: column; flex-grow: 1; }
.bt-p-title { font-weight: 700; font-size: 1.05rem; margin-bottom: 6px; }
.bt-p-desc { color: var(--text-sec); font-size: 0.85rem; line-height: 1.4; margin-bottom: 15px; flex-grow: 1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bt-p-footer { display: flex; justify-content: space-between; align-items: center; margin-top: auto; }
.bt-p-price { font-weight: 600; font-size: 1rem; }
.bt-p-add { width: 32px; height: 32px; background: #eee; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: bold; }

/* Modal */
.bt-modal-bg { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); backdrop-filter: blur(4px); z-index: 1000; display: none; justify-content: center; align-items: center; }
.bt-modal-bg.active { display: flex; }
.bt-modal-card { background: white; width: 500px; max-width: 90%; max-height: 90vh; border-radius: 24px; overflow: hidden; display: flex; flex-direction: column; animation: slideUp 0.3s; }
.bt-modal-header-img { height: 250px; background: #eee; position: relative; flex-shrink: 0; }
.bt-modal-header-img img { width: 100%; height: 100%; object-fit: cover; }
.bt-close-btn { position: absolute; top: 15px; right: 15px; width: 36px; height: 36px; background: white; border-radius: 50%; border: none; font-size: 1.5rem; cursor: pointer; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
.bt-modal-content { padding: 25px; overflow-y: auto; }
.bt-modal-foot { padding: 20px 25px; border-top: 1px solid var(--border); background: white; display: flex; align-items: center; gap: 20px; }
.bt-qty-control { display: flex; align-items: center; gap: 15px; background: #f5f5f5; padding: 5px 10px; border-radius: var(--radius-pill); }
.bt-qty-btn { width: 32px; height: 32px; background: #fff; border-radius: 50%; border: 1px solid #ddd; font-size: 1.2rem; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.bt-btn-add-order { flex-grow: 1; background-color: var(--primary) !important; color: #000 !important; border: none; border-radius: var(--radius-pill); font-weight: 800; font-size: 1rem; padding: 15px; cursor: pointer; }
.bt-btn-add-order:hover { background-color: var(--primary-hover) !important; }

/* ------------------------------------------------------------------
   Professional Cart Drawer Styling
   ------------------------------------------------------------------ */
.bt-drawer-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 1050; opacity: 0; visibility: hidden; transition: 0.3s; }
.bt-drawer-overlay.active { opacity: 1; visibility: visible; }
.bt-cart-drawer { position: fixed; top: 0; right: 0; width: 420px; max-width: 100%; height: 100%; background: #fff; z-index: 1100; box-shadow: -5px 0 30px rgba(0,0,0,0.15); transform: translateX(100%); transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1); display: flex; flex-direction: column; }
.bt-cart-drawer.active { transform: translateX(0); }

.bt-drawer-header { padding: 20px 25px; border-bottom: 1px solid #f0f0f0; display: flex; justify-content: space-between; align-items: center; }
.bt-drawer-header h3 { margin: 0; font-size: 1.4rem; font-weight: 800; letter-spacing: -0.5px; }
.bt-close-drawer { font-size: 2rem; line-height: 1; color: #999; transition: 0.2s; }
.bt-close-drawer:hover { color: #000; }

.bt-drawer-body { flex-grow: 1; overflow-y: auto; padding: 0; }
.bt-cart-empty-state { text-align: center; padding-top: 100px; padding-bottom: 20px; color: #999; }
.bt-btn-browse { margin-top: 15px; padding: 12px 24px; background: #000; color: #fff; border-radius: var(--radius-pill); font-weight: 700; transition: 0.2s; }
.bt-btn-browse:hover { transform: scale(1.05); }

/* Cart Item List Style */
.bt-cart-item { display: flex; padding: 20px 25px; border-bottom: 1px solid #f9f9f9; align-items: center; gap: 15px; transition: 0.2s; }
.bt-cart-item:hover { background: #fafafa; }

.bt-cart-img { width: 50px; height: 50px; border-radius: 8px; overflow: hidden; flex-shrink: 0; background: #eee; }
.bt-cart-img img { width: 100%; height: 100%; object-fit: cover; }

.bt-cart-details { flex-grow: 1; }
.bt-cart-row-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 6px; }
.bt-cart-title { font-weight: 700; font-size: 0.95rem; color: #111; line-height: 1.3; }
.bt-cart-price { font-weight: 700; font-size: 0.95rem; color: #111; }

.bt-cart-row-btm { display: flex; align-items: center; justify-content: space-between; }
.bt-cart-qty { background: #f0f0f0; color: #555; font-size: 0.8rem; font-weight: 700; padding: 2px 8px; border-radius: 4px; }
.bt-cart-remove { color: #ccc; font-size: 0.8rem; font-weight: 500; transition: 0.2s; padding: 5px; }
.bt-cart-remove:hover { color: #d92907; text-decoration: underline; }

.bt-drawer-footer { padding: 25px; border-top: 1px solid #f0f0f0; background: #fff; box-shadow: 0 -5px 20px rgba(0,0,0,0.03); }
.bt-cart-summary { margin-bottom: 20px; }
.bt-row.total { display: flex; justify-content: space-between; font-size: 1.3rem; font-weight: 900; color: #000; letter-spacing: -0.5px; }
.bt-btn-checkout { width: 100%; background: #000; color: var(--primary); padding: 18px; border-radius: var(--radius-pill); font-weight: 800; font-size: 1.1rem; border: none; cursor: pointer; transition: 0.2s; box-shadow: 0 4px 15px rgba(0,0,0,0.15); }
.bt-btn-checkout:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.2); }
.bt-btn-checkout:disabled { background: #ccc; color: #fff; cursor: not-allowed; transform: none; box-shadow: none; }

@keyframes slideUp { from { transform: translateY(40px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

@media (max-width: 900px) {
    .bt-site-header { padding: 0 20px; }
    .bt-cart-drawer { top: auto; bottom: 0; right: 0; width: 100%; height: 85vh; border-radius: 20px 20px 0 0; transform: translateY(100%); }
    .bt-cart-drawer.active { transform: translateY(0); }
    .bt-merchant-logo { left: 20px; }
    .bt-info-bar { flex-direction: column; align-items: flex-start; gap: 20px; }
    .bt-search-input { width: 100%; }
}