/* ══════════════════════════════════════════════
   DISTRIBUTOR HUB — SHARED BASE
══════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; }
:root {
  --dh-primary: #1a56db;
  --dh-primary-dark: #1145b0;
  --dh-primary-light: #e8f0fe;
  --dh-success: #0f9e6e;
  --dh-success-bg: #e6f7f1;
  --dh-warning: #d97706;
  --dh-warning-bg: #fef3c7;
  --dh-danger: #dc2626;
  --dh-danger-bg: #fee2e2;
  --dh-gray-50: #f9fafb;
  --dh-gray-100: #f3f4f6;
  --dh-gray-200: #e5e7eb;
  --dh-gray-300: #d1d5db;
  --dh-gray-400: #9ca3af;
  --dh-gray-500: #6b7280;
  --dh-gray-600: #4b5563;
  --dh-gray-700: #374151;
  --dh-gray-800: #1f2937;
  --dh-gray-900: #111827;
  --dh-radius: 10px;
  --dh-radius-lg: 14px;
  --dh-radius-xl: 20px;
  --dh-shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --dh-shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --dh-shadow-lg: 0 10px 30px rgba(0,0,0,0.12);
  --dh-font: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ══════════════════════════════════════════════
   ADMIN DASHBOARD
══════════════════════════════════════════════ */
.dh-admin-wrap { font-family: var(--dh-font); color: var(--dh-gray-800); min-height: 100vh; background: var(--dh-gray-50); }

/* Login */
.dh-login-screen { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #f0f4ff 0%, #ffffff 100%); padding: 2rem; }
.dh-login-card { background: white; border-radius: var(--dh-radius-xl); padding: 2.5rem; max-width: 420px; width: 100%; box-shadow: var(--dh-shadow-lg); border: 1px solid var(--dh-gray-200); }
.dh-login-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 1.5rem; font-size: 1.2rem; font-weight: 700; color: var(--dh-primary); }
.dh-login-card h2 { font-size: 1.5rem; font-weight: 700; margin: 0 0 0.5rem; color: var(--dh-gray-900); }
.dh-login-sub { color: var(--dh-gray-500); margin: 0 0 1.5rem; font-size: 0.9rem; }
.dh-form-group { margin-bottom: 1rem; }
.dh-form-group label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--dh-gray-700); margin-bottom: 0.4rem; }
.dh-form-group input, .dh-form-group textarea { width: 100%; padding: 0.6rem 0.9rem; border: 1px solid var(--dh-gray-300); border-radius: var(--dh-radius); font-size: 0.95rem; outline: none; transition: border 0.2s; }
.dh-form-group input:focus, .dh-form-group textarea:focus { border-color: var(--dh-primary); box-shadow: 0 0 0 3px rgba(26,86,219,0.1); }
.dh-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.dh-checkbox-group { display: flex; align-items: center; gap: 8px; }
.dh-checkbox-group input { width: auto; }
.dh-checkbox-group label { margin: 0; font-weight: 400; }

/* Buttons */
.dh-btn-primary { background: var(--dh-primary); color: white; border: none; padding: 0.65rem 1.25rem; border-radius: var(--dh-radius); font-size: 0.9rem; font-weight: 600; cursor: pointer; transition: all 0.2s; }
.dh-btn-primary:hover { background: var(--dh-primary-dark); transform: translateY(-1px); }
.dh-btn-outline { background: white; color: var(--dh-primary); border: 1px solid var(--dh-primary); padding: 0.65rem 1.25rem; border-radius: var(--dh-radius); font-size: 0.9rem; font-weight: 600; cursor: pointer; transition: all 0.2s; }
.dh-btn-outline:hover { background: var(--dh-primary-light); }
.dh-btn-sm { padding: 0.35rem 0.75rem; font-size: 0.8rem; }
.dh-btn-danger { background: var(--dh-danger); color: white; border: none; padding: 0.35rem 0.75rem; border-radius: var(--dh-radius); font-size: 0.8rem; cursor: pointer; }
.dh-error { color: var(--dh-danger); font-size: 0.85rem; margin-top: 0.5rem; }
.dh-success { color: var(--dh-success); font-size: 0.85rem; margin-top: 0.5rem; }

