@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

:root {
  /* ChatGPT-accurate Light Theme (Premium Tweaks) */
  --primary: #0D0D0D;
  --primary-hover: #2F2F2F;

  --bg: #F8F8FA; /* premium soft background */
  --panel: #FFFFFF; /* white floating panels */
  --sidebar-bg: #FFFFFF; /* clean white sidebar */

  --text-main: #0D0D0D;
  --text-muted: #6B6B6B;
  --text-light: #ABABAB;

  --border: #E9E9EB; /* softer borders */
  --border-hover: #D1D1D6;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.02), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.06);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}


* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Minimalist Scrollbar matching ChatGPT style */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 99px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.2);
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--text-main);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.006em;
  overflow: hidden;
}

body.modal-open {
  overflow: hidden !important;
}

/* App Layout Wrapper */
.app-wrapper {
  display: flex;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  position: relative;
}

/* Sidebar */
.app-sidebar {
  width: 260px;
  background-color: var(--sidebar-bg);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  z-index: 100;
  transition: width 0.22s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.22s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Mini collapsed: 56px icon rail — sidebar never disappears fully */
.app-wrapper.sidebar-collapsed .app-sidebar {
  width: 56px;
}

.sidebar-header {
  height: 52px;
  padding: 0 0.5rem 0 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-shrink: 0;
  overflow: hidden;
}

/* Site name in sidebar header */
.sidebar-site-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  letter-spacing: -0.01em;
  transition: opacity 0.15s ease, width 0.22s cubic-bezier(0.16,1,0.3,1);
}

/* Collapse button */
.sidebar-collapse-btn {
  width: 32px;
  height: 32px;
  border: none;
  background: none;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  transition: var(--transition);
  flex-shrink: 0;
}

.sidebar-collapse-btn:hover {
  background: rgba(0, 0, 0, 0.05);
  color: var(--text-muted);
}

/* Mobile close button */
.sidebar-close-btn {
  background: none;
  border: none;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
  display: none;
  padding: 0.25rem;
}

/* ── Icon + label pattern for nav items ── */
.menu-item-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  flex-shrink: 0;
  color: var(--text-muted);
}

.menu-item-label {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: opacity 0.15s ease;
}

/* ── MINI mode overrides (sidebar-collapsed) ── */
.app-wrapper.sidebar-collapsed .sidebar-site-name,
.app-wrapper.sidebar-collapsed .sidebar-section-title,
.app-wrapper.sidebar-collapsed .menu-item-label,
.app-wrapper.sidebar-collapsed .nav-cat-name,
.app-wrapper.sidebar-collapsed .nav-cat-count {
  display: none !important;
}

.app-wrapper.sidebar-collapsed .sidebar-header {
  justify-content: center;
  padding: 0;
}

.app-wrapper.sidebar-collapsed .sidebar-nav-container {
  padding: 0.5rem 0.25rem;
}

/* ── MINI mode: uniform icon size for all items ── */
.app-wrapper.sidebar-collapsed .sidebar-menu-item,
.app-wrapper.sidebar-collapsed .category-nav-item a {
  justify-content: center;
  padding: 0 !important;
  width: 36px;
  height: 36px;
  margin: 4px auto;
  border-radius: 8px;
  gap: 0 !important;
}

/* Category mini-dot icon for collapsed/mini sidebar */
.cat-mini-dot {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: rgba(0,0,0,0.06);
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 700;
  color: var(--text-main) !important;
  text-decoration: none !important;
  flex-shrink: 0;
  line-height: 1;
  letter-spacing: 0;
}

.app-wrapper.sidebar-collapsed .cat-mini-dot {
  display: flex !important;
}


.sidebar-nav-container {
  flex: 1;
  overflow-y: auto;
  padding: 0.5rem 0.5rem 1rem;
}

.sidebar-section-title {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.75rem 0.75rem 0.35rem;
}

.sidebar-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin-bottom: 0.5rem;
}

.sidebar-menu-item, .category-nav-item a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.75rem;
  border-radius: 6px;
  color: var(--text-main);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 400;
  transition: var(--transition);
}

.sidebar-menu-item:hover, .category-nav-item a:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.sidebar-menu-item.active, .category-nav-item.active a {
  background-color: rgba(0, 0, 0, 0.06);
  font-weight: 500;
}

.nav-cat-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  text-align: left;
}

.nav-cat-count {
  font-size: 11px;
  color: var(--text-light);
  font-weight: 400;
  margin-left: 0.5rem;
}

.nav-loading {
  font-size: 13px;
  color: var(--text-light);
  padding: 0.4rem 0.75rem;
  list-style: none;
}

