@charset "UTF-8";

/* ==========================================================================
   TijaratMarkaz.pk - Modern E-Commerce Design System & Stylesheet
   Full Flow: Home, Product Detail Page (PDP), Cart, & Checkout
   Currency: Pakistani Rupee (PKR)
   ========================================================================== */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400;1,600&family=Outfit:wght@400;500;600;700;800;900&display=swap');

/* Design Tokens / CSS Variables */
:root {
  --bg-body: #080c15;
  --bg-surface: #0e1526;
  --bg-card: rgba(18, 26, 44, 0.7);
  --bg-card-hover: rgba(24, 34, 58, 0.9);
  --bg-elevated: #162035;
  --bg-input: rgba(14, 21, 38, 0.85);

  --primary: #6366f1;
  --primary-hover: #4f46e5;
  --primary-light: rgba(99, 102, 241, 0.15);
  --primary-glow: rgba(99, 102, 241, 0.35);

  --accent-emerald: #10b981;
  --accent-emerald-glow: rgba(16, 185, 129, 0.25);
  --accent-amber: #f59e0b;
  --accent-amber-glow: rgba(245, 158, 11, 0.25);
  --accent-rose: #f43f5e;
  --accent-cyan: #06b6d4;

  --text-main: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --text-faint: #64748b;

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-light: rgba(255, 255, 255, 0.14);
  --border-focus: #6366f1;
  --border-radius-sm: 6px;
  --border-radius-md: 12px;
  --border-radius-lg: 18px;
  --border-radius-xl: 24px;
  --border-radius-full: 9999px;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 8px 24px -4px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 16px 40px -8px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 30px -5px var(--primary-glow);

  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;

  --max-width: 1620px;
  --header-height: 76px;
  --transition-fast: 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="light"] {
  --bg-body: #f8fafc;
  --bg-surface: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #ffffff;
  --bg-elevated: #f1f5f9;
  --bg-input: #f8fafc;

  --text-main: #0f172a;
  --text-secondary: #1e293b;
  --text-muted: #475569;
  --text-faint: #64748b;

  --border-subtle: rgba(15, 23, 42, 0.08);
  --border-light: rgba(15, 23, 42, 0.14);
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 8px 24px -4px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 16px 40px -8px rgba(15, 23, 42, 0.12);
  --shadow-glow: 0 0 30px -5px rgba(99, 102, 241, 0.2);
}

/* ==========================================================================
   Light Mode Contrast & Visibility Overrides
   Ensures crystal-clear legibility across Flash Deals, Top Selling, & PDP
   ========================================================================== */

/* Flash Deals & Top Selling (Best Sellers) Containers */
[data-theme="light"] .flash-deals-section,
[data-theme="light"] .bestsellers-section {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.08);
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05);
}

[data-theme="light"] .flash-deals-section .section-title,
[data-theme="light"] .bestsellers-section .section-title {
  color: #0f172a;
}

[data-theme="light"] .flash-deals-section .section-subtitle,
[data-theme="light"] .bestsellers-section .section-subtitle {
  color: #475569;
  font-weight: 500;
}

/* Flash Deals Countdown Timer in Light Mode */
[data-theme="light"] .countdown-box {
  background: #f1f5f9;
  border-color: rgba(15, 23, 42, 0.12);
}

[data-theme="light"] .countdown-num {
  color: #0f172a;
}

[data-theme="light"] .countdown-unit {
  color: #475569;
  font-weight: 700;
}

[data-theme="light"] .countdown-sep {
  color: #334155;
}

[data-theme="light"] .countdown-label {
  color: #b45309;
  font-weight: 800;
}

/* Flash Deals & Best Sellers Buttons */
[data-theme="light"] .flash-view-all-btn,
[data-theme="light"] .bestsellers-view-all-btn {
  color: var(--primary);
  background: rgba(99, 102, 241, 0.08);
  border-color: rgba(99, 102, 241, 0.25);
}

[data-theme="light"] .flash-view-all-btn:hover,
[data-theme="light"] .bestsellers-view-all-btn:hover {
  background: var(--primary);
  color: #ffffff;
}

[data-theme="light"] .flash-nav-btns .slider-btn,
[data-theme="light"] .bestsellers-nav-btns .slider-btn {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.12);
  color: #0f172a;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.06);
}

[data-theme="light"] .flash-nav-btns .slider-btn:hover,
[data-theme="light"] .bestsellers-nav-btns .slider-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

/* Product Cards in Flash Deals & Best Sellers in Light Mode */
[data-theme="light"] .flash-deals-grid .product-card,
[data-theme="light"] .bestsellers-grid .product-card {
  background: #f8fafc;
  border-color: rgba(15, 23, 42, 0.08);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

[data-theme="light"] .flash-deals-grid .product-card:hover,
[data-theme="light"] .bestsellers-grid .product-card:hover {
  background: #ffffff;
  border-color: rgba(99, 102, 241, 0.35);
  box-shadow: 0 8px 24px -4px rgba(15, 23, 42, 0.1);
}

[data-theme="light"] .flash-deals-grid .product-media-wrap,
[data-theme="light"] .bestsellers-grid .product-media-wrap {
  background: #f1f5f9;
}

[data-theme="light"] .deal-progress-text {
  color: #475569;
  font-weight: 600;
}

[data-theme="light"] .deal-progress-text strong {
  color: #0f172a;
}

[data-theme="light"] .deal-progress-bar {
  background: #e2e8f0;
}

[data-theme="light"] .flash-deals-grid .card-view-btn,
[data-theme="light"] .bestsellers-grid .card-view-btn {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.12);
  color: #0f172a;
}

[data-theme="light"] .flash-deals-grid .card-view-btn:hover,
[data-theme="light"] .bestsellers-grid .card-view-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

/* Category Pills Hover in Light Mode */
[data-theme="light"] .category-pill:hover:not(.active) {
  color: var(--primary);
  background: rgba(99, 102, 241, 0.08);
  border-color: rgba(99, 102, 241, 0.2);
}

/* Product Detail Page (PDP) Light Mode Visibility Enhancements */
[data-theme="light"] .pdp-section {
  color: #0f172a;
}

[data-theme="light"] .pdp-breadcrumbs {
  color: #64748b;
}

[data-theme="light"] .pdp-breadcrumbs a {
  color: #475569;
  font-weight: 600;
}

[data-theme="light"] .pdp-breadcrumbs a:hover {
  color: var(--primary);
}

[data-theme="light"] .pdp-brand-sku {
  color: #475569;
  font-weight: 500;
}

[data-theme="light"] .pdp-brand-sku strong {
  color: var(--primary);
  font-weight: 700;
}

[data-theme="light"] .pdp-title {
  color: #0f172a;
}

[data-theme="light"] .pdp-price-box {
  background: rgba(99, 102, 241, 0.05);
  border-color: rgba(99, 102, 241, 0.16);
}

[data-theme="light"] .pdp-orig-price {
  color: #64748b;
}

[data-theme="light"] .pdp-promo-alert {
  color: #b45309;
  font-weight: 600;
}

[data-theme="light"] .pdp-variant-label {
  color: #0f172a;
  font-weight: 700;
}

[data-theme="light"] .pdp-swatch-btn {
  background: #f8fafc;
  border-color: rgba(15, 23, 42, 0.14);
  color: #1e293b;
  font-weight: 600;
}

[data-theme="light"] .pdp-swatch-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(99, 102, 241, 0.08);
}

[data-theme="light"] .pdp-swatch-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 2px 10px var(--primary-glow);
}

[data-theme="light"] .pdp-qty-label {
  color: #0f172a;
  font-weight: 700;
}

[data-theme="light"] .qty-counter {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.15);
}

[data-theme="light"] .qty-btn {
  color: #0f172a;
}

[data-theme="light"] .qty-value {
  color: #0f172a;
  font-weight: 700;
}

[data-theme="light"] .pdp-stock-status {
  color: #059669;
  font-weight: 700;
}

[data-theme="light"] .btn-wishlist-pdp {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.14);
  color: #1e293b;
}

[data-theme="light"] .btn-wishlist-pdp:hover,
[data-theme="light"] .btn-wishlist-pdp.active {
  background: rgba(244, 63, 94, 0.1);
  border-color: var(--accent-rose);
  color: var(--accent-rose);
}

[data-theme="light"] .pdp-authenticity-bar {
  background: #f8fafc;
  border-color: rgba(15, 23, 42, 0.08);
  color: #334155;
  font-weight: 600;
}

[data-theme="light"] .pdp-delivery-sidebar {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.08);
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05);
}

[data-theme="light"] .pdp-sidebar-title {
  color: #1e293b;
  font-weight: 800;
  border-bottom-color: rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .delivery-item-info h5 {
  color: #0f172a;
  font-weight: 700;
}

[data-theme="light"] .delivery-item-info p {
  color: #475569;
  font-weight: 500;
}

[data-theme="light"] .chat-seller-item,
[data-theme="light"] .call-seller-item,
[data-theme="light"] .video-seller-item {
  background: #f8fafc;
}

[data-theme="light"] .pdp-tabs-container {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.08);
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05);
}

[data-theme="light"] .pdp-tab-nav {
  border-bottom-color: rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .pdp-tab-link {
  color: #64748b;
}

[data-theme="light"] .pdp-tab-link.active,
[data-theme="light"] .pdp-tab-link:hover {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

[data-theme="light"] .specs-table tr {
  border-bottom-color: rgba(15, 23, 42, 0.06);
}

[data-theme="light"] .specs-table td:first-child {
  color: #475569;
  font-weight: 700;
}

[data-theme="light"] .specs-table td {
  color: #0f172a;
}


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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
  overscroll-behavior-x: none;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
  position: relative;
  overscroll-behavior-x: none;
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

#main-content,
.view-container {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  outline: none;
}

input, select, textarea {
  font-family: inherit;
  color: inherit;
  outline: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px;
  box-sizing: border-box;
}

@media (min-width: 1440px) {
  .container {
    padding: 0 36px;
  }
}

/* ==========================================================================
   Announcement Bar
   ========================================================================== */
.announcement-bar {
  background: linear-gradient(90deg, #3730a3 0%, #4f46e5 50%, #4338ca 100%);
  color: #ffffff;
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.announcement-bar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.announcement-ticker {
  display: flex;
  align-items: center;
  gap: 12px;
}

.announcement-text-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ticker-badge {
  background: rgba(255, 255, 255, 0.2);
  padding: 2px 8px;
  border-radius: var(--border-radius-full);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.announcement-code {
  background: #ffffff;
  color: #3730a3;
  padding: 2px 7px;
  border-radius: 4px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.announcement-code:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.announcement-code .code-copy-svg {
  opacity: 0.75;
  transition: opacity 0.15s ease;
  flex-shrink: 0;
}

.announcement-code:hover .code-copy-svg {
  opacity: 1;
}

.announcement-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.announcement-actions a,
.currency-selector {
  display: flex;
  align-items: center;
  gap: 6px;
  opacity: 0.9;
  font-size: 0.8rem;
  transition: opacity var(--transition-fast);
}

.announcement-actions a:hover {
  opacity: 1;
  text-decoration: underline;
}

.currency-selector select {
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}

.currency-selector select option {
  background: #1e293b;
  color: #ffffff;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
}

.header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  gap: 20px;
  width: 100%;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: -0.4px;
  color: var(--text-main);
  white-space: nowrap;
  -webkit-user-select: none;
  user-select: none;
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #6366f1 0%, #4338ca 100%);
  color: #ffffff;
  padding: 2px 6px;
  border-radius: 7px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0;
  box-shadow: 0 0 16px var(--primary-glow);
  position: relative;
}

.brand-dot {
  width: 5px;
  height: 5px;
  background: #10b981;
  border-radius: 50%;
  margin-left: 2px;
  animation: pulse-dot 2s infinite ease-in-out;
}

/* Header logo only: simple TM mark + plain wordmark (scoped so the
   footer and mobile-drawer logos keep their existing badge treatment) */
#header-brand-logo {
  gap: 8px;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.2px;
}

#header-brand-logo .brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, #6366f1 0%, #4338ca 100%);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  box-shadow: 0 0 16px var(--primary-glow);
}

#header-brand-logo .brand-word {
  white-space: nowrap;
  letter-spacing: -0.2px;
}

@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.6; }
}

/* Search Results Presentation
   While a search is committed, the home view shows matching products ONLY.
   The hero, trust bar, category grid, flash deals, best sellers and customer
   reviews are suppressed so results are never buried among other sections. */
body.search-active .hero-section,
body.search-active .trust-bar,
body.search-active #popular-categories-section,
body.search-active #flash-deals-section,
body.search-active #watch-buy-section,
body.search-active #bestsellers-section,
body.search-active .reviews-section {
  display: none !important;
}

/* Search Bar */

.search-wrapper {
  flex: 1 1 auto;
  max-width: 760px;
  margin: 0 16px;
  position: relative;
}

.search-bar {
  display: flex;
  align-items: center;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--border-radius-full);
  padding: 4px 6px 4px 18px;
  transition: all var(--transition-fast);
}

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

.search-icon {
  color: var(--text-muted);
  display: flex;
  align-items: center;
  margin-right: 10px;
}

.search-input {
  flex: 1;
  background: transparent;
  border: none;
  font-size: 0.9rem;
  color: var(--text-main);
}

.search-clear {
  color: var(--text-muted);
  padding: 6px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
}

.search-clear.visible {
  display: flex;
}

.search-btn {
  background: var(--primary);
  color: #ffffff;
  padding: 8px 18px;
  border-radius: var(--border-radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  transition: all var(--transition-fast);
}

.search-btn:hover {
  background: var(--primary-hover);
  box-shadow: 0 0 12px var(--primary-glow);
}

/* Live Search Autocomplete */
.search-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-lg);
  max-height: 400px;
  overflow-y: auto;
  z-index: 150;
  display: none;
  padding: 12px;
}

.search-dropdown.active {
  display: block;
}

.search-dropdown-header {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  padding: 6px 10px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  transition: background var(--transition-fast);
}

.search-result-item:hover {
  background: var(--bg-elevated);
}

.search-result-thumb {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--bg-elevated);
}

.search-result-info {
  flex: 1;
}

.search-result-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 2px;
}

.search-result-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.search-result-price {
  font-weight: 700;
  color: var(--accent-emerald);
}

.search-no-results {
  padding: 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--bg-input);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
  position: relative;
  transition: all var(--transition-fast);
}

.action-btn:hover {
  background: var(--bg-elevated);
  border-color: var(--border-light);
  transform: translateY(-2px);
  color: var(--primary);
}

.badge-counter {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--accent-rose);
  color: #ffffff;
  font-size: 0.6875rem;
  font-weight: 800;
  min-width: 20px;
  height: 20px;
  border-radius: var(--border-radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 2px solid var(--bg-surface);
}

.badge-bounce {
  animation: badge-bounce 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes badge-bounce {
  0% { transform: scale(1); }
  50% { transform: scale(1.4); }
  100% { transform: scale(1); }
}

.cart-btn-full {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(79, 70, 229, 0.25) 100%);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: var(--text-main);
  position: relative;
  transition: all var(--transition-fast);
}

.cart-btn-full:hover {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.25) 0%, rgba(79, 70, 229, 0.4) 100%);
  border-color: var(--primary);
  transform: translateY(-2px);
}

.cart-text-wrap {
  text-align: left;
  display: flex;
  flex-direction: column;
}

.cart-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
  line-height: 1;
}

.cart-total-preview {
  font-size: 0.875rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.3;
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 42px;
  height: 42px;
  gap: 5px;
  border-radius: 12px;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
}

.hamburger-line {
  width: 20px;
  height: 2px;
  background-color: currentColor;
  border-radius: 2px;
  transition: all var(--transition-fast);
}

/* Secondary Category Subnav */
.header-subnav {
  display: none !important;
  border-top: 1px solid var(--border-subtle);
  background: rgba(14, 21, 38, 0.4);
}

.subnav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
  padding: 8px 0;
}

.subnav-inner::-webkit-scrollbar {
  display: none;
}

.category-nav-list {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.category-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--border-radius-full);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid transparent;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.category-pill:hover,
.category-pill.active {
  color: #ffffff;
  background: var(--bg-elevated);
  border-color: var(--border-light);
}

.category-pill.active {
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 0 12px var(--primary-glow);
}

.category-pill.deal-highlight {
  color: var(--accent-amber);
  border-color: rgba(245, 158, 11, 0.3);
  background: rgba(245, 158, 11, 0.1);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  position: relative;
  padding: 24px 0 16px;
}

.hero-layout-grid {
  display: flex;
  gap: 16px;
  align-items: stretch;
  width: 100%;
}

.hero-main-banner-wrap {
  flex: 1 1 0%;
  min-width: 0;
  height: 380px;
}

.hero-slider {
  position: relative;
  border-radius: 0 !important;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  min-height: 380px;
  height: 380px;
}

.hero-side-banners {
  display: flex;
  flex-direction: column; /* Stacked vertically: one above, one below! */
  gap: 16px;
  flex-shrink: 0;
  width: 380px;
  height: 380px; /* Exact same height as the big banner! */
}

.hero-side-card {
  position: relative;
  border-radius: 0 !important;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  width: 100%;
  height: calc((380px - 16px) / 2); /* 182px each, perfectly filling 380px together */
  flex: 1 1 0%;
  min-height: 0;
  flex-shrink: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.hero-side-card:hover {
  transform: translateY(-2px);
  border-color: rgba(99, 102, 241, 0.45);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

/* Top Small Banner: Reels-Style Banner */
.hero-reels-card {
  cursor: pointer;
  position: relative;
  background: #0f172a;
  border-radius: 0 !important;
}

.hero-reels-media {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 0 !important;
}

.hero-reels-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 0 !important;
  transition: transform 0.4s ease;
}

.hero-reels-card:hover .hero-reels-poster {
  transform: scale(1.04);
}

.hero-reels-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.4) 0%, rgba(15, 23, 42, 0.15) 35%, rgba(15, 23, 42, 0.92) 100%);
  pointer-events: none;
  border-radius: 0 !important;
}

.hero-reels-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(15, 23, 42, 0.9);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 4px 10px;
  border-radius: 0 !important;
  font-size: 0.72rem;
  font-weight: 700;
  color: #ffffff;
}

.hero-reels-badge-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 0 !important;
  background: linear-gradient(135deg, #f43f5e, #ec4899);
  color: #ffffff;
}

.hero-reels-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 0 !important;
  background: rgba(255, 255, 255, 0.25);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 2px solid rgba(255, 255, 255, 0.85);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s ease, background 0.2s ease;
  z-index: 2;
}

.hero-reels-card:hover .hero-reels-play-btn {
  transform: translate(-50%, -50%) scale(1.1);
  background: rgba(99, 102, 241, 0.9);
}

.hero-reels-overlay-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 14px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hero-reels-pill {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #38bdf8;
  display: block;
}

.hero-reels-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-reels-cta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.hero-reels-watch-hint {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
}

.hero-reels-buy-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  color: #ffffff;
  border: none;
  border-radius: 0 !important;
  padding: 6px 14px;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(249, 115, 22, 0.4);
  transition: transform 0.15s ease, filter 0.15s ease;
}

.hero-reels-buy-btn:hover {
  transform: scale(1.05);
  filter: brightness(1.1);
}

/* Bottom Small Banner: Promotional Featured Mini Banner */
.hero-promo-card {
  position: relative;
  background: #1e1b4b;
  border-radius: 0 !important;
}

.hero-promo-link {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: inherit;
  border-radius: 0 !important;
}

.hero-promo-media {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 0 !important;
}

.hero-promo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 0 !important;
  transition: transform 0.4s ease;
}

.hero-promo-card:hover .hero-promo-img {
  transform: scale(1.04);
}

.hero-promo-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(30, 27, 75, 0.3) 0%, rgba(30, 27, 75, 0.88) 100%);
  pointer-events: none;
  border-radius: 0 !important;
}

.hero-promo-content {
  position: absolute;
  inset: 0;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
  z-index: 2;
}