/* Layout */
#dh-admin-main { display: flex; min-height: 100vh; }

/* Sidebar */
.dh-sidebar { width: 230px; background: white; border-right: 1px solid var(--dh-gray-200); display: flex; flex-direction: column; padding: 1.25rem 0; position: sticky; top: 0; height: 100vh; flex-shrink: 0; }
.dh-sidebar-brand { display: flex; align-items: center; gap: 10px; padding: 0 1.25rem 1.5rem; font-size: 1rem; font-weight: 700; color: var(--dh-primary); border-bottom: 1px solid var(--dh-gray-100); margin-bottom: 0.75rem; }
.dh-nav { flex: 1; padding: 0 0.75rem; }
.dh-nav-item { display: flex; align-items: center; gap: 10px; padding: 0.65rem 0.75rem; border-radius: var(--dh-radius); color: var(--dh-gray-600); text-decoration: none; font-size: 0.9rem; font-weight: 500; transition: all 0.15s; margin-bottom: 2px; cursor: pointer; }
.dh-nav-item svg { width: 18px; height: 18px; flex-shrink: 0; }
.dh-nav-item:hover { background: var(--dh-gray-100); color: var(--dh-gray-800); }
.dh-nav-item.active { background: var(--dh-primary-light); color: var(--dh-primary); font-weight: 600; }
.dh-badge { background: var(--dh-danger); color: white; font-size: 0.7rem; border-radius: 20px; padding: 1px 7px; margin-left: auto; font-weight: 700; }
.dh-logout-btn { margin: 0.75rem; padding: 0.6rem 0.75rem; border: 1px solid var(--dh-gray-200); background: white; border-radius: var(--dh-radius); font-size: 0.85rem; color: var(--dh-gray-500); cursor: pointer; display: flex; align-items: center; gap: 8px; transition: all 0.2s; }
.dh-logout-btn:hover { background: var(--dh-danger-bg); color: var(--dh-danger); border-color: var(--dh-danger); }

/* Content */
.dh-content { flex: 1; padding: 1.75rem; overflow-y: auto; min-width: 0; }
.dh-page-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; flex-wrap: wrap; gap: 0.75rem; }
.dh-page-header h1 { font-size: 1.35rem; font-weight: 700; color: var(--dh-gray-900); margin: 0; }
.dh-date { font-size: 0.85rem; color: var(--dh-gray-500); }
.dh-header-actions { display: flex; gap: 8px; }
.dh-filters { display: flex; gap: 8px; }

