/* ==========================================================================
   TYIAM Kids Clothing Store - Complete Design System & CSS
   Theme: Vibrant Orange & Mint Green (RTL Persian E-Commerce)
   ========================================================================== */

@import url('../libs/fonts/vazirmatn/vazirmatn.css');

:root {
  --primary-orange: #ff7900;
  --primary-orange-hover: #e66d00;
  --primary-orange-light: #fff4eb;
  --primary-orange-dark: #d85000;
  
  --accent-mint: #00e676;
  --accent-mint-dark: #00b050;
  --accent-mint-light: #e6fcf3;
  --accent-mint-gradient: linear-gradient(135deg, #00e676 0%, #00b050 100%);
  
  --bg-body: #f8fafc;
  --bg-slate: #f1f5f9;
  --bg-slate-card: #f3f6fa;
  --bg-white: #ffffff;
  
  --text-dark: #0f172a;
  --text-navy: #1e293b;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  
  --border-color: #e2e8f0;
  --border-radius-sm: 10px;
  --border-radius-md: 16px;
  --border-radius-lg: 24px;
  --border-radius-pill: 50px;
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 16px 36px rgba(15, 23, 42, 0.08);
  --shadow-orange: 0 8px 20px rgba(255, 121, 0, 0.25);
  --shadow-mint: 0 8px 20px rgba(0, 230, 118, 0.25);
  
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  direction: rtl;
  scroll-behavior: smooth;
  font-family: 'Vazirmatn', -apple-system, BlinkMacSystemFont, sans-serif;
  overflow-x: hidden;
  max-width: 100%;
}

/* Custom Flat Minimal Scrollbar (Matching Image 2: No Arrows, Flat 0 Radius) */
::-webkit-scrollbar {
  width: 8px !important;
  height: 8px !important;
}

::-webkit-scrollbar-track,
::-webkit-scrollbar-track-piece {
  background: #f1f5f9 !important;
  border-radius: 0 !important;
  border: none !important;
}

::-webkit-scrollbar-thumb {
  background: var(--primary-orange, #ff7900) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(255, 121, 0, 0.3) !important;
}
.btn-primary:hover, button.btn-primary:hover {
  background: var(--primary-orange-hover, #e66d00) !important;
}

::-webkit-scrollbar-button,
::-webkit-scrollbar-button:single-button,
::-webkit-scrollbar-button:double-button,
::-webkit-scrollbar-button:vertical:decrement,
::-webkit-scrollbar-button:vertical:increment,
::-webkit-scrollbar-button:horizontal:decrement,
::-webkit-scrollbar-button:horizontal:increment,
::-webkit-scrollbar-button:start:decrement,
::-webkit-scrollbar-button:end:increment,
::-webkit-scrollbar-button:start:increment,
::-webkit-scrollbar-button:end:decrement {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  background: transparent !important;
  border: none !important;
}

::-webkit-scrollbar-corner {
  background: transparent !important;
}

/* Firefox Scrollbar */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--primary-orange, #ff7900) #f1f5f9;
}

body {
  background-color: var(--bg-body);
  color: var(--text-dark);
  line-height: 1.6;
  font-size: 15px;
  overflow-x: hidden;
  max-width: 100%;
}

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

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

ul {
  list-style: none;
}

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

.container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ==========================================================================
   Top Announcement Bar
   ========================================================================== */
.top-bar {
  background: linear-gradient(90deg, #ff7900 0%, #e66d00 100%);
  color: #ffffff;
  font-size: 13px;
  font-weight: 500;
  padding: 8px 0;
  text-align: center;
}

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

.top-bar-badge {
  background: rgba(255, 255, 255, 0.25);
  padding: 2px 10px;
  border-radius: var(--border-radius-pill);
  font-weight: 700;
  font-size: 12px;
  margin-left: 8px;
}

.top-bar-links {
  display: flex;
  gap: 16px;
}

.top-bar-links a:hover {
  opacity: 0.85;
}

/* ==========================================================================
   Header Section (Matching Screenshots 1 & 2)
   ========================================================================== */
.main-header {
  background-color: var(--bg-white);
  padding: 16px 0;
  border-bottom: 1px solid #f1f5f9;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

body.has-admin-top-bar .main-header {
  top: 30px !important;
}

.header-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* Logo */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon-box {
  width: 50px;
  height: 50px;
  background: var(--accent-mint-light);
  border: 2px solid var(--accent-mint);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: var(--accent-mint-dark);
  box-shadow: 0 4px 12px rgba(0, 230, 118, 0.15);
  transition: transform var(--transition-fast);
}

.brand-logo:hover .logo-icon-box {
  transform: rotate(-6deg) scale(1.05);
}

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

.logo-title {
  font-size: 24px;
  font-weight: 900;
  color: var(--text-dark);
  letter-spacing: -0.5px;
  line-height: 1.1;
}

.logo-subtitle {
  font-size: 11px;
  color: var(--primary-orange);
  font-weight: 700;
}

/* Search Bar */
.search-container {
  flex: 1;
  max-width: 560px;
  position: relative;
}

.search-box {
  display: flex;
  align-items: center;
  background-color: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 14px;
  padding: 3px 6px 3px 14px;
  transition: var(--transition-normal);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.search-box:focus-within {
  background-color: #ffffff;
  border-color: var(--primary-orange);
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.12);
}

.search-input {
  width: 100%;
  border: none;
  background: transparent;
  padding: 8px 12px;
  font-size: 13.5px;
  font-weight: 600;
  font-family: inherit;
  color: #0f172a;
  outline: none;
}

.search-input::placeholder {
  color: #94a3b8;
  font-weight: 500;
}

.search-btn {
  background: transparent;
  color: #64748b;
  width: 36px;
  height: 36px;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
  border: none;
  cursor: pointer;
  font-size: 16px;
}

.search-btn:hover {
  background: transparent;
  color: var(--primary-orange);
  transform: scale(1.1);
}

/* Instant Search Dropdown */
.search-results-dropdown {
  position: fixed;
  background: var(--bg-white);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  max-height: 380px;
  overflow-y: auto;
  z-index: 9998;
  display: none;
  padding: 12px;
}

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

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

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

.search-result-img {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  background-color: #f1f5f9;
}

.search-result-info {
  flex: 1;
  min-width: 0;
}

.search-result-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4;
}

.search-result-price {
  font-size: 12px;
  color: var(--primary-orange);
  font-weight: 700;
  margin-top: 2px;
}

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

.account-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: var(--bg-slate);
  color: var(--text-navy);
  font-weight: 700;
  font-size: 14px;
  height: 44px;
  padding: 0 14px;
  border-radius: 12px;
  transition: var(--transition-normal);
  border: 1px solid var(--border-color);
  cursor: pointer;
}

.account-btn:hover {
  background-color: var(--primary-orange-light);
  color: var(--primary-orange);
  border-color: var(--primary-orange);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(96, 165, 250, 0.12);
}

.icon-btn {
  position: relative;
  width: 44px;
  height: 44px;
  background-color: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0f172a;
  font-size: 17px;
  transition: var(--transition-fast);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
  cursor: pointer;
}

.icon-btn:hover {
  background-color: #ffffff;
  border-color: var(--primary-orange);
  color: #0f172a;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(96, 165, 250, 0.15);
}

.badge {
  position: absolute;
  top: -5px;
  left: -5px;
  background-color: var(--primary-orange);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: none; /* Only show when count > 0 */
  align-items: center;
  justify-content: center;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 5px rgba(96, 165, 250, 0.3);
}

/* ==========================================================================
   Navigation Bar (Categorized Links & Orange Button matching real Persian e-commerce stores)
   ========================================================================== */
.main-nav {
  background-color: var(--bg-white);
  border-bottom: 1px solid #e2e8f0;
  padding: 10px 0;
  position: relative;
  z-index: 99;
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 24px;
  position: relative;
}

/* Category Button - Vibrant Orange Pill ( FAR RIGHT ) */
.category-dropdown-btn {
  background-color: var(--primary-orange);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  padding: 11px 24px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-orange);
  transition: var(--transition-normal);
  position: relative;
  cursor: pointer;
  user-select: none;
  z-index: 1100;
}

.category-dropdown-btn:hover {
  background-color: var(--primary-orange-hover);
  transform: translateY(-2px);
}

/* Mega Menu - Floats above stories & hero banner */
.category-megamenu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  left: auto;
  width: 300px;
  background-color: #ffffff;
  border-radius: var(--border-radius-md);
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.18);
  border: 1px solid #e2e8f0;
  padding: 10px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 2500;
}

.category-dropdown-btn:hover .category-megamenu,
.category-megamenu.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.megamenu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  color: var(--text-dark);
  font-weight: 600;
  font-size: 14px;
  transition: var(--transition-fast);
  border-bottom: 1px solid #f8fafc;
}

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

.megamenu-item:hover {
  background-color: var(--accent-mint-light);
  color: var(--accent-mint-dark);
  padding-right: 24px;
}

/* Nav Horizontal Menu Links */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-menu li {
  list-style: none;
}

.nav-link {
  color: var(--text-navy);
  font-weight: 600;
  font-size: 14px;
  padding: 6px 4px;
  position: relative;
  display: inline-block;
  text-decoration: none;
  transition: var(--transition-fast);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0;
  height: 2.5px;
  background-color: var(--primary-orange);
  border-radius: 4px;
  transition: width 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-orange);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* ==========================================================================
   Hero Section & Banner (Matching Screenshot 2)
   ========================================================================== */
.hero-section {
  padding: 24px 0 16px;
}

.hero-grid {
  display: block;
  width: 100%;
}

.hero-slider-card {
  position: relative;
  width: 100%;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: 0 16px 45px rgba(15, 23, 42, 0.12);
  aspect-ratio: 16 / 6;
  background: #f8fafc;
}

.hero-slides-wrapper {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-slide {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
  z-index: 2;
}

.hero-slide a {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.hero-slide-overlay {
  display: none !important;
}

/* Slider Dots Indicator */
.slider-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 10;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.slider-dot.active {
  width: 24px;
  border-radius: 10px;
  background: var(--primary-orange);
}

/* Slider Controls */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dark);
  font-size: 18px;
  z-index: 10;
  transition: var(--transition-fast);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.8);
  cursor: pointer;
}

.slider-arrow:hover {
  background: var(--primary-orange);
  color: #ffffff;
  border-color: var(--primary-orange);
  transform: translateY(-50%) scale(1.1);
}

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

@media (max-width: 768px) {
  .hero-slide-overlay {
    right: 16px;
    left: 16px;
    width: auto;
    max-width: none;
    padding: 24px;
    top: auto;
    bottom: 20px;
    transform: none;
  }
  .hero-title {
    font-size: 22px;
  }
  .hero-desc {
    font-size: 13px;
    margin-bottom: 16px;
  }
}


/* Side Banners */
.hero-side-banners {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.side-banner-card {
  background: var(--bg-white);
  border-radius: var(--border-radius-md);
  padding: 20px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 16px;
  transition: var(--transition-normal);
}

.side-banner-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-mint);
}

.side-banner-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--accent-mint-light);
  color: var(--accent-mint-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  flex-shrink: 0;
}

.side-banner-info h4 {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.side-banner-info p {
  font-size: 13px;
  color: var(--text-muted);
}

/* ==========================================================================
   Circular Category Quick-Links Section (Matching Screenshot 2)
   ========================================================================== */
/* ==========================================================================
   Instagram Stories Section & Full-Screen Viewer
   ========================================================================== */
.insta-stories-section {
  padding: 24px 0 16px;
  position: relative;
  z-index: 1;
}

.insta-stories-wrapper {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 28px;
  overflow-x: auto;
  padding: 8px 4px 14px;
  scrollbar-width: none;
}

.insta-stories-wrapper::-webkit-scrollbar {
  display: none;
}

.insta-story-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  flex-shrink: 0;
  user-select: none;
  transition: transform 0.2s ease;
}

.insta-story-item:hover {
  transform: translateY(-3px) scale(1.03);
}

.insta-story-ring {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  box-shadow: 0 4px 18px rgba(220, 39, 67, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.insta-story-item.seen .insta-story-ring {
  background: #cbd5e1;
  box-shadow: none;
}

.insta-story-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 3px solid #ffffff;
  object-fit: cover;
  background: #f8fafc;
  display: block;
}

.insta-story-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-navy);
  text-align: center;
  max-width: 90px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* INSTAGRAM STORY VIEWER MODAL */
.insta-viewer-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.insta-viewer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(12px);
}

.insta-viewer-phone {
  position: relative;
  width: 100%;
  max-width: 420px;
  height: 92vh;
  max-height: 760px;
  background: #000000;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 2;
}

@media (max-width: 500px) {
  .insta-viewer-phone {
    max-width: 100%;
    height: 100%;
    height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
  }
}

.insta-progress-bars {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  display: flex;
  gap: 5px;
  z-index: 20;
}

