/* --- file not found --- */































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































/* ==========================================================================
   MYSHOPYHUB — PREMIUM MULTI-VENDOR MARKETPLACE STYLESHEET
   ========================================================================== */

/* --- CSS Variables & Design System --- */
/* --- Color Palette - Default Light Modern (Restored Vibrant Orange) --- */
:root,
[data-theme="light"] {
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Outfit', 'Inter', sans-serif;

  --bg-primary: #f8fafc;
  --bg-surface: #ffffff;
  --bg-elevated: #f1f5f9;
  --bg-hover: #e2e8f0;
  
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --border-color: #e2e8f0;
  --border-subtle: #edf2f7;

  /* Restored Original Vibrant Orange */
  --primary-color: #f97316;
  --primary-hover: #ea580c;
  --primary-light: #fff7ed;
  --primary-contrast: #ffffff;

  --secondary-color: #0284c7;
  --secondary-light: #e0f2fe;

  --accent-color: #10b981;
  --accent-light: #ecfdf5;

  --danger-color: #ef4444;
  --danger-light: #fee2e2;
  --warning-color: #f59e0b;
  --warning-light: #fef3c7;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 9999px;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.04);

  --header-height: 68px;
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
}

/* --- Theme Variations --- */
[data-theme="dark"] {
  --bg-primary: #0b1120;
  --bg-surface: #1e293b;
  --bg-elevated: #334155;
  --bg-hover: #475569;
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #64748b;
  --border-color: #334155;
  --border-subtle: #1e293b;
  --primary-color: #f97316;
  --primary-hover: #ea580c;
  --primary-light: rgba(249, 115, 22, 0.15);
  --primary-contrast: #ffffff;
}

/* NEW THEME: Ruby Rose / Crimson (Replaces Daraz) */
[data-theme="ruby"] {
  --primary-color: #e11d48;
  --primary-hover: #be123c;
  --primary-light: #ffe4e6;
  --primary-contrast: #ffffff;
}

[data-theme="emerald"] {
  --primary-color: #059669;
  --primary-hover: #047857;
  --primary-light: #ecfdf5;
  --primary-contrast: #ffffff;
}

[data-theme="sapphire"] {
  --primary-color: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-light: #eff6ff;
  --primary-contrast: #ffffff;
}

.setting-item.flex-col-setting {
  flex-direction: column;
  align-items: stretch;
  gap: 0.6rem;
}

/* Chrome-like Desktop View Mode Simulation */
body.desktop-mode-active {
  min-width: 1200px !important;
  transform-origin: top left;
  zoom: 0.85;
}

/* --- Base & Reset --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  font-family: var(--font-primary);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.25;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color var(--transition-fast);
}
a:hover {
  text-decoration: underline;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: 0.95rem;
}

/* --- Utilities --- */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1rem;
}

.flex-1 { flex: 1; }
.flex-2 { flex: 2; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.py-4 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-5 { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); font-size: 0.9rem; }
.text-danger { color: var(--danger-color); }
.hidden { display: none !important; }
.mx-auto { margin-left: auto; margin-right: auto; }
.max-300 { max-width: 300px; }
.max-500 { max-width: 500px; }
.max-600 { max-width: 600px; }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: normal;
  text-align: center;
  line-height: 1.3;
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--primary-contrast);
}
.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background-color: var(--bg-elevated);
  color: var(--text-primary);
  border-color: var(--border-color);
}
.btn-secondary:hover {
  background-color: var(--bg-hover);
}

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

.btn-outline-light {
  background-color: rgba(255,255,255,0.15);
  border-color: #ffffff;
  color: #ffffff;
}
.btn-outline-light:hover {
  background-color: #ffffff;
  color: var(--text-primary);
}

.btn-warning {
  background-color: var(--warning-color);
  color: #ffffff;
}

.btn-sm {
  padding: 0.375rem 0.75rem;
  font-size: 0.85rem;
}
.btn-lg {
  padding: 0.85rem 1.5rem;
  font-size: 1.05rem;
}
.btn-block {
  width: 100%;
}

.icon-btn {
  background: transparent;
  border: none;
  color: var(--text-primary);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.15rem;
  transition: background-color var(--transition-fast);
}
.icon-btn:hover {
  background-color: var(--bg-elevated);
}

.link-btn {
  background: none;
  border: none;
  color: var(--primary-color);
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}
.link-btn:hover {
  text-decoration: underline;
}

/* --- Form Controls --- */
.form-group {
  margin-bottom: 1.1rem;
}
.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--text-primary);
}
.form-control, .form-control-sm {
  width: 100%;
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--border-color);
  background-color: var(--bg-surface);
  color: var(--text-primary);
  border-radius: var(--radius-md);
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.form-control-sm {
  padding: 0.35rem 0.6rem;
  font-size: 0.85rem;
}
.form-control:focus, .form-control-sm:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.form-row {
  display: flex;
  gap: 1rem;
  width: 100%;
}

.form-row .form-group {
  flex: 1 1 0;
  min-width: 0;
}

.form-row .form-group label {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 1.25rem;
}

@media (max-width: 640px) {
  .form-row {
    flex-direction: column;
    gap: 0;
  }
}

.password-wrapper {
  position: relative;
}
.password-wrapper input {
  padding-right: 2.75rem;
}
.btn-toggle-pw {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
}

.username-input-group {
  display: flex;
  align-items: center;
}
.username-input-group .input-prefix {
  background-color: var(--bg-elevated);
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--border-color);
  border-right: none;
  border-radius: var(--radius-md) 0 0 var(--radius-md);
  font-weight: 600;
  color: var(--text-secondary);
}
.username-input-group input {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

.validation-msg {
  font-size: 0.82rem;
  margin-top: 0.3rem;
  font-weight: 500;
}
.validation-msg.available { color: var(--accent-color); }
.validation-msg.unavailable { color: var(--danger-color); }

.chips-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.3rem;
}
.chip-btn {
  background: var(--primary-light);
  color: var(--primary-color);
  border: 1px dashed var(--primary-color);
  border-radius: var(--radius-pill);
  padding: 0.2rem 0.6rem;
  font-size: 0.8rem;
  cursor: pointer;
}

/* --- Cards & General Containers --- */
.card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
}
.badge-verified {
  background-color: var(--accent-light);
  color: var(--accent-color);
}

/* --- Header --- */
.main-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border-color);
  height: var(--header-height);
  box-shadow: var(--shadow-sm);
}
.header-container {
  max-width: 1360px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  gap: 1rem;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-primary);
  font-family: var(--font-heading);
  text-decoration: none;
}
.brand-logo .logo-icon {
  color: var(--primary-color);
  font-size: 1.5rem;
}
.brand-logo span span {
  color: var(--primary-color);
}

.header-center {
  flex: 1;
  max-width: 650px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.location-pill {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background-color: var(--bg-elevated);
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  border: 1px solid var(--border-color);
}
.location-pill i { color: var(--primary-color); }
.location-pill .pill-arrow { font-size: 0.7rem; color: var(--text-muted); }

.search-bar-wrapper {
  flex: 1;
  position: relative;
}
.search-bar-wrapper input {
  width: 100%;
  background-color: var(--bg-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-pill);
  padding: 0.55rem 1rem 0.55rem 2.4rem;
  outline: none;
  font-size: 0.9rem;
  color: var(--text-primary);
}
.search-bar-wrapper input:focus {
  background-color: var(--bg-surface);
  border-color: var(--primary-color);
}
.search-bar-wrapper .search-icon {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.cart-btn {
  position: relative;
}
.cart-btn .badge {
  position: absolute;
  top: 2px;
  right: 2px;
  background-color: var(--primary-color);
  color: #fff;
  font-size: 0.7rem;
  padding: 0.15rem 0.4rem;
}

.user-avatar-pill {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.6rem;
  border-radius: var(--radius-pill);
  background-color: var(--bg-elevated);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.85rem;
}
.user-avatar-pill .avatar {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-pill);
  background-color: var(--primary-color);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
}
#header-user-menu {
  position: relative;
}
.dropdown-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: 220px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 0.5rem 0;
  z-index: 1000;
}
.dropdown-menu a, .dropdown-menu button {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  padding: 0.6rem 1rem;
  font-size: 0.88rem;
  color: var(--text-primary);
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
}
.dropdown-menu a:hover, .dropdown-menu button:hover {
  background-color: var(--bg-elevated);
  text-decoration: none;
}
.dropdown-menu .logout-link {
  color: var(--danger-color);
}
.dropdown-menu hr {
  border: none;
  border-top: 1px solid var(--border-color);
  margin: 0.3rem 0;
}

@media (max-width: 900px) {
  .header-center .location-pill {
    display: none;
  }
}
@media (max-width: 640px) {
  .header-center {
    display: none;
  }
  #header-auth-buttons .btn-outline {
    display: none;
  }
}

/* --- Left Sidebar Drawer --- */
.sidebar {
  position: fixed;
  top: 0;
  left: -320px;
  width: 300px;
  height: 100%;
  background-color: var(--bg-surface);
  z-index: 1200;
  box-shadow: var(--shadow-xl);
  display: flex;
  flex-direction: column;
  transition: left var(--transition-normal);
}
.sidebar.open {
  left: 0;
}
.sidebar-header {
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.25rem;
  border-bottom: 1px solid var(--border-color);
}
.sidebar-content {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem;
}
.sidebar-section {
  margin-bottom: 1.5rem;
}
.sidebar-subtitle {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  margin-bottom: 0.6rem;
}
.sidebar-menu {
  list-style: none;
}
.sidebar-menu li a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-weight: 500;
  font-size: 0.92rem;
  transition: background-color var(--transition-fast);
}
.sidebar-menu li a:hover {
  background-color: var(--bg-elevated);
  text-decoration: none;
}
.sidebar-menu li a i {
  color: var(--primary-color);
  width: 20px;
  text-align: center;
}

.setting-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-subtle);
}
.setting-info {
  display: flex;
  flex-direction: column;
  font-size: 0.88rem;
  font-weight: 600;
}
.setting-info i { margin-right: 0.4rem; color: var(--primary-color); }
.setting-info small { font-size: 0.72rem; color: var(--text-muted); font-weight: normal; }

.sidebar-footer {
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--border-color);
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
}

/* Switch Toggle UI */
.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: var(--bg-elevated);
  border: 1px solid var(--border-color);
  transition: .3s;
}
.slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background-color: #fff;
  transition: .3s;
}
input:checked + .slider {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}
input:checked + .slider:before {
  transform: translateX(20px);
}
.slider.round { border-radius: 34px; }
.slider.round:before { border-radius: 50%; }

/* --- Right Slide Cart Drawer --- */
.cart-drawer {
  position: fixed;
  top: 0;
  right: -420px;
  width: 100%;
  max-width: 400px;
  height: 100%;
  background-color: var(--bg-surface);
  z-index: 1200;
  box-shadow: var(--shadow-xl);
  display: flex;
  flex-direction: column;
  transition: right var(--transition-normal);
}
.cart-drawer.open {
  right: 0;
}
.cart-header {
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.25rem;
  border-bottom: 1px solid var(--border-color);
}
.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.cart-item-row {
  display: flex;
  gap: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-subtle);
  align-items: center;
}
.cart-item-thumb {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  object-fit: cover;
  background-color: var(--bg-elevated);
}
.cart-item-info {
  flex: 1;
}
.cart-item-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.2rem;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cart-item-price {
  color: var(--primary-color);
  font-weight: 700;
  font-size: 0.88rem;
}
.cart-qty-ctrl {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.4rem;
}
.cart-qty-btn {
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  width: 24px;
  height: 24px;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.cart-item-qty {
  font-size: 0.88rem;
  font-weight: 600;
  width: 20px;
  text-align: center;
}
.cart-item-remove {
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.4rem;
  border: none;
  background: none;
}
.cart-item-remove:hover {
  color: var(--danger-color);
}
.cart-footer {
  padding: 1.25rem;
  border-top: 1px solid var(--border-color);
  background-color: var(--bg-surface);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.cart-summary-line {
  display: flex;
  justify-content: space-between;
  font-size: 1.1rem;
  font-weight: 700;
}
.delivery-notice {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* --- SPA View Manager --- */
.spa-view {
  display: none;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.spa-view.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* --- Marketplace Hero --- */
.marketplace-hero {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  color: #ffffff;
  padding: 3.5rem 1rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.marketplace-hero::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -20%;
  width: 140%;
  height: 200%;
  background: radial-gradient(circle, rgba(249,115,22,0.15) 0%, transparent 60%);
  pointer-events: none;
}
.hero-content {
  max-width: 780px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  background: rgba(249,115,22,0.2);
  border: 1px solid rgba(249,115,22,0.4);
  color: #fb923c;
  font-size: 0.82rem;
  font-weight: 700;
  border-radius: var(--radius-pill);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.hero-title {
  font-size: 2.5rem;
  color: #ffffff;
  margin-bottom: 1rem;
}
.hero-subtitle {
  color: #cbd5e1;
  font-size: 1.1rem;
  margin-bottom: 1.75rem;
}
.hero-cta-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
@media (max-width: 640px) {
  .hero-title { font-size: 1.85rem; }
  .hero-subtitle { font-size: 0.95rem; }
  .marketplace-hero { padding: 2.25rem 1rem; }
}

/* --- Category Strip --- */
.category-strip-container {
  max-width: 1240px;
  margin: 1.5rem auto 0;
  padding: 0 1rem;
}
.category-pills-slider {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding: 0.5rem 0 1rem;
  scrollbar-width: thin;
}
.category-pills-slider::-webkit-scrollbar {
  height: 4px;
}
.category-pills-slider::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 4px;
}
.category-chip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.1rem;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
}
.category-chip:hover, .category-chip.active {
  background-color: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color);
}
.category-chip:hover i, .category-chip.active i {
  color: #fff;
}
.category-chip i {
  color: var(--primary-color);
}

/* --- Section Blocks & Headings --- */
.section-block {
  max-width: 1240px;
  margin: 2rem auto;
  padding: 0 1rem;
}
.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}
.section-heading h2 {
  font-size: 1.5rem;
}
.section-subtext {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-top: 0.2rem;
}

/* --- Shops Grid --- */
.shops-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}
.shop-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.shop-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-color);
}
.shop-card-top {
  display: flex;
  gap: 0.85rem;
  align-items: center;
  margin-bottom: 0.75rem;
}
.shop-badge-avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background-color: var(--primary-light);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 700;
  flex-shrink: 0;
}
.shop-card-name {
  font-size: 1.05rem;
  font-weight: 700;
}
.shop-card-handle {
  font-size: 0.82rem;
  color: var(--primary-color);
  font-weight: 600;
}
.shop-card-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 0.85rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.shop-card-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-subtle);
}

/* --- Products Grid (2,2 Grid Mobile + Responsive Multi-Column Desktop) --- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 products per row on mobile */
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
}
@media (min-width: 992px) {
  .products-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
  }
}
@media (min-width: 1200px) {
  .products-grid {
    grid-template-columns: repeat(5, 1fr); /* Adaptive 5 items on large screen */
    gap: 1.25rem;
  }
}

/* Product Card Design */
.product-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  cursor: pointer;
  position: relative;
}
.product-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.product-img-box {
  width: 100%;
  padding-top: 100%; /* 1:1 Aspect ratio square */
  position: relative;
  background-color: var(--bg-elevated);
  overflow: hidden;
}
.product-img-box img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}
.product-card:hover .product-img-box img {
  transform: scale(1.05);
}
.product-info-box {
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.product-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.3;
}
.product-specs {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.product-price-row {
  margin-top: auto;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}
.product-price {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--primary-color);
  font-family: var(--font-heading);
}
.product-rating-badge {
  font-size: 0.72rem;
  color: #f59e0b;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.2rem;
}
.product-shop-badge {
  font-size: 0.72rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin-bottom: 0.5rem;
}
.product-action-btns {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.4rem;
}
.product-action-btns .btn {
  padding: 0.4rem 0.6rem;
  font-size: 0.78rem;
}

