/* ==========================================================================
   HOMME / IDEH SMART HOME — SHOP, PRODUCT CARDS, REUSABLE GALLERY & DETAIL VIEW
   iOS 26 Liquid Glass System (Electric Cyan, Ocean Teal, Deep Abyss)
   ========================================================================== */

/* Universal Precision Button Centering & Text Overflow Prevention Engine */
button,
input[type="button"],
input[type="submit"],
[class*="btn-"],
[class*="-btn"],
a[class*="btn-"],
a[class*="-btn"],
.homme-gallery-component button,
.cart-drawer button,
.checkout-modal-container button,
.product-card button,
.product-card a[class*="btn-"],
.product-detail-view-container button,
.admin-modal button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  vertical-align: middle !important;
  line-height: 1.25 !important;
  white-space: nowrap !important;
  box-sizing: border-box !important;
  text-decoration: none !important;
  -webkit-font-smoothing: antialiased;
}

button > span,
[class*="btn-"] > span,
[class*="-btn"] > span,
a[class*="btn-"] > span,
a[class*="-btn"] > span {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  vertical-align: middle !important;
  line-height: 1.25 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.homme-gallery-component button svg,
.cart-drawer button svg,
.checkout-modal-container button svg,
.product-card button svg,
.product-detail-view-container button svg,
.admin-modal button svg,
[class*="btn-"] svg,
[class*="-btn"] svg,
a[class*="btn-"] svg,
a[class*="-btn"] svg {
  display: inline-block !important;
  vertical-align: middle !important;
  flex-shrink: 0 !important;
  margin-block: auto !important;
}

/* ==========================================================================
   1. REUSABLE PRODUCT IMAGE GALLERY COMPONENT
   ========================================================================== */

.homme-gallery-component {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
  user-select: none;
}

/* Main Gallery Stage */
.homme-gallery-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 0.95;
  max-height: 480px;
  background: radial-gradient(circle at 50% 40%, rgba(0, 229, 212, 0.08) 0%, rgba(8, 145, 178, 0.04) 50%, rgba(7, 13, 22, 0.85) 100%);
  border: 1px solid var(--glass-border-crisp);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-liquid-md);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: zoom-in;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.homme-gallery-stage:hover {
  border-color: var(--glass-border-glow);
  box-shadow: var(--shadow-liquid-lg);
}

.gallery-image-viewport {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 4vw, 36px);
  touch-action: pan-y pinch-zoom;
}

.gallery-display-image {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  transition: opacity 0.22s ease-out, transform 0.22s ease-out;
  filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.65));
}

/* Image Counter Badge */
.gallery-counter-pill {
  position: absolute;
  bottom: 14px;
  left: 16px;
  padding: 5px 14px;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--brand-primary);
  background: rgba(4, 9, 16, 0.78);
  border: 1px solid var(--glass-border-glow);
  border-radius: var(--radius-pill);
  backdrop-filter: var(--glass-blur-subtle);
  pointer-events: none;
  letter-spacing: 0.05em;
  direction: ltr;
}

/* Fullscreen / Lightbox Trigger Button */
.gallery-action-btn.gallery-fullscreen-trigger {
  position: absolute;
  top: 14px;
  left: 14px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(7, 13, 22, 0.75);
  border: 1px solid var(--glass-border-subtle);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  backdrop-filter: var(--glass-blur-subtle);
  z-index: 4;
}

.gallery-action-btn.gallery-fullscreen-trigger:hover {
  background: var(--brand-primary);
  color: #03060a;
  border-color: var(--brand-primary);
  transform: scale(1.1);
  box-shadow: 0 0 16px var(--brand-primary);
}

/* Next / Prev Navigation Arrows */
.gallery-nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(7, 14, 24, 0.82);
  border: 1px solid var(--glass-border-crisp);
  color: var(--text-white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  backdrop-filter: var(--glass-blur);
  z-index: 5;
  opacity: 0.85;
}

.gallery-nav-arrow:hover {
  opacity: 1;
  background: rgba(0, 229, 212, 0.2);
  border-color: var(--brand-primary);
  color: var(--brand-primary);
  transform: translateY(-50%) scale(1.12);
  box-shadow: 0 0 18px rgba(0, 229, 212, 0.4);
}

.arrow-prev {
  right: 14px;
}

.arrow-next {
  left: 14px;
}

/* Gallery Thumbnails Strip */
.homme-gallery-thumbs {
  display: flex;
  align-items: center;
  gap: 12px;
  overflow-x: auto;
  padding: 4px 2px 8px 2px;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 229, 212, 0.3) transparent;
}

.homme-gallery-thumbs::-webkit-scrollbar {
  height: 4px;
}

.homme-gallery-thumbs::-webkit-scrollbar-thumb {
  background: rgba(0, 229, 212, 0.3);
  border-radius: 4px;
}

.gallery-thumb-btn {
  flex-shrink: 0;
  width: 76px;
  height: 76px;
  border-radius: var(--radius-sm);
  background: rgba(12, 22, 34, 0.75);
  border: 2px solid var(--glass-border-subtle);
  padding: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  overflow: hidden;
  backdrop-filter: var(--glass-blur-subtle);
}

.gallery-thumb-btn img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  transition: transform var(--transition-fast);
}

.gallery-thumb-btn:hover {
  border-color: rgba(0, 229, 212, 0.6);
  background: rgba(16, 29, 44, 0.9);
  transform: translateY(-2px);
}

.gallery-thumb-btn.active {
  border-color: var(--brand-primary);
  background: rgba(0, 229, 212, 0.12);
  box-shadow: 0 0 16px rgba(0, 229, 212, 0.35);
  transform: translateY(-2px);
}

.gallery-thumb-btn.active img {
  transform: scale(1.08);
}

/* ==========================================================================
   2. FULLSCREEN LIGHTBOX MODAL
   ========================================================================== */

.homme-lightbox-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(2, 5, 8, 0.94);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(12px, 3vw, 32px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.homme-lightbox-backdrop.visible {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-dialog {
  width: 100%;
  max-width: 1100px;
  height: 92vh;
  display: flex;
  flex-direction: column;
  background: rgba(9, 17, 28, 0.88);
  border: 1px solid var(--glass-border-crisp);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-liquid-lg);
  overflow: hidden;
}

.lightbox-header {
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--glass-border-subtle);
  background: rgba(6, 12, 20, 0.7);
}

.lightbox-brand {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--brand-primary);
  letter-spacing: 0.08em;
  display: block;
}

.lightbox-product-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-white);
  margin-top: 2px;
}

.lightbox-header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.lightbox-counter {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-secondary);
  direction: rtl;
}

.lightbox-close-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--glass-border-subtle);
  color: var(--text-white);
  font-size: 1.5rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.lightbox-close-btn:hover {
  background: #ef4444;
  border-color: #ef4444;
  color: #fff;
  transform: rotate(90deg);
}

.lightbox-stage {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 24px;
}

.lightbox-img-wrap {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-img-wrap img {
  max-width: 90%;
  max-height: 85%;
  object-fit: contain;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.8));
  transition: transform 0.25s ease-out;
}

.lightbox-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(14, 25, 40, 0.85);
  border: 1px solid var(--glass-border-crisp);
  color: var(--text-white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  z-index: 10;
}

.lightbox-nav-btn:hover {
  background: var(--brand-primary);
  color: #03060a;
  box-shadow: 0 0 24px var(--brand-primary);
  transform: translateY(-50%) scale(1.1);
}