.insta-progress-bar {
  flex: 1;
  height: 3px;
  background: rgba(255, 255, 255, 0.35);
  border-radius: 4px;
  overflow: hidden;
}

.insta-progress-fill {
  height: 100%;
  background: #ffffff;
  width: 0%;
  border-radius: 4px;
}

.insta-story-header {
  position: absolute;
  top: 26px;
  left: 14px;
  right: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 20;
  color: #ffffff;
}

.insta-story-author {
  display: flex;
  align-items: center;
  gap: 10px;
}

.insta-author-ring {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  padding: 2px;
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.insta-author-ring img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #000;
  display: block;
}

.insta-author-info {
  display: flex;
  flex-direction: column;
}

.insta-author-name {
  font-size: 13px;
  font-weight: 800;
  text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}

.insta-story-title {
  font-size: 11px;
  opacity: 0.85;
}

.insta-close-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  border: none;
  color: #ffffff;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  transition: transform 0.15s;
}

.insta-close-btn:hover {
  transform: scale(1.1);
  background: rgba(0, 0, 0, 0.7);
}

.insta-story-content {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
}

#storyMainImage {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.insta-tap-zone {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 40%;
  z-index: 15;
  cursor: pointer;
}

.zone-prev { right: 0; }
.zone-next { left: 0; }

.insta-story-footer {
  position: absolute;
  bottom: 22px;
  left: 20px;
  right: 20px;
  z-index: 20;
}

.insta-cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px 20px;
  background: linear-gradient(135deg, #ff7900 0%, #e66d00 100%);
  color: #ffffff;
  font-weight: 800;
  font-size: 14px;
  border-radius: 16px;
  text-decoration: none;
  box-shadow: 0 10px 25px rgba(96, 165, 250, 0.45);
  transition: all 0.2s ease;
}

.insta-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(96, 165, 250, 0.6);
}


/* ==========================================================================
   Category Sidebar (now standalone, brands moved below)
   ========================================================================== */
.category-sidebar-section {
  padding: 24px 0 0;
}

.category-sidebar-box {
  background-color: var(--bg-slate-card);
  border-radius: var(--border-radius-lg);
  padding: 20px 28px;
  box-shadow: var(--shadow-sm);
  display: block;
  border: 1px solid #e9ecef;
}

/* Popular Brands Strip (Horizontal Logo Bar) */
.brands-strip-section {
  padding: 16px 0 24px;
}

.brands-strip-box {
  background-color: #ffffff;
  border-radius: var(--border-radius-lg);
  padding: 20px 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid #e9ecef;
}

.brands-strip-header {
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.brands-strip-title {
  font-size: 16px;
  font-weight: 900;
  color: var(--text-navy);
}

.brands-strip-track {
  display: flex;
  align-items: center;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 4px;
}

.brands-strip-track::-webkit-scrollbar {
  display: none;
}

/* Brand card in horizontal strip */
.brand-card {
  flex-shrink: 0;
  min-width: 110px;
  max-width: 150px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-left: 1px solid #e9ecef;
  transition: var(--transition-fast);
  cursor: pointer;
  text-align: center;
}

.brand-card:last-child {
  border-left: none;
}

.brand-card:first-child {
  border-right: 1px solid #e9ecef;
}

.brand-card:hover {
  background-color: var(--bg-slate);
}

/* Brand logo image in strip */
.brand-logo-img {
  max-height: 40px;
  max-width: 96px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.55;
  transition: filter 0.25s ease, opacity 0.25s ease;
  display: block;
}

.brand-card:hover .brand-logo-img {
  filter: grayscale(0%);
  opacity: 1;
}

/* Emoji/text fallback when no image */
.brand-logo-emoji {
  font-size: 26px;
  line-height: 1;
}

.brand-name {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.3;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-card:hover .brand-name {
  color: var(--text-dark);
}

.brand-count {
  font-size: 10px;
  color: var(--text-light);
  text-align: center;
}

/* Right Categories List (Matching Screenshot 1 Sidebar) */

.categories-vertical-list {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.sidebar-category-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: var(--border-radius-pill);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-navy);
  background-color: var(--bg-white);
  border: 1.5px solid var(--border-color);
  transition: var(--transition-fast);
  cursor: pointer;
}

.sidebar-category-item:hover {
  border-color: var(--accent-mint);
  color: var(--accent-mint-dark);
  background-color: var(--accent-mint-light);
}

/* Active Highlight */
.sidebar-category-item.active {
  background-color: var(--accent-mint);
  color: #ffffff;
  border-color: var(--accent-mint);
  box-shadow: var(--shadow-mint);
}

/* ==========================================================================
   CIRCULAR CATEGORY GROUP SHOWCASE SECTION (Matching Reference Image)
   ========================================================================== */
.circle-categories-section {
  padding: 28px 0 24px 0;
  background: #ffffff;
  border-bottom: 1px solid #f1f5f9;
  margin-bottom: 24px;
}

.circle-categories-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.circle-categories-track {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 10px 8px 14px 8px;
  cursor: grab;
  user-select: none;
  scroll-behavior: smooth;
}

.circle-categories-track::-webkit-scrollbar {
  display: none;
}

.circle-categories-track.is-dragging {
  cursor: grabbing;
  scroll-behavior: auto;
}

.circle-cat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  width: 105px;
}

.circle-cat-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border: 3px solid #e0f2fe;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(14, 165, 233, 0.08), inset 0 0 10px rgba(255, 255, 255, 0.8);
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
}

.circle-cat-avatar img {
  width: 78%;
  height: 78%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.circle-cat-avatar i {
  font-size: 38px;
  color: var(--primary-orange);
  transition: transform 0.3s ease;
}

.circle-cat-title {
  margin-top: 12px;
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
  text-align: center;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.circle-cat-item:hover .circle-cat-avatar {
  transform: translateY(-6px) scale(1.06);
  border-color: var(--primary-orange);
  box-shadow: 0 10px 25px rgba(96, 165, 250, 0.2), 0 0 0 4px rgba(96, 165, 250, 0.1);
  background: #ffffff;
}

.circle-cat-item:hover .circle-cat-avatar img,
.circle-cat-item:hover .circle-cat-avatar i {
  transform: scale(1.1);
}

.circle-cat-item:hover .circle-cat-title {
  color: var(--primary-orange);
}

@media (max-width: 768px) {
  .circle-categories-track {
    justify-content: flex-start;
    gap: 20px;
  }
  .circle-cat-item {
    width: 85px;
  }
  .circle-cat-avatar {
    width: 78px;
    height: 78px;
  }
  .circle-cat-title {
    font-size: 12px;
    margin-top: 8px;
  }
}

/* ==========================================================================
   Flash Deals Section — پیشنهادات شگفت‌انگیز (Digikala Style)
   ========================================================================== */

/* ── Flash Deals RGB Border ── */
.flash-deals-box {
  position: relative;
  border-radius: calc(var(--border-radius-lg) + 3px);
  padding: 3px;
  background: linear-gradient(
    135deg,
    #ff3a3a, #ff8c00, #ffe600, #00e676, #00b4ff, #a855f7, #ff3a3a
  );
  background-size: 300% 300%;
  animation: rgbBorderFlow 4s linear infinite;
  box-shadow:
    0 0 20px 0px rgba(168, 85, 247, 0.15),
    0 0 40px 0px rgba(0, 180, 255, 0.10);
}

@keyframes rgbBorderFlow {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.flash-deals-section {
  padding: 0 0 32px;
}

.flash-deals-section {
  padding: 8px 0 32px;
}

.flash-deals-banner {
  background: linear-gradient(135deg, #b91c1c 0%, #1e40af 50%, #1e3a8a 100%);
  border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
  padding: 12px 24px;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: 0 8px 24px rgba(30, 58, 138, 0.35);
  position: relative;
  overflow: hidden;
}

/* Subtle background accent glow */
.flash-deals-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 70%);
  pointer-events: none;
}

.flash-deals-info {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 2;
}

.flash-icon {
  font-size: 26px;
  color: #ffd700;
  animation: flashPulse 1.2s ease-in-out infinite;
  filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.8));
}

@keyframes flashPulse {
  0%, 100% { transform: scale(1) rotate(0deg); opacity: 1; }
  50%       { transform: scale(1.18) rotate(-8deg); opacity: 0.9; }
}

.flash-title {
  font-size: 18px;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.3px;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.flash-subtitle {
  font-size: 11px;
  opacity: 0.9;
  margin-top: 2px;
  font-weight: 500;
}

/* Glassmorphic Countdown Timer - Compact */
.flash-timer-wrap {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  position: relative;
  z-index: 2;
}

.flash-timer-label {
  font-size: 11px;
  font-weight: 800;
  opacity: 0.9;
  white-space: nowrap;
}

.countdown-timer {
  display: flex;
  align-items: center;
  gap: 6px;
  direction: ltr;
}

.time-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.time-unit-label {
  font-size: 9px;
  opacity: 0.85;
  font-weight: 700;
  margin-top: 2px;
}

.time-box {
  background: rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  font-weight: 900;
  font-size: 16px;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.2), 0 4px 12px rgba(0, 0, 0, 0.15);
  letter-spacing: 0.5px;
  line-height: 1;
}

.time-colon {
  font-size: 18px;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 12px;
  line-height: 1;
}

/* Products horizontal scroll track */
.flash-products-wrapper {
  display: flex;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
  background: #ffffff;
  border-radius: 0 0 var(--border-radius-lg) var(--border-radius-lg);
  padding: 10px 0;
}

.flash-products-wrapper::-webkit-scrollbar {
  display: none;
}

/* Flash Product Card */
.flash-product-card {
  flex-shrink: 0;
  width: 220px;
  border-left: 1.5px dashed #f1f5f9;
  padding: 18px 16px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.flash-product-card:last-child {
  border-left: none;
}

.flash-product-card:hover {
  background: #fff8f6;
  transform: translateY(-4px);
}

/* Discount badge on card */
.flash-discount-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
  padding: 4px 10px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.35);
  line-height: 1;
  z-index: 2;
}

.flash-discount-badge .disc-num {
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
}

.flash-discount-badge .disc-pct {
  font-size: 10px;
  font-weight: 800;
  margin-right: 2px;
  line-height: 1;
}

/* Image */
.flash-product-img-wrap {
  width: 150px;
  height: 150px;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 14px;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-color);
}

.flash-product-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.flash-product-card:hover .flash-product-img-wrap img {
  transform: scale(1.08);
}

/* Title */
.flash-product-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dark);
  text-align: right;
  line-height: 1.5;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 38px;
  width: 100%;
}

/* Price & Action Row */
.flash-price-action-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  width: 100%;
  margin-top: auto;
  margin-bottom: 12px;
  gap: 6px;
}

.flash-price-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.flash-original-price {
  font-size: 11px;
  color: var(--text-light);
  text-decoration: line-through;
}

.flash-final-price {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.1;
}

.flash-final-price .price-num {
  font-size: 15px;
  font-weight: 900;
  color: var(--primary-orange);
  line-height: 1.1;
}

.flash-final-price .toman {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 1px;
  margin-right: 0;
  line-height: 1;
}

.flash-action-wrap {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-shrink: 0;
}

/* Progress bar (موجودی) */
.flash-stock-bar-wrap {
  width: 100%;
  margin-top: 4px;
}

.flash-stock-label {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 700;
  margin-bottom: 5px;
  display: flex;
  justify-content: space-between;
}

.flash-stock-bar {
  width: 100%;
  height: 6px;
  background: #f1f5f9;
  border-radius: 10px;
  overflow: hidden;
}