.hero-promo-badge {
  align-self: flex-start;
  background: #f43f5e;
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 3px 8px;
  border-radius: 0 !important;
}

.hero-promo-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  margin: 2px 0 0;
  line-height: 1.25;
}

.hero-promo-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
}

.hero-promo-price {
  font-size: 0.95rem;
  font-weight: 800;
  color: #38bdf8;
}

.hero-promo-cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  padding: 5px 12px;
  border-radius: 0 !important;
  transition: background 0.2s ease;
}

.hero-promo-card:hover .hero-promo-cta {
  background: var(--primary, #6366f1);
}

/* ==========================================================================
   Hero Promotional Mini Banner Automatic Slideshow (8 to 10 Items)
   ========================================================================== */
.hero-reels-slideshow,
.hero-promo-slideshow {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.hero-reels-slide,
.hero-promo-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  display: block;
  text-decoration: none;
  color: inherit;
  z-index: 1;
}

.hero-reels-slide.active,
.hero-promo-slide.active {
  opacity: 1;
  pointer-events: auto;
  z-index: 2;
}

.hero-reels-slide img,
.hero-promo-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-promo-dots {
  position: absolute;
  bottom: 8px;
  right: 14px;
  display: flex;
  align-items: center;
  gap: 5px;
  z-index: 10;
  pointer-events: auto;
}

.hero-promo-dot {
  width: 6px;
  height: 6px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.25s ease;
}

.hero-promo-dot.active {
  width: 18px;
  background: #38bdf8;
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.8);
}

/* Dedicated Blog Explore Side Widget */
.blog-explore-side-widget {
  height: 2.5in;
  min-height: 2.5in;
  max-height: 2.5in;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  text-align: center;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.blog-explore-side-widget .blog-explore-widget-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.blog-explore-side-widget:hover {
  transform: translateY(-2px);
  border-color: rgba(99, 102, 241, 0.4);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

/* ==========================================================================
   Full-Width Banner Ad Slideshow (Replacing Text in Blog Header)
   ========================================================================== */
.blog-header-banner-ad {
  flex: 1 1 340px;
  min-width: 280px;
  height: 2.85in;
  min-height: 2.85in;
  max-height: 2.85in;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.blog-ad-slides-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}

.blog-ad-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.55s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
  z-index: 1;
}

.blog-ad-slide.active {
  opacity: 1;
  pointer-events: auto;
  z-index: 2;
}

.blog-ad-slide-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.blog-header-banner-ad:hover .blog-ad-slide.active .blog-ad-slide-bg {
  transform: scale(1.03);
}

.blog-ad-slide-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.85) 45%, rgba(15, 23, 42, 0.4) 100%);
  pointer-events: none;
}

.blog-ad-slide-content {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 100%;
  padding: 0 28px;
  box-sizing: border-box;
  gap: 16px;
}

.blog-ad-slide-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  min-width: 0;
}

.blog-ad-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 999px;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.35);
}

.blog-ad-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.blog-ad-title {
  color: #ffffff;
  font-size: 1.15rem;
  font-weight: 800;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.25;
  letter-spacing: -0.2px;
}

.blog-ad-subtitle {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.blog-ad-slide-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.18);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 999px;
  flex-shrink: 0;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.blog-header-banner-ad:hover .blog-ad-slide.active .blog-ad-slide-cta {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  border-color: #f97316;
  transform: translateX(3px);
  box-shadow: 0 6px 18px rgba(249, 115, 22, 0.45);
}

.blog-ad-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 5px;
  z-index: 10;
  pointer-events: auto;
}

.blog-ad-dot {
  width: 6px;
  height: 6px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: all 0.25s ease;
}

.blog-ad-dot.active {
  width: 20px;
  background: #38bdf8;
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.8);
}

@media (max-width: 768px) {
  .blog-header-banner-ad {
    height: 306px !important;
    min-height: 306px !important;
    max-height: 310px !important;
  }
  .blog-ad-slide-gradient {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.78) 60%, rgba(15, 23, 42, 0.55) 100%) !important;
  }
  .blog-ad-slide-content {
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: center !important;
    padding: 16px 20px !important;
    gap: 12px !important;
  }
  .blog-ad-slide-info {
    width: 100% !important;
    max-width: 100% !important;
  }
  .blog-ad-title-wrap {
    width: 100% !important;
  }
  .blog-ad-title {
    font-size: 1.05rem !important;
    white-space: normal !important;
    line-height: 1.3 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
  }
  .blog-ad-subtitle {
    font-size: 0.76rem !important;
    white-space: normal !important;
    line-height: 1.3 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
  }
  .blog-ad-slide-cta {
    align-self: flex-start !important;
    margin-top: 2px !important;
    padding: 7px 16px !important;
    font-size: 0.78rem !important;
  }
}

/* Top Announcement Bar 'More Coupons' Highlighted Link */
.top-coupons-highlight-link {
  display: inline-flex !important;
  align-items: center;
  gap: 5px;
  background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
  color: #ffffff !important;
  font-weight: 800 !important;
  font-size: 0.72rem !important;
  padding: 3px 10px;
  border-radius: 9999px;
  text-decoration: none !important;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4);
  letter-spacing: 0.3px;
  text-transform: uppercase;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  animation: couponPulse 2.8s infinite;
}

.top-coupons-highlight-link:hover {
  transform: translateY(-1px) scale(1.04);
  filter: brightness(1.1);
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.5);
}

@keyframes couponPulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.5);
  }
  50% {
    box-shadow: 0 0 0 5px rgba(245, 158, 11, 0);
  }
}

/* Promotional Reels Player Modal */
.promo-reels-modal {
  position: fixed;
  inset: 0;
  z-index: 100030;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.promo-reels-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.promo-reels-dialog {
  position: relative;
  width: 100%;
  max-width: 380px;
  height: 80vh;
  max-height: 640px;
  background: #000000;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.15);
  display: flex;
  flex-direction: column;
  z-index: 2;
  animation: wbScaleUp 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.promo-reels-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 10;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 1.5rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.promo-reels-close:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.1);
}

.promo-reels-video-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  background: #000;
}

.promo-reels-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.promo-reels-badge-overlay {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 5;
}

.promo-reels-source-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(15, 23, 42, 0.8);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
}

.promo-reels-bottom-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.85) 40%, rgba(0, 0, 0, 0.98) 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  z-index: 5;
}

.promo-reels-meta {
  flex: 1;
  min-width: 0;
}

.promo-reels-modal-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 4px 0;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.promo-reels-prod-line {
  display: flex;
  align-items: center;
  gap: 8px;
}

.promo-reels-prod-name {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.8);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 140px;
}

.promo-reels-prod-price {
  font-size: 0.85rem;
  font-weight: 800;
  color: #f97316;
}

.promo-reels-buy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  color: #ffffff;
  border: none;
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(249, 115, 22, 0.4);
  transition: transform 0.15s ease, filter 0.15s ease;
  flex-shrink: 0;
}

.promo-reels-buy-btn:hover {
  transform: scale(1.05);
  filter: brightness(1.1);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  align-items: center;
  gap: 40px;
  padding: 36px 56px 42px;
  opacity: 0;
  pointer-events: none;
  transform: scale(0.98);
  transition: opacity var(--transition-smooth), transform var(--transition-smooth);
}

.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
  position: relative;
}

.hero-slide-content {
  max-width: 540px;
  z-index: 2;
}

.hero-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--border-radius-full);
  background: rgba(99, 102, 241, 0.2);
  border: 1px solid rgba(99, 102, 241, 0.4);
  color: #a5b4fc;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 2.7vw, 2.6rem);
  line-height: 1.18;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
  color: var(--text-main);
}

.hero-desc {
  font-size: 0.975rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 18px;
  max-width: 480px;
}

.hero-price-tag {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 22px;
}

.hero-current-price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent-emerald);
  font-family: var(--font-heading);
}

.hero-old-price {
  font-size: 1.15rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.hero-media {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  width: 100%;
  max-width: 420px;
  height: 320px;
  margin: 0 auto;
  border-radius: var(--border-radius-xl);
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.07) 0%, rgba(14, 21, 38, 0.45) 80%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 16px 36px -8px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  padding: 16px;
}

.hero-image {
  max-height: 275px;
  max-width: 100%;
  width: auto;
  border-radius: var(--border-radius-md);
  object-fit: contain;
  filter: drop-shadow(0 14px 26px rgba(0, 0, 0, 0.65));
  animation: hero-float 6s ease-in-out infinite;
}

@keyframes hero-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.hero-controls {
  position: absolute;
  bottom: 24px;
  right: 48px;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 10;
}

.slider-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(14, 21, 38, 0.7);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

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

.hero-indicators {
  position: absolute;
  bottom: 28px;
  left: 56px;
  display: flex;
  gap: 8px;
  z-index: 10;
}

.indicator-dot {
  width: 24px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.indicator-dot.active {
  width: 44px;
  background: var(--primary);
}

/* Hero: banner-images-only presentation (full-bleed, no overlays) */
.hero-slider .hero-slide,
.hero-slider .hero-slide.active {
  position: absolute;
  inset: 0;
  display: block;
  padding: 0;
}

.hero-slider .hero-slide .hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  border-radius: 0;
  filter: none;
  animation: none;
}

.hero-section .hero-controls,
.hero-section .hero-indicators {
  display: none;
}

/* ==========================================================================
   Trust & Value Bar
   ========================================================================== */
.trust-bar {
  padding: 24px 0;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.trust-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--border-radius-md);
  transition: transform var(--transition-fast);
}

.trust-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-light);
  background: var(--bg-card-hover);
}

.trust-icon-box {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-light);
  color: var(--primary);
  flex-shrink: 0;
}

.trust-info h4 {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 2px;
}

.trust-info p {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Featured Categories Showcase
   ========================================================================== */
.section-title-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 1.875rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text-main);
}

.section-subtitle {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.categories-carousel-wrap {
  position: relative;
  width: 100%;
  overflow: hidden;
  margin-bottom: 48px;
}

.categories-view-all-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: var(--border-radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  color: #ffffff;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.4);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.categories-view-all-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
  box-shadow: 0 0 16px var(--primary-glow);
  transform: translateY(-2px);
}

.categories-view-all-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
  box-shadow: 0 0 16px var(--primary-glow);
}

.categories-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.categories-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(14, 21, 38, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast), transform var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.categories-carousel-wrap:hover .categories-nav-btn {
  opacity: 1;
  pointer-events: auto;
}

.categories-nav-prev {
  left: 10px;
}

.categories-nav-next {
  right: 10px;
}

.categories-nav-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 0 16px var(--primary-glow);
}

.categories-nav-btn:active {
  transform: translateY(-50%) scale(0.95);
}

.categories-grid {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 2px 2px 6px 2px;
  cursor: grab;
  -webkit-user-select: none;
  user-select: none;
  flex-wrap: nowrap;
}

.categories-grid::-webkit-scrollbar {
  display: none;
}

.categories-grid:active {
  cursor: grabbing;
}

.categories-grid .category-card {
  flex: 0 0 calc((100% - (16px * 5)) / 6);
  min-width: 180px;
  scroll-snap-align: start;
}

.categories-grid.grid-expanded {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  overflow-x: visible;
  scroll-snap-type: none;
  cursor: default;
}

.categories-grid.grid-expanded .category-card {
  flex: none;
  min-width: 0;
  max-width: none;
}

.category-card {
  position: relative;
  height: 125px;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: all var(--transition-normal);
}

.category-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: 0 8px 24px -4px var(--primary-glow);
}

.category-card-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.category-card:hover .category-card-bg {
  transform: scale(1.1);
}

.category-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14, 21, 38, 0.2) 0%, rgba(14, 21, 38, 0.92) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 10px 12px;
}

.category-card-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 2px;
}

.category-card-count {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.8);
}

/* ==========================================================================
   Flash Deals Section (Countdown Banner)
   ========================================================================== */
.flash-deals-section,
.bestsellers-section {
  margin-bottom: 56px;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.5) 0%, rgba(15, 23, 42, 0.9) 100%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--border-radius-xl);
  padding: 32px;
}

.flash-deals-header,
.bestsellers-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-subtle);
}

.flash-title-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}

.countdown-timer-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.countdown-label {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-amber);
}

.countdown-boxes {
  display: flex;
  align-items: center;
  gap: 6px;
}

.countdown-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 4px 10px;
  min-width: 44px;
  text-align: center;
}

.countdown-num {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
}

.countdown-unit {
  font-size: 0.65rem;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
}

.countdown-sep {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-muted);
}

.flash-deals-carousel-wrap,
.bestsellers-carousel-wrap {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.flash-view-all-btn,
.bestsellers-view-all-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: var(--border-radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  color: #ffffff;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.4);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.flash-view-all-btn:hover,
.bestsellers-view-all-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
  box-shadow: 0 0 16px var(--primary-glow);
  transform: translateY(-2px);
}

.flash-view-all-btn.active,
.bestsellers-view-all-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
  box-shadow: 0 0 16px var(--primary-glow);
}

.flash-nav-btns .slider-btn,
.bestsellers-nav-btns .slider-btn {
  width: 42px;
  height: 42px;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  color: var(--text-main);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.flash-nav-btns .slider-btn:hover,
.bestsellers-nav-btns .slider-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
  transform: scale(1.08);
}

.flash-deals-grid,
.bestsellers-grid {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 4px 2px 14px 2px;
  cursor: grab;
  -webkit-user-select: none;
  user-select: none;
}

.flash-deals-grid:active,
.bestsellers-grid:active {
  cursor: grabbing;
}

.flash-deals-grid img,
.bestsellers-grid img {
  pointer-events: none;
  -webkit-user-select: none;
  user-select: none;
}

.flash-deals-grid::-webkit-scrollbar,
.bestsellers-grid::-webkit-scrollbar {
  display: none;
}

/* 5 Products visible at a time on desktop view in the same row */
.flash-deals-grid .product-card,
.bestsellers-grid .product-card {
  flex: 0 0 calc((100% - (16px * 4)) / 5);
  min-width: calc((100% - (16px * 4)) / 5);
  max-width: calc((100% - (16px * 4)) / 5);
  scroll-snap-align: start;
}

/* Expanded Grid Mode when clicking View All */
.flash-deals-grid.grid-expanded,
.bestsellers-grid.grid-expanded {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  overflow-x: visible;
  scroll-snap-type: none;
  cursor: default;
}

.flash-deals-grid.grid-expanded .product-card,
.bestsellers-grid.grid-expanded .product-card {
  flex: none;
  min-width: 0;
  max-width: none;
  scroll-snap-align: none;
}

.flash-deals-grid .product-content,
.bestsellers-grid .product-content {
  padding: 8px 10px;
}

.flash-deals-grid .product-title,
.bestsellers-grid .product-title {
  font-size: 0.875rem;
  height: 2.5em;
  margin-bottom: 6px;
}

.flash-deals-grid .current-price,
.bestsellers-grid .current-price {
  font-size: 1.05rem;
}

.flash-deals-grid .original-price,
.bestsellers-grid .original-price {
  font-size: 0.72rem;
}

.flash-deals-grid .deal-progress-wrap,
.bestsellers-grid .deal-progress-wrap {
  margin-bottom: 10px;
}

.flash-deals-grid .deal-progress-text,
.bestsellers-grid .deal-progress-text {
  font-size: 0.7rem;
}

.flash-deals-grid .card-view-btn,
.bestsellers-grid .card-view-btn {
  padding: 6px 10px;
  font-size: 0.75rem;
}

/* ==========================================================================
   Product Catalog & Product Cards (No Quick-Add Clutter)
   ========================================================================== */
.catalog-section {
  margin-bottom: 64px;
}

.catalog-toolbar {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.catalog-selects-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.custom-select-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.catalog-select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 9px 38px 9px 16px;
  border-radius: var(--border-radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  transition: all var(--transition-fast);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.catalog-select:hover {
  border-color: var(--primary);
  background: var(--bg-elevated);
}

.catalog-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.catalog-select option {
  background: var(--bg-surface);
  color: var(--text-main);
  padding: 10px;
  font-weight: 500;
}

.custom-select-wrap .select-arrow-icon {
  position: absolute;
  right: 14px;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: transform var(--transition-fast), color var(--transition-fast);
}

.custom-select-wrap:hover .select-arrow-icon {
  color: var(--primary);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

/* Product Card (Compact height by ~0.6in) */
.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
  position: relative;
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: rgba(99, 102, 241, 0.4);
  box-shadow: var(--shadow-lg), 0 0 20px -6px var(--primary-glow);
  background: var(--bg-card-hover);
}

.product-media-wrap {
  position: relative;
  width: 100%;
  padding-top: 65%;
  overflow: hidden;
  background: var(--bg-surface);
}

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

.product-card-media-link {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  z-index: 1;
  text-decoration: none;
  cursor: pointer;
}

.product-title-link {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.product-title-link:hover {
  color: var(--primary);
}

a.card-view-btn {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

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

.card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  border-radius: var(--border-radius-full);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 2;
}

.badge-sale { background: var(--accent-rose); color: #ffffff; }
.badge-hot { background: var(--accent-amber); color: #0f172a; }
.badge-new { background: var(--primary); color: #ffffff; }

.card-actions {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 3;
}

.card-action-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(14, 21, 38, 0.85);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-fast);
}

.card-action-btn:hover {
  background: #ffffff;
  color: #0f172a;
  transform: scale(1.1);
}

.card-action-btn.wishlist-btn.active {
  color: var(--accent-rose);
  background: rgba(244, 63, 94, 0.2);
  border-color: var(--accent-rose);
}

.product-content {
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-category-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.product-cat-name {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--primary);
  font-weight: 700;
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.78rem;
  color: var(--accent-amber);
  font-weight: 700;
}

.product-title {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-main);
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 2.4em;
}

.product-spec-pill {
  display: inline-block;
  font-size: 0.72rem;
  color: var(--text-muted);
  background: var(--bg-elevated);
  padding: 2px 7px;
  border-radius: 4px;
  margin-bottom: 6px;
  width: fit-content;
}

.deal-progress-wrap {
  margin-bottom: 6px;
}

.deal-progress-text {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.deal-progress-bar {
  width: 100%;
  height: 6px;
  background: var(--bg-elevated);
  border-radius: 3px;
  overflow: hidden;
}

.deal-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #f59e0b, #ef4444);
  border-radius: 3px;
}

/* Card Footer: Clean view details */
.product-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--border-subtle);
}

.price-wrap {
  display: flex;
  flex-direction: column;
}

.current-price {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
}

.original-price {
  font-size: 0.8125rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.card-view-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  border-radius: 50%;
  transition: all var(--transition-fast);
}

.product-card:hover .card-view-btn {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
  box-shadow: 0 4px 12px var(--primary-glow);
  transform: scale(1.08);
}

/* Catalog Load More */
.catalog-load-more-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 42px;
  text-align: center;
}

.btn-load-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 36px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--border-radius-full);
  color: var(--text-main);
  font-size: 0.9375rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.btn-load-more:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--primary-glow);
}

.btn-load-more svg {
  transition: transform var(--transition-fast);
}

.btn-load-more:hover svg {
  transform: translateY(2px);
}

/* ==========================================================================
   PRODUCT DETAIL PAGE (PDP) — Full Daraz / Major E-Commerce Style
   ========================================================================== */
.pdp-section {
  padding: 24px 0 64px;
  display: none;
}

.pdp-section.active {
  display: block;
}

.pdp-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.pdp-breadcrumbs a:hover {
  color: var(--primary);
}

.pdp-breadcrumbs-sep {
  color: var(--text-faint);
}

.pdp-back-btn {
  display: none;
}

/* 3-Column Daraz Style Layout */
.pdp-main-grid {
  display: grid;
  grid-template-columns: 460px 1fr 320px;
  gap: 32px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--border-radius-xl);
  padding: 32px;
  margin-bottom: 40px;
}