.lb-prev { right: 20px; }
.lb-next { left: 20px; }

.lightbox-thumbs-bar {
  padding: 14px 20px;
  background: rgba(5, 10, 18, 0.85);
  border-top: 1px solid var(--glass-border-subtle);
  display: flex;
  gap: 12px;
  overflow-x: auto;
  justify-content: center;
}

.lb-thumb-pill {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-sm);
  background: rgba(12, 22, 34, 0.7);
  border: 2px solid transparent;
  padding: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.lb-thumb-pill img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
}

.lb-thumb-pill.active {
  border-color: var(--brand-primary);
  background: rgba(0, 229, 212, 0.15);
  box-shadow: 0 0 14px rgba(0, 229, 212, 0.4);
}

/* ==========================================================================
   3. PRODUCT CARDS & STORE CATALOG SECTION
   ========================================================================== */

.shop-section {
  position: relative;
  padding: 100px 0;
  z-index: 1;
}

/* ==========================================================================
   2. LUXURY PRODUCT CATEGORIES RAIL & CONTROLS SUBBAR
   ========================================================================== */
.shop-filter-wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 40px;
  width: 100%;
}

/* Category Filter Rail Container with Frosted Glass */
.shop-categories-rail-container {
  width: 100%;
  position: relative;
  background: var(--glass-bg-primary);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border-crisp);
  border-radius: 20px;
  padding: 10px 14px;
  box-shadow: var(--shadow-liquid-sm);
  overflow: hidden;
}

.shop-categories-rail {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 4px 2px;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.shop-categories-rail::-webkit-scrollbar {
  display: none;
}

/* Individual Category Tab Pill Button */
.filter-pill-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 9px;
  height: 44px;
  padding: 0 18px;
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border-subtle);
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap !important;
  flex-shrink: 0;
  box-sizing: border-box !important;
  line-height: 1.25 !important;
  user-select: none;
}

.filter-pill-btn .pill-icon {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: var(--brand-primary);
  transition: transform 0.22s ease, color 0.22s ease;
  flex-shrink: 0;
}

.filter-pill-btn .pill-icon svg {
  display: block;
}

.filter-pill-btn .pill-label {
  display: inline-block !important;
  line-height: 1.25 !important;
  text-align: center !important;
  vertical-align: middle !important;
  white-space: nowrap !important;
}

/* Hover State */
.filter-pill-btn:hover {
  color: var(--text-white);
  background: rgba(255, 255, 255, 0.09);
  border-color: var(--glass-border-glow);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.filter-pill-btn:hover .pill-icon {
  transform: scale(1.1);
  color: #38bdf8;
}

/* Active State (Liquid Gradient Glow) */
.filter-pill-btn.active {
  color: #03060a !important;
  background: linear-gradient(135deg, var(--brand-primary) 0%, #22d3ee 100%) !important;
  font-weight: 800 !important;
  border-color: transparent !important;
  box-shadow: 0 6px 20px rgba(0, 229, 212, 0.42), 0 0 10px rgba(34, 211, 238, 0.3) !important;
  transform: translateY(-2px);
}

.filter-pill-btn.active .pill-icon {
  color: #03060a !important;
}

.filter-pill-btn.active .pill-icon svg {
  stroke: #03060a !important;
}

/* Subbar: Search, Results Counter & Sort Selector */
.shop-controls-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 10px 18px;
  background: rgba(7, 14, 24, 0.55);
  backdrop-filter: var(--glass-blur-subtle);
  -webkit-backdrop-filter: var(--glass-blur-subtle);
  border: 1px solid var(--glass-border-subtle);
  border-radius: 16px;
}

/* Search Field Wrap */
.shop-search-field-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex: 1;
  min-width: 240px;
  max-width: 440px;
}

.search-icon-adornment {
  position: absolute;
  right: 14px;
  color: var(--text-muted);
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
}

.shop-search-input {
  width: 100%;
  height: 42px;
  padding-right: 42px;
  padding-left: 36px;
  font-size: 0.88rem;
  font-family: inherit;
  color: var(--text-white);
  background: rgba(5, 11, 18, 0.75);
  border: 1px solid var(--glass-border-crisp);
  border-radius: var(--radius-pill);
  outline: none;
  transition: all var(--transition-fast);
  box-sizing: border-box;
}

.shop-search-input:focus {
  border-color: var(--brand-primary);
  background: rgba(5, 11, 18, 0.95);
  box-shadow: 0 0 16px rgba(0, 229, 212, 0.25);
}

.shop-search-input:focus + .search-clear-btn,
.shop-search-field-wrap:focus-within .search-icon-adornment {
  color: var(--brand-primary);
}

.search-clear-btn {
  position: absolute;
  left: 10px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0;
  transition: all var(--transition-fast);
}

.search-clear-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
}

/* Meta Controls: Count & Sort */
.shop-meta-controls {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.shop-results-counter-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border-subtle);
  border-radius: var(--radius-pill);
  user-select: none;
}

.counter-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand-primary);
  box-shadow: 0 0 8px var(--brand-primary);
}

.shop-sort-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.sort-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
}

.sort-select-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.shop-sort-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  height: 40px;
  padding-right: 16px;
  padding-left: 34px;
  font-size: 0.84rem;
  font-family: inherit;
  font-weight: 700;
  color: var(--text-primary);
  background: rgba(5, 11, 18, 0.85);
  border: 1px solid var(--glass-border-crisp);
  border-radius: var(--radius-pill);
  outline: none;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.shop-sort-select:hover,
.shop-sort-select:focus {
  border-color: var(--brand-primary);
  box-shadow: 0 0 14px rgba(0, 229, 212, 0.2);
  color: var(--text-white);
}

.sort-select-arrow {
  position: absolute;
  left: 12px;
  color: var(--text-muted);
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
  margin-bottom: 50px;
}

/* Individual Product Card */
.product-card {
  position: relative;
  background: var(--glass-bg-card);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border-crisp);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-liquid-sm);
  padding: 20px;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-smooth);
  overflow: hidden;
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-8px);
  background: var(--glass-bg-elevated);
  border-color: var(--glass-border-glow);
  box-shadow: var(--shadow-liquid-lg);
}

.product-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 8px;
  z-index: 2;
}

.badge-discount-pill {
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, #00e5d4 0%, #0891b2 100%);
  color: #03060a;
  font-size: 0.75rem;
  font-weight: 800;
  box-shadow: 0 2px 10px rgba(0, 229, 212, 0.3);
}

.badge-stock-pill {
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 700;
}

.badge-stock-pill.in_stock {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-stock-pill.limited {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.badge-stock-pill.out_of_stock {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.35);
}

/* Card Visual Presentation (With Secondary Image on Hover) */
.product-visual-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 11;
  min-height: 180px;
  max-height: 240px;
  border-radius: var(--radius-md);
  background: radial-gradient(circle at 50% 50%, rgba(0, 229, 212, 0.07) 0%, rgba(5, 11, 18, 0.5) 100%);
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-block: 8px 16px;
  overflow: hidden;
  padding: 16px;
  box-sizing: border-box;
}

.product-visual-wrap .product-img {
  width: auto;
  height: auto;
  max-width: 86%;
  max-height: 86%;
  object-fit: contain;
  object-position: center;
  display: block;
  margin: auto;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.6));
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-visual-wrap .product-img.primary-img {
  opacity: 1;
}

.product-visual-wrap .product-img.secondary-img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.92);
  opacity: 0;
  pointer-events: none;
}