.flash-stock-fill {
  height: 100%;
  background: linear-gradient(90deg, #ff7900 0%, #ef4444 100%);
  border-radius: 10px;
  transition: width 0.8s ease;
}

.flash-stock-fill.low {
  background: linear-gradient(90deg, #ef4444 0%, #dc2626 100%);
}

/* Add to cart button */
.flash-add-btn {
  width: 100%;
  background: var(--accent-mint-light);
  color: var(--accent-mint-dark);
  border: 1.5px solid rgba(0,230,118,0.3);
  border-radius: 12px;
  font-size: 13px;
  font-weight: 800;
  padding: 9px;
  transition: all 0.25s ease;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.flash-add-btn:hover {
  background: var(--accent-mint);
  color: #ffffff;
  box-shadow: var(--shadow-mint);
  transform: scale(1.02);
}


/* Skeleton loading */
.skeleton-card {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  height: 300px;
  border-radius: 0;
  pointer-events: none;
}

.skeleton-card:first-child {
  border-radius: 0;
}

@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Empty state */
.flash-empty-state {
  padding: 48px 20px;
  text-align: center;
  color: var(--text-muted);
  width: 100%;
}

.flash-empty-state i {
  font-size: 48px;
  color: var(--text-light);
  margin-bottom: 12px;
}

@media (max-width: 768px) {
  .flash-deals-banner {
    padding: 16px 18px;
    gap: 12px;
  }
  .flash-title { font-size: 16px; }
  .time-box { width: 42px; height: 42px; font-size: 18px; }
  .flash-product-card { width: 160px; }
  .flash-product-img-wrap { width: 110px; height: 110px; }
  .flash-see-all { display: none; }
}

/* ==========================================================================
   Product Grid & Product Cards
   ========================================================================== */
.products-section {
  padding: 20px 0 40px;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.section-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.title-bar {
  width: 6px;
  height: 24px;
  background-color: var(--accent-mint);
  border-radius: 10px;
}

.section-title {
  font-size: 22px;
  font-weight: 900;
  color: var(--text-dark);
}

/* ==========================================================================
   SHOP CIRCULAR CATEGORY SHOWCASE BAR (Matching Reference Image)
   ========================================================================== */
.shop-category-showcase-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 18px 16px 14px 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  border: 1px solid #f1f5f9;
  margin-bottom: 20px;
  position: relative;
  width: 100%;
}

.filter-tabs.circle-tabs-mode {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 6px 4px 10px 4px;
  cursor: grab;
  user-select: none;
  scroll-behavior: smooth;
}

.filter-tabs.circle-tabs-mode .tab-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  width: 92px;
  flex-shrink: 0;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.filter-tabs.circle-tabs-mode .tab-btn .tab-logo-box {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border: 3px solid #e0f2fe;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(14, 165, 233, 0.08), inset 0 0 10px rgba(255, 255, 255, 0.8);
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
}

.filter-tabs.circle-tabs-mode .tab-btn .tab-logo-box img {
  width: 78%;
  height: 78%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.filter-tabs.circle-tabs-mode .tab-btn .tab-logo-box i {
  font-size: 34px;
  color: var(--primary-orange);
  transition: transform 0.3s ease;
}

.filter-tabs.circle-tabs-mode .tab-btn span.tab-title-text {
  margin-top: 10px;
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
  text-align: center;
  white-space: nowrap;
  transition: color 0.2s ease;
}

/* Hover State */
.filter-tabs.circle-tabs-mode .tab-btn:hover .tab-logo-box {
  transform: translateY(-5px) scale(1.05);
  border-color: var(--primary-orange);
  box-shadow: 0 8px 22px rgba(96, 165, 250, 0.2);
  background: #ffffff;
}

.filter-tabs.circle-tabs-mode .tab-btn:hover span.tab-title-text {
  color: var(--primary-orange);
}

/* Active Selected Category State */
.filter-tabs.circle-tabs-mode .tab-btn.active .tab-logo-box {
  border-color: var(--primary-orange);
  box-shadow: 0 8px 22px rgba(96, 165, 250, 0.3), 0 0 0 4px rgba(96, 165, 250, 0.15);
  background: #ffffff;
  transform: translateY(-4px);
}

.filter-tabs.circle-tabs-mode .tab-btn.active span.tab-title-text {
  color: var(--primary-orange) !important;
  font-weight: 800;
}

/* Responsive Mobile Layout for Shop Circular Categories */
@media (max-width: 768px) {
  .shop-category-showcase-card {
    padding: 12px 10px 8px 10px;
    border-radius: 14px;
    margin-bottom: 16px;
  }

  .filter-tabs.circle-tabs-mode {
    gap: 16px;
    padding: 4px 2px 8px 2px;
  }

  .filter-tabs.circle-tabs-mode .tab-btn {
    width: 68px;
  }

  .filter-tabs.circle-tabs-mode .tab-btn .tab-logo-box {
    width: 60px;
    height: 60px;
    border-width: 2.5px;
  }

  .filter-tabs.circle-tabs-mode .tab-btn .tab-logo-box i {
    font-size: 24px;
  }

  .filter-tabs.circle-tabs-mode .tab-btn span.tab-title-text {
    margin-top: 6px;
    font-size: 11px;
    font-weight: 700;
  }

  .quick-scroll-btn {
    width: 28px;
    height: 28px;
    font-size: 10px;
  }
}

@media (max-width: 480px) {
  .shop-category-showcase-card {
    padding: 10px 6px 6px 6px;
  }

  .filter-tabs.circle-tabs-mode {
    gap: 12px;
  }

  .filter-tabs.circle-tabs-mode .tab-btn {
    width: 62px;
  }

  .filter-tabs.circle-tabs-mode .tab-btn .tab-logo-box {
    width: 52px;
    height: 52px;
    border-width: 2px;
  }

  .filter-tabs.circle-tabs-mode .tab-btn .tab-logo-box i {
    font-size: 20px;
  }

  .filter-tabs.circle-tabs-mode .tab-btn span.tab-title-text {
    margin-top: 5px;
    font-size: 10.5px;
  }

  .quick-scroll-btn {
    display: none;
  }
}

.shop-sort-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  padding: 12px 20px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}

.shop-results-count {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
}

.quick-access-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.quick-scroll-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  z-index: 5;
  transition: all 0.2s ease;
  flex-shrink: 0;
  font-size: 12px;
}

.quick-scroll-btn:hover {
  background: var(--primary-orange);
  color: #ffffff;
  border-color: var(--primary-orange);
  box-shadow: 0 4px 12px rgba(96, 165, 250, 0.3);
}

.quick-scroll-btn.prev {
  margin-left: 6px;
}

.quick-scroll-btn.next {
  margin-right: 6px;
}

.filter-tabs {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 6px 4px;
  cursor: grab;
  user-select: none;
  scroll-behavior: smooth;
  flex: 1;
}

.filter-tabs.is-dragging {
  cursor: grabbing;
  scroll-behavior: auto;
}

.filter-tabs::-webkit-scrollbar {
  display: none;
}

.tab-btn {
  white-space: nowrap;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dark);
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.tab-btn .tab-logo-box {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #f1f5f9;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.tab-btn .tab-logo-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tab-btn .tab-logo-box i {
  font-size: 13px;
  color: var(--primary-orange);
}

.tab-btn:hover {
  border-color: var(--primary-orange);
  color: var(--primary-orange);
  background: rgba(96, 165, 250, 0.05);
  transform: translateY(-1px);
}

.tab-btn.active {
  background: var(--primary-orange);
  color: #ffffff !important;
  border-color: var(--primary-orange);
  box-shadow: 0 4px 12px rgba(96, 165, 250, 0.25);
}

.tab-btn.active .tab-logo-box {
  background: rgba(255, 255, 255, 0.25);
}

.tab-btn.active .tab-logo-box i {
  color: #ffffff !important;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

/* Product Card */
.product-card {
  background-color: var(--bg-white);
  border-radius: var(--border-radius-md);
  border: 1px solid #f1f5f9;
  overflow: hidden;
  transition: var(--transition-normal);
  position: relative;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-mint-light);
}

.product-thumb {
  position: relative;
  width: 100%;
  height: 240px;
  background-color: #f8fafc;
  overflow: hidden;
}

.product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

/* Out of Stock product card image grayscale & opacity */
.product-card.is-out-of-stock .product-img,
.product-card.is-out-of-stock .product-thumb img {
  filter: grayscale(100%);
  opacity: 0.8;
  transition: filter 0.3s ease, opacity 0.3s ease;
}

.product-card.is-out-of-stock:hover .product-img,
.product-card.is-out-of-stock:hover .product-thumb img {
  filter: grayscale(75%);
  opacity: 0.92;
}

.out-of-stock-card-badge {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
  padding: 6px 14px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

/* Placeholder when no image is set */
.product-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f1f5f9;
  color: #cbd5e1;
  font-size: 48px;
}

.flash-product-img-wrap .product-img-placeholder {
  font-size: 36px;
  border-radius: 12px;
}

/* Badges */
.product-badge-discount {
  position: absolute;
  top: 12px;
  right: 12px;
  background-color: var(--primary-orange);
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--border-radius-pill);
  box-shadow: 0 4px 10px rgba(96, 165, 250, 0.3);
}

.product-badge-new {
  position: absolute;
  top: 12px;
  left: 12px;
  background-color: var(--accent-mint);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--border-radius-pill);
}

/* Quick Actions Hover */
.product-actions-overlay {
  position: absolute;
  bottom: 12px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 10px;
  opacity: 0;
  transform: translateY(15px);
  transition: var(--transition-normal);
}

.product-card:hover .product-actions-overlay {
  opacity: 1;
  transform: translateY(0);
}

.action-circle-btn {
  width: 40px;
  height: 40px;
  background-color: var(--bg-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dark);
  box-shadow: var(--shadow-md);
  transition: var(--transition-fast);
}

.action-circle-btn:hover {
  background-color: var(--accent-mint);
  color: #ffffff;
}

/* Product Info */
.product-details {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-category-tag {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 6px;
}

.product-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 10px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 42px;
}

.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  font-size: 12px;
  color: var(--text-muted);
}

.rating-star {
  color: #ffb800;
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 700;
}

.product-price-row {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.original-price {
  font-size: 12px;
  color: var(--text-light);
  text-decoration: line-through;
}

.current-price {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.1;
}

.current-price .price-num {
  font-size: 15px;
  font-weight: 900;
  color: var(--primary-orange);
  line-height: 1.1;
}

.toman-currency {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 1px;
  margin-right: 0;
  line-height: 1;
}

.add-cart-btn {
  background-color: var(--accent-mint-light);
  color: var(--accent-mint-dark);
  font-weight: 800;
  font-size: 16px;
  width: 36px;
  height: 36px;
  min-width: 36px;
  padding: 0;
  border-radius: 10px;
  transition: var(--transition-fast);
  border: 1px solid rgba(0, 230, 118, 0.25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  white-space: nowrap;
}

.add-cart-btn:hover {
  background-color: var(--accent-mint);
  color: #ffffff;
  box-shadow: var(--shadow-mint);
}

/* ==========================================================================
   Shopping Cart Slide-Over Drawer
   ========================================================================== */
.cart-drawer-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-normal);
}

.cart-drawer-overlay.active {
  opacity: 1;
  visibility: visible;
}

.cart-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 100%;
  max-width: 420px;
  background-color: var(--bg-white);
  z-index: 10010;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
}

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

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

.cart-drawer-title {
  font-size: 18px;
  font-weight: 900;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 10px;
}

.close-drawer-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--bg-slate);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-navy);
  transition: var(--transition-fast);
}

.close-drawer-btn:hover {
  background-color: #fee2e2;
  color: #ef4444;
}

.cart-items-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

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

.cart-empty-icon {
  font-size: 54px;
  color: var(--text-light);
  margin-bottom: 16px;
}

.cart-item {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid #f1f5f9;
}

.cart-item-img {
  width: 70px;
  height: 70px;
  border-radius: 12px;
  object-fit: cover;
  background-color: #f8fafc;
}

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

.cart-item-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.cart-item-price {
  font-size: 14px;
  font-weight: 800;
  color: var(--primary-orange);

  margin-bottom: 8px;
}

.qty-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.qty-btn {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background-color: var(--bg-slate);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.qty-value {
  font-size: 13px;
  font-weight: 700;
}

.remove-cart-item {
  color: #ef4444;
  font-size: 14px;
  margin-right: auto;
}

.cart-drawer-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--border-color);
  background-color: var(--bg-white);
}

.cart-subtotal-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  font-size: 16px;
  font-weight: 800;
}

.checkout-btn {
  width: 100%;
  background: var(--accent-mint);
  color: #ffffff;
  font-weight: 800;
  font-size: 16px;
  padding: 14px;
  border-radius: 14px;
  box-shadow: var(--shadow-mint);
  transition: var(--transition-fast);
  text-align: center;
}

.checkout-btn:hover {
  background-color: var(--accent-mint-dark);
}

/* ==========================================================================
   Quick View Modal
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(6px);
  z-index: 3000;
  opacity: 0;
  visibility: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  transition: var(--transition-normal);
}

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

.quick-view-modal {
  background-color: var(--bg-white);
  border-radius: var(--border-radius-lg);
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding: 32px;
}

@media (max-width: 768px) {
  .quick-view-modal {
    grid-template-columns: 1fr;
    padding: 20px;
  }
}

.close-modal-btn {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: var(--bg-slate);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.modal-image-box {
  width: 100%;
  height: 320px;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  background-color: var(--bg-slate);
}

.modal-image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-details {
  display: flex;
  flex-direction: column;
}

.modal-title {
  font-size: 20px;
  font-weight: 900;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.modal-meta-row {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.size-selector {
  margin: 16px 0;
}

.size-label {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px;

}

.size-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.size-pill {
  padding: 6px 14px;
  border-radius: 8px;
  border: 1.5px solid var(--border-color);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-fast);
}

.size-pill.selected, .size-pill:hover {
  border-color: var(--accent-mint);
  background-color: var(--accent-mint-light);
  color: var(--accent-mint-dark);
}

/* ==========================================================================
   Toast Notification
   ========================================================================== */
.toast-notification {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background-color: var(--text-dark);
  color: #ffffff;
  padding: 14px 24px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-lg);
  z-index: 4000;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-right: 4px solid var(--accent-mint);
}