/* --- Public Shop View --- */
.shop-hero-card {
  max-width: 1240px;
  margin: 1.5rem auto 0;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.shop-hero-cover {
  height: 140px;
  background: linear-gradient(135deg, var(--primary-color), #4338ca);
}
.shop-hero-info {
  padding: 0 1.5rem 1.5rem;
  display: flex;
  gap: 1.5rem;
  position: relative;
  top: -40px;
  margin-bottom: -30px;
}
.shop-avatar {
  width: 96px;
  height: 96px;
  background-color: var(--bg-surface);
  border: 4px solid var(--bg-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--primary-color);
  flex-shrink: 0;
}
.shop-text-info {
  flex: 1;
  padding-top: 45px;
}
.shop-title-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.shop-handle {
  color: var(--primary-color);
  font-weight: 700;
  font-size: 1rem;
}
.shop-meta-tags {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin: 0.6rem 0;
}
.meta-tag {
  background: var(--bg-elevated);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  color: var(--text-secondary);
}
.shop-bio {
  font-size: 0.92rem;
  color: var(--text-secondary);
  margin-top: 0.4rem;
  max-width: 850px;
}
.shop-contact-bar {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.75rem;
  flex-wrap: wrap;
}
@media (max-width: 640px) {
  .shop-hero-info {
    flex-direction: column;
    align-items: center;
    text-align: center;
    top: -50px;
  }
  .shop-text-info {
    padding-top: 0.5rem;
  }
  .shop-title-row {
    justify-content: center;
  }
  .shop-meta-tags {
    justify-content: center;
  }
  .shop-contact-bar {
    justify-content: center;
  }
}

/* --- Product Details Layout --- */
.breadcrumbs {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.breadcrumbs a {
  color: var(--text-secondary);
}
.product-detail-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2rem;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}
@media (max-width: 850px) {
  .product-detail-layout {
    grid-template-columns: 1fr;
  }
}
.product-gallery-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.main-image-viewport {
  width: 100%;
  padding-top: 100%;
  position: relative;
  background-color: var(--bg-elevated);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
}
.main-image-viewport img {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}

.product-info-card {
  display: flex;
  flex-direction: column;
}
.pd-seller-badge {
  font-size: 0.85rem;
  color: var(--primary-color);
  cursor: pointer;
  margin-bottom: 0.5rem;
}
.pd-title {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}
.pd-rating-line {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  color: #f59e0b;
  font-size: 0.9rem;
}
.pd-rating-line .rating-text {
  color: var(--text-muted);
}
.pd-price-box {
  background-color: var(--bg-elevated);
  padding: 1rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.25rem;
}
.pd-price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary-color);
  font-family: var(--font-heading);
}
.tax-tag {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.pd-short-info {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.pd-quantity-selector {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.quantity-picker {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.quantity-picker button {
  background-color: var(--bg-elevated);
  border: none;
  width: 38px;
  height: 38px;
  cursor: pointer;
  font-size: 1rem;
}
.quantity-picker input {
  width: 50px;
  height: 38px;
  border: none;
  text-align: center;
  font-weight: 700;
  outline: none;
}

.pd-action-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
@media (max-width: 480px) {
  .pd-action-buttons {
    grid-template-columns: 1fr;
  }
}

.pd-perks-box {
  border-top: 1px solid var(--border-color);
  padding-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.perk-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
}
.perk-item i {
  color: var(--primary-color);
  font-size: 1.25rem;
  width: 24px;
}
.perk-item strong {
  display: block;
}
.perk-item p {
  color: var(--text-muted);
}

.product-description-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}
.tab-headers {
  display: flex;
  border-bottom: 1px solid var(--border-color);
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.tab-btn {
  background: none;
  border: none;
  padding: 0.75rem 1rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
}
.tab-btn.active {
  color: var(--primary-color);
  border-color: var(--primary-color);
}
.rich-text-view {
  line-height: 1.7;
  color: var(--text-secondary);
}

/* --- Checkout Layout --- */
.checkout-grid-layout {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 1.5rem;
}
@media (max-width: 850px) {
  .checkout-grid-layout {
    grid-template-columns: 1fr;
  }
}
.payment-method-selector {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.radio-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  cursor: pointer;
  background-color: var(--bg-surface);
}
.radio-card input {
  accent-color: var(--primary-color);
}
.radio-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.radio-content i {
  font-size: 1.5rem;
  color: var(--primary-color);
}
.radio-content p {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.checkout-items-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1rem;
  max-height: 260px;
  overflow-y: auto;
}
.summary-line {
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}
.total-line {
  font-size: 1.25rem;
  color: var(--primary-color);
}
.summary-guarantee {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 0.75rem;
}

/* --- Auth & Wizard Containers --- */
.auth-container, .wizard-container {
  max-width: 520px;
  margin: 3rem auto;
  padding: 0 1rem;
}
.wizard-container {
  max-width: 720px;
}
.auth-header {
  text-align: center;
  margin-bottom: 1.5rem;
}
.auth-badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
  background-color: var(--primary-light);
  color: var(--primary-color);
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.auth-footer {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.9rem;
}

/* Wizard Steps Indicator */
.wizard-progress-card {
  margin-bottom: 1.5rem;
}
.wizard-steps-indicator {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}
.step-badge {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}
.step-badge.active {
  color: var(--primary-color);
}
.step-num {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-pill);
  background-color: var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
}
.step-badge.active .step-num {
  background-color: var(--primary-color);
  color: #fff;
}
.step-line {
  flex: 1;
  height: 2px;
  background-color: var(--border-color);
  margin: 0 0.5rem;
}
.progress-bar-wrap {
  height: 6px;
  background-color: var(--border-color);
  border-radius: var(--radius-pill);
  overflow: hidden;
}
.progress-bar-fill {
  height: 100%;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}
.wizard-nav-buttons {
  display: flex;
  justify-content: space-between;
}

/* --- Dashboard UI --- */
.dashboard-banner-card {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  color: #ffffff;
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.plan-pill {
  background-color: var(--primary-color);
  color: #fff;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
}
.dashboard-banner-card h2 {
  color: #ffffff;
  margin: 0.35rem 0;
}
.banner-right {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 1rem;
}
.kpi-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.kpi-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}
.icon-blue { background: #e0f2fe; color: #0284c7; }
.icon-green { background: #dcfce7; color: #16a34a; }
.icon-purple { background: #f3e8ff; color: #9333ea; }
.icon-orange { background: #ffedd5; color: #ea580c; }
.icon-teal { background: #ccfbf1; color: #0d9488; }
.icon-gold { background: #fef9c3; color: #ca8a04; }

.kpi-data h3 {
  font-size: 1.3rem;
  font-weight: 800;
}
.kpi-label {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.dashboard-content-split {
  display: flex;
  gap: 1.5rem;
}
@media (max-width: 900px) {
  .dashboard-content-split {
    flex-direction: column;
  }
}

.quick-actions-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.quick-action-btn {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem;
  background-color: var(--bg-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  text-align: left;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.quick-action-btn:hover {
  background-color: var(--primary-light);
  border-color: var(--primary-color);
}
.quick-action-btn i {
  font-size: 1.5rem;
  color: var(--primary-color);
}
.quick-action-btn strong {
  display: block;
  font-size: 0.9rem;
}
.quick-action-btn p {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Tables */
.table-responsive {
  width: 100%;
  overflow-x: auto;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.88rem;
}
.data-table th, .data-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-color);
}
.data-table th {
  background-color: var(--bg-elevated);
  color: var(--text-secondary);
  font-weight: 600;
}
.data-table tr:hover {
  background-color: var(--bg-elevated);
}

/* --- Subscription Plans --- */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 360px));
  gap: 1.5rem;
  justify-content: center;
}
.plan-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 2rem;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.plan-card.featured {
  border-color: var(--primary-color);
  box-shadow: var(--shadow-lg);
}
.popular-tag {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--primary-color);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
}
.plan-price {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary-color);
  margin: 0.5rem 0;
  font-family: var(--font-heading);
}
.plan-price span {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: normal;
}
.plan-features {
  list-style: none;
  text-align: left;
  margin: 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.9rem;
}
.plan-features li i {
  color: var(--accent-color);
  margin-right: 0.5rem;
}
.plan-features li.disabled {
  color: var(--text-muted);
}
.plan-features li.disabled i {
  color: var(--danger-color);
}

/* --- Modals & Overlays --- */
.overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
  z-index: 1100;
}
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.modal-card {
  background-color: var(--bg-surface);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
}
.modal-card.modal-lg {
  max-width: 700px;
}
.modal-header {
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
}
.modal-body {
  padding: 1.5rem;
}
.modal-footer {
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  border-top: 1px solid var(--border-color);
}

/* Standee Card / QR */
.standee-card {
  background-color: #ffffff;
  color: #0f172a;
  border-radius: var(--radius-xl);
  padding: 2rem;
  border: 4px solid var(--primary-color);
}
.qr-canvas-wrapper {
  margin: 1.5rem auto;
  width: 200px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.scan-cta {
  font-weight: 700;
  color: var(--primary-color);
}
.standee-details-box {
  background: #f8fafc;
  padding: 1rem;
  border-radius: var(--radius-md);
  margin-top: 1rem;
  font-size: 0.85rem;
  text-align: left;
}

/* Image Previews inside Product Modal */
.image-input-row {
  display: flex;
  gap: 0.5rem;
}
.image-preview-grid {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.preview-thumb-wrap {
  position: relative;
  width: 70px;
  height: 70px;
}
.preview-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}
.preview-thumb-wrap .btn-remove-thumb {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--danger-color);
  color: #fff;
  border: none;
  border-radius: var(--radius-pill);
  width: 18px;
  height: 18px;
  font-size: 0.65rem;
  cursor: pointer;
}

/* --- Toast Notifications --- */
.toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.toast {
  background-color: var(--bg-surface);
  color: var(--text-primary);
  border-left: 4px solid var(--primary-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  min-width: 280px;
  animation: slideInRight 0.3s ease;
}
.toast.toast-success { border-left-color: var(--accent-color); }
.toast.toast-error { border-left-color: var(--danger-color); }
.toast.toast-warning { border-left-color: var(--warning-color); }

@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.filter-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}
.filter-row > * {
  flex: 1 1 200px;
}
@media (max-width: 640px) {
  .form-row {
    flex-direction: column;
    gap: 0;
  }
}

.text-primary {
  color: var(--primary-color) !important;
}


@media (max-width: 640px) {
  .filter-row {
    flex-direction: column;
    align-items: stretch;
    gap: 0.85rem; /* Elements ke darmiyan space */
  }
  .filter-row > * {
    width: 100%;
  }
}


/* Shop Products Heading & Search alignment */
.shop-products-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  background-color: var(--bg-surface);
  padding: 1rem 1.25rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  margin-bottom: 1.5rem;
}

.shop-products-heading .heading-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.shop-products-heading h2 {
  font-size: 1.25rem;
  margin: 0;
}

.shop-count-badge {
  font-size: 0.8rem;
  padding: 0.25rem 0.6rem;
}

.shop-search-box {
  flex: 1;
  max-width: 320px;
}

.shop-search-box .search-bar-wrapper input {
  padding-top: 0.45rem;
  padding-bottom: 0.45rem;
  font-size: 0.88rem;
  background-color: var(--bg-elevated);
}

/* Mobile responsive alignment */
@media (max-width: 640px) {
  .shop-products-heading {
    flex-direction: column;
    align-items: stretch;
  }
  .shop-search-box {
    max-width: 100%;
  }
}


/* Shops Horizontal Slider (Left to Right) */
.shops-slider-container {
  width: 100%;
  overflow: hidden;
  margin-top: 0.5rem;
}

.shops-horizontal-slider {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding: 0.5rem 0.25rem 1rem 0.25rem;
  scrollbar-width: thin;
  scroll-behavior: smooth;
}

.shops-horizontal-slider::-webkit-scrollbar {
  height: 6px;
}

.shops-horizontal-slider::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: var(--radius-pill);
}

/* Slider ke andar jo shop-card hoga, uski fixed width honi zaroori hai taake woh collapse na ho */
.shops-horizontal-slider .shop-card {
  min-width: 280px;
  max-width: 280px;
  flex: 0 0 auto;
}



/* =========================================================
   MODERN PREMIUM SHOP CARD DESIGN
   ========================================================= */
.shop-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

/* Subtle top border accent on hover */
.shop-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  opacity: 0;
  transition: opacity 0.25s ease;
}

.shop-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-color);
}

.shop-card:hover::before {
  opacity: 1;
}

.shop-card-top {
  display: flex;
  gap: 0.85rem;
  align-items: center;
  margin-bottom: 0.75rem;
}

.shop-badge-avatar {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--primary-light), var(--bg-elevated));
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  font-weight: 800;
  font-family: var(--font-heading);
  flex-shrink: 0;
  border: 1px solid var(--border-subtle);
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}

.shop-card-top h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 0.1rem;
}

.shop-card-handle {
  font-size: 0.78rem;
  color: var(--primary-color);
  font-weight: 600;
}

.shop-card-desc {
  font-size: 0.84rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
}

.shop-card-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--border-color);
}

.shop-card-meta span {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.shop-card-meta .btn {
  padding: 0.3rem 0.8rem;
  font-size: 0.78rem;
  border-radius: var(--radius-pill);
}


/* =========================================================
   MODERN SHOP DIRECTORY STYLES
   ========================================================= */
.directory-hero-banner {
  background: linear-gradient(135deg, var(--bg-surface) 0%, var(--bg-elevated) 100%);
  border-bottom: 1px solid var(--border-color);
  padding: 2.5rem 1rem;
  text-align: center;
}

.directory-hero-banner h2 {
  font-size: 2rem;
  margin-bottom: 0.4rem;
  color: var(--text-primary);
}

.directory-hero-banner p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Advanced Filter Panel Card */
.shop-filter-panel {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 1rem;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow-md);
  margin-top: -1.5rem; /* Pulls slightly over the banner for a floating card effect */
  position: relative;
  z-index: 10;
  align-items: center;
}

.filter-search-group {
  position: relative;
  display: flex;
  align-items: center;
}

.filter-search-group i {
  position: absolute;
  left: 1rem;
  color: var(--text-muted);
}

.filter-search-group input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.6rem;
  border: 1px solid var(--border-color);
  background-color: var(--bg-primary);
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  outline: none;
  transition: all var(--transition-fast);
}

.filter-search-group input:focus {
  border-color: var(--primary-color);
  background-color: var(--bg-surface);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.filter-dropdown-group select {
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color);
  background-color: var(--bg-primary);
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  color: var(--text-primary);
  outline: none;
  cursor: pointer;
  width: 100%;
}

.filter-dropdown-group select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.filter-action-group button {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

/* Responsive design for tablets and mobile */
@media (max-width: 850px) {
  .shop-filter-panel {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    margin-top: 1rem;
  }
  .directory-hero-banner {
    padding: 1.75rem 1rem;
  }
  .directory-hero-banner h2 {
    font-size: 1.5rem;
  }
}


/* =========================================================
   CUSTOM DIV-BASED DROPDOWN STYLES
   ========================================================= */
.custom-dropdown {
  position: relative;
  width: 100%;
}

.dropdown-select-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  color: var(--text-primary);
  cursor: pointer;
  user-select: none;
  transition: all var(--transition-fast);
}

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

.dropdown-select-btn .arrow-icon {
  font-size: 0.8rem;
  color: var(--text-muted);
  transition: transform var(--transition-fast);
}

.dropdown-list-container {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  width: 100%;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: 100;
  overflow: hidden;
  animation: fadeInDown 0.2s ease;
}

.dropdown-search-item {
  padding: 0.5rem;
  border-bottom: 1px solid var(--border-subtle);
  background-color: var(--bg-elevated);
}

.dropdown-search-item input {
  width: 100%;
  padding: 0.45rem 0.75rem;
  font-size: 0.85rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  outline: none;
  background-color: var(--bg-surface);
  color: var(--text-primary);
}

.dropdown-options-scroll {
  max-height: 220px;
  overflow-y: auto;
}

.dropdown-option-item {
  padding: 0.65rem 1rem;
  font-size: 0.88rem;
  color: var(--text-primary);
  cursor: pointer;
  transition: background var(--transition-fast);
}

.dropdown-option-item:hover {
  background-color: var(--bg-elevated);
  color: var(--primary-color);
}

.dropdown-option-item.active {
  background-color: var(--primary-light);
  color: var(--primary-color);
  font-weight: 600;
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}


/* =========================================================
   PRODUCTS SECTION & SORT DROPDOWN STYLING
   ========================================================= */
.products-heading-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.sort-dropdown {
  width: 210px;
}

.sort-dropdown .dropdown-select-btn {
  background-color: var(--bg-surface);
  border-radius: var(--radius-pill);
  padding: 0.55rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

.sort-dropdown .dropdown-list-container {
  width: 220px;
  right: 0;
  left: auto;
  border-radius: var(--radius-md);
}

/* Mobile responsive adjustments */
@media (max-width: 640px) {
  .products-heading-panel {
    flex-direction: column;
    align-items: stretch;
  }
  .sort-dropdown {
    width: 100%;
  }
  .sort-dropdown .dropdown-list-container {
    width: 100%;
  }
}


/* =========================================================
   RESPONSIVE HEADER USER PILL & DROPDOWN STYLING
   ========================================================= */
#header-user-menu {
  position: relative;
}

.user-avatar-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.65rem 0.3rem 0.3rem;
  border-radius: var(--radius-pill);
  background-color: var(--bg-elevated);
  border: 1px solid var(--border-color);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.85rem;
  transition: all var(--transition-fast);
  max-width: 160px; /* Limit width so it never breaks layout */
}

.user-avatar-pill:hover {
  border-color: var(--primary-color);
  background-color: var(--bg-surface);
}

.user-avatar-pill .avatar {
  width: 30px;
  height: 30px;
  border-radius: var(--radius-pill);
  background-color: var(--primary-color);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  flex-shrink: 0;
}

.user-avatar-pill .username {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis; /* Lambay naam ke aage ... aa jayega */
  max-width: 90px;
  color: var(--text-primary);
}

.user-avatar-pill .dropdown-arrow {
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* Dropdown Menu Box Modern Styling */
.dropdown-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: 240px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  padding: 0.5rem 0;
  z-index: 1000;
  animation: fadeInDown 0.2s ease;
}

.dropdown-user-header {
  padding: 0.5rem 1rem;
}

.dropdown-user-email {
  font-size: 0.78rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

.dropdown-menu a, .dropdown-menu button {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.65rem 1rem;
  font-size: 0.88rem;
  color: var(--text-primary);
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.dropdown-menu a:hover, .dropdown-menu button:hover {
  background-color: var(--bg-elevated);
  color: var(--primary-color);
  text-decoration: none;
}

.dropdown-menu a i, .dropdown-menu button i {
  width: 18px;
  color: var(--text-muted);
  text-align: center;
}

.dropdown-menu a:hover i, .dropdown-menu button:hover i {
  color: var(--primary-color);
}

.dropdown-menu .logout-link {
  color: var(--danger-color);
}
.dropdown-menu .logout-link i {
  color: var(--danger-color) !important;
}

.dropdown-menu hr {
  border: none;
  border-top: 1px solid var(--border-subtle);
  margin: 0.3rem 0;
}

/* Mobile Screen ke liye mazeed compact look */
@media (max-width: 480px) {
  .user-avatar-pill .username {
    display: none; /* Mobile par sirf avatar aur arrow dikhega taake jagah bache */
  }
  .user-avatar-pill {
    padding-right: 0.4rem;
  }
}


/* =========================================================
   INVENTORY HEADER & PROGRESS BAR STYLING
   ========================================================= */
.inventory-header-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.inventory-header-info h2 {
  font-size: 1.35rem;
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.plan-usage-badge-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.mini-progress-bar {
  width: 120px;
  height: 6px;
  background-color: var(--bg-elevated);
  border-radius: var(--radius-pill);
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.mini-progress-fill {
  height: 100%;
  background-color: var(--primary-color);
  border-radius: var(--radius-pill);
  transition: width 0.4s ease;
}

/* Mobile responsive styling */
@media (max-width: 640px) {
  .inventory-header-card {
    flex-direction: column;
    align-items: stretch;
    text-align: left;
  }
  .inventory-header-card .btn {
    width: 100%;
  }
  .mini-progress-bar {
    width: 100%;
  }
}

/* Admin Badge variations */
.badge-premium {
  background-color: #fef3c7;
  color: #d97706;
  font-weight: 700;
}
.badge-danger {
  background-color: var(--danger-light);
  color: var(--danger-color);
  font-weight: 700;
}
.admin-header-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  box-shadow: var(--shadow-sm);
}


/* =========================================================
   GLOBAL 3-SECOND SPLASH LOADER (PURE CSS & HTML)
   ========================================================= */
.global-loader-overlay {
  position: fixed;
  inset: 0;
  background-color: var(--bg-primary);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  animation: hideLoaderAfter3Sec 0s ease 3s forwards; /* Exactly 3 seconds delay */
}

.loader-content-box {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  animation: scaleUpFade 0.5s ease;
}

.loader-brand-icon {
  width: 64px;
  height: 64px;
  background-color: var(--primary-light);
  color: var(--primary-color);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  box-shadow: var(--shadow-md);
  animation: bounceLoader 1.2s infinite ease-in-out;
}

.loader-content-box h2 {
  font-size: 1.8rem;
  font-family: var(--font-heading);
  color: var(--text-primary);
}

.loader-content-box h2 span {
  color: var(--primary-color);
}

.loader-spinner-bar {
  width: 160px;
  height: 4px;
  background-color: var(--border-color);
  border-radius: var(--radius-pill);
  overflow: hidden;
  margin-top: 0.5rem;
  position: relative;
}

.spinner-fill {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background-color: var(--primary-color);
  animation: progressMove 1.5s infinite linear;
}

.loader-content-box p {
  font-size: 0.85rem;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

/* --- Keyframe Animations --- */
@keyframes progressMove {
  0% { left: -100%; }
  100% { left: 100%; }
}

@keyframes bounceLoader {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes scaleUpFade {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

/* 3 seconds ke baad loader ko mukammal hide karne ka rule */
@keyframes hideLoaderAfter3Sec {
  to {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
}


/* =========================================================
   SMART VIEW TRANSITION LOADER
   ========================================================= */
.view-loader-overlay {
  position: fixed;
  top: var(--header-height);
  right: 0;
  bottom: 0;
  left: 0;
  background-color: rgba(var(--bg-primary), 0.75);
  backdrop-filter: blur(2px);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s ease;
}

.view-loader-overlay.hidden {
  display: none !important;
}

/* Pulsing Spinner */
.spinner-dot-pulse {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border-color);
  border-top-color: var(--primary-color);
  border-radius: 50%;
  animation: spinLoader 0.8s linear infinite;
}

@keyframes spinLoader {
  to { transform: rotate(360deg); }
}
/* =========================================================
   SHOP CARD WITH TOP BANNER DESIGN
   ========================================================= */
.shop-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden; /* Zaroori hai taake banner card se bahar na nikle */
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
}

.shop-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-color);
}

/* 1. Mini Top Banner */
.shop-card-banner {
  height: 75px; /* Banner ki height */
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  position: relative;
  padding: 0.5rem;
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
}

/* Banner ke andar category badge ki styling */
.shop-card-banner .badge-verified {
  background-color: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
}

/* 2. Card Body */
.shop-card-body {
  padding: 0 1.15rem 1.15rem 1.15rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.shop-card-top {
  display: flex;
  gap: 0.75rem;
  align-items: flex-end;
  margin-bottom: 0.75rem;
  position: relative;
  margin-top: -30px; /* Avatar ko banner ke upar overlap karane ke liye */
}

/* 3. Overlapping Avatar */
.shop-badge-avatar {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-md);
  background-color: var(--bg-surface);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 800;
  font-family: var(--font-heading);
  flex-shrink: 0;
  border: 3px solid var(--bg-surface); /* Banner se alag dikhane ke liye white/dark border */
  box-shadow: var(--shadow-md);
}

.shop-name-handle-box {
  padding-bottom: 2px;
}

.shop-card-top h4 {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}

.shop-card-handle {
  font-size: 0.75rem;
  color: var(--primary-color);
  font-weight: 600;
}

.shop-card-desc {
  font-size: 0.84rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
  flex: 1;
}

.shop-card-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--border-color);
}

.shop-card-meta span {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.shop-card-meta .btn {
  padding: 0.25rem 0.75rem;
  font-size: 0.78rem;
  border-radius: var(--radius-pill);
}


/* Home Page Horizontal Shops Slider Fixes */
.shops-slider-container {
  width: 100%;
  overflow: hidden;
  margin-top: 0.5rem;
}

.shops-horizontal-slider {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  padding: 0.5rem 0.25rem 1.25rem 0.25rem;
  scrollbar-width: thin;
  scroll-behavior: smooth;
}

.shops-horizontal-slider::-webkit-scrollbar {
  height: 6px;
}

.shops-horizontal-slider::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: var(--radius-pill);
}

/* Slider ke andar shop card ki fixed width zaroori hai taake banner design na phate */
.shops-horizontal-slider .shop-card {
  min-width: 290px;
  max-width: 290px;
  flex: 0 0 auto;
}


/* =========================================================
   SEAMLESS COMPACT SHOP CARD DESIGN (Zero Unwanted Padding)
   ========================================================= */
.shop-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden; /* Card ke corners aur children ko clean rakhne ke liye */
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
}

.shop-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-color);
}