.product-card:hover .product-visual-wrap .product-img.secondary-img {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.05);
}

.product-card:hover .product-visual-wrap:has(.secondary-img) .product-img.primary-img {
  opacity: 0;
}

.product-card:hover .product-visual-wrap:not(:has(.secondary-img)) .product-img.primary-img {
  transform: scale(1.06);
}

/* Card Information */
.product-category-tag {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--brand-primary);
  margin-bottom: 4px;
}

.product-card-title {
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--text-white);
  line-height: 1.35;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 2.9rem;
}

.product-card-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 2.6rem;
}

.product-compat-strip {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.compat-badge-pill {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: rgba(0, 229, 212, 0.08);
  color: var(--text-cyan);
  border: 1px solid rgba(0, 229, 212, 0.2);
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Card Price & Buttons */
.product-card-footer {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--glass-border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.price-wrap {
  display: flex;
  flex-direction: column;
}

.price-current {
  font-size: 1.18rem;
  font-weight: 900;
  color: var(--text-white);
}

.price-old {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.card-actions-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-card-view {
  height: 38px;
  padding: 0 16px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--glass-border-subtle);
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn-card-view:hover {
  background: rgba(255, 255, 255, 0.14);
  color: var(--text-white);
  border-color: var(--glass-border-crisp);
}

.btn-card-add-cart {
  height: 38px;
  padding: 0 16px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-secondary) 100%);
  color: #03060a;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 800;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 14px rgba(0, 229, 212, 0.35);
  white-space: nowrap;
}

.btn-card-add-cart:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(0, 229, 212, 0.55);
}

.btn-card-cart-label {
  display: inline;
}

/* ==========================================================================
   4. FULL PRODUCT DETAIL PAGE (Full-Page Experience)
   ========================================================================== */

.product-detail-view-container {
  min-height: 100vh;
  padding-top: calc(var(--header-height) + 40px);
  padding-bottom: 90px;
  position: relative;
  z-index: 1;
}

/* Breadcrumb Navigation */
.breadcrumb-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 12px;
}

.breadcrumb-trail {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.breadcrumb-trail a {
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.breadcrumb-trail a:hover {
  color: var(--brand-primary);
}

.breadcrumb-trail .current-title {
  color: var(--text-white);
  font-weight: 700;
}

.btn-back-to-shop {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--brand-primary);
  background: rgba(0, 229, 212, 0.08);
  border: 1px solid rgba(0, 229, 212, 0.3);
  border-radius: var(--radius-pill);
  transition: all var(--transition-fast);
}

.btn-back-to-shop:hover {
  background: var(--brand-primary);
  color: #03060a;
  box-shadow: 0 0 16px rgba(0, 229, 212, 0.3);
}

/* Detail Main Layout: Left Gallery, Right Buy Box */
.product-detail-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 48px;
  align-items: start;
  margin-bottom: 60px;
}

.product-detail-gallery-col {
  position: sticky;
  top: calc(var(--header-height) + 20px);
}

.product-detail-info-col {
  display: flex;
  flex-direction: column;
}

.detail-category-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.detail-en-subtitle {
  font-size: 0.9rem;
  color: var(--brand-primary);
  font-weight: 700;
  letter-spacing: 0.05em;
  direction: ltr;
  text-align: right;
  margin-bottom: 4px;
}

.detail-main-title {
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  font-weight: 900;
  color: var(--text-white);
  line-height: 1.25;
  margin-bottom: 14px;
}

.detail-meta-strip {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.detail-rating {
  color: #fbbf24;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Detail Price Box */
.detail-price-box {
  padding: 22px 26px;
  background: rgba(11, 21, 34, 0.7);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border-crisp);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-liquid-sm);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.detail-price-numbers {
  display: flex;
  flex-direction: column;
}

.detail-price-current {
  font-size: 2rem;
  font-weight: 900;
  color: var(--text-white);
}

.detail-price-old {
  font-size: 1rem;
  color: var(--text-muted);
  text-decoration: line-through;
  margin-top: 2px;
}

.detail-short-desc {
  font-size: 0.96rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 28px;
}

/* Purchase Controls: Quantity & Buttons */
.detail-purchase-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.qty-control-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 54px;
  background: rgba(14, 25, 40, 0.85);
  border: 1px solid var(--glass-border-crisp);
  border-radius: var(--radius-pill);
  padding: 4px 10px;
  gap: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  user-select: none;
}

.qty-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-white);
  font-size: 1.25rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  line-height: 1;
  padding: 0;
}

.qty-btn:hover {
  background: var(--brand-primary);
  color: #03060a;
  border-color: var(--brand-primary);
  box-shadow: 0 0 14px rgba(0, 229, 212, 0.5);
}

.qty-btn:active {
  transform: scale(0.94);
}

.qty-value {
  font-size: 1.15rem;
  font-weight: 900;
  min-width: 32px;
  text-align: center;
  color: var(--text-white);
  font-variant-numeric: tabular-nums;
}

.btn-detail-add-cart {
  flex: 1;
  min-width: 220px;
  height: 54px;
  padding: 0 32px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--brand-primary) 0%, #00b4d8 100%);
  border: none;
  color: #03080e;
  font-size: 1.05rem;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: 0 6px 24px rgba(0, 229, 212, 0.4);
  letter-spacing: -0.01em;
}

.btn-detail-add-cart:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 10px 36px rgba(0, 229, 212, 0.6);
  filter: brightness(1.06);
}

.btn-detail-add-cart:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 4px 16px rgba(0, 229, 212, 0.4);
}

.btn-detail-add-cart:disabled,
.btn-detail-add-cart.is-out-of-stock {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-muted);
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

/* Trust Signals Row */
.trust-signals-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding: 18px;
  background: rgba(11, 21, 34, 0.5);
  border: 1px solid var(--glass-border-subtle);
  border-radius: var(--radius-md);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.trust-item svg {
  color: var(--brand-primary);
  flex-shrink: 0;
}

/* Detailed Information Section Below (Tabs, Specs, Features) */
.product-detail-specs-section {
  background: var(--glass-bg-primary);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border-crisp);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-liquid-md);
  padding: clamp(24px, 4vw, 48px);
  margin-bottom: 60px;
}

.detail-tabs-header {
  display: flex;
  gap: 12px;
  border-bottom: 1px solid var(--glass-border-subtle);
  padding-bottom: 16px;
  margin-bottom: 32px;
  overflow-x: auto;
}

.detail-tab-nav-btn {
  padding: 10px 22px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-secondary);
  background: transparent;
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.detail-tab-nav-btn:hover {
  color: var(--text-white);
  background: rgba(255, 255, 255, 0.06);
}

.detail-tab-nav-btn.active {
  color: #03060a;
  background: var(--brand-primary);
  box-shadow: 0 4px 16px rgba(0, 229, 212, 0.35);
}

.detail-tab-content-panel {
  display: none;
  line-height: 1.85;
}

.detail-tab-content-panel.active {
  display: block;
}

/* Specs Table */
.specs-table {
  width: 100%;
  border-collapse: collapse;
}

.specs-table tr {
  border-bottom: 1px solid var(--glass-border-subtle);
}

.specs-table td {
  padding: 16px 20px;
  font-size: 0.92rem;
}

.specs-table td:first-child {
  width: 35%;
  font-weight: 700;
  color: var(--text-cyan);
}

.specs-table td:last-child {
  color: var(--text-white);
}

/* Features List */
.features-bullet-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.features-bullet-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.features-bullet-list li svg {
  color: var(--brand-primary);
  flex-shrink: 0;
  margin-top: 4px;
}

