
/* Containment: shop layout regions */
.shop-header { contain: layout style paint; }
.shop-main { contain: layout style; }
.shop-cart { contain: layout style; }
.product-grid { contain: layout; }
.product-card { contain: layout style paint; }
.shop-footer { contain: layout style paint; }

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Inter', -apple-system, sans-serif; background: #f1f5f9; color: #0f172a; height: 100vh; overflow: hidden; display: flex; flex-direction: column; }
.shop-header { background: #0f172a; color: white; padding: 12px 20px; display: flex; justify-content: space-between; align-items: center; flex-shrink: 0; z-index: 50; }
.shop-header-left { display: flex; align-items: center; gap: 12px; }
.shop-header h1 { font-size: 16px; font-weight: 700; }
.shop-header-right { display: flex; align-items: center; gap: 16px; font-size: 13px; color: #94a3b8; }
.shop-header a { color: #93c5fd; text-decoration: none; font-weight: 500; }
.shop-header a:hover { color: white; }

.shop-layout { display: grid; grid-template-columns: 1fr 408px; flex: 1; overflow: hidden; min-height: 0; }
/* Left sidebar - categories */
.shop-sidebar { background: #ffffff; border-right: 1px solid #e2e8f0; display: flex; flex-direction: column; overflow: hidden; }
.sidebar-title { padding: 12px 12px 10px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: #64748b; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sidebar-title .btn-cats-toggle { padding: 6px; border-radius: 6px; text-transform: none; letter-spacing: 0; }
.sidebar-title .btn-cats-toggle span { display: none; }
/* When collapsed, show a reopen strip */

.cat-list { flex: 1; overflow-y: auto; padding: 0 8px 16px; }
.cat-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px; cursor: pointer; font-size: 13.5px; font-weight: 500; color: #475569; transition: all 0.15s; border: none; background: none; width: 100%; text-align: left; font-family: inherit; }
.cat-item:hover { background: #f1f5f9; color: #0f172a; }
.cat-item.active { background: #dbeafe; color: #1d4ed8; }

/* Center - products */
.shop-main { display: flex; flex-direction: column; overflow: hidden; background: #f8fafc; }
.shop-toolbar { padding: 14px 20px; background: white; border-bottom: 1px solid #e2e8f0; display: flex; gap: 12px; align-items: center; flex-shrink: 0; flex-wrap: wrap; }
.shop-search { flex: 1; display: flex; align-items: center; gap: 8px; background: #f1f5f9; border: 1.5px solid #e2e8f0; border-radius: 10px; padding: 0 14px; }
.shop-search input { flex: 1; border: none; background: transparent; padding: 11px 0; font-size: 14px; outline: none; font-family: inherit; }
.shop-search svg { color: #94a3b8; flex-shrink: 0; }
.product-grid { flex: 1; overflow-y: auto; padding: 16px 20px; display: grid; /* ~2 rows visible of 4–6 columns depending on width */ grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; align-content: start; }

.product-card .pc-img { width: 100%; aspect-ratio: 1; max-height: 120px; border-radius: 8px; overflow: hidden; background: #f1f5f9; margin-bottom: 8px; display: flex; align-items: center; justify-content: center; }
.product-card .pc-img img { width: 100%; height: 100%; object-fit: cover; }
.product-card .pc-img-placeholder { font-size: 28px; color: #94a3b8; }
.product-card { min-width: 0;
 background: white; border: 1.5px solid #e2e8f0; border-radius: 12px; padding: 12px; display: flex; flex-direction: column; transition: all 0.15s; }
.product-card:hover { border-color: #93c5fd; box-shadow: 0 4px 12px rgba(37,99,235,0.08); }
.product-card .pc-name { font-weight: 600; font-size: 12px; line-height: 1.3; margin-bottom: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-card .pc-meta {
  display: flex; flex-wrap: nowrap; align-items: center; justify-content: space-between;
  gap: 6px; margin-bottom: 8px; font-size: 10.5px; color: #64748b; min-width: 0;
}
.product-card .pc-unit { font-weight: 500; color: #64748b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 34%; }
.product-card .pc-price { font-size: 11.5px; font-weight: 700; color: #2563eb; white-space: nowrap; }
.product-card .pc-stock { font-size: 10.5px; color: #64748b; font-weight: 500; white-space: nowrap; }
.product-card .pc-stock.out { color: #dc2626; font-weight: 600; }
.product-card .pc-sku { display: none !important; }
.product-card .pc-actions { margin-top: auto; display: flex; gap: 6px; align-items: center; }
.qty-control { display: flex; align-items: center; border: 1.5px solid #e2e8f0; border-radius: 8px; overflow: hidden; }
.qty-control button { width: 30px; height: 32px; border: none; background: #f8fafc; cursor: pointer; font-size: 15px; color: #475569; font-family: inherit; }
.qty-control button:hover { background: #e2e8f0; }
.qty-control span { min-width: 28px; text-align: center; font-weight: 600; font-size: 13px; }
.btn-add { flex: 1; padding: 8px 10px; border: none; border-radius: 8px; background: #2563eb; color: white; font-weight: 600; font-size: 12.5px; cursor: pointer; font-family: inherit; transition: background 0.15s; }
.btn-add:hover:not(:disabled) { background: #1d4ed8; }
.btn-add:disabled { background: #cbd5e1; cursor: not-allowed; }

/* Right - cart always visible */
.shop-cart { background: white; border-left: 1px solid #e2e8f0; display: flex; flex-direction: column; overflow: hidden; }
.cart-header { padding: 16px 18px; border-bottom: 1px solid #e2e8f0; display: flex; justify-content: space-between; align-items: center; flex-shrink: 0; }
.cart-header h2 { font-size: 15px; font-weight: 700; }
.cart-badge { background: #2563eb; color: white; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 10px; }
.cart-items { flex: 1; overflow-y: auto; padding: 8px 0; }
.cart-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; color: #94a3b8; gap: 8px; padding: 24px; text-align: center; }
.cart-empty svg { opacity: 0.35; }
.cart-empty p { font-weight: 500; font-size: 14px; color: #64748b; }
.cart-empty small { font-size: 12px; }

.cart-item { display: block; padding: 10px 14px; border-bottom: 1px solid #f1f5f9; }
.cart-item:hover { background: #f8fafc; }
.ci-name-row {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 8px; margin-bottom: 6px; min-width: 0;
}
.ci-name {
  font-weight: 600; font-size: 12.5px; line-height: 1.3;
  flex: 1; min-width: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.ci-row {
  display: grid;
  grid-template-columns: minmax(72px, 1fr) auto auto auto;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.ci-unit-wrap { min-width: 0; display: flex; }
.ci-unit-label {
  font-size: 11.5px; color: #64748b; font-weight: 500; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; max-width: 100%;
}
.ci-unit-select {
  width: 100%; min-width: 72px; max-width: 130px;
  padding: 4px 6px; border: 1.5px solid #e2e8f0; border-radius: 6px;
  font-size: 11.5px; font-family: inherit; background: #fff; color: #0f172a;
  cursor: pointer;
}
.ci-unit-select:focus { outline: none; border-color: #2563eb; box-shadow: 0 0 0 2px #dbeafe; }
.ci-price { font-size: 12px; font-weight: 700; color: #2563eb; white-space: nowrap; text-align: right; }
.ci-qty { display: flex; align-items: center; gap: 3px; margin: 0; flex-shrink: 0; }
.ci-qty button {
  width: 26px; height: 26px; border: 1px solid #e2e8f0; border-radius: 6px;
  background: white; cursor: pointer; font-size: 13px;
  display: flex; align-items: center; justify-content: center; font-family: inherit;
}
.ci-qty button:hover { border-color: #2563eb; color: #2563eb; }
.ci-qty span { min-width: 20px; text-align: center; font-weight: 600; font-size: 12.5px; }
.ci-total { font-weight: 700; font-size: 12.5px; white-space: nowrap; text-align: right; min-width: 58px; }
.ci-remove {
  background: none; border: none; cursor: pointer; color: #cbd5e1;
  font-size: 18px; padding: 0 2px; line-height: 1; flex-shrink: 0;
}
.ci-remove:hover { color: #dc2626; }

.cart-footer { border-top: 1px solid #e2e8f0; padding: 14px 18px 18px; flex-shrink: 0; background: #f8fafc; }
.cart-totals { margin-bottom: 12px; }
.total-row { display: flex; justify-content: space-between; font-size: 13px; padding: 3px 0; color: #64748b; }
.total-row.grand { font-size: 17px; font-weight: 700; color: #2563eb; padding-top: 8px; margin-top: 4px; border-top: 1px dashed #e2e8f0; }

.checkout-form { display: none; }
.checkout-form.open { display: block; }
.checkout-form .form-group { margin-bottom: 10px; }
.checkout-form label { display: block; font-size: 11.5px; font-weight: 600; margin-bottom: 3px; color: #475569; }
.checkout-form input, .checkout-form textarea { width: 100%; padding: 9px 11px; border: 1.5px solid #e2e8f0; border-radius: 8px; font-size: 13px; font-family: inherit; background: white; }
.checkout-form input:focus, .checkout-form textarea:focus { outline: none; border-color: #2563eb; box-shadow: 0 0 0 3px #dbeafe; }

.btn-checkout { width: 100%; padding: 13px; border: none; border-radius: 10px; background: #2563eb; color: white; font-weight: 700; font-size: 14px; cursor: pointer; font-family: inherit; transition: background 0.15s; }
.btn-checkout:hover:not(:disabled) { background: #1d4ed8; }
.btn-checkout:disabled { background: #94a3b8; cursor: not-allowed; }
.btn-back { width: 100%; padding: 8px; border: none; background: none; color: #64748b; font-size: 12.5px; cursor: pointer; font-family: inherit; margin-top: 6px; }
.btn-back:hover { color: #2563eb; }

.modal { display: none; position: fixed; inset: 0; background: rgba(15,23,42,0.5); z-index: 1000; align-items: center; justify-content: center; }
.modal.show { display: flex; }
.modal-content { background: white; border-radius: 14px; width: 90%; max-width: 400px; box-shadow: 0 20px 40px rgba(0,0,0,0.15); }
.modal-header { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px; border-bottom: 1px solid #e2e8f0; }
.modal-header h3 { font-size: 16px; font-weight: 700; }
.modal-close { background: none; border: none; font-size: 22px; cursor: pointer; color: #94a3b8; }
.modal-body { padding: 20px 22px; }
.modal-footer { padding: 14px 22px; border-top: 1px solid #e2e8f0; display: flex; justify-content: flex-end; }
.btn-primary { padding: 10px 20px; border: none; border-radius: 8px; background: #2563eb; color: white; font-weight: 600; cursor: pointer; font-family: inherit; }

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }


.shop-mobile-tabs { display: none; }

.btn-cats-toggle { display: inline-flex; align-items: center; gap: 6px; border: 1.5px solid #e2e8f0; background: #fff; color: #334155; border-radius: 8px; padding: 8px 12px; font-family: inherit; font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; flex-shrink: 0; }
.btn-cats-toggle:hover { background: #f8fafc; border-color: #cbd5e1; }
.btn-cats-toggle svg { flex-shrink: 0; }
/* Mobile category dropdown (desktop keeps left sidebar) */

.mobile-cat-dropdown { display: none; width: 100%; position: relative; }
.mobile-cat-dropdown select { width: 100%; padding: 11px 12px; border: 1.5px solid #e2e8f0; border-radius: 10px; font-size: 16px; font-family: inherit; background: #fff; color: #0f172a; appearance: auto; }
/* Clear sits inside the select field (left side) when a category is active */
.mobile-cat-dropdown.has-filter select { padding-left: 40px; }
.btn-clear-cat { display: none; position: absolute; left: 8px; top: 50%; transform: translateY(-50%); z-index: 2; width: 28px; height: 28px; padding: 0; border: none; border-radius: 6px; background: #fee2e2; color: #dc2626; align-items: center; justify-content: center; cursor: pointer; }
.btn-clear-cat.show { display: inline-flex; }
.btn-clear-cat:hover { background: #fecaca; }
.btn-clear-cat .clear-label { display: none; }



.cat-item.selected { background: #dbeafe; color: #1d4ed8; box-shadow: inset 3px 0 0 #2563eb; }
.cat-item.active:not(.selected) { background: transparent; color: #475569; }
.filter-chips { display: flex; flex-wrap: wrap; gap: 6px; width: 100%; padding-top: 4px; }
.filter-chip { display: inline-flex; align-items: center; gap: 4px; background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; border-radius: 999px; padding: 4px 8px 4px 10px; font-size: 12px; font-weight: 600; }
.filter-chip button { border: none; background: transparent; color: #1d4ed8; cursor: pointer; padding: 0 2px; font-size: 14px; line-height: 1; }
.shop-filter-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; width: 100%; }
.filter-check { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: #475569; font-weight: 500; white-space: nowrap; cursor: pointer; user-select: none; }
.filter-check input { width: 16px; height: 16px; accent-color: #2563eb; }
/* Mobile multi-select panel */
.mobile-cat-panel { display: none; position: absolute; left: 0; right: 0; top: calc(100% + 6px); background: #fff; border: 1.5px solid #e2e8f0; border-radius: 10px; box-shadow: 0 10px 30px rgba(15,23,42,0.12); z-index: 60; max-height: 240px; overflow-y: auto; padding: 8px; }
.mobile-cat-panel.open { display: block; }
.mobile-cat-option { display: flex; align-items: center; gap: 10px; padding: 10px 10px; border-radius: 8px; cursor: pointer; font-size: 14px; color: #0f172a; }
.mobile-cat-option:hover { background: #f8fafc; }
.mobile-cat-option input { width: 16px; height: 16px; accent-color: #2563eb; }
.mobile-cat-trigger { width: 100%; text-align: left; padding: 11px 12px; border: 1.5px solid #e2e8f0; border-radius: 10px; font-size: 15px; font-family: inherit; background: #fff; color: #0f172a; cursor: pointer; }
.mobile-cat-dropdown.has-filter .mobile-cat-trigger { padding-left: 40px; border-color: #93c5fd; background: #f8fbff; }


/* POS-style search + category filters */
.shop-toolbar { padding: 14px 20px 0; background: #fff; border-bottom: 1px solid #e2e8f0; display: flex; flex-direction: column; align-items: stretch; gap: 0; flex-shrink: 0; }
.shop-search { display: flex; align-items: center; gap: 10px; background: #f1f5f9; border: 1.5px solid #e2e8f0; border-radius: 10px; padding: 0 14px; margin-bottom: 12px; width: 100%; }
.shop-search input { flex: 1; border: none; background: transparent; padding: 12px 0; font-size: 15px; outline: none; font-family: inherit; }
.shop-search svg { color: #64748b; flex-shrink: 0; }
.shop-category-tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 12px; -webkit-overflow-scrolling: touch; width: 100%; }
.shop-category-tabs .cat-tab { padding: 6px 14px; border: 1px solid #e2e8f0; border-radius: 20px; background: #fff; font-size: 12.5px; font-weight: 500; cursor: pointer; white-space: nowrap; transition: all 0.15s; font-family: inherit; color: #334155; }
.shop-category-tabs .cat-tab:hover { border-color: #2563eb; color: #2563eb; }
.shop-category-tabs .cat-tab.active { background: #2563eb; color: #fff; border-color: #2563eb; }
/* Sidebar categories mirror POS pills (vertical) */
.cat-list { flex: 1; overflow-y: auto; padding: 8px 10px 16px; display: flex; flex-direction: column; gap: 6px; }
.cat-item { display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 20px; cursor: pointer; font-size: 12.5px; font-weight: 500; color: #334155; transition: all 0.15s; border: 1px solid #e2e8f0; background: #fff; width: 100%; text-align: left; font-family: inherit; }
.cat-item:hover { border-color: #2563eb; color: #2563eb; background: #fff; }
.cat-item.active,
.cat-item.selected { background: #2563eb !important; color: #fff !important; border-color: #2563eb !important; box-shadow: none !important; }
/* Hide old multi dropdown chrome on desktop; mobile uses same pills */
.mobile-cat-dropdown { display: none !important; }
.filter-chips { display: none !important; }

@media (max-width: 1400px) { 
    .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 1100px) { 
    .shop-layout { grid-template-columns: 1fr 360px; } 
}

@media (max-width: 900px) { 
    body {  overflow: hidden; height: 100vh; height: 100dvh; display: flex; flex-direction: column; } 
    .shop-header { padding: 10px 14px; flex-wrap: wrap; gap: 8px; flex-shrink: 0; position: sticky; top: 0; z-index: 50; } 
    .shop-header h1 { font-size: 15px; } 
    .shop-header-right { width: 100%; justify-content: space-between; font-size: 12px; } 
    .shop-mobile-tabs { display: flex; background: #fff; border-bottom: 1px solid #e2e8f0; flex-shrink: 0; position: relative; z-index: 40; } 
    .shop-m-tab { flex: 1; border: none; background: transparent; padding: 12px 8px; font-family: inherit; font-size: 13.5px; font-weight: 600; color: #64748b; cursor: pointer; border-bottom: 2px solid transparent; } 
    .shop-m-tab.active { color: #2563eb; border-bottom-color: #2563eb; } 
    .shop-m-tab .badge { display: inline-block; min-width: 18px; padding: 1px 6px; border-radius: 999px; background: #e2e8f0; font-size: 11px; margin-left: 4px; } 
    .shop-m-tab.active .badge { background: #dbeafe; color: #1d4ed8; } 
    .shop-layout { display: flex; flex-direction: column; flex: 1; overflow: hidden; min-height: 0; height: auto; } 
    .shop-main, .shop-cart { width: 100% !important; max-width: none !important; max-height: none !important; border: none !important; flex: 1; min-height: 0; } 
    body.shop-pane-products .shop-cart { display: none !important; } 
    body.shop-pane-cart .shop-sidebar, body.shop-pane-cart .shop-main { display: none !important; } 
    body.shop-pane-products .shop-main, body.shop-pane-cart .shop-cart { display: flex !important; flex-direction: column; } 
    /* Sidebar is desktop-only; mobile uses dropdown */ 
    body.shop-pane-products .shop-sidebar, body .shop-sidebar { display: none !important; } 
    body.shop-pane-products .shop-layout { display: flex !important; flex-direction: column !important; flex: 1 1 auto !important; min-height: 0 !important; overflow: hidden !important; } 
    body.shop-pane-products .shop-main { display: flex !important; flex-direction: column !important; flex: 1 1 auto !important; min-height: 0 !important; width: 100% !important; overflow: hidden !important; } 
    body.shop-pane-products .shop-cart { display: none !important; } 
    body.shop-pane-cart .shop-layout { display: flex !important; flex-direction: column; } 
    .shop-toolbar { flex-wrap: wrap; gap: 8px; padding: 10px 12px; flex-shrink: 0 !important; position: sticky; top: 0; z-index: 30; background: #fff; } 
    .shop-search { width: 100%; } 
    .shop-search input { width: 100%; font-size: 16px; } 
    .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px; padding: 10px 12px 24px; overflow-y: auto !important; -webkit-overflow-scrolling: touch; flex: 1 1 auto !important; min-height: 0 !important; } 
    .product-card { min-width: 0; padding: 10px;  } 
    .product-card .pc-price { font-size: 12.5px; } 
    .product-card .pc-name { font-size: 11.5px; } 
    .product-card .pc-meta { font-size: 10.5px; gap: 4px 8px; } 
    .shop-cart { background: #fff; } 
    .cart-footer { padding-bottom: 20px; } 
    .checkout-form input, .checkout-form select { font-size: 16px; }

    .mobile-cat-dropdown { display: block !important; width: 100%; flex: 1 1 100%; order: -1; position: relative; } 
    .shop-toolbar { flex-wrap: wrap; } 
    body.shop-pane-products .shop-layout { display: flex !important; flex-direction: column !important; } 
    body.shop-pane-products .shop-main { display: flex !important; flex-direction: column !important; flex: 1 !important; min-height: 0 !important; width: 100% !important; } 
    body.shop-pane-products .shop-cart { display: none !important; } 
    body.shop-pane-cart .shop-main, body.shop-pane-cart .shop-sidebar { display: none !important; } 
    body.shop-pane-cart .shop-cart { display: flex !important; flex-direction: column !important; width: 100% !important; }

    .filter-chips { display: flex; } .shop-filter-row { width: 100%; }

    .shop-toolbar { padding: 10px 12px 0 !important; position: sticky; top: 0; z-index: 30; background: #fff; } 
    .shop-search { margin-bottom: 10px !important; } 
    .shop-search input { font-size: 16px !important; } 
    .shop-category-tabs { display: flex !important; padding-bottom: 10px; } 
    .mobile-cat-dropdown { display: none !important; }
}

@media (max-width: 480px) { 
    .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 8px; } 
    .product-card .pc-name { font-size: 11px; } 
    .product-card .pc-price { font-size: 12px; }
    .product-card .pc-meta { font-size: 10px; }
}



/* ===== Compact shop chrome (header + slim footer) ===== */
body.shop-page-body,
body {
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.shop-header {
  background: #0f172a !important;
  color: #f8fafc !important;
  border-bottom: none !important;
  position: relative !important;
  top: auto !important;
  padding: 10px 16px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  flex-shrink: 0 !important;
  z-index: 50 !important;
}
.shop-header-left {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  min-width: 0 !important;
}
.shop-brand-logo {
  width: 36px; height: 36px; border-radius: 8px; object-fit: contain;
  background: #020617; padding: 2px; flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.12);
}
.shop-header-titles { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.shop-header h1 {
  margin: 0 !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  color: #fff !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.shop-header-sub { font-size: 11px; color: #94a3b8; font-weight: 500; }
.shop-header-right {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  flex-shrink: 0 !important;
  font-size: 13px !important;
}
.shop-header-phone {
  color: #e2e8f0 !important;
  text-decoration: none !important;
  font-weight: 600 !important;
}
.shop-header-account {
  color: #93c5fd !important;
  text-decoration: none !important;
  font-weight: 600 !important;
  padding: 6px 12px !important;
  border: 1px solid rgba(147,197,253,0.35) !important;
  border-radius: 8px !important;
  background: rgba(37,99,235,0.15) !important;
}
.shop-layout {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow: hidden !important;
}
.shop-footer-slim {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 8px 16px;
  background: #020617;
  color: #94a3b8;
  font-size: 12px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.shop-footer-slim a { color: #93c5fd; text-decoration: none; }
.checkout-hint { margin: 0 0 10px; font-size: 12px; color: #64748b; font-weight: 500; }
@media (max-width: 900px) {
  .shop-header-phone { display: none !important; }
}

.shop-user-name { color: #e2e8f0; font-weight: 600; font-size: 13px; max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shop-header-account {
  color: #93c5fd; text-decoration: none; font-weight: 600; font-size: 13px;
  padding: 6px 12px; border: 1px solid rgba(147,197,253,0.35); border-radius: 8px;
  background: rgba(37,99,235,0.15); cursor: pointer; font-family: inherit;
}
.shop-header-account:hover { background: rgba(37,99,235,0.28); color: #fff; }
#shopLoginModal .modal-content { max-width: 440px; max-height: 90vh; }
#shopLoginModal .modal-body { overflow-y: auto; max-height: min(70vh, 520px); }
#shopLoginModal .form-group { margin-bottom: 12px; }
#shopLoginModal label { display: block; font-size: 12px; font-weight: 600; margin-bottom: 4px; color: #475569; }
#shopLoginModal input, #shopLoginModal textarea {
  width: 100%; padding: 10px 12px; border: 1.5px solid #e2e8f0; border-radius: 8px;
  font-size: 14px; font-family: inherit; box-sizing: border-box;
}
#shopLoginModal textarea { min-height: 72px; resize: vertical; }
#shopLoginModal .error-message { background: #fef2f2; color: #dc2626; padding: 8px 12px; border-radius: 8px; font-size: 13px; margin-bottom: 10px; }
#shopLoginModal .auth-tabs { display: flex; gap: 0; margin-bottom: 16px; border-bottom: 1px solid #e2e8f0; }
#shopLoginModal .auth-tab {
  flex: 1; padding: 10px; border: none; background: transparent; cursor: pointer;
  font-family: inherit; font-size: 14px; font-weight: 600; color: #64748b;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
#shopLoginModal .auth-tab.active { color: #2563eb; border-bottom-color: #2563eb; }
#shopLoginModal .auth-pane { display: none; }
#shopLoginModal .auth-pane.active { display: block; }
#shopLoginModal .auth-hint { font-size: 12.5px; color: #64748b; margin-bottom: 14px; line-height: 1.4; }
#shopLoginModal .grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 480px) { #shopLoginModal .grid-2 { grid-template-columns: 1fr; } }