/* 1. Top Mini Banner (Flush to the top edge, zero gap) */
.shop-card-banner {
  height: 70px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  position: relative;
  padding: 0.4rem 0.6rem;
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  margin: 0; /* Koi extra margin nahi */
}

.shop-card-banner .badge-verified {
  background-color: rgba(16, 185, 129, 0.15);
  backdrop-filter: blur(4px);
  color: #34D399;
  border: 1px solid rgba(16, 185, 129, 0.35);
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.1rem 0.45rem;
}

/* 2. Card Body with minimal, tight padding */
.shop-card-body {
  padding: 0 0.85rem 0.85rem 0.85rem; /* Sirf zaroori jagah, koi extra khali space nahi */
  display: flex;
  flex-direction: column;
  flex: 1;
}

.shop-card-top {
  display: flex;
  gap: 0.6rem;
  align-items: flex-end;
  margin-bottom: 0.5rem;
  position: relative;
  margin-top: -26px; /* Avatar ko banner ke upar overlap karane ke liye */
}

/* 3. Compact Overlapping Avatar */
.shop-badge-avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background-color: var(--bg-surface);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 800;
  font-family: var(--font-heading);
  flex-shrink: 0;
  border: 3px solid var(--bg-surface);
  box-shadow: var(--shadow-sm);
}

.shop-name-handle-box {
  padding-bottom: 1px;
}

.shop-card-top h4 {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
  line-height: 1.2;
}

.shop-card-handle {
  font-size: 0.72rem;
  color: var(--primary-color);
  font-weight: 600;
}

.shop-card-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.35;
  flex: 1;
}

.shop-card-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.6rem;
  border-top: 1px solid var(--border-subtle); /* Halka border, khali space khatam */
  margin-top: auto;
}

.shop-card-meta span {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.shop-card-meta .btn {
  padding: 0.2rem 0.65rem;
  font-size: 0.75rem;
  border-radius: var(--radius-pill);
}


/* =========================================================
   STORE ORDERS MANAGEMENT STYLING
   ========================================================= */
.orders-heading-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.orders-filter-box {
  width: 200px;
}

.orders-table th, .orders-table td {
  vertical-align: middle;
}

/* Custom Status Badges */
.badge-warning-custom {
  background-color: var(--warning-light);
  color: var(--warning-color);
  font-weight: 700;
}

.badge-success-custom {
  background-color: var(--accent-light);
  color: var(--accent-color);
  font-weight: 700;
}

.badge-danger-custom {
  background-color: var(--danger-light);
  color: var(--danger-color);
  font-weight: 700;
}

@media (max-width: 640px) {
  .orders-heading-panel {
    flex-direction: column;
    align-items: stretch;
  }
  .orders-filter-box {
    width: 100%;
  }
}


/* =========================================================
   MANUAL PAYMENT CHECKOUT & CONFIRMATION STYLING
   ========================================================= */
.payment-accounts-box {
  background-color: var(--bg-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
}

.account-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
}

.account-badge {
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
}

.easypaisa-badge { background-color: #e6f9ed; color: #008738; }
.jazzcash-badge { background-color: #feebe8; color: #ed1c24; }
.bank-badge { background-color: #e0f2fe; color: #0284c7; }

.account-details p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.account-details code {
  background-color: var(--bg-elevated);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-weight: 700;
  color: var(--primary-color);
  font-size: 0.95rem;
}

.payable-highlight-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--primary-light);
  border: 1px dashed var(--primary-color);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-color);
}

.sub-success-box {
  text-align: center;
  padding: 2rem 1rem;
  animation: scaleUpFade 0.4s ease;
}

.sub-success-box .success-icon {
  width: 70px;
  height: 70px;
  background-color: var(--primary-light);
  color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  margin: 0 auto 1.25rem;
}

@media (max-width: 640px) {
  .account-item {
    flex-direction: column;
    gap: 0.5rem;
  }
}


/* =========================================================
   SETUP WIZARD MODERN ACTION BUTTONS
   ========================================================= */
.wizard-nav-buttons {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-subtle);
}

.btn-wizard-back {
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  transition: all 0.2s ease;
}

.btn-wizard-next {
  padding: 0.75rem 1.75rem;
  font-weight: 700;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.25);
  transition: all 0.2s ease;
}

.btn-launch-shop {
  background: linear-gradient(135deg, var(--primary-color) 0%, #ea580c 100%);
  color: #ffffff;
  padding: 0.85rem 1.85rem;
  font-size: 1rem;
  font-weight: 800;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: 0 6px 18px rgba(249, 115, 22, 0.35);
  transition: all 0.25s ease;
  border: none;
}

.btn-launch-shop:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(249, 115, 22, 0.45);
}

@media (max-width: 580px) {
  .wizard-nav-buttons {
    flex-direction: column-reverse;
    align-items: stretch;
  }
  .btn-wizard-back, .btn-wizard-next, .btn-launch-shop {
    width: 100%;
    justify-content: center;
  }
}

/* Handle Validation Status Badges */
.validation-msg {
  font-size: 0.84rem;
  margin-top: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.validation-msg.available {
  color: #10b981;
}
.validation-msg.unavailable {
  color: #ef4444;
}
.validation-msg.loading {
  color: var(--primary-color);
}


/* =========================================================
   MODERN TRACK ORDER & CUSTOMER ORDER CARDS STYLES
   ========================================================= */

/* Header & Search Bar */
.track-header-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow-sm);
}

.track-search-bar-wrap {
  display: flex;
  gap: 0.75rem;
  max-width: 650px;
  margin: 1.5rem auto 0;
}

.search-input-box {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
}

.search-input-box i {
  position: absolute;
  left: 1rem;
  color: var(--text-muted);
}

.search-input-box input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.6rem;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-pill);
  font-size: 0.92rem;
  outline: none;
  transition: all var(--transition-fast);
}

.search-input-box input:focus {
  border-color: var(--primary-color);
  background-color: var(--bg-surface);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.btn-track {
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-pill);
  font-weight: 700;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .track-search-bar-wrap {
    flex-direction: column;
  }
  .btn-track {
    width: 100%;
  }
}

/* =========================================================
   MY PLACED ORDERS CARDS GRID
   ========================================================= */
.my-orders-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}

.customer-order-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all var(--transition-fast);
  position: relative;
}

.customer-order-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-color);
}

.cust-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-subtle);
}

.order-id-meta {
  display: flex;
  flex-direction: column;
}

.order-id-txt {
  font-weight: 800;
  font-size: 0.98rem;
  color: var(--text-primary);
  font-family: var(--font-heading);
}

.order-date-txt {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

/* 'i' Details Info Button Icon */
.btn-info-icon {
  background: var(--bg-elevated);
  color: var(--primary-color);
  border: 1px solid var(--border-color);
  width: 34px;
  height: 34px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.btn-info-icon:hover {
  background-color: var(--primary-color);
  color: #ffffff;
  border-color: var(--primary-color);
  transform: scale(1.08);
}

.cust-card-body {
  padding: 0.85rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.cust-card-stat-line {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
}

.cust-card-stat-line .price-txt {
  font-size: 1.05rem;
  font-weight: 800;
}

.cust-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-subtle);
}

.status-pill {
  font-size: 0.78rem;
  padding: 0.25rem 0.7rem;
}

.btn-view-detail {
  padding: 0.3rem 0.75rem;
  font-size: 0.8rem;
  border-radius: var(--radius-pill);
}

.empty-orders-box {
  text-align: center;
  padding: 3rem 1.5rem;
  background-color: var(--bg-surface);
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-lg);
}

.empty-orders-box i {
  font-size: 3rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

/* Status Badge Colors */
.badge-info-custom { background-color: #e0f2fe; color: #0284c7; font-weight: 700; }
.badge-primary-custom { background-color: var(--primary-light); color: var(--primary-color); font-weight: 700; }

/* =========================================================
   LIVE TRACKING SEARCH RESULT CARDS
   ========================================================= */
.track-result-wrapper {
  margin-top: 1.5rem;
}

.track-found-card {
  background-color: var(--bg-surface);
  border: 2px solid var(--primary-color);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  box-shadow: var(--shadow-lg);
}

.track-found-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
}

.status-pill-lg {
  font-size: 0.9rem;
  padding: 0.35rem 0.85rem;
}

.track-found-body {
  padding: 1rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.92rem;
}

.track-not-found-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 2rem 1.5rem;
  text-align: center;
}

/* =========================================================
   ORDER DETAILS MODAL & JOURNEY STEPPER
   ========================================================= */
.order-details-modal-box {
  max-width: 780px !important;
}

.order-modal-title h3 {
  font-size: 1.35rem;
  margin-bottom: 0.15rem;
}

.order-status-tracker-box {
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
}

.tracker-title {
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

.tracker-steps-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.t-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  position: relative;
  z-index: 2;
}

.t-step-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: var(--bg-surface);
  border: 2px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.t-step.active .t-step-icon {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: #ffffff;
  box-shadow: 0 0 0 4px var(--primary-light);
}

.t-step.completed .t-step-icon {
  background-color: #10b981;
  border-color: #10b981;
  color: #ffffff;
}

.t-step.active span {
  color: var(--primary-color);
  font-weight: 700;
}

.t-step.completed span {
  color: #10b981;
}

.t-step-line {
  flex: 1;
  height: 4px;
  background-color: var(--border-color);
  margin: -18px 0.35rem 0;
  z-index: 1;
}

.t-step-line.completed {
  background-color: #10b981;
}

.current-status-alert {
  padding: 0.6rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  text-align: center;
}

.current-status-alert.status-active {
  background-color: var(--primary-light);
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
}

.current-status-alert.status-cancelled {
  background-color: var(--danger-light);
  color: var(--danger-color);
  border: 1px solid var(--danger-color);
}

/* Info Details Grid */
.order-info-details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1rem;
}

.info-block {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1rem;
}

.info-block h5 {
  font-size: 0.88rem;
  margin-bottom: 0.65rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--border-subtle);
}

.info-block p {
  font-size: 0.82rem;
  margin-bottom: 0.3rem;
}

/* Items in Modal */
.order-items-detail-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1rem;
}

.order-modal-items-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-height: 240px;
  overflow-y: auto;
}

.order-item-detail-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--border-subtle);
}

.order-item-img {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 1px solid var(--border-color);
  background: var(--bg-elevated);
}

.order-item-main-info {
  flex: 1;
}

.order-item-title {
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 0.15rem;
}

.order-item-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.order-item-total-col {
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--text-primary);
}

@media (max-width: 640px) {
  .tracker-steps-bar {
    overflow-x: auto;
    padding-bottom: 0.5rem;
  }
  .t-step {
    min-width: 65px;
  }
}

/* =========================================================
   MODAL PROMINENT CLOSE BUTTON & COPYABLE TRX/ORDER ID
   ========================================================= */

/* High-Visibility Modal Header & Cross Button */
.modal-header {
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 1px solid var(--border-color);
  position: relative;
  background-color: var(--bg-surface);
}

.btn-modal-close {
  width: 38px;
  height: 38px;
  min-width: 38px;
  border-radius: 50%;
  background-color: var(--bg-elevated);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
  margin-left: 0.75rem;
}

.btn-modal-close:hover {
  background-color: var(--danger-light);
  color: var(--danger-color);
  border-color: var(--danger-color);
  transform: rotate(90deg);
}

/* Copyable Trx / Order ID Box */
.modal-trx-id-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.25rem;
}

.trx-id-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.copyable-id-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--bg-elevated);
  padding: 0.35rem 0.65rem 0.35rem 0.85rem;
  border-radius: 2%;
  border: 1px solid var(--border-color);
  width: fit-content;
}

.copyable-id-pill strong {
  font-size: 1rem;
  color: var(--primary-color);
  font-family: var(--font-heading);
  letter-spacing: 0.5px;
}

/* Copy Button Inside Pill */
.btn-copy-trx {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  border-radius: var(--radius-pill);
  padding: 0.25rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-copy-trx:hover {
  background-color: var(--primary-color);
  color: #ffffff;
  border-color: var(--primary-color);
}

.btn-copy-trx.copied {
  background-color: #10b981 !important;
  color: #ffffff !important;
  border-color: #10b981 !important;
}

.modal-date-subtext {
  font-size: 0.8rem;
  margin-top: 0.35rem;
  display: block;
}

@media (max-width: 640px) {
  .modal-header {
    padding: 1rem;
  }
  .copyable-id-pill {
    max-width: 100%;
    flex-wrap: wrap;
  }
  .copyable-id-pill strong {
    font-size: 0.88rem;
  }
}

/* =========================================================
   ADMIN ADVANCED FILTER BAR & SHOP CONTROLS
   ========================================================= */
.admin-filter-bar {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
  background-color: var(--bg-elevated);
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.admin-filter-group {
  flex: 1 1 180px;
}

.table-row-suspended {
  background-color: rgba(239, 68, 68, 0.05) !important;
  opacity: 0.85;
}

/* Shop Full Profile Inspector Modal Grid */
.admin-shop-inspect-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 768px) {
  .admin-shop-inspect-grid {
    grid-template-columns: 1fr;
  }
}

.text-success {
  color: #10b981 !important;
}






/* Netlify Badge Remover */
#netlify-logo, a[href^="https://www.netlify.com"] {
    display: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
}



/* Blue Tap/Click Glitch Hatanay Ka Code */
* {
    -webkit-tap-highlight-color: transparent !important;
    -webkit-touch-callout: none;
    outline: none !important;
}

.image-upload-dropzone {
  border: 2px dashed var(--border-color);
  background-color: var(--bg-elevated);
  border-radius: var(--radius-md);
  padding: 1.25rem 1rem;
  text-align: center;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}
.image-upload-dropzone:hover {
  border-color: var(--primary-color);
  background-color: var(--primary-light);
}
.image-preview-grid {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
}
.preview-thumb-wrap {
  position: relative;
  width: 75px;
  height: 75px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border-color);
}
.preview-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.preview-thumb-wrap .btn-remove-thumb {
  position: absolute;
  top: 3px;
  right: 3px;
  background: rgba(239, 68, 68, 0.9);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
}



.thumb-size-tag {
  position: absolute;
  bottom: 2px;
  left: 2px;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  font-size: 0.62rem;
  padding: 1px 4px;
  border-radius: 3px;
  font-weight: 600;
}


/* =========================================================
   MODERN & RESPONSIVE USERNAME / HANDLE VALIDATOR UI
   ========================================================= */

.username-input-group {
  display: flex;
  align-items: stretch;
  width: 100%;
}

.username-input-group .input-prefix {
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  border-right: none;
  border-radius: var(--radius-md) 0 0 var(--radius-md);
  padding: 0.65rem 1rem;
  font-weight: 700;
  color: var(--primary-color);
  display: flex;
  align-items: center;
}

.username-input-group input {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  font-weight: 600;
}

/* Status Alert Pills (Available / Taken / Loading) */
.validation-msg {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.85rem;
  border-radius: var(--radius-md);
  font-size: 0.84rem;
  font-weight: 600;
  margin-top: 0.5rem;
  animation: fadeInDown 0.2s ease;
  line-height: 1.4;
  word-break: break-word;
}

.validation-msg.available {
  background-color: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.validation-msg.unavailable {
  background-color: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.validation-msg.loading {
  background-color: var(--primary-light);
  color: var(--primary-color);
  border: 1px solid rgba(249, 115, 22, 0.3);
}

/* Suggestions Container Box */
.username-suggestions-box {
  background-color: var(--bg-elevated);
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.75rem;
  margin-top: 0.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.username-suggestions-box .sug-label {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Responsive Clickable Chips */
.chips-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.chip-btn {
  background-color: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-pill);
  padding: 0.3rem 0.75rem;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.15s ease;
  box-shadow: var(--shadow-sm);
}

.chip-btn:hover {
  background-color: var(--primary-color);
  color: #ffffff;
  border-color: var(--primary-color);
  transform: translateY(-1px);
}

.chip-btn i {
  font-size: 0.7rem;
  color: var(--primary-color);
}

.chip-btn:hover i {
  color: #ffffff;
}

/* URL Preview Box */
.url-preview-tag {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  word-break: break-all;
}

.url-preview-tag strong {
  color: var(--primary-color);
}

@media (max-width: 480px) {
  .chips-container {
    gap: 0.35rem;
  }
  .chip-btn {
    font-size: 0.78rem;
    padding: 0.25rem 0.6rem;
  }
}


/* =========================================================
   MASTER CATALOG & STAGING BAR STYLES
   ========================================================= */

.master-item-tag {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(15, 23, 42, 0.75) !important;
  backdrop-filter: blur(4px);
  color: #facc15 !important;
  font-size: 0.72rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.staged-card {
  border-color: var(--primary-color) !important;
  box-shadow: 0 0 0 2px var(--primary-light), var(--shadow-md) !important;
}

.btn-outline-danger {
  background: transparent;
  border: 1px solid var(--danger-color);
  color: var(--danger-color);
}
.btn-outline-danger:hover {
  background: var(--danger-light);
}

/* Floating Staging Bottom Bar */
.staging-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-surface);
  border-top: 2px solid var(--primary-color);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
  z-index: 1050;
  animation: slideUpBottom 0.3s ease;
  padding: 0.85rem 0;
}

.staging-bar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

@keyframes slideUpBottom {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

/* Bulk Review Items in Modal */
.bulk-edit-card {
  border-left: 4px solid var(--primary-color) !important;
  background: var(--bg-elevated);
  padding: 1.15rem;
  border-radius: var(--radius-md);
}

.bulk-edit-card label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 0.25rem;
}


/* Missing Clean Close Button Style */
.btn-clean-close {
  background: transparent;
  border: none;
  font-size: 1.25rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.btn-clean-close:hover {
  color: var(--danger-color);
  background-color: var(--danger-light);
}

/* Fixed Desktop View Simulation (Cross-browser safe) */
body.desktop-mode-active {
  min-width: 1200px !important;
  overflow-x: auto !important;
}


/* =========================================================
   PRO PRODUCT THUMBNAILS GALLERY (Fixed Aspect Ratio & Glow)
   ========================================================= */
.thumbnails-track {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding: 0.5rem 0.2rem;
  scrollbar-width: thin;
  align-items: center;
}

/* Custom Scrollbar for Thumbnails */
.thumbnails-track::-webkit-scrollbar {
  height: 4px;
}
.thumbnails-track::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: var(--radius-pill);
}

.thumb-item {
  width: 68px;
  height: 68px;
  min-width: 68px; /* ⚡ Is se image dabay gi nahi */
  flex-shrink: 0;   /* ⚡ Har photo barabar square rahegi */
  border-radius: var(--radius-md);
  border: 2px solid var(--border-color);
  cursor: pointer;
  object-fit: cover; /* ⚡ Photo khinchegi nahi balke perfectly crop hogi */
  background-color: var(--bg-elevated);
  transition: all 0.2s ease-in-out;
  padding: 2px;
}

.thumb-item:hover {
  border-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

/* Selected Photo Active Glow */
.thumb-item.active {
  border-color: var(--primary-color) !important;
  box-shadow: 0 0 0 2px var(--primary-light), 0 4px 8px rgba(0, 0, 0, 0.08);
  transform: scale(1.04);
}


/* =========================================================
   CLEAN APP-STYLE IMAGE SLIDER
   ========================================================= */
.main-image-viewport {
  position: relative;
  width: 100%;
  padding-top: 100%;
  background-color: var(--bg-elevated);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.main-image-viewport img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.2s ease-in-out;
}

/* 1/4 Floating Badge */
.gallery-counter-badge {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(4px);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill);
  z-index: 10;
  pointer-events: none;
}

/* Arrows Navigation */
.gallery-arrow-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  color: #0f172a;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: all 0.2s ease;
}

.gallery-arrow-btn:hover {
  background: #ffffff;
  transform: translateY(-50%) scale(1.1);
}

.prev-arrow { left: 10px; }
.next-arrow { right: 10px; }

/* Subtle Dots Track (Zero Space Waste) */
.gallery-dots-track {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.6rem;
}

.slider-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--border-color);
  cursor: pointer;
  transition: all 0.2s ease;
}

.slider-dot.active {
  width: 18px; /* Daraz jaisa elongated pill dot */
  border-radius: var(--radius-pill);
  background-color: var(--primary-color);
}


/* =========================================================
   EDIT SHOP PROFILE STYLING
   ========================================================= */
.edit-profile-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.edit-profile-layout {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 1.5rem;
  align-items: flex-start;
}

@media (max-width: 900px) {
  .edit-profile-layout {
    grid-template-columns: 1fr;
  }
}

/* Banner Upload Box */
.banner-preview-box {
  width: 100%;
  height: 150px;
  border: 2px dashed var(--border-color);
  border-radius: var(--radius-md);
  background-color: var(--bg-elevated);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color var(--transition-fast);
}