/* Compatibility Grid */
.compat-matrix-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.compat-matrix-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: rgba(14, 25, 40, 0.7);
  border: 1px solid var(--glass-border-crisp);
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-white);
}

.compat-matrix-item svg {
  color: var(--brand-primary);
}

/* Related Products */
.related-products-section {
  margin-top: 60px;
}

.related-products-title {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--text-white);
  margin-bottom: 24px;
}

/* ==========================================================================
   5. SHOPPING CART DRAWER
   ========================================================================== */

.cart-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 12, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 500;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.cart-drawer-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.cart-drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  max-width: 440px;
  background: rgba(7, 14, 24, 0.94);
  backdrop-filter: blur(36px) saturate(200%);
  -webkit-backdrop-filter: blur(36px) saturate(200%);
  border-right: 1px solid var(--glass-border-crisp);
  box-shadow: 20px 0 60px rgba(0, 0, 0, 0.85);
  z-index: 510;
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.cart-drawer.open {
  transform: translateX(0);
}

.cart-drawer-header {
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--glass-border-subtle);
}

.cart-drawer-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-white);
  display: flex;
  align-items: center;
  gap: 10px;
}

.cart-drawer-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--glass-border-subtle);
  color: var(--text-white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.cart-drawer-close:hover {
  background: #ef4444;
  border-color: #ef4444;
}

.cart-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cart-item-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  background: rgba(12, 22, 34, 0.75);
  border: 1px solid var(--glass-border-subtle);
  border-radius: var(--radius-md);
}

.cart-item-thumb {
  width: 64px;
  height: 64px;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-sm);
  background: rgba(4, 9, 16, 0.6);
  border: 1px solid var(--glass-border-subtle);
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  box-sizing: border-box;
}

.cart-item-thumb img {
  width: 100%;
  height: 100%;
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.cart-item-details {
  flex: 1;
  min-width: 0;
}

.cart-item-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}

.cart-item-price {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--brand-primary);
}

.cart-item-remove-btn {
  color: var(--text-muted);
  cursor: pointer;
  transition: color var(--transition-fast);
  padding: 6px;
}

.cart-item-remove-btn:hover {
  color: #ef4444;
}

.cart-empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.cart-drawer-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--glass-border-subtle);
  background: rgba(5, 10, 18, 0.85);
}

.cart-summary-line {
  display: flex;
  justify-content: space-between;
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--text-white);
  margin-bottom: 16px;
}

.btn-checkout-proceed {
  width: 100%;
  height: 48px;
  padding: 0 20px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-secondary) 100%);
  color: #03060a;
  font-size: 0.98rem;
  font-weight: 900;
  border: none;
  cursor: pointer;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  white-space: nowrap !important;
  box-shadow: 0 4px 18px rgba(0, 229, 212, 0.4);
  transition: all var(--transition-fast);
}

.btn-checkout-proceed:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0, 229, 212, 0.55);
}

/* Header Cart Button with Badge */
.btn-dock-cart {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--glass-border-subtle);
  color: var(--text-white);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-dock-cart:hover {
  background: rgba(0, 229, 212, 0.15);
  border-color: var(--brand-primary);
  color: var(--brand-primary);
  transform: scale(1.08);
}

.cart-badge-count {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 20px;
  height: 20px;
  padding: 0 4px;
  border-radius: 10px;
  background: var(--brand-primary);
  color: #03060a;
  font-size: 0.72rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 10px rgba(0, 229, 212, 0.6);
}

/* ==========================================================================
   6. MULTI-STEP CHECKOUT MODAL
   ========================================================================== */

.checkout-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(2, 5, 8, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.checkout-modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.checkout-modal-container {
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  overflow-y: auto;
  background: rgba(10, 19, 31, 0.94);
  border: 1px solid var(--glass-border-crisp);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-liquid-lg);
  padding: clamp(20px, 3.5vw, 36px);
  position: relative;
}

.checkout-steps-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  position: relative;
}

.checkout-step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  z-index: 2;
}

.checkout-step-number {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(14, 25, 40, 0.9);
  border: 2px solid var(--glass-border-crisp);
  color: var(--text-muted);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: all var(--transition-fast);
}

.checkout-step-item.active .checkout-step-number {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: #03060a;
  box-shadow: 0 0 16px var(--brand-primary);
}

.checkout-step-item.completed .checkout-step-number {
  background: #10b981;
  border-color: #10b981;
  color: #fff;
}

.checkout-step-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-secondary);
}

/* ==========================================================================
   7. ADMIN PRODUCT & GALLERY MANAGEMENT
   ========================================================================== */

.admin-products-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
}

.admin-products-table th,
.admin-products-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--glass-border-subtle);
  font-size: 0.88rem;
  text-align: right;
}

.admin-products-table th {
  color: var(--text-cyan);
  font-weight: 700;
  background: rgba(255, 255, 255, 0.02);
}

.admin-prod-thumb {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  padding: 3px;
  object-fit: contain;
}

/* Gallery Manager Inside Admin Edit Form */
.admin-gallery-manager {
  background: rgba(6, 12, 20, 0.6);
  border: 1px solid var(--glass-border-subtle);
  border-radius: var(--radius-md);
  padding: 18px;
  margin-top: 12px;
}

.admin-gallery-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}

.admin-gallery-strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
}

.admin-gallery-card {
  background: rgba(14, 25, 40, 0.7);
  border: 1.5px solid var(--glass-border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
}

.admin-gallery-card.is-primary {
  border-color: var(--brand-primary);
  box-shadow: 0 0 12px rgba(0, 229, 212, 0.25);
}

.admin-gallery-thumb-view {
  width: 100%;
  height: 110px;
  background: rgba(4, 9, 16, 0.8);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  overflow: hidden;
}

.admin-gallery-thumb-view img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
}

.admin-gallery-primary-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 2px 8px;
  font-size: 0.68rem;
  font-weight: 800;
  border-radius: var(--radius-pill);
  background: var(--brand-primary);
  color: #03060a;
}

.admin-gallery-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
}

.admin-gallery-btn {
  padding: 4px 8px;
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: 6px;
  cursor: pointer;
  border: none;
  transition: all var(--transition-fast);
}

.btn-set-primary {
  flex: 1;
  background: rgba(0, 229, 212, 0.15);
  color: var(--brand-primary);
}

.btn-set-primary:hover {
  background: var(--brand-primary);
  color: #03060a;
}