.toast-notification.show {
  transform: translateY(0);
  opacity: 1;
}

/* ==========================================================================
   Footer Section
   ========================================================================== */
.main-footer {
  background-color: #0f172a;
  color: #94a3b8;
  padding: 60px 0 24px;
  margin-top: 40px;
}

.footer-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  padding-bottom: 40px;
  border-bottom: 1px solid #1e293b;
  margin-bottom: 40px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background-color: rgba(96, 165, 250, 0.15);
  color: var(--primary-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.feature-title {
  color: #ffffff;
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 2px;
}

.feature-desc {
  font-size: 12px;
}

.footer-columns-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 32px;
  margin-bottom: 40px;
}

@media (max-width: 992px) {
  .footer-columns-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.footer-col h4 {
  color: #ffffff;
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 20px;
  position: relative;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: -6px;
  right: 0;
  width: 30px;
  height: 3px;
  background-color: var(--primary-orange);
  border-radius: 2px;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a:hover {
  color: var(--accent-mint);
  padding-right: 6px;
}

.footer-copyright {
  text-align: center;
  font-size: 13px;
  padding-top: 24px;
  border-top: 1px solid #1e293b;
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
  .top-bar, #mainTopBar {
    display: none !important;
    height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
  }
  .main-header {
    top: 0;
    margin-top: 0 !important;
  }
  body.has-admin-top-bar .main-header {
    top: 30px;
  }
  .header-wrapper { flex-wrap: wrap; }
  .search-container { order: 3; width: 100%; max-width: 100%; margin-top: 10px; }
  .nav-menu { display: none; }
  .quick-categories-wrapper { justify-content: center; gap: 16px; }

  /* brands strip on mobile: compact cards, horizontal scroll */
  .brands-strip-box {
    padding: 16px;
  }
  .brand-card {
    min-width: 80px;
    max-width: 100px;
    padding: 10px 10px;
  }
  .brand-logo-img {
    max-height: 30px;
    max-width: 72px;
  }

  /* categories strip on mobile */
  .category-sidebar-box {
    padding: 14px 16px;
  }
  .categories-vertical-list {
    gap: 8px;
  }
  .sidebar-category-item {
    font-size: 12px;
    padding: 8px 14px;
  }
}

/* ==========================================================================
   Card Cart Stepper Widget (Digikala Style Dynamic Quantity Controller)
   ========================================================================== */
.card-action-wrap {
  display: flex;
  align-items: center;
}

.card-cart-stepper {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background-color: var(--accent-mint-light);
  border: 1px solid var(--accent-mint);
  border-radius: 8px;
  padding: 2px 4px;
  box-shadow: 0 2px 6px rgba(0, 230, 118, 0.12);
  animation: stepperPopIn 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  max-width: 100%;
}

@keyframes stepperPopIn {
  0% { transform: scale(0.85); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.card-stepper-btn {
  width: 24px;
  height: 24px;
  min-width: 24px;
  border-radius: 6px;
  background: var(--bg-white);
  color: var(--accent-mint-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  border: none;
  cursor: pointer;
  transition: var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.card-stepper-btn:hover {
  background-color: var(--accent-mint);
  color: #ffffff;
}

.card-stepper-btn.minus.trash {
  color: #ef4444;
  background-color: #fee2e2;
}

.card-stepper-btn.minus.trash:hover {
  background-color: #ef4444;
  color: #ffffff;
}

.card-stepper-count {
  font-size: 12px;
  font-weight: 900;
  color: var(--text-dark);
  min-width: 16px;
  text-align: center;
  padding: 0 2px;
}

.in-cart-banner {
  background-color: var(--accent-mint-light);
  border: 1.5px solid var(--accent-mint);
  color: var(--accent-mint-dark);
  font-weight: 800;
  font-size: 13px;
  padding: 10px 16px;
  border-radius: 12px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.p-added-checkout-btn {
  flex: 1;
  background-color: var(--accent-mint);
  color: #ffffff;
  font-weight: 800;
  font-size: 15px;
  padding: 12px 20px;
  border-radius: 12px;
  box-shadow: var(--shadow-mint);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  transition: var(--transition-fast);
}

.p-added-checkout-btn:hover {
  background-color: var(--accent-mint-dark);
  transform: translateY(-2px);
}

.stepper-btn.trash {
  color: #ef4444;
  background-color: #fee2e2;
}

.stepper-btn.trash:hover {
  background-color: #ef4444;
  color: #ffffff;
}

/* ==========================================================================
   Auth Modal (Login / Register)
   ========================================================================== */
.auth-modal-card {
  background-color: #ffffff !important;
  border-radius: 20px !important;
  max-width: 420px !important;
  width: 100% !important;
  margin: auto !important;
  padding: 28px 28px 24px !important;
  position: relative !important;
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(0, 0, 0, 0.05) !important;
  box-sizing: border-box !important;
  flex-shrink: 0 !important;
}

.auth-modal-header {
  text-align: center;
  margin-bottom: 18px;
}

.auth-logo-box {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--bg-slate, #f1f5f9);
  color: var(--primary-orange, #ff7900);
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
  border: none;
}

.auth-modal-header h3 {
  font-size: 18px;
  font-weight: 900;
  color: #0f172a;
  margin: 0 0 4px 0;
}

.auth-modal-header p {
  font-size: 12px;
  color: #64748b;
  margin: 0;
}

.auth-tabs {
  display: flex;
  background: #f1f5f9;
  padding: 4px;
  border-radius: 12px;
  margin-bottom: 18px;
  gap: 4px;
}

.auth-tab-btn {
  flex: 1;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 700;
  color: #64748b;
  border-radius: 9px;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}

.auth-tab-btn.active {
  background-color: #ffffff;
  color: var(--primary-orange, #ff7900);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.auth-form {
  display: none;
}

.auth-form.active {
  display: block;
}

.form-group {
  margin-bottom: 14px;
}

.form-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #334155;
  margin-bottom: 5px;
}

.form-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  right: 14px;
  color: #94a3b8;
  font-size: 15px;
  pointer-events: none;
}

.form-input {
  width: 100% !important;
  padding: 10px 40px 10px 14px !important;
  border: 1.5px solid #e2e8f0 !important;
  border-radius: 10px !important;
  font-size: 13px !important;
  font-family: inherit !important;
  outline: none !important;
  background: #ffffff !important;
  color: #0f172a !important;
  transition: all 0.2s ease !important;
  box-sizing: border-box !important;
}

.form-input:focus {
  border-color: var(--primary-orange, #ff7900) !important;
  box-shadow: 0 0 0 3px rgba(255, 121, 0, 0.15) !important;
}

.auth-submit-btn {
  width: 100% !important;
  background: var(--primary-orange, #ff7900) !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  font-size: 14px !important;
  padding: 11px !important;
  border-radius: 10px !important;
  border: none !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  transition: all 0.2s ease !important;
  margin-top: 10px !important;
  box-shadow: 0 4px 12px rgba(255, 121, 0, 0.25) !important;
}

.auth-submit-btn:hover {
  filter: brightness(0.95) !important;
  transform: translateY(-1px) !important;
}

/* ── 6-Digit SMS OTP Modern Input UI ───────────────────────────── */
.otp-digits-box {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin: 14px 0;
  direction: ltr;
}

.otp-digit-input {
  width: 44px !important;
  height: 48px !important;
  padding: 0 !important;
  text-align: center !important;
  font-size: 20px !important;
  font-weight: 800 !important;
  border: 1.5px solid #cbd5e1 !important;
  border-radius: 12px !important;
  background: #ffffff !important;
  color: #0f172a !important;
  outline: none !important;
  transition: all 0.2s ease !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
}

.otp-digit-input:focus {
  border-color: var(--primary-orange, #ff7900) !important;
  box-shadow: 0 0 0 3px rgba(255, 121, 0, 0.18) !important;
  background: #fffdfb !important;
}

.btn-link-otp {
  background: none;
  border: none;
  color: var(--primary-orange, #ff7900);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-link-otp:hover {
  opacity: 0.85;
  text-decoration: underline;
}

/* ==========================================================================
   Single Product Detail Page Styles
   ========================================================================== */
.breadcrumb-bar {
  background-color: transparent;
  border-bottom: none;
  padding: 0 0 16px 0;
  font-size: 13px;
  width: 100%;
  box-sizing: border-box;
}

.breadcrumb-links {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: 8px 14px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  width: 100%;
  box-sizing: border-box;
  box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

.breadcrumb-links::-webkit-scrollbar {
  display: none;
}

.breadcrumb-links a {
  color: #64748b;
  text-decoration: none;
  font-size: 12.5px;
  font-weight: 500;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s ease;
}

.breadcrumb-links a i.fa-house {
  color: var(--primary-orange, #ff7900);
  font-size: 11px;
}

.breadcrumb-links a:hover {
  color: var(--primary-orange);
}

.breadcrumb-links span {
  font-size: 12.5px;
  font-weight: 700;
  color: #0f172a;
  flex-shrink: 0;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.breadcrumb-links .sep {
  font-size: 9px;
  color: #cbd5e1;
  flex-shrink: 0;
  margin: 0 1px;
}

@media (max-width: 768px) {
  .breadcrumb-bar {
    padding: 0 0 10px 0;
    background: transparent;
    border-bottom: none;
  }
  .breadcrumb-links {
    gap: 6px;
    padding: 7px 10px;
    border-radius: 10px;
  }
  .breadcrumb-links a, .breadcrumb-links span {
    font-size: 11.5px;
  }
  .breadcrumb-links span {
    max-width: 140px;
  }
}

.single-product-section {
  padding: 24px 0 32px 0;
}

.product-detail-card {
  background-color: var(--bg-white);
  border-radius: var(--border-radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 32px;
}

@media (max-width: 992px) {
  .product-detail-card {
    grid-template-columns: 1fr;
  }
}

.product-gallery-area {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.main-image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  max-width: 800px;
  background-color: #ffffff;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  display: flex;
  align-items: center;
  justify-content: center;
}

.p-main-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
  background: #ffffff;
}

.p-discount-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background-color: var(--primary-orange);
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: var(--border-radius-pill);
}

.p-wishlist-btn {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 44px;
  height: 44px;
  background-color: var(--bg-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  color: var(--text-dark);
  font-size: 18px;
}

.thumbnails-row {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
}

.thumbnails-row::-webkit-scrollbar {
  display: none;
}

.thumb-box {
  width: 76px;
  height: 76px;
  flex-shrink: 0;
  border-radius: 12px;
  border: 2px solid transparent;
  overflow: hidden;
  cursor: pointer;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  transition: var(--transition-fast);
}

.thumb-box.active, .thumb-box:hover {
  border-color: var(--primary-orange);
  box-shadow: 0 2px 8px rgba(255, 107, 0, 0.2);
}

.thumb-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
  background: #ffffff;
}

/* Product Summary Area */
.product-summary-area {
  display: flex;
  flex-direction: column;
}

.p-brand-tag {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary-orange);
  margin-bottom: 6px;
}

.p-main-title {
  font-size: 22px;
  font-weight: 900;
  color: var(--text-dark);
  margin-bottom: 12px;
  line-height: 1.4;
}

.p-meta-info {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 13px;
  color: var(--text-muted);
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.p-stock-status {
  color: var(--accent-mint-dark);
  font-weight: 700;
}

.p-divider {
  height: 1px;
  background-color: var(--border-color);
  margin: 16px 0;
}

.selector-group {
  margin-bottom: 18px;
}

.selector-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-navy);
  margin-bottom: 8px;
  display: block;
}

.color-options {
  display: flex;
  gap: 12px;
}

.color-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  border: 3px solid #ffffff;
  outline: 2px solid var(--border-color);
  transition: var(--transition-fast);
}

.color-circle.active, .color-circle:hover {
  outline-color: var(--primary-orange);
  transform: scale(1.1);
}

.size-guide-btn {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-mint-dark);
  background: var(--accent-mint-light);
  padding: 4px 12px;
  border-radius: 8px;
}

.size-options-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.buy-box-wrapper {
  background-color: var(--bg-slate-card);
  border-radius: var(--border-radius-md);
  padding: 20px;
  margin: 20px 0;
}

.p-price-display {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 16px;
}

.p-old-price {
  font-size: 14px;
  color: var(--text-light);
  text-decoration: line-through;
}

.p-final-price-wrap {
  font-size: 26px;
  font-weight: 900;
  color: var(--primary-orange);
}

.buy-actions-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.p-qty-stepper {
  display: flex;
  align-items: center;
  background: var(--bg-white);
  border: 1.5px solid var(--border-color);
  border-radius: 12px;
  padding: 4px;
}

.stepper-btn {
  width: 34px;
  height: 34px;
  font-size: 16px;
  font-weight: 800;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stepper-btn:hover { background-color: var(--bg-slate); }

.stepper-val {
  padding: 0 14px;
  font-weight: 800;
  font-size: 15px;
}

.p-add-cart-btn {
  flex: 1;
  background-color: var(--accent-mint);
  color: #ffffff;
  font-weight: 800;
  font-size: 15px;
  padding: 12px 20px;
  border-radius: 12px;
  box-shadow: var(--shadow-mint);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: var(--transition-fast);
}

.p-add-cart-btn:hover { background-color: var(--accent-mint-dark); }

.p-add-cart-btn.in-cart {
  background-color: #ef4444;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.35);
  gap: 10px;
}

.p-add-cart-btn.in-cart:hover { background-color: #dc2626; }

.p-buy-now-btn {
  background-color: var(--primary-orange);
  color: #ffffff;
  font-weight: 800;
  font-size: 14px;
  padding: 12px 20px;
  border-radius: 12px;
  box-shadow: var(--shadow-orange);
}

.p-perks-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: auto;
}

.perk-box {
  background-color: var(--bg-slate);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
}

.perk-box i {
  font-size: 20px;
  color: var(--primary-orange);
}

/* Tabs */
.product-tabs-container {
  background: var(--bg-white);
  border-radius: var(--border-radius-lg);
  padding: 28px;
  border: 1px solid var(--border-color);
  margin-bottom: 32px;
}

.tab-headers {
  display: flex;
  gap: 16px;
  border-bottom: 2px solid #f1f5f9;
  margin-bottom: 24px;
}

.p-tab-btn {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-muted);
  padding: 12px 8px;
  border-bottom: 3px solid transparent;
  transition: var(--transition-fast);
}

.p-tab-btn.active {
  color: var(--primary-orange);
  border-bottom-color: var(--primary-orange);
}

.p-tab-content { display: none; }
.p-tab-content.active { display: block; }

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

.specs-table th, .specs-table td {
  padding: 14px 18px;
  text-align: right;
  border-bottom: 1px solid var(--border-color);
  font-size: 14px;
}

.specs-table th {
  background-color: var(--bg-slate);
  color: var(--text-navy);
  font-weight: 700;
  width: 30%;
}

.reviews-wrapper {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 32px;
}

@media (max-width: 768px) {
  .reviews-wrapper { grid-template-columns: 1fr; }
}

.review-item {
  background: var(--bg-slate);
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 16px;
}

.review-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

.review-user {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-mint);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

.review-date {
  font-size: 11px;
  color: var(--text-light);
  display: block;
}

.add-review-form {
  background: var(--bg-slate-card);
  border-radius: 16px;
  padding: 20px;
}

/* Star Rating Picker */
.star-rating-picker {
  display: flex;
  flex-direction: row-reverse;
  gap: 4px;
  margin-top: 6px;
}
.star-rating-picker input[type="radio"] {
  display: none;
}
.star-rating-picker label {
  cursor: pointer;
  font-size: 28px;
  color: #cbd5e1;
  transition: color 0.15s, transform 0.1s;
  padding: 2px;
}
.star-rating-picker label:hover,
.star-rating-picker label:hover ~ label,
.star-rating-picker input[type="radio"]:checked ~ label {
  color: #f59e0b;
}
.star-rating-picker label:hover {
  transform: scale(1.15);
}
.star-rating-picker input[type="radio"]:checked + label {
  color: #f59e0b;
}

/* ==========================================================================
   Checkout Page Styles
   ========================================================================== */
.checkout-steps-bar {
  display: flex;
  align-items: center;
  gap: 14px;
}

.step-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
}

.step-item.active {
  color: var(--primary-orange);
}

.step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-slate);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.step-item.active .step-num {
  background: var(--primary-orange);
  color: #ffffff;
}

.step-line {
  width: 30px;
  height: 2px;
  background: var(--border-color);
}

.checkout-section {
  padding: 32px 0 60px;
}

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

@media (max-width: 992px) {
  .checkout-grid { grid-template-columns: 1fr; }
}

.checkout-card-box {
  background: var(--bg-white);
  border-radius: var(--border-radius-lg);
  padding: 28px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.box-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 900;
  margin-bottom: 20px;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 12px;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.shipping-options-list, .payment-options-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.shipping-option-card, .payment-option-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-radius: 14px;
  border: 1.5px solid var(--border-color);
  background: var(--bg-slate);
  cursor: pointer;
  transition: var(--transition-fast);
}

.shipping-option-card.active, .payment-option-card.active {
  border-color: var(--primary-orange);
  background: var(--primary-orange-light);
}

.shipping-info, .payment-info { flex: 1; }

.shipping-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}

.shipping-badge {
  font-size: 11px;
  background: var(--accent-mint-light);
  color: var(--accent-mint-dark);
  padding: 2px 8px;
  border-radius: 6px;
  font-weight: 700;
}

.shipping-desc, .payment-info p {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.shipping-icon, .payment-icon {
  font-size: 24px;
  color: var(--primary-orange);
}

.submit-order-btn {
  width: 100%;
  background: var(--accent-mint);
  color: #ffffff;
  font-weight: 900;
  font-size: 17px;
  padding: 16px;
  border-radius: 16px;
  box-shadow: var(--shadow-mint);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
  transition: var(--transition-fast);
}

.submit-order-btn:hover { background-color: var(--accent-mint-dark); }

/* Summary Sidebar */
.summary-card {
  background: var(--bg-white);
  border-radius: var(--border-radius-lg);
  padding: 24px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 100px;
}

.summary-title {
  font-size: 16px;
  font-weight: 900;
  margin-bottom: 16px;
}

.checkout-cart-items {
  max-height: 240px;
  overflow-y: auto;
  margin-bottom: 16px;
}

.promo-code-box {
  background: var(--bg-slate);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 16px;
}

.promo-input-wrap {
  display: flex;
  gap: 8px;
}

.apply-promo-btn {
  background: var(--text-navy);
  color: #ffffff;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
}

.promo-msg {
  font-size: 12px;
  margin-top: 6px;
  font-weight: 700;
}

.summary-divider {
  height: 1px;
  background: var(--border-color);
  margin: 14px 0;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  margin-bottom: 10px;
  color: var(--text-muted);
}

.summary-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 17px;
  font-weight: 900;
  color: var(--text-dark);
}

.total-price {
  color: var(--primary-orange);
  font-size: 20px;
}

/* Order Success View */
.order-success-card {
  background: var(--bg-white);
  border-radius: var(--border-radius-lg);
  padding: 48px 32px;
  box-shadow: var(--shadow-lg);
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
}

.success-icon-box {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--accent-mint-light);
  color: var(--accent-mint);
  font-size: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.success-title {
  font-size: 24px;
  font-weight: 900;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.success-desc {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.track-code-box {
  background: var(--primary-orange-light);
  border: 2px dashed var(--primary-orange);
  border-radius: 14px;
  padding: 16px 24px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  color: var(--primary-orange);
  margin-bottom: 32px;
}

.receipt-details-table {
  background: var(--bg-slate);
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 32px;
  text-align: right;
}

.receipt-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-color);
  font-size: 14px;
}

.receipt-row:last-child { border-bottom: none; }

.receipt-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
}


/* ==========================================================================
   Account Dropdown Menu
   ========================================================================== */
.account-btn-wrap {
  position: relative;
}

.account-dropdown {
  position: fixed;
  min-width: 220px;
  background: var(--bg-white);
  border-radius: var(--border-radius-md);
  box-shadow: 0 16px 48px rgba(15,23,42,0.18);
  border: 1px solid var(--border-color);
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.2s cubic-bezier(0.4,0,0.2,1);
  overflow: hidden;
}

.account-dropdown.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.account-dropdown-header {
  padding: 14px 16px;
  background: linear-gradient(135deg, var(--primary-orange) 0%, #e66d00 100%);
  color: white;
}
.account-dropdown-header .user-name {
  font-size: 14px;
  font-weight: 800;
  display: block;
}
.account-dropdown-header .user-phone {
  font-size: 12px;
  opacity: 0.85;
  direction: ltr;
  display: block;
  margin-top: 2px;
}

.account-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-navy);
  text-decoration: none;
  transition: var(--transition-fast);
  cursor: pointer;
  border: none;
  background: none;
  width: 100%;
  font-family: inherit;
}
.account-dropdown-item:hover {
  background: var(--bg-slate);
  color: var(--primary-orange);
}
.account-dropdown-item i {
  width: 16px;
  text-align: center;
  color: var(--text-muted);
}
.account-dropdown-item:hover i { color: var(--primary-orange); }
.account-dropdown-item.logout-item { color: #ef4444; }
.account-dropdown-item.logout-item i { color: #ef4444; }
.account-dropdown-item.logout-item:hover { background: #fef2f2; }
.account-dropdown-divider {
  height: 1px;
  background: var(--border-color);
  margin: 4px 0;
}

/* Logged-in indicator on account button */
.account-btn.logged-in {
  background-color: #ffffff;
  border-color: #cbd5e1;
  color: var(--text-dark);
  font-weight: 800;
  padding: 0 16px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.account-btn.logged-in i {
  color: #0f172a !important;
}

.account-btn.logged-in #userAccountLabel {
  color: #0f172a !important;
  font-weight: 800 !important;
}

.account-btn.logged-in:hover {
  background-color: #ffffff;
  border-color: var(--primary-orange);
  color: #0f172a;
  box-shadow: 0 4px 12px rgba(96, 165, 250, 0.15);
}

.account-btn.logged-in::after {
  display: none !important;
}

/* FOOTER TRUST BADGES & SOCIAL LINKS */
.footer-social-icons {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}

.footer-social-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: all 0.2s ease;
  text-decoration: none;
}

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

.footer-trust-row {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 30px;
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.footer-trust-title {
  font-size: 13px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.8);
}

.footer-trust-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.trust-badge-item {
  background: #ffffff;
  border-radius: 14px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.25s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.trust-badge-item:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 8px 22px rgba(96, 165, 250, 0.35);
}

.trust-badge-item img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.trust-badge-name {
  font-size: 12px;
  font-weight: 800;
  color: var(--text-dark);
}

/* ==========================================================================
   Comprehensive Mobile & Tablet Responsiveness System (TYIAM Kids Store)
   ========================================================================== */

/* Mobile Header Hamburger Button */
.mobile-menu-btn {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background-color: var(--bg-slate);
  color: var(--text-dark);
  font-size: 20px;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  transition: var(--transition-fast);
}

.mobile-menu-btn:hover, .mobile-menu-btn:active {
  background-color: var(--primary-orange-light);
  color: var(--primary-orange);
}

/* Mobile Off-Canvas Navigation Drawer */
.mobile-drawer-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(5px);
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-drawer-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: -320px;
  width: 300px;
  max-width: 85vw;
  height: 100%;
  background-color: var(--bg-white);
  box-shadow: -10px 0 35px rgba(0, 0, 0, 0.2);
  z-index: 10001;
  display: flex;
  flex-direction: column;
  transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.mobile-drawer-overlay.active .mobile-nav-drawer {
  right: 0;
}

.mobile-drawer-header {
  padding: 18px 20px;
  background: linear-gradient(135deg, var(--primary-orange) 0%, #e66d00 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-drawer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 18px;
}

.mobile-drawer-brand i {
  font-size: 22px;
}

.mobile-drawer-close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
}

.mobile-drawer-body {
  padding: 16px;
  overflow-y: auto;
  flex: 1;
}

.mobile-drawer-section-title {
  font-size: 12px;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  margin: 16px 8px 8px;
  letter-spacing: 0.5px;
}

.mobile-drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-drawer-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--border-radius-sm);
  color: var(--text-navy);
  font-weight: 700;
  font-size: 14px;
  transition: var(--transition-fast);
}

.mobile-drawer-link:hover, .mobile-drawer-link.active {
  background-color: var(--primary-orange-light);
  color: var(--primary-orange);
}

.mobile-drawer-link i {
  width: 20px;
  text-align: center;
  font-size: 16px;
}

.mobile-drawer-divider {
  height: 1px;
  background-color: var(--border-color);
  margin: 12px 0;
}

.mobile-drawer-contact {
  background-color: var(--bg-slate);
  border-radius: var(--border-radius-md);
  padding: 14px;
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
}

/* Mobile Bottom Navigation Bar (App Style) */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.07);
  z-index: 9990;
  justify-content: space-around;
  align-items: center;
  padding: 0 4px;
}

.mobile-bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  height: 100%;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 700;
  text-decoration: none;
  position: relative;
  transition: var(--transition-fast);
}