/* Left: Gallery */
.pdp-gallery-wrap {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pdp-featured-img-box {
  width: 100%;
  height: 420px;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  position: relative;
}

.pdp-featured-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.pdp-featured-img:hover {
  transform: scale(1.15);
  cursor: crosshair;
}

.pdp-main-video-wrap {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  background: #000;
  z-index: 2;
  border-radius: inherit;
  overflow: hidden;
}

.pdp-main-video-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.pdp-thumb-video {
  position: relative;
  overflow: hidden;
  background: #000;
}

.pdp-thumb-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
}

.pdp-thumb-item {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  object-fit: cover;
  cursor: pointer;
  border: 2px solid transparent;
  background: var(--bg-elevated);
  transition: border-color var(--transition-fast);
}

.pdp-thumb-item.active,
.pdp-thumb-item:hover {
  border-color: var(--primary);
}

.pdp-authenticity-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: var(--bg-elevated);
  border-radius: var(--border-radius-md);
  font-size: 0.75rem;
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}

.pdp-authenticity-bar span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Middle: Info & Buy Options */
.pdp-info-wrap {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.pdp-brand-sku {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.pdp-brand-sku strong {
  color: var(--primary);
}

.pdp-title {
  font-family: var(--font-heading);
  font-size: 1.85rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--text-main);
  margin-bottom: 12px;
}

.pdp-rating-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 20px;
  font-size: 0.875rem;
}

.pdp-rating-stars {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--accent-amber);
  font-weight: 700;
}

.pdp-price-box {
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: var(--border-radius-md);
  padding: 18px 20px;
  margin-bottom: 24px;
}

.pdp-price-row {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 6px;
}

.pdp-current-price {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--accent-emerald);
}

.pdp-orig-price {
  font-size: 1.25rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.pdp-discount-pill {
  background: var(--accent-rose);
  color: #ffffff;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 800;
}

.pdp-promo-alert {
  font-size: 0.8125rem;
  color: var(--accent-amber);
  display: flex;
  align-items: center;
  gap: 6px;
}

.pdp-variants-section {
  margin-bottom: 24px;
}

.pdp-variant-label {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 10px;
  display: block;
}

.pdp-color-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pdp-swatch-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--border-radius-full);
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.8125rem;
  font-weight: 600;
  transition: all var(--transition-fast);
}

.pdp-swatch-btn.active,
.pdp-swatch-btn:hover {
  border-color: var(--primary);
  color: #ffffff;
  background: rgba(99, 102, 241, 0.2);
}

.pdp-swatch-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
}

.pdp-size-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pdp-size-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  padding: 6px 14px;
  border-radius: 8px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.pdp-size-btn.active,
.pdp-size-btn:hover {
  border-color: var(--primary);
  color: #ffffff;
  background: rgba(99, 102, 241, 0.2);
}

.pdp-qty-section {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 18px;
}

.pdp-qty-label {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-main);
}

.pdp-stock-status {
  font-size: 0.8125rem;
  color: var(--accent-emerald);
  font-weight: 600;
}

.pdp-action-btns {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 0;
}

.btn-buy-now {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  padding: 14px 24px;
  border-radius: var(--border-radius-md);
  font-size: 1rem;
  font-weight: 800;
  box-shadow: 0 4px 16px var(--accent-emerald-glow);
  transition: all var(--transition-fast);
}

.btn-buy-now:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--accent-emerald-glow);
}

.btn-add-cart-pdp {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--primary);
  color: #ffffff;
  padding: 14px 24px;
  border-radius: var(--border-radius-md);
  font-size: 1rem;
  font-weight: 700;
  transition: all var(--transition-fast);
}

.btn-add-cart-pdp:hover {
  background: var(--primary-hover);
  box-shadow: 0 4px 14px var(--primary-glow);
  transform: translateY(-2px);
}

.btn-wishlist-pdp {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  transition: all var(--transition-fast);
}

.btn-wishlist-pdp.active,
.btn-wishlist-pdp:hover {
  color: var(--accent-rose);
  border-color: var(--accent-rose);
  background: rgba(244, 63, 94, 0.15);
}

/* Right: Delivery & Warranty Panel (Daraz Style) */
.pdp-delivery-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--border-radius-lg);
  padding: 24px;
}

.pdp-sidebar-title {
  font-size: 0.875rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-subtle);
}

.delivery-sidebar-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.delivery-item-icon {
  color: var(--primary);
  margin-top: 2px;
}

.delivery-item-info h5 {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 2px;
}

.delivery-item-info p {
  font-size: 0.775rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.chat-seller-item {
  cursor: pointer;
  padding: 10px 12px;
  margin: -4px -10px;
  border-radius: var(--border-radius-md);
  border: 1px dashed rgba(99, 102, 241, 0.35);
  background: rgba(99, 102, 241, 0.06);
  transition: all var(--transition-fast);
}

.chat-seller-item:hover {
  background: rgba(99, 102, 241, 0.15);
  border-color: var(--primary);
  transform: translateX(3px);
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.15);
}

.seller-online-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent-emerald);
  background: rgba(16, 185, 129, 0.12);
  padding: 2px 7px;
  border-radius: var(--border-radius-full);
}

.online-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 6px var(--accent-emerald);
}

.call-seller-item {
  cursor: pointer;
  padding: 10px 12px;
  margin: -4px -10px;
  border-radius: var(--border-radius-md);
  border: 1px dashed rgba(16, 185, 129, 0.35);
  background: rgba(16, 185, 129, 0.06);
  transition: all var(--transition-fast);
}

.call-seller-item:hover {
  background: rgba(16, 185, 129, 0.15);
  border-color: var(--accent-emerald);
  transform: translateX(3px);
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.15);
}

.seller-call-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent-emerald);
  background: rgba(16, 185, 129, 0.12);
  padding: 2px 7px;
  border-radius: var(--border-radius-full);
}

.video-seller-item {
  cursor: pointer;
  padding: 10px 12px;
  margin: -4px -10px;
  border-radius: var(--border-radius-md);
  border: 1px dashed rgba(139, 92, 246, 0.35);
  background: rgba(139, 92, 246, 0.06);
  transition: all var(--transition-fast);
}

.video-seller-item:hover {
  background: rgba(139, 92, 246, 0.15);
  border-color: #8b5cf6;
  transform: translateX(3px);
  box-shadow: 0 4px 14px rgba(139, 92, 246, 0.15);
}

.seller-video-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.7rem;
  font-weight: 700;
  color: #a78bfa;
  background: rgba(139, 92, 246, 0.15);
  padding: 2px 7px;
  border-radius: var(--border-radius-full);
}

/* PDP Tabs Section (Overview, Specs, Reviews) */
.pdp-tabs-container {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--border-radius-xl);
  padding: 32px;
  margin-bottom: 48px;
}

.pdp-tab-nav {
  display: flex;
  gap: 24px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 28px;
}

.pdp-tab-link {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-muted);
  padding-bottom: 12px;
  border-bottom: 2px solid transparent;
  transition: all var(--transition-fast);
}

.pdp-tab-link.active,
.pdp-tab-link:hover {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.pdp-tab-pane {
  display: none;
}

.pdp-tab-pane.active {
  display: block;
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
}

.specs-table tr {
  border-bottom: 1px solid var(--border-subtle);
}

.specs-table td {
  padding: 12px 16px;
  font-size: 0.875rem;
}

.specs-table td:first-child {
  font-weight: 700;
  color: var(--text-muted);
  width: 260px;
}

/* ==========================================================================
   CHECKOUT PAGE VIEW (Full Dedicated Flow)
   ========================================================================== */
.checkout-page-section {
  padding: 32px 0 64px;
  display: none;
}

.checkout-page-section.active {
  display: block;
}

.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 32px;
}

.checkout-main-form {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--border-radius-xl);
  padding: 36px;
}

.checkout-sidebar {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--border-radius-xl);
  padding: 28px;
  height: fit-content;
}

.checkout-block-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ==========================================================================
   Promo Banner, Reviews & Newsletter
   ========================================================================== */
.promo-banner-section {
  margin-bottom: 64px;
}

.promo-banner {
  background: radial-gradient(circle at 100% 50%, rgba(99, 102, 241, 0.3) 0%, rgba(14, 21, 38, 0.95) 70%), #0e1526;
  border: 1px solid var(--border-subtle);
  border-radius: var(--border-radius-xl);
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.promo-content { max-width: 600px; }

.promo-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: var(--accent-amber);
  padding: 4px 12px;
  border-radius: var(--border-radius-full);
  font-size: 0.8125rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.promo-title {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 12px;
  line-height: 1.2;
}

.promo-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.promo-badge-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius-lg);
  padding: 24px;
  text-align: center;
  min-width: 220px;
}

.promo-badge-val {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
}

.promo-badge-text {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-main);
  margin-top: 6px;
}

.reviews-section { margin-bottom: 64px; }

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.review-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--border-radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-fast);
}

.review-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-light);
  background: var(--bg-card-hover);
}

.review-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.review-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary);
}

.review-user-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
}

.review-user-role {
  font-size: 0.75rem;
  color: var(--accent-emerald);
  font-weight: 600;
}

.review-stars {
  color: var(--accent-amber);
  margin-bottom: 10px;
}

.review-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
}

.review-comment {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
  flex: 1;
}

.review-product-tag {
  font-size: 0.75rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-subtle);
  padding-top: 12px;
}

/* Compact Footer VIP Club Widget */
.footer-vip-widget {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(14, 21, 38, 0.85) 100%);
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: var(--border-radius-lg);
  padding: 22px 28px;
  margin-bottom: 48px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.18);
}

.footer-vip-text {
  flex: 1;
}

.footer-vip-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #f59e0b;
  margin-bottom: 4px;
}

.footer-vip-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 4px;
}

.footer-vip-subtitle {
  font-size: 0.84rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.4;
}

.footer-vip-form {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius-full);
  padding: 5px 6px 5px 16px;
  max-width: 440px;
  width: 100%;
  flex-shrink: 0;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.footer-vip-form:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--primary-glow);
}

.footer-vip-input {
  flex: 1;
  background: transparent;
  border: none;
  font-size: 0.875rem;
  color: var(--text-main);
  outline: none;
  min-width: 0;
}

.footer-vip-input::placeholder {
  color: var(--text-muted);
}

.footer-vip-btn {
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  color: #ffffff;
  border: none;
  padding: 10px 22px;
  border-radius: var(--border-radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 2px 10px var(--primary-glow);
  transition: all var(--transition-fast);
}

.footer-vip-btn:hover {
  background: var(--primary-hover);
  box-shadow: 0 4px 16px var(--primary-glow);
  transform: translateY(-1px);
}

@media (max-width: 900px) {
  .footer-vip-widget {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 20px;
  }
  .footer-vip-form {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .footer-vip-widget {
    text-align: center;
    padding: 18px 16px;
  }
  .footer-vip-tag {
    justify-content: center;
  }
  .footer-vip-title {
    font-size: 1.1rem;
  }
  .footer-vip-subtitle {
    font-size: 0.78rem;
  }
  .footer-vip-form {
    padding: 4px 5px 4px 12px;
  }
  .footer-vip-btn {
    padding: 8px 16px;
    font-size: 0.8rem;
  }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  padding: 64px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(4, 1fr) 1.5fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 16px 0 20px;
  line-height: 1.6;
}

.social-links {
  display: flex;
  gap: 10px;
}

.social-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

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

.footer-col h5 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 18px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--primary);
  transform: translateX(3px);
}

/* Subtle professional highlight for the "Sell on TijaratMarkaz.pk" footer link */
#footer-sell-link {
  display: inline-block;
  color: var(--primary);
  font-weight: 600;
  position: relative;
}

#footer-sell-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  opacity: 0.6;
  transition: opacity var(--transition-fast);
}

#footer-sell-link:hover::after {
  opacity: 1;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.copyright {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.payment-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.payment-badge {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-secondary);
}

/* ==========================================================================
   Modals & Slide-out Cart Drawer
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 7, 14, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.cart-drawer,
.wishlist-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  height: 100dvh;
  width: 100%;
  max-width: 440px;
  background: var(--bg-surface);
  border-left: 1px solid var(--border-subtle);
  z-index: 2010;
  transform: translateX(100%);
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  box-shadow: -12px 0 45px rgba(0, 0, 0, 0.5);
  overscroll-behavior: contain;
}

.cart-drawer.active,
.wishlist-drawer.active {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-subtle);
  flex-shrink: 0;
}

.drawer-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}

.drawer-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.drawer-close:hover {
  background: var(--bg-elevated);
  color: var(--text-main);
}

.free-shipping-tracker {
  padding: 14px 24px;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border-subtle);
  flex-shrink: 0;
}

.shipping-status-text {
  font-size: 0.8125rem;
  color: var(--text-main);
  margin-bottom: 8px;
}

.shipping-status-text strong {
  color: var(--accent-emerald);
}

.shipping-progress-bar {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
}

.shipping-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #6366f1, #10b981);
  border-radius: 3px;
  transition: width 0.4s ease;
}

.cart-items-list {
  flex: 1;
  overflow-y: auto;
  padding: 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.cart-item-thumb {
  width: 68px;
  height: 68px;
  border-radius: 10px;
  object-fit: cover;
  background: var(--bg-elevated);
}

.cart-item-details { flex: 1; }

.cart-item-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
  line-height: 1.3;
}

.cart-item-price {
  font-size: 0.875rem;
  font-weight: 800;
  color: var(--accent-emerald);
  margin-bottom: 8px;
}

.cart-item-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.qty-counter {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border-subtle);
  border-radius: var(--border-radius-sm);
  background: var(--bg-input);
}

.qty-btn {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  font-size: 1rem;
  font-weight: 700;
}

.qty-btn:hover { background: var(--bg-elevated); }

.qty-value {
  padding: 0 10px;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text-main);
}

.cart-item-remove {
  color: var(--text-muted);
  font-size: 0.8125rem;
  padding: 4px;
}

.cart-item-remove:hover { color: var(--accent-rose); }

.empty-cart-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  color: var(--text-muted);
  padding: 40px 20px;
}

.cart-drawer-footer {
  padding: 20px 24px;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  flex-shrink: 0;
}

.coupon-box {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.mobile-payment-coupon {
  display: none;
}

.coupon-input {
  flex: 1;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  padding: 8px 14px;
  border-radius: var(--border-radius-sm);
  font-size: 0.8125rem;
  text-transform: uppercase;
}

.coupon-btn {
  background: var(--bg-elevated);
  border: 1px solid var(--border-light);
  color: var(--text-main);
  padding: 8px 16px;
  border-radius: var(--border-radius-sm);
  font-size: 0.8125rem;
  font-weight: 700;
  transition: all var(--transition-fast);
}

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

.coupon-applied-tag {
  display: none;
  font-size: 0.75rem;
  color: var(--accent-emerald);
  margin-bottom: 12px;
  align-items: center;
  justify-content: space-between;
  background: rgba(16, 185, 129, 0.1);
  padding: 6px 10px;
  border-radius: 4px;
}

.coupon-applied-tag.visible { display: flex; }

.cart-summary-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.summary-row.total-row {
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--text-main);
  border-top: 1px solid var(--border-subtle);
  padding-top: 10px;
}

.mobile-payment-summary {
  display: none;
}

.checkout-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  padding: 14px;
  border-radius: var(--border-radius-md);
  font-size: 1rem;
  font-weight: 800;
  box-shadow: 0 4px 16px var(--accent-emerald-glow);
  transition: all var(--transition-fast);
}

.checkout-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--accent-emerald-glow);
}

.cart-trust-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 12px;
  font-size: 0.72rem;
  color: var(--text-muted);
  text-align: center;
}

/* ==========================================================================
   Slide-out Wishlist Drawer
   ========================================================================== */
.drawer-count-badge {
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 700;
  margin-left: 4px;
}

.wishlist-perks-banner {
  padding: 12px 24px;
  background: rgba(16, 185, 129, 0.08);
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.78rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.wishlist-items-list {
  flex: 1;
  overflow-y: auto;
  padding: 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.wishlist-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--border-radius-md);
  transition: all var(--transition-fast);
}

.wishlist-item:hover {
  border-color: rgba(99, 102, 241, 0.35);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.wishlist-item-thumb {
  width: 70px;
  height: 70px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--bg-elevated);
  cursor: pointer;
  flex-shrink: 0;
  border: 1px solid var(--border-subtle);
}

.wishlist-item-details {
  flex: 1;
  min-width: 0;
}

.wishlist-item-cat {
  font-size: 0.68rem;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
  letter-spacing: 0.4px;
  display: block;
}

.wishlist-item-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.3;
  margin: 2px 0 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
}

.wishlist-item-title:hover {
  color: var(--primary);
}

.wishlist-item-price-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.wishlist-item-price {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--accent-emerald);
}

.wishlist-item-stock-tag {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--accent-emerald);
  background: rgba(16, 185, 129, 0.12);
  padding: 1px 6px;
  border-radius: 4px;
}

.wishlist-item-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.wishlist-add-cart-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--primary);
  color: #ffffff;
  border: none;
  border-radius: var(--border-radius-sm);
  padding: 7px 12px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.wishlist-add-cart-btn:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px var(--primary-glow);
}

.wishlist-item-remove-btn {
  width: 32px;
  height: 32px;
  border-radius: var(--border-radius-sm);
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.wishlist-item-remove-btn:hover {
  background: rgba(239, 68, 68, 0.12);
  color: var(--accent-rose);
  border-color: rgba(239, 68, 68, 0.3);
}

.wishlist-drawer-footer {
  padding: 18px 24px;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex-shrink: 0;
}

@media (max-width: 480px) {
  .cart-drawer,
  .wishlist-drawer {
    max-width: 100%;
    border-left: none;
  }

  .drawer-header {
    padding: 16px 20px;
  }

  .cart-items-list,
  .wishlist-items-list {
    padding: 14px 18px;
  }

  .cart-drawer-footer,
  .wishlist-drawer-footer {
    padding: 16px 18px;
  }
}

/* Common Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  color: #ffffff;
  padding: 12px 28px;
  border-radius: var(--border-radius-full);
  font-size: 0.95rem;
  font-weight: 700;
  box-shadow: 0 4px 20px var(--primary-glow);
  transition: all var(--transition-fast);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px var(--primary-glow);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-light);
  color: var(--text-main);
  padding: 12px 24px;
  border-radius: var(--border-radius-full);
  font-size: 0.95rem;
  font-weight: 600;
  transition: all var(--transition-fast);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Modals */
.center-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -46%) scale(0.96);
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius-xl);
  /* Must render above the modal backdrop (z-index: 2000) and
     cart/wishlist drawers (z-index: 2010) so the dialog stays
     crisp, undimmed, and centered instead of being blurred. */
  z-index: 2050;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  transition: opacity var(--transition-smooth), transform var(--transition-smooth), visibility var(--transition-smooth);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.center-modal.active {
  opacity: 1 !important;
  pointer-events: auto !important;
  visibility: visible !important;
  display: block !important;
  z-index: 10001 !important;
  transform: translate(-50%, -50%) scale(1) !important;
}

.modal-close-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all var(--transition-fast);
}

.modal-close-btn:hover {
  background: var(--bg-elevated);
  color: var(--text-main);
}

/* Form Styles */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-input {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  padding: 10px 14px;
  border-radius: var(--border-radius-sm);
  color: var(--text-main);
  font-size: 0.875rem;
  transition: border-color var(--transition-fast);
}

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

.payment-methods-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.payment-method-card {
  border: 1px solid var(--border-subtle);
  border-radius: var(--border-radius-md);
  padding: 14px 10px;
  text-align: center;
  cursor: pointer;
  background: var(--bg-input);
  font-size: 0.8125rem;
  font-weight: 700;
  transition: all var(--transition-fast);
}

.payment-method-card.active,
.payment-method-card:hover {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--text-main);
}

/* Order Success Screen */
.order-success-screen {
  text-align: center;
  padding: 32px 20px;
  display: none;
}

.order-success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-emerald);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 18px;
  box-shadow: 0 0 24px var(--accent-emerald-glow);
}