.btn-del-img {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

.btn-del-img:hover {
  background: #ef4444;
  color: #fff;
}

/* ==========================================================================
   8. RESPONSIVE DESIGN (320px to 1920px)
   ========================================================================== */

@media (max-width: 1024px) {
  .product-detail-hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  
  .product-detail-gallery-col {
    position: static;
  }
}

@media (max-width: 768px) {
  .shop-section {
    padding: 50px 0;
  }

  .homme-gallery-stage {
    aspect-ratio: 1 / 1;
    max-height: 330px;
    border-radius: var(--radius-lg);
  }
  
  .gallery-thumb-btn {
    width: 56px;
    height: 56px;
  }
  
  .trust-signals-grid {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 14px;
  }
  
  /* Symmetrical, touch-friendly product detail purchase row on mobile */
  .detail-purchase-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    width: 100%;
  }
  
  .qty-control-box {
    height: 48px;
    padding: 4px;
    border-radius: var(--radius-pill);
    flex-shrink: 0;
  }

  .qty-btn {
    width: 38px;
    height: 38px;
    font-size: 1.1rem;
  }
  
  .btn-detail-add-cart {
    flex: 1;
    min-width: 0;
    height: 48px;
    padding: 0 16px;
    font-size: 0.95rem;
    font-weight: 800;
    border-radius: var(--radius-pill);
    white-space: nowrap;
  }
  
  .cart-drawer {
    max-width: 100%;
  }
  
  .shop-controls-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 12px;
    border-radius: 14px;
  }
  
  .shop-search-field-wrap {
    max-width: 100%;
    min-width: 100%;
    width: 100%;
  }

  .shop-search-input {
    height: 38px;
    font-size: 0.82rem;
  }

  .shop-meta-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 10px;
  }

  .shop-results-counter-pill {
    padding: 4px 10px;
    font-size: 0.74rem;
  }

  .shop-sort-select {
    height: 36px;
    font-size: 0.78rem;
    padding-right: 12px;
    padding-left: 28px;
  }

  /* Two-column balanced e-commerce grid on mobile phones (clean scale & symmetry) */
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 36px;
  }

  .product-card {
    padding: 10px 10px 12px;
    border-radius: 16px;
  }

  .product-card-header {
    margin-bottom: 4px;
  }

  .badge-discount-pill,
  .badge-stock-pill {
    padding: 2px 7px;
    font-size: 0.65rem;
  }

  .product-visual-wrap {
    aspect-ratio: 1 / 1;
    min-height: 110px;
    max-height: 145px;
    padding: 8px;
    margin-block: 4px 8px;
    border-radius: 12px;
  }

  .product-visual-wrap .product-img {
    max-width: 86%;
    max-height: 86%;
  }

  .product-category-tag {
    font-size: 0.68rem;
    margin-bottom: 3px;
  }

  .product-card-title {
    font-size: 0.86rem;
    font-weight: 700;
    line-height: 1.35;
    height: 2.7em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    margin-bottom: 4px;
  }

  /* Hide long descriptions on mobile 2-col to keep all cards balanced and identical in height */
  .product-card-desc {
    display: none;
  }

  .product-compat-strip {
    display: none;
  }

  /* Footer on mobile cards: clean price on top, full-width prominent buy button beneath */
  .product-card-footer {
    padding-top: 8px;
    margin-top: auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    border-top: 1px solid var(--glass-border-subtle);
  }

  .price-wrap {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    justify-content: space-between;
    width: 100%;
  }

  .price-current {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--text-cyan);
  }

  .price-old {
    font-size: 0.72rem;
  }

  .card-actions-wrap {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 6px;
  }

  /* On mobile 2-col cards, hide the separate "جزییات" button because clicking anywhere on the card opens details,
     making the "خرید" button full-width, clean, and perfectly symmetrical! */
  .btn-card-view {
    display: none !important;
  }

  .btn-card-add-cart {
    width: 100%;
    height: 38px;
    padding: 0 12px;
    border-radius: var(--radius-pill);
    background: linear-gradient(135deg, var(--brand-primary) 0%, #22d3ee 100%);
    color: #03060a;
    font-size: 0.82rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-shadow: 0 4px 14px rgba(0, 229, 212, 0.35);
  }

  .btn-card-add-cart svg {
    width: 16px;
    height: 16px;
    stroke: #03060a;
  }

  .btn-card-cart-label {
    display: inline !important;
  }
}

@media (max-width: 480px) {
  .homme-gallery-stage {
    aspect-ratio: 1 / 1;
    max-height: 290px;
  }
  
  .gallery-nav-arrow {
    width: 36px;
    height: 36px;
  }
  
  .lightbox-stage {
    padding: 12px;
  }
}

@media (max-width: 360px) {
  .products-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .product-card {
    padding: 12px;
  }

  .product-visual-wrap {
    max-height: 160px;
  }

  .btn-card-view {
    display: inline-flex !important;
    flex: 1;
  }

  .btn-card-add-cart {
    flex: 1.4;
  }
}

/* ==========================================================================
   HOMME DEDICATED LUXURY STANDALONE CHECKOUT EXPERIENCE
   ========================================================================== */

/* 1. Dedicated Minimal Luxury Header */
.checkout-dedicated-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 72px;
  background: rgba(5, 10, 17, 0.88);
  backdrop-filter: var(--glass-blur-heavy);
  -webkit-backdrop-filter: var(--glass-blur-heavy);
  border-bottom: 1px solid var(--glass-border-crisp);
  z-index: 100;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.checkout-header-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  height: 100%;
  padding: 0 clamp(16px, 3vw, 32px);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.checkout-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.checkout-brand-logo-wrap {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--glass-border-crisp);
  box-shadow: 0 0 12px rgba(0, 229, 212, 0.2);
}

.checkout-brand-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.checkout-brand-text {
  display: flex;
  flex-direction: column;
}

.checkout-brand-title {
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--text-white);
  letter-spacing: 0.08em;
  line-height: 1.1;
}

.checkout-brand-subtitle {
  font-size: 0.72rem;
  color: var(--brand-primary);
  font-weight: 600;
  margin-top: 2px;
}

.checkout-header-security {
  display: flex;
  align-items: center;
}

.checkout-security-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(52, 211, 153, 0.08);
  border: 1px solid rgba(52, 211, 153, 0.3);
  border-radius: var(--radius-pill);
  color: #34d399;
  font-size: 0.78rem;
  font-weight: 700;
}

.checkout-header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.checkout-header-user-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  background: rgba(0, 229, 212, 0.08);
  border: 1px solid rgba(0, 229, 212, 0.3);
  border-radius: var(--radius-pill);
  color: var(--brand-primary);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 700;
  transition: all var(--transition-fast);
}

.checkout-header-user-btn:hover {
  background: rgba(0, 229, 212, 0.18);
  border-color: var(--brand-primary);
}

.checkout-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.checkout-back-link:hover {
  color: var(--text-white);
  background: rgba(255, 255, 255, 0.05);
}

/* 2. Main Page Section */
.checkout-page-section {
  min-height: 100vh;
  padding: 104px 0 60px;
  position: relative;
  z-index: 2;
}

/* 3. Luxury 4-Stage Progress Component */
.checkout-stage-indicator {
  max-width: 820px;
  margin: 0 auto 36px auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background: rgba(8, 16, 26, 0.75);
  border: 1px solid var(--glass-border-subtle);
  border-radius: var(--radius-xl);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--shadow-liquid-sm);
}

.stage-step {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  z-index: 1;
}

.stage-step-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 800;
  transition: all var(--transition-smooth);
}

.stage-step-check {
  display: none;
}

.stage-step-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: color var(--transition-smooth);
}

.stage-step.active .stage-step-circle {
  background: rgba(0, 229, 212, 0.15);
  border-color: var(--brand-primary);
  color: var(--brand-primary);
  box-shadow: 0 0 16px rgba(0, 229, 212, 0.4);
}

.stage-step.active .stage-step-label {
  color: var(--text-white);
  font-weight: 800;
}

.stage-step.completed .stage-step-circle {
  background: rgba(52, 211, 153, 0.15);
  border-color: #34d399;
  color: #34d399;
}

.stage-step.completed .stage-step-num {
  display: none;
}

.stage-step.completed .stage-step-check {
  display: block;
}

.stage-step.completed .stage-step-label {
  color: #a7f3d0;
}

.stage-step-connector {
  flex: 1;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  margin: 0 14px;
  border-radius: 2px;
  transition: background var(--transition-smooth);
}