.mobile-bottom-nav-item i {
  font-size: 19px;
  margin-bottom: 3px;
  transition: transform 0.2s ease;
}

.mobile-bottom-nav-item.active, .mobile-bottom-nav-item:hover {
  color: var(--primary-orange);
}

.mobile-bottom-nav-item.active i {
  transform: translateY(-2px) scale(1.1);
}

.mobile-bottom-nav-item .badge {
  top: 4px;
  left: 50%;
  margin-left: 6px;
  width: 17px;
  height: 17px;
  font-size: 10px;
}

/* Mobile Sticky Add-To-Cart Bar for Single Product Page (Rich Modern Design) */
.mobile-sticky-buy-bar {
  display: none;
  position: fixed;
  bottom: 60px;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 10px 14px;
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.08);
  border-top: 1px solid rgba(226, 232, 240, 0.9);
  z-index: 9980;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  animation: stickyBarPop 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.sticky-product-info {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
  flex: 1;
}

.sticky-thumb-wrap {
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: 10px;
  overflow: hidden;
  background: #f8fafc;
  border: 1px solid #edf2f7;
}

.sticky-product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sticky-title-wrap {
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.sticky-product-title {
  font-size: 12px;
  font-weight: 800;
  color: var(--text-navy);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
  line-height: 1.3;
}

.sticky-price-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.sticky-price-val {
  font-size: 13.5px;
  font-weight: 900;
  color: var(--primary-orange);
  line-height: 1.1;
}

.mobile-sticky-buy-bar .sticky-buy-btn {
  height: 40px;
  padding: 0 14px;
  min-width: 120px;
  max-width: 150px;
  background: var(--accent-mint);
  color: #ffffff;
  font-weight: 800;
  font-size: 12.5px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
  transition: all 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.mobile-sticky-buy-bar .sticky-buy-btn.in-cart {
  background-color: #ef4444 !important;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3) !important;
}

/* Responsive Media Queries */

/* Tablet Screens (max-width: 992px) */
@media (max-width: 992px) {
  .top-bar-links {
    display: none;
  }
  .top-bar-content {
    justify-content: center;
    font-size: 12px;
  }

  .main-header {
    padding: 12px 0;
  }
  .header-wrapper {
    gap: 14px;
  }

  .main-nav {
    display: none; /* Replaced by Mobile Drawer & Bottom Nav on tablet/mobile */
  }

  .mobile-menu-btn {
    display: flex;
  }

  .mobile-bottom-nav {
    display: flex;
  }

  body {
    padding-bottom: 64px; /* Space for fixed bottom navigation */
  }

  /* Search Container Mobile Adjustments */
  .search-container {
    max-width: none;
  }
  .search-input {
    padding: 8px 12px;
    font-size: 13px;
  }
  .search-btn {
    width: 34px;
    height: 34px;
  }

  /* Hero Section */
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .hero-slider-card {
    min-height: 280px;
  }
  .hero-slide {
    padding: 24px;
  }
  .hero-slide-overlay {
    padding: 24px;
  }
  .hero-title {
    font-size: 24px;
  }
  .hero-desc {
    font-size: 14px;
    margin-bottom: 16px;
  }
  .hero-cta {
    padding: 10px 20px;
    font-size: 13px;
  }

  .side-banner-card {
    padding: 14px;
  }

  /* Flash Deals Banner */
  .flash-deals-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .flash-timer-wrap {
    width: 100%;
    justify-content: space-between;
  }
  .flash-see-all {
    align-self: flex-end;
  }

  /* Footer Grid */
  .footer-columns-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }
  .footer-features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  /* Account Text Hide on Mobile Header */
  #userAccountLabel {
    display: none;
  }
  .account-btn {
    padding: 8px 12px;
  }
}