.final-order-summary {
  display: none;
  text-align: left;
  padding: 20px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--border-radius-md);
  margin-top: 24px;
}

@media (min-width: 769px) {
  .final-order-summary {
    display: none !important;
  }
}

/* Toast */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 99999;
  pointer-events: none;
}

.toast {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius-md);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-lg);
  pointer-events: auto;
  min-width: 280px;
  animation: toast-in 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  transition: all 0.3s ease;
}

@keyframes toast-in {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.toast-message {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-main);
}

.toast-success { border-left: 4px solid var(--accent-emerald); }
.toast-info { border-left: 4px solid var(--primary); }

/* Mobile Navigation */
.mobile-nav-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 80%;
  max-width: 320px;
  background: var(--bg-surface);
  border-right: 1px solid var(--border-subtle);
  z-index: 550;
  transform: translateX(-100%);
  visibility: hidden;
  pointer-events: none;
  transition: transform var(--transition-smooth), visibility var(--transition-smooth);
  display: flex;
  flex-direction: column;
  padding: 24px;
}

.mobile-nav-drawer.active {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
}

.mobile-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
}

.mobile-bottom-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  height: 60px;
  z-index: 200;
  padding: 0 16px;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.mobile-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-around;
  height: 100%;
}

.mobile-bar-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: var(--text-muted);
  font-size: 0.7rem;
  font-weight: 600;
  position: relative;
}

.mobile-bar-btn.active,
.mobile-bar-btn:hover {
  color: var(--primary);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1200px) {
  .pdp-main-grid {
    grid-template-columns: 380px 1fr;
  }
  .pdp-delivery-sidebar {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }
  .checkout-layout {
    grid-template-columns: 1fr;
  }
  .products-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .categories-grid.grid-expanded {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 992px) {
  .hero-slide {
    padding: 28px 32px 36px;
    gap: 24px;
  }
  .hero-title {
    font-size: 1.95rem;
  }
  .hero-media {
    max-width: 330px;
    height: 260px;
  }
  .hero-image {
    max-height: 220px;
  }
  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .flash-deals-grid .product-card,
  .bestsellers-grid .product-card {
    flex: 0 0 calc((100% - (16px * 2)) / 3);
    min-width: calc((100% - (16px * 2)) / 3);
    max-width: calc((100% - (16px * 2)) / 3);
  }
  .flash-deals-grid.grid-expanded,
  .bestsellers-grid.grid-expanded {
    grid-template-columns: repeat(3, 1fr);
  }
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .reviews-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .pdp-main-grid {
    grid-template-columns: 1fr;
  }
  .pdp-featured-img-box {
    height: 320px;
  }
  .pdp-delivery-sidebar {
    grid-template-columns: 1fr;
  }
}

/* PDP Mobile Action Bar: hidden by default, shown only on the product page in mobile */
.pdp-mobile-action-bar {
  display: none;
}

@media (max-width: 768px) {
  .container {
    padding-left: 16px !important;
    padding-right: 16px !important;
    max-width: 100%;
    box-sizing: border-box;
  }

  body,
  #main-content {
    overflow-x: hidden;
    max-width: 100vw;
  }

  .site-header {
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
  }

  .header-main {
    gap: 12px;
    width: 100%;
    max-width: 100%;
  }

  /* Ultra-Professional Mobile Top Announcement Bar */
  .announcement-bar {
    padding: 7px 0;
    background: linear-gradient(90deg, #312e81 0%, #4338ca 50%, #3730a3 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
    width: 100%;
  }
  .announcement-bar .container {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 16px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  .announcement-ticker {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
    width: 100% !important;
    max-width: 100% !important;
    gap: 6px 8px !important;
    font-size: 0.74rem !important;
    font-weight: 500 !important;
    line-height: 1.25 !important;
    text-align: center !important;
  }
  .announcement-actions,
  .announcement-sep,
  .announcement-item-secondary,
  .announcement-extra-word {
    display: none !important;
  }
  .ticker-badge {
    background: rgba(255, 255, 255, 0.18) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: #ffffff !important;
    font-size: 0.62rem !important;
    font-weight: 800 !important;
    padding: 2px 7px !important;
    border-radius: var(--border-radius-full) !important;
    letter-spacing: 0.4px !important;
    text-transform: uppercase !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
    flex-shrink: 0 !important;
  }
  .ticker-badge::before {
    content: '';
    display: inline-block;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #ef4444;
    box-shadow: 0 0 5px #ef4444;
    animation: tickerLiveDot 1.8s infinite ease-in-out;
    flex-shrink: 0;
  }
  @keyframes tickerLiveDot {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.35); opacity: 0.55; }
  }
  .announcement-primary-offer {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
    gap: 5px 6px !important;
    letter-spacing: 0.1px;
    padding: 0 !important;
  }
  .announcement-primary-offer strong {
    color: #ffffff;
    font-weight: 700;
  }
  .announcement-icon {
    color: #fbbf24 !important;
    filter: drop-shadow(0 0 4px rgba(251, 191, 36, 0.5));
    width: 12px !important;
    height: 12px !important;
    flex-shrink: 0 !important;
  }
  .announcement-code {
    background: #ffffff !important;
    color: #312e81 !important;
    padding: 2px 7px !important;
    border-radius: 4px !important;
    font-weight: 800 !important;
    font-size: 0.70rem !important;
    letter-spacing: 0.4px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.22) !important;
    border: 1px dashed rgba(49, 46, 129, 0.35) !important;
    cursor: pointer;
    flex-shrink: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    transition: transform 0.15s ease, background 0.15s ease;
  }
  .announcement-code .code-copy-svg {
    width: 10px;
    height: 10px;
    stroke: #312e81;
    opacity: 0.8;
  }
  .announcement-code:active {
    transform: scale(0.95);
  }

  /* Search bar: give it its own full-width row beneath the logo/actions */
  .header-main {
    flex-wrap: wrap;
    height: auto;
    padding-top: 10px;
    padding-bottom: 10px;
    row-gap: 10px;
  }
  .search-wrapper {
    display: block;
    order: 3;
    flex: 0 0 100%;
    max-width: 100%;
  }
  .cart-text-wrap {
    display: none;
  }
  .header-actions #wishlist-btn,
  .header-actions #cart-btn {
    display: none !important;
  }
  /* Hide header hamburger — replaced by bottom bar Menu button */
  .mobile-menu-btn {
    display: none !important;
  }
  .mobile-bottom-bar {
    display: flex;
    height: 56px;
    padding: 0;
    width: 100%;
    left: 0;
    right: 0;
    box-sizing: border-box;
  }
  .mobile-bottom-inner {
    justify-content: stretch;
    width: 100%;
    padding: 0;
  }
  .mobile-bar-btn {
    justify-content: center;
    font-size: 0.58rem;
    flex: 1;
    min-width: 0;
    padding: 0 2px;
    gap: 2px;
  }
  .mobile-bar-btn svg {
    width: 19px;
    height: 19px;
    flex-shrink: 0;
  }
  body {
    padding-bottom: 56px;
  }
  #popular-categories-section {
    margin-top: 8px !important;
    margin-bottom: 16px;
    padding-top: 0;
  }
  .hero-section {
    padding: 10px 0 8px;
  }
  .hero-layout-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  .hero-main-banner-wrap {
    width: 100%;
    height: 110px;
  }
  .hero-slider {
    min-height: 110px;
    height: 110px;
    border-radius: 0 !important;
  }
  .hero-side-banners {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    width: 100%;
    height: auto;
  }
  .hero-side-card {
    width: 100%;
    min-height: 206px;
    height: 206px;
    aspect-ratio: auto;
    border-radius: 0 !important;
  }
  .hero-reels-media,
  .hero-promo-media,
  .hero-reels-slideshow,
  .hero-promo-slideshow {
    min-height: 206px;
    height: 206px;
    border-radius: 0 !important;
  }
  .hero-reels-poster,
  .hero-promo-img {
    border-radius: 0 !important;
  }
  .hero-reels-badge {
    top: 6px;
    left: 6px;
    padding: 2px 7px;
    font-size: 0.58rem;
    gap: 4px;
    border-radius: 0 !important;
  }
  .hero-reels-badge-icon {
    width: 12px;
    height: 12px;
    border-radius: 0 !important;
  }
  .hero-reels-badge-icon svg {
    width: 8px;
    height: 8px;
  }
  .hero-reels-play-btn {
    width: 32px;
    height: 32px;
    border-radius: 0 !important;
  }
  .hero-reels-play-btn svg {
    width: 14px;
    height: 14px;
  }
  .hero-reels-overlay-content {
    padding: 6px 8px;
    gap: 4px;
  }
  .hero-reels-pill {
    display: none;
  }
  .hero-reels-title {
    font-size: 0.72rem;
  }
  .hero-reels-watch-hint {
    display: none;
  }
  .hero-reels-buy-btn {
    padding: 3px 8px;
    font-size: 0.65rem;
    gap: 3px;
    border-radius: 0 !important;
  }
  .hero-reels-buy-btn svg {
    width: 10px;
    height: 10px;
  }
  .hero-promo-content {
    padding: 8px;
  }
  .hero-promo-badge {
    font-size: 0.55rem;
    padding: 2px 5px;
    border-radius: 0 !important;
  }
  .hero-promo-title {
    font-size: 0.72rem;
  }
  .hero-promo-price {
    font-size: 0.75rem;
  }
  .hero-promo-cta {
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: 0 !important;
  }
  .hero-slide {
    display: flex;
    flex-direction: column;
    text-align: center;
    padding: 18px 16px 20px;
    gap: 10px;
    justify-content: center;
  }
  .hero-slide-content {
    max-width: 100%;
  }
  .hero-title {
    font-size: 1.65rem;
  }
  .hero-desc {
    font-size: 0.875rem;
    margin-bottom: 12px;
  }
  .hero-price-tag {
    justify-content: center;
    margin-bottom: 16px;
  }
  .hero-current-price {
    font-size: 1.75rem;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-media {
    max-width: 220px;
    height: 150px;
    margin: 2px auto 0;
  }
  .hero-image {
    max-height: 130px;
  }
  .hero-indicators {
    left: 50%;
    transform: translateX(-50%);
  }
  .hero-controls {
    display: none;
  }
  .trust-bar {
    display: none !important;
  }
  #popular-categories-section .section-title-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: nowrap;
    margin-bottom: 14px;
  }
  #popular-categories-section .categories-title-col {
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden;
  }
  #popular-categories-section .section-title {
    font-size: clamp(0.95rem, 4.3vw, 1.25rem);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
    letter-spacing: -0.3px;
    margin-bottom: 0;
  }
  #popular-categories-section .categories-header-actions {
    display: flex;
    align-items: center;
    flex-shrink: 0;
  }
  #popular-categories-section .categories-view-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 13px;
    font-size: 0.78rem;
    font-weight: 700;
    color: #ffffff;
    background: rgba(99, 102, 241, 0.18);
    border: 1px solid rgba(99, 102, 241, 0.45);
    border-radius: var(--border-radius-full);
    white-space: nowrap;
    flex-shrink: 0;
    letter-spacing: 0.2px;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.2);
    transition: all var(--transition-fast);
  }
  #popular-categories-section .categories-view-all-btn:active {
    background: var(--primary);
    border-color: var(--primary);
    transform: scale(0.96);
  }
  #popular-categories-section .categories-view-all-btn svg {
    width: 13px;
    height: 13px;
  }
  .categories-nav-btn {
    opacity: 1;
    pointer-events: auto;
    width: 32px;
    height: 32px;
    background: rgba(14, 21, 38, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    z-index: 20;
  }
  .categories-nav-prev {
    left: 4px;
  }
  .categories-nav-next {
    right: 4px;
  }
  .categories-nav-btn svg {
    width: 14px;
    height: 14px;
  }
  .categories-carousel-wrap {
    margin-bottom: 28px;
  }
  /* Mobile nav drawer must sit above the modal backdrop (z-index: 2000) */
  #mobile-nav-drawer {
    z-index: 2100;
  }
  .categories-grid {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: visible;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    gap: 10px;
    padding: 4px 0 12px 0;
  }
  .categories-grid .category-card {
    flex: 0 0 90px !important;
    min-width: 90px !important;
    max-width: 90px !important;
    width: 90px !important;
    height: 90px;
    border-radius: var(--border-radius-sm);
    scroll-snap-align: start;
  }
  .categories-grid .category-card-overlay {
    padding: 6px 4px;
    background: linear-gradient(180deg, rgba(14, 21, 38, 0.1) 0%, rgba(14, 21, 38, 0.95) 100%);
    justify-content: flex-end;
  }
  .categories-grid .category-card-name {
    font-size: 0.58rem;
    font-weight: 700;
    line-height: 1.15;
    text-align: center;
    margin-bottom: 0;
    white-space: normal;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }
  .categories-grid .category-card-count {
    display: none;
  }
  .categories-grid.grid-expanded {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    overflow-x: visible;
  }
  .categories-grid.grid-expanded .category-card {
    flex: none;
    min-width: 0;
    max-width: none;
    height: 120px;
  }
  .categories-grid.grid-expanded .category-card-name {
    font-size: 0.75rem;
  }
  .categories-grid.grid-expanded .category-card-count {
    display: none;
  }
  .flash-view-all-btn,
  .bestsellers-view-all-btn {
    padding: 6px 14px;
    font-size: 0.78rem;
  }
  .flash-deals-grid,
  .bestsellers-grid {
    gap: 12px;
    padding: 4px 0 14px 0;
  }
  .flash-deals-grid.grid-expanded,
  .bestsellers-grid.grid-expanded,
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .flash-deals-grid .product-card,
  .bestsellers-grid .product-card {
    flex: 0 0 calc((100% - 12px) / 2);
    min-width: calc((100% - 12px) / 2);
    max-width: calc((100% - 12px) / 2);
  }
  .flash-deals-grid .product-content,
  .bestsellers-grid .product-content,
  .products-grid .product-content {
    padding: 10px 8px;
  }
  .flash-deals-grid .card-view-btn,
  .bestsellers-grid .card-view-btn,
  .products-grid .card-view-btn {
    width: 30px;
    height: 30px;
    padding: 0;
  }
  .flash-deals-grid .current-price,
  .bestsellers-grid .current-price,
  .products-grid .current-price {
    font-size: 0.95rem;
  }
  .flash-deals-grid .product-title,
  .bestsellers-grid .product-title,
  .products-grid .product-title {
    font-size: 0.8rem;
    height: 2.4em;
    line-height: 1.25;
    margin-bottom: 6px;
  }
  .products-grid .product-spec-pill {
    font-size: 0.68rem;
    padding: 2px 6px;
    margin-bottom: 8px;
  }
  .products-grid .card-badge {
    top: 8px;
    left: 8px;
    padding: 2px 6px;
    font-size: 0.62rem;
  }
  .products-grid .card-actions {
    top: 8px;
    right: 8px;
  }
  .products-grid .card-action-btn {
    width: 28px;
    height: 28px;
  }
  .products-grid .card-action-btn svg {
    width: 14px;
    height: 14px;
  }
  .products-grid .product-cat-name {
    font-size: 0.68rem;
  }
  .products-grid .product-rating {
    font-size: 0.72rem;
    gap: 2px;
  }
  .products-grid .product-footer {
    padding-top: 8px;
    gap: 4px;
  }
  .products-grid .original-price {
    font-size: 0.72rem;
  }
  .reviews-grid {
    grid-template-columns: 1fr;
  }
  .flash-deals-section,
  .bestsellers-section,
  [data-theme="light"] .flash-deals-section,
  [data-theme="light"] .bestsellers-section {
    padding: 0 !important;
    margin-bottom: 32px;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    max-width: 100%;
  }
  .flash-deals-header,
  .bestsellers-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 14px;
    width: 100%;
    border-bottom: 1px solid var(--border-subtle);
  }
  .flash-deals-header .section-subtitle,
  .bestsellers-header .section-subtitle {
    display: none;
  }
  .flash-deals-header > div:last-child,
  .bestsellers-header > div:last-child {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
  }
  .countdown-timer-wrap {
    gap: 8px;
    flex-wrap: wrap;
  }
  .countdown-box {
    padding: 4px 8px;
    min-width: 38px;
  }
  .countdown-num {
    font-size: 1.05rem;
  }
  .promo-banner {
    flex-direction: column;
    text-align: center;
    padding: 24px 16px;
    max-width: 100%;
    overflow: hidden;
  }
  .promo-content {
    max-width: 100%;
  }
  .promo-badge-card {
    min-width: 0;
    width: 100%;
    max-width: 280px;
  }
  .specs-table td:first-child {
    width: 38%;
    min-width: 100px;
  }
  .specs-table td {
    padding: 8px 10px;
    font-size: 0.8rem;
    word-break: break-word;
  }
  .checkout-main-form {
    padding: 20px 16px;
    max-width: 100%;
  }
  .toast-container {
    right: 16px;
    bottom: 74px;
    max-width: calc(100% - 32px);
  }
  .toast {
    min-width: 0;
    max-width: 100%;
  }
  .site-footer {
    display: none;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .catalog-toolbar {
    margin-bottom: 20px;
    padding-bottom: 12px;
  }
  .catalog-selects-row {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .catalog-selects-row .custom-select-wrap {
    flex: 1 1 calc(50% - 4px);
    min-width: 0;
  }
  .catalog-selects-row .catalog-select {
    width: 100%;
    min-width: 0;
    padding: 8px 28px 8px 12px;
    font-size: 0.78rem;
    text-overflow: ellipsis;
  }
  .catalog-selects-row .select-arrow-icon {
    right: 9px;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  .pdp-main-grid {
    padding: 20px 16px;
    gap: 20px;
    margin-bottom: 28px;
  }
  .pdp-tabs-container {
    padding: 20px 16px;
    margin-bottom: 32px;
  }
  .pdp-delivery-sidebar {
    padding: 18px 16px;
  }
  .checkout-step-block {
    padding: 20px 16px;
  }
  .delivery-address-card-wrap {
    display: none;
  }
  .delivery-form-mobile {
    display: grid;
    gap: 14px;
  }
  .delivery-form-mobile .btn-step-continue {
    width: 100%;
    justify-content: center;
  }
  .checkout-sidebar {
    display: none;
  }
  .mobile-payment-coupon {
    display: flex;
  }
  .mobile-payment-summary {
    display: flex;
  }
  .checkout-step-block .delivery-form-grid,
  .checkout-step-block .delivery-form-grid-3 {
    grid-template-columns: 1fr;
  }
  .delivery-tags-row {
    flex-wrap: wrap;
  }
  .delivery-tags-row .btn-step-continue {
    flex: 1 1 100%;
  }
  .review-card {
    padding: 20px 16px;
  }
  .reviews-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 0;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .reviews-grid::-webkit-scrollbar {
    display: none;
  }
  .reviews-grid .review-card {
    flex: 0 0 100%;
    min-width: 100%;
    scroll-snap-align: center;
    justify-content: center;
    text-align: center;
    align-items: center;
  }
  .reviews-grid .review-header,
  .reviews-grid .review-stars,
  .reviews-grid .review-title,
  .reviews-grid .review-product-tag {
    display: none;
  }
  .reviews-grid .review-comment {
    font-size: 1rem;
    line-height: 1.7;
  }
  .footer-vip-widget {
    padding: 20px 16px;
    margin-bottom: 32px;
  }

  /* PDP: hide bottom nav + inline actions, show sticky action bar */
  body.pdp-active .mobile-bottom-bar {
    display: none;
  }
  body.pdp-active {
    padding-bottom: 92px;
  }
  .pdp-main-grid .pdp-action-btns {
    display: none;
  }
  .pdp-featured-img-box {
    height: 300px;
  }
  .pdp-delivery-sidebar {
    display: none;
  }
  .pdp-mobile-action-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 990;
    align-items: stretch;
    gap: 6px;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
    background: var(--bg-surface);
    border-top: 1px solid var(--border-subtle);
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.18);
  }
  body.pdp-active .pdp-mobile-action-bar {
    display: flex;
  }
  .pdp-bar-btn {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 8px 4px;
    border: 1px solid var(--border-subtle);
    border-radius: var(--border-radius-md);
    background: var(--bg-elevated);
    color: var(--text-main);
    font-size: 0.64rem;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition-fast);
  }
  .pdp-bar-btn svg {
    flex-shrink: 0;
  }
  .pdp-bar-btn span {
    min-width: 0;
    line-height: 1.2;
  }
  .pdp-mobile-action-bar .pdp-bar-buy {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-color: transparent;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
  }
  .pdp-mobile-action-bar .pdp-bar-buy:hover {
    background: linear-gradient(135deg, #34d399 0%, #059669 100%);
  }
  .pdp-mobile-action-bar .pdp-bar-buy:active {
    transform: translateY(1px) scale(0.98);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.28);
  }
  .pdp-mobile-action-bar .pdp-bar-cart {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
    border-color: transparent;
    color: #ffffff;
    box-shadow: 0 4px 14px var(--primary-glow);
  }
  .pdp-mobile-action-bar .pdp-bar-cart:hover {
    background: var(--primary-hover);
  }
  .pdp-mobile-action-bar .pdp-bar-cart:active {
    transform: translateY(1px) scale(0.98);
    box-shadow: 0 2px 8px var(--primary-glow);
  }
  .pdp-bar-secondary {
    flex: 0 1 56px;
    padding: 8px 4px;
  }
  .pdp-back-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    border: 1px solid var(--border-subtle);
    background: var(--bg-elevated);
    color: var(--text-main);
    border-radius: var(--border-radius-full);
    cursor: pointer;
    transition: all var(--transition-fast);
  }
}