.banner-preview-box:hover {
  border-color: var(--primary-color);
}

.banner-preview-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Logo Upload Row */
.logo-upload-row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.logo-preview-box {
  width: 90px;
  height: 90px;
  min-width: 90px;
  border-radius: var(--radius-lg);
  border: 2px dashed var(--border-color);
  background-color: var(--bg-elevated);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  transition: border-color var(--transition-fast);
}

.logo-preview-box:hover {
  border-color: var(--primary-color);
}

.logo-preview-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.btn-remove-preview {
  position: absolute;
  top: 6px;
  right: 6px;
  background: rgba(239, 68, 68, 0.9);
  color: #ffffff;
  border: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  z-index: 10;
}

.dropzone-empty-state {
  text-align: center;
  padding: 0.5rem;
  pointer-events: none;
}
.dropzone-empty-state p {
  font-size: 0.85rem;
  margin: 0.25rem 0 0;
}
.dropzone-empty-state small {
  font-size: 0.72rem;
}


/* =========================================================
   UNIVERSAL MODERN DIV DROPDOWN STYLING
   ========================================================= */
.custom-dropdown {
  position: relative;
  width: 100%;
}

.dropdown-select-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.65rem 0.95rem;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-primary);
  cursor: pointer;
  user-select: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

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

.custom-dropdown.open .dropdown-select-btn {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.dropdown-select-btn .arrow-icon {
  font-size: 0.8rem;
  color: var(--text-muted);
  transition: transform 0.2s ease;
}

.dropdown-list-container {
  position: absolute;
  top: calc(100% + 5px);
  left: 0;
  width: 100%;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: 1050;
  overflow: hidden;
  animation: dropdownFadeIn 0.18s ease forwards;
}

.dropdown-options-scroll {
  max-height: 210px;
  overflow-y: auto;
  scrollbar-width: thin;
}

.dropdown-options-scroll::-webkit-scrollbar {
  width: 5px;
}
.dropdown-options-scroll::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: var(--radius-pill);
}

.dropdown-option-item {
  padding: 0.65rem 1rem;
  font-size: 0.88rem;
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.dropdown-option-item:hover {
  background-color: var(--bg-elevated);
  color: var(--primary-color);
}

.dropdown-option-item.active {
  background-color: var(--primary-light);
  color: var(--primary-color);
  font-weight: 700;
}

@keyframes dropdownFadeIn {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Arrow rotation on open */
.custom-dropdown.open .dropdown-select-btn .arrow-icon {
  transform: rotate(180deg);
}

/* Modal ke andar dropdowns ko uper rakhne ke liye z-index */
.modal-card .custom-dropdown .dropdown-list-container {
  z-index: 1200;
}


/* Logo box ko square aur balanced banane ke liye */
.logo-square-box {
  max-width: 180px;  /* Isko aap apne hisaab se chota ya bada kar sakte hain */
  height: 140px;
  margin: 0 auto;    /* Center align karne ke liye (agar chahein) */
}

@media (max-width: 480px) {
  .logo-square-box {
    max-width: 70%; /* Mobile par yeh poori width le lega */
  }
}

/* --- BULLETPROOF SHOP LOGO & BANNER STYLING --- */
.shop-hero-cover {
  height: 160px !important;
  width: 100% !important;
  background-color: #1e293b !important;
  background-size: cover !important;
  background-position: center !important;
  display: block !important;
}

.shop-avatar {
  width: 96px !important;
  height: 96px !important;
  min-width: 96px !important;
  background-color: var(--bg-surface) !important;
  border: 4px solid var(--bg-surface) !important;
  border-radius: var(--radius-lg) !important;
  box-shadow: var(--shadow-md) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
  position: relative !important;
}

.shop-avatar img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}


/* --- PUBLIC SHOP HERO & AVATAR FIX --- */
#public-shop-header .shop-hero-cover {
  width: 100% !important;
  height: 160px !important;
  background-color: #0f172a !important;
  background-size: cover !important;
  background-position: center !important;
  display: block !important;
}

#public-shop-avatar {
  width: 96px !important;
  height: 96px !important;
  min-width: 96px !important;
  background-color: var(--bg-surface) !important;
  border: 4px solid var(--bg-surface) !important;
  border-radius: 16px !important;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
  font-size: 2.5rem !important;
  color: var(--primary-color) !important;
}

#public-shop-avatar img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}


/* ==========================================================================
   PREMIUM SHOP CARDS & PUBLIC STOREFRONT INTERFACE
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. MODERN SHOP CARDS (Home & Directory Pages)
   -------------------------------------------------------------------------- */
.shop-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  position: relative;
}

.shop-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px -6px rgba(0, 0, 0, 0.12);
  border-color: var(--primary-color);
}

/* Card Top Cover Banner */
.shop-card-banner {
  height: 100px;
  background-color: #0f172a;
  background-size: cover !important;
  background-position: center !important;
  position: relative;
  padding: 0.65rem 0.85rem;
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
}

/* Dark gradient overlay so tags always stay clear */
.shop-card-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.1) 100%);
  pointer-events: none;
}

/* Glassmorphism Category Badge */
.shop-card-banner .badge-verified {
  position: relative;
  z-index: 2;
  background: rgba(15, 23, 42, 0.65) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #34d399 !important;
  border: 1px solid rgba(52, 211, 153, 0.35);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill);
  letter-spacing: 0.3px;
}

/* Card Content Area */
.shop-card-body {
  padding: 0 1.15rem 1.15rem 1.15rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* Overlapping Avatar Row */
.shop-card-top {
  display: flex;
  align-items: flex-end;
  gap: 0.85rem;
  margin-top: -28px;
  margin-bottom: 0.75rem;
  position: relative;
  z-index: 3;
}

/* Squircle Floating Avatar */
.shop-badge-avatar {
  width: 56px;
  height: 56px;
  min-width: 56px;
  border-radius: 16px;
  background-color: var(--bg-surface);
  border: 3px solid var(--bg-surface);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary-color);
  flex-shrink: 0;
}

.shop-badge-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Shop Name & Handle Container */
.shop-name-handle-box {
  flex: 1;
  min-width: 0;
  padding-bottom: 3px;
}

.shop-name-handle-box h4 {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
  line-height: 1.25;
}

.shop-card-handle {
  font-size: 0.8rem;
  color: var(--primary-color);
  font-weight: 600;
  display: block;
  margin-top: 0.15rem;
}

/* Shop Bio / Description */
.shop-card-desc {
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.45;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

/* Footer Metadata */
.shop-card-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-subtle);
  margin-top: auto;
}

.shop-card-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 500;
}

.shop-card-meta .btn {
  padding: 0.3rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
}


/* --------------------------------------------------------------------------
   2. PUBLIC SHOP STOREFRONT HERO INTERFACE (Store Page)
   -------------------------------------------------------------------------- */
.shop-hero-card {
  max-width: 1240px;
  margin: 1.5rem auto 0;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

/* Cover Image Banner */
.shop-hero-cover {
  width: 100%;
  height: 200px;
  background-color: #0b1120;
  background-size: cover !important;
  background-position: center !important;
  position: relative;
}

.shop-hero-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.4) 100%);
}

/* Hero Content Area */
.shop-hero-info {
  padding: 0 2rem 1.75rem 2rem;
  display: flex;
  gap: 1.75rem;
  align-items: flex-start;
  position: relative;
}

/* Large Store Avatar */
.shop-avatar {
  width: 110px;
  height: 110px;
  min-width: 110px;
  background-color: var(--bg-surface);
  border: 4px solid var(--bg-surface);
  border-radius: 22px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-size: 2.75rem;
  color: var(--primary-color);
  margin-top: -55px;
  position: relative;
  z-index: 10;
  flex-shrink: 0;
}

.shop-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Shop Text Info */
.shop-text-info {
  flex: 1;
  padding-top: 1rem;
}

.shop-title-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.shop-title-row h1 {
  font-size: 1.75rem;
  font-weight: 800;
  margin: 0;
  color: var(--text-primary);
  line-height: 1.2;
}

/* Verified Pill */
.badge-verified {
  background-color: #ecfdf5 !important;
  color: #059669 !important;
  border: 1px solid #a7f3d0;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

[data-theme="dark"] .badge-verified {
  background-color: rgba(16, 185, 129, 0.15) !important;
  color: #34d399 !important;
  border-color: rgba(52, 211, 153, 0.3);
}

.shop-handle {
  color: var(--primary-color);
  font-weight: 700;
  font-size: 1rem;
  margin-top: 0.25rem;
}

/* Information Pills (Category, City, Hours) */
.shop-meta-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin: 0.85rem 0;
}

.meta-tag {
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.meta-tag i {
  color: var(--primary-color);
}

.shop-bio {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0.75rem 0 1.25rem;
  max-width: 800px;
}

/* Contact CTA Bar */
.shop-contact-bar {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
}

.shop-contact-bar .btn {
  padding: 0.55rem 1.25rem;
  font-size: 0.88rem;
  font-weight: 700;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
}


/* --------------------------------------------------------------------------
   3. PUBLIC SHOP PRODUCTS SECTION HEADER
   -------------------------------------------------------------------------- */
.shop-products-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  background-color: var(--bg-surface);
  padding: 1.15rem 1.5rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.shop-products-heading .heading-left {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.shop-products-heading h2 {
  font-size: 1.35rem;
  margin: 0;
}

.shop-count-badge {
  font-size: 0.8rem;
  padding: 0.25rem 0.75rem;
}

.shop-search-box {
  flex: 1;
  max-width: 320px;
}

.shop-search-box .search-bar-wrapper input {
  padding: 0.6rem 1rem 0.6rem 2.4rem;
  font-size: 0.88rem;
  border-radius: var(--radius-pill);
  background-color: var(--bg-elevated);
}


/* --------------------------------------------------------------------------
   4. MOBILE RESPONSIVENESS (< 640px)
   -------------------------------------------------------------------------- */
@media (max-width: 640px) {
  /* Public Shop Hero */
  .shop-hero-cover {
    height: 140px;
  }
  
  .shop-hero-info {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 1.25rem 1.5rem;
  }
  
  .shop-avatar {
    width: 90px;
    height: 90px;
    min-width: 90px;
    margin-top: -45px;
    border-radius: 18px;
  }
  
  .shop-text-info {
    padding-top: 0.5rem;
    width: 100%;
  }
  
  .shop-title-row,
  .shop-meta-tags,
  .shop-contact-bar {
    justify-content: center;
  }

  .shop-title-row h1 {
    font-size: 1.4rem;
  }

  .shop-contact-bar .btn {
    flex: 1 1 auto;
    min-width: 130px;
  }

  /* Shop Heading in View */
  .shop-products-heading {
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
  }

  .shop-search-box {
    max-width: 100%;
  }
}

/* =========================================================
   MODERN & MINIMAL SHOP CARD STYLES (NO BUTTON, DIRECT TAP)
   ========================================================= */

.modern-shop-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  cursor: pointer;
  position: relative;
  display: flex;
  flex-direction: column;
  user-select: none;
}

.modern-shop-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px -4px rgba(0, 0, 0, 0.1);
  border-color: var(--primary-color);
}

/* 1. Cover Banner */
.shop-card-cover {
  height: 85px;
  position: relative;
  background-size: cover !important;
  background-position: center !important;
  padding: 0.6rem 0.8rem;
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
}

.shop-card-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.05) 100%);
  pointer-events: none;
}

/* Category Badge on Banner */
.shop-category-tag {
  position: relative;
  z-index: 2;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-pill);
}

/* 2. Card Content Area */
.shop-card-main {
  padding: 0 1rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* 3. Logo & Location Icon Row */
.shop-card-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-top: -30px;
  margin-bottom: 0.6rem;
  position: relative;
  z-index: 5;
}

/* Clean Rounded Logo */
.shop-logo-sq {
  width: 58px;
  height: 58px;
  min-width: 58px;
  border-radius: 16px;
  background-color: var(--bg-surface);
  border: 3px solid var(--bg-surface);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary-color);
  flex-shrink: 0;
}

.shop-logo-sq img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Clickable Location Icon */
.btn-shop-loc-icon {
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  color: var(--primary-color);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.btn-shop-loc-icon:hover {
  background-color: var(--primary-color);
  color: #ffffff;
  border-color: var(--primary-color);
  transform: scale(1.08);
}

/* 4. Location Expandable Dropdown Pill */
.shop-expand-location {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background-color: var(--primary-light);
  border: 1px solid transparent;
  color: var(--primary-color);
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  padding: 0 0.75rem;
  margin-bottom: 0;
  transition: max-height 0.25s ease, opacity 0.2s ease, margin 0.2s ease, padding 0.2s ease;
}

.shop-expand-location.active {
  max-height: 40px;
  opacity: 1;
  padding: 0.35rem 0.75rem;
  margin-bottom: 0.6rem;
  border-color: rgba(249, 115, 22, 0.25);
}

.shop-expand-location span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 5. Shop Title & Handle */
.shop-name-block {
  margin-bottom: 0.35rem;
}

.shop-name-block h4 {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

.shop-handle-sub {
  font-size: 0.76rem;
  color: var(--primary-color);
  font-weight: 600;
  display: block;
}

/* 6. Clean 2-Line Intro / Description */
.shop-intro-text {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
  flex: 1;
}

/* Horizontal Slider Width on Home View */
.shops-horizontal-slider .modern-shop-card {
  min-width: 270px;
  max-width: 270px;
  flex: 0 0 auto;
}


/* =========================================================
   UNIFIED APP-LIKE STOREFRONT PROFILE (NO SEPARATE CARDS)
   ========================================================= */

.shop-profile-wrapper {
  background-color: var(--bg-primary);
  min-height: 100vh;
  padding-bottom: 2.5rem;
}

/* 1. Cover Banner */
.shop-cover-hero {
  width: 100%;
  height: 140px;
  background-color: #0f172a;
  background-size: cover !important;
  background-position: center !important;
  position: relative;
}

.shop-cover-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.4) 100%);
}

/* 2. Fluid Container & Identity Row */
.shop-profile-body {
  padding-top: 0;
}

.shop-identity-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: -32px; /* Smooth overlap without covering text */
  margin-bottom: 1rem;
  position: relative;
  z-index: 10;
}

/* Clean Squircle Avatar */
.shop-identity-avatar {
  width: 68px;
  height: 68px;
  min-width: 68px;
  border-radius: 18px;
  background-color: var(--bg-surface);
  border: 3.5px solid var(--bg-surface);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary-color);
  flex-shrink: 0;
}

.shop-identity-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Name, Handle & Badges in One Block */
.shop-identity-text {
  flex: 1;
  min-width: 0;
  padding-top: 32px; /* Balances banner overlap */
}

.shop-name-title-line {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.shop-name-title-line h1 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary) !important;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

.verified-icon-badge {
  font-size: 1.05rem;
  display: inline-flex;
  align-items: center;
}

.verified-icon-badge.text-success {
  color: #10b981 !important;
}

.shop-tags-line {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.2rem;
  flex-wrap: wrap;
  font-size: 0.78rem;
}

.shop-handle-link {
  color: var(--primary-color);
  font-weight: 700;
}

.bullet-dot {
  color: var(--text-muted);
}

.shop-cat-pill, .shop-items-pill {
  background-color: var(--bg-elevated);
  color: var(--text-secondary);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 600;
  border: 1px solid var(--border-subtle);
}

/* 3. Toolbar Row (WhatsApp, About, Share + Search) */
.shop-toolbar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 0.6rem 0.85rem;
  box-shadow: var(--shadow-sm);
}

.shop-buttons-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-whatsapp-strip {
  background-color: #25D366 !important;
  color: #ffffff !important;
  border: none !important;
  font-weight: 700;
  font-size: 0.8rem;
  border-radius: var(--radius-pill);
  padding: 0.4rem 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.btn-whatsapp-strip:hover {
  background-color: #20ba5a !important;
  color: #ffffff !important;
}

.shop-tool-btn {
  border-radius: var(--radius-pill);
  padding: 0.4rem 0.8rem;
  font-size: 0.8rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

/* Search Bar Inside Toolbar */
.shop-inline-search {
  flex: 1;
  min-width: 180px;
  max-width: 320px;
  position: relative;
  display: flex;
  align-items: center;
}

.shop-inline-search i {
  position: absolute;
  left: 0.85rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.shop-inline-search input {
  width: 100%;
  padding: 0.45rem 0.75rem 0.45rem 2.2rem;
  background-color: var(--bg-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-pill);
  font-size: 0.84rem;
  outline: none;
  color: var(--text-primary);
  transition: all var(--transition-fast);
}

.shop-inline-search input:focus {
  background-color: var(--bg-surface);
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px var(--primary-light);
}

/* 4. Products Grid (No Extra Card Wrap) */
.shop-main-grid {
  margin-top: 0.5rem;
}

/* Mobile Responsiveness */
@media (max-width: 640px) {
  .shop-cover-hero {
    height: 100px;
  }
  
  .shop-identity-avatar {
    width: 58px;
    height: 58px;
    min-width: 58px;
    border-radius: 14px;
  }
  
  .shop-name-title-line h1 {
    font-size: 1.1rem;
  }
  
  .shop-toolbar-row {
    flex-direction: column;
    align-items: stretch;
    gap: 0.6rem;
    padding: 0.65rem;
  }
  
  .shop-buttons-group {
    justify-content: space-between;
    width: 100%;
  }

  .shop-buttons-group > * {
    flex: 1;
    justify-content: center;
  }
  
  .shop-inline-search {
    max-width: 100%;
    width: 100%;
  }
}


/* =========================================================
   CLEAN & PROFESSIONAL "ABOUT STORE" MODAL
   ========================================================= */

.about-modal-box {
  max-width: 420px !important;
  border-radius: var(--radius-xl) !important;
  overflow: hidden;
}

.about-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.about-title-wrap h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0;
  color: var(--text-primary);
}

.about-body-clean {
  padding: 1.25rem;
}

/* 1. Bio Quote Box */
.about-bio-card {
  background-color: var(--bg-elevated);
  border-left: 3px solid var(--primary-color);
  padding: 0.75rem 1rem;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin-bottom: 1.25rem;
}

.about-bio-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}

/* 2. Structured Info Rows */
.about-info-rows {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.about-row-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

/* Icon Bubble */
.about-icon-circle {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 50%;
  background-color: var(--primary-light);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  margin-top: 2px;
}

.about-text-content {
  flex: 1;
  min-width: 0;
}

.about-row-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  display: block;
}

.about-row-val {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0.15rem 0 0;
  line-height: 1.35;
}

.about-row-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: block;
  margin-top: 0.15rem;
}

/* 3. Services Badges (Delivery & COD) */
.about-services-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.35rem;
}

.serv-badge {
  font-size: 0.76rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.serv-badge.avail {
  background-color: rgba(16, 185, 129, 0.12);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.serv-badge.unavail {
  background-color: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

/* 4. Call Store Button Inside Modal */
.modal-call-btn {
  border-radius: var(--radius-pill);
  padding: 0.65rem;
  font-weight: 700;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}



/* =========================================================
   MASTER CATALOG ADVANCED RESPONSIVE GRID & CARDS
   ========================================================= */

.master-catalog-banner {
  background: linear-gradient(135deg, var(--bg-surface) 0%, var(--bg-elevated) 100%);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.banner-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
  background: var(--primary-light);
  color: var(--primary-color);
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.master-filter-wrapper {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
}

.master-search-box {
  flex: 2 1 240px;
  position: relative;
  display: flex;
  align-items: center;
}

.master-search-box i {
  position: absolute;
  left: 1rem;
  color: var(--text-muted);
}

.master-search-box input {
  width: 100%;
  padding: 0.7rem 1rem 0.7rem 2.5rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-color);
  background: var(--bg-surface);
  font-size: 0.9rem;
  outline: none;
  transition: all 0.2s ease;
}

.master-search-box input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.master-select-box {
  flex: 1 1 180px;
}

.master-select-box select {
  border-radius: var(--radius-pill);
  padding: 0.7rem 1rem;
  font-size: 0.88rem;
  cursor: pointer;
}

/* Master Products Responsive Grid */
.master-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}

@media (max-width: 540px) {
  .master-products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
}

.master-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
}

.master-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-color);
}

.master-card.staged-card {
  border-color: var(--primary-color) !important;
  box-shadow: 0 0 0 2px var(--primary-light), var(--shadow-md) !important;
}

.master-card-imgbox {
  width: 100%;
  padding-top: 85%;
  position: relative;
  background: var(--bg-elevated);
  overflow: hidden;
}

.master-card-imgbox img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.master-card:hover .master-card-imgbox img {
  transform: scale(1.05);
}

.master-rating-tag {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(4px);
  color: #facc15;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-pill);
}