/* Stat Cards */
.dh-stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.dh-stat-card { background: white; border-radius: var(--dh-radius-lg); padding: 1.25rem; border: 1px solid var(--dh-gray-200); display: flex; align-items: center; gap: 1rem; box-shadow: var(--dh-shadow); }
.dh-stat-icon { width: 48px; height: 48px; border-radius: var(--dh-radius); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.dh-stat-icon svg { width: 22px; height: 22px; }
.dh-stat-icon.blue { background: #dbeafe; color: var(--dh-primary); }
.dh-stat-icon.orange { background: #fef3c7; color: var(--dh-warning); }
.dh-stat-icon.red { background: var(--dh-danger-bg); color: var(--dh-danger); }
.dh-stat-icon.green { background: var(--dh-success-bg); color: var(--dh-success); }
.dh-stat-label { font-size: 0.8rem; color: var(--dh-gray-500); margin-bottom: 0.2rem; }
.dh-stat-value { font-size: 1.5rem; font-weight: 700; color: var(--dh-gray-900); }

/* Cards & Tables */
.dh-card { background: white; border-radius: var(--dh-radius-lg); border: 1px solid var(--dh-gray-200); box-shadow: var(--dh-shadow); margin-bottom: 1.5rem; overflow: hidden; }
.dh-card-header { padding: 1rem 1.25rem; border-bottom: 1px solid var(--dh-gray-100); }
.dh-card-header h3 { margin: 0; font-size: 1rem; font-weight: 600; color: var(--dh-gray-800); }
.dh-table-wrap { overflow-x: auto; }
.dh-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.dh-table thead { background: var(--dh-gray-50); }
.dh-table th { padding: 0.75rem 1rem; text-align: left; font-size: 0.78rem; font-weight: 600; color: var(--dh-gray-500); text-transform: uppercase; letter-spacing: 0.04em; border-bottom: 1px solid var(--dh-gray-200); white-space: nowrap; }
.dh-table td { padding: 0.85rem 1rem; border-bottom: 1px solid var(--dh-gray-100); vertical-align: middle; }
.dh-table tr:last-child td { border-bottom: none; }
.dh-table tr:hover td { background: var(--dh-gray-50); }

/* Status Badges */
.dh-status { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 20px; font-size: 0.75rem; font-weight: 600; white-space: nowrap; }
.dh-status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: 0.6; }
.dh-status.pending { background: var(--dh-warning-bg); color: var(--dh-warning); }
.dh-status.accepted { background: #dbeafe; color: var(--dh-primary); }
.dh-status.ready_to_dispatch { background: #ede9fe; color: #7c3aed; }
.dh-status.delivered { background: var(--dh-success-bg); color: var(--dh-success); }
.dh-status.cancelled { background: var(--dh-gray-100); color: var(--dh-gray-500); }
.dh-status.paid { background: var(--dh-success-bg); color: var(--dh-success); }
.dh-status.unpaid { background: var(--dh-danger-bg); color: var(--dh-danger); }
.dh-status.partial { background: var(--dh-warning-bg); color: var(--dh-warning); }

/* Select */
.dh-select { border: 1px solid var(--dh-gray-300); border-radius: var(--dh-radius); padding: 0.5rem 0.75rem; font-size: 0.875rem; outline: none; background: white; cursor: pointer; }
.dh-select:focus { border-color: var(--dh-primary); box-shadow: 0 0 0 3px rgba(26,86,219,0.1); }

/* Inner tabs */
.dh-tabs-inner { display: flex; gap: 4px; margin-bottom: 1rem; background: var(--dh-gray-100); padding: 4px; border-radius: var(--dh-radius); width: fit-content; }
.dh-inner-tab { padding: 0.5rem 1.25rem; border: none; background: none; border-radius: 7px; font-size: 0.875rem; font-weight: 500; cursor: pointer; color: var(--dh-gray-600); transition: all 0.2s; }
.dh-inner-tab.active { background: white; color: var(--dh-primary); box-shadow: var(--dh-shadow); }

/* Product Grid (admin) */
.dh-product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
.dh-product-card-admin { background: white; border: 1px solid var(--dh-gray-200); border-radius: var(--dh-radius-lg); overflow: hidden; box-shadow: var(--dh-shadow); }
.dh-product-card-admin img, .dh-product-card-admin .dh-img-placeholder { width: 100%; height: 140px; object-fit: cover; display: block; }
.dh-img-placeholder { background: var(--dh-gray-100); display: flex; align-items: center; justify-content: center; font-size: 2.5rem; }
.dh-product-card-admin .dh-pc-body { padding: 0.85rem; }
.dh-product-card-admin .dh-pc-name { font-weight: 600; font-size: 0.9rem; color: var(--dh-gray-900); margin-bottom: 2px; }
.dh-product-card-admin .dh-pc-cat { font-size: 0.78rem; color: var(--dh-gray-500); margin-bottom: 6px; }
.dh-product-card-admin .dh-pc-price { font-size: 1rem; font-weight: 700; color: var(--dh-primary); }
.dh-product-card-admin .dh-pc-actions { display: flex; gap: 6px; margin-top: 8px; }
.dh-top-badge { background: #fef3c7; color: #92400e; font-size: 0.7rem; padding: 2px 7px; border-radius: 20px; font-weight: 600; margin-top: 4px; display: inline-block; }

/* Modals */
.dh-modal { position: fixed; inset: 0; background: rgba(0,0,0,0.5); display: flex; align-items: center; justify-content: center; z-index: 9999; padding: 1rem; }
.dh-modal-box { background: white; border-radius: var(--dh-radius-xl); max-width: 640px; width: 100%; max-height: 90vh; overflow-y: auto; }
.dh-modal-header { display: flex; align-items: center; justify-content: space-between; padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--dh-gray-200); }
.dh-modal-header h3 { margin: 0; font-size: 1.1rem; font-weight: 700; }
.dh-modal-close { border: none; background: none; font-size: 1.5rem; cursor: pointer; color: var(--dh-gray-500); line-height: 1; padding: 0 0.25rem; }
.dh-modal > .dh-modal-box > div:not(.dh-modal-header):not(.dh-modal-footer) { padding: 1.25rem 1.5rem; }
.dh-modal-footer { padding: 1rem 1.5rem; border-top: 1px solid var(--dh-gray-100); display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.dh-modal-footer label { font-size: 0.85rem; font-weight: 600; color: var(--dh-gray-700); }

/* Order items list in modal */
.dh-order-items-list { margin: 0.5rem 0; }
.dh-order-item-row { display: flex; justify-content: space-between; padding: 0.5rem 0; border-bottom: 1px solid var(--dh-gray-100); font-size: 0.875rem; }
.dh-order-item-row:last-child { border: none; }
.dh-order-total-row { display: flex; justify-content: space-between; padding: 0.75rem 0 0; font-weight: 700; font-size: 1rem; }

/* ══════════════════════════════════════════════
   SHOP OWNER PORTAL
══════════════════════════════════════════════ */
.dh-shop-wrap { font-family: var(--dh-font); color: var(--dh-gray-800); min-height: 100vh; background: var(--dh-gray-50); max-width: 540px; margin: 0 auto; position: relative; }

/* Shop Login */
.dh-shop-login { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 1.5rem; background: linear-gradient(160deg, #e8f0fe 0%, #ffffff 60%); }
.dh-shop-login-inner { width: 100%; max-width: 420px; }
.dh-shop-brand { text-align: center; margin-bottom: 2rem; }
.dh-shop-brand h1 { font-size: 1.5rem; font-weight: 800; color: var(--dh-gray-900); margin: 0.75rem 0 0.25rem; }
.dh-shop-brand p { color: var(--dh-gray-500); margin: 0; font-size: 0.9rem; }
.dh-login-form-card { background: white; border-radius: var(--dh-radius-xl); padding: 2rem; box-shadow: var(--dh-shadow-lg); border: 1px solid var(--dh-gray-200); }
.dh-login-form-card h2 { font-size: 1.3rem; font-weight: 700; color: var(--dh-gray-900); margin: 0 0 0.25rem; }
.dh-login-form-card p { color: var(--dh-gray-500); font-size: 0.875rem; margin: 0 0 1.5rem; }
.dh-shop-form-group { margin-bottom: 1rem; }
.dh-shop-form-group label { display: block; font-size: 0.82rem; font-weight: 600; color: var(--dh-gray-700); margin-bottom: 0.35rem; }
.dh-shop-form-group input, .dh-shop-form-group textarea, .dh-shop-form-group select { width: 100%; padding: 0.65rem 0.9rem; border: 1px solid var(--dh-gray-300); border-radius: var(--dh-radius); font-size: 0.95rem; outline: none; transition: border 0.2s; font-family: var(--dh-font); }
.dh-shop-form-group input:focus, .dh-shop-form-group textarea:focus, .dh-shop-form-group select:focus { border-color: var(--dh-primary); box-shadow: 0 0 0 3px rgba(26,86,219,0.1); }
.dh-shop-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.dh-shop-form-grid .span-2 { grid-column: 1 / -1; }
.dh-shop-select { border: 1px solid var(--dh-gray-300); border-radius: var(--dh-radius); padding: 0.6rem 0.75rem; font-size: 0.9rem; width: 100%; background: white; }
.dh-shop-btn-primary { width: 100%; background: var(--dh-primary); color: white; border: none; padding: 0.85rem; border-radius: var(--dh-radius-lg); font-size: 1rem; font-weight: 700; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; transition: all 0.2s; }
.dh-shop-btn-primary:hover { background: var(--dh-primary-dark); transform: translateY(-1px); }
.dh-shop-error { color: var(--dh-danger); font-size: 0.85rem; margin-top: 0.5rem; display: block; }
.dh-delivery-notice { text-align: center; margin-top: 1.25rem; font-size: 0.82rem; color: var(--dh-gray-500); display: flex; align-items: center; justify-content: center; gap: 6px; }

/* Top Bar */
.dh-shop-topbar { background: white; border-bottom: 1px solid var(--dh-gray-200); padding: 0.75rem 1.25rem; display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 100; box-shadow: var(--dh-shadow); }
.dh-shop-topbar-brand { display: flex; align-items: center; gap: 10px; font-size: 1rem; font-weight: 700; color: var(--dh-primary); }
.dh-shop-topbar-right { display: flex; align-items: center; gap: 10px; }
.dh-shop-user-chip { display: flex; align-items: center; gap: 8px; background: var(--dh-gray-100); border-radius: 20px; padding: 4px 6px 4px 10px; }
.dh-shop-user-chip span { font-size: 0.8rem; font-weight: 600; color: var(--dh-gray-700); max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dh-chip-logout { background: white; border: 1px solid var(--dh-gray-300); border-radius: 20px; padding: 3px 10px; font-size: 0.75rem; cursor: pointer; color: var(--dh-gray-600); }
.dh-cart-fab { background: var(--dh-primary); color: white; border: none; width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; position: relative; flex-shrink: 0; }
.dh-cart-count { position: absolute; top: -4px; right: -4px; background: var(--dh-danger); color: white; font-size: 0.68rem; font-weight: 700; border-radius: 20px; padding: 1px 5px; min-width: 18px; text-align: center; }

/* Bottom Nav */
.dh-bottom-nav { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 540px; background: white; border-top: 1px solid var(--dh-gray-200); display: flex; z-index: 200; box-shadow: 0 -2px 10px rgba(0,0,0,0.06); }
.dh-bnav-item { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 0.6rem; border: none; background: none; font-size: 0.72rem; color: var(--dh-gray-500); cursor: pointer; font-family: var(--dh-font); font-weight: 500; transition: color 0.15s; }
.dh-bnav-item.active { color: var(--dh-primary); }

/* Shop Pages */
.dh-shop-page { padding: 0 0 90px; min-height: calc(100vh - 60px); }
.dh-shop-page-header { padding: 1.25rem 1.25rem 0.75rem; display: flex; align-items: center; justify-content: space-between; }
.dh-shop-page-header h2 { font-size: 1.2rem; font-weight: 700; margin: 0; color: var(--dh-gray-900); }

/* Banner */
.dh-shop-banner { background: linear-gradient(135deg, #1a56db 0%, #0e46c0 100%); color: white; padding: 1.5rem 1.25rem; display: flex; align-items: center; justify-content: space-between; overflow: hidden; }
.dh-banner-tag { background: rgba(255,255,255,0.2); font-size: 0.75rem; font-weight: 600; padding: 3px 10px; border-radius: 20px; width: fit-content; margin-bottom: 0.5rem; }
.dh-banner-content h2 { font-size: 1.3rem; font-weight: 800; margin: 0 0 0.25rem; }
.dh-banner-content p { font-size: 0.85rem; opacity: 0.85; margin: 0; }
.dh-banner-art { opacity: 0.6; flex-shrink: 0; }

/* Due notice */
.dh-due-notice { margin: 0.75rem 1.25rem; background: var(--dh-warning-bg); border: 1px solid #fde68a; border-radius: var(--dh-radius); padding: 0.65rem 0.9rem; font-size: 0.85rem; color: #92400e; display: flex; align-items: center; gap: 8px; font-weight: 500; }

/* Search */
.dh-shop-search-wrap { margin: 0.75rem 1.25rem; background: white; border: 1px solid var(--dh-gray-200); border-radius: var(--dh-radius-lg); padding: 0.6rem 0.9rem; display: flex; align-items: center; gap: 8px; box-shadow: var(--dh-shadow); }
.dh-shop-search-wrap svg { color: var(--dh-gray-400); flex-shrink: 0; }
.dh-shop-search-wrap input { border: none; outline: none; flex: 1; font-size: 0.9rem; background: none; color: var(--dh-gray-800); }

/* Section title */
.dh-section-title { padding: 1rem 1.25rem 0.5rem; font-size: 0.95rem; font-weight: 700; color: var(--dh-gray-800); }

/* Categories */
.dh-categories-scroll { display: flex; gap: 10px; overflow-x: auto; padding: 0 1.25rem 0.5rem; scrollbar-width: none; }
.dh-categories-scroll::-webkit-scrollbar { display: none; }
.dh-cat-chip { flex-shrink: 0; background: white; border: 1px solid var(--dh-gray-200); border-radius: var(--dh-radius-lg); padding: 0.5rem 0.9rem; font-size: 0.82rem; font-weight: 600; color: var(--dh-gray-600); cursor: pointer; display: flex; align-items: center; gap: 6px; transition: all 0.2s; white-space: nowrap; box-shadow: var(--dh-shadow); }
.dh-cat-chip.active, .dh-cat-chip:hover { background: var(--dh-primary); color: white; border-color: var(--dh-primary); }
.dh-cat-img { width: 24px; height: 24px; border-radius: 4px; object-fit: cover; }

/* Products Grid */
.dh-products-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; padding: 0 1.25rem; }
.dh-prod-card { background: white; border-radius: var(--dh-radius-lg); border: 1px solid var(--dh-gray-200); overflow: hidden; box-shadow: var(--dh-shadow); }
.dh-prod-card img, .dh-prod-no-img { width: 100%; height: 110px; object-fit: cover; display: block; }
.dh-prod-no-img { background: var(--dh-gray-100); display: flex; align-items: center; justify-content: center; font-size: 2rem; }
.dh-prod-body { padding: 0.75rem; }
.dh-prod-name { font-size: 0.85rem; font-weight: 600; color: var(--dh-gray-900); margin-bottom: 2px; }
.dh-prod-unit { font-size: 0.75rem; color: var(--dh-gray-500); margin-bottom: 6px; }
.dh-prod-bottom { display: flex; align-items: center; justify-content: space-between; }
.dh-prod-price { font-size: 0.95rem; font-weight: 700; color: var(--dh-primary); }
.dh-qty-ctrl { display: flex; align-items: center; gap: 6px; }
.dh-qty-btn { width: 28px; height: 28px; border: 1.5px solid var(--dh-primary); background: white; color: var(--dh-primary); border-radius: 50%; font-size: 1.1rem; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; font-weight: 700; padding: 0; transition: all 0.15s; }
.dh-qty-btn:hover { background: var(--dh-primary); color: white; }
.dh-qty-num { font-size: 0.9rem; font-weight: 700; color: var(--dh-gray-800); min-width: 18px; text-align: center; }
.dh-add-btn { background: var(--dh-primary); color: white; border: none; border-radius: var(--dh-radius); padding: 5px 12px; font-size: 0.8rem; font-weight: 600; cursor: pointer; }

/* Orders Page */
.dh-order-summary-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; padding: 0 1.25rem 0.75rem; }
.dh-order-sum-card { background: white; border-radius: var(--dh-radius-lg); padding: 1rem; border: 1px solid var(--dh-gray-200); box-shadow: var(--dh-shadow); }
.dh-order-sum-label { font-size: 0.75rem; color: var(--dh-gray-500); margin-bottom: 4px; font-weight: 500; }
.dh-order-sum-value { font-size: 1.25rem; font-weight: 800; color: var(--dh-gray-900); }
.dh-order-sum-value.danger { color: var(--dh-danger); }
.dh-order-sum-value.success { color: var(--dh-success); }

.dh-orders-list { padding: 0 1.25rem; }
.dh-order-card { background: white; border-radius: var(--dh-radius-lg); border: 1px solid var(--dh-gray-200); padding: 1rem; margin-bottom: 0.75rem; box-shadow: var(--dh-shadow); cursor: pointer; }
.dh-order-card:hover { border-color: var(--dh-primary); }
.dh-order-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.5rem; }
.dh-order-num { font-weight: 700; font-size: 0.9rem; color: var(--dh-gray-900); }
.dh-order-date { font-size: 0.75rem; color: var(--dh-gray-500); }
.dh-order-card-bottom { display: flex; align-items: center; justify-content: space-between; margin-top: 0.5rem; }
.dh-order-amount { font-size: 1rem; font-weight: 700; color: var(--dh-primary); }

/* Delivery badge */
.dh-delivery-badge { background: var(--dh-success-bg); color: var(--dh-success); font-size: 0.75rem; font-weight: 600; padding: 4px 10px; border-radius: 20px; display: flex; align-items: center; gap: 4px; }

/* Profile/Account */
.dh-profile-wrap { padding: 1.25rem; padding-bottom: 90px; }
.dh-profile-card { background: white; border-radius: var(--dh-radius-xl); padding: 1.75rem; border: 1px solid var(--dh-gray-200); box-shadow: var(--dh-shadow-md); text-align: center; }
.dh-profile-icon { font-size: 3rem; margin-bottom: 0.75rem; }
.dh-profile-card h2 { font-size: 1.2rem; font-weight: 700; margin: 0 0 0.25rem; color: var(--dh-gray-900); }
.dh-profile-card p { color: var(--dh-gray-500); font-size: 0.875rem; margin: 0 0 1.5rem; }

/* Cart Drawer */
.dh-cart-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 300; }
.dh-cart-drawer { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 540px; background: white; border-radius: var(--dh-radius-xl) var(--dh-radius-xl) 0 0; z-index: 400; max-height: 85vh; display: flex; flex-direction: column; box-shadow: var(--dh-shadow-lg); }
.dh-cart-header { padding: 1rem 1.25rem; border-bottom: 1px solid var(--dh-gray-200); display: flex; align-items: center; justify-content: space-between; flex-shrink: 0; }
.dh-cart-header h3 { margin: 0; font-size: 1.1rem; font-weight: 700; }
.dh-cart-header button { background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--dh-gray-500); line-height: 1; }
.dh-cart-items { flex: 1; overflow-y: auto; padding: 0.75rem 1.25rem; }
.dh-cart-item { display: flex; align-items: center; gap: 0.75rem; padding: 0.65rem 0; border-bottom: 1px solid var(--dh-gray-100); }
.dh-cart-item:last-child { border: none; }
.dh-cart-item-name { flex: 1; font-size: 0.875rem; font-weight: 600; color: var(--dh-gray-800); }
.dh-cart-item-price { font-size: 0.875rem; color: var(--dh-gray-600); width: 70px; text-align: right; }
.dh-cart-footer { padding: 1rem 1.25rem; border-top: 1px solid var(--dh-gray-200); flex-shrink: 0; }
.dh-cart-total { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.75rem; font-size: 1rem; font-weight: 600; }
.dh-cart-total strong { font-size: 1.25rem; color: var(--dh-primary); }
.dh-delivery-info-box { background: var(--dh-success-bg); border-radius: var(--dh-radius); padding: 0.6rem 0.9rem; font-size: 0.82rem; color: #065f46; display: flex; align-items: center; gap: 8px; margin-bottom: 0.75rem; }

/* Account info blocks */
.dh-account-info { background: white; border-radius: var(--dh-radius-lg); border: 1px solid var(--dh-gray-200); padding: 1.25rem; margin: 0 1.25rem 0.75rem; box-shadow: var(--dh-shadow); }
.dh-account-info h3 { font-size: 0.9rem; font-weight: 700; color: var(--dh-gray-700); margin: 0 0 0.75rem; text-transform: uppercase; letter-spacing: 0.04em; font-size: 0.75rem; }
.dh-info-row { display: flex; justify-content: space-between; align-items: flex-start; padding: 0.4rem 0; border-bottom: 1px solid var(--dh-gray-100); font-size: 0.875rem; }
.dh-info-row:last-child { border: none; }
.dh-info-label { color: var(--dh-gray-500); }
.dh-info-value { font-weight: 600; color: var(--dh-gray-800); text-align: right; max-width: 60%; }
.dh-payment-history-item { display: flex; justify-content: space-between; padding: 0.6rem 0; border-bottom: 1px solid var(--dh-gray-100); font-size: 0.85rem; }
.dh-payment-history-item:last-child { border: none; }

/* Helpers */
.dh-empty { text-align: center; padding: 2rem; color: var(--dh-gray-400); font-size: 0.9rem; }
.dh-text-success { color: var(--dh-success); }
.dh-text-danger { color: var(--dh-danger); }
.dh-text-muted { color: var(--dh-gray-500); font-size: 0.8rem; }

/* ── NEW v1.1 STYLES ─────────────────────────────── */

/* Upload Zone */
.dh-upload-zone { border: 2px dashed var(--dh-gray-300); border-radius: var(--dh-radius); padding: 1rem; text-align: center; cursor: pointer; transition: all 0.2s; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 6px; min-height: 80px; font-size: 0.82rem; color: var(--dh-gray-500); }
.dh-upload-zone:hover { border-color: var(--dh-primary); background: var(--dh-primary-light); }
.dh-upload-zone.uploading { border-color: var(--dh-primary); background: var(--dh-primary-light); }

/* Theme Presets */
.dh-theme-preset { width: 80px; height: 36px; border: 2px solid transparent; border-radius: 8px; cursor: pointer; font-size: 0.7rem; color: white; font-weight: 600; text-shadow: 0 1px 2px rgba(0,0,0,0.4); transition: all 0.2s; }
.dh-theme-preset:hover { transform: scale(1.05); border-color: var(--dh-gray-800); }

/* WhatsApp button */
.dh-btn-whatsapp { background: #25d366; color: white; border: none; padding: 0.65rem 1rem; border-radius: var(--dh-radius); font-size: 0.875rem; font-weight: 600; cursor: pointer; display: flex; align-items: center; gap: 6px; transition: all 0.2s; }
.dh-btn-whatsapp:hover { background: #1da851; }

/* Shop small button */
.dh-shop-btn-sm { background: white; border: 1.5px solid var(--dh-primary); color: var(--dh-primary); border-radius: var(--dh-radius); padding: 6px 14px; font-size: 0.82rem; font-weight: 600; cursor: pointer; transition: all 0.2s; }
.dh-shop-btn-sm:hover { background: var(--dh-primary); color: white; }

/* CSS variable overrides for dynamic theming */
.dh-shop-wrap .dh-shop-btn-primary { background: var(--dh-primary); }
.dh-shop-wrap .dh-shop-banner { background: linear-gradient(135deg, var(--dh-primary) 0%, var(--dh-primary-dark) 100%); }
.dh-shop-wrap .dh-cat-chip.active, .dh-shop-wrap .dh-cat-chip:hover { background: var(--dh-primary); border-color: var(--dh-primary); }
.dh-shop-wrap .dh-cart-fab { background: var(--dh-primary); }
.dh-shop-wrap .dh-bnav-item.active { color: var(--dh-primary); }
.dh-shop-wrap .dh-prod-price { color: var(--dh-primary); }
.dh-shop-wrap .dh-qty-btn { border-color: var(--dh-primary); color: var(--dh-primary); }
.dh-shop-wrap .dh-qty-btn:hover { background: var(--dh-primary); color: white; }
.dh-shop-wrap .dh-add-btn { background: var(--dh-primary); }