/* ==========================================================================
   Standard Mobile Breakpoint (≤ 480px)
   ========================================================================== */
@media (max-width: 480px) {
  .container {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  .announcement-bar .container {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  .announcement-ticker {
    font-size: 0.72rem !important;
    gap: 4px 6px !important;
  }

  .ticker-badge {
    font-size: 0.60rem !important;
    padding: 2px 6px !important;
  }

  .announcement-code {
    font-size: 0.68rem !important;
    padding: 2px 6px !important;
  }

  .hero-section {
    padding: 8px 0 6px;
  }
  .hero-slider {
    min-height: 110px;
    height: 110px;
    border-radius: 0 !important;
  }
  .hero-side-card {
    min-height: 206px;
    height: 206px;
    border-radius: 0 !important;
  }
  .hero-reels-media,
  .hero-promo-media,
  .hero-reels-slideshow,
  .hero-promo-slideshow {
    min-height: 206px;
    height: 206px;
    border-radius: 0 !important;
  }
  .hero-slide {
    padding: 14px 14px 18px;
  }

  .categories-grid {
    gap: 6px;
    padding: 2px 0 8px 0;
  }

  .flash-deals-grid,
  .bestsellers-grid,
  .flash-deals-grid.grid-expanded,
  .bestsellers-grid.grid-expanded,
  .products-grid {
    gap: 10px;
  }

  .flash-deals-grid .product-card,
  .bestsellers-grid .product-card {
    flex: 0 0 calc((100% - 10px) / 2);
    min-width: calc((100% - 10px) / 2);
    max-width: calc((100% - 10px) / 2);
  }

  .flash-deals-grid .product-content,
  .bestsellers-grid .product-content,
  .products-grid .product-content {
    padding: 8px 6px;
  }

  .flash-deals-grid .product-title,
  .bestsellers-grid .product-title,
  .products-grid .product-title {
    font-size: 0.78rem;
  }

  .promo-banner {
    padding: 20px 14px;
    margin-bottom: 24px;
  }

  .review-card {
    padding: 18px 14px;
  }

  .footer-vip-widget {
    padding: 18px 14px;
    margin-bottom: 28px;
  }

  .pdp-main-grid {
    padding: 16px 14px;
    gap: 16px;
    margin-bottom: 24px;
  }

  .pdp-tabs-container {
    padding: 16px 14px;
    margin-bottom: 24px;
  }

  .pdp-delivery-sidebar {
    padding: 16px 14px;
  }

  .checkout-step-block {
    padding: 16px 14px;
  }

  .checkout-main-form {
    padding: 16px 14px;
  }

  .toast-container {
    right: 14px;
    bottom: 70px;
    max-width: calc(100% - 28px);
  }

  .mobile-bottom-bar {
    padding: 0 10px;
  }
}

/* ==========================================================================
   Compact Mobile Breakpoint (≤ 380px)
   ========================================================================== */
@media (max-width: 380px) {
  .container {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }

  .announcement-bar {
    padding: 6px 0;
  }

  .announcement-bar .container {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }

  .announcement-ticker {
    font-size: 0.68rem !important;
    gap: 3px 5px !important;
  }

  .ticker-badge {
    font-size: 0.56rem !important;
    padding: 1.5px 5px !important;
  }

  .announcement-code {
    font-size: 0.65rem !important;
    padding: 1.5px 5px !important;
  }

  .hero-slide {
    padding: 12px 10px 16px;
  }

  .hero-title {
    font-size: 1.4rem;
  }

  .categories-grid {
    gap: 6px;
    padding: 2px 0 8px 0;
  }

  .flash-deals-grid,
  .bestsellers-grid,
  .flash-deals-grid.grid-expanded,
  .bestsellers-grid.grid-expanded,
  .products-grid {
    gap: 8px;
  }

  .flash-deals-grid .product-card,
  .bestsellers-grid .product-card {
    flex: 0 0 calc((100% - 8px) / 2);
    min-width: calc((100% - 8px) / 2);
    max-width: calc((100% - 8px) / 2);
  }

  .flash-deals-grid .product-content,
  .bestsellers-grid .product-content,
  .products-grid .product-content {
    padding: 7px 5px;
  }

  .flash-deals-grid .current-price,
  .bestsellers-grid .current-price,
  .products-grid .current-price {
    font-size: 0.88rem;
  }

  .flash-deals-grid .product-title,
  .bestsellers-grid .product-title,
  .products-grid .product-title {
    font-size: 0.74rem;
  }

  .products-grid .card-view-btn {
    padding: 4px 6px;
    font-size: 0.65rem;
  }

  .promo-banner {
    padding: 16px 10px;
    margin-bottom: 20px;
  }

  .review-card {
    padding: 14px 10px;
  }

  .footer-vip-widget {
    padding: 14px 10px;
    margin-bottom: 20px;
  }

  .pdp-main-grid {
    padding: 14px 10px;
    gap: 14px;
    margin-bottom: 20px;
  }

  .pdp-tabs-container {
    padding: 14px 10px;
    margin-bottom: 20px;
  }

  .pdp-delivery-sidebar {
    padding: 14px 10px;
  }

  .checkout-step-block {
    padding: 14px 10px;
  }

  .checkout-main-form {
    padding: 14px 10px;
  }

  .toast-container {
    right: 10px;
    bottom: 68px;
    max-width: calc(100% - 20px);
  }

  .mobile-bottom-bar {
    padding: 0 6px;
  }
}

/* ==========================================================================
   Professional Seller Live Chat Widget
   ========================================================================== */
.seller-chat-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 400px;
  max-width: calc(100% - 32px);
  height: 600px;
  max-height: calc(100vh - 100px);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--border-radius-xl);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45), 0 0 24px var(--primary-glow);
  display: flex;
  flex-direction: column;
  z-index: 1000;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transform: translateY(24px) scale(0.96);
  transition: all var(--transition-normal);
}

.seller-chat-widget.active {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  transform: translateY(0) scale(1);
}

/* Chat Header */
.seller-chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
}

.seller-chat-profile {
  display: flex;
  align-items: center;
  gap: 12px;
}

.seller-avatar-wrap {
  position: relative;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
}

.seller-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary);
}

.seller-live-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 11px;
  height: 11px;
  background: var(--accent-emerald);
  border: 2px solid var(--bg-surface);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-emerald);
}

.seller-info-text {
  display: flex;
  flex-direction: column;
}

.seller-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.seller-store-name {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0;
}

.seller-verified-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--primary);
  color: #ffffff;
}

.seller-status-subtext {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.online-indicator-text {
  color: var(--accent-emerald);
  font-weight: 700;
}

.seller-chat-header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.chat-header-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.chat-header-btn:hover {
  background: var(--bg-card-hover);
  color: var(--text-main);
  border-color: var(--primary);
}

/* Product Context Banner */
.chat-product-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: rgba(99, 102, 241, 0.08);
  border-bottom: 1px solid rgba(99, 102, 241, 0.15);
}

.chat-product-thumb {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--border-subtle);
}

.chat-product-meta {
  flex: 1;
  min-width: 0;
}

.chat-product-inquiry-tag {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary);
  letter-spacing: 0.5px;
}

.chat-product-name {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 1px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-product-price {
  font-size: 0.8125rem;
  font-weight: 800;
  color: var(--accent-emerald);
}

.chat-send-link-btn {
  padding: 5px 10px;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius-full);
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

.chat-send-link-btn:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

/* Quick Inquiry Chips */
.chat-quick-chips {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  overflow-x: auto;
  white-space: nowrap;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  scrollbar-width: none;
}

.chat-quick-chips::-webkit-scrollbar {
  display: none;
}

.chat-chip-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--border-radius-full);
  color: var(--text-secondary);
  padding: 4px 10px;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.chat-chip-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(99, 102, 241, 0.1);
}

/* Chat Messages Area */
.seller-chat-messages {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.chat-msg-row {
  display: flex;
  flex-direction: column;
  max-width: 82%;
  animation: fadeInMsg 0.25s ease forwards;
}

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

.chat-msg-row.sent {
  align-self: flex-end;
  align-items: flex-end;
}

.chat-msg-row.received {
  align-self: flex-start;
  align-items: flex-start;
}

.chat-msg-bubble {
  padding: 10px 14px;
  font-size: 0.875rem;
  line-height: 1.45;
  word-break: break-word;
}

.chat-msg-row.sent .chat-msg-bubble {
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  color: #ffffff;
  border-radius: 16px 16px 4px 16px;
  box-shadow: 0 2px 10px rgba(99, 102, 241, 0.3);
}

.chat-msg-row.received .chat-msg-bubble {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  border-radius: 16px 16px 16px 4px;
}

.chat-msg-meta {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.6875rem;
  color: var(--text-muted);
  margin-top: 3px;
  padding: 0 4px;
}

.chat-msg-ticks {
  color: #60a5fa;
  display: inline-flex;
  align-items: center;
  font-weight: 800;
  font-size: 0.72rem;
  margin-left: 2px;
}

.chat-msg-delete-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  color: #94a3b8;
  padding: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  opacity: 0.4;
  transition: opacity 0.2s, color 0.2s;
}

.chat-msg-delete-btn:hover {
  opacity: 1;
  color: #ef4444;
}

/* Typing Indicator (Receive State) */
.chat-typing-indicator {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: transparent;
}

.typing-avatar img {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--primary);
}

.typing-bubble {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 6px 12px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.typing-bubble span {
  width: 6px;
  height: 6px;
  background: var(--primary);
  border-radius: 50%;
  animation: typingBounce 1.4s infinite ease-in-out both;
}

.typing-bubble span:nth-child(1) { animation-delay: -0.32s; }
.typing-bubble span:nth-child(2) { animation-delay: -0.16s; }
.typing-bubble span:nth-child(3) { animation-delay: 0s; }

@keyframes typingBounce {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
  40% { transform: scale(1.1); opacity: 1; }
}

.typing-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-style: italic;
}

/* Chat Input Box (Messaging State) */
.seller-chat-input-box {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
}

.seller-chat-input {
  flex: 1;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--border-radius-full);
  padding: 10px 16px;
  font-size: 0.875rem;
  color: var(--text-main);
  outline: none;
  transition: border-color var(--transition-fast);
}

.seller-chat-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--primary-glow);
}

.seller-chat-send-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--primary);
  color: #ffffff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all var(--transition-fast);
  box-shadow: 0 2px 8px var(--primary-glow);
}

.seller-chat-send-btn:hover {
  background: var(--primary-hover);
  transform: scale(1.05);
}

@media (max-width: 640px) {
  .seller-chat-widget {
    bottom: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    height: 84vh;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.5);
  }
}

/* ==========================================================================
   Professional Seller Live Video Call Modal
   ========================================================================== */
.seller-video-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  max-width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 10005;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 16px;
}

.seller-video-modal.active {
  opacity: 1;
  visibility: visible;
}

.video-modal-container {
  width: 100%;
  max-width: 760px;
  background: #0b0f19;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.8), 0 0 32px rgba(139, 92, 246, 0.15);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.video-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: #111827;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.video-seller-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.video-seller-avatar {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: visible;
}

.video-seller-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #8b5cf6;
}

.video-live-pulse {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 12px;
  height: 12px;
  background: #10b981;
  border: 2px solid #111827;
  border-radius: 50%;
  animation: pulseLive 2s infinite;
}

@keyframes pulseLive {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.video-store-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 2px 0;
}

.video-call-status {
  font-size: 0.75rem;
  color: #9ca3af;
}

.video-hd-tag {
  color: #10b981;
  font-weight: 700;
}

.video-header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.video-timer-badge {
  font-family: monospace;
  font-size: 0.875rem;
  font-weight: 700;
  color: #ef4444;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  padding: 4px 10px;
  border-radius: 20px;
}

.video-close-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.video-close-btn:hover {
  background: #ef4444;
  transform: scale(1.05);
}

.video-screen-wrap {
  position: relative;
  width: 100%;
  height: 400px;
  background: #000000;
  overflow: hidden;
}

.video-feed-placeholder {
  position: relative;
  width: 100%;
  height: 100%;
}

.video-feed-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
}

.video-watermark {
  position: absolute;
  top: 16px;
  left: 16px;
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(0, 0, 0, 0.6);
  padding: 4px 10px;
  border-radius: 6px;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.watermark-logo {
  color: #8b5cf6;
  font-weight: 800;
}

.video-product-overlay {
  position: absolute;
  bottom: 16px;
  left: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(13, 19, 34, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 8px 12px;
  border-radius: 12px;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  max-width: 280px;
}

.video-prod-thumb {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  object-fit: cover;
}

.video-prod-info {
  display: flex;
  flex-direction: column;
}

.video-prod-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 180px;
}

.video-prod-price {
  font-size: 0.75rem;
  color: #10b981;
  font-weight: 700;
}

.video-user-inset {
  position: absolute;
  bottom: 16px;
  right: 16px;
  width: 120px;
  height: 90px;
  background: #111827;
  border: 2px solid rgba(139, 92, 246, 0.6);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
}

.user-inset-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  font-size: 0.7rem;
  gap: 4px;
}

.video-controls-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 16px;
  background: #111827;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.video-ctrl-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.video-ctrl-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.video-ctrl-btn.off {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.4);
}

.video-end-btn {
  background: #ef4444;
  border-color: #ef4444;
}

.video-end-btn:hover {
  background: #dc2626;
  transform: translateY(-2px) scale(1.05);
}

@media (max-width: 640px) {
  .video-screen-wrap {
    height: 300px;
  }
  .video-user-inset {
    width: 90px;
    height: 70px;
  }
}

/* ==========================================================================
   Professional 2-Step Checkout Page Enhancements
   ========================================================================== */
.checkout-step-block {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--border-radius-xl);
  padding: 24px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.checkout-step-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
}

.checkout-step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-input);
  color: var(--text-muted);
  font-weight: 800;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-light);
  flex-shrink: 0;
}

.checkout-step-num.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 0 12px var(--primary-glow);
}

.checkout-step-subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 2px 0 0 0;
}

.delivery-address-card-wrap {
  display: flex;
  flex-direction: column;
}

.delivery-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.delivery-form-grid-3 {
  grid-template-columns: 1fr 1fr 1fr;
  margin-bottom: 20px;
}

.delivery-form-mobile {
  display: none;
}

/* Hide the completed Delivery Address step once Payment is reached (all viewports) */
body.checkout-step2-active #checkout-delivery-step {
  display: none;
}

.delivery-tags-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
}

.required-star {
  color: #ef4444;
  margin-left: 2px;
}

.address-type-tags {
  display: flex;
  align-items: center;
  gap: 8px;
}

.address-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  padding: 5px 12px;
  border-radius: var(--border-radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.address-tag.active, .address-tag:hover {
  color: var(--primary);
  border-color: var(--primary);
  background: rgba(99, 102, 241, 0.1);
}

.btn-step-continue {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--border-radius-md);
  background: var(--primary);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: 0 2px 10px var(--primary-glow);
}

.btn-step-continue:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

/* ==========================================================================
   Professional Secure In-App Voice Call Modal
   ========================================================================== */
.seller-audio-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  max-width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 10006;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 16px;
}

.seller-audio-modal.active {
  opacity: 1;
  visibility: visible;
}

.audio-modal-container {
  width: 100%;
  max-width: 440px;
  background: #0b0f19;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.8), 0 0 32px rgba(16, 185, 129, 0.15);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-align: center;
}

.audio-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: #111827;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.audio-encrypted-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #10b981;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 4px 10px;
  border-radius: 20px;
}

.audio-close-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.audio-close-btn:hover {
  background: #ef4444;
}

.audio-body {
  padding: 32px 24px 24px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.audio-seller-avatar-wrap {
  position: relative;
  width: 96px;
  height: 96px;
  margin-bottom: 16px;
}

.audio-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #10b981;
}

.audio-pulse-ring {
  position: absolute;
  top: -8px;
  left: -8px;
  right: -8px;
  bottom: -8px;
  border-radius: 50%;
  border: 2px solid rgba(16, 185, 129, 0.5);
  animation: audioPulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes audioPulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.1); opacity: 0.3; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.audio-store-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 6px 0;
}

.audio-seller-id-badge {
  font-size: 0.78rem;
  font-weight: 700;
  color: #10b981;
  background: rgba(16, 185, 129, 0.15);
  padding: 3px 10px;
  border-radius: 12px;
  margin-bottom: 12px;
}

.audio-status-label {
  font-size: 0.82rem;
  color: #9ca3af;
  margin-bottom: 6px;
}

.audio-timer-badge {
  font-family: monospace;
  font-size: 1rem;
  font-weight: 700;
  color: #10b981;
  margin-bottom: 20px;
}

.audio-waveform-bars {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 24px;
}

.wave-bar {
  width: 4px;
  height: 100%;
  background: #10b981;
  border-radius: 3px;
  animation: waveAnim 1.2s ease-in-out infinite alternate;
}

.wave-bar:nth-child(1) { animation-delay: 0.1s; }
.wave-bar:nth-child(2) { animation-delay: 0.3s; }
.wave-bar:nth-child(3) { animation-delay: 0.5s; }
.wave-bar:nth-child(4) { animation-delay: 0.2s; }
.wave-bar:nth-child(5) { animation-delay: 0.4s; }

@keyframes waveAnim {
  0% { height: 6px; }
  100% { height: 24px; }
}

.audio-controls-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 18px 24px 24px 24px;
  background: #111827;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.audio-ctrl-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.audio-ctrl-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.audio-ctrl-btn.off {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.4);
}

.audio-end-btn {
  background: #ef4444;
  border-color: #ef4444;
}

.audio-end-btn:hover {
  background: #dc2626;
  transform: translateY(-2px) scale(1.05);
}

/* ==========================================================================
   Header Profile Dropdown Menu
   ========================================================================== */
.profile-dropdown-wrap {
  position: relative;
  display: inline-block;
}

.profile-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 250px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--border-radius-lg);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4), 0 0 16px rgba(99, 102, 241, 0.1);
  padding: 8px 0;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px) scale(0.96);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.profile-dropdown-menu.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.profile-dropdown-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
}