.master-card-content {
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.master-card-cat {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.master-card-title {
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.5rem;
}

.master-card-specs {
  font-size: 0.75rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 0.6rem;
}

.master-card-price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-top: auto;
  margin-bottom: 0.75rem;
  padding-top: 0.4rem;
  border-top: 1px dashed var(--border-subtle);
}

.master-card-price {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary-color);
  font-family: var(--font-heading);
}

.master-card-stock {
  font-size: 0.72rem;
  color: #10b981;
  font-weight: 600;
}

/* Button Group (Full Responsive across all screens) */
.master-btn-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  width: 100%;
}

.btn-responsive {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-md);
  text-align: center;
  white-space: normal;
  line-height: 1.25;
}

/* =========================================================
   TOUCH-DRAGGABLE FLOATING ACTION WIDGET
   ========================================================= */

.master-floating-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1500;
  display: flex;
  align-items: center;
  background: var(--bg-surface);
  border: 2px solid var(--primary-color);
  border-radius: var(--radius-pill);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.25), 0 0 0 4px var(--primary-light);
  cursor: grab;
  user-select: none;
  touch-action: none; /* Prevents mobile scroll while dragging */
  transition: transform 0.08s ease, box-shadow 0.2s ease;
  min-width: 175px;
}

.master-floating-widget:active {
  cursor: grabbing;
  box-shadow: 0 15px 35px -5px rgba(249, 115, 22, 0.4);
}

.widget-drag-handle {
  padding: 0.6rem 0.4rem 0.6rem 0.75rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  cursor: grab;
}

.widget-content {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.6rem 1rem 0.6rem 0.2rem;
  cursor: pointer;
  flex: 1;
}

.widget-badge {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary-color);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
  box-shadow: 0 2px 6px rgba(249, 115, 22, 0.4);
}

.widget-text {
  display: flex;
  flex-direction: column;
}

.widget-text strong {
  font-size: 0.88rem;
  color: var(--text-primary);
  line-height: 1.2;
}

.widget-text small {
  font-size: 0.72rem;
  color: var(--primary-color);
  font-weight: 600;
}

/* Quick Action Popup */
.widget-quick-menu {
  position: absolute;
  bottom: calc(100% + 12px);
  right: 0;
  width: 260px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  animation: fadeInDown 0.2s ease;
  z-index: 1510;
}

.quick-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  font-size: 0.88rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--border-subtle);
}

.quick-menu-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* =========================================================
   CUSTOMIZE & REVIEW MODAL (VIEW / EDIT MODE)
   ========================================================= */

.bulk-modal-responsive {
  max-width: 850px !important;
  width: 95vw !important;
}

.bulk-modal-scroll {
  max-height: 72vh;
  overflow-y: auto;
  padding: 1rem 1.25rem;
}

.bulk-item-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
  position: relative;
  transition: all 0.2s ease;
}

.bulk-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--border-color);
  flex-wrap: wrap;
  gap: 0.5rem;
}

.bulk-item-thumb-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.bulk-item-thumb {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  object-fit: cover;
  border: 1px solid var(--border-color);
}

.bulk-item-actions {
  display: flex;
  gap: 0.4rem;
  align-items: center;
}

.btn-toggle-edit {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--primary-color);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.15s ease;
}

.btn-toggle-edit:hover, .btn-toggle-edit.active {
  background: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color);
}

/* Fields View Mode (Read-Only Elegant State) */
.bulk-fields-view {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
}

.field-chip {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.55rem 0.75rem;
  display: flex;
  flex-direction: column;
}

.field-chip label {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 0.15rem;
}

.field-chip span {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-primary);
  word-break: break-word;
}

.field-chip.full-span {
  grid-column: 1 / -1;
}

/* Fields Edit Mode (Active Form Inputs) */
.bulk-fields-edit {
  animation: fadeInDown 0.2s ease;
}

.bulk-modal-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

@media (max-width: 640px) {
  .bulk-modal-footer {
    flex-direction: column-reverse;
  }
  .bulk-modal-footer .btn-responsive {
    width: 100%;
  }
}


/* =========================================================
   FIXED MOBILE-PERFECT MASTER CATALOG CARDS
   ========================================================= */

.master-products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
}

@media (min-width: 768px) {
  .master-products-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
}

@media (min-width: 1024px) {
  .master-products-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
  }
}

/* Perfect Clean Card */
.master-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.master-card.staged-card {
  border-color: var(--primary-color) !important;
  box-shadow: 0 0 0 2px var(--primary-light), var(--shadow-sm) !important;
}

/* 1:1 Clean Image Box */
.master-card-imgbox {
  width: 100%;
  padding-top: 100%; /* Perfect Square like Daraz/Amazon */
  position: relative;
  background: var(--bg-elevated);
  overflow: hidden;
}

.master-card-imgbox img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Clean Rating Pill */
.master-rating-tag {
  position: absolute;
  top: 6px;
  right: 6px;
  background: rgba(15, 23, 42, 0.8) !important;
  backdrop-filter: blur(4px);
  color: #facc15 !important;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-pill);
}

/* Card Body Content */
.master-card-content {
  padding: 0.65rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.master-card-cat {
  font-size: 0.68rem;
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 0.15rem;
}

.master-card-title {
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 2.25rem; /* Exactly 2 lines */
}

.master-card-specs {
  font-size: 0.72rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 0.4rem;
}

/* Fixed Price & Stock Row (Kabhi 2 lines mein nahi tootay ga) */
.master-card-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem;
  margin-top: auto;
  margin-bottom: 0.5rem;
  padding-top: 0.35rem;
  border-top: 1px dashed var(--border-subtle);
}

.master-card-price {
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--primary-color);
  font-family: var(--font-heading);
  white-space: nowrap; /* "Rs. 2499" hamesha ek line mein rahega */
  flex-shrink: 0;
}

.master-card-stock {
  font-size: 0.68rem;
  color: #10b981;
  font-weight: 600;
  white-space: nowrap;
  background: rgba(16, 185, 129, 0.12);
  padding: 0.12rem 0.35rem;
  border-radius: var(--radius-pill);
}

/* Compact, Beautiful Responsive Buttons */
.master-btn-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  width: 100%;
}

.btn-responsive {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 0.42rem 0.5rem;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-responsive i {
  font-size: 0.75rem;
}

/* =========================================================
   PERFECT TOUCH-DRAGGABLE FLOATING ACTION WIDGET
   ========================================================= */

.master-floating-widget {
  position: fixed;
  bottom: 80px; /* Shuru mein neeche rahega, upar banner ko block nahi karega */
  right: 16px;
  z-index: 1500;
  display: flex;
  align-items: center;
  background: var(--bg-surface);
  border: 2px solid var(--primary-color);
  border-radius: var(--radius-pill);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25), 0 0 0 3px var(--primary-light);
  cursor: grab;
  user-select: none;
  touch-action: none; /* Mobile screen scroll ko drag ke waqt block karta hai */
  min-width: 155px;
}

.master-floating-widget:active {
  cursor: grabbing;
}

.widget-drag-handle {
  padding: 0.5rem 0.2rem 0.5rem 0.65rem;
  color: var(--text-muted);
  font-size: 0.8rem;
  display: flex;
  align-items: center;
}

.widget-content {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.85rem 0.5rem 0.2rem;
  cursor: pointer;
  flex: 1;
}

.widget-badge {
  width: 28px;
  height: 28px;
  min-width: 28px;
  border-radius: 50%;
  background: var(--primary-color);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.82rem;
}

.widget-text {
  display: flex;
  flex-direction: column;
}

.widget-text strong {
  font-size: 0.82rem;
  color: var(--text-primary);
  line-height: 1.15;
  white-space: nowrap;
}

.widget-text small {
  font-size: 0.68rem;
  color: var(--primary-color);
  font-weight: 600;
  white-space: nowrap;
}

/* Floating Quick Popup Menu */
.widget-quick-menu {
  position: absolute;
  bottom: calc(100% + 10px);
  right: 0;
  width: 240px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  z-index: 1510;
}

.widget-quick-menu.open-downwards {
  bottom: auto;
  top: calc(100% + 10px);
}


/* =========================================================
   MOBILE-ONLY DEDICATED BOTTOM DOCK & SHEET (< 768px)
   ========================================================= */
@media (max-width: 768px) {
  /* 1. Mobile Floating Bottom Dock */
  .master-floating-widget {
    position: fixed !important;
    left: 12px !important;
    right: 12px !important;
    bottom: 12px !important;
    top: auto !important;
    width: auto !important;
    min-width: unset !important;
    max-width: calc(100vw - 24px) !important;
    height: 58px;
    border-radius: 18px !important;
    background: var(--bg-surface) !important;
    border: 1.5px solid var(--primary-color) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22), 0 0 0 3px var(--primary-light) !important;
    cursor: pointer !important;
    padding: 0 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    z-index: 1500 !important;
    animation: slideUpMobileDock 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  }

  /* Drag handle hide on mobile (no awkward dragging) */
  .widget-drag-handle {
    display: none !important;
  }

  .widget-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0 !important;
    width: 100%;
    justify-content: space-between;
  }

  .widget-badge {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    font-size: 0.9rem !important;
    border-radius: 10px !important;
    background: linear-gradient(135deg, var(--primary-color), #ea580c) !important;
  }

  .widget-text {
    display: flex;
    flex-direction: column;
    text-align: left;
    flex: 1;
    margin-left: 0.25rem;
  }

  .widget-text strong {
    font-size: 0.88rem !important;
    color: var(--text-primary);
  }

  .widget-text small {
    font-size: 0.72rem !important;
    color: var(--primary-color) !important;
    display: flex;
    align-items: center;
    gap: 0.25rem;
  }

  /* 2. Native Mobile Bottom Sheet (Opens from bottom smoothly) */
  .widget-quick-menu {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    top: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 24px 24px 0 0 !important;
    border: none !important;
    border-top: 1px solid var(--border-color) !important;
    background: var(--bg-surface) !important;
    box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.3) !important;
    padding: 1.25rem 1.25rem calc(1.5rem + env(safe-area-inset-bottom)) !important;
    z-index: 1600 !important;
    animation: slideUpBottomSheet 0.28s cubic-bezier(0.16, 1, 0.3, 1) !important;
  }

  /* Handle notch on top of bottom sheet */
  .widget-quick-menu::before {
    content: "";
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 44px;
    height: 4px;
    background: var(--border-color);
    border-radius: 999px;
  }

  .quick-menu-header {
    font-size: 1rem !important;
    font-weight: 800 !important;
    padding-bottom: 0.75rem !important;
    margin-bottom: 0.5rem;
  }

  .quick-menu-actions {
    gap: 0.65rem !important;
  }

  .quick-menu-actions .btn {
    padding: 0.75rem 1rem !important;
    font-size: 0.9rem !important;
    border-radius: var(--radius-pill) !important;
  }
}

/* Animations */
@keyframes slideUpMobileDock {
  from {
    transform: translateY(100px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes slideUpBottomSheet {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

/* =========================================================
   CLEAN & MODERN CHECKOUT SUMMARY DESIGN
   ========================================================= */
.checkout-summary-card .summary-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.95rem;
  margin-bottom: 0.65rem;
  gap: 0.75rem;
}

/* Prices will NEVER break into 2 lines */
.summary-price,
.total-line strong:last-child {
  white-space: nowrap !important;
  font-weight: 700;
  text-align: right;
  flex-shrink: 0;
}

.summary-item-name {
  color: var(--text-primary);
  font-weight: 500;
  line-height: 1.35;
}

/* Multi-Shop Delivery Badge */
.delivery-label-box {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: nowrap;
}

.badge-shop-count {
  background-color: var(--primary-light);
  color: var(--primary-color);
  border: 1px solid rgba(249, 115, 22, 0.3);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

/* Small Sub-Breakdown Note */
.delivery-breakdown-note {
  font-size: 0.76rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: -0.35rem;
  margin-bottom: 0.65rem;
  padding-left: 0.1rem;
}

.delivery-breakdown-note i {
  color: var(--primary-color);
  font-size: 0.75rem;
}


/* =========================================================
   PREMIUM CHECKOUT ORDER SUMMARY STYLING
   ========================================================= */

.checkout-summary-card {
  padding: 1.25rem !important;
  border-radius: var(--radius-xl) !important;
}

.checkout-summary-header h3 {
  font-size: 1.15rem;
  margin-bottom: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Products List Box */
.checkout-items-list {
  background-color: var(--bg-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 0.5rem 0.75rem;
  margin-bottom: 1rem;
  max-height: 250px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

/* Single Product Row */
.summary-product-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  padding: 0.5rem 0;
  border-bottom: 1px dashed var(--border-subtle);
}

.summary-product-item:last-child {
  border-bottom: none;
}

/* Thumbnail + Title Layout */
.summary-product-left {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
  flex: 1;
}

.summary-product-thumb {
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  flex-shrink: 0;
}

.summary-product-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.summary-product-name {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

.summary-product-meta {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.15rem;
}

.qty-pill {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.08rem 0.4rem;
  border-radius: var(--radius-pill);
}

/* Calculation & Summary Lines */
.checkout-calc-section {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.checkout-calc-section .summary-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.summary-price {
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap !important;
  text-align: right;
  flex-shrink: 0;
  font-size: 0.92rem;
}

.summary-divider {
  border: none;
  border-top: 1px solid var(--border-color);
  margin: 0.5rem 0 0.4rem;
}

/* Grand Total Row */
.total-line {
  font-size: 1.15rem !important;
  color: var(--text-primary);
}

.grand-total-price {
  color: var(--primary-color) !important;
  font-size: 1.35rem !important;
  font-weight: 800 !important;
  font-family: var(--font-heading);
  white-space: nowrap !important;
}

/* =========================================================
   DARAZ & AMAZON INSPIRED HIGH-CONVERTING PRODUCT CARDS
   ========================================================= */

.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* Mobile: Crisp 2 columns */
  gap: 0.65rem;
}

@media (min-width: 640px) {
  .products-grid { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
}
@media (min-width: 992px) {
  .products-grid { grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
}
@media (min-width: 1200px) {
  .products-grid { grid-template-columns: repeat(5, 1fr); gap: 1.25rem; }
}

/* Modern Card Box */
.product-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: all 0.22s ease-in-out;
  cursor: pointer;
  position: relative;
  user-select: none;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  border-color: var(--primary-color);
}

/* Square Image Viewport */
.product-img-box {
  width: 100%;
  padding-top: 100%;
  position: relative;
  background-color: var(--bg-elevated);
  overflow: hidden;
}

.product-img-box img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.product-card:hover .product-img-box img {
  transform: scale(1.04);
}

/* Floating Discount Badge (Top-Left) */
.product-discount-tag {
  position: absolute;
  top: 6px;
  left: 6px;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  box-shadow: 0 2px 5px rgba(239, 68, 68, 0.4);
  z-index: 2;
  letter-spacing: 0.3px;
}

/* Floating Quick Add-To-Cart Button (Bottom-Right) */
.btn-card-quick-cart {
  position: absolute;
  bottom: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-surface);
  color: var(--primary-color);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  transition: all 0.2s ease;
  z-index: 5;
}

.btn-card-quick-cart:hover {
  background: var(--primary-color);
  color: #ffffff;
  border-color: var(--primary-color);
  transform: scale(1.1);
}

/* Product Info Container */
.product-info-box {
  padding: 0.65rem 0.75rem 0.75rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* Store Badge */
.product-shop-badge {
  font-size: 0.68rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 0.2rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.product-shop-badge i {
  color: var(--primary-color);
}

/* Clean 2-line Title */
.product-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.35;
  margin-bottom: 0.35rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 2.3rem; /* Fixed height so all cards align perfectly */
}

/* Rating & Sold Row */
.product-meta-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
  font-size: 0.72rem;
}

.product-rating-badge {
  color: #f59e0b;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
}

.product-sold-tag {
  color: var(--text-muted);
  font-size: 0.7rem;
}

/* Pricing Section */
.product-price-row {
  margin-top: auto;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.product-price-group {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.product-price {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--primary-color);
  font-family: var(--font-heading);
  white-space: nowrap;
}

.product-price small {
  font-size: 0.75rem;
  margin-right: 1px;
}

/* Strikethrough Cut Price */
.product-cut-price {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-decoration: line-through;
  white-space: nowrap;
}

/* Perk Tag */
.product-perk-pill {
  font-size: 0.65rem;
  font-weight: 600;
  color: #059669;
  background-color: #ecfdf5;
  padding: 0.15rem 0.4rem;
  border-radius: 3px;
  width: fit-content;
  margin-top: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

[data-theme="dark"] .product-perk-pill {
  background-color: rgba(16, 185, 129, 0.15);
  color: #34d399;
}

/* =========================================================
   COMPACT & PROFESSIONAL E-COMMERCE PRODUCT CARDS
   ========================================================= */

.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
}

@media (min-width: 640px) {
  .products-grid { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
}
@media (min-width: 992px) {
  .products-grid { grid-template-columns: repeat(4, 1fr); gap: 1.15rem; }
}
@media (min-width: 1200px) {
  .products-grid { grid-template-columns: repeat(5, 1fr); gap: 1.25rem; }
}

/* 1. Main Card Structure */
.product-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
  position: relative;
  user-select: none;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
  border-color: rgba(249, 115, 22, 0.4);
}

/* 2. Photo Viewport (1:1 Ratio) */
.product-img-box {
  width: 100%;
  padding-top: 100%;
  position: relative;
  background-color: var(--bg-elevated);
  overflow: hidden;
}

.product-img-box img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.product-card:hover .product-img-box img {
  transform: scale(1.04);
}

/* Discount Pill */
.product-discount-tag {
  position: absolute;
  top: 6px;
  left: 6px;
  background: #ef4444;
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  z-index: 2;
  letter-spacing: 0.2px;
}

/* Sleek Floating Cart Icon (Orange with White Icon) */
.btn-card-quick-cart {
  position: absolute;
  bottom: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary-color);
  color: #ffffff;
  border: 2px solid #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  cursor: pointer;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
  transition: transform 0.18s ease, background-color 0.18s ease;
  z-index: 5;
}

.btn-card-quick-cart:hover {
  transform: scale(1.12);
  background: var(--primary-hover);
}

/* 3. Tightly-Coupled Content Area (No Wasted Space) */
.product-info-box {
  padding: 0.65rem 0.7rem 0.65rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem; /* Sabhi elements ke darmiyan barabar aur compact gap */
  flex: 1;
}

/* Clean Title */
.product-title {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.25rem;
}

/* Price Row */
.product-price-row {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  margin-top: 0.1rem;
}

.product-price {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--primary-color);
  font-family: var(--font-heading);
}

.product-price small {
  font-size: 0.75rem;
  margin-right: 1px;
}

.product-cut-price {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

/* Ratings & Sold */
.product-meta-row {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.72rem;
}

.product-rating-badge {
  color: #f59e0b;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
}

.meta-dot {
  color: var(--text-muted);
  font-size: 0.65rem;
}

.product-sold-tag {
  color: var(--text-muted);
}

/* Footer: Shop Name & Delivery Tag in 1 Single Line */
.product-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  margin-top: auto;
  padding-top: 0.35rem;
  border-top: 1px dashed var(--border-subtle);
}

.product-shop-name {
  font-size: 0.68rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.product-shop-name i {
  color: var(--primary-color);
  font-size: 0.65rem;
}

.product-perk-pill {
  font-size: 0.62rem;
  font-weight: 600;
  color: #10b981;
  background: rgba(16, 185, 129, 0.1);
  padding: 0.12rem 0.4rem;
  border-radius: 4px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
}


/* =========================================================
   CLEAN & STRUCTURED E-COMMERCE PRODUCT CARDS
   ========================================================= */
/* =========================================================
   COMPACT HEIGHT PRODUCT CARDS (کم لمبائی اور سمارٹ ڈیزائن)
   ========================================================= */
/* =========================================================
   ULTRA-COMPACT E-COMMERCE CARDS (شارٹ ہائٹ + بولڈ پرائس + پرفیکٹ فونٹ)
   ========================================================= */

.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}

@media (min-width: 640px) {
  .products-grid { grid-template-columns: repeat(3, 1fr); gap: 0.8rem; }
}
@media (min-width: 992px) {
  .products-grid { grid-template-columns: repeat(4, 1fr); gap: 1rem; }
}
@media (min-width: 1200px) {
  .products-grid { grid-template-columns: repeat(5, 1fr); gap: 1.15rem; }
}

/* 1. Main Card Container */
.product-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
  position: relative;
  user-select: none;
}

.product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.1);
  border-color: rgba(249, 115, 22, 0.4);
}

/* 2. Ultra-Compact Image (80% Height Ratio - لمبائی مزید کم) */
.product-img-box {
  width: 100%;
  padding-top: 80%; /* 88% سے کم کر کے 80% کیا، لمبائی فوراً کم ہو جائے گی */
  position: relative;
  background-color: var(--bg-elevated);
  overflow: hidden;
}

.product-img-box img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.product-card:hover .product-img-box img {
  transform: scale(1.04);
}

/* Discount Pill */
.product-discount-tag {
  position: absolute;
  top: 5px;
  left: 5px;
  background: #ef4444;
  color: #ffffff;
  font-size: 0.62rem;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 3px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
  z-index: 2;
}

/* Master Catalog Style Top-Right Rating */
.product-rating-corner {
  position: absolute;
  top: 5px;
  right: 5px;
  background: rgba(15, 23, 42, 0.8) !important;
  backdrop-filter: blur(4px);
  color: #facc15 !important;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.1rem 0.4rem;
  border-radius: var(--radius-pill);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
}

/* 3. Tightly-Coupled Info Box */
.product-info-box {
  padding: 0.4rem 0.5rem 0.45rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.15rem;
}

/* 1. Shop Name */
.product-shop-badge {
  font-size: 0.64rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 0.05rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  line-height: 1;
}

.product-shop-badge i {
  color: var(--primary-color);
  font-size: 0.62rem;
}


/* 3. Short 2-Line Description (کم اونچائی کے ساتھ ...) */
.product-card-desc {
  font-size: 0.68rem;
  color: var(--text-muted);
  line-height: 1.18;
  margin: 0 0 0.25rem 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  height: 1.45rem; /* بالکل سمٹا ہوا سائز */
}

.product-title {
  font-family: var(--font-primary) !important; /* 'Inter' - اصلی صاف ستھرا فونٹ */
  font-size: 0.88rem !important;
  font-weight: 600 !important; /* نہ زیادہ موٹا نہ باریک، بالکل پرفیکٹ */
  color: var(--text-primary) !important;
  line-height: 1.25 !important;
  margin: 0 0 0.2rem 0 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  letter-spacing: -0.01em !important;
}

/* 2. دونوں قیمتیں ایک ساتھ جوڑنے کے لیے (No Far-Right Space) */
.product-price-row {
  display: flex !important;
  justify-content: flex-start !important; /* دونوں پرائسز بالکل ساتھ جڑ جائیں گی */
  align-items: baseline !important;
  gap: 0.35rem !important; /* پرائسز کے درمیان ہلکا سا قدرتی فاصلہ */
  margin-bottom: 0.4rem !important;
}

/* اصل بڑی اور بولڈ قیمت */
.product-price {
  font-family: var(--font-heading) !important;
  font-size: 1.12rem !important; /* بڑی اور پُرکشش */
  font-weight: 800 !important;
  color: var(--primary-color) !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}

.product-price small {
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  margin-right: 1.5px !important;
}

/* کٹی ہوئی چھوٹی قیمت (بالکل اصل قیمت کے ساتھ) */
.product-cut-price {
  font-family: var(--font-primary) !important;
  font-size: 0.72rem !important; /* چھوٹی قیمت */
  color: var(--text-muted) !important;
  text-decoration: line-through !important;
  white-space: nowrap !important;
  opacity: 0.75 !important;
  font-weight: 500 !important;
}

/* 5. Compact Action Buttons */
.product-card-actions {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: auto;
  width: 100%;
}

.btn-card-buy {
  flex: 1;
  background-color: var(--primary-color);
  color: #ffffff;
  border: none;
  border-radius: 5px;
  padding: 0.25rem 0.4rem;
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
  height: 26px; /* سمارٹ کمپیکٹ بٹن */
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.15s ease;
}

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

.btn-card-add-cart {
  width: 26px;
  height: 26px;
  min-width: 26px;
  background-color: var(--bg-elevated);
  border: 1px solid var(--border-color);
  color: var(--primary-color);
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-card-add-cart:hover {
  background-color: var(--primary-color);
  color: #ffffff;
  border-color: var(--primary-color);
}


#qr-shop-name {
  color: #0f172a !important;
}

.standee-actions .btn {
  width: 100%;
  border-radius: 8px;
}


/* =========================================================
   DESKTOP & MOBILE BALANCED SHOP BANNER
   ========================================================= */

/* 1. موبائل پر (بالکل پہلے جیسا چھوٹا اور پرفیکٹ) */
.shop-cover-hero {
  width: 100%;
  height: 140px; /* موبائل پر مناسب سائز */
  background-color: #0f172a;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  position: relative;
  display: block;
  transition: height 0.25s ease;
}

/* 2. ٹیبلٹ اسکرینز کے لیے (iPad / Tablets) */
@media (min-width: 768px) {
  .shop-cover-hero {
    height: 240px;
  }
}

/* 3. لیپ ٹاپ اور عام ڈیسک ٹاپ اسکرینز کے لیے */
@media (min-width: 1024px) {
  .shop-cover-hero {
    height: 380px; /* بڑی ہائٹ تاکہ 1200x400 کا پورا بینر ڈیسک ٹاپ پر نظر آئے */
  }
}

/* 4. بڑی مانیٹر اسکرینز کے لیے (1280px+) */
@media (min-width: 1280px) {
  .shop-cover-hero {
    height: 400px; /* پرفیکٹ 400px ہائٹ */
    max-width: 1240px; /* دراز اور فیس بک کی طرح پیج کی حد میں خوبصورت سینٹر */
    margin: 1.25rem auto 0;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
  }
}

/* ہلکا سا اوورلے */
.shop-cover-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.3) 100%);
  pointer-events: none;
  border-radius: inherit;
}