.stage-step-connector.completed {
  background: #34d399;
}

/* Skeleton Loading State */
.checkout-skeleton-loading {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-secondary);
  background: rgba(10, 19, 31, 0.7);
  border: 1px solid var(--glass-border-subtle);
  border-radius: var(--radius-xl);
  max-width: 640px;
  margin: 0 auto;
}

/* Main Checkout Layout Grid: 1.6fr / 1fr on desktop */
.checkout-grid-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(320px, 1fr);
  gap: 32px;
  align-items: start;
}

.checkout-forms-column {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.checkout-summary-column {
  position: sticky;
  top: 96px;
}

/* Premium Checkout Cards */
.checkout-card {
  background: rgba(10, 19, 31, 0.85);
  border: 1px solid var(--glass-border-subtle);
  border-radius: var(--radius-xl);
  padding: clamp(20px, 2.5vw, 28px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: border-color var(--transition-fast);
}

.checkout-card:hover {
  border-color: rgba(0, 229, 212, 0.22);
}

.checkout-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 14px;
}

.checkout-card-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.checkout-card-step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0, 229, 212, 0.12);
  color: var(--brand-primary);
  border: 1px solid rgba(0, 229, 212, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 800;
}

.checkout-card-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-white);
  margin: 0;
}

.checkout-card-badge {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

.checkout-badge-verified {
  background: rgba(52, 211, 153, 0.12);
  color: #34d399;
  border: 1px solid rgba(52, 211, 153, 0.3);
  display: flex;
  align-items: center;
  gap: 6px;
}

.checkout-badge-required {
  background: rgba(248, 113, 113, 0.12);
  color: #f87171;
  border: 1px solid rgba(248, 113, 113, 0.3);
}

/* Auth Required Full-Page Hero State in Checkout */
.checkout-auth-card {
  background: rgba(10, 19, 31, 0.92);
  border: 1.5px solid rgba(0, 229, 212, 0.3);
  border-radius: var(--radius-xl);
  padding: clamp(24px, 4vw, 36px);
  box-shadow: 0 20px 50px rgba(0, 229, 212, 0.08);
  margin-bottom: 24px;
}

.checkout-auth-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: center;
}

.checkout-auth-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.checkout-auth-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-lg);
  background: rgba(0, 229, 212, 0.12);
  color: var(--brand-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0, 229, 212, 0.3);
}

.checkout-auth-form-wrap {
  background: rgba(6, 12, 19, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 20px;
}

/* Checkout Form Field Rows & Grids */
.checkout-form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}

.checkout-form-row-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
  margin-bottom: 16px;
}

.checkout-field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.checkout-field-label {
  font-size: 0.86rem;
  font-weight: 700;
  color: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.checkout-field-label .required-mark {
  color: #f87171;
  margin-right: 4px;
}

.checkout-field-label .optional-mark {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

.checkout-field-input,
.checkout-field-select,
.checkout-field-textarea {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  background: rgba(6, 12, 20, 0.7);
  border: 1px solid var(--glass-border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-white);
  font-family: inherit;
  font-size: 0.92rem;
  transition: all var(--transition-fast);
  outline: none;
  box-sizing: border-box;
}

.checkout-field-textarea {
  height: 84px;
  padding: 12px 14px;
  resize: vertical;
}

.checkout-field-input:focus,
.checkout-field-select:focus,
.checkout-field-textarea:focus {
  border-color: var(--brand-primary);
  background: rgba(6, 12, 20, 0.95);
  box-shadow: 0 0 0 3px rgba(0, 229, 212, 0.15);
}

.checkout-field-input.has-error,
.checkout-field-select.has-error,
.checkout-field-textarea.has-error {
  border-color: #f87171;
  background: rgba(239, 68, 68, 0.05);
}

.checkout-field-error-msg {
  font-size: 0.76rem;
  color: #fca5a5;
  margin-top: 4px;
  display: none;
}

.checkout-field-error-msg.visible {
  display: block;
}

.checkout-field-help {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* User Account Pill */
.checkout-user-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: rgba(0, 229, 212, 0.05);
  border: 1px solid rgba(0, 229, 212, 0.25);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
}

.checkout-user-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.checkout-user-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(0, 229, 212, 0.15);
  color: var(--brand-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
}

.checkout-user-name {
  font-weight: 800;
  color: var(--text-white);
  font-size: 0.95rem;
}

.checkout-user-phone {
  font-size: 0.8rem;
  color: var(--text-secondary);
  direction: ltr;
  text-align: right;
}

/* Shipping Method Selection in Checkout */
.checkout-shipping-option {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  background: rgba(0, 229, 212, 0.05);
  border: 1.5px solid var(--brand-primary);
  border-radius: var(--radius-md);
  cursor: pointer;
  margin-bottom: 12px;
}

.checkout-shipping-info {
  flex: 1;
}

.checkout-shipping-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.checkout-shipping-title {
  font-weight: 800;
  color: var(--text-white);
  font-size: 0.96rem;
}

.checkout-shipping-price {
  font-weight: 800;
  color: #34d399;
  font-size: 0.9rem;
}

.checkout-shipping-policy-details {
  font-size: 0.82rem;
  color: #cbd5e1;
  line-height: 1.6;
}

/* Payment Gateway Selection Card */
.checkout-payment-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  background: rgba(0, 229, 212, 0.06);
  border: 1.5px solid var(--brand-primary);
  border-radius: var(--radius-md);
  cursor: pointer;
  margin-bottom: 12px;
}

.checkout-payment-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.checkout-payment-logo-wrap {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-primary);
}

/* Saved Address Selector Cards */
.checkout-saved-addresses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.checkout-saved-address-card {
  background: rgba(8, 16, 26, 0.7);
  border: 1.5px solid var(--glass-border-subtle);
  border-radius: var(--radius-md);
  padding: 14px;
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
}

.checkout-saved-address-card:hover {
  border-color: rgba(0, 229, 212, 0.4);
  background: rgba(8, 16, 26, 0.9);
}

.checkout-saved-address-card.selected {
  border-color: var(--brand-primary);
  background: rgba(0, 229, 212, 0.08);
  box-shadow: 0 0 16px rgba(0, 229, 212, 0.2);
}

.checkout-saved-address-card .addr-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.checkout-saved-address-card .addr-title {
  font-weight: 800;
  color: #fff;
  font-size: 0.88rem;
}

.checkout-saved-address-card .addr-default-badge {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--brand-primary);
  background: rgba(0, 229, 212, 0.12);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

.checkout-saved-address-card .addr-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.checkout-saved-address-card .addr-recipient {
  font-size: 0.74rem;
  color: var(--text-muted);
}

.checkout-custom-address-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  color: var(--brand-primary);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  padding: 6px 0;
  margin-bottom: 16px;
  text-decoration: underline;
}

/* Inline Quantity Controls in Order Summary */
.checkout-item-qty-controls {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border-subtle);
  border-radius: var(--radius-sm);
  padding: 2px 6px;
}

.checkout-item-qty-btn {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all var(--transition-fast);
}

.checkout-item-qty-btn:hover {
  background: var(--brand-primary);
  color: #03080e;
}

.checkout-item-qty-val {
  font-size: 0.82rem;
  font-weight: 800;
  color: #fff;
  min-width: 16px;
  text-align: center;
}