.profile-user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(99, 102, 241, 0.15);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.profile-user-info {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.profile-user-name {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-user-email {
  font-size: 0.72rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-dropdown-divider {
  height: 1px;
  background: var(--border-subtle);
  margin: 6px 0;
}

.profile-menu-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.profile-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.profile-menu-item:hover {
  background: rgba(99, 102, 241, 0.1);
  color: var(--primary);
}

.profile-logout-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  font-size: 0.83rem;
  font-weight: 700;
  color: #ef4444;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: all var(--transition-fast);
}

.profile-logout-btn:hover {
  background: rgba(239, 68, 68, 0.1);
}

/* ==========================================================================
   User Account System (Profile, Orders, Settings)
   ========================================================================== */

/* Account Section Container & Animations */
.user-account-section {
  padding-top: 32px;
  padding-bottom: 72px;
  animation: viewSlideIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

/* Layout Grid */
.user-profile-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 28px;
  align-items: start;
}

/* Sidebar Card */
.user-sidebar-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius-xl);
  padding: 28px 20px;
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 96px;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  filter: none !important;
}

/* Explicit Crisp Display for Orders & Account Sidebar (Zero Blur) */
#orders-view .user-sidebar-card,
#profile-view .user-sidebar-card,
#settings-view .user-sidebar-card {
  background: var(--bg-surface) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  filter: none !important;
  opacity: 1 !important;
}

.user-sidebar-card:hover {
  box-shadow: var(--shadow-lg), 0 0 24px rgba(99, 102, 241, 0.08);
}

/* Avatar Header */
.user-avatar-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
}

.user-avatar-wrapper {
  position: relative;
  margin-bottom: 14px;
}

.user-big-avatar {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.35);
  border: 3px solid rgba(255, 255, 255, 0.2);
  transition: transform var(--transition-normal);
}

.user-avatar-wrapper:hover .user-big-avatar {
  transform: scale(1.05) rotate(3deg);
}

.user-avatar-badge {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent-emerald);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg-surface);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.user-profile-name {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
  line-height: 1.3;
}

/* Gold Badge with Shimmer */
.user-badge-gold {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 4px 10px;
  border-radius: var(--border-radius-full);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.18) 0%, rgba(251, 191, 36, 0.28) 100%);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
  margin-bottom: 6px;
  position: relative;
  overflow: hidden;
}

.user-badge-gold::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    60deg,
    transparent 20%,
    rgba(255, 255, 255, 0.25) 50%,
    transparent 80%
  );
  transform: rotate(25deg);
  animation: goldShimmer 3.5s infinite;
}

@keyframes goldShimmer {
  0% { transform: translateX(-100%) rotate(25deg); }
  25%, 100% { transform: translateX(100%) rotate(25deg); }
}

.user-email-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
  word-break: break-all;
}

/* Quick Stats Strip */
.user-stats-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 16px;
  text-align: center;
}

.user-stat-item {
  display: flex;
  flex-direction: column;
}

.user-stat-val {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-main);
  font-family: var(--font-heading);
}

.user-stat-lbl {
  font-size: 0.68rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  font-weight: 600;
}

/* Sidebar Nav Links */
.user-nav-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.user-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  border-radius: var(--border-radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all var(--transition-fast);
  position: relative;
  background: transparent;
  border: 1px solid transparent;
}

.user-nav-link svg {
  flex-shrink: 0;
  stroke: var(--text-muted);
  transition: stroke var(--transition-fast), transform var(--transition-fast);
}

.user-nav-link:hover {
  background: var(--primary-light);
  color: var(--text-main);
  transform: translateX(4px);
}

.user-nav-link:hover svg {
  stroke: var(--primary);
  transform: scale(1.1);
}

.user-nav-link.active {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.18) 0%, rgba(139, 92, 246, 0.15) 100%);
  color: var(--primary);
  border-color: rgba(99, 102, 241, 0.3);
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.12);
}

.user-nav-link.active svg {
  stroke: var(--primary);
}

.user-nav-link.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 3.5px;
  background: var(--primary);
  border-radius: 0 4px 4px 0;
  box-shadow: 0 0 10px var(--primary-glow);
}

.user-nav-link-badge {
  margin-left: auto;
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(99, 102, 241, 0.2);
  color: var(--primary);
  padding: 2px 7px;
  border-radius: var(--border-radius-full);
}

/* Main Content Card */
.user-main-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius-xl);
  padding: 32px 36px;
  box-shadow: var(--shadow-md);
  position: relative;
  transition: box-shadow var(--transition-normal);
}

.user-main-card:hover {
  box-shadow: var(--shadow-lg);
}

.user-card-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 18px;
  margin-bottom: 26px;
  flex-wrap: wrap;
  gap: 12px;
}

.user-card-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-card-icon-wrap {
  width: 42px;
  height: 42px;
  border-radius: var(--border-radius-md);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(99, 102, 241, 0.25);
}

.user-card-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 2px;
}

.user-card-desc {
  font-size: 0.83rem;
  color: var(--text-muted);
}

/* Profile Form Enhancement */
.profile-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.input-with-icon {
  position: relative;
}

.input-icon-left {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.input-with-icon .form-input {
  padding-left: 42px;
}

.verified-input-pill {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-emerald);
  background: rgba(16, 185, 129, 0.12);
  padding: 3px 8px;
  border-radius: var(--border-radius-full);
}

/* Orders System Styling */
.orders-filter-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 12px;
  overflow-x: auto;
}

.orders-tab-btn {
  background: none;
  border: 1px solid transparent;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--border-radius-full);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.orders-tab-btn:hover {
  color: var(--text-main);
  background: var(--bg-elevated);
}

.orders-tab-btn.active {
  background: var(--primary-light);
  border-color: rgba(99, 102, 241, 0.35);
  color: var(--primary);
  font-weight: 700;
}

.orders-tab-count {
  font-size: 0.72rem;
  background: rgba(255, 255, 255, 0.1);
  padding: 1px 7px;
  border-radius: 10px;
}

.orders-tab-btn.active .orders-tab-count {
  background: var(--primary);
  color: #ffffff;
}

/* Order Card Item */
.my-orders-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.order-card-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
}

.order-card-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  border-color: rgba(99, 102, 241, 0.3);
}

.order-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border-subtle);
  flex-wrap: wrap;
  gap: 10px;
}

.order-id-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.order-id-title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
}

.order-copy-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  transition: color var(--transition-fast), background var(--transition-fast);
}

.order-copy-btn:hover {
  color: var(--primary);
  background: rgba(99, 102, 241, 0.1);
}

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

.order-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: var(--border-radius-full);
}

.order-status-badge.in-transit {
  background: rgba(6, 182, 212, 0.12);
  color: var(--accent-cyan);
  border: 1px solid rgba(6, 182, 212, 0.3);
}

.order-status-badge.delivered {
  background: rgba(16, 185, 129, 0.12);
  color: var(--accent-emerald);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
  animation: pulseDot 1.8s infinite;
}

@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.35); opacity: 0.6; }
}

/* Order Progress Stepper / Timeline */
.order-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 18px 20px;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(0, 0, 0, 0.08);
  position: relative;
}

.order-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
}

.order-step-line {
  position: absolute;
  top: 13px;
  left: 50%;
  width: 100%;
  height: 2px;
  background: var(--border-subtle);
  z-index: 1;
}

.order-step.completed .order-step-line {
  background: var(--accent-emerald);
}

.order-step.active .order-step-line {
  background: linear-gradient(90deg, var(--accent-emerald) 0%, var(--border-subtle) 100%);
}

.order-step-node {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 2px solid var(--border-light);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  z-index: 2;
  margin-bottom: 6px;
  transition: all var(--transition-fast);
}

.order-step.completed .order-step-node {
  background: var(--accent-emerald);
  border-color: var(--accent-emerald);
  color: #ffffff;
  box-shadow: 0 0 10px var(--accent-emerald-glow);
}

.order-step.active .order-step-node {
  background: var(--accent-cyan);
  border-color: var(--accent-cyan);
  color: #ffffff;
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.4);
  animation: pulseNode 2s infinite;
}

@keyframes pulseNode {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

.order-step-title {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  line-height: 1.2;
}

.order-step.completed .order-step-title,
.order-step.active .order-step-title {
  color: var(--text-main);
}

/* Order Item Body */
.order-card-body {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border-subtle);
}

.order-prod-img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: var(--border-radius-md);
  border: 1px solid var(--border-light);
  background: var(--bg-elevated);
}

.order-prod-details {
  flex: 1;
}

.order-prod-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
}

.order-prod-variant {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.order-prod-price {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--accent-emerald);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.order-payment-tag {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-elevated);
  padding: 2px 7px;
  border-radius: var(--border-radius-sm);
  border: 1px solid var(--border-subtle);
}

/* Order Item Footer */
.order-card-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 20px;
  background: rgba(0, 0, 0, 0.04);
}

.order-btn-action {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 18px;
  border-radius: var(--border-radius-full);
  background: var(--primary);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
}

.order-btn-action:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(99, 102, 241, 0.35);
}

.order-btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: var(--border-radius-full);
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 600;
  border: 1px solid var(--border-light);
  cursor: pointer;
  transition: all var(--transition-fast);
}

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

/* Account Settings System */
.settings-group {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius-lg);
  padding: 24px;
  margin-bottom: 24px;
}

.settings-sub-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-subtle);
  gap: 16px;
}

.settings-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.settings-row:first-of-type {
  padding-top: 0;
}

.settings-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
  display: block;
  margin-bottom: 3px;
}

.settings-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Modern iOS-Style Toggle Switch */
.custom-switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
  flex-shrink: 0;
}

.custom-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.15);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 26px;
  border: 1px solid var(--border-light);
}

.switch-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: #ffffff;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.custom-switch input:checked + .switch-slider {
  background-color: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 0 12px var(--primary-glow);
}

.custom-switch input:checked + .switch-slider:before {
  transform: translateX(22px);
}

/* Password Input & Strength Meter */
.password-input-wrap {
  position: relative;
}

.password-toggle-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition-fast);
}

.password-toggle-btn:hover {
  color: var(--text-main);
}

.password-strength-container {
  margin-top: 10px;
}

.password-strength-bar {
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
  position: relative;
}

.password-strength-fill {
  height: 100%;
  width: 0%;
  transition: width 0.3s ease, background-color 0.3s ease;
  border-radius: 2px;
}

.password-strength-text {
  font-size: 0.72rem;
  font-weight: 600;
  margin-top: 4px;
  display: block;
  color: var(--text-muted);
}

/* Live Courier Tracking Modal */
.tracking-modal {
  display: none !important;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(4, 7, 13, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.tracking-modal.active {
  opacity: 1;
  visibility: visible;
}

.tracking-modal-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius-xl);
  width: 100%;
  max-width: 540px;
  padding: 28px;
  box-shadow: var(--shadow-lg), 0 0 35px rgba(99, 102, 241, 0.15);
  transform: scale(0.95);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.tracking-modal.active .tracking-modal-card {
  transform: scale(1);
}

.tracking-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 14px;
}

.tracking-modal-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
}

.tracking-modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.tracking-modal-close:hover {
  background: var(--bg-elevated);
  color: var(--text-main);
}

.tracking-timeline-list {
  display: flex;
  flex-direction: column;
  position: relative;
  padding-left: 28px;
  margin: 20px 0;
}

.tracking-timeline-list::before {
  content: '';
  position: absolute;
  left: 9px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--border-light);
}

.tracking-event {
  position: relative;
  margin-bottom: 20px;
}

.tracking-event:last-child {
  margin-bottom: 0;
}

.tracking-event-dot {
  position: absolute;
  left: -28px;
  top: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 2px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
}

.tracking-event.active .tracking-event-dot {
  background: var(--accent-cyan);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.5);
}

.tracking-event-time {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
}

.tracking-event-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 2px 0;
}

.tracking-event-desc {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

/* Responsive Styles for Account System */
@media (max-width: 900px) {
  .user-profile-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .user-sidebar-card {
    position: static;
    padding: 20px;
  }

  .user-main-card {
    padding: 24px 20px;
  }

  .profile-form-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .order-timeline {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 8px;
  }

  .order-step-line {
    display: none;
  }
}

@media (max-width: 600px) {
  .order-card-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .order-card-footer {
    flex-direction: column;
    width: 100%;
  }

  .order-btn-action,
  .order-btn-outline {
    width: 100%;
    justify-content: center;
  }
}

/* ==========================================================================
   My Orders: Compact single-screen mobile layout
   Scoped to mobile only; profile & settings views untouched
   ========================================================================== */
@media (max-width: 768px) {
  #orders-view .pdp-breadcrumbs {
    margin-bottom: 16px;
  }

  #orders-view .user-sidebar-card {
    padding: 14px;
  }

  #orders-view .user-avatar-header {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    gap: 12px;
    padding-bottom: 12px;
  }

  #orders-view .user-avatar-wrapper {
    margin-bottom: 0;
  }

  #orders-view .user-big-avatar {
    width: 44px;
    height: 44px;
    font-size: 1rem;
  }

  #orders-view .user-profile-name {
    font-size: 0.9rem;
    margin-bottom: 2px;
  }

  #orders-view .user-badge-gold,
  #orders-view .user-email-sub {
    display: none;
  }

  #orders-view .user-stats-strip {
    padding: 8px 0;
  }

  #orders-view .user-nav-links {
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  #orders-view .user-nav-links::-webkit-scrollbar {
    display: none;
  }

  #orders-view .user-nav-link {
    flex-shrink: 0;
    flex-direction: column;
    gap: 4px;
    padding: 8px 12px;
    font-size: 0.72rem;
    border: 1px solid var(--border-subtle);
    white-space: nowrap;
  }

  #orders-view .user-nav-link svg {
    width: 18px;
    height: 18px;
  }

  #orders-view .user-nav-link .user-nav-link-badge {
    margin-left: 0;
    position: absolute;
    top: 2px;
    right: 2px;
  }

  #orders-view .user-nav-link.active::before {
    display: none;
  }

  #orders-view .user-main-card {
    padding: 16px 14px;
  }

  #orders-view .user-card-header-bar {
    margin-bottom: 14px;
    padding-bottom: 12px;
  }

  #orders-view .user-card-desc {
    font-size: 0.78rem;
  }

  #orders-view .orders-filter-bar {
    gap: 8px;
    margin-bottom: 14px;
    padding-bottom: 8px;
  }

  #orders-view .my-orders-list {
    gap: 14px;
  }

  #orders-view .order-card-header {
    padding: 12px 14px;
  }

  #orders-view .order-card-body {
    padding: 14px;
    gap: 12px;
  }

  #orders-view .order-prod-img {
    width: 54px;
    height: 54px;
  }

  #orders-view .order-prod-name {
    font-size: 0.85rem;
  }

  #orders-view .order-timeline {
    padding: 14px;
    gap: 8px;
  }

  #orders-view .order-card-footer {
    flex-direction: row;
    flex-wrap: wrap;
    padding: 10px 14px;
  }

  #orders-view .order-btn-action,
  #orders-view .order-btn-outline {
    flex: 1 1 auto;
    justify-content: center;
    padding: 8px 10px;
    font-size: 0.75rem;
    white-space: nowrap;
  }
}

/* ============================================================
   Authentication Modal (Sign In / Create Account)
   ============================================================ */
.auth-modal {
  max-width: 460px;
  padding: 28px;
}

.auth-tabs {
  display: flex;
  gap: 6px;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--border-radius-lg);
  padding: 5px;
  margin-bottom: 22px;
}

.auth-tab-btn {
  flex: 1;
  padding: 10px 12px;
  border: none;
  border-radius: calc(var(--border-radius-lg) - 6px);
  background: transparent;
  color: var(--text-muted);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.auth-tab-btn:hover {
  color: var(--text-main);
}

.auth-tab-btn.active {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
}

.auth-form .form-group {
  margin-bottom: 16px;
}

/* Password visibility toggle */
.auth-modal .password-input-wrap .form-input {
  width: 100%;
  padding-right: 44px;
}

.auth-password-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: color var(--transition-fast), background var(--transition-fast);
}

.auth-password-toggle:hover {
  color: var(--text-main);
  background: var(--bg-elevated);
}

.auth-password-toggle .password-eye-closed {
  display: none;
}

.auth-password-toggle.visible .password-eye-open {
  display: none;
}

.auth-password-toggle.visible .password-eye-closed {
  display: block;
}

.auth-submit-btn {
  width: 100%;
  padding: 13px 16px;
  margin-top: 6px;
  border: none;
  border-radius: var(--border-radius-lg);
  background: linear-gradient(135deg, var(--primary), #4f46e5);
  color: #fff;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.3px;
  transition: all var(--transition-fast);
}

.auth-submit-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.35);
}

.auth-submit-btn:active {
  transform: translateY(0);
}

body.modal-open {
  overflow: hidden;
}

@media (max-width: 768px) {
  .auth-modal {
    padding: 20px 16px;
    max-height: 92vh;
  }

  /* In Mobile View, ensure Continue with Google is immediately visible without scrolling */
  .auth-form {
    display: flex !important;
    flex-direction: column;
  }

  .auth-form[style*="none"] {
    display: none !important;
  }

  #g-signin-btn,
  #g-register-btn {
    order: -2 !important;
    margin: 4px 0 12px !important;
    width: 100% !important;
    max-width: 100% !important;
    display: flex !important;
    justify-content: center !important;
  }

  #g-signin-divider,
  #g-register-divider {
    order: -1 !important;
    margin: 0 0 16px !important;
  }

  .auth-form .form-group {
    order: 3;
    margin-bottom: 12px;
  }

  #forgot-password-link {
    order: 4;
    margin: 2px 0 12px !important;
  }

  .auth-submit-btn {
    order: 5;
  }
}


/* ==========================================================================
   Seller Application Wizard ("Sell on TijaratMarkaz.pk") — 6 steps
   ========================================================================== */
#seller-apply-modal {
  max-width: 640px;
}

.seller-apply-progress {
  margin: 6px 0 18px;
}

.sa-progress-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 4px;
}

.sa-step-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  position: relative;
}

.sa-step-item::before {
  content: "";
  position: absolute;
  top: 16px;
  left: calc(-50% + 12px);
  width: calc(100% - 24px);
  height: 2px;
  background: var(--border-subtle);
  z-index: 0;
}

.sa-step-item:first-child::before {
  display: none;
}

.sa-step-item.done::before,
.sa-step-item.active::before {
  background: var(--primary);
}

.sa-step-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.8125rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  transition: all var(--transition-fast);
}

.sa-step-item.done .sa-step-dot {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.sa-step-item.done .sa-step-dot::after {
  content: "\2713";
  font-weight: 700;
}

.sa-step-item.done .sa-step-dot .sa-dot-num {
  display: none;
}

.sa-step-item.active .sa-step-dot {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.35);
}

.sa-step-label {
  font-size: 0.6875rem;
  color: var(--text-muted);
  font-weight: 600;
  text-align: center;
  line-height: 1.2;
}

.sa-step-item.active .sa-step-label {
  color: var(--text-main);
}

.seller-apply-step {
  display: none;
}

.seller-apply-step.active {
  display: block;
  animation: fadeSlideIn var(--transition-fast);
}

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

.seller-apply-step-title {
  margin: 0 0 4px;
  font-size: 15px;
  color: var(--text-main);
}

.seller-apply-step-sub {
  margin: 0 0 16px;
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.5;
}

.sa-upload-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.seller-apply-upload {
  position: relative;
  border: 1.5px dashed var(--border-light);
  border-radius: var(--border-radius-lg);
  background: var(--bg-input);
  padding: 16px 12px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.seller-apply-upload:hover {
  border-color: var(--primary);
}

.seller-apply-upload.uploaded {
  border-color: #059669;
  background: rgba(5, 150, 105, 0.08);
}

.seller-apply-upload input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.sa-upload-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 0 auto 8px;
  border-radius: 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  transition: color var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
}

.seller-apply-upload:hover .sa-upload-icon {
  color: var(--primary);
  border-color: var(--primary);
}

.sa-field-error {
  display: none;
  margin-top: 4px;
  font-size: 11.5px;
  font-weight: 600;
  color: #dc2626;
  line-height: 1.35;
}

.sa-field-error.visible {
  display: block;
}

.form-input.invalid {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}

.sa-terms-item.invalid > span {
  color: #dc2626;
}