.sidebar-footer {
  padding: 1rem 0.75rem;
  border-top: 1px solid var(--border);
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.25rem;
}

.user-profile .avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--text-main);
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.85rem;
}

.user-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.username {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.2;
}

.role {
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* App Main Content Area */
.app-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  background-color: var(--bg);
  height: 100vh;
  overflow: hidden;
  position: relative;
}

.app-header {
  height: 52px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0 1rem;
  flex-shrink: 0;
  background: var(--bg);
}

/* Hamburger: hidden on desktop, shown on mobile via media query */
.menu-toggle-btn {
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  transition: var(--transition);
  flex-shrink: 0;
}

.menu-toggle-btn:hover {
  background: rgba(0, 0, 0, 0.05);
  color: var(--text-main);
}

.header-title {
  display: none;
}


.app-content-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 2rem 0;
  position: relative;
}

/* Header has no title text anymore — just expand/hamburger buttons */
.header-title {
  display: none;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Hero section */
.hero-section {
  max-width: 600px;
  margin: 3.5rem auto 2.5rem auto;
  text-align: center;
}

.hero-title {
  font-size: 1.9rem;
  font-weight: 600;
  color: var(--text-main);
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
  line-height: 1.25;
}

.hero-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.search-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0 0.75rem;
  background: var(--bg);
  transition: border-color 0.15s ease;
  max-width: 560px;
  margin: 0 auto;
  height: 44px;
}

.search-wrapper:focus-within {
  border-color: var(--border-hover);
}

.search-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  margin-right: 0.75rem;
}

.search-input {
  flex: 1;
  border: none;
  outline: none;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--text-main);
  background: transparent;
  padding: 0.6rem 0;
}

/* Catalog */
.catalog-wrapper {
  margin-top: 1rem;
}

.category-section {
  margin-bottom: 2.5rem;
  scroll-margin-top: 1.5rem;
}

.category-header {
  padding-bottom: 0.6rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.category-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-main);
  letter-spacing: -0.01em;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  background: transparent;
  border: none;
  border-radius: 0;
  overflow: visible;
}

.product-card {
  display: flex;
  background: var(--panel);
  padding: 1.25rem;
  gap: 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02), 0 2px 8px rgba(0, 0, 0, 0.01);
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.22s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04), 0 2px 8px rgba(0, 0, 0, 0.02);
  border-color: var(--border-hover);
}


.product-media-wrapper {
  width: 120px;
  height: 120px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  flex-shrink: 0;
  background: var(--sidebar-bg);
}

.product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
  transition: opacity 0.2s;
}

.product-img:hover {
  opacity: 0.9;
}

.product-content-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
}

.product-details-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.product-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
}

.product-title {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-main);
  line-height: 1.4;
  text-decoration: none;
  cursor: pointer;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-title:hover {
  color: var(--text-main);
  opacity: 0.75;
}

.product-meta {
  font-size: 12px;
  color: var(--text-light);
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-top: 0.2rem;
}

.product-sku {
  font-family: monospace;
}

.product-stock {
  font-weight: 400;
}

.product-stock.in-stock {
  color: var(--text-muted);
}

.product-stock.out-of-stock {
  color: var(--text-light);
}

.product-price-and-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.product-price-box {
  display: flex;
  flex-direction: column;
}

.product-price {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-main);
  letter-spacing: -0.01em;
}

/* Primary/Secondary Buttons - ChatGPT Minimalist Style */
.btn {
  font-family: var(--font-sans);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  padding: 0.55rem 1.25rem;
  font-size: 0.88rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary {
  background-color: var(--primary);
  color: var(--bg);
  border-color: var(--primary);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  border-color: var(--primary-hover);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-muted);
  border-color: var(--border);
}

.btn-secondary:hover {
  background-color: rgba(0, 0, 0, 0.03);
  color: var(--text-main);
}

.add-to-cart-btn {
  width: auto !important;
}

/* ── Product card in-cart quantity control (matching cart style) ── */
.product-qty-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

/* Floating Cart Panel - Pill-shaped Chat Drawer trigger */
.cart-floating-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 90;
  background-color: var(--primary);
  border: 1px solid var(--primary);
  border-radius: 28px;
  height: 56px;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  color: var(--bg);
  transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1), background-color 0.15s;
}

.cart-floating-btn:hover {
  background-color: var(--primary-hover);
  border-color: var(--primary-hover);
  transform: scale(1.02);
}

.cart-floating-btn.hidden {
  display: none;
}

.cart-btn-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.cart-btn-content svg {
  stroke: var(--bg);
}