/* Delivery Negotiable Notice */
.delivery-negotiable-notice {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  background-color: var(--primary-light);
  border: 1px dashed rgba(249, 115, 22, 0.4);
  color: var(--text-secondary);
  font-size: 0.74rem;
  line-height: 1.35;
  padding: 0.45rem 0.65rem;
  border-radius: var(--radius-md);
  margin-top: 0.25rem;
  margin-bottom: 0.5rem;
}

.delivery-negotiable-notice i {
  color: var(--primary-color);
  font-size: 0.8rem;
  margin-top: 1px;
  flex-shrink: 0;
}

[data-theme="dark"] .delivery-negotiable-notice {
  background-color: rgba(249, 115, 22, 0.1);
  color: #cbd5e1;
}


/* --- Track Result Card Header Fix --- */
.track-found-card {
  overflow: hidden; /* تاکہ کارڈ سے کوئی چیز باہر نہ نکلے */
}

.track-found-header {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border-subtle);
  width: 100%;
}

.track-header-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 0.5rem;
}

.track-header-top-row .auth-badge {
  margin-bottom: 0 !important;
}

.track-header-top-row .status-pill-lg {
  font-size: 0.82rem;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  flex-shrink: 0;
}

.track-id-meta-box {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  width: 100%;
}

.track-order-id-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
  word-break: break-all; /* لمبی ID خود بخود صفائی سے اگلی لائن پر ایڈجسٹ ہو */
  margin: 0;
  line-height: 1.3;
}


/* Table Dropdown Layering Fix */
.orders-table td {
  position: relative;
}

.orders-table .custom-dropdown .dropdown-list-container {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
  border-radius: var(--radius-md);
}

/* =========================================================
   ORIGINAL SHOP CARD STYLE (LOGO + NAME IN ONE ROW)
   ========================================================= */

.modern-shop-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  cursor: pointer;
  position: relative;
  display: flex;
  flex-direction: column;
  user-select: none;
}

.modern-shop-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px -4px rgba(0, 0, 0, 0.1);
  border-color: var(--primary-color);
}

/* 1. Original Cover Banner */
.shop-card-cover {
  height: 85px;
  position: relative;
  background-size: cover !important;
  background-position: center !important;
  padding: 0.6rem 0.8rem;
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
}

.shop-card-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.05) 100%);
  pointer-events: none;
}

.shop-category-tag {
  position: relative;
  z-index: 2;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(6px);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-pill);
}

/* 2. Main Content Area */
.shop-card-main {
  padding: 0 1rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* 3. Top Row (Logo + Info + Location in One Line) */
.shop-card-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: -28px;
  margin-bottom: 0.65rem;
  position: relative;
  z-index: 5;
}

/* Logo and Name Container */
.shop-logo-info-group {
  display: flex;
  align-items: flex-end;
  gap: 0.65rem;
  flex: 1;
  min-width: 0;
}

/* Squircle Logo */
.shop-logo-sq {
  width: 56px;
  height: 56px;
  min-width: 56px;
  border-radius: 14px;
  background-color: var(--bg-surface);
  border: 3px solid var(--bg-surface);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary-color);
  flex-shrink: 0;
}

.shop-logo-sq img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Shop Name & Handle next to Logo */
.shop-name-block {
  flex: 1;
  min-width: 0;
  padding-bottom: 3px;
}

.shop-name-block h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.25;
}

.shop-handle-sub {
  font-size: 0.76rem;
  color: var(--primary-color);
  font-weight: 600;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Location Icon Button */
.btn-shop-loc-icon {
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  color: var(--primary-color);
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
  margin-bottom: 3px;
}

.btn-shop-loc-icon:hover {
  background-color: var(--primary-color);
  color: #ffffff;
  border-color: var(--primary-color);
}

/* 4. Description Text */
.shop-intro-text {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
  flex: 1;
}

/* Slider Width */
.shops-horizontal-slider .modern-shop-card {
  min-width: 270px;
  max-width: 270px;
  flex: 0 0 auto;
}


/* =========================================================
   PREMIUM PLUS PLAN & 3-DOT QUICK ACTION DROPDOWN STYLING
   ========================================================= */

/* Premium Plus Featured Card */
.plan-card.premium-plus-card {
  border: 2px solid #8b5cf6 !important;
  box-shadow: 0 10px 25px -5px rgba(139, 92, 246, 0.25) !important;
  background: linear-gradient(180deg, var(--bg-surface) 0%, rgba(139, 92, 246, 0.04) 100%);
  position: relative;
}

.plan-card.premium-plus-card .popular-tag {
  background: linear-gradient(135deg, #8b5cf6, #ec4899);
}

/* 3-Dot Dropdown Container */
.order-action-dropdown-wrap {
  position: relative;
  display: inline-block;
}

.btn-dots-menu {
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 50%;
  background-color: var(--bg-elevated);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.95rem;
  transition: all var(--transition-fast);
}

.btn-dots-menu:hover {
  background-color: var(--primary-color);
  color: #ffffff;
  border-color: var(--primary-color);
}

.btn-dots-menu.locked-feature {
  opacity: 0.55;
  cursor: pointer;
}

/* Floating Actions Menu Popover */
.order-action-dropdown-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  width: 210px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  z-index: 1050;
  padding: 0.4rem 0;
  animation: fadeInDown 0.18s ease forwards;
  text-align: left;
}

.contact-action-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.9rem;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  transition: background-color var(--transition-fast);
}

.contact-action-item:hover {
  background-color: var(--bg-elevated);
  text-decoration: none;
}

.contact-action-item i {
  width: 18px;
  text-align: center;
  font-size: 0.95rem;
}

/* Specific Action Colors */
.contact-action-item.wa-action i { color: #25d366; }
.contact-action-item.call-action i { color: #0284c7; }
.contact-action-item.sms-action i { color: #ea580c; }
.contact-action-item.mail-action i { color: #8b5cf6; }

.action-menu-header {
  padding: 0.35rem 0.9rem 0.45rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 0.25rem;
}


/* =========================================================
   MODERN HIGH-END SUBSCRIPTION & PRICING PLANS STYLING
   ========================================================= */

.plans-main-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-top: 0.5rem;
  letter-spacing: -0.02em;
}

/* Responsive 3-Card Grid */
.modern-pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.5rem;
  max-width: 1140px;
  margin: 2rem auto 0;
  align-items: stretch;
}

/* Card Base Structure */
.modern-plan-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 2rem 1.6rem 1.6rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: left;
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.modern-plan-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px -8px rgba(0, 0, 0, 0.12);
}

/* Card Top Section */
.plan-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1.15rem;
}

.icon-basic { background: #e0f2fe; color: #0284c7; }
.icon-premium { background: #ffedd5; color: #ea580c; }
.icon-vip { background: #f3e8ff; color: #9333ea; }

.plan-name {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0 0 0.25rem 0;
  font-family: var(--font-heading);
}

.plan-tagline {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
  min-height: 2.4rem;
  margin-bottom: 1.25rem;
}

/* Price Row */
.plan-price-wrap {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
}

.plan-price-wrap .currency {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.plan-price-wrap .amount {
  font-size: 2.6rem;
  font-weight: 900;
  color: var(--text-primary);
  font-family: var(--font-heading);
  letter-spacing: -0.03em;
  line-height: 1;
}

.plan-price-wrap .cycle {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-left: 2px;
}

.plan-divider {
  height: 1px;
  background: var(--border-color);
  margin: 1.5rem 0 1.25rem;
}

/* Modern Features List */
.modern-feature-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.75rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  flex: 1;
}

.modern-feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.modern-feature-list li strong {
  color: var(--text-primary);
}

.modern-feature-list li.feat-highlight {
  background-color: rgba(139, 92, 246, 0.06);
  padding: 0.4rem 0.6rem;
  border-radius: var(--radius-sm);
  margin: -0.2rem -0.4rem;
}

.modern-feature-list li.feat-disabled {
  color: var(--text-muted);
  opacity: 0.65;
}

.feat-icon {
  font-size: 1rem;
  margin-top: 2px;
  flex-shrink: 0;
}

.text-vip { color: #8b5cf6 !important; }

/* 2. Most Popular Card (Center Focus) */
.plan-popular {
  border: 2px solid var(--primary-color) !important;
  box-shadow: 0 10px 28px -6px rgba(249, 115, 22, 0.22) !important;
}

.plan-popular .amount {
  color: var(--primary-color);
}

/* 3. VIP Ultimate Card (Royal Purple Accent) */
.plan-vip {
  border: 2px solid #8b5cf6 !important;
  background: linear-gradient(180deg, var(--bg-surface) 0%, rgba(139, 92, 246, 0.04) 100%);
  box-shadow: 0 10px 28px -6px rgba(139, 92, 246, 0.25) !important;
}

.vip-price .amount {
  color: #8b5cf6;
}

/* Floating Badges */
.floating-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.28rem 0.9rem;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  white-space: nowrap;
}

.badge-popular {
  background: linear-gradient(135deg, var(--primary-color), #ea580c);
}

.badge-vip {
  background: linear-gradient(135deg, #8b5cf6, #ec4899);
}

/* Action Buttons */
.btn-plan {
  padding: 0.85rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.btn-vip {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 14px rgba(139, 92, 246, 0.35);
}

.btn-vip:hover {
  background: linear-gradient(135deg, #7c3aed, #6d28d9);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.5);
}

.shadow-accent {
  box-shadow: 0 4px 14px rgba(249, 115, 22, 0.35);
}

/* Active Plan State (If seller is already subscribed to this plan) */
.active-plan-badge {
  background-color: var(--bg-elevated);
  border: 1px solid var(--border-color);
  color: #10b981;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 0.75rem;
  border-radius: var(--radius-md);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
}

@media (max-width: 768px) {
  .plans-main-title {
    font-size: 1.7rem;
  }
  .modern-plan-card {
    padding: 1.75rem 1.25rem 1.25rem;
  }
  .plan-price-wrap .amount {
    font-size: 2.2rem;
  }
}


/* =========================================================
   CUSTOM DATE & TIME WRAPPER STYLING
   ========================================================= */

.custom-datetime-container {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.custom-datetime-container:focus-within {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.datetime-prefix-icon {
  position: absolute;
  left: 0.85rem;
  color: var(--primary-color);
  font-size: 0.95rem;
  pointer-events: none;
  z-index: 2;
}

.custom-datetime-input {
  width: 100%;
  padding: 0.65rem 0.9rem 0.65rem 2.4rem;
  background-color: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 0.92rem;
  font-family: var(--font-primary);
  font-weight: 500;
  outline: none;
  cursor: pointer;
}

/* Date Filter Box for Orders List Header */
.date-filter-box {
  min-width: 165px;
}

.date-filter-box .custom-datetime-container {
  border-radius: var(--radius-md);
  background-color: var(--bg-surface);
}

.date-filter-box .custom-datetime-input {
  padding: 0.35rem 0.65rem 0.35rem 2.2rem;
  font-size: 0.82rem;
  height: 36px;
}

.date-filter-box .datetime-prefix-icon {
  left: 0.75rem;
  font-size: 0.85rem;
}

/* Dark Mode Native Picker Inversion */
[data-theme="dark"] input[type="date"]::-webkit-calendar-picker-indicator,
[data-theme="dark"] input[type="time"]::-webkit-calendar-picker-indicator {
  filter: invert(0.85) hue-rotate(180deg);
  cursor: pointer;
}

input[type="date"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
}

input[type="date"]::-webkit-calendar-picker-indicator:hover,
input[type="time"]::-webkit-calendar-picker-indicator:hover {
  opacity: 1;
}

@media (max-width: 640px) {
  .date-filter-box {
    width: 100%;
  }
}

/* Browser ke default Date & Time calendar icon ko adjust karne ke liye */
input[type="date"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s;
}

input[type="date"]::-webkit-calendar-picker-indicator:hover,
input[type="time"]::-webkit-calendar-picker-indicator:hover {
  opacity: 1;
}

[data-theme="dark"] input[type="date"]::-webkit-calendar-picker-indicator,
[data-theme="dark"] input[type="time"]::-webkit-calendar-picker-indicator {
  filter: invert(0.9);
}


/* =========================================================
   PAYMENT METHOD ACCORDION
   ========================================================= */

.faq-payment-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 22px;
}

/* =========================================================
   PAYMENT METHOD CARD
   ========================================================= */

.faq-pay-card {
  position: relative;
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  overflow: hidden;

  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    background-color 0.25s ease;
}

.faq-pay-card:hover {
  border-color: rgba(249, 115, 22, 0.35);
}

.faq-pay-card.active {
  border-color: var(--primary-color);
  box-shadow:
    0 5px 18px rgba(0, 0, 0, 0.06),
    0 0 0 1px rgba(249, 115, 22, 0.06);
}

/* =========================================================
   PAYMENT METHOD HEADER
   ========================================================= */

.faq-pay-header {
  width: 100%;
  min-height: 68px;

  padding: 12px 15px;

  background: transparent;
  border: none;

  display: flex;
  align-items: center;
  justify-content: space-between;

  cursor: pointer;
  text-align: left;

  color: var(--text-primary);

  gap: 12px;

  -webkit-tap-highlight-color: transparent;
}

/* Left side of header */

.faq-header-left {
  display: flex;
  align-items: center;
  gap: 12px;

  min-width: 0;
}

/* Payment method icon */

.faq-header-left > i {
  width: 40px;
  height: 40px;
  min-width: 40px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 11px;

  background: var(--bg-elevated);

  font-size: 18px;

  transition:
    background-color 0.25s ease,
    transform 0.25s ease;
}

.faq-pay-card.active .faq-header-left > i {
  background: var(--primary-light);
}

/* Payment method name */

.faq-header-left span {
  font-size: 0.94rem;
  line-height: 1.3;

  font-weight: 700;

  color: var(--text-primary);

  white-space: normal;
}

/* =========================================================
   CHEVRON
   ========================================================= */

.faq-pay-header .chevron-icon {
  width: 30px;
  height: 30px;
  min-width: 30px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;

  background: var(--bg-elevated);

  color: var(--text-muted);

  font-size: 0.72rem;

  transition:
    transform 0.25s ease,
    color 0.25s ease,
    background-color 0.25s ease;
}

.faq-pay-card.active .chevron-icon {
  transform: rotate(180deg);

  color: var(--primary-color);

  background: var(--primary-light);
}

/* =========================================================
   ACCORDION BODY
   ========================================================= */

.faq-pay-body {
  max-height: 0;

  opacity: 0;

  overflow: hidden;

  padding: 0 15px;

  background: var(--bg-elevated);

  border-top: 0 solid var(--border-subtle);

  transition:
    max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.2s ease,
    padding 0.3s ease,
    border-top 0.3s ease;
}

.faq-pay-card.active .faq-pay-body {
  max-height: 350px;

  opacity: 1;

  padding: 15px;

  border-top: 1px solid var(--border-subtle);
}

/* =========================================================
   PAYMENT INFORMATION BOX
   ========================================================= */

.payment-instruction-box {
  display: flex;
  align-items: flex-start;

  gap: 9px;

  margin-bottom: 14px;

  padding: 10px 12px;

  background: var(--primary-light);

  border: 1px solid rgba(249, 115, 22, 0.18);

  border-radius: 10px;

  color: var(--text-secondary);

  font-size: 0.78rem;
  line-height: 1.5;
}

.payment-instruction-box i {
  flex-shrink: 0;

  margin-top: 2px;

  color: var(--primary-color);

  font-size: 0.9rem;
}

[data-theme="dark"] .payment-instruction-box {
  background: rgba(249, 115, 22, 0.08);

  border-color: rgba(249, 115, 22, 0.18);

  color: #cbd5e1;
}

/* =========================================================
   ACCOUNT DETAILS BOX
   ========================================================= */

.faq-account-rows {
  display: flex;
  flex-direction: column;

  overflow: hidden;

  background: var(--bg-surface);

  border: 1px solid var(--border-color);

  border-radius: 11px;
}

/* =========================================================
   ACCOUNT DETAIL ROW
   ========================================================= */

.faq-acc-row {
  min-height: 44px;

  padding: 9px 11px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 15px;

  color: var(--text-secondary);

  font-size: 0.82rem;

  border-bottom: 1px solid var(--border-subtle);
}

.faq-acc-row:last-child {
  border-bottom: none;
}

/* Left label */

.faq-acc-row > span {
  flex-shrink: 0;

  color: var(--text-secondary);

  font-weight: 500;
}

/* Right normal value */

.faq-acc-row > strong {
  min-width: 0;

  color: var(--text-primary);

  font-weight: 700;

  text-align: right;

  overflow-wrap: anywhere;
}

/* =========================================================
   ACCOUNT NUMBER / IBAN
   ========================================================= */

.faq-acc-row > code {
  display: block;

  max-width: 72%;

  padding: 5px 8px;

  background: var(--primary-light);

  border: 1px solid rgba(249, 115, 22, 0.16);

  border-radius: 7px;

  color: var(--primary-color);

  font-family: inherit;

  font-size: 0.78rem;

  font-weight: 800;

  line-height: 1.4;

  text-align: right;

  white-space: normal;

  word-break: break-all;

  overflow-wrap: anywhere;
}

/* =========================================================
   PAYABLE AMOUNT
   ========================================================= */

.payable-highlight-box {
  width: 100%;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 15px;

  margin-top: 4px;
  margin-bottom: 20px;

  padding: 15px 17px;

  background:
    linear-gradient(
      135deg,
      var(--primary-light),
      var(--bg-surface)
    );

  border: 1px solid rgba(249, 115, 22, 0.22);

  border-radius: 14px;
}

.payable-highlight-box > span {
  color: var(--text-secondary);

  font-size: 0.84rem;

  font-weight: 600;
}

.payable-highlight-box > strong {
  color: var(--primary-color);

  font-size: 1.25rem;

  font-weight: 800;

  letter-spacing: -0.3px;

  white-space: nowrap;
}

/* =========================================================
   VERIFICATION FORM
   ========================================================= */

#plan-payment-form {
  margin-top: 4px;
}

#plan-payment-form .form-group {
  margin-bottom: 16px;
}

/* Labels */

#plan-payment-form label {
  display: block;

  margin-bottom: 7px;

  color: var(--text-primary);

  font-size: 0.84rem;

  font-weight: 700;
}

/* Inputs */

#plan-payment-form .form-control {
  width: 100%;

  min-height: 46px;

  padding: 10px 12px;

  background: var(--bg-surface);

  border: 1px solid var(--border-color);

  border-radius: 10px;

  color: var(--text-primary);

  font-size: 0.88rem;

  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease;
}

#plan-payment-form .form-control::placeholder {
  color: var(--text-muted);

  opacity: 0.75;
}

#plan-payment-form .form-control:hover {
  border-color: rgba(249, 115, 22, 0.35);
}

#plan-payment-form .form-control:focus {
  outline: none;

  border-color: var(--primary-color);

  box-shadow:
    0 0 0 3px rgba(249, 115, 22, 0.10);
}

/* Helper text */

#plan-payment-form small {
  display: block;

  margin-top: 6px;

  color: var(--text-muted);

  font-size: 0.72rem;

  line-height: 1.45;
}