.checkout-item-remove-trigger {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: color var(--transition-fast);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.checkout-item-remove-trigger:hover {
  color: #f87171;
}

/* Summary Card Components */
.checkout-summary-card {
  background: rgba(10, 19, 31, 0.9);
  border: 1px solid rgba(0, 229, 212, 0.3);
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.checkout-summary-title {
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--text-white);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.checkout-items-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-height: 280px;
  overflow-y: auto;
  padding-left: 4px;
  margin-bottom: 18px;
}

.checkout-item-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.checkout-item-thumb {
  width: 54px;
  height: 54px;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border-subtle);
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  box-sizing: border-box;
}

.checkout-item-thumb img {
  width: 100%;
  height: 100%;
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.checkout-item-info {
  flex: 1;
  min-width: 0;
}

.checkout-item-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}

.checkout-item-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.checkout-item-price {
  font-weight: 700;
  color: var(--brand-primary);
}

.checkout-price-breakdown {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.checkout-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.checkout-price-row.total-row {
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--text-white);
  padding-top: 12px;
  margin-top: 4px;
  border-top: 1.5px dashed rgba(255, 255, 255, 0.15);
}

.checkout-price-row.total-row .total-amount {
  color: var(--brand-primary);
  font-size: 1.35rem;
}

/* Main CTA Button inside Checkout */
.btn-checkout-submit {
  width: 100%;
  height: 52px;
  border: none;
  border-radius: var(--radius-pill);
  background: var(--brand-primary);
  color: #03080e;
  font-weight: 900;
  font-size: 1.05rem;
  cursor: pointer;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px;
  box-shadow: 0 4px 20px rgba(0, 229, 212, 0.4);
  transition: all var(--transition-fast);
}

.btn-checkout-submit:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 229, 212, 0.6);
  filter: brightness(1.05);
}

.btn-checkout-submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
}

.checkout-security-guarantee {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.78rem;
  color: #94a3b8;
  margin-top: 14px;
  text-align: center;
}

/* Responsive Adaptations for Full-Page Checkout */
@media (max-width: 1024px) {
  .checkout-grid-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .checkout-summary-column {
    position: static;
    order: -1; /* Show order summary on top on tablet/mobile so user always knows what they buy */
  }
}

@media (max-width: 640px) {
  .checkout-page-section {
    padding: 85px 0 40px;
  }
  
  .checkout-form-row,
  .checkout-form-row-3,
  .checkout-auth-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .checkout-card {
    padding: 16px;
    border-radius: var(--radius-lg);
  }
  
  .checkout-card-header {
    margin-bottom: 14px;
  }
  
  .checkout-dedicated-header {
    height: 64px;
  }
  
  .checkout-brand-subtitle {
    display: none;
  }
  
  .checkout-stage-indicator {
    padding: 12px 14px;
    margin-bottom: 24px;
    gap: 4px;
  }

  .stage-step-label {
    font-size: 0.72rem;
  }

  .stage-step-circle {
    width: 26px;
    height: 26px;
    font-size: 0.75rem;
  }

  .stage-step-connector {
    margin: 0 6px;
  }

  .checkout-header-security {
    display: none;
  }
}

/* ==========================================================================
   HOMME LIGHT THEME SHOP & PRODUCT OVERRIDES
   ========================================================================== */
[data-theme="light"] .product-card {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(15, 23, 42, 0.1);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

[data-theme="light"] .product-card:hover {
  background: #ffffff;
  border-color: rgba(0, 180, 216, 0.4);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.1), 0 0 20px rgba(0, 180, 216, 0.15);
}

[data-theme="light"] .product-visual-wrap {
  background: radial-gradient(circle at 50% 50%, rgba(0, 180, 216, 0.08) 0%, rgba(241, 245, 249, 0.85) 100%);
  border-color: rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .compat-badge-pill {
  background: rgba(15, 23, 42, 0.04);
  border-color: rgba(15, 23, 42, 0.1);
  color: #475569;
}

[data-theme="light"] .btn-card-view {
  background: rgba(15, 23, 42, 0.05);
  border-color: rgba(15, 23, 42, 0.12);
  color: #334155;
}

[data-theme="light"] .btn-card-view:hover {
  background: rgba(0, 180, 216, 0.1);
  color: #0284c7;
  border-color: #00b4d8;
}

[data-theme="light"] .shop-categories-rail-container {
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(15, 23, 42, 0.1);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
}

[data-theme="light"] .filter-pill-btn {
  color: #475569;
  background: rgba(15, 23, 42, 0.04);
  border-color: rgba(15, 23, 42, 0.09);
}

[data-theme="light"] .filter-pill-btn:hover {
  color: #0f172a;
  background: rgba(15, 23, 42, 0.08);
  border-color: rgba(0, 180, 216, 0.4);
}

[data-theme="light"] .filter-pill-btn.active {
  color: #ffffff !important;
  background: linear-gradient(135deg, #00b4d8 0%, #0284c7 100%) !important;
  border-color: transparent !important;
  box-shadow: 0 4px 16px rgba(0, 180, 216, 0.35) !important;
}

[data-theme="light"] .filter-pill-btn.active .pill-icon {
  color: #ffffff !important;
}

[data-theme="light"] .filter-pill-btn.active .pill-icon svg {
  stroke: #ffffff !important;
}

[data-theme="light"] .shop-controls-bar {
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(15, 23, 42, 0.1);
}

[data-theme="light"] .shop-search-input {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.15);
  color: #0f172a;
}

[data-theme="light"] .shop-search-input:focus {
  background: #ffffff;
  border-color: #00b4d8;
  box-shadow: 0 0 16px rgba(0, 180, 216, 0.2);
}

[data-theme="light"] .shop-sort-select {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.15);
  color: #0f172a;
}

[data-theme="light"] .shop-results-counter-pill {
  background: rgba(15, 23, 42, 0.04);
  border-color: rgba(15, 23, 42, 0.1);
  color: #475569;
}

[data-theme="light"] .cart-drawer {
  background: rgba(255, 255, 255, 0.94);
  border-inline-start-color: rgba(15, 23, 42, 0.12);
  box-shadow: -15px 0 45px rgba(15, 23, 42, 0.12);
}

[data-theme="light"] .cart-item-card {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.1);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
}

[data-theme="light"] .cart-item-thumb {
  background: #f1f5f9;
  border-color: rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .cart-drawer-header,
[data-theme="light"] .cart-drawer-footer {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(15, 23, 42, 0.1);
}

[data-theme="light"] .homme-gallery-stage {
  background: radial-gradient(circle at 50% 40%, rgba(0, 180, 216, 0.08) 0%, rgba(241, 245, 249, 0.9) 100%);
  border-color: rgba(15, 23, 42, 0.12);
}

[data-theme="light"] .gallery-thumb-btn {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.12);
}

[data-theme="light"] .detail-info-card,
[data-theme="light"] .detail-tab-content-panel {
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(15, 23, 42, 0.1);
}

[data-theme="light"] .detail-tab-nav-btn {
  color: #64748b;
  background: rgba(15, 23, 42, 0.04);
}

[data-theme="light"] .detail-tab-nav-btn.active {
  color: #0f172a;
  background: #ffffff;
  border-color: rgba(0, 180, 216, 0.4);
}

[data-theme="light"] .checkout-dedicated-header {
  background: rgba(255, 255, 255, 0.92);
  border-bottom-color: rgba(15, 23, 42, 0.1);
}

[data-theme="light"] .checkout-stage-box,
[data-theme="light"] .checkout-summary-card {
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(15, 23, 42, 0.12);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

[data-theme="light"] .checkout-stage-indicator {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(15, 23, 42, 0.12);
}

[data-theme="light"] .checkout-form-input,
[data-theme="light"] .checkout-form-select,
[data-theme="light"] .checkout-form-textarea {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.16);
  color: #0f172a;
}