.cart-label {
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.cart-count {
  background: var(--bg);
  color: var(--primary);
  border-radius: 12px;
  padding: 0.15rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  margin-left: 0.5rem;
}

/* Modals Overlay (Backdrop Blur) */
.modal-overlay {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active {
  display: flex;
  opacity: 1;
}

/* Card Popup Modals */
.modal-content {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.12);
  max-width: 460px;
  width: 90%;
  transform: scale(0.95);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .modal-content {
  transform: scale(1);
}

.modal-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.75rem;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.25rem;
  transition: var(--transition);
}

.modal-close:hover {
  color: var(--text-main);
}

.modal-body {
  padding: 1.5rem;
}

.modal-footer {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 0.75rem;
  width: 100%;
}

.modal-footer .btn {
  flex: 1;
  height: 40px;
}

/* Success Card */
.success-card {
  padding: 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.success-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-main);
}

.success-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Form Styling - ChatGPT style input fields */
.form-group {
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-main);
}

.form-control {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.85rem;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--text-main);
  outline: none;
  background: var(--bg);
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--border-hover);
  box-shadow: 0 0 0 1px var(--border-hover);
}

/* Cart Slide-out Drawer Panel */
.cart-drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  right: 0;
  width: 440px;
  max-width: 100vw;
  border-radius: 0;
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transform: translateX(100%) !important;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.modal-overlay.active .cart-drawer {
  transform: translateX(0) !important;
}

.cart-drawer .modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
}

/* Cart Item Rows styling */
.cart-item-row {
  display: flex;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  gap: 1rem;
}

.cart-item-row:first-child {
  padding-top: 0;
}

.cart-item-img {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 1px solid var(--border);
  background: var(--sidebar-bg);
}

.cart-item-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.cart-item-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-item-sku {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: monospace;
}

.cart-item-price {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
  margin-top: 0.25rem;
}

.cart-item-qty-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
  flex-shrink: 0;
}

.qty-btn {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
  transition: var(--transition);
}

.qty-btn:hover {
  background-color: var(--sidebar-bg);
  border-color: var(--border-hover);
}

/* Quantity input — editable number field in cart */
.qty-input {
  width: 44px;
  height: 26px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg);
  text-align: center;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  outline: none;
  padding: 0 2px;
  transition: border-color 0.15s ease;
  /* hide spin arrows */
  -moz-appearance: textfield;
}

.qty-input::-webkit-inner-spin-button,
.qty-input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.qty-input:focus {
  border-color: var(--border-hover);
}

.cart-item-remove {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem;
  opacity: 0.7;
  transition: var(--transition);
}

.cart-item-remove:hover {
  color: #EF4444;
  opacity: 1;
}

/* Cart Summary block */
.cart-summary-box {
  background: var(--sidebar-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

.summary-label {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
}

.summary-value {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.015em;
}

/* Image Lightbox Styling (Monochrome modal) */
.lightbox-content {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  max-width: 90vw !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.lightbox-img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
}

.lightbox-title {
  color: #FFFFFF;
  margin-top: 1rem;
  font-size: 1.1rem;
  font-weight: 600;
  text-align: center;
}

/* Empty Catalog/Search State */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
  margin-top: 2rem;
}

.empty-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.empty-state h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.empty-state p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Contacts Page Layout */
.contacts-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 2.5rem;
}