/* =========================================================
   SUBMIT BUTTON
   ========================================================= */

#btn-submit-sub-req {
  width: 100%;

  min-height: 50px;

  border-radius: 11px;

  font-weight: 750;

  letter-spacing: 0.1px;

  box-shadow:
    0 5px 14px rgba(249, 115, 22, 0.15);

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    opacity 0.2s ease;
}

#btn-submit-sub-req:hover {
  transform: translateY(-1px);

  box-shadow:
    0 7px 18px rgba(249, 115, 22, 0.20);
}

#btn-submit-sub-req:active {
  transform: translateY(0);

  box-shadow:
    0 3px 9px rgba(249, 115, 22, 0.15);
}

/* =========================================================
   SUCCESS / CONFIRMATION BOX
   ========================================================= */

.sub-success-box {
  margin-top: 22px;

  padding: 22px 18px;

  text-align: center;

  background: var(--bg-elevated);

  border: 1px solid var(--border-color);

  border-radius: 15px;
}

.sub-success-box .success-icon {
  width: 52px;
  height: 52px;

  margin: 0 auto 12px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;

  background: var(--primary-light);

  color: var(--primary-color);

  font-size: 20px;
}

.sub-success-box h3 {
  margin-bottom: 7px;

  color: var(--text-primary);

  font-size: 1.1rem;
}

.sub-success-box .lead {
  margin-bottom: 10px;

  color: var(--primary-color);

  font-size: 0.9rem;

  font-weight: 700;
}

.sub-success-box p.text-muted {
  font-size: 0.82rem;

  line-height: 1.55;
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 576px) {

  .faq-payment-container {
    gap: 9px;
  }

  /* Header */

  .faq-pay-header {
    min-height: 62px;

    padding: 10px 12px;
  }

  .faq-header-left {
    gap: 10px;
  }

  .faq-header-left > i {
    width: 37px;
    height: 37px;
    min-width: 37px;

    border-radius: 10px;

    font-size: 16px;
  }

  .faq-header-left span {
    font-size: 0.87rem;
  }

  .faq-pay-header .chevron-icon {
    width: 28px;
    height: 28px;
    min-width: 28px;
  }

  /* Body */

  .faq-pay-card.active .faq-pay-body {
    padding: 12px;
  }

  /* Info */

  .payment-instruction-box {
    padding: 9px 10px;

    font-size: 0.74rem;
  }

  /* Account rows */

  .faq-acc-row {
    min-height: 43px;

    padding: 8px 9px;

    gap: 10px;

    font-size: 0.77rem;
  }

  .faq-acc-row > code {
    max-width: 68%;

    padding: 4px 6px;

    font-size: 0.70rem;
  }

  /* Payable */

  .payable-highlight-box {
    padding: 13px 14px;
  }

  .payable-highlight-box > span {
    font-size: 0.80rem;
  }

  .payable-highlight-box > strong {
    font-size: 1.15rem;
  }

  /* Form */

  #plan-payment-form label {
    font-size: 0.82rem;
  }

  #plan-payment-form .form-control {
    min-height: 45px;

    font-size: 0.86rem;
  }
}

/* =========================================================
   VERY SMALL DEVICES
   ========================================================= */

@media (max-width: 380px) {

  .faq-pay-header {
    padding: 9px 10px;
  }

  .faq-header-left > i {
    width: 35px;
    height: 35px;
    min-width: 35px;
  }

  .faq-header-left span {
    font-size: 0.83rem;
  }

  .faq-acc-row {
    align-items: flex-start;
  }

  .faq-acc-row > code {
    max-width: 65%;
    text-align: right;
  }

  .payable-highlight-box {
    padding: 12px;
  }
}


.account-value {
  min-width: 0;
  max-width: 72%;

  display: flex;
  align-items: center;
  justify-content: flex-end;

  gap: 6px;
}

.account-value code {
  display: block;

  min-width: 0;
  max-width: 100%;

  padding: 5px 8px;

  background: var(--primary-light);
  border: 1px solid rgba(249, 115, 22, 0.16);
  border-radius: 7px;

  color: var(--primary-color);

  font-family: inherit;
  font-size: 0.76rem;
  font-weight: 800;

  line-height: 1.4;

  text-align: right;

  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-all;
}

.copy-account-btn {
  width: 30px;
  height: 30px;

  min-width: 30px;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 0;

  background: var(--bg-surface);

  border: 1px solid var(--border-color);
  border-radius: 7px;

  color: var(--text-secondary);

  cursor: pointer;

  transition:
    color 0.2s ease,
    border-color 0.2s ease,
    background-color 0.2s ease;
}

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

.copy-account-btn:active {
  transform: scale(0.94);
}

@media (max-width: 576px) {

  .account-value {
    max-width: 68%;
    gap: 5px;
  }

  .account-value code {
    font-size: 0.68rem;
    padding: 4px 6px;
  }

  .copy-account-btn {
    width: 28px;
    height: 28px;
    min-width: 28px;

    font-size: 0.75rem;
  }
}

/* =========================================================
   IBAN - LABEL ON TOP, VALUE BELOW
   ========================================================= */

.faq-acc-row.iban-row {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 7px;
}

/* IBAN label */
.faq-acc-row.iban-row > span {
  display: block;

  color: var(--text-secondary);

  font-size: 0.78rem;
  font-weight: 600;

  text-align: left;
}

/* IBAN value + copy button */
.faq-acc-row.iban-row .account-value {
  width: 100%;
  max-width: 100%;

  display: flex;
  align-items: center;

  gap: 7px;
}

/* Actual IBAN */
.faq-acc-row.iban-row .account-value code {
  flex: 1;
  min-width: 0;
  max-width: none;

  display: block;

  padding: 8px 10px;

  background: var(--primary-light);

  border: 1px solid rgba(249, 115, 22, 0.16);

  border-radius: 8px;

  color: var(--primary-color);

  font-family: inherit;

  font-size: 0.82rem;
  font-weight: 800;

  line-height: 1.35;

  text-align: left;

  white-space: nowrap;

  overflow: hidden;
  text-overflow: ellipsis;
}

/* Copy button */
.faq-acc-row.iban-row .copy-account-btn {
  width: 36px;
  height: 36px;
  min-width: 36px;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 0;

  background: var(--bg-surface);

  border: 1px solid var(--border-color);

  border-radius: 8px;

  color: var(--text-secondary);

  cursor: pointer;

  transition:
    color 0.2s ease,
    border-color 0.2s ease,
    background-color 0.2s ease,
    transform 0.15s ease;
}

.faq-acc-row.iban-row .copy-account-btn:hover {
  color: var(--primary-color);

  border-color: var(--primary-color);

  background: var(--primary-light);
}

.faq-acc-row.iban-row .copy-account-btn:active {
  transform: scale(0.94);
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 576px) {

  .faq-acc-row.iban-row {
    gap: 6px;
  }

  .faq-acc-row.iban-row .account-value {
    gap: 6px;
  }

  .faq-acc-row.iban-row .account-value code {
    font-size: 0.72rem;

    padding: 8px;

    letter-spacing: 0.1px;
  }

  .faq-acc-row.iban-row .copy-account-btn {
    width: 34px;
    height: 34px;
    min-width: 34px;
  }
}


/* ==========================================================================
   PURE FLOW PRODUCT PAGE & 100% FITTED IMAGE
   ========================================================================== */

/* Breadcrumbs (Single Line & No Wrap Fix) */
.clean-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
}

.clean-breadcrumbs a {
  color: var(--text-secondary);
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.clean-breadcrumbs a:hover {
  color: var(--primary-color);
  text-decoration: none;
}

/* Arrow (>) Separator ko dabne se rokna */
.clean-breadcrumbs span:not(#product-breadcrumb-title) {
  flex-shrink: 0;
  color: var(--text-muted);
}

/* Product ka name lamba hone par '...' dikhana */
#product-breadcrumb-title,
.clean-breadcrumbs span:last-child {
  color: var(--text-primary);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  flex: 1;
}

/* 2-Column Top Layout */
.product-top-row {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2.5rem;
  align-items: start;
}

@media (max-width: 850px) {
  .product-top-row {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* -------------------------------------------------------------
   IMAGE VIEWPORT FIX: 100% FITTED IMAGE (NO CROPPING / NO CUTTING)
   ------------------------------------------------------------- */
.product-image-column {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.main-image-viewport {
  width: 100%;
  height: 420px; /* Fixed height for perfect balance */
  max-height: 450px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

@media (max-width: 640px) {
  .main-image-viewport {
    height: 320px; /* Mobile par clean square-ish viewport */
  }
}

/* 🔥 YE HAI MAIN FIX: Photo poori fit hogi, kahin se bhi nahi katay gi */
.main-image-viewport img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain !important; /* Image crops nahi hogi, poori fit aayegi */
  padding: 12px;
  display: block;
  transition: transform 0.25s ease;
}

.gallery-counter-badge {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(15, 23, 42, 0.75);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
  z-index: 5;
}

.gallery-arrow-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: #0f172a;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  box-shadow: var(--shadow-sm);
}

.prev-arrow { left: 10px; }
.next-arrow { right: 10px; }

.thumbnails-track {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0.2rem 0;
}

.thumb-item {
  width: 64px;
  height: 64px;
  min-width: 64px;
  border-radius: var(--radius-md);
  border: 2px solid var(--border-color);
  background-color: var(--bg-surface);
  object-fit: contain; /* Thumbnails bhi bina kate fit honge */
  padding: 3px;
  cursor: pointer;
}

.thumb-item.active {
  border-color: var(--primary-color) !important;
}

.gallery-dots-track {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 0.25rem;
}

/* Right Buying Info */
.product-info-column {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.seller-inline-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.84rem;
  color: var(--text-secondary);
  cursor: pointer;
  width: fit-content;
}

.seller-inline-tag strong {
  color: var(--primary-color);
}

.pd-hero-title {
  font-size: 1.85rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--text-primary);
  margin: 0;
}

.pd-rating-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.86rem;
  color: var(--text-muted);
}

.stars-gold i {
  color: #f59e0b;
}

.stock-pill {
  color: #10b981;
  font-weight: 700;
  font-size: 0.8rem;
}

.pd-price-row {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
}

.currency-label {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-color);
}

.price-number {
  font-size: 2.3rem;
  font-weight: 900;
  color: var(--primary-color);
  font-family: var(--font-heading);
  line-height: 1;
}

.tax-text {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-left: 0.5rem;
}

.pd-short-highlights {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.pd-short-highlights strong {
  color: var(--text-primary);
  display: block;
  margin-bottom: 0.2rem;
}

.pd-action-row {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
  margin: 0.5rem 0;
}

.qty-picker {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-pill);
  background-color: var(--bg-surface);
}

.qty-picker button {
  width: 34px;
  height: 36px;
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--text-primary);
}

.qty-picker input {
  width: 40px;
  border: none;
  background: transparent;
  text-align: center;
  font-weight: 800;
  color: var(--text-primary);
  outline: none;
}

.btn-action {
  flex: 1;
  min-width: 140px;
  height: 42px;
  border-radius: var(--radius-pill) !important;
  font-weight: 700;
}

.perks-inline-list {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: var(--text-secondary);
  padding-top: 0.5rem;
}

.perks-inline-list span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

/* -------------------------------------------------------------
   PURE CONTINUOUS DIVIDERS & TEXT SECTIONS
   ------------------------------------------------------------- */
.pd-divider {
  border: none;
  border-top: 1px solid var(--border-color);
  margin: 1.5rem 0;
}

.pd-text-block {
  display: flex;
  flex-direction: column;
}

.section-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pd-description-body {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

/* -------------------------------------------------------------
   GOOGLE PLAY STORE STYLE REVIEWS (MATCHING SCREENSHOT)
   ------------------------------------------------------------- */
.reviews-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.playstore-reviews-stream {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.gp-review-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
}

.gp-user-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.gp-user-info {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

/* Circle Avatar jaise screenshot me 'S' green avatar hai */
.gp-avatar {
  width: 38px;
  height: 38px;
  min-width: 38px;
  border-radius: 50%;
  background-color: #689f38;
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
}

.gp-name {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text-primary);
}

.gp-dots-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.1rem;
  padding: 0.2rem 0.5rem;
}

/* Blue Stars & Date e.g. 13/09/2026 */
.gp-stars-date-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 0.15rem;
}

.gp-stars {
  display: flex;
  gap: 0.15rem;
  color: #0b57d0; /* Google Play Blue Stars */
  font-size: 0.85rem;
}

.gp-date {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.gp-comment-text {
  font-size: 0.94rem;
  line-height: 1.55;
  color: var(--text-primary);
  margin: 0.35rem 0 0.2rem 0;
}

/* "1 person found this helpful" */
.gp-helpful-count {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* "Was this review helpful? [Yes] [No]" */
.gp-feedback-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: 0.35rem;
  flex-wrap: wrap;
}

.gp-feedback-prompt {
  font-size: 0.84rem;
  color: var(--text-secondary);
}

.gp-feedback-buttons {
  display: flex;
  gap: 0.5rem;
}

.gp-btn-pill {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 0.35rem 1.25rem;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-primary);
}

.gp-btn-pill:hover, .gp-btn-pill.active {
  background: var(--primary-light);
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.gp-btn-reply-link {
  background: none;
  border: none;
  color: var(--primary-color);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

/* Store Owner Response */
.gp-owner-reply-bubble {
  margin-top: 0.6rem;
  background-color: var(--bg-elevated);
  border-left: 3px solid var(--primary-color);
  padding: 0.75rem 1rem;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.gp-owner-reply-head {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.25rem;
}

.gp-owner-msg {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin: 0;
}

/* Inline Reply Input */
.gp-inline-reply-box {
  margin-top: 0.6rem;
  display: flex;
  gap: 0.5rem;
  background-color: var(--bg-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-pill);
  padding: 0.3rem 0.6rem;
}

.gp-inline-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-size: 0.86rem;
  padding: 0.2rem 0.5rem;
  color: var(--text-primary);
}


/* =========================================================
   CUSTOM DIV-BASED PHONE NUMBER GROUP (CHECKOUT)
   ========================================================= */

.intl-phone-input-group {
  display: flex;
  align-items: stretch;
  width: 100%;
  gap: 0;
}

/* Country Code Dropdown Container */
.phone-dial-dropdown {
  width: 125px !important;
  min-width: 125px;
  flex-shrink: 0;
}

.phone-dial-dropdown .dropdown-select-btn {
  border-top-right-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
  background-color: var(--bg-elevated) !important;
  border-right: none !important;
  font-weight: 700;
  padding: 0.65rem 0.65rem;
}

.phone-dial-dropdown .dropdown-list-container {
  width: 260px !important;
  max-width: 85vw;
  z-index: 1200;
}

/* Custom Dial Code input box */
#custom-dial-code-wrap input {
  border-radius: 0 !important;
  border-right: none !important;
  background-color: var(--bg-elevated);
}

/* Phone input field (Right side) */
.phone-number-field {
  flex: 1;
}

.phone-number-field input {
  border-top-left-radius: 0 !important;
  border-bottom-left-radius: 0 !important;
  width: 100%;
}

@media (max-width: 480px) {
  .phone-dial-dropdown {
    width: 110px !important;
    min-width: 110px;
  }
}

/* =========================================================
   BULK IMPORT WITH IMAGE ASSIGNMENT STYLES
   ========================================================= */

.bulk-supported-note {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-elevated);
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.bulk-image-format-banner {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
}

.bulk-staging-card {
  background: var(--bg-surface);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1rem;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s ease;
}

.bulk-staging-card:hover {
  border-color: rgba(249, 115, 22, 0.4);
}

.bulk-staging-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 0.6rem;
}

.bulk-item-dropzone {
  border: 2px dashed var(--border-color);
  background: var(--bg-elevated);
  border-radius: var(--radius-md);
  padding: 0.85rem;
  text-align: center;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  transition: all 0.2s ease;
}

.bulk-item-dropzone:hover {
  background: var(--primary-light);
  border-color: var(--primary-color);
}

.bulk-preview-thumbs-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
}

.bulk-thumb-box {
  position: relative;
  width: 65px;
  height: 65px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1.5px solid var(--border-color);
  background: var(--bg-elevated);
}