/* Mobile Screens (max-width: 768px) */
@media (max-width: 768px) {
  .blog-cards-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .blog-card-thumb { height: 180px; }
  .header-actions {
    gap: 8px;
  }
  .icon-btn {
    width: 38px;
    height: 38px;
    font-size: 16px;
  }
  .brand-logo .logo-title {
    font-size: 20px;
  }
  .logo-icon-box {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }

  /* Product Showcase Grid -> 2 COLUMNS ON MOBILE */
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .product-card {
    border-radius: var(--border-radius-md);
  }
  .product-card-img-wrap {
    height: 180px;
  }
  .product-card-title {
    font-size: 13px;
    line-height: 1.4;
    height: 36px;
    overflow: hidden;
  }
  .product-card-body {
    padding: 12px;
  }
  .product-card-prices {
    margin: 8px 0;
  }
  .current-price-val {
    font-size: 15px;
  }
  .add-cart-btn-sm {
    padding: 8px 10px;
    font-size: 12px;
  }

  /* Scrollable Filter Tabs on Mobile */
  .filter-tabs {
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 6px;
    width: 100%;
    white-space: nowrap;
    gap: 8px;
  }
  .filter-tabs::-webkit-scrollbar {
    display: none;
  }
  .tab-btn {
    padding: 8px 16px;
    font-size: 13px;
    flex-shrink: 0;
  }

  /* Section Header Layout */
  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  /* Circular Categories Horizontal Scroll */
  .categories-vertical-list {
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
    gap: 10px;
    padding-bottom: 8px;
  }
  .categories-vertical-list::-webkit-scrollbar {
    display: none;
  }
  .sidebar-category-item {
    flex-shrink: 0;
    white-space: nowrap;
    padding: 8px 16px;
  }

  /* Single Product Page Responsive - Sleek Modern Compact Mobile Design */
  .product-detail-card {
    grid-template-columns: 1fr;
    padding: 12px;
    gap: 14px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
  }

  .product-gallery-area {
    width: 100%;
    max-width: 100%;
    align-items: center;
    box-sizing: border-box;
  }

  .main-image-wrapper {
    aspect-ratio: 1 / 1;
    height: auto;
    width: 100%;
    max-width: 240px;
    margin: 0 auto;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  }

  .p-main-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 6px;
    background: #ffffff;
  }

  .thumbnails-row {
    display: flex;
    gap: 8px;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 4px 0;
  }

  .thumb-box {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    border-radius: 10px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
  }

  .thumb-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 2px;
  }

  .product-summary-area {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
  }

  .p-main-title {
    font-size: 16px;
    line-height: 1.5;
    word-break: break-word;
  }

  .buy-box-wrapper {
    padding: 12px;
    border-radius: 14px;
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    margin: 12px 0;
    width: 100%;
    box-sizing: border-box;
  }

  .in-cart-banner {
    padding: 8px 12px;
    font-size: 11.5px;
    border-radius: 10px;
    border: 1px dashed rgba(16, 185, 129, 0.4);
    background: rgba(16, 185, 129, 0.07);
    margin-bottom: 12px;
    line-height: 1.4;
  }

  .p-price-display {
    margin-bottom: 10px;
  }

  .p-final-price-wrap {
    font-size: 20px;
  }

  .buy-actions-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    width: 100%;
    box-sizing: border-box;
  }

  .p-qty-stepper {
    width: 88px;
    height: 38px;
    padding: 2px;
    border-radius: 10px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    justify-content: space-between;
    box-sizing: border-box;
    flex-shrink: 0;
  }

  .p-qty-stepper .stepper-btn {
    width: 26px;
    height: 26px;
    font-size: 11px;
    border-radius: 6px;
  }

  .p-qty-stepper .stepper-val {
    padding: 0 2px;
    font-size: 13px;
    font-weight: 800;
  }

  .p-add-cart-btn {
    flex: 1;
    min-width: 0;
    height: 38px;
    padding: 0 8px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 10px;
    justify-content: center;
    white-space: nowrap;
    box-sizing: border-box;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.2);
  }

  .p-add-cart-btn.in-cart {
    background-color: #ef4444 !important;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.25) !important;
  }

  .p-buy-now-btn {
    width: 100%;
    height: 36px;
    padding: 0 8px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 10px;
    margin-top: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    box-shadow: 0 2px 8px rgba(96, 165, 250, 0.2);
  }

  .p-perks-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .size-options-grid {
    gap: 8px;
  }
  .size-pill {
    padding: 6px 12px;
    font-size: 11.5px;
    border-radius: 10px;
  }
  .color-options {
    gap: 10px;
  }
  .color-circle {
    width: 30px;
    height: 30px;
  }

  /* Related Products Horizontal Scroll Row on Mobile */
  .related-products-section .products-grid {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory !important;
    -webkit-overflow-scrolling: touch !important;
    gap: 12px !important;
    padding-bottom: 12px !important;
    scrollbar-width: none !important;
  }
  .related-products-section .products-grid::-webkit-scrollbar {
    display: none !important;
  }
  .related-products-section .product-card {
    flex: 0 0 165px !important;
    width: 165px !important;
    scroll-snap-align: start !important;
  }

  /* Tables Mobile Responsive Scroll Wrapper */
  .specs-table, .data-table, .receipt-details-table {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* Checkout Steps Compact */
  .checkout-steps-bar {
    gap: 6px;
  }
  .step-item {
    font-size: 11px;
  }
  .step-line {
    width: 12px;
  }
  .box-title {
    font-size: 14px;
  }

  /* Cart Drawer Mobile */
  .cart-drawer {
    width: 100%;
    max-width: 100%;
  }

  /* Quick View & Auth Modal Responsive */
  .quick-view-modal {
    grid-template-columns: 1fr;
    max-height: 90vh;
    overflow-y: auto;
    padding: 20px;
  }
  .auth-modal-card {
    padding: 20px 16px;
    max-width: 92vw;
  }
  .modal-image-box {
    height: 220px;
  }
}

/* Small Mobile Screens (max-width: 480px) */
@media (max-width: 480px) {
  .blog-cards-grid { grid-template-columns: 1fr; }
  .blog-card-thumb { height: 200px; }
  .logo-text {
    display: none; /* Show icon only for compact header on very narrow screens */
  }

  .footer-columns-grid {
    grid-template-columns: 1fr;
  }
  .footer-features-grid {
    grid-template-columns: 1fr;
  }

  .hero-title {
    font-size: 19px;
  }
  .hero-desc {
    font-size: 12px;
  }

  /* Compact Modern Product Card Grid on Mobile */
  .related-products-section {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px dashed var(--border-color);
  }
  .related-products-section .section-title {
    font-size: 16px;
    font-weight: 800;
  }
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .product-card {
    border-radius: 16px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    background: #ffffff;
  }
  .product-thumb {
    height: 170px;
    background-color: #f8fafc;
  }
  .product-details {
    padding: 10px 12px;
  }
  .product-category-tag {
    font-size: 10.5px;
    margin-bottom: 4px;
  }
  .product-title {
    font-size: 12.5px;
    font-weight: 800;
    line-height: 1.4;
    height: 35px;
    margin-bottom: 8px;
  }
  .product-price-row {
    align-items: center;
  }
  .current-price .price-num {
    font-size: 14px;
    font-weight: 900;
  }
  .toman-currency {
    font-size: 9.5px;
  }

}

/* Micro Screens (max-width: 360px) */
@media (max-width: 360px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .product-thumb {
    height: 145px;
  }
  .product-title {
    font-size: 11.5px;
    height: 32px;
  }
}

/* ==========================================================================
   Bottom Triple Banners Grid (بنرهای سه تایی پایین صفحه)
   ========================================================================== */
.bottom-banners-section {
  padding: 24px 0 40px 0;
}

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

.bottom-banner-card {
  position: relative;
  display: block;
  height: 185px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(226, 232, 240, 0.8);
  text-decoration: none;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  background: #0f172a;
}

.bottom-banner-card:hover {
  transform: translateY(-5px) scale(1.01);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.16);
}

.bottom-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

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

.bottom-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(270deg, rgba(15, 23, 42, 0.85) 0%, rgba(15, 23, 42, 0.4) 50%, rgba(15, 23, 42, 0.05) 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px;
  color: #ffffff;
  pointer-events: none;
}

.bottom-banner-title {
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 6px;
  line-height: 1.4;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

/* Middle Category Row Banner Section */
.middle-banner-section {
  margin: 24px 0;
}

.middle-banners-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.middle-banner-card {
  position: relative;
  display: block;
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(226, 232, 240, 0.9);
  text-decoration: none;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  background: #0f172a;
}

.middle-banner-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.15);
}

.middle-banner-img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.middle-banner-card:hover .middle-banner-img {
  transform: scale(1.03);
}

.middle-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.8) 0%, rgba(15, 23, 42, 0.35) 55%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 32px;
  color: #ffffff;
  pointer-events: none;
}

.middle-banner-title {
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 6px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.35);
}