.contacts-info {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-card {
  background: var(--sidebar-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  transition: var(--transition);
}

.contact-card:hover {
  border-color: var(--border-hover);
}

.contact-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
}

.contact-value {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.4;
}

.map-container {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 480px;
  box-shadow: var(--shadow-sm);
  background: var(--sidebar-bg);
}

.map-iframe {
  width: 100%;
  height: 100%;
  border: none;
  filter: grayscale(1);
  transition: filter 0.3s ease;
}

.map-iframe:hover {
  filter: grayscale(0);
}

/* Responsive Media Queries (Adaptive Stylesheet) */
@media (min-width: 769px) {
  /* Force scroll container to take full height minus header */
  .app-content-scroll {
    height: calc(100vh - 60px);
  }
}

@media (max-width: 1024px) {
  .contacts-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .map-container {
    height: 380px;
  }
}

@media (max-width: 768px) {
  /* By default (when sidebar is collapsed), sidebar is a 52px mini-rail */
  .app-sidebar {
    width: 52px;
    position: relative;
    flex-shrink: 0;
    transform: none !important;
  }

  /* When collapsed: hide texts and center icons */
  .app-wrapper.sidebar-collapsed .app-sidebar .sidebar-site-name,
  .app-wrapper.sidebar-collapsed .app-sidebar .sidebar-section-title,
  .app-wrapper.sidebar-collapsed .app-sidebar .menu-item-label,
  .app-wrapper.sidebar-collapsed .app-sidebar .nav-cat-name,
  .app-wrapper.sidebar-collapsed .app-sidebar .nav-cat-count,
  .app-wrapper.sidebar-collapsed .app-sidebar .cat-section-title {
    display: none !important;
  }

  .app-wrapper.sidebar-collapsed .app-sidebar .sidebar-header {
    justify-content: center;
    padding: 0;
  }

  .app-wrapper.sidebar-collapsed .app-sidebar .sidebar-menu-item,
  .app-wrapper.sidebar-collapsed .app-sidebar .category-nav-item a {
    justify-content: center;
    padding: 0 !important;
    width: 36px;
    height: 36px;
    margin: 4px auto;
    border-radius: 8px;
    gap: 0 !important;
  }

  .app-wrapper.sidebar-collapsed .app-sidebar .cat-mini-dot {
    display: flex !important;
  }

  /* When expanded (NOT collapsed), sidebar overlays the content */
  .app-wrapper:not(.sidebar-collapsed) .app-sidebar {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    width: 260px;
    z-index: 300;
    box-shadow: 4px 0 24px rgba(0,0,0,0.12);
  }

  /* When expanded: hide mini dots and show full names */
  .app-wrapper:not(.sidebar-collapsed) .app-sidebar .cat-mini-dot {
    display: none !important;
  }

  .app-wrapper:not(.sidebar-collapsed) .app-sidebar .sidebar-header {
    justify-content: space-between;
    padding: 0 0.5rem 0 0.85rem;
  }

  .app-wrapper:not(.sidebar-collapsed) .app-sidebar .sidebar-menu-item,
  .app-wrapper:not(.sidebar-collapsed) .app-sidebar .category-nav-item a {
    justify-content: flex-start;
    padding: 0.45rem 0.75rem !important;
    width: auto;
    margin: 0;
    gap: 0.5rem !important;
  }

  /* Dim overlay behind open sidebar */
  .app-wrapper:not(.sidebar-collapsed)::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.35);
    z-index: 299;
  }

  /* Expand/collapse button inside sidebar header is ALWAYS visible on mobile */
  .sidebar-collapse-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
  }

  .sidebar-close-btn {
    display: none !important;
  }

  .app-header {
    padding: 0 0.75rem;
  }

  .app-content-scroll {
    padding: 1rem 0;
  }


  
  .hero-section {
    margin: 2rem auto;
  }
  
  .hero-title {
    font-size: 1.75rem;
  }
  
  .product-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  
  /* Bottom Sheet Drawer for mobile cart modal */
  .modal-overlay {
    align-items: flex-end !important;
    justify-content: center !important;
  }

  .cart-drawer {
    width: 100% !important;
    height: auto !important;
    max-height: 85vh !important;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0 !important;
    transform: translateY(100%) !important;
    border-left: none !important;
    border-top: 1px solid var(--border) !important;
  }

  .modal-overlay.active .cart-drawer {
    transform: translateY(0) !important;
  }

  .cart-drawer .modal-body {
    max-height: calc(85vh - 180px) !important;
    padding-bottom: 3rem !important;
  }

  .cart-drawer .modal-footer {
    padding: 1rem 1.5rem !important;
  }

  .cart-floating-btn {
    bottom: 1.5rem !important;
    right: 1.5rem !important;
    width: 56px !important;
    height: 56px !important;
    border-radius: 56px !important;
    padding: 0 !important;
    justify-content: center !important;
  }
  
  .cart-btn-content {
    gap: 0 !important;
  }
  
  .cart-label {
    display: none !important;
  }
  
  .cart-count {
    margin-left: 0 !important;
    position: absolute !important;
    top: -2px !important;
    right: -2px !important;
    box-shadow: var(--shadow-sm) !important;
  }
}

/* Admin Dashboard Page Layout */
.admin-header {
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}

.admin-stat-card {
  justify-content: space-between;
  min-height: 150px;
}

.stat-number {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 0.5rem 0;
  letter-spacing: -0.03em;
}

.upload-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius-md);
  padding: 3.5rem 2rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  background: var(--bg);
}

.upload-zone:hover, .upload-zone.dragover {
  border-color: var(--border-hover);
  background-color: var(--sidebar-bg);
}

.upload-zone input[type="file"] {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.admin-header-tabs {
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
  display: flex;
  gap: 1rem;
  padding: 0.5rem 0;
}

@media (max-width: 1024px) {
  .admin-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}