[data-theme="light"] .checkout-form-input:focus,
[data-theme="light"] .checkout-form-select:focus,
[data-theme="light"] .checkout-form-textarea:focus {
  background: #ffffff;
  border-color: #00b4d8;
  box-shadow: 0 0 16px rgba(0, 180, 216, 0.2);
}

[data-theme="light"] .checkout-shipping-info-box {
  background: #f8fafc;
  border-color: rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .checkout-item-thumb {
  background: #f1f5f9;
  border-color: rgba(15, 23, 42, 0.1);
}




/* ==========================================================================
   CHECKOUT BUTTONS & BOXES TEXT-CENTERING & NOWRAP ENGINE (HOMME LUXURY)
   Ensures text inside all buttons and boxes stays centered and strictly on a single line.
   ========================================================================== */

/* 1. All Checkout & Purchase Action Buttons */
.btn-checkout-submit,
.btn-checkout-proceed,
.checkout-custom-address-toggle,
.checkout-header-user-btn,
.checkout-back-link,
.checkout-item-qty-btn,
.btn-detail-add-cart,
.btn-card-add-cart {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  white-space: nowrap !important;
}

/* 2. All Stepper & Card Number Boxes */
.stage-step-circle,
.checkout-card-step-num,
.checkout-item-qty-val,
.checkout-user-avatar {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  white-space: nowrap !important;
}

/* 3. Stepper Step & Label */
.stage-step {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
}

.stage-step-label {
  display: block !important;
  text-align: center !important;
  white-space: nowrap !important;
  font-weight: 700 !important;
}

/* 4. All Status Badges, Price Pills & Trust Boxes */
.checkout-card-badge,
.checkout-badge-verified,
.checkout-badge-required,
.checkout-security-pill,
.checkout-shipping-price,
.checkout-instant-badge,
.checkout-free-badge,
.checkout-saved-address-card .addr-default-badge,
.shipping-policy-badge {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  white-space: nowrap !important;
}

/* Badge Color Definitions */
.checkout-instant-badge {
  font-size: 0.76rem !important;
  color: #34d399 !important;
  font-weight: 800 !important;
  background: rgba(52, 211, 153, 0.12) !important;
  border: 1px solid rgba(52, 211, 153, 0.28) !important;
  padding: 3px 12px !important;
  border-radius: var(--radius-pill) !important;
}

.checkout-free-badge {
  color: #34d399 !important;
  font-weight: 800 !important;
  font-size: 0.82rem !important;
  background: rgba(52, 211, 153, 0.12) !important;
  border: 1px solid rgba(52, 211, 153, 0.28) !important;
  padding: 3px 12px !important;
  border-radius: var(--radius-pill) !important;
}

/* Summary Rows: Keep amounts and labels on a single line */
.checkout-price-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  white-space: nowrap !important;
}

.checkout-price-row span,
.checkout-price-row strong {
  white-space: nowrap !important;
}

.checkout-price-row.total-row .total-amount {
  white-space: nowrap !important;
  font-size: clamp(1.18rem, 4.5vw, 1.45rem) !important;
  font-weight: 900 !important;
}

.checkout-security-guarantee {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
}

/* ==========================================================================
   MOBILE & TABLET RESPONSIVE REFINEMENTS (320px - 768px)
   ========================================================================== */
@media (max-width: 640px) {
  .checkout-page-section {
    padding: 72px 0 36px !important;
  }

  .checkout-card {
    padding: 16px 12px !important;
    border-radius: var(--radius-lg) !important;
  }

  .checkout-card-header {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    margin-bottom: 16px !important;
    padding-bottom: 12px !important;
  }

  .checkout-card-title-wrap {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
  }

  .checkout-card-title {
    font-size: 1.05rem !important;
  }

  /* 4-Stage Stepper: Compact, centered circles, single-line text beneath */
  .checkout-stage-indicator {
    padding: 10px 4px !important;
    margin-bottom: 20px !important;
    justify-content: space-between !important;
    gap: 2px !important;
  }

  .stage-step {
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    gap: 5px !important;
    flex: 1 !important;
    min-width: 0 !important;
  }

  .stage-step-circle {
    width: 28px !important;
    height: 28px !important;
    font-size: 0.74rem !important;
    margin: 0 auto !important;
    flex-shrink: 0 !important;
  }

  .stage-step-label {
    font-size: clamp(0.58rem, 2.5vw, 0.72rem) !important;
    white-space: nowrap !important;
    text-align: center !important;
    letter-spacing: -0.02em !important;
    line-height: 1.2 !important;
    width: 100% !important;
  }

  .stage-step-connector {
    margin: 0 1px !important;
    align-self: flex-start !important;
    margin-top: 13px !important;
    min-width: 4px !important;
  }

  /* Submit CTA Button */
  .btn-checkout-submit {
    height: 48px !important;
    font-size: 0.98rem !important;
    padding: 0 16px !important;
    width: 100% !important;
    justify-content: center !important;
    text-align: center !important;
    white-space: nowrap !important;
  }

  /* Address toggle button */
  .checkout-custom-address-toggle {
    width: 100% !important;
    justify-content: center !important;
    text-align: center !important;
    white-space: nowrap !important;
    font-size: 0.82rem !important;
    padding: 8px 12px !important;
  }

  /* Payment Option: Stack symmetrically */
  .checkout-payment-option {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px !important;
    padding: 14px 12px !important;
  }

  .checkout-payment-meta {
    width: 100% !important;
    display: flex !important;
    align-items: flex-start !important;
    gap: 10px !important;
  }

  .checkout-payment-logo-wrap {
    width: 38px !important;
    height: 38px !important;
    flex-shrink: 0 !important;
  }

  .checkout-instant-badge {
    align-self: flex-start !important;
    margin-right: 48px !important;
  }

  /* Saved address cards */
  .checkout-saved-addresses-grid {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  /* User pill */
  .checkout-user-pill {
    padding: 10px 12px !important;
    gap: 10px !important;
    flex-wrap: wrap !important;
  }

  .checkout-user-info {
    gap: 10px !important;
  }

  /* Compact Cart Items inside Summary */
  .checkout-summary-card {
    padding: 16px 12px !important;
    border-radius: var(--radius-lg) !important;
  }

  .checkout-item-row {
    gap: 10px !important;
    padding-bottom: 10px !important;
  }

  .checkout-item-thumb {
    width: 46px !important;
    height: 46px !important;
  }

  .checkout-item-name {
    font-size: 0.84rem !important;
  }
}

@media (max-width: 480px) {
  /* Header clean icon-only back button to prevent header text crowding */
  .checkout-back-link {
    padding: 8px !important;
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    justify-content: center !important;
  }

  .checkout-back-link span {
    display: none !important;
  }

  .checkout-header-user-btn {
    padding: 6px 10px !important;
    font-size: 0.74rem !important;
  }

  .checkout-header-inner {
    padding: 0 10px !important;
  }

  .checkout-stage-indicator {
    padding: 8px 2px !important;
    gap: 1px !important;
  }

  .stage-step-circle {
    width: 25px !important;
    height: 25px !important;
    font-size: 0.7rem !important;
  }

  .stage-step-connector {
    margin-top: 12px !important;
    min-width: 3px !important;
  }

  .stage-step-label {
    font-size: 0.6rem !important;
  }
}