.bulk-thumb-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bulk-thumb-box .btn-remove-thumb {
  position: absolute;
  top: 2px;
  right: 2px;
  background: rgba(239, 68, 68, 0.9);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: 0.65rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.font-xs { font-size: 0.72rem; }
.font-sm { font-size: 0.84rem; }
.font-md { font-size: 0.95rem; }


/* --- Smooth Fade-In Animation for New Batches --- */
/* =========================================================
   LUXURY SKELETON SHIMMER PLACEHOLDERS
   ========================================================= */

@keyframes shimmerWave {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.skeleton-shimmer {
  background: linear-gradient(
    90deg,
    var(--bg-elevated) 25%,
    var(--bg-hover) 50%,
    var(--bg-elevated) 75%
  );
  background-size: 200% 100%;
  animation: shimmerWave 1.6s infinite ease-in-out;
  border-radius: var(--radius-sm);
}

/* Skeleton Card Structure matching your Product Card */
.product-card-skeleton {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.skeleton-img-box {
  width: 100%;
  padding-top: 80%; /* Matches your 80% compact ratio */
  position: relative;
}

.skeleton-info-box {
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.skeleton-line {
  height: 12px;
  border-radius: 4px;
}
.skeleton-line.short { width: 45%; height: 10px; }
.skeleton-line.title { width: 90%; height: 14px; }
.skeleton-line.desc { width: 75%; height: 10px; }
.skeleton-line.price { width: 50%; height: 16px; margin: 0.2rem 0; }
.skeleton-btn-bar { height: 26px; border-radius: 5px; width: 100%; margin-top: 0.2rem; }

/* Smooth fade-in when real cards replace skeletons */
@keyframes cardSmoothFadeIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.product-card.smooth-reveal,
.master-card.smooth-reveal {
  animation: cardSmoothFadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* =========================================================
   CHECKOUT RESPONSIVENESS & OVERFLOW FIX
   Based on actual #view-checkout HTML
   ========================================================= */


/* =========================================================
   1. DESKTOP SAFETY
   Desktop layout ko intentionally change nahi kiya gaya
   ========================================================= */

#view-checkout {
  box-sizing: border-box;
}

#view-checkout *,
#view-checkout *::before,
#view-checkout *::after {
  box-sizing: border-box;
}


/* =========================================================
   2. MOBILE MAIN CHECKOUT LAYOUT
   ========================================================= */

@media (max-width: 850px) {

  #view-checkout {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  #view-checkout > .container {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Left + Summary cards vertically stack */
  #view-checkout .checkout-grid-layout {
    display: flex !important;
    flex-direction: column !important;

    width: 100% !important;
    max-width: 100% !important;

    gap: 1.25rem !important;

    box-sizing: border-box !important;
  }

  #view-checkout .checkout-left-card,
  #view-checkout .checkout-summary-card {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;

    box-sizing: border-box !important;
  }

  #view-checkout .checkout-left-card {
    padding: 1rem !important;
  }

  #view-checkout .checkout-summary-card {
    padding: 1rem !important;
    overflow: hidden !important;
  }
}


/* =========================================================
   3. MOBILE FORM ROW
   IMPORTANT:
   Full Name and WhatsApp ko separate rows banata hai
   ========================================================= */

@media (max-width: 850px) {

  #view-checkout .checkout-left-card > .form-row:first-of-type {
    display: flex !important;
    flex-direction: column !important;

    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;

    gap: 0 !important;

    box-sizing: border-box !important;
  }

  /* Full Name */
  #view-checkout .checkout-left-card > .form-row:first-of-type > .form-group:first-child {
    display: block !important;

    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;

    flex: 0 0 100% !important;

    box-sizing: border-box !important;
  }

  /* WhatsApp / Mobile */
  #view-checkout .checkout-left-card > .form-row:first-of-type > .form-group:nth-child(2) {
    display: block !important;

    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;

    flex: 0 0 100% !important;

    box-sizing: border-box !important;
  }

  /* Inputs inside both */
  #view-checkout .checkout-left-card > .form-row:first-of-type .form-control {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;

    box-sizing: border-box !important;
  }
}


/* =========================================================
   4. OTHER FORM ROWS
   City + Area ko mobile par bhi separate rows
   ========================================================= */

@media (max-width: 850px) {

  #view-checkout .checkout-left-card .form-row:not(:first-of-type) {
    display: flex !important;
    flex-direction: column !important;

    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;

    gap: 0 !important;

    box-sizing: border-box !important;
  }

  #view-checkout .checkout-left-card .form-row:not(:first-of-type) > .form-group,
  #view-checkout .checkout-left-card .form-row:not(:first-of-type) > .flex-1 {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;

    flex: 0 0 100% !important;

    box-sizing: border-box !important;
  }
}


/* =========================================================
   5. GENERAL MOBILE FORM CONTROL
   ========================================================= */

@media (max-width: 850px) {

  #view-checkout input,
  #view-checkout textarea,
  #view-checkout select {
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  #view-checkout .form-control {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;

    box-sizing: border-box !important;
  }
}


/* =========================================================
   6. PHONE INPUT GROUP
   Country + Custom Code + Number
   HAMESHA EK HI LINE MEIN
   ========================================================= */

#view-checkout .intl-phone-input-group {
  display: flex !important;
  flex-direction: row !important;
  align-items: stretch !important;

  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;

  gap: 0 !important;
  flex-wrap: nowrap !important;

  box-sizing: border-box !important;
}


/* =========================================================
   7. COUNTRY CODE DROPDOWN
   ========================================================= */

#view-checkout .phone-dial-dropdown {
  display: block !important;

  flex: 0 0 105px !important;

  width: 105px !important;
  min-width: 105px !important;
  max-width: 105px !important;

  box-sizing: border-box !important;
}

#view-checkout .phone-dial-dropdown .dropdown-select-btn {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;

  width: 100% !important;
  max-width: 100% !important;

  box-sizing: border-box !important;

  border-top-right-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
  border-right: none !important;

  padding: 0.65rem 0.5rem !important;

  font-size: 0.82rem !important;

  white-space: nowrap !important;
  overflow: hidden !important;
}

#view-checkout .phone-dial-dropdown .dropdown-label {
  min-width: 0 !important;

  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}


/* =========================================================
   8. CUSTOM COUNTRY CODE FIELD
   Sirf Custom Code select hone par visible hota hai
   ========================================================= */

#view-checkout #custom-dial-code-wrap {
  flex: 0 0 60px !important;

  width: 60px !important;
  min-width: 60px !important;
  max-width: 60px !important;

  box-sizing: border-box !important;
}

#view-checkout #custom-dial-code-wrap input {
  display: block !important;

  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;

  height: 100% !important;

  box-sizing: border-box !important;

  border-radius: 0 !important;
  border-right: none !important;

  text-align: center !important;

  padding: 0.65rem 0.2rem !important;

  font-size: 0.82rem !important;
}


/* =========================================================
   9. MAIN PHONE NUMBER FIELD
   Remaining POORI WIDTH lega
   ========================================================= */

#view-checkout .phone-number-field {
  display: block !important;

  flex: 1 1 0% !important;

  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;

  box-sizing: border-box !important;
}

#view-checkout .phone-number-field input {
  display: block !important;

  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;

  height: 100% !important;

  box-sizing: border-box !important;

  border-top-left-radius: 0 !important;
  border-bottom-left-radius: 0 !important;

  font-size: 0.88rem !important;

  padding: 0.65rem 0.75rem !important;
}


/* =========================================================
   10. PHONE HELPER TEXT
   ========================================================= */

@media (max-width: 850px) {

  #view-checkout .intl-phone-input-group + small {
    display: block !important;

    width: 100% !important;
    max-width: 100% !important;

    line-height: 1.4 !important;

    margin-top: 0.35rem !important;

    box-sizing: border-box !important;
  }
}


/* =========================================================
   11. ORDER SUMMARY
   ========================================================= */

#view-checkout .checkout-items-list {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;

  box-sizing: border-box !important;

  overflow: hidden !important;
}


/* =========================================================
   12. SUMMARY PRODUCT ITEM
   ========================================================= */

#view-checkout .summary-product-item {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;

  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;

  gap: 0.5rem !important;

  box-sizing: border-box !important;
}


/* =========================================================
   13. PRODUCT LEFT SIDE
   ========================================================= */

#view-checkout .summary-product-left {
  display: flex !important;
  align-items: center !important;

  flex: 1 1 auto !important;

  width: auto !important;
  min-width: 0 !important;
  max-width: 100% !important;

  gap: 0.5rem !important;

  box-sizing: border-box !important;
}


/* =========================================================
   14. PRODUCT THUMBNAIL
   ========================================================= */

#view-checkout .summary-product-thumb {
  flex: 0 0 auto !important;

  max-width: 60px !important;

  box-sizing: border-box !important;
}


/* =========================================================
   15. PRODUCT TEXT
   ========================================================= */

#view-checkout .summary-product-text {
  flex: 1 1 auto !important;

  min-width: 0 !important;
  max-width: 100% !important;

  box-sizing: border-box !important;
}

#view-checkout .summary-product-name {
  display: block !important;

  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;

  overflow: hidden !important;

  text-overflow: ellipsis !important;

  white-space: nowrap !important;
}


/* =========================================================
   16. PRODUCT PRICE
   ========================================================= */

#view-checkout .summary-price {
  flex: 0 0 auto !important;
  flex-shrink: 0 !important;

  white-space: nowrap !important;

  text-align: right !important;

  margin-left: auto !important;

  max-width: max-content !important;
  min-width: max-content !important;

  box-sizing: border-box !important;
}


/* =========================================================
   17. CALCULATION SECTION
   ========================================================= */

#view-checkout .checkout-calc-section {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;

  box-sizing: border-box !important;
}

#view-checkout .checkout-calc-section .summary-line {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;

  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;

  gap: 0.75rem !important;

  box-sizing: border-box !important;
}


/* =========================================================
   18. SUMMARY LEFT LABEL
   ========================================================= */

#view-checkout .checkout-calc-section .summary-line > span:first-child,
#view-checkout .checkout-calc-section .summary-line > strong:first-child,
#view-checkout .checkout-calc-section .delivery-label-box {
  flex: 1 1 auto !important;

  min-width: 0 !important;

  overflow: hidden !important;

  text-overflow: ellipsis !important;

  white-space: nowrap !important;
}


/* =========================================================
   19. ALL SUMMARY PRICES
   ========================================================= */

#view-checkout .summary-price,
#view-checkout .grand-total-price {
  flex: 0 0 auto !important;
  flex-shrink: 0 !important;

  white-space: nowrap !important;

  text-align: right !important;

  margin-left: auto !important;

  max-width: max-content !important;
  min-width: max-content !important;

  box-sizing: border-box !important;
}

#view-checkout .grand-total-price {
  font-size: 1.25rem !important;
}


/* =========================================================
   20. DELIVERY NOTICE
   ========================================================= */

#view-checkout .delivery-negotiable-notice {
  width: 100% !important;
  max-width: 100% !important;

  box-sizing: border-box !important;

  overflow-wrap: anywhere !important;
  word-break: break-word !important;
}

#view-checkout .delivery-negotiable-notice span {
  min-width: 0 !important;

  overflow-wrap: anywhere !important;
  word-break: break-word !important;
}


/* =========================================================
   21. PAYMENT METHOD SECTION
   ========================================================= */

#view-checkout .payment-method-selector {
  width: 100% !important;
  max-width: 100% !important;

  box-sizing: border-box !important;
}


/* =========================================================
   22. PAYMENT RADIO CARD
   ========================================================= */

#view-checkout .radio-card {
  display: flex !important;
  align-items: flex-start !important;

  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;

  padding: 0.85rem !important;

  box-sizing: border-box !important;
}

#view-checkout .radio-card > input {
  flex: 0 0 auto !important;

  width: auto !important;
  max-width: none !important;

  margin-top: 0.2rem !important;
}

#view-checkout .radio-content {
  display: flex !important;
  align-items: flex-start !important;

  flex: 1 1 auto !important;

  width: auto !important;
  min-width: 0 !important;
  max-width: 100% !important;

  word-break: break-word !important;
  overflow-wrap: anywhere !important;
}

#view-checkout .radio-content > div {
  flex: 1 1 auto !important;

  min-width: 0 !important;
  max-width: 100% !important;
}

#view-checkout .radio-content strong {
  display: block !important;

  font-size: 0.9rem !important;
  line-height: 1.3 !important;
}

#view-checkout .radio-content p {
  font-size: 0.78rem !important;
  line-height: 1.35 !important;

  margin-top: 0.15rem !important;

  overflow-wrap: anywhere !important;
  word-break: break-word !important;
}


/* =========================================================
   23. PLACE ORDER BUTTON
   ========================================================= */

@media (max-width: 850px) {

  #view-checkout #btn-place-order {
    display: block !important;

    width: 100% !important;
    max-width: 100% !important;

    box-sizing: border-box !important;
  }
}


/* =========================================================
   24. SMALL MOBILE — 640px
   ========================================================= */

@media (max-width: 640px) {

  #view-checkout > .container {
    padding-left: 0.65rem !important;
    padding-right: 0.65rem !important;
  }

  #view-checkout .checkout-left-card,
  #view-checkout .checkout-summary-card {
    padding: 0.85rem !important;
  }

  #view-checkout .checkout-grid-layout {
    gap: 1rem !important;
  }

  #view-checkout .grand-total-price {
    font-size: 1.2rem !important;
  }
}


/* =========================================================
   25. VERY SMALL PHONES — 380px
   ========================================================= */

@media (max-width: 380px) {

  /* Country dropdown */
  #view-checkout .phone-dial-dropdown {
    flex: 0 0 92px !important;

    width: 92px !important;
    min-width: 92px !important;
    max-width: 92px !important;
  }

  /* Custom code */
  #view-checkout #custom-dial-code-wrap {
    flex: 0 0 55px !important;

    width: 55px !important;
    min-width: 55px !important;
    max-width: 55px !important;
  }

  #view-checkout .phone-dial-dropdown .dropdown-select-btn {
    padding-left: 0.3rem !important;
    padding-right: 0.3rem !important;

    font-size: 0.76rem !important;
  }

  #view-checkout #custom-dial-code-wrap input {
    padding-left: 0.1rem !important;
    padding-right: 0.1rem !important;

    font-size: 0.78rem !important;
  }

  /* Number gets ALL remaining width */
  #view-checkout .phone-number-field {
    flex: 1 1 0% !important;

    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
  }

  #view-checkout .phone-number-field input {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;

    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
  }

  #view-checkout .checkout-calc-section .summary-line {
    gap: 0.4rem !important;
  }

  #view-checkout .radio-card {
    padding: 0.7rem !important;
  }

  #view-checkout .radio-content strong {
    font-size: 0.84rem !important;
  }

  #view-checkout .radio-content p {
    font-size: 0.72rem !important;
  }
}


/* =========================================================
   26. FINAL MOBILE OVERFLOW PROTECTION
   ========================================================= */

@media (max-width: 850px) {

  #view-checkout img,
  #view-checkout video,
  #view-checkout iframe,
  #view-checkout canvas {
    max-width: 100% !important;
  }
}

/* =========================================================
   SaaS-GRADE ORDERS MANAGEMENT MODERN STYLING
   ========================================================= */

/* Main Table Row Styling */
.pro-order-row {
  transition: background-color 0.18s ease, box-shadow 0.18s ease;
}

.pro-order-row:hover {
  background-color: var(--bg-elevated) !important;
}

.pro-order-row td {
  padding: 1rem 0.85rem !important;
  vertical-align: top;
  border-bottom: 1px solid var(--border-color);
}

/* 1. Order ID Column */
.pro-id-block {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 120px;
}

.pro-id-badge {
  display: inline-flex;
  align-items: center;
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  padding: 0.25rem 0.55rem;
  border-radius: 6px;
  width: fit-content;
}

.pro-id-text {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.88rem;
  color: var(--primary-color);
  letter-spacing: 0.3px;
}

.pro-time-sub {
  display: flex;
  flex-direction: column;
  font-size: 0.73rem;
  color: var(--text-muted);
  line-height: 1.35;
}

.pro-time-hour {
  font-size: 0.7rem;
  opacity: 0.85;
}

.pro-invoice-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 0.22rem 0.55rem;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.25rem;
  width: fit-content;
  transition: all 0.15s ease;
}

.pro-invoice-btn i {
  color: var(--primary-color);
}

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

/* 2. Customer Column */
.pro-customer-block {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 160px;
  max-width: 220px;
}

.pro-customer-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pro-cust-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color), #4338ca);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pro-cust-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pro-cust-details {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-size: 0.75rem;
}

.pro-cust-phone {
  color: var(--text-secondary);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  text-decoration: none;
}

.pro-cust-phone:hover {
  color: var(--primary-color);
}

.pro-cust-address {
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

/* 3. Product Items Container */
.pro-items-container {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-width: 230px;
  max-width: 320px;
}

.badge-item-count {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.pro-order-item-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 0.35rem 0.5rem;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.pro-item-thumb-box {
  position: relative;
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 6px;
  overflow: hidden;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
}

.pro-item-thumb-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pro-item-qty-tag {
  position: absolute;
  bottom: 0;
  right: 0;
  background: rgba(15, 23, 42, 0.85);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
  padding: 1px 4px;
  border-radius: 4px 0 0 0;
}

.pro-item-info-col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.pro-item-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.25;
}

.pro-item-pricing-line {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.72rem;
  margin-top: 0.15rem;
  color: var(--text-muted);
}

.pro-unit-price {
  font-weight: 500;
}

.pro-multiply {
  font-size: 0.65rem;
}

.pro-unit-count {
  font-weight: 700;
  color: var(--text-secondary);
}

.pro-arrow {
  font-size: 0.65rem;
  color: var(--primary-color);
}

.pro-subtotal {
  font-weight: 800;
  color: var(--text-primary);
}

.pro-payment-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.2rem;
}

.pro-pay-pill {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.pro-pay-pill.cod {
  background: rgba(16, 185, 129, 0.12);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.pro-pay-pill.online {
  background: rgba(2, 132, 199, 0.12);
  color: #0284c7;
  border: 1px solid rgba(2, 132, 199, 0.25);
}

.pro-delivery-fee {
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* 4. Grand Total Column */
.pro-total-block {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.pro-grand-amount {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--primary-color);
  white-space: nowrap;
}

.pro-subtotal-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
  white-space: nowrap;
}

/* 5. Status Pill with Pulsing Dot */
.pro-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

.status-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.5);
}

.st-pending { background: #fef3c7; color: #b45309; }
.st-confirmed { background: #e0f2fe; color: #0369a1; }
.st-processing { background: #f3e8ff; color: #7e22ce; }
.st-shipped { background: #dbeafe; color: #1d4ed8; }
.st-completed { background: #dcfce7; color: #15803d; }
.st-cancelled { background: #fee2e2; color: #b91c1c; }

/* 6. Actions Toolbar */
.pro-actions-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.4rem;
}

.pro-btn-quick-wa {
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.pro-btn-quick-wa:hover {
  transform: scale(1.08);
  box-shadow: 0 4px 10px rgba(37, 211, 102, 0.35);
  color: #fff;
}

.pro-icon-action-btn {
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  font-size: 0.85rem;
}

.pro-icon-action-btn:hover {
  background: var(--bg-elevated);
}

.pro-icon-action-btn.delete-btn:hover {
  background: var(--danger-light);
  color: var(--danger-color);
  border-color: var(--danger-color);
}

.pro-status-dropdown {
  width: 125px;
  text-align: left;
}

.pro-status-dropdown .dropdown-select-btn {
  padding: 0.35rem 0.6rem;
  font-size: 0.78rem;
  height: 32px;
}

.status-dot-mini {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 0.25rem;
}

/* Empty State */
.pro-empty-orders {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}


/* =========================================================
   PUBLIC SHOP CUSTOM CATEGORY FILTER & TOOLBAR
   ========================================================= */

.shop-search-filter-controls {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex: 1;
  max-width: 520px;
  justify-content: flex-end;
}

/* Div-based Category Dropdown in Shop */
.shop-cat-dropdown {
  width: 190px !important;
  min-width: 170px;
  flex-shrink: 0;
}

.shop-cat-dropdown .dropdown-select-btn {
  padding: 0.45rem 0.8rem;
  font-size: 0.82rem;
  background-color: var(--bg-elevated);
  border-radius: var(--radius-pill);
  height: 36px;
}

.shop-cat-dropdown .dropdown-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.shop-cat-dropdown .dropdown-list-container {
  width: 220px;
  right: 0;
  left: auto;
}

.badge-cat-count {
  margin-left: auto;
  background-color: var(--bg-elevated);
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.1rem 0.4rem;
  border-radius: var(--radius-pill);
}

/* Modal Category Chips */
.chips-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.chips-container .chip-btn {
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  border-radius: var(--radius-pill);
  padding: 0.25rem 0.65rem;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: all 0.15s ease;
}

.chips-container .chip-btn:hover {
  background: var(--primary-light);
  color: var(--primary-color);
  border-color: var(--primary-color);
}

/* Mobile Responsiveness */
@media (max-width: 640px) {
  .shop-search-filter-controls {
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    gap: 0.5rem;
  }
  .shop-cat-dropdown {
    width: 100% !important;
  }
  .shop-cat-dropdown .dropdown-list-container {
    width: 100%;
  }
}



.site-seo-footer {
  display: none !important;
}

body:has(#view-home.active) .site-seo-footer {
  display: block !important;
}