.middle-banner-subtitle {
  font-size: 13.5px;
  color: #e2e8f0;
  margin: 0;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

@media (max-width: 768px) {
  .middle-banner-img {
    height: 125px;
  }
  .middle-banner-overlay {
    padding: 0 16px;
  }
  .middle-banner-title {
    font-size: 15px;
  }
  .middle-banner-subtitle {
    font-size: 11.5px;
  }
}

.bottom-banner-subtitle {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 12px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.bottom-banner-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  width: fit-content;
  transition: all 0.25s ease;
}

.bottom-banner-card:hover .bottom-banner-btn {
  background: #ffffff;
  color: #0f172a;
  border-color: #ffffff;
}

@media (max-width: 992px) {
  .bottom-banners-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .bottom-banners-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .bottom-banner-card {
    height: 150px;
  }
}

/* ==========================================================================
   Mobile Professional Compact Add-To-Cart (+) Button (Digikala Style)
   ========================================================================== */
@media (max-width: 768px) {
  .product-price-row, .flash-price-action-row {
    align-items: flex-end !important;
    gap: 4px !important;
  }

  .price-box, .flash-price-wrap {
    min-width: 0 !important;
    flex-shrink: 1 !important;
  }

  .flash-final-price .price-num,
  .current-price .price-num {
    font-size: 13px !important;
    white-space: nowrap !important;
  }

  .toman-currency, .toman {
    font-size: 9px !important;
    margin-top: 1px !important;
  }

  .original-price, .flash-original-price {
    font-size: 10px !important;
  }

  .card-action-wrap, .flash-action-wrap {
    width: auto !important;
    display: flex !important;
    justify-content: flex-end !important;
    flex-shrink: 0 !important;
  }

  .add-cart-btn {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    padding: 0 !important;
    border-radius: 8px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background-color: var(--accent-mint-light) !important;
    color: var(--accent-mint-dark) !important;
    border: 1px solid rgba(0, 230, 118, 0.3) !important;
    font-size: 15px !important;
  }

  .add-cart-btn .btn-text {
    display: none !important;
  }

  .add-cart-btn i {
    font-size: 15px !important;
    margin: 0 !important;
  }

  .card-cart-stepper {
    height: 28px !important;
    padding: 2px 3px !important;
    gap: 2px !important;
    border-radius: 7px !important;
    box-shadow: none !important;
    max-width: 100% !important;
  }

  .card-stepper-btn {
    width: 22px !important;
    height: 22px !important;
    min-width: 22px !important;
    font-size: 10px !important;
    border-radius: 5px !important;
  }

  .card-stepper-count {
    font-size: 11px !important;
    min-width: 14px !important;
    padding: 0 1px !important;
  }

  /* Mobile Header Clean 2-Row Layout */
  .main-header {
    padding: 8px 0 10px 0;
    margin-top: 0 !important;
    top: 0;
  }

  .header-wrapper {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px 0 !important;
  }

  .brand-logo {
    order: 1;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .brand-logo .logo-title {
    font-size: 18px;
  }

  .brand-logo .logo-subtitle {
    display: none;
  }

  .logo-icon-box {
    width: 36px;
    height: 36px;
    font-size: 18px;
  }

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

  .header-actions #wishlistBtn {
    display: none;
  }

  .account-btn {
    padding: 6px 10px;
    font-size: 12px;
    height: 36px;
  }

  .icon-btn {
    width: 36px;
    height: 36px;
    font-size: 15px;
  }

  /* Full Width Search Bar Below Header Row */
  .search-container {
    order: 10 !important;
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    margin-top: 6px !important;
  }

  .search-box {
    width: 100% !important;
    height: 42px !important;
    background-color: #f1f5f9 !important;
    border-radius: 12px !important;
    padding: 2px 4px 2px 12px !important;
    border: 1px solid #e2e8f0 !important;
    display: flex !important;
    align-items: center !important;
  }

  .search-input {
    font-size: 13px !important;
    padding: 8px 10px !important;
    width: 100% !important;
  }

  .search-btn {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    flex-shrink: 0 !important;
  }

  /* Mobile Checkout Page Responsiveness */
  .checkout-section {
    padding: 16px 0 40px;
  }

  .checkout-grid {
    grid-template-columns: 1fr !important;
    gap: 20px;
  }

  .checkout-card-box {
    padding: 16px 14px !important;
    border-radius: 14px !important;
  }

  .form-row-2 {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .box-title {
    font-size: 14px !important;
    margin-bottom: 14px !important;
    padding-bottom: 8px !important;
  }

  .box-title h3 {
    font-size: 14px !important;
  }

  .shipping-option-card, .payment-option-card {
    padding: 12px 14px !important;
    gap: 10px !important;
    border-radius: 12px !important;
  }

  .shipping-title strong, .payment-info strong {
    font-size: 12px !important;
  }

  .shipping-desc, .payment-info p {
    font-size: 11px !important;
  }

  .shipping-icon, .payment-icon {
    font-size: 18px !important;
  }

  .checkout-steps-bar {
    gap: 4px !important;
  }

  .step-item {
    font-size: 10px !important;
    gap: 4px !important;
  }

  .step-num {
    width: 22px !important;
    height: 22px !important;
    font-size: 10px !important;
  }

  .step-line {
    width: 10px !important;
  }

  .summary-card {
    padding: 16px 14px !important;
    border-radius: 14px !important;
  }

  .submit-order-btn {
    padding: 14px !important;
    font-size: 14px !important;
  }
}

/* See All Products Button Style */
.see-all-products-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--primary-orange-light);
  color: var(--primary-orange);
  font-weight: 800;
  font-size: 13px;
  padding: 8px 16px;
  border-radius: 20px;
  text-decoration: none;
  transition: all 0.2s ease;
  border: 1px solid rgba(96, 165, 250, 0.2);
}

.see-all-products-btn:hover {
  background-color: var(--primary-orange);
  color: #ffffff;
  transform: translateX(-3px);
  box-shadow: 0 4px 12px rgba(96, 165, 250, 0.25);
}

.see-all-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--primary-orange-light);
  color: var(--primary-orange);
  font-weight: 800;
  font-size: 13px;
  padding: 8px 16px;
  border-radius: 20px;
  text-decoration: none;
  transition: all 0.2s ease;
  border: 1px solid rgba(96, 165, 250, 0.2);
}

.see-all-link:hover {
  background-color: var(--primary-orange);
  color: #ffffff;
  transform: translateX(-3px);
  box-shadow: 0 4px 12px rgba(96, 165, 250, 0.25);
}

/* ===== BLOG SECTION ===== */
.blog-section {
  padding: 60px 0 40px;
  background: var(--bg-body);
}

.blog-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.blog-card {
  background: var(--bg-white);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.blog-card-thumb {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.blog-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.blog-card:hover .blog-card-thumb img {
  transform: scale(1.08);
}

.blog-card-date-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(8px);
  color: #fff;
  padding: 6px 14px;
  border-radius: var(--border-radius-sm);
  font-size: 12px;
  font-weight: 600;
}

.blog-card-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.blog-card-tag {
  font-size: 11px;
  color: var(--primary-orange);
  background: var(--primary-orange-light);
  padding: 3px 10px;
  border-radius: 20px;
  font-weight: 600;
}

.blog-card-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 10px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-title a {
  color: inherit;
  text-decoration: none;
}

.blog-card-title a:hover {
  color: var(--primary-orange);
}

.blog-card-summary {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.blog-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--border-color);
}

.blog-card-author {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
}

.blog-card-author i {
  color: var(--accent-mint);
}

.blog-card-readmore {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary-orange);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.3s ease;
}

.blog-card-readmore:hover {
  gap: 8px;
}

.blog-card-views {
  font-size: 11px;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ===== BLOG PAGE STYLES ===== */
.blog-page-main {
  padding: 40px 0 60px;
  min-height: 60vh;
}

.blog-page-header {
  text-align: center;
  margin-bottom: 40px;
}

.blog-page-header h1 {
  font-size: 32px;
  font-weight: 900;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.blog-page-header p {
  font-size: 15px;
  color: var(--text-muted);
}

/* Single Blog Post */
.blog-single {
  max-width: 820px;
  margin: 0 auto;
  background: var(--bg-white);
  border-radius: var(--border-radius-lg);
  padding: 40px;
  border: 1px solid var(--border-color);
}

.blog-single-header {
  margin-bottom: 30px;
}

.blog-single-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 16px;
  font-size: 13px;
  color: var(--text-muted);
}

.blog-single-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.blog-single-meta i {
  color: var(--primary-orange);
}

.blog-single-title {
  font-size: 28px;
  font-weight: 900;
  color: var(--text-dark);
  line-height: 1.6;
  margin-bottom: 16px;
}

.blog-single-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.blog-single-image {
  margin-bottom: 30px;
  border-radius: var(--border-radius-md);
  overflow: hidden;
}

.blog-single-image img {
  width: 100%;
  max-height: 450px;
  object-fit: cover;
  border-radius: var(--border-radius-md);
}

.blog-single-content {
  font-size: 15px;
  line-height: 2;
  color: var(--text-navy);
}

.blog-single-content h2,
.blog-single-content h3,
.blog-single-content h4 {
  margin-top: 28px;
  margin-bottom: 12px;
  color: var(--text-dark);
}

.blog-single-content img {
  max-width: 100%;
  border-radius: 12px;
  margin: 16px 0;
}

.blog-single-content p {
  margin-bottom: 16px;
}

.blog-single-content ul,
.blog-single-content ol {
  padding-right: 24px;
  margin-bottom: 16px;
}

.blog-single-footer {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}

.blog-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary-orange);
  font-weight: 700;
  text-decoration: none;
  font-size: 14px;
  transition: gap 0.3s;
}

.blog-back-link:hover {
  gap: 12px;
}

/* Blog Breadcrumb Styles */
.blog-breadcrumb {
  background: #f8fafc;
  padding: 12px 20px;
  border-radius: 12px;
  margin-bottom: 24px;
  font-size: 13px;
  color: #64748b;
  display: flex;
  align-items: center;
}

.blog-breadcrumb ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.blog-breadcrumb li {
  display: flex;
  align-items: center;
}

.blog-breadcrumb li:not(:last-child)::after {
  content: '/';
  margin-right: 8px;
  color: #cbd5e1;
  font-size: 14px;
}

.blog-breadcrumb li a {
  color: var(--primary-orange);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.blog-breadcrumb li a:hover {
  color: var(--primary-orange-dark, #d85000);
}

.blog-breadcrumb li.active {
  color: var(--text-dark);
  font-weight: 700;
}

.mobile-drawer-contact {
  display: none !important;
}

/* ==========================================================================
   Mobile Professional Blog Section Styling (Digikala / Modern App Style)
   ========================================================================== */
@media (max-width: 768px) {
  .blog-section {
    padding: 30px 0 24px !important;
    overflow: hidden !important;
  }

  /* Homepage blog section: horizontal touch carousel */
  .blog-section .blog-cards-grid {
    display: flex !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory !important;
    -webkit-overflow-scrolling: touch !important;
    gap: 14px !important;
    padding: 6px 15px 16px !important;
    margin-left: -15px !important;
    margin-right: -15px !important;
    grid-template-columns: none !important;
    scrollbar-width: none !important;
  }

  .blog-section .blog-cards-grid::-webkit-scrollbar {
    display: none !important;
  }

  .blog-section .blog-card {
    flex: 0 0 270px !important;
    width: 270px !important;
    min-width: 270px !important;
    scroll-snap-align: start !important;
    border-radius: 16px !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06) !important;
    border: 1px solid #e2e8f0 !important;
    background: #ffffff !important;
  }

  .blog-card-thumb {
    height: 145px !important;
    border-top-left-radius: 16px !important;
    border-top-right-radius: 16px !important;
  }

  .blog-card-thumb img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }

  .blog-card-date-badge {
    top: 10px !important;
    right: 10px !important;
    padding: 4px 10px !important;
    font-size: 11px !important;
    border-radius: 8px !important;
    background: rgba(15, 23, 42, 0.75) !important;
    backdrop-filter: blur(4px) !important;
  }

  .blog-card-body {
    padding: 14px 16px !important;
  }

  .blog-card-tags {
    margin-bottom: 8px !important;
    gap: 4px !important;
  }

  .blog-card-tag {
    font-size: 10px !important;
    padding: 2px 8px !important;
    border-radius: 12px !important;
  }

  .blog-card-title {
    font-size: 14px !important;
    font-weight: 800 !important;
    line-height: 1.5 !important;
    margin-bottom: 6px !important;
    height: 42px !important;
  }

  .blog-card-summary {
    font-size: 12px !important;
    color: var(--text-muted) !important;
    line-height: 1.6 !important;
    margin-bottom: 12px !important;
    height: 38px !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
  }

  .blog-card-footer {
    padding-top: 10px !important;
    font-size: 11px !important;
  }

  /* Catalog page listing (blog.html): 1 column clean cards */
  #blogPageGrid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 18px !important;
  }

  #blogPageGrid .blog-card {
    width: 100% !important;
    flex: none !important;
  }

  #blogPageGrid .blog-card-thumb {
    height: 180px !important;
  }

  /* Mobile Professional Hero Slider (Digikala Style Edge-to-Edge Banner) */
  .hero-section {
    padding: 10px 0 12px 0 !important;
  }

  .hero-slider-card {
    min-height: 0 !important;
    max-height: none !important;
    height: auto !important;
    aspect-ratio: 2.2 / 1 !important;
    border-radius: 16px !important;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.08) !important;
    background: transparent !important;
    overflow: hidden !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .hero-slides-wrapper {
    min-height: 0 !important;
    height: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .hero-slide {
    width: 100% !important;
    height: 100% !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .hero-slide.active {
    position: absolute !important;
  }

  .hero-banner-img {
    width: 100% !important;
    height: 100% !important;
    max-height: none !important;
    object-fit: cover !important;
    object-position: center !important;
    border-radius: 16px !important;
    display: block !important;
  }

  .slider-arrow {
    display: none !important;
  }

  .slider-dots {
    bottom: 8px !important;
    padding: 4px 10px !important;
    gap: 5px !important;
    border-radius: 12px !important;
    background: rgba(15, 23, 42, 0.45) !important;
    backdrop-filter: blur(6px) !important;
    -webkit-backdrop-filter: blur(6px) !important;
    border: none !important;
  }

  .slider-dot {
    width: 6px !important;
    height: 6px !important;
  }

  .slider-dot.active {
    width: 16px !important;
    border-radius: 8px !important;
    background: var(--primary-orange) !important;
  }
}

/* ==========================================================================
   High-End Custom Dropdown Component (Provinces & Cities)
   ========================================================================== */
.custom-dropdown-container {
  position: relative;
  width: 100%;
}

.custom-dropdown-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dark);
  cursor: pointer;
  width: 100%;
  transition: all 0.25s ease;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
  user-select: none;
}