.sa-method-grid.invalid {
  outline: 1.5px dashed rgba(220, 38, 38, 0.45);
  outline-offset: 3px;
  border-radius: 8px;
}

.seller-apply-upload.invalid {
  border-color: #dc2626;
  border-style: solid;
  background: rgba(220, 38, 38, 0.06);
}

.sa-upload-title {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-main);
}

.sa-upload-hint {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 3px;
  line-height: 1.4;
}

.sa-upload-status {
  margin-top: 8px;
  font-size: 11.5px;
  font-weight: 600;
}

.sa-upload-status.ok {
  color: #059669;
}

.sa-upload-status.err {
  color: #dc2626;
}

.sa-upload-preview {
  display: none;
  margin-top: 10px;
}

.seller-apply-upload.uploaded .sa-upload-preview {
  display: block;
}

.seller-apply-upload.uploaded .sa-upload-icon,
.seller-apply-upload.uploaded .sa-upload-title,
.seller-apply-upload.uploaded .sa-upload-hint {
  display: none;
}

.sa-upload-preview img {
  max-width: 100%;
  max-height: 110px;
  border-radius: var(--border-radius-sm);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
}

.sa-doc-list {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sa-doc-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--border-radius-lg);
}

.sa-doc-item svg {
  flex-shrink: 0;
  margin-top: 1px;
}

.sa-doc-item-text {
  font-size: 12.5px;
  color: var(--text-main);
  line-height: 1.45;
}

.sa-doc-item-text small {
  display: block;
  color: var(--text-muted);
}

.sa-method-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 14px;
}

.sa-method-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  background: var(--bg-input);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--border-radius-lg);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.sa-method-card:hover {
  border-color: var(--primary);
}

.sa-method-card.selected {
  border-color: var(--primary);
  background: var(--primary-light, rgba(99, 102, 241, 0.12));
  box-shadow: 0 0 0 3px var(--primary-light, rgba(99, 102, 241, 0.12));
}

.sa-method-card .sa-method-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--border-light);
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

.sa-method-card.selected .sa-method-dot {
  border-color: var(--primary);
  box-shadow: inset 0 0 0 4px #fff, 0 0 0 2px var(--primary);
}

.sa-method-name {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-main);
}

.sa-terms-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.5;
  cursor: pointer;
}

.sa-terms-item input {
  margin-top: 2px;
  accent-color: var(--primary);
  flex-shrink: 0;
}

.seller-apply-nav {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.sa-back-btn,
.sa-next-btn {
  padding: 11px 18px;
  border-radius: var(--border-radius-lg);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.sa-back-btn {
  flex: 0 0 auto;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
}

.sa-back-btn:hover {
  color: var(--text-main);
  border-color: var(--border-light);
}

.sa-next-btn {
  flex: 1;
  background: linear-gradient(135deg, var(--primary), #4f46e5);
  border: none;
  color: #fff;
  letter-spacing: 0.3px;
}

.sa-next-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.35);
}

.sa-next-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

@media (max-width: 768px) {
  #seller-apply-modal {
    max-width: 520px;
  }
  .sa-step-label {
    display: none;
  }
  .sa-upload-grid {
    grid-template-columns: 1fr;
  }
  .sa-method-grid {
    grid-template-columns: 1fr;
  }
}


/* ==========================================================================
   Watch or Buy — Video Shopping Feed (YouTube-Style Interactive Hub)
   & PC Flanking Discount Product Ads
   ========================================================================== */
.wb-stage-outer-container {
  width: 100%;
  position: relative;
}

@media (min-width: 1280px) {
  .wb-stage-outer-container {
    max-width: var(--max-width) !important;
    padding-left: 28px;
    padding-right: 28px;
  }
}
@media (min-width: 1440px) {
  .wb-stage-outer-container {
    padding-left: 36px;
    padding-right: 36px;
  }
}

.watch-buy-stage-layout {
  display: flex;
  align-items: stretch;
  gap: 18px;
  width: 100%;
  margin-bottom: 32px;
}

.watch-buy-stage-layout .watch-buy-section {
  flex: 1 1 auto;
  min-width: 0;
  margin-bottom: 0;
}

/* Side ad columns: STRICTLY PC ONLY (min-width: 1024px) */
.wb-side-ad-column {
  display: none;
}

@media (min-width: 1024px) {
  .wb-side-ad-column {
    display: flex;
    flex-direction: column;
    width: 200px;
    flex: 0 0 200px;
    align-self: stretch;
    height: 100%;
    position: relative;
  }
}

@media (min-width: 1440px) {
  .wb-side-ad-column {
    width: 220px;
    flex: 0 0 220px;
  }
}

.wb-side-ad-card {
  width: 100%;
  height: 100%;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.7) 0%, rgba(15, 23, 42, 0.95) 100%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--border-radius-lg);
  padding: 16px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.25);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

@media (min-width: 1024px) {
  .watch-buy-stage-layout .wb-side-ad-card {
    min-height: 500px;
    height: 100%;
    max-height: none;
  }
  .watch-buy-stage-layout .watch-buy-section {
    min-height: 500px;
    height: auto;
    max-height: none;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
  }
  .watch-buy-stage-layout .watch-buy-card {
    height: 360px;
    width: 205px;
    flex: 0 0 205px;
  }
}

[data-theme="light"] .wb-side-ad-card {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.08);
  box-shadow: 0 8px 24px -4px rgba(15, 23, 42, 0.08);
}

.wb-side-ad-card:hover {
  transform: translateY(-3px);
  border-color: rgba(239, 68, 68, 0.4);
  box-shadow: 0 14px 30px -5px rgba(239, 68, 68, 0.15);
}

.wb-side-ad-top-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.wb-side-ad-fire-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #ef4444;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.25);
  padding: 2px 8px;
  border-radius: 999px;
}

.wb-side-ad-scroll-hint {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 3px;
}

.wb-side-ad-thumb-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  position: relative;
  background: var(--bg-tertiary);
  margin-bottom: 10px;
}

.wb-side-ad-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease, opacity 0.3s ease;
}

.wb-side-ad-card:hover .wb-side-ad-thumb {
  transform: scale(1.05);
}

.wb-side-ad-discount-chip {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.4px;
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.wb-side-ad-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}

.wb-side-ad-category {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.wb-side-ad-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.3;
  margin: 0 0 6px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.3em;
}

.wb-side-ad-store {
  font-size: 0.72rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 8px;
}

.wb-side-ad-prices {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: auto;
  margin-bottom: 10px;
}

.wb-side-ad-price-cur {
  font-size: 1.05rem;
  font-weight: 900;
  color: #ef4444;
  letter-spacing: -0.2px;
}

.wb-side-ad-price-old {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.wb-side-ad-buy-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 12px;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 800;
  border: none;
  border-radius: var(--border-radius-md);
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
  text-decoration: none;
}

.wb-side-ad-buy-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.1);
  box-shadow: 0 6px 16px rgba(239, 68, 68, 0.45);
}

.wb-side-ad-buy-btn:active {
  transform: translateY(1px);
}

/* Smooth fade transition when product rotates on scroll */
.wb-ad-fade-out {
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.wb-ad-fade-in {
  opacity: 1;
  transform: scale(1);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.watch-buy-section {
  margin-bottom: 32px;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.5) 0%, rgba(15, 23, 42, 0.95) 100%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--border-radius-lg);
  padding: 18px 22px;
  position: relative;
  overflow: hidden;
}

[data-theme="light"] .watch-buy-section {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.08);
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05);
}

.watch-buy-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  gap: 12px;
  flex-wrap: wrap;
}

.watch-buy-badge-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
  box-shadow: 0 0 16px rgba(239, 68, 68, 0.2);
}

.live-pulse-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: var(--border-radius-full);
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #ef4444;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.live-pulse-badge::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 8px #ef4444;
  animation: livePulse 1.6s infinite ease-in-out;
}

@keyframes livePulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.5; }
}

.watch-buy-carousel-wrap {
  position: relative;
  overflow: hidden;
  margin: 0 -8px;
  padding: 8px;
}

.watch-buy-grid {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 8px;
}

.watch-buy-grid::-webkit-scrollbar {
  display: none;
}

/* Video Card in the feed */
.watch-buy-card {
  flex: 0 0 205px;
  width: 205px;
  height: 360px;
  border-radius: 16px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: #0f172a;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.25s ease;
  user-select: none;
}

.watch-buy-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45), 0 0 24px rgba(239, 68, 68, 0.25);
}

.watch-buy-card-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 16px;
}

.watch-buy-card-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.watch-buy-card:hover .watch-buy-card-thumb {
  transform: scale(1.08);
}

.watch-buy-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.45) 0%, rgba(15, 23, 42, 0.08) 35%, rgba(15, 23, 42, 0.82) 70%, rgba(15, 23, 42, 0.98) 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 12px;
  z-index: 2;
}

.watch-buy-top-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.watch-buy-live-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(239, 68, 68, 0.92);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: var(--border-radius-full);
  letter-spacing: 0.4px;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
}

.watch-buy-duration-tag {
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(6px);
  color: #f1f5f9;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.watch-buy-center-play {
  position: absolute;
  top: 36%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.92);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(239, 68, 68, 0.45);
  transition: transform 0.25s ease, background 0.2s ease;
  pointer-events: none;
}

.watch-buy-card:hover .watch-buy-center-play {
  transform: translate(-50%, -50%) scale(1.15);
  background: #dc2626;
}

/* Bottom product card inside the video card */
.watch-buy-bottom-info {
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: auto;
}

.watch-buy-prod-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.watch-buy-prod-img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
}

.watch-buy-prod-text {
  flex: 1;
  min-width: 0;
}

.watch-buy-prod-title {
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}

.watch-buy-prod-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.watch-buy-prod-current {
  color: #38bdf8;
  font-weight: 800;
  font-size: 0.85rem;
}

.watch-buy-prod-orig {
  color: #94a3b8;
  font-size: 0.72rem;
  text-decoration: line-through;
}

.watch-buy-actions-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.watch-buy-card-stats {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #cbd5e1;
  font-size: 0.73rem;
  font-weight: 600;
}

.watch-buy-card-stat {
  display: flex;
  align-items: center;
  gap: 3px;
}

.watch-buy-cta-btn {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: #fff;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: transform 0.18s, box-shadow 0.18s;
}

.watch-buy-cta-btn:hover {
  transform: scale(1.04);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

/* ==========================================================================
   Watch or Buy — YouTube-Style Interactive Video Modal
   ========================================================================== */
.wb-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 8, 16, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  transition: opacity 0.25s ease;
}

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

.wb-modal-dialog {
  width: 100%;
  max-width: 980px;
  height: 90vh;
  max-height: 720px;
  background: #090e1a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.7), 0 0 40px rgba(239, 68, 68, 0.2);
  position: relative;
  animation: wbModalPop 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes wbModalPop {
  0% { transform: scale(0.95); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.wb-modal-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 100;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.wb-modal-close-btn:hover {
  background: #ef4444;
  transform: rotate(90deg);
}

/* Video Player Area */
.wb-player-col {
  flex: 1 1 55%;
  position: relative;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.wb-video-player {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Floating Actions Bar (YouTube Shorts / TikTok style) */
.wb-floating-actions {
  position: absolute;
  right: 16px;
  bottom: 80px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  z-index: 10;
  align-items: center;
}

.wb-action-btn-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.wb-action-circle-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s, color 0.2s;
}

.wb-action-circle-btn:hover {
  transform: scale(1.12);
  background: rgba(30, 41, 59, 0.9);
}

.wb-action-circle-btn.liked {
  background: #ef4444;
  color: #fff;
  border-color: #ef4444;
}

.wb-action-circle-btn.saved {
  background: #6366f1;
  color: #fff;
  border-color: #6366f1;
}

.wb-action-count {
  color: #f1f5f9;
  font-size: 0.72rem;
  font-weight: 700;
  text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}

/* Video Nav Arrows (Next / Prev) */
.wb-nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 15;
  transition: background 0.2s, transform 0.2s;
}

.wb-nav-arrow.prev { left: 16px; }
.wb-nav-arrow.next { right: 80px; }
.wb-nav-arrow:hover { background: rgba(239, 68, 68, 0.85); transform: translateY(-50%) scale(1.1); }

/* Play/Pause Overlay indicator */
.wb-play-pause-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  z-index: 5;
}

.wb-play-pause-overlay.visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.1);
}

/* Video Details Bottom Overlay */
.wb-video-meta-overlay {
  position: absolute;
  left: 16px;
  bottom: 16px;
  right: 80px;
  z-index: 10;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}

.wb-creator-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.wb-creator-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid #ef4444;
}

.wb-creator-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: #f8fafc;
}

.wb-video-title {
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.4;
  margin: 0;
}

/* Product & Interactive Sidebar */
.wb-sidebar-col {
  flex: 0 0 45%;
  width: 45%;
  background: #0d1322;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

[data-theme="light"] .wb-modal-dialog {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.12);
}

[data-theme="light"] .wb-sidebar-col {
  background: #f8fafc;
  border-left-color: rgba(15, 23, 42, 0.08);
}

/* Sidebar Tabs */
.wb-sidebar-tabs {
  display: flex;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(15, 23, 42, 0.4);
}

[data-theme="light"] .wb-sidebar-tabs {
  background: #ffffff;
  border-bottom-color: rgba(15, 23, 42, 0.08);
}

.wb-tab-btn {
  flex: 1;
  padding: 14px 16px;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: #94a3b8;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: color 0.2s, border-color 0.2s;
}

.wb-tab-btn.active {
  color: #ef4444;
  border-bottom-color: #ef4444;
}

[data-theme="light"] .wb-tab-btn {
  color: #64748b;
}

[data-theme="light"] .wb-tab-btn.active {
  color: #dc2626;
  border-bottom-color: #dc2626;
}

.wb-tab-content {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
}

/* Product View inside the Modal */
.wb-product-card {
  display: flex;
  gap: 16px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 18px;
}

[data-theme="light"] .wb-product-card {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.08);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
}

.wb-prod-large-img {
  width: 90px;
  height: 90px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.wb-prod-details {
  flex: 1;
  min-width: 0;
}

.wb-brand-tag {
  color: #ef4444;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.wb-prod-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main, #f8fafc);
  margin: 4px 0 6px;
  line-height: 1.3;
}

.wb-prod-pricing {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 6px;
}

.wb-cur-price {
  font-size: 1.25rem;
  font-weight: 800;
  color: #10b981;
}

.wb-orig-price {
  font-size: 0.88rem;
  color: #94a3b8;
  text-decoration: line-through;
}

.wb-discount-badge {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 6px;
}

.wb-trust-perks {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.wb-perk-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #34d399;
  font-size: 0.78rem;
  font-weight: 600;
}

[data-theme="light"] .wb-perk-item {
  color: #059669;
}

/* Purchasing Actions */
.wb-purchase-actions {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wb-buy-now-btn {
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 800;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 8px 20px rgba(239, 68, 68, 0.35);
  transition: transform 0.2s, box-shadow 0.2s;
}

.wb-buy-now-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(239, 68, 68, 0.5);
}

.wb-add-cart-btn {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-main, #f8fafc);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.2s, border-color 0.2s;
}

[data-theme="light"] .wb-add-cart-btn {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #0f172a;
}

.wb-add-cart-btn:hover {
  background: rgba(255, 255, 255, 0.12);
}

.wb-view-pdp-link {
  text-align: center;
  color: #94a3b8;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  padding-top: 4px;
}

.wb-view-pdp-link:hover {
  color: #ef4444;
}

/* Comments Pane */
.wb-comments-pane {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.wb-comments-list {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-bottom: 16px;
}

.wb-comment-item {
  display: flex;
  gap: 10px;
}

.wb-comment-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.wb-comment-body {
  flex: 1;
}

.wb-comment-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
}

.wb-comment-author {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-main, #f8fafc);
}

.wb-comment-time {
  font-size: 0.7rem;
  color: #64748b;
}

.wb-comment-text {
  font-size: 0.82rem;
  color: #cbd5e1;
  line-height: 1.4;
  margin: 0;
}

[data-theme="light"] .wb-comment-text {
  color: #334155;
}

.wb-comment-form {
  display: flex;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: auto;
}

.wb-comment-input {
  flex: 1;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.84rem;
  color: #fff;
  outline: none;
}

[data-theme="light"] .wb-comment-input {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #0f172a;
}

.wb-comment-submit-btn {
  background: #ef4444;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 0 16px;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}

.wb-comment-submit-btn:hover {
  background: #dc2626;
}

/* Mobile Responsiveness for Watch or Buy */
@media (max-width: 768px) {
  .watch-buy-section {
    padding: 20px 16px;
    margin-bottom: 32px;
  }
  .watch-buy-card {
    flex: 0 0 200px;
    width: 200px;
    height: 340px;
  }
  .wb-modal-dialog {
    flex-direction: column;
    height: 96vh;
    max-height: none;
    border-radius: 16px;
  }
  .wb-player-col {
    flex: 1 1 50%;
    height: 50%;
  }
  .wb-sidebar-col {
    flex: 1 1 50%;
    width: 100%;
    height: 50%;
  }
  .wb-nav-arrow.next {
    right: 64px;
  }
}




/* ==========================================================================
   Watch or Buy — YouTube Shorts-Style Vertical Video Shopping Experience
   ========================================================================== */
.wb-shorts-window {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background: #000000;
  z-index: 100000;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  user-select: none;
}

/* Dedicated Top Bar: Exit / Close button is strictly at top-left, never overlapping bottom controls */
.wb-shorts-top-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.85) 0%, transparent 100%);
  z-index: 200;
  pointer-events: none;
}

.wb-shorts-exit-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: rgba(15, 23, 42, 0.85);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 9999px;
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  pointer-events: auto;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
  transition: all 0.2s ease;
}

.wb-shorts-exit-btn:hover {
  background: #ef4444;
  border-color: #ef4444;
  transform: scale(1.04);
}

.wb-shorts-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid rgba(239, 68, 68, 0.4);
  border-radius: 9999px;
  color: #ef4444;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.wb-shorts-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 8px #ef4444;
  animation: wbLivePulse 1.5s infinite;
}

.wb-shorts-nav-hints {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 600;
}

/* Vertical Snapping Slider */
.wb-shorts-slider {
  width: 100%;
  height: 100%;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.wb-shorts-slider::-webkit-scrollbar {
  display: none;
}

/* Individual Slide (1 Video at a time, exactly 100% viewport) */
.wb-short-slide {
  width: 100%;
  height: 100vh;
  height: 100dvh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: #000000;
}

/* Center Prominent 9:16 Video Container */
.wb-short-player-container {
  position: relative;
  height: 100%;
  max-height: 100vh;
  max-height: 100dvh;
  aspect-ratio: 9 / 16;
  max-width: calc(100vh * 9 / 16);
  max-width: calc(100dvh * 9 / 16);
  background: #090d16;
  overflow: hidden;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-aspect-ratio: 9/16) {
  .wb-short-player-container {
    width: 100vw;
    max-width: 100vw;
    height: 100vh;
    height: 100dvh;
  }
}

.wb-short-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
}

/* Play / Pause Indicator */
.wb-short-play-indicator {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.65);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s ease;
  z-index: 10;
}

.wb-short-play-indicator.visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* Floating Actions Bar on Right (Positioned at bottom: 170px to NEVER overlap bottom product bar) */
.wb-short-floating-bar {
  position: absolute;
  right: 12px;
  bottom: 170px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  z-index: 40;
}

.wb-short-action-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.wb-short-circle-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.82);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.wb-short-circle-btn:hover {
  transform: scale(1.15);
  background: rgba(15, 23, 42, 0.98);
  border-color: #ffffff;
}

.wb-short-circle-btn svg {
  pointer-events: none;
}

.wb-short-circle-btn.like-btn.active {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.3);
  border-color: #ef4444;
}

.wb-short-circle-btn.save-btn.active {
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.3);
  border-color: #f59e0b;
}

.wb-short-action-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
}