.custom-dropdown-trigger:hover {
  border-color: var(--primary-orange);
  background-color: #fffaf7;
}

.custom-dropdown-container.open .custom-dropdown-trigger {
  border-color: var(--primary-orange);
  box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.15);
  background-color: #ffffff;
}

.custom-dropdown-trigger .arrow-icon {
  font-size: 13px;
  color: var(--primary-orange);
  transition: transform 0.25s ease;
}

.custom-dropdown-container.open .custom-dropdown-trigger .arrow-icon {
  transform: rotate(180deg);
}

.custom-dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  left: 0;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.16);
  z-index: 150;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.2s ease;
  padding: 10px;
}

.custom-dropdown-container.open .custom-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.custom-dropdown-search-wrap {
  position: relative;
  margin-bottom: 8px;
}

.custom-dropdown-search-wrap .search-icon {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 13px;
}

.custom-dropdown-search {
  width: 100%;
  padding: 9px 36px 9px 12px;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  color: var(--text-dark);
  outline: none;
  background: #f8fafc;
  transition: all 0.2s ease;
}

.custom-dropdown-search:focus {
  background: #ffffff;
  border-color: var(--primary-orange);
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.12);
}

.custom-dropdown-options {
  max-height: 220px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 2px 4px 2px 2px;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}

.custom-dropdown-options::-webkit-scrollbar {
  width: 6px;
}

.custom-dropdown-options::-webkit-scrollbar-track {
  background: #f8fafc;
  border-radius: 10px;
}

.custom-dropdown-options::-webkit-scrollbar-thumb {
  background-color: #cbd5e1;
  border-radius: 10px;
  border: 1px solid #f8fafc;
}

.custom-dropdown-options::-webkit-scrollbar-thumb:hover {
  background-color: var(--primary-orange);
}

.custom-dropdown-options::-webkit-scrollbar-button {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

.custom-dropdown-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dark);
  cursor: pointer;
  transition: all 0.15s ease;
}

.custom-dropdown-option:hover {
  background: var(--primary-orange-light);
  color: var(--primary-orange);
}

.custom-dropdown-option.selected {
  background: var(--primary-orange-light);
  color: var(--primary-orange);
  font-weight: 900;
}

.custom-dropdown-option .check-icon {
  font-size: 12px;
  color: var(--primary-orange);
}

.custom-dropdown-empty {
  padding: 16px;
  text-align: center;
  font-size: 13px;
  color: #94a3b8;
  font-weight: 600;
}

/* Profile Auth Wall (Not Logged In State) */
.profile-auth-wall {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 60vh;
  padding: 20px;
  background: var(--bg-slate);
}

.auth-wall-card {
  background: var(--bg-white);
  padding: 40px;
  border-radius: var(--border-radius-lg);
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  text-align: center;
  max-width: 450px;
  width: 100%;
}

.auth-wall-card i {
  font-size: 64px;
  color: var(--primary-orange);
  margin-bottom: 20px;
}

.auth-wall-card h2 {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-navy);
  margin-bottom: 10px;
}

.auth-wall-card p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 30px;
  line-height: 1.6;
}

.auth-wall-card .hero-cta {
  width: 100%;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--primary-orange) 0%, #e66d00 100%);
  color: white;
  padding: 14px 24px;
  border-radius: var(--border-radius-md);
  font-size: 15px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(96, 165, 250, 0.3);
}

.auth-wall-card .hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(96, 165, 250, 0.4);
}


/* ═══════════════════════════════════════════════════
   Packaging Selector — Product Page
═══════════════════════════════════════════════════ */

#packagingDropdownTrigger {
  transition: border-color 0.2s, box-shadow 0.2s;
}
#packagingDropdownTrigger:hover {
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.12);
}

#packagingDropdownPanel {
  animation: slideDownFade 0.18s ease;
}
@keyframes slideDownFade {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.pkg-type-row:hover {
  background: #fff8f0 !important;
  border-color: var(--primary-orange) !important;
}

.pkg-color-label:hover {
  background: #fff8f0 !important;
}

#packagingDropdownPanel input[type="radio"],
#packagingDropdownPanel input[type="checkbox"] {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  cursor: pointer;
}

/* ═══════════════════════════════════════════════════════════════════════════
   Modern Mobile Header & Checkout Stepper Redesign
   ═══════════════════════════════════════════════════════════════════════════ */

/* Fix logo image overflow & container shape */
.logo-icon-box {
  overflow: hidden !important;
  border-radius: 12px !important;
}

.logo-icon-box img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  display: block !important;
}

.checkout-header {
  box-shadow: none !important;
  border-bottom: 1px solid var(--border-color) !important;
  background: #ffffff !important;
  position: sticky;
  top: 0;
  z-index: 100;
}

.checkout-header .header-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  gap: 16px;
}

.checkout-return-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 12px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #1e293b;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.checkout-return-btn:hover {
  background: #e2e8f0;
  color: var(--primary-orange);
}

/* Stepper Base */
.checkout-steps-bar {
  display: flex;
  align-items: center;
  gap: 12px;
}

.step-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #94a3b8;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.step-item.active {
  color: var(--primary-orange);
}

.step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #f1f5f9;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  transition: all 0.3s ease;
}

.step-item.active .step-num {
  background: var(--primary-orange);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(96, 165, 250, 0.3);
}

.step-line {
  width: 32px;
  height: 2px;
  background: #e2e8f0;
  border-radius: 2px;
  transition: background 0.3s ease;
}

/* Mobile Stepper Bar (Dedicated row below header) */
.mobile-checkout-stepper-bar {
  display: none;
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  padding: 12px 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

/* Responsive Mobile Adjustments (<= 992px) */
@media (max-width: 992px) {
  .checkout-header .desktop-stepper {
    display: none !important;
  }

  .mobile-checkout-stepper-bar {
    display: block !important;
  }

  .mobile-stepper {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    gap: 4px !important;
  }

  .mobile-stepper .step-item {
    font-size: 12px !important;
    gap: 6px !important;
    flex: 0 0 auto !important;
  }

  .mobile-stepper .step-num {
    width: 26px !important;
    height: 26px !important;
    font-size: 11px !important;
  }

  .mobile-stepper .step-line {
    flex: 1 !important;
    min-width: 12px !important;
    max-width: 50px !important;
    height: 2px !important;
  }

  .checkout-header .header-wrapper {
    height: 60px !important;
    padding: 0 12px !important;
  }

  .checkout-return-btn span {
    display: none !important;
  }

  .checkout-return-btn {
    padding: 8px 12px !important;
    border-radius: 10px !important;
  }
}

@media (max-width: 480px) {
  .mobile-stepper .step-item span {
    font-size: 10.5px !important;
  }
  
  .mobile-stepper .step-item {
    gap: 4px !important;
  }

  .brand-logo .logo-subtitle {
    display: none !important;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   Order Confirmation Receipt — Mobile & Desktop Redesign
   ═══════════════════════════════════════════════════════════════════════════ */

.order-success-card {
  background: #ffffff;
  border-radius: 24px;
  padding: 40px 32px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.06);
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
  border: 1px solid #e2e8f0;
}

.success-icon-box {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: #d1fae5;
  color: #059669;
  font-size: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 8px 24px rgba(5, 150, 105, 0.2);
}

.success-title {
  font-size: 22px;
  font-weight: 900;
  color: #0f172a;
  margin-bottom: 10px;
}

.success-desc {
  font-size: 14px;
  color: #64748b;
  margin-bottom: 24px;
  line-height: 1.7;
}

.track-code-box {
  background: #fff7ed;
  border: 2px dashed #ff7900;
  border-radius: 16px;
  padding: 16px 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 15px;
  color: #c2410c;
  margin-bottom: 28px;
  width: auto;
  max-width: 100%;
}

.track-code-box strong {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.5px;
}

.receipt-details-table {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 16px 20px;
  margin-bottom: 28px;
  text-align: right;
}

.receipt-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #e2e8f0;
  font-size: 14px;
  gap: 12px;
}

.receipt-row:last-child {
  border-bottom: none;
}

.receipt-row span {
  color: #64748b;
  flex-shrink: 0;
}

.receipt-row strong {
  color: #1e293b;
  font-weight: 700;
  text-align: left;
  word-break: break-word;
}

.receipt-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.receipt-actions .p-add-cart-btn,
.receipt-actions .account-btn {
  border-radius: 12px !important;
  font-weight: 700 !important;
}

/* ==========================================================================
   WORDPRESS-STYLE ADMIN TOP BAR FOR STORE FRONTEND (#wpAdminBar)
   ========================================================================== */
body.has-admin-top-bar {
  padding-top: 0 !important;
}

/* When admin bar is active, adjust top elements seamlessly */
body.has-admin-top-bar #mainTopBar {
  margin-top: 30px !important;
}

body.has-admin-top-bar #mainTopBar[style*="display: none"] ~ .main-header,
body.has-admin-top-bar #mainTopBar[style*="display:none"] ~ .main-header,
body.has-admin-top-bar:not(:has(#mainTopBar)) .main-header {
  margin-top: 30px !important;
}

body.has-admin-top-bar .mobile-nav-drawer {
  top: 30px !important;
  height: calc(100% - 30px) !important;
}

#wpAdminBar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 30px;
  background: #0f172a;
  color: #cbd5e1;
  font-family: inherit;
  font-size: 11.5px;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
  border-bottom: 1px solid #1e293b;
  user-select: none;
  direction: rtl;
}

.wp-admin-bar-left,
.wp-admin-bar-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

.wp-admin-bar-item {
  color: #94a3b8;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border-radius: 4px;
  background: transparent !important;
  transition: all 0.2s ease;
  font-weight: 600;
  white-space: nowrap;
  font-size: 11.5px;
}

.wp-admin-bar-item i {
  font-size: 12px;
  color: #94a3b8;
  transition: color 0.2s ease;
}

.wp-admin-bar-item:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #ffffff;
}

.wp-admin-bar-user {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: #94a3b8;
  padding: 2px 8px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 768px) {
  #wpAdminBar {
    padding: 0 6px;
    font-size: 10.5px;
  }
  .wp-admin-bar-item span {
    display: none;
  }
  .wp-admin-bar-user span {
    display: inline-block;
  }
}

/* ── Mobile Responsive Adjustments (<= 768px) ── */
@media (max-width: 768px) {
  .order-success-card {
    padding: 28px 16px !important;
    border-radius: 18px !important;
    margin: 0 4px !important;
  }

  .success-icon-box {
    width: 64px !important;
    height: 64px !important;
    font-size: 32px !important;
    margin-bottom: 16px !important;
  }

  .success-title {
    font-size: 18px !important;
  }

  .success-desc {
    font-size: 13px !important;
    margin-bottom: 20px !important;
  }

  .track-code-box {
    flex-direction: column !important;
    gap: 6px !important;
    padding: 14px 16px !important;
    font-size: 13px !important;
    width: 100% !important;
    margin-bottom: 20px !important;
    box-sizing: border-box !important;
  }

  .track-code-box strong {
    font-size: 18px !important;
  }

  .receipt-details-table {
    padding: 12px 14px !important;
    border-radius: 14px !important;
    margin-bottom: 20px !important;
  }

  .receipt-row {
    flex-direction: column !important;
    align-items: flex-start !important;
    padding: 10px 0 !important;
    gap: 4px !important;
  }

  .receipt-row strong {
    text-align: right !important;
    font-size: 13.5px !important;
  }

  .receipt-actions {
    flex-direction: column !important;
    width: 100% !important;
    gap: 10px !important;
  }

  .receipt-actions a,
  .receipt-actions button {
    width: 100% !important;
    justify-content: center !important;
    box-sizing: border-box !important;
  }
}