/* Bottom Overlay: Anchored at bottom of video player, completely separated from top exit button */
.wb-short-bottom-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px 14px 20px 14px;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.65) 30%, rgba(0, 0, 0, 0.95) 100%);
  color: #ffffff;
  z-index: 30;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.wb-short-creator-row {
  display: flex;
  align-items: center;
  gap: 8px;
  pointer-events: auto;
}

.wb-short-creator-img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid #ffffff;
  object-fit: cover;
}

.wb-short-creator-name {
  font-size: 0.875rem;
  font-weight: 700;
  color: #ffffff;
}

.wb-short-caption {
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.95);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 2px;
  pointer-events: auto;
}

/* Integrated Shopping Bar & Buy Now Button (Cleanly anchored, non-overlapping) */
.wb-short-product-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  background: rgba(15, 23, 42, 0.9);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 14px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
  pointer-events: auto;
  position: relative;
  z-index: 35;
}

.wb-short-prod-thumb {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
  background: #ffffff;
  flex-shrink: 0;
}

.wb-short-prod-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.wb-short-prod-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wb-short-prod-price-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.wb-short-cur-price {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--accent-emerald, #10b981);
}

.wb-short-orig-price {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: line-through;
}

.wb-short-discount-badge {
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 800;
  background: rgba(239, 68, 68, 0.25);
  color: #ef4444;
}

.wb-short-buy-now-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  background: linear-gradient(135deg, #ef4444 0%, #f97316 100%);
  color: #ffffff;
  border: none;
  border-radius: 9999px;
  font-size: 0.825rem;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.45);
  transition: transform 0.2s ease, filter 0.2s ease;
  flex-shrink: 0;
  position: relative;
  z-index: 50;
}

.wb-short-buy-now-btn:hover {
  transform: scale(1.05);
  filter: brightness(1.1);
}

.wb-short-buy-now-btn svg {
  pointer-events: none;
}

/* Desktop Up / Down Navigation Arrows */
.wb-shorts-arrow {
  position: absolute;
  right: 28px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.8);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 60;
  transition: all 0.2s ease;
}

.wb-shorts-arrow.up {
  top: 45%;
  transform: translateY(-56px);
}

.wb-shorts-arrow.down {
  top: 45%;
  transform: translateY(16px);
}

.wb-shorts-arrow:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: scale(1.1) translateY(0);
}

@media (max-width: 768px) {
  .wb-shorts-arrow {
    display: none;
  }
}

/* ==========================================================================
   Watch or Buy - Flanking Side Ads Inside Reels Player (PC Only)
   ========================================================================== */
.wb-player-side-ad {
  display: none;
}

@media (min-width: 1024px) {
  .wb-player-side-ad {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 0;
    bottom: 0;
    height: 100vh;
    height: 100dvh;
    width: clamp(220px, calc(50vw - (100dvh * 9 / 32)), 320px);
    z-index: 150;
    pointer-events: auto;
  }

  /* Flush against the left side of the 9:16 reels player */
  .wb-player-side-ad-left {
    right: calc(50vw + (100dvh * 9 / 32));
    left: auto;
  }

  /* Flush against the right side of the 9:16 reels player */
  .wb-player-side-ad-right {
    left: calc(50vw + (100dvh * 9 / 32));
    right: auto;
  }

  .wb-player-side-ad .wb-side-ad-card {
    height: 100%;
    min-height: 100%;
    max-height: 100dvh;
    border-radius: 0;
    border-top: none;
    border-bottom: none;
    padding: 24px 18px;
    background: rgba(10, 15, 29, 0.95);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.85);
  }

  .wb-player-side-ad-left .wb-side-ad-card {
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    border-right: 1px solid rgba(255, 255, 255, 0.16);
  }

  .wb-player-side-ad-right .wb-side-ad-card {
    border-left: 1px solid rgba(255, 255, 255, 0.16);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
  }

  .wb-player-side-ad .wb-side-ad-top-pill {
    margin-bottom: 16px;
  }

  .wb-player-side-ad .wb-side-ad-thumb-wrap {
    flex: 1 1 auto;
    max-height: calc(48vh - 40px);
    aspect-ratio: auto;
    width: 100%;
    border-radius: 12px;
    margin-bottom: 16px;
    overflow: hidden;
  }

  .wb-player-side-ad .wb-side-ad-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .wb-player-side-ad .wb-side-ad-body {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  .wb-player-side-ad .wb-side-ad-title {
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 4px;
    -webkit-line-clamp: 2;
  }

  .wb-player-side-ad .wb-side-ad-store {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.75rem;
  }

  .wb-player-side-ad .wb-side-ad-category {
    color: rgba(255, 255, 255, 0.6);
  }

  .wb-player-side-ad .wb-side-ad-prices {
    margin-top: 6px;
    margin-bottom: 14px;
  }

  .wb-player-side-ad .wb-side-ad-price-cur {
    font-size: 1.15rem;
  }

  .wb-player-side-ad .wb-side-ad-price-old {
    color: rgba(255, 255, 255, 0.5);
  }

  .wb-player-side-ad .wb-side-ad-buy-btn {
    padding: 11px 16px;
    font-size: 0.88rem;
    border-radius: 9999px;
  }
}

/* ==========================================================================
   YouTube-Style Side-Opening Comments Drawer (Slides in from the Right)
   ========================================================================== */
.wb-comments-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  z-index: 100005;
}

.wb-shorts-comments-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 380px;
  max-width: 90vw;
  height: 100vh;
  height: 100dvh;
  background: #0f172a;
  border-left: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.85);
  z-index: 100010;
  display: flex;
  flex-direction: column;
  padding: 20px;
  color: #ffffff;
  animation: wbSlideFromRight 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes wbSlideFromRight {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

.wb-comments-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 14px;
}

.wb-comments-panel-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
}

.wb-comments-panel-close {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: #ffffff;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  line-height: 1;
  transition: all 0.2s ease;
}

.wb-comments-panel-close:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.1);
}

.wb-comments-panel-body {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-right: 6px;
  margin-bottom: 14px;
}

.wb-panel-comment-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.825rem;
}

.wb-panel-comment-header {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  margin-bottom: 4px;
  color: #ffffff;
}

.wb-panel-comment-time {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 400;
}

.wb-panel-comment-text {
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.4;
}

.wb-comments-panel-form {
  display: flex;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.wb-comments-panel-input {
  flex: 1;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 9999px;
  color: #ffffff;
  font-size: 0.85rem;
}

.wb-comments-panel-input:focus {
  outline: none;
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.15);
}

.wb-comments-panel-post-btn {
  padding: 9px 20px;
  background: var(--primary);
  color: #ffffff;
  border: none;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s;
}

.wb-comments-panel-post-btn:hover {
  opacity: 0.9;
}

/* ==========================================================================
   YouTube-Style Professional Share Modal
   ========================================================================== */
.wb-share-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  z-index: 100020;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: wbFadeIn 0.2s ease-out;
}

@keyframes wbFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.wb-share-modal-card {
  width: 100%;
  max-width: 480px;
  background: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 20px;
  padding: 22px 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
  color: #ffffff;
  animation: wbScaleUp 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes wbScaleUp {
  from { transform: scale(0.92); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.wb-share-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.wb-share-modal-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
}

.wb-share-modal-close {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: #ffffff;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  line-height: 1;
  transition: all 0.2s ease;
}

.wb-share-modal-close:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.1);
}

/* Social Share Row */
.wb-share-social-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.wb-share-social-btn {
  background: none;
  border: none;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 6px;
  border-radius: 12px;
  transition: transform 0.2s ease;
}

.wb-share-social-btn:hover {
  transform: translateY(-3px);
}

.wb-share-social-btn span {
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
}

.wb-share-social-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.wb-share-social-icon.whatsapp {
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
}
.wb-share-social-icon.facebook {
  background: linear-gradient(135deg, #1877f2 0%, #0d5cb6 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(24, 119, 242, 0.35);
}
.wb-share-social-icon.twitter {
  background: linear-gradient(135deg, #24292e 0%, #000000 100%);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.55);
}
.wb-share-social-icon.telegram {
  background: linear-gradient(135deg, #2aabee 0%, #229ed9 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(42, 171, 238, 0.35);
}
.wb-share-social-icon.email {
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
}

.wb-share-social-btn:hover .wb-share-social-icon {
  transform: translateY(-3px) scale(1.05);
  filter: brightness(1.1);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45);
}

/* Copy Link Field */
.wb-share-copy-box {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px 6px 14px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
}

.wb-copy-link-icon {
  color: rgba(255, 255, 255, 0.5);
  flex-shrink: 0;
}

.wb-share-url-input {
  flex: 1;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.825rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wb-share-url-input:focus {
  outline: none;
}

.wb-share-copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--primary, #6366f1);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 0.825rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.wb-share-copy-btn:hover {
  filter: brightness(1.15);
  transform: translateY(-1px);
}

/* ==========================================================================
   Storefront Blog & Editorial Styles
   ========================================================================== */
.home-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}

.home-blog-grid article {
  height: 100%;
}

.home-blog-grid article:hover {
  transform: translateY(-4px);
  border-color: rgba(99, 102, 241, 0.45) !important;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}

.storefront-blog-card:hover {
  transform: translateY(-4px);
  border-color: rgba(99, 102, 241, 0.45);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
}

.blog-prose-content {
  color: var(--text-main);
  font-size: 1.05rem;
  line-height: 1.8;
}

.blog-prose-content h2 {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 36px 0 16px;
  line-height: 1.3;
}

.blog-prose-content h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 28px 0 12px;
  line-height: 1.35;
}

.blog-prose-content p {
  margin: 0 0 18px;
  color: var(--text-secondary);
}

.blog-prose-content blockquote {
  margin: 28px 0;
  padding: 16px 24px;
  background: var(--bg-surface);
  border-left: 4px solid var(--primary);
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: var(--text-main);
  font-size: 1.1rem;
}

.blog-prose-content ul,
.blog-prose-content ol {
  margin: 0 0 20px 24px;
  color: var(--text-secondary);
}

.blog-prose-content li {
  margin-bottom: 8px;
  line-height: 1.65;
}

.blog-prose-content img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin: 24px 0;
  display: block;
}

.blog-prose-content pre {
  background: #0d1117;
  color: #58a6ff;
  padding: 16px;
  border-radius: 8px;
  overflow-x: auto;
  font-family: monospace;
  font-size: 0.9rem;
  margin: 20px 0;
}

.blog-prose-content a {
  color: var(--primary);
  text-decoration: underline;
}

.blog-prose-content a:hover {
  filter: brightness(1.2);
}

@media (max-width: 768px) {
  .blog-hero-banner {
    padding: 32px 18px !important;
  }
  .blog-hero-banner h1 {
    font-size: 1.6rem !important;
  }
  #blog-detail-title {
    font-size: 1.7rem !important;
  }
  .home-blog-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }
  .home-blog-grid article:nth-child(n+3) {
    display: none !important;
  }
  .home-blog-grid article > div {
    padding: 10px !important;
  }
  .home-blog-grid article h3 {
    font-size: 0.85rem !important;
    line-height: 1.25 !important;
    margin: 0 0 6px !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
  }
  .home-blog-grid article p {
    display: none !important;
  }
  .home-blog-grid article a[style*="font-size: 0.8rem"] {
    font-size: 0.75rem !important;
  }
  #storefront-blogs-grid {
    grid-template-columns: 1fr !important;
  }
}


/* ============================================================================
   AssanPay JazzCash & EasyPaisa Payment Modal & Card Coming Soon Styles
   ============================================================================ */
.payment-method-card.payment-method-disabled {
  opacity: 0.68;
  cursor: not-allowed !important;
  position: relative;
  border-style: dashed !important;
  border-color: var(--border-medium) !important;
  background: var(--bg-hover) !important;
}
.payment-method-card.payment-method-disabled:hover {
  transform: none !important;
  box-shadow: none !important;
}
.payment-coming-soon-badge {
  position: absolute;
  top: 5px;
  right: 5px;
  background: rgba(245, 158, 11, 0.15);
  color: #b45309;
  border: 1px solid rgba(245, 158, 11, 0.35);
  font-size: 0.58rem;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 4px;
  letter-spacing: 0.2px;
  text-transform: uppercase;
  pointer-events: none;
}
.wallet-payment-modal {
  max-width: 520px !important;
  width: 95% !important;
  max-height: 92vh !important;
  overflow-y: auto !important;
  z-index: 10001 !important;
  box-sizing: border-box !important;
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Explicit Zero Blur & Crisp Display for All Storefront Popups & Drawers */
.cart-drawer,
.wishlist-drawer,
#cart-drawer,
#wishlist-drawer,
.mobile-nav-drawer,
#mobile-nav-drawer {
  z-index: 2050 !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  filter: none !important;
}

.center-modal,
.quick-view-modal,
.auth-modal,
#quick-view-modal,
#auth-modal,
#seller-apply-modal {
  z-index: 2060 !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  filter: none !important;
}


/* ==========================================================================
   Modern Visit Store Button & PDP Seller Sidebar Card
   ========================================================================== */
.pdp-seller-store-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--border-radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .pdp-seller-store-card {
  background: #f8fafc;
  border-color: rgba(15, 23, 42, 0.08);
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.03);
}

.pdp-seller-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pdp-seller-icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pdp-seller-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.pdp-seller-tag {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  font-weight: 700;
}

.pdp-seller-name {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 2px 0 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

[data-theme="light"] .pdp-seller-name {
  color: #0f172a;
}

.btn-visit-store {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 11px 18px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  color: #ffffff !important;
  font-size: 0.885rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  letter-spacing: 0.2px;
}

.btn-visit-store:hover {
  background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.48);
}

.btn-visit-store:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.btn-visit-store svg {
  flex-shrink: 0;
}

.btn-visit-store .btn-arrow {
  transition: transform 0.2s ease;
}

.btn-visit-store:hover .btn-arrow {
  transform: translateX(3px);
}

/* Middle column inline visit store badge */
.pdp-inline-visit-store-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(99, 102, 241, 0.12);
  color: var(--primary) !important;
  border: 1px solid rgba(99, 102, 241, 0.25);
  cursor: pointer;
  transition: all 0.2s ease;
  vertical-align: middle;
  margin-left: 6px;
}

.pdp-inline-visit-store-btn:hover {
  background: var(--primary);
  color: #ffffff !important;
  border-color: var(--primary);
  transform: translateY(-1px);
}


/* ==========================================================================
   Watch and Buy Discounted Products Ads Area & Search Functionality
   ========================================================================== */
@media (min-width: 1440px) {
  .products-grid {
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
  }
}

.wb-ad-search-box {
  margin-bottom: 8px;
  position: relative;
  width: 100%;
}

.wb-ad-search-input {
  width: 100%;
  box-sizing: border-box;
  padding: 6px 28px 6px 10px;
  font-size: 0.72rem;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  background: rgba(14, 21, 38, 0.7);
  color: var(--text-main);
  font-family: inherit;
  transition: all 0.2s ease;
}

[data-theme="light"] .wb-ad-search-input {
  background: #f1f5f9;
  border-color: rgba(15, 23, 42, 0.12);
  color: #0f172a;
}

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

.wb-ad-search-icon {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
  display: flex;
  align-items: center;
}

.wb-side-ad-price-block {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: auto;
  margin-bottom: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(239, 68, 68, 0.08);
  border: 1px dashed rgba(239, 68, 68, 0.35);
}

[data-theme="light"] .wb-side-ad-price-block {
  background: rgba(239, 68, 68, 0.05);
  border-color: rgba(239, 68, 68, 0.25);
}

.wb-price-row-current {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px;
}

.wb-price-tag-label {
  font-size: 0.68rem;
  font-weight: 800;
  color: #ef4444;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.wb-side-ad-price-cur {
  font-size: 1.15rem;
  font-weight: 900;
  color: #ef4444;
  letter-spacing: -0.3px;
}

.wb-price-row-original {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-size: 0.72rem;
}

.wb-price-old-label {
  color: var(--text-muted);
}

.wb-side-ad-price-old {
  color: var(--text-muted);
  text-decoration: line-through;
}

.wb-save-pill {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 1px 6px;
  border-radius: 4px;
  background: #10b981;
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.2px;
}

/* Discounted product badges in Search Autocomplete */
.search-discount-chip {
  display: inline-flex;
  align-items: center;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  font-size: 0.68rem;
  font-weight: 800;
  margin-left: 6px;
}

.search-price-old {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-decoration: line-through;
  margin-right: 4px;
}

.search-discount-shortcut {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  margin-top: 8px;
  border-top: 1px solid var(--border-subtle);
  background: rgba(239, 68, 68, 0.08);
  color: #ef4444;
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: 0 0 var(--border-radius-md) var(--border-radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
}

.search-discount-shortcut:hover {
  background: rgba(239, 68, 68, 0.16);
  transform: translateY(-1px);
}


/* ==========================================================================
   Global Floating WhatsApp Button & Order on WhatsApp
   ========================================================================== */
.global-floating-whatsapp {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 10000000 !important; /* Always visible above modals, order invoices & backdrops */
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease;
  user-select: none;
}

.global-floating-whatsapp .gfw-icon-box {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25D366;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.48), 0 2px 8px rgba(0, 0, 0, 0.15);
  position: relative;
  z-index: 2;
  transition: transform 0.25s ease, background 0.2s ease;
}

.global-floating-whatsapp:hover .gfw-icon-box {
  transform: scale(1.08);
  background: #20ba5a;
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.6), 0 3px 10px rgba(0, 0, 0, 0.2);
}

.global-floating-whatsapp:active .gfw-icon-box {
  transform: scale(0.96);
}

.global-floating-whatsapp .gfw-pulse-ring {
  position: absolute;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(37, 211, 102, 0.4);
  z-index: 1;
  animation: gfwPulse 2.4s infinite ease-out;
  pointer-events: none;
}

@keyframes gfwPulse {
  0% {
    transform: scale(0.95);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.35);
    opacity: 0;
  }
  100% {
    transform: scale(1.35);
    opacity: 0;
  }
}

.global-floating-whatsapp .gfw-tooltip {
  position: absolute;
  right: 68px;
  background: #111827;
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
  padding: 6px 12px;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  opacity: 0;
  pointer-events: none;
  transform: translateX(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  letter-spacing: 0.2px;
}

.global-floating-whatsapp .gfw-tooltip::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -5px;
  transform: translateY(-50%);
  border-width: 5px 0 5px 5px;
  border-style: solid;
  border-color: transparent transparent transparent #111827;
}

.global-floating-whatsapp:hover .gfw-tooltip {
  opacity: 1;
  transform: translateX(0);
}

.btn-order-whatsapp-pdp {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #25D366;
  color: #ffffff;
  padding: 14px 18px;
  border-radius: var(--border-radius-md);
  font-size: 0.95rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
  transition: all var(--transition-fast);
  white-space: nowrap;
  text-decoration: none;
}

.btn-order-whatsapp-pdp:hover {
  background: #20ba5a;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
}

.btn-order-whatsapp-pdp:active {
  transform: translateY(1px) scale(0.98);
}

.btn-order-whatsapp-pdp svg {
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .global-floating-whatsapp {
    bottom: 74px;
    right: 14px;
  }
  .global-floating-whatsapp .gfw-icon-box {
    width: 50px;
    height: 50px;
  }
  .global-floating-whatsapp .gfw-icon-box svg {
    width: 28px;
    height: 28px;
  }
  .global-floating-whatsapp .gfw-pulse-ring {
    width: 50px;
    height: 50px;
  }
  .global-floating-whatsapp .gfw-tooltip {
    display: none;
  }
  .pdp-mobile-action-bar .pdp-bar-whatsapp {
    background: #25D366;
    border-color: transparent;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.35);
    font-weight: 700;
    flex: 0 1 65px;
    padding: 8px 4px;
  }
  .pdp-mobile-action-bar .pdp-bar-whatsapp:hover {
    background: #20ba5a;
  }
  .pdp-mobile-action-bar .pdp-bar-whatsapp:active {
    transform: translateY(1px) scale(0.98);
  }
}
