/**
 * Moda Fashion Catalog - UI Components
 * Buttons, cards, forms, navigation, etc.
 */

/* ===========================
   Typography
   =========================== */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: var(--font-semibold);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--color-primary);
}

h1 {
  font-size: var(--text-5xl);
}

h2 {
  font-size: var(--text-4xl);
}

h3 {
  font-size: var(--text-3xl);
}

h4 {
  font-size: var(--text-2xl);
}

h5 {
  font-size: var(--text-xl);
}

h6 {
  font-size: var(--text-lg);
}

.page-title {
  font-size: var(--text-4xl);
  font-weight: var(--font-bold);
  margin-bottom: var(--space-8);
  color: var(--color-primary);
}

.display-1 {
  font-size: var(--text-7xl);
  font-weight: var(--font-bold);
  letter-spacing: var(--tracking-tight);
}

.display-2 {
  font-size: var(--text-6xl);
  font-weight: var(--font-semibold);
}

.text-gradient {
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-muted {
  color: var(--color-gray-500);
}

.text-small {
  font-size: var(--text-sm);
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-accent);
}

/* ===========================
   Buttons
   =========================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-8);
  font-family: var(--font-primary);
  font-size: var(--text-base);
  font-weight: var(--font-medium);
  line-height: 1;
  border: none;
  border-radius: 150px;
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-secondary);
}

.btn-primary:hover {
  background: var(--color-gray-800);
  color: var(--color-secondary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: var(--color-secondary);
  color: var(--color-primary);
  border: 1px solid var(--color-gray-200);
}

.btn-secondary:hover {
  background: var(--color-gray-100);
  color: var(--color-primary);
  border-color: var(--color-gray-300);
}

.btn-secondary2 {
  background: #eb8686;
  color: white;
  border: 1px solid var(--color-gray-200);
}

.btn-secondary2:hover {
  background: rgb(253, 113, 113);
  color: white;
  border-color: var(--color-gray-300);
}

.btn-third {
  background: var(--color-secondary);
  color: var(--color-primary);
}

.btn-third:hover {
  background: var(--gradient-gold);
  color: var(--color-primary);
  transform: translateY(-2px);
  /* box-shadow: var(--shadow-lg); */
  box-shadow: var(--shadow-glow);
}

.btn-accent {
  background: rgba(230, 230, 230, 0.123);
  color: #ffffff;
  border: 1px solid var(--color-gray-200);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.btn-accent2 {
  background: rgba(230, 230, 230, 0.123);
  color: #000000;
  border: 1px solid var(--color-gray-200);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.btn-accent:hover {
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn-outline:hover {
  background: var(--color-primary);
  color: var(--color-secondary);
}

.btn-whatsapp {
  background: #20B965;
  color: white;
}

.btn-whatsapp:hover {
  background: #179B54;
  color: white;
}

.btn-lg {
  padding: var(--space-5) var(--space-10);
  font-size: var(--text-lg);
}

.btn-sm {
  padding: var(--space-2) var(--space-5);
  font-size: var(--text-sm);
}

.btn-icon {
  width: 48px;
  height: 48px;
  padding: 0;
  border-radius: 50%;
}

.btn-icon.btn-sm {
  width: 36px;
  height: 36px;
}

/* Ripple Effect */
.btn-ripple {
  position: relative;
  overflow: hidden;
}

.btn-ripple::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  pointer-events: none;
  background-image: radial-gradient(circle,
      rgba(255, 255, 255, 0.3) 10%,
      transparent 10%);
  background-repeat: no-repeat;
  background-position: 50%;
  transform: scale(10, 10);
  opacity: 0;
  transition:
    transform 0.4s,
    opacity 0.8s;
}

.btn-ripple:active::after {
  transform: scale(0, 0);
  opacity: 0.5;
  transition: 0s;
}

/* ===========================
   Product Card
   =========================== */
/* ===========================
   Product Card
   =========================== */
.product-card {
  position: relative;
  background: #ffffff;
  border-radius: 5px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-base);
}

.product-card__image {
  position: relative;
  aspect-ratio: 10 / 13;
  overflow: hidden;
  background: #f6f6f7;
  width: 100%;
}

.product-card__image a {
  display: block;
  width: 100%;
  height: 100%;
}

.product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: opacity 0.4s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card__image .hover-img {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
}

/* Hover Effect - Only on Image Hover */
.product-card__image:hover .hover-img {
  opacity: 1;
  visibility: visible;
}

.product-card__image:hover .main-img:not(:only-child) {
  opacity: 0;
  visibility: hidden;
}

.product-card__badges {
  position: absolute;
  top: 8px;
  left: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  pointer-events: none;
  /* Let clicks pass through to image */
  z-index: 5;
}

html[dir="rtl"] .product-card__badges {
  left: auto !important;
  right: 8px !important;
}

.product-card__badge {
  padding: var(--space-1) var(--space-3);
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  border-radius: 2px;
}

.product-card__badge--new {
  background-color: #ff5722;
  /* Modern orange color */
  color: #ffffff;
}

.product-card__badge--sale {
  background-color: #dc2626;
  color: #ffffff;
}

.product-card__badge--sold {
  background: #4b5563;
  color: var(--color-secondary);
}

.product-card__badge--featured {
  background: var(--gradient-gold);
  color: var(--color-primary);
}

.product-card__actions {
  position: absolute;
  top: 12px; /* Increased from 8px for better breathing room */
  right: 12px;
  display: flex;
  flex-direction: row-reverse; /* Reverse order: 1st child (Quick View) at the edge */
  gap: 8px;
  z-index: 5;
}

/* For RTL: Align to top-left and keep horizontal reverse */
[dir="rtl"] .product-card__actions {
  right: auto;
  left: 12px;
  flex-direction: row-reverse;
}

.product-card__action-btn {
  width: 34px; /* Slightly larger for better touch/visibility */
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: none !important;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  color: #111111;
  opacity: 0;
  transform: translateY(12px); /* Slide UP from bottom to avoid top clipping */
}

/* Sequential Animation: Staggered entrance */
.product-card__image:hover .product-card__action-btn {
  opacity: 1;
  transform: translateY(0);
}

/* Delay only when appearing (hover in) */
.product-card__image:hover .product-card__action-btn:nth-child(2) {
  transition-delay: 0.12s !important;
}

/* No delay when disappearing (hover out) */
.product-card__action-btn {
  transition-delay: 0s;
}

.product-card__action-btn:hover {
  background: #111111;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.product-card__quick-add {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 38px;
  background: rgba(17, 17, 17, 0.9);
  backdrop-filter: blur(6px);
  color: #ffffff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  z-index: 10;
  transform: translateY(100%);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card__image:hover .product-card__quick-add {
  transform: translateY(0);
  opacity: 1;
}

.product-card__quick-add:hover {
  background: #000000;
}

.product-card__quick-add svg {
  transition: transform 0.3s ease;
}

.product-card__quick-add:hover svg {
  transform: scale(1.1);
}

/* Quick Select Overlay */
.product-card__quick-select {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 20;
  display: flex;
  flex-direction: column;
  padding: var(--space-5);
  transform: translateY(100%);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 0;
  pointer-events: none;
  overflow-y: auto;
  /* Handle many variants on mobile */
  scrollbar-width: thin;
}

.product-card__quick-select.active {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.quick-select__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-4);
  border-bottom: 1px solid var(--color-gray-100);
  padding-bottom: var(--space-2);
  flex-shrink: 0;
}

.quick-select__section {
  margin-bottom: var(--space-5);
}

.quick-select__label {
  font-size: 11px;
  color: var(--color-gray-400);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: var(--font-bold);
  margin-bottom: 10px;
}

.quick-select__colors {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.quick-select__color {
  width: 60px;
  /* Enlarged from 38px */
  height: 60px;
  /* Enlarged from 38px */
  border-radius: 50%;
  border: 2px solid white;
  box-shadow: 0 0 0 1px var(--color-gray-200);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  background-size: cover;
  background-position: center;
}

.quick-select__color.selected {
  box-shadow: 0 0 0 2px var(--color-primary);
  transform: scale(1.1);
}

.quick-select__color.has-thumb {
  border-radius: 4px;
}

.quick-select__close {
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: var(--color-gray-400);
  line-height: 1;
  padding: 8px;
  transition: color 0.2s ease;
}

.quick-select__sizes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-start;
}

.size-bubble {
  min-width: 40px;
  height: 40px;
  border: 1.5px solid var(--color-gray-200);
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: var(--font-medium);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 4px;
  color: var(--color-primary);
}

.size-bubble:hover {
  border-color: var(--color-primary);
  transform: translateY(-2px);
}

.size-bubble.selected {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
}

.size-bubble.disabled {
  opacity: 0.3 !important;
  pointer-events: none !important;
  background: #f9f9f9 !important;
  color: #ccc !important;
  border-color: #ddd !important;
  text-decoration: line-through;
  cursor: not-allowed !important;
}

/* Mobile Adjustments (Tablet & Mobile) - PLACED AT THE END FOR CORRECT OVERRIDE */
@media (max-width: 768px) {
  .product-card__quick-select {
    padding: var(--space-2) var(--space-3) !important;
  }

  .quick-select__header {
    margin-bottom: var(--space-2) !important;
    padding-bottom: var(--space-1) !important;
    font-size: 10px !important;
  }

  .quick-select__section {
    margin-bottom: var(--space-2) !important;
  }

  .quick-select__label {
    margin-bottom: 3px !important;
    font-size: 9px !important;
  }

  .quick-select__color {
    width: 38px !important;
    height: 38px !important;
  }

  .size-bubble {
    min-width: 30px !important;
    height: 30px !important;
    font-size: 10px !important;
    padding: 0 !important;
  }
}

.size-bubble.loading {
  opacity: 0.5;
  pointer-events: none;
}

/* Success state for Quick Add button */
.product-card__quick-add.success {
  background: #059669 !important;
}

.product-card__quick-add.loading {
  opacity: 0.7;
  pointer-events: none;
}

/* Wishlist Button Styles */
.wishlist-btn {
  color: #111111;
}

.wishlist-btn svg {
  width: 18px; /* Slightly adjusted to fit circular button better */
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  transition: all 0.25s ease;
}

.wishlist-btn:hover {
  color: #ef4444 !important;
  background-color: #ffffff !important;
}

.wishlist-btn--active svg {
  fill: #ef4444 !important;
  stroke: #ef4444 !important;
}

.wishlist-btn.wishlist-btn--animate {
  animation: heartBounce 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Heart bounce animation on toggle */
@keyframes heartBounce {
  0% {
    transform: scale(1);
  }

  15% {
    transform: scale(1.35);
  }

  30% {
    transform: scale(0.9);
  }

  45% {
    transform: scale(1.15);
  }

  60% {
    transform: scale(0.95);
  }

  100% {
    transform: scale(1);
  }
}

.wishlist-btn--animate {
  animation: heartBounce 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.wishlist-btn--loading {
  opacity: 0.5;
  pointer-events: none;
}

/* Spin animation for loading state if needed */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.wishlist-btn--loading svg {
  animation: spin 1s linear infinite;
}

/* ===========================
   Wishlist Page — Mobile 2-Column Grid
   =========================== */
@media (max-width: 767px) {
  .wishlist-grid.grid-cols-4 {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-3);
  }

  /* Tighten card content for smaller columns */
  .wishlist-grid .product-card__content {
    padding: var(--space-1) var(--space-1);
    gap: 2px;
  }

  .wishlist-grid .product-card__title {
    font-size: 0.78rem;
    line-height: 1.3;
  }

  .wishlist-grid .product-card__price-current {
    font-size: 0.7rem;
  }

  .wishlist-grid .product-card__price-old {
    font-size: 0.6rem;
  }

  .wishlist-grid .product-card__color {
    width: 26px;
    height: 26px;
  }

  .wishlist-grid .product-card__action-btn {
    width: 32px;
    height: 32px;
  }

  .wishlist-grid .product-card__quick-add {
    font-size: 0.7rem;
    padding: var(--space-2) var(--space-2);
  }
}

.product-card__content {
  padding: 8px 10px 14px 10px;
  text-align: start;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

html[dir="rtl"] .product-card__content {
  padding: 8px 10px 14px 10px;
  text-align: right;
}

/* Meta Bar: Colors on start, Heart on end */
.product-card__meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 24px;
  margin: 4px 0 0 0;
}

.product-card__colors {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-start;
  margin: 0;
}

html[dir="rtl"] .product-card__colors {
  justify-content: flex-start;
}

.product-card__color {
  width: 40px;
  height: 55px;
  border-radius: 3px;
  /* border: 1px solid rgba(0, 0, 0, 0.16); */
  cursor: pointer;
  transition: transform 0.15s ease, outline 0.15s ease, border-color 0.15s ease;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  /* box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05); */
}

.product-card__color--thumb {
  /* border: 1px solid rgba(0, 0, 0, 0.18); */
}

.product-card__color:hover,
.product-card__color.active {
  outline: 1.5px solid #111111;
  outline-offset: 1.5px;
  border-color: transparent;
  transform: scale(1.06);
}

.product-card__color.out-of-stock {
  opacity: 0.4;
  position: relative;
  cursor: default;
  pointer-events: none;
}

.product-card__color.out-of-stock::after {
  content: "";
  position: absolute;
  top: 50%;
  left: -10%;
  width: 120%;
  height: 1px;
  background: #111;
  transform: rotate(-45deg);
}

.product-card__category {
  font-size: var(--text-xs);
  color: var(--color-gray-500);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  margin-bottom: var(--space-2);
}

/* Title */
.product-card__title {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.35;
  margin: 0;
  color: #111111;
}

.product-card__title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card__title a:hover {
  color: #666666;
}

/* Price */
.product-card__price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: 1px;
  justify-content: flex-start;
}

html[dir="rtl"] .product-card__price {
  justify-content: flex-start;
}

.product-card__price-current {
  font-size: 12px;
  font-weight: 700;
  color: #111111;
  letter-spacing: 0.01em;
}

.product-card__price-old {
  font-size: 10px;
  color: #888888;
  text-decoration: line-through;
  font-weight: 400;
}

.product-option__color-thumb.active {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 1px var(--color-accent);
}

.product-option__color-thumb.out-of-stock {
  opacity: 0.5;
  position: relative;
  cursor: default;
}

.product-option__color-thumb.out-of-stock::after {
  content: "";
  position: absolute;
  top: 50%;
  left: -10%;
  width: 120%;
  height: 1px;
  background: #000;
  transform: rotate(-45deg);
}

.product-option__color-thumb.out-of-stock img {
  filter: grayscale(1);
}

/* ===========================
   Navigation
   =========================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-fixed);
  padding: 12px 0;
  transition: background-color 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  background: var(--color-secondary);
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  will-change: background-color, box-shadow;
}

.navbar--transparent:not(.scrolled) {
  background: transparent;
  box-shadow: none;
  border-color: transparent;
}

/* Adjust navbar top if ticker is present */
.ticker--top~.navbar {
  top: 35px;
  /* Height of the ticker */
}

@media (max-width: 768px) {
  .ticker--top~.navbar {
    top: 31px;
    /* Height of the ticker on mobile */
  }
}

.navbar.scrolled {
  top: 0 !important;
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(24px) saturate(200%);
  -webkit-backdrop-filter: blur(24px) saturate(200%);
  box-shadow:
    0 1px 0 0 rgba(255, 255, 255, 0.6) inset,
    0 -0.5px 0 0 rgba(255, 255, 255, 0.3) inset,
    0 4px 30px rgba(0, 0, 0, 0.06),
    0 1px 3px rgba(0, 0, 0, 0.04);
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  border-top: 1px solid rgba(255, 255, 255, 0.5);
}

.navbar--transparent:not(.scrolled) .navbar__link {
  color: var(--color-secondary);
}

.navbar--transparent:not(.scrolled) .logo-img {
  filter: brightness(0) invert(1);
}

.navbar--transparent:not(.scrolled) .btn-accent {
  background: var(--color-secondary);
  color: var(--color-primary);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  width: 100%;
}

/* Top Navbar Menu Button (Mobile Hamburger) */
.top-menu-btn {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  max-width: 40px !important;
  display: none;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 40px !important;
  color: var(--color-primary, #111) !important;
  cursor: pointer !important;
  z-index: 10 !important;
  -webkit-tap-highlight-color: transparent;
}

.top-menu-btn .menu-btn-icon {
  width: 22px;
  height: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
}

.top-menu-btn .menu-btn-icon span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--color-primary, #111);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.top-menu-btn .menu-btn-icon span:nth-child(2) {
  width: 65%;
}

.top-menu-btn:hover .menu-btn-icon span:nth-child(2) {
  width: 100%;
}

.navbar--transparent:not(.scrolled) .top-menu-btn .menu-btn-icon span {
  background-color: #ffffff;
}

@media (min-width: 1024px) {
  .top-menu-btn {
    display: none !important;
  }
}

@media (max-width: 1023px) {
  .top-menu-btn {
    display: flex !important;
  }

  .navbar__inner {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    position: relative !important;
    width: 100% !important;
    min-height: 44px !important;
  }

  .navbar__logo {
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
    margin: 0 !important;
    z-index: 5 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .navbar__logo .logo-img {
    max-height: 32px;
    width: auto;
  }

  .navbar__actions {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 12px !important;
    flex: 0 0 auto !important;
    z-index: 10 !important;
    margin-inline-start: auto !important;
  }
}

.navbar__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo-img {
  height: 40px;
  width: auto;
  transition: filter var(--transition-base);
}

.navbar__logo span {
  color: var(--color-accent);
}

.navbar__menu {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  list-style: none;
}

.navbar__link {
  position: relative;
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--color-gray-700);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  padding: var(--space-2) 0;
  z-index: 10;
}

.navbar__link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s cubic-bezier(0.65, 0, 0.35, 1);
}

.navbar__link:hover::after,
.navbar__link.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.navbar__link:hover,
.navbar__link.active {
  color: var(--color-accent) !important;
}

.navbar__actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.navbar__icon-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  transition: color var(--transition-fast);
}

.navbar__icon-btn:hover {
  color: var(--color-accent);
}

.lang-switcher-btn {
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.5px;
  min-width: 35px;
  text-align: center;
}

.cart-badge,
.wishlist-badge {
  position: absolute;
  top: -1px;
  right: -5px;
  background: #e53e3e;
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 1;
  pointer-events: none;
}

/* Align wishlist badge to match cart badge position (cart SVG is 30px, wishlist SVG is 22px) */
.navbar__icon-btn.wishlist-icon .wishlist-badge {
  top: -4px;
  right: -8px;
}

/* Pulse animation for wishlist badge */
.wishlist-badge.pulse {
  animation: pulse 0.3s ease;
}

.wishlist-badge.hidden,
.cart-badge.hidden {
  display: none !important;
}

/* ===========================
   Mini Cart Dropdown
   =========================== */
.navbar__cart-wrapper {
  position: relative;
}

.mini-cart {
  position: absolute;
  top: calc(100% + 22px);
  right: -60px;
  /* Shifted further right as requested */
  width: 420px;
  background: rgb(255, 255, 255);
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
  border-radius: 12px;
  visibility: hidden;
  opacity: 0;
  z-index: 1000;
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}

@media (min-width: 992px) {
  .navbar__cart-wrapper:hover .mini-cart {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
}

.mini-cart.active {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  transform: translateY(0) !important;
  pointer-events: auto !important;
}

/* Hover Bridge - Narrower to avoid covering nearby navbar icons */
.mini-cart::after {
  content: "";
  position: absolute;
  top: -40px;
  right: 20px;
  width: 80px;
  height: 40px;
  background: transparent;
  z-index: -1;
}

.mini-cart::before {
  content: '';
  position: absolute;
  top: -8px;
  right: 65px;
  /* Aligned with icon center at right: -50px */
  width: 16px;
  height: 16px;
  background: white;
  transform: rotate(45deg);
}

.mini-cart__header {
  padding: 25px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #f0f0f0;
}

.mini-cart__title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
}

.mini-cart__total-top {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-left: auto;
  margin-right: 20px;
}

.mini-cart__close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #999;
  line-height: 1;
  padding: 5px;
  transition: color 0.2s;
}

.mini-cart__close:hover {
  color: var(--color-primary);
}

.mini-cart__items {
  max-height: 400px;
  overflow-y: auto;
  padding: 0 30px;
  scrollbar-width: thin;
}

.mini-cart__items::-webkit-scrollbar {
  width: 4px;
}

.mini-cart__items::-webkit-scrollbar-thumb {
  background: #eee;
  border-radius: 10px;
}

.mini-cart__item {
  display: flex;
  gap: 20px;
  padding: 25px 0;
  border-bottom: 1px solid #f9f9f9;
}

.mini-cart__item:last-child {
  border-bottom: none;
}

.mini-cart__item-image {
  width: 90px;
  height: 120px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
}

.mini-cart__item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mini-cart__item-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.mini-cart__item-name {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 8px 0;
  color: #111;
}

.mini-cart__item-meta {
  font-size: 0.75rem;
  color: #888;
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.mini-cart__item-price {
  font-weight: 700;
  font-size: 1rem;
}

.mini-cart__empty {
  padding: 50px 30px;
  text-align: center;
  color: #888;
}

.mini-cart__footer {
  padding: 25px 30px;
  background: #fff;
  border-top: 1px solid #f0f0f0;
}

.mini-cart__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mini-cart__actions .btn {
  width: 100%;
  padding: 15px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1px;
  border-radius: 4px;
}

.btn-checkout {
  background: #000;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-checkout::after {
  content: "";
  display: block;
  width: 7px;
  height: 7px;
  background: #fff;
  border-radius: 50%;
  animation: badge-pulse 2s infinite;
}

.btn-checkout:hover {
  background: #333;
}

.btn-view-bag {
  border: 1px solid #000;
  color: #000;
  background: transparent;
}

.btn-view-bag:hover {
  background: #000000;
}

@media (max-width: 1024px) {
  .mini-cart {
    display: block;
    /* Show on mobile! */
    position: fixed;
    top: 100px;
    left: 10px;
    right: 10px;
    width: auto;
    max-width: none;
    max-height: 80vh;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    border: 1px solid #eee;
    z-index: 10001;
    /* Above mobile nav */
  }

  .mini-cart::before,
  .mini-cart::after {
    display: none !important;
    /* Hide desktop-specific arrows */
  }

  .mini-cart__items {
    max-height: 50vh;
  }
}

.navbar--transparent:not(.scrolled) .navbar__icon-btn {
  color: var(--color-secondary);
}

.navbar--transparent:not(.scrolled) .menu-toggle span {
  background: var(--color-secondary);
}

/* Language Dropdown */
.navbar__lang-dropdown {
  position: relative;
  display: flex;
  align-items: center;
}

.lang-dropdown-trigger {
  display: flex !important;
  flex-direction: row !important;
  /* Prevent flipping in RTL */
  align-items: center;
  gap: 8px;
  padding: 0;
  background: transparent !important;
  border: none !important;
  cursor: pointer;
  transition: color 0.2s ease;
  color: #000000;
  /* Professional Black */
  font-family: inherit;
  box-shadow: none !important;
}

.lang-globe-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: #000000;
  transition: color 0.2s ease;
}

[dir="rtl"] .lang-dropdown-trigger {
  flex-direction: row !important;
  /* Double-down for RTL */
}

.navbar--transparent:not(.scrolled) .lang-dropdown-trigger {
  background: transparent !important;
  border: none !important;
  color: white !important;
}

.navbar--transparent:not(.scrolled) .lang-dropdown-trigger .lang-globe-icon {
  color: white !important;
}

.lang-dropdown-trigger:hover {
  background: rgba(0, 0, 0, 0.08);
  border-color: var(--color-primary);
}

.lang-text {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.flag-icon {
  width: 16px;
  height: 10px;
  border-radius: 2px;
  display: block;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.lang-dropdown-trigger .feather-chevron-down {
  width: 14px;
  height: 14px;
  opacity: 0.5;
  transition: transform 0.3s ease;
}

.navbar__lang-dropdown:hover .lang-dropdown-trigger .feather-chevron-down {
  transform: rotate(180deg);
}

.lang-dropdown-menu {
  position: absolute;
  top: 100%;
  right: -10px;
  margin-top: 12px;
  min-width: 160px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 18px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1000;
}

@media (max-width: 768px) {
  .lang-dropdown-menu {
    right: 0 !important;
    left: auto !important;
  }
}

/* Hover Bridge: Fills the gap to prevent menu closing */
.lang-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -15px;
  left: 0;
  right: 0;
  height: 15px;
  background: transparent;
}

.navbar__lang-dropdown:hover .lang-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 12px;
  color: black;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.lang-dropdown-item:hover {
  background: var(--color-primary);
  color: white !important;
}

.lang-dropdown-item.active {
  background: rgba(0, 0, 0, 0.04);
  opacity: 0.7;
  pointer-events: none;
}

/* RTL Support */
@media (min-width: 769px) {
  [dir="rtl"] .lang-dropdown-menu {
    right: auto;
    left: -10px;
  }
}

[dir="rtl"] .flag-icon {
  margin-left: 0;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: var(--space-2);
  cursor: pointer;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
  transition: all var(--transition-base);
}

/* ===========================
   Mobile Bottom Navigation
   =========================== */
.mobile-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: var(--z-fixed);
  border-radius: 30px 30px 0 0;
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(24px) saturate(200%);
  -webkit-backdrop-filter: blur(24px) saturate(200%);
  border-top: 1px solid rgba(255, 255, 255, 0.5);
  padding: 8px 0;
  padding-bottom: max(8px, env(safe-area-inset-bottom));
  box-shadow:
    0 -1px 0 0 rgba(255, 255, 255, 0.6) inset,
    0 0.5px 0 0 rgba(255, 255, 255, 0.3) inset,
    0 -4px 30px rgba(0, 0, 0, 0.06),
    0 -1px 3px rgba(0, 0, 0, 0.04);
  transition: background var(--transition-base), backdrop-filter var(--transition-base), -webkit-backdrop-filter var(--transition-base), border-color var(--transition-base);
}

.mobile-nav.at-bottom {
  background: #ffffff !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border-top-color: var(--color-gray-100) !important;
}

.mobile-nav__list {
  display: flex;
  align-items: center;
  justify-content: space-around;
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-nav__item {
  flex: 1;
  display: flex;
  justify-content: center;
}

.mobile-nav__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 4px 0;
  color: var(--color-gray-500);
  font-size: 11px;
  font-weight: 600;
  transition: all 0.2s ease;
  text-decoration: none;
  width: 100%;
  position: relative;
}

.mobile-nav__link::after {
  content: "";
  position: absolute;
  top: -9px;
  left: 50%;
  transform-origin: center;
  transform: translateX(-50%) scaleX(0);
  width: 60px;
  height: 1px;
  background: linear-gradient(to right, transparent 0%, var(--color-accent) 20%, var(--color-accent) 80%, transparent 100%);
  border-radius: 3px;
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-nav__link.active {
  color: var(--color-primary);
}

.mobile-nav__link.active::after {
  transform: translateX(-50%) scaleX(1);
}

.mobile-nav__icon-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}


.mobile-nav__link .cart-badge,
.mobile-nav__link .wishlist-badge {
  top: -3px;
  right: -9px;
  width: 18px;
  height: 18px;
  font-size: 11px;
}

.mobile-nav__link svg {
  transition: transform var(--transition-fast);
}

.mobile-nav__link:active svg {
  transform: scale(0.9);
}

/* Professional Menu Button */
.mobile-nav__menu-btn {
  background: none;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-2);
  color: var(--color-gray-500);
  font-size: var(--text-xs);
  transition: all var(--transition-fast);
  cursor: pointer;
  width: 100%;
}

.mobile-nav__item--menu {
  display: flex;
  justify-content: center;
}

.menu-btn-icon {
  width: 24px;
  height: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  transition: transform 0.3s;
}

.menu-btn-icon span {
  width: 100%;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: all 0.3s;
}

.menu-btn-icon span:nth-child(2) {
  width: 70%;
  align-self: flex-end;
}

.mobile-nav__menu-btn:hover {
  color: var(--color-primary);
}

.mobile-nav__menu-btn:hover .menu-btn-icon span:nth-child(2) {
  width: 100%;
}

/* ===========================
   Mobile Sidebar (Drawer)
   =========================== */
.mobile-sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  z-index: calc(var(--z-fixed) + 1);
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-sidebar-overlay.open {
  opacity: 1;
  visibility: visible;
}

.mobile-sidebar {
  position: fixed;
  top: 0;
  left: -100%;
  /* Start off-screen */
  width: 320px;
  height: 100%;
  max-width: 85%;
  background: white;
  z-index: calc(var(--z-fixed) + 2);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 20px 0 50px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
}

[dir="rtl"] .mobile-sidebar {
  left: auto;
  right: -100%;
  box-shadow: -20px 0 50px rgba(0, 0, 0, 0.1);
}

.mobile-sidebar.open {
  left: 0;
}

[dir="rtl"] .mobile-sidebar.open {
  right: 0;
}

.mobile-sidebar__header {
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #f0f0f0;
}

.mobile-sidebar__logo img {
  height: 35px;
}

.mobile-sidebar__close {
  background: none;
  border: none;
  color: var(--color-gray-900);
  padding: 5px;
  cursor: pointer;
}

.mobile-sidebar__content {
  flex: 1;
  overflow-y: auto;
  padding: 20px 0;
}

.mobile-sidebar__section {
  padding: 0 20px;
  margin-bottom: 25px;
}

.mobile-sidebar__title {
  font-size: var(--text-xs);
  color: var(--color-gray-400);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 15px;
}

.mobile-sidebar__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mobile-sidebar__links a {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--color-gray-700);
  transition: all 0.2s;
}

.mobile-sidebar__links a.active {
  color: var(--color-primary);
}

.mobile-sidebar__category {
  margin-bottom: 5px;
}

.mobile-sidebar__category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  cursor: pointer;
  font-weight: 500;
  color: var(--color-gray-700);
  transition: all 0.2s;
}

.mobile-sidebar__category-header i {
  transition: transform 0.3s;
}

.mobile-sidebar__category.open .mobile-sidebar__category-header {
  color: var(--color-primary);
}

.mobile-sidebar__category.open .mobile-sidebar__category-header i {
  transform: rotate(180deg);
}

.mobile-sidebar__category-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.mobile-sidebar__category.open .mobile-sidebar__category-body {
  max-height: 500px;
  /* Adjust as needed */
}

.mobile-sidebar__sublinks {
  list-style: none;
  padding: 5px 0 10px 15px;
  border-left: 2px solid #f0f0f0;
  margin-left: 5px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

[dir="rtl"] .mobile-sidebar__sublinks {
  padding-left: 0;
  padding-right: 15px;
  border-left: none;
  border-right: 2px solid #f0f0f0;
  margin-left: 0;
  margin-right: 5px;
}

.mobile-sidebar__sublinks a {
  font-size: 0.95rem;
  color: var(--color-gray-600);
}

.mobile-sidebar__footer {
  padding: 20px;
  background: #f9f9f9;
  border-top: 1px solid #f0f0f0;
}

.mobile-sidebar__social {
  display: flex;
  gap: 20px;
  margin-bottom: 10px;
}

.mobile-sidebar__social a {
  color: var(--color-gray-600);
  font-size: 1.2rem;
}

.mobile-sidebar__copy {
  font-size: var(--text-xs);
  color: var(--color-gray-400);
}

.mobile-nav__link--whatsapp {
  color: #25d366 !important;
}

/* ===========================
   Forms
   =========================== */
.form-group {
  margin-bottom: var(--space-5);
}

.form-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--color-gray-700);
  margin-bottom: var(--space-2);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: var(--space-4) var(--space-5);
  font-family: var(--font-primary);
  font-size: var(--text-base);
  color: var(--color-primary);
  background: var(--color-secondary);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-lg);
  transition: all var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(201, 162, 77, 0.15);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

.form-input::placeholder {
  color: var(--color-gray-400);
}

/* ===========================
   Breadcrumb
   =========================== */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-gray-500);
  margin-bottom: var(--space-6);
}

.breadcrumb__separator {
  color: var(--color-gray-400);
}

.breadcrumb__link:hover {
  color: var(--color-primary);
}

.breadcrumb__current {
  color: var(--color-primary);
  font-weight: var(--font-medium);
}

/* ===========================
   Footer
   =========================== */
/* ===========================
   Footer Redesign (3-Column + Social Bar)
   =========================== */
.footer-social-bar {
  background: none;
  padding: var(--space-2) 0;
  margin-top: -40px;
  /* Pull footer up to reduce gap from content */
}

.footer-social-bar__inner {
  display: flex;
  justify-content: center;
  gap: var(--space-8);
}

.footer-social-bar__link {
  color: #000;
  transition: transform 0.3s ease, color 0.3s ease;
}

.footer-social-bar__link:hover {
  transform: translateY(-5px);
  color: var(--color-accent);
}

.footer {
  background: #111111;
  color: #fff;
  padding: 10px 0;
  font-family: var(--font-primary);
}

@media (max-width: 1023px) {
  .footer {
    padding-bottom: 80px;
    /* Offset for fixed mobile-nav */
  }
}

.footer-social-bar .container,
.footer .container {
  max-width: 1600px;
}

.footer__new-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr 1fr;
  gap: 30px;
  align-items: center;
}

@media (max-width: 991px) {
  .footer__new-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 20px;
  }

  .footer__col--contact,
  .footer__new-desc,
  .footer__col--track {
    display: none;
  }
}

.footer__col--contact {
  font-size: 0.75rem;
  text-align: left;
}

[dir="rtl"] .footer__col--contact {
  text-align: right;
}

.footer__new-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 5px;
  text-transform: capitalize;
  display: block;
}

.footer__contact-info {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.footer__contact-item {
  color: #fff;
  margin: 0;
}

.footer__contact-item a {
  color: inherit;
  transition: color 0.2s;
}

.footer__contact-item a:hover {
  color: #fff;
}

.footer__col--brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.footer__new-logo-img {
  height: 35px;
  width: auto;
  margin-bottom: 5px;
  filter: brightness(0) invert(1);
}

.footer__new-desc {
  font-size: 0.75rem;
  color: #fff;
  max-width: none;
  white-space: nowrap;
  margin-bottom: 5px;
  line-height: 1.3;
}

.footer__copy {
  font-size: 0.65rem;
  color: #fff;
  margin: 0;
}

.footer__col--track {
  display: flex;
  justify-content: flex-end;
}

@media (max-width: 991px) {
  .footer__col--track {
    display: none !important;
  }
}

.footer__track-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  transition: transform 0.3s ease;
}

.footer__track-link:hover {
  transform: translateY(-5px);
}

.footer__track-icon {
  width: 40px;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  padding: 0;
  filter: brightness(0) invert(1);
}


/* Responsive */
@media (max-width: 1023px) {
  .navbar__menu {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .mobile-nav {
    display: block;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 767px) {
  h1 {
    font-size: var(--text-3xl);
  }

  h2 {
    font-size: var(--text-2xl);
  }

  h3 {
    font-size: var(--text-xl);
  }

  .display-1 {
    font-size: var(--text-4xl);
  }

  .display-2 {
    font-size: var(--text-3xl);
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .footer__bottom {
    flex-direction: column;
    gap: var(--space-4);
    text-align: center;
  }
}

/* ===========================
   Modal & Quick View
   =========================== */
.modal {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
}

.modal.active {
  opacity: 1;
  visibility: visible;
}

.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
}

.modal__content {
  position: relative;
  width: 100%;
  max-width: 800px;
  background: var(--color-secondary);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  max-height: 90vh;
  overflow-y: auto;
  z-index: 10;
  transform: translateY(20px);
  transition: all var(--transition-base);
}

.modal.active .modal__content {
  transform: translateY(0);
}

.modal__close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  font-size: 2rem;
  line-height: 1;
  border: none;
  background: none;
  cursor: pointer;
  color: var(--color-gray-500);
}

.modal__close:hover {
  color: var(--color-primary);
}

/* Quick View Specific */
.quick-view__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
}

.quick-view__main-img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: var(--radius-xl);
}

.quick-view__title {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-4);
}

.quick-view__price {
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  color: var(--color-accent);
  margin-bottom: var(--space-6);
  display: flex;
  gap: var(--space-3);
  align-items: center;
}

.quick-view__price .price-old {
  font-size: var(--text-base);
  color: var(--color-gray-400);
  text-decoration: line-through;
}

.quick-view__desc {
  color: var(--color-gray-600);
  margin-bottom: var(--space-6);
}

.quick-view__option {
  margin-bottom: var(--space-6);
}

.option-label {
  display: block;
  font-weight: var(--font-semibold);
  margin-bottom: var(--space-2);
}

.attribute-box {
  display: inline-block;
  padding: var(--space-1) var(--space-3);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
}

@media (max-width: 767px) {
  .quick-view__grid {
    grid-template-columns: 1fr;
  }
}

/* ===========================
    Alert
    =========================== */
.alert {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-lg);
  font-size: var(--text-sm);
}

.alert__icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}

.alert__icon svg {
  width: 100%;
  height: 100%;
}

.alert__content {
  flex: 1;
  line-height: var(--leading-snug);
}

.alert--warning {
  background: #fef3c7;
  border: 1px solid #f59e0b;
  color: #92400e;
}

.alert--warning .alert__icon svg {
  stroke: #d97706;
}

/* Featured Badge */
.status-badge--featured {
  background: #ffffff;
  /* amber-50 */
  color: #000000;
  /* amber-700 */
  border: 1px solid #000000;
  /* amber-300 */
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ===========================
   Mega Menu System
   =========================== */

/* Parent li positioning */
.navbar__item-has-mega {
  position: relative;
}

/* Base Mega Menu Container */
.mega-menu {
  position: absolute;
  top: calc(100% + 22px);
  left: 50%;
  width: 1100px;
  max-width: 95vw;
  opacity: 0;
  visibility: hidden;
  transform: translateY(5px) translateX(-50%);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 100;
}

/* Hover Bridge - Prevents menu from closing when cursor moves through the gap */
.mega-menu::before {
  content: "";
  position: absolute;
  top: -25px;
  /* Matching the gap precisely */
  left: 50%;
  width: 300px;
  /* Narrower width for bridge, centered under Shop link */
  height: 25px;
  transform: translateX(-50%);
  background: transparent;
  z-index: -1;
}

/* Hover trigger */
.navbar__item-has-mega:hover .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) translateX(-50%);
}

.mega-menu__container {
  display: flex;
  gap: 0;
  min-height: 440px;
  padding: 0;
  border-radius: 0 0 16px 16px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
  background: white;
}

.mega-menu__sidebar {
  width: 250px;
  padding: 25px 0;
  background: #f8f9fa;
  flex-shrink: 0;
}

.mega-menu__sidebar-item {
  padding: 14px 30px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-weight: 600;
  font-size: 1.05rem;
  color: #000000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}

.mega-menu__sidebar-item.active {
  background: white;
  color: #c9a24d !important;
}

.mega-menu__sidebar-item.active i {
  opacity: 1 !important;
  transform: translateX(5px);
}

.mega-menu__sidebar-item:hover:not(.active) {
  background: #f0f1f3;
  color: #111;
}

.mega-menu__content-area {
  flex: 1;
  position: relative;
  padding: 40px;
  background: white;
  overflow-y: auto;
}

.mega-menu__pane {
  display: none;
  gap: 50px;
  height: 100%;
  align-items: start;
}

.mega-menu__pane.active {
  display: flex;
}

.mega-menu__pane-image {
  width: 340px;
  flex-shrink: 0;
  animation: slideInLeft 0.5s ease;
}

.mega-menu__pane-image a {
  display: block;
  border-radius: var(--radius-xsm);
  overflow: hidden;
}

.mega-menu__pane-image a:hover img {
  transform: scale(1.05);
}

.mega-menu__banner-img {
  width: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 5;
  display: block;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease-in-out;
}

.mega-menu__img-placeholder {
  width: 100%;
  aspect-ratio: 4 / 5;
  background: #f9f9f9;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ddd;
  border: 2px dashed #eee;
}

.mega-menu__pane-details {
  flex: 1;
  animation: slideInUp 0.5s ease;
}

.mega-menu__pane-header {
  margin-bottom: 30px;
  border-bottom: 1px solid #f0f0f0;
  padding-bottom: 15px;
}

.mega-menu__pane-title {
  font-size: 1.8rem;
  font-weight: 800;
  margin: 0;
  color: #111;
  letter-spacing: -1px;
  text-transform: uppercase;
}

.mega-menu__pane-subtitle {
  color: #888;
  margin-top: 5px;
  font-size: 0.95rem;
}

.mega-menu__sub-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mega-menu__sub-link {
  color: #444;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  transition: all 0.2s;
}

.mega-menu__sub-link:hover {
  color: #c9a24d !important;
}

.mega-menu__sub-link .dot {
  width: 6px;
  height: 6px;
  background: #c9a24d;
  border-radius: 50%;
  display: inline-block;
  opacity: 0;
  transition: opacity 0.2s;
}

.mega-menu__sub-link:hover .dot {
  opacity: 1 !important;
}

.mega-menu__no-results {
  padding: 40px;
  text-align: center;
  background: #fcfcfc;
  border-radius: var(--radius-sm);
  border: 1px solid #f0f0f0;
}

.mega-menu__no-results p {
  color: #999;
  font-style: italic;
  margin: 0;
}

.shop-all-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 50px;
  padding: 12px 25px;
  background: #111;
  color: white;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s;
}

.shop-all-btn:hover {
  background: #c9a24d;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(201, 162, 77, 0.3);
}

/* RTL Support */
html[dir="ltr"] .mega-menu__sidebar-item {
  border-left: 4px solid transparent;
}

html[dir="ltr"] .mega-menu__sidebar-item.active {
  border-left-color: #c9a24d !important;
  padding-left: 35px !important;
}

html[dir="ltr"] .mega-menu__sidebar {
  border-right: 1px solid #eee;
}

html[dir="ltr"] .mega-menu__sub-link:hover {
  padding-left: 5px !important;
}

html[dir="rtl"] .mega-menu__sidebar-item {
  border-right: 4px solid transparent;
}

html[dir="rtl"] .mega-menu__sidebar-item.active {
  border-right-color: #c9a24d !important;
  padding-right: 35px !important;
}

html[dir="rtl"] .mega-menu__sidebar {
  border-left: 1px solid #eee;
}

html[dir="rtl"] .mega-menu__sub-link:hover {
  padding-right: 5px !important;
}

/* Animations */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.mega-menu__inner {
  padding: 0;
}

.mega-menu__grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-8);
  justify-content: center;
  /* Center the columns if they are few */
}

.mega-menu__column {
  flex: 0 0 200px;
  /* Fixed width per column */
  display: flex;
  flex-direction: column;
}

.mega-menu__title {
  font-size: var(--text-sm);
  font-weight: var(--font-bold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-primary);
  margin-bottom: var(--space-4);
  border-bottom: 2px solid var(--color-gray-200);
  padding-bottom: var(--space-2);
  display: inline-block;
  transition: color 0.2s ease;
}

.mega-menu__title:hover {
  color: var(--color-accent);
}

.mega-menu__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mega-menu__list li {
  margin-bottom: var(--space-2);
}

.mega-menu__link {
  font-size: var(--text-sm);
  color: var(--color-gray-600);
  display: inline-block;
  transition: all 0.2s ease;
  position: relative;
  padding-left: 0;
}

.mega-menu__link:hover {
  color: var(--color-accent);
  padding-left: var(--space-2);
}

@media (max-width: 1023px) {
  .mega-menu {
    position: static;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
    /* Hide by default on mobile, handled by JS toggle if exists, but for now stack it */
    border-top: none;
    padding-left: var(--space-4);
  }

  .navbar__item-has-mega:hover .mega-menu,
  .navbar__item-has-mega.active .mega-menu {
    display: block;
  }

  .mega-menu__grid {
    flex-direction: column;
    gap: var(--space-4);
  }

  .mega-menu__column {
    flex: none;
    width: 100%;
  }
}

/* ===========================
   Complete the Look (CTL)
   Modal & Assistant Button
   =========================== */

.ctl-widget {
  background: #F08080;
  border-radius: 0;
  padding: 10px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
  height: 100% !important;
  width: 100%;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
  position: relative;
  /* box-shadow: 0 4px 15px rgba(255, 82, 2, 0.25); */
  text-decoration: none;
}

/* .ctl-widget:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 82, 2, 0.35);
} */
html[dir="rtl"] .ctl-widget {
  padding: 10px 16px;
}

.ctl-widget__content {
  display: flex;
  flex-direction: column;
}

html[dir="rtl"] .ctl-widget__content {
  padding-right: 0;
  padding-left: 10px;
}

.ctl-widget__badge {
  background: #C94F5A;
  border: none;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  width: fit-content;
}

.ctl-widget__badge::before {
  content: "";
  display: block;
  width: 6px;
  height: 6px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 rgba(255, 255, 255, 0.4);
  animation: badge-pulse 2s infinite;
}

@keyframes badge-pulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
  }

  70% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(255, 255, 255, 0);
  }

  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
  }
}

html[dir="rtl"] .ctl-widget__badge {
  flex-direction: row-reverse;
}

.ctl-widget__title {
  font-size: 1.15rem;
  font-weight: 800;
  margin: 0 0 4px 0;
  color: #fff;
  line-height: 1.25;
}

.ctl-widget__subtitle {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 5px 0;
  line-height: 1.3;
}

.ctl-widget__images {
  display: flex;
  gap: 8px;
  align-items: center;
}

.ctl-widget__img {
  width: 70px;
  height: 80px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.1);
  display: block;
  overflow: hidden;
  position: relative;
}

.ctl-widget__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ctl-widget__img-overlay {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: linear-gradient(to left, #4e1f1f, rgba(78, 31, 31, 0));
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 10px;
  color: #fff;
}

html[dir="rtl"] .ctl-widget__img-overlay {
  background: linear-gradient(to right, #4e1f1f, rgba(78, 31, 31, 0));
  justify-content: flex-end;
  /* This points to the physical Left in RTL */
  padding-left: 10px;
}

.ctl-widget__img-overlay svg {
  width: 20px;
  height: 20px;
  transition: transform 0.2s ease;
}

html[dir="rtl"] .ctl-widget__img-overlay svg {
  transform: rotate(180deg);
}

.ctl-widget:hover .ctl-widget__img-overlay svg {
  transform: translateX(4px);
}

html[dir="rtl"] .ctl-widget:hover .ctl-widget__img-overlay svg {
  transform: rotate(180deg) translateX(4px);
}

.ctl-overlay {
  display: none;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  padding: 20px;
  box-sizing: border-box;
  background: rgba(0, 0, 0, 0.6);
  z-index: 999999 !important;
  opacity: 0;
  transition: opacity 0.3s;
  align-items: center !important;
  justify-content: center !important;
}

.ctl-overlay.open {
  display: flex !important;
  opacity: 1;
}

.ctl-modal {
  background: #fff;
  border-radius: 16px;
  width: 100%;
  max-width: 800px;
  max-height: 85vh;
  overflow: hidden;
  transform: scale(0.95);
  opacity: 0;
  transition: all 0.3s ease;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  position: relative !important;
  margin: 0 !important;
}

.ctl-modal.open {
  opacity: 1;
  transform: scale(1);
}

.ctl-modal__close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: #666;
  z-index: 10;
  line-height: 1;
}

html[dir="rtl"] .ctl-modal__close {
  right: auto;
  left: 16px;
}

.ctl-modal__close:hover {
  color: #111;
}

.ctl-modal__header {
  padding: 20px 24px 0;
}

.ctl-modal__title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #111;
  margin: 0;
}

.ctl-modal__subtitle {
  font-size: 0.85rem;
  color: #888;
  margin-top: 4px;
}

.ctl-modal__body {
  display: flex;
  gap: 24px;
  padding: 20px 24px;
  overflow-y: auto;
  flex: 1;
  align-items: flex-start;
}

.ctl-modal__left {
  flex: 0 0 220px;
  position: sticky;
  top: 0;
}

.ctl-modal__left img {
  width: 100%;
  border-radius: 10px;
  aspect-ratio: 3/4;
  object-fit: contain;
  background: #f9f9f9;
}

.ctl-modal__left-name {
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 8px;
  color: #111;
}

.ctl-modal__left-color {
  font-size: 0.75rem;
  color: #888;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
}

.ctl-modal__left-color span {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  display: inline-block;
  border: 1px solid rgba(0, 0, 0, 0.15);
}

.ctl-modal__right {
  flex: 1;
}

.ctl-modal__step-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #111;
  margin-bottom: 16px;
}

.ctl-sizes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(52px, 1fr));
  gap: 8px;
}

.ctl-sz {
  padding: 10px 4px;
  border: 1.5px solid #e0e0e0;
  border-radius: 8px;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  color: #333;
  background: #fff;
}

.ctl-sz:hover {
  border-color: #111;
}

.ctl-sz.active {
  background: #111;
  color: #fff;
  border-color: #111;
}

.ctl-sz.oos {
  opacity: 0.3;
  cursor: not-allowed;
  text-decoration: line-through;
}

.ctl-show-btn {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 10px;
  background: #111;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 20px;
  transition: background 0.3s;
}

.ctl-show-btn:hover {
  background: #333;
}

.ctl-show-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
}

.ctl-results {
  display: none;
  padding: 0 24px 20px;
}

.ctl-results.show {
  display: block;
}

.ctl-results__title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #111;
  margin-bottom: 12px;
}

.ctl-results__scroll {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
}

.ctl-results__scroll::-webkit-scrollbar {
  height: 4px;
}

.ctl-results__scroll::-webkit-scrollbar-thumb {
  background: #ddd;
  border-radius: 4px;
}

.ctl-rcard {
  flex: 0 0 180px;
  scroll-snap-align: start;
  border: 1px solid #f0f0f0;
  border-radius: 10px;
  overflow: hidden;
  transition: box-shadow 0.3s;
}

.ctl-rcard:hover {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.ctl-rcard__img {
  aspect-ratio: 3/4;
  overflow: hidden;
  background: #f5f5f5;
}

.ctl-rcard__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ctl-rcard__body {
  padding: 10px;
}

.ctl-rcard__name {
  font-size: 0.8rem;
  font-weight: 600;
  color: #111;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-decoration: none;
  display: block;
}

.ctl-rcard__name:hover {
  color: var(--color-accent, #C9A24D);
}

.ctl-rcard__price {
  font-size: 0.85rem;
  font-weight: 700;
  color: #111;
  margin-bottom: 8px;
}

.ctl-rcard__price small {
  font-weight: 400;
  color: #999;
}

.ctl-rcard__price del {
  color: #aaa;
  font-weight: 400;
  font-size: 0.75rem;
  margin-left: 6px;
}

.ctl-rcard__add {
  width: 100%;
  padding: 8px;
  border: none;
  border-radius: 6px;
  background: #111;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.ctl-rcard__add:hover {
  background: #333;
}

.ctl-no-results {
  text-align: center;
  padding: 30px;
  color: #999;
  font-style: italic;
}

.ctl-back-btn {
  background: none;
  border: none;
  font-size: 0.85rem;
  color: #666;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 12px;
  padding: 0;
}

.ctl-back-btn:hover {
  color: #111;
}

@media (max-width: 639px) {
  .ctl-modal {
    width: 95vw;
    max-height: 95vh;
  }

  .ctl-modal__body {
    flex-direction: column;
    gap: 16px;
  }

  .ctl-modal__left {
    flex: none;
    display: flex;
    gap: 12px;
    align-items: center;
  }

  .ctl-modal__left img {
    width: 80px;
    flex: 0 0 80px;
  }

  .ctl-rcard {
    flex: 0 0 150px;
  }
}


/* ===========================
   Additional Utility Classes for Laravel Views
   =========================== */

/* Text Sizes */
.text-xs {
  font-size: 0.75rem;
  line-height: 1rem;
}

.text-sm {
  font-size: 0.875rem;
  line-height: 1.25rem;
}

/* Text Colors */
.text-gray-400 {
  color: #9ca3af;
}

.text-gray-500 {
  color: #6b7280;
}

.text-gray-600 {
  color: #4b5563;
}

.text-gray-700 {
  color: #374151;
}

.text-gray-800 {
  color: #1f2937;
}

.text-gray-900 {
  color: #111827;
}

.text-blue-600 {
  color: #2563eb;
}

.text-blue-700 {
  color: #1d4ed8;
}

.text-blue-900 {
  color: #1e3a8a;
}

.text-red-500 {
  color: #ef4444;
}

.text-red-600 {
  color: #dc2626;
}

.text-red-900 {
  color: #7f1d1d;
}

.text-green-600 {
  color: #16a34a;
}

.text-amber-600 {
  color: #d97706;
}

.text-warning {
  color: #f59e0b;
}

.text-danger {
  color: #dc2626;
}

.text-accent {
  color: var(--color-accent);
}

/* Background Colors */
.bg-white {
  background-color: #ffffff;
}

.bg-gray-50 {
  background-color: #f9fafb;
}

.bg-gray-100 {
  background-color: #f3f4f6;
}

.bg-gray-200 {
  background-color: #e5e7eb;
}

.bg-blue-50 {
  background-color: #eff6ff;
}

.bg-blue-100 {
  background-color: #dbeafe;
}

.bg-red-50 {
  background-color: #fef2f2;
}

.bg-red-100 {
  background-color: #fee2e2;
}

.bg-green-50 {
  background-color: #f0fdf4;
}

.bg-amber-50 {
  background-color: #fffbeb;
}

/* Border Colors */
.border-gray-100 {
  border-color: #f3f4f6;
}

.border-gray-200 {
  border-color: #e5e7eb;
}

.border-gray-300 {
  border-color: #d1d5db;
}

.border-blue-100 {
  border-color: #dbeafe;
}

.border-blue-500 {
  border-color: #3b82f6;
}

.border-transparent {
  border-color: transparent;
}

/* Border Width */
.border {
  border-width: 1px;
}

.border-t {
  border-top-width: 1px;
}

.border-b {
  border-bottom-width: 1px;
}

.border-t-4 {
  border-top-width: 4px;
}

/* Border Radius */
.rounded {
  border-radius: 0.25rem;
}

.rounded-lg {
  border-radius: 0.5rem;
}

.rounded-full {
  border-radius: 9999px;
}

/* Padding */
.p-0 {
  padding: 0;
}

.p-1 {
  padding: 0.25rem;
}

.p-2 {
  padding: 0.5rem;
}

.p-3 {
  padding: 0.75rem;
}

.px-2 {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

.py-1 {
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
}

.py-2 {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.py-12 {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.pt-2 {
  padding-top: 0.5rem;
}

.pb-4 {
  padding-bottom: 1rem;
}

.pl-9 {
  padding-left: 2.25rem;
}

.pr-2 {
  padding-right: 0.5rem;
}

/* Margin */
.m-0 {
  margin: 0;
}

.mt-1 {
  margin-top: 0.25rem;
}

.mt-2 {
  margin-top: 0.5rem;
}

.mb-0 {
  margin-bottom: 0;
}

.mb-2 {
  margin-bottom: 0.5rem;
}

.ml-1 {
  margin-left: 0.25rem;
}

/* Width & Height */
.w-8 {
  width: 2rem;
}

.w-12 {
  width: 3rem;
}

.w-1\/3 {
  width: 33.333333%;
}

.h-5 {
  height: 1.25rem;
}

.h-8 {
  height: 2rem;
}

.h-12 {
  height: 3rem;
}

.h-20 {
  height: 5rem;
}

/* Display */
.inline-flex {
  display: inline-flex;
}

/* Font Weight */
.font-medium {
  font-weight: 500;
}

.font-semibold {
  font-weight: 600;
}

.font-bold {
  font-weight: 700;
}

/* Text Transform */
.uppercase {
  text-transform: uppercase;
}

/* Text Decoration */
.line-through {
  text-decoration: line-through;
}

/* Whitespace */
.whitespace-nowrap {
  white-space: nowrap;
}

/* Letter Spacing */
.tracking-wider {
  letter-spacing: 0.05em;
}

/* Line Height */
.leading-relaxed {
  line-height: 1.625;
}

/* Overflow */
.overflow-x-auto {
  overflow-x: auto;
}

/* Flex Shrink */
.flex-shrink-0 {
  flex-shrink: 0;
}

/* Divide */
.divide-y>*+* {
  border-top-width: 1px;
}

.divide-gray-200>*+* {
  border-color: #e5e7eb;
}

/* Space */
.space-y-4>*+* {
  margin-top: 1rem;
}

/* Shadow */
.shadow-sm {
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

/* Transitions */
.transition-colors {
  transition-property: color, background-color, border-color;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.transition-all {
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

/* Hover States */
.hover\:bg-gray-50:hover {
  background-color: #f9fafb;
}

.hover\:bg-gray-100:hover {
  background-color: #f3f4f6;
}

.hover\:bg-blue-50:hover {
  background-color: #eff6ff;
}

.hover\:bg-blue-100:hover {
  background-color: #dbeafe;
}

.hover\:bg-red-50:hover {
  background-color: #fef2f2;
}

.hover\:bg-red-100:hover {
  background-color: #fee2e2;
}

.hover\:text-blue-900:hover {
  color: #1e3a8a;
}

.hover\:text-red-900:hover {
  color: #7f1d1d;
}

.hover\:border-gray-200:hover {
  border-color: #e5e7eb;
}

/* Focus States */
.focus\:ring-primary:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.focus\:border-primary:focus {
  border-color: var(--color-primary);
}

.focus\:bg-white:focus {
  background-color: #ffffff;
}

/* Group Hover */
.group:hover .group-hover\:border-gray-200 {
  border-color: #e5e7eb;
}

/* Status Badges */
.status-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
}

.status-badge--active {
  background: #d1fae5;
  color: #059669;
}

.status-badge--inactive {
  background: #fee2e2;
  color: #dc2626;
}

.status-badge--pending-confirmation {
  background: #fef3c7;
  color: #d97706;
}

.status-badge--confirmed {
  background: #dbeafe;
  color: #1d4ed8;
}

.status-badge--shipped {
  background: #e0e7ff;
  color: #4f46e5;
}

.status-badge--delivered {
  background: #d1fae5;
  color: #059669;
}

.status-badge--cancelled {
  background: #fee2e2;
  color: #dc2626;
}

/* Responsive - Large screens */
@media (min-width: 1024px) {
  .lg\:grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }

  .lg\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lg\:grid-cols-12 {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }

  .lg\:col-span-4 {
    grid-column: span 4 / span 4;
  }

  .lg\:col-span-8 {
    grid-column: span 8 / span 8;
  }
}

/* Responsive - Small screens */
@media (min-width: 640px) {
  .sm\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sm\:text-sm {
    font-size: 0.875rem;
    line-height: 1.25rem;
  }
}

/* Min Height */
.min-h-\[500px\] {
  min-height: 500px;
}

/* ===========================
   Maintenance & Error Pages
   =========================== */
.maintenance-page {
  background-color: var(--color-gray-50);
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-family: var(--font-primary);
}

.maintenance-card {
  text-align: center;
  padding: var(--space-12);
  max-width: 600px;
  width: 90%;
  background: none;
  backdrop-filter: blur(var(--blur-lg));
  -webkit-backdrop-filter: blur(var(--blur-lg));
  border: 1px solid var(--glass-border-light);
  border-radius: var(--radius-2xl);
  /* box-shadow: var(--shadow-xl); */
  animation: maintenanceFadeIn 1s ease-out;
}

@keyframes maintenanceFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.maintenance-logo {
  height: 50px;
  margin-bottom: var(--space-10);
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.maintenance-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: var(--font-bold);
  margin-bottom: var(--space-8);
  color: var(--color-primary);
  line-height: var(--leading-tight);
}

.maintenance-loader {
  display: flex;
  justify-content: center;
  gap: var(--space-2);
  margin-top: var(--space-4);
}

.maintenance-loader span {
  width: 8px;
  height: 8px;
  background-color: var(--color-accent);
  border-radius: var(--radius-full);
  animation: maintenanceBounce 1.4s infinite ease-in-out both;
}

.maintenance-loader span:nth-child(1) {
  animation-delay: -0.32s;
}

.maintenance-loader span:nth-child(2) {
  animation-delay: -0.16s;
}

@keyframes maintenanceBounce {

  0%,
  80%,
  100% {
    transform: scale(0);
    opacity: 0.3;
  }

  40% {
    transform: scale(1);
    opacity: 1;
  }
}

.maintenance-footer {
  font-size: var(--text-xsm);
  color: var(--color-gray-400);
  margin-top: var(--space-8);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
}

.maintenance-lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-6);
  padding: var(--space-2) var(--space-6);
  background: var(--color-secondary);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-full);
  color: var(--color-primary);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  text-decoration: none;
  transition: all var(--transition-fast);
  margin-bottom: var(--space-4);
}

.maintenance-lang-switcher:hover {
  background: var(--color-gray-100);
  border-color: var(--color-accent);
  color: var(--color-accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

/* Add to Cart Internal Shine Animation */
.btn-add-cart {
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-add-cart::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right,
      rgba(255, 255, 255, 0) 0%,
      rgba(223, 223, 223, 0.582) 50%,
      rgba(255, 255, 255, 0) 100%);
  transform: skewX(-25deg);
  animation: btn-cart-shine 4s infinite ease-in-out;
}

@keyframes btn-cart-shine {
  0% {
    left: -100%;
  }

  25% {
    left: 150%;
  }

  /* Sweep happens in the first 25% of the time (1s) */
  100% {
    left: 150%;
  }

  /* Then it 'rests' for the remaining 75% (3s) */
}

.btn-add-cart:hover::after {
  animation-duration: 2s;
  /* Still faster on hover but not too much */
}

/* ===========================
   Mobile UI Refinements
   =========================== */
@media (max-width: 1023px) {

  /* Hide Wishlist in top navbar */
  .navbar__icon-btn.wishlist-icon {
    display: none !important;
  }

  /* Hide Cart in Bottom Nav */
  .mobile-nav__item--cart {
    display: none !important;
  }

  /* Reorder top navbar icons: Cart before Account */
  .navbar__cart-wrapper {
    order: 1;
  }

  .navbar__account-btn {
    order: 2;
  }

  /* Hide Top Navbar Language Switcher */
  .navbar__lang-dropdown {
    display: none !important;
  }

  /* Floating Mobile Language Switcher */
  .mobile-lang-box {
    position: fixed;
    bottom: 90px;
    /* Above bottom nav (80px padding) */
    right: 15px;
    z-index: 1000;
    display: block;
  }

  [dir="rtl"] .mobile-lang-box {
    right: auto;
    left: 15px;
  }

  .mobile-lang-trigger {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: var(--color-primary, #111);
    color: var(--color-secondary, #fff);
    border: 2px solid #c9a24d;
    font-weight: 700;
    font-size: 10px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
  }

  .mobile-lang-trigger:active {
    transform: scale(0.9);
  }

  .mobile-lang-menu {
    position: absolute;
    bottom: 55px;
    right: 0;
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(24px) saturate(200%);
    -webkit-backdrop-filter: blur(24px) saturate(200%);
    border-radius: 18px;
    box-shadow:
      0 1px 0 0 rgba(255, 255, 255, 0.6) inset,
      0 -0.5px 0 0 rgba(255, 255, 255, 0.3) inset,
      0 4px 30px rgba(0, 0, 0, 0.06),
      0 1px 3px rgba(0, 0, 0, 0.04);
    min-width: 120px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.5);
  }

  [dir="rtl"] .mobile-lang-menu {
    right: auto;
    left: 0;
  }

  .mobile-lang-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .mobile-lang-menu a {
    display: block;
    padding: 12px 20px;
    color: #444;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s;
    text-align: left;
  }

  [dir="rtl"] .mobile-lang-menu a {
    text-align: right;
  }

  .mobile-lang-menu a:not(:last-child) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  }

  .mobile-lang-menu a.active {
    color: #000;
    background: rgba(0, 0, 0, 0.08);
    font-weight: 700;
  }
}

/* Ensure hidden on desktop */
@media (min-width: 1024px) {
  .mobile-lang-box {
    display: none;
  }
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: white;
  z-index: 9999;
  padding: 15px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  animation: cookieSlideUp 0.5s ease-out;
}

.cookie-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.cookie-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.cookie-content p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  flex: 1;
  text-align: left;
}

[dir="rtl"] .cookie-content p {
  text-align: right;
}

.cookie-content a {
  color: #fff;
  text-decoration: underline;
  margin: 0 5px;
  font-weight: 500;
}

.cookie-content button {
  background: #fff;
  color: #000;
  border: none;
  padding: 8px 25px;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.3s ease;
  font-size: 13px;
}

.cookie-content button:hover {
  background: var(--color-accent, #d4af37);
  color: #fff;
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  .cookie-banner {
    padding: 20px 0;
  }

  .cookie-content {
    flex-direction: column !important;
    text-align: center;
    gap: 15px;
  }

  .cookie-content p {
    text-align: center !important;
    font-size: 13px;
  }

  .cookie-content button {
    width: 100%;
    padding: 12px;
  }
}

@keyframes cookieSlideUp {
  from {
    transform: translateY(100%);
  }

  to {
    transform: translateY(0);
  }
}

/* =============================================
   Hot This Week Section
   ============================================= */
/* =============================================
   Hot This Week Section (Clean & Redesigned)
   ============================================= */
.hot-week {
  background: #ffffff;
  padding: 60px 0;
}

.hot-week__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 40px;
  border-bottom: none;
  padding-bottom: 0;
  gap: 12px;
}

.hot-week__title {
  font-size: 15px;
  font-weight: 800;
  color: #111111;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

/* Tabs */
.hot-week__tabs {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 300px;
  border-bottom: none;
  margin-top: 10px;
}

.hot-week__tab {
  background: none;
  border: none;
  padding: 4px 10px;
  font-size: 64px;
  font-weight: 800;
  color: #111111;
  opacity: 0.35;
  cursor: pointer;
  position: relative;
  transition: all 0.3s ease;
  border-radius: 0;
  font-family: 'Outfit', 'Inter', 'Arial Black', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.hot-week__tab::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 100%;
  height: 3px;
  background: #fb6445;
  /* Orange accent line */
  transform: scaleX(0);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: center;
}

.hot-week__tab:hover {
  opacity: 0.8;
}

.hot-week__tab.active {
  opacity: 1;
  font-weight: 800 !important;
}

.hot-week__tab.active::after {
  transform: scaleX(1);
}

/* Panels */
.hot-week__panel {
  display: none;
  width: 100%;
}

.hot-week__panel.active {
  display: block;
}

.hot-week__products {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  width: 100%;
}

.hot-week__products .product-card {
  width: 100%;
  margin: 0;
}

.hot-week__empty {
  grid-column: 1 / -1;
  text-align: center;
  color: #999;
  padding: 40px 0;
  font-size: 14px;
}



[dir="rtl"] .hot-week__tab::after {
  left: 0;
  right: 0;
  transform: scaleX(0);
}

[dir="rtl"] .hot-week__tab.active::after {
  transform: scaleX(1);
}

/* =============================================
   Hot This Week - Responsive
   ============================================= */
@media (max-width: 1024px) {
  .hot-week__products {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }
}

@media (max-width: 768px) {
  .hot-week {
    padding: 40px 0;
  }

  .hot-week__header {
    margin-bottom: 25px;
    gap: 10px;
  }

  .hot-week__title {
    font-size: 13px;
    letter-spacing: 1.2px;
  }

  .hot-week__tabs {
    gap: 120px;
  }

  .hot-week__tab {
    white-space: nowrap;
    font-size: 48px !important;
    font-weight: 800 !important;
    font-family: 'Outfit', 'Inter', 'Arial Black', sans-serif !important;
    padding: 4px 6px;
  }

  .hot-week__tab::after {
    bottom: -6px;
    width: 100% !important;
  }

  .hot-week__products {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
}

@media (max-width: 480px) {
  .hot-week__tabs {
    gap: 80px;
  }

  .hot-week__tab {
    font-size: 48px !important;
    font-weight: 800 !important;
    font-family: 'Outfit', 'Inter', 'Arial Black', sans-serif !important;
  }

  .hot-week__tab::after {
    width: 100% !important;
  }

  .hot-week__products {
    gap: 6px;
  }
}




/* ===========================
   Responsive Utilities
   =========================== */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 1rem;
}

.table-responsive table {
  min-width: 600px;
}

@media (max-width: 768px) {
  .btn {
    padding: var(--space-3) var(--space-6);
    font-size: var(--text-sm);
  }

  .btn-lg {
    padding: var(--space-4) var(--space-8);
    font-size: var(--text-base);
  }
}

/* ==========================================================================
   MODERN PRODUCT CARD REDESIGN (MATCHING THE USER'S EXPECTED DESIGN)
   ========================================================================== */

/* 1. Card Container & Image Container */
.product-card--modern.product-card {
  background: transparent !important;
  border-radius: 16px !important;
  overflow: visible !important;
  box-shadow: none !important;
  border: none !important;
  transition: transform 0.3s ease !important;
  min-width: 0 !important;
}

.product-card--modern .product-card__image {
  background-color: #f3f4f6 !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  position: relative !important;
  aspect-ratio: 3 / 4 !important;
  border: none !important;
}

/* 2. Image Hover Transition (Smooth Fade-in, no lag) */
.product-card--modern .product-card__image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  transition: opacity 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}

.product-card--modern .product-card__image .main-img {
  opacity: 1 !important;
  visibility: visible !important;
}

.product-card--modern .product-card__image .hover-img {
  position: absolute !important;
  inset: 0 !important;
  opacity: 0 !important;
  visibility: visible !important;
  pointer-events: none !important;
}

.product-card--modern .product-card__image:hover .hover-img {
  opacity: 1 !important;
}

/* 3. Badge Styling (NEW / SALE / SOLD OUT) */
.product-card--modern .product-card__badge {
  padding: 6px 12px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: normal !important;
  border-radius: 6px !important;
  display: inline-block !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05) !important;
}

.product-card--modern .product-card__badge--new {
  background-color: #ff5722 !important;
  /* Orange background */
  color: #ffffff !important;
}

.product-card--modern .product-card__badge--sale {
  background-color: #dc2626 !important;
  color: #ffffff !important;
}

.product-card--modern .product-card__badge--sold {
  background-color: #4b5563 !important;
  color: #ffffff !important;
}

/* 4. Action Buttons (Wishlist and Quick View) inside Image */
.product-card--modern .product-card__actions {
  position: absolute !important;
  bottom: 16px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  right: auto !important;
  top: auto !important;
  display: flex !important;
  flex-direction: row !important;
  gap: 12px !important;
  z-index: 10 !important;
}

.product-card--modern .product-card__action-btn {
  width: 44px !important;
  height: 44px !important;
  border-radius: 50% !important;
  background: #ffffff !important;
  color: #1a1a1a !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
  border: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
  opacity: 0 !important;
  visibility: hidden !important;
  transform: translateY(15px) scale(0.8) !important;
}

.product-card--modern .product-card__image:hover .product-card__action-btn {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) scale(1) !important;
}

/* First button (left) appears first, then second */
.product-card--modern .product-card__image:hover .product-card__action-btn:first-child {
  transition-delay: 0s !important;
}

.product-card--modern .product-card__image:hover .product-card__action-btn:last-child {
  transition-delay: 0.1s !important;
}

.product-card--modern .product-card__action-btn:hover {
  transform: scale(1.08) !important;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15) !important;
  color: #000000 !important;
  background: #ffffff !important;
}

.product-card--modern .product-card__action-btn svg {
  stroke: #1a1a1a !important;
  stroke-width: 1.5px !important;
}

/* Active wishlist state styling */
.product-card--modern .product-card__action-btn.wishlist-btn--active {
  background-color: #ffffff !important;
}

.product-card--modern .product-card__action-btn.wishlist-btn--active svg {
  fill: #ef4444 !important;
  stroke: #ef4444 !important;
}

/* 5. Product Card Content (Left-aligned) */
.product-card--modern .product-card__content {
  padding: 12px 4px 4px 4px !important;
  text-align: left !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  overflow: hidden !important;
}

.product-card--modern .product-card__title {
  font-size: 0.95rem !important;
  font-weight: 500 !important;
  color: #1a1a1a !important;
  line-height: 1.4 !important;
  text-align: left !important;
  margin: 0 !important;
}

.product-card--modern .product-card__title a {
  color: #1a1a1a !important;
  text-decoration: none !important;
  transition: color 0.2s ease !important;
}

.product-card--modern .product-card__title a:hover {
  color: #ff5722 !important;
}

.product-card--modern .product-card__price {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  justify-content: flex-start !important;
  margin: 0 !important;
  font-size: 0.70rem !important;
}

.product-card--modern .product-card__price-old {
  font-size: 0.70rem !important;
  color: #9ca3af !important;
  text-decoration: line-through !important;
  font-weight: 400 !important;
}

.product-card--modern .product-card__price-current {
  font-size: 0.70rem !important;
  font-weight: 700 !important;
  color: #ef4444 !important;
}

/* 6. Bottom Row (Variant Swatches + Quick Add Button) */
.product-card--modern .product-card__bottom-row {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  margin-top: 4px !important;
  gap: 12px !important;
  min-width: 0 !important;
  max-width: 100% !important;
}

.product-card--modern .product-card__colors {
  display: flex !important;
  gap: 6px !important;
  margin: 0 !important;
  justify-content: flex-start !important;
  flex-wrap: nowrap !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  -webkit-overflow-scrolling: touch !important;
  scrollbar-width: none !important;
  /* Firefox */
  -ms-overflow-style: none !important;
  /* IE/Edge */
  flex: 1 !important;
  min-width: 0 !important;
}

.product-card--modern .product-card__colors::-webkit-scrollbar {
  display: none !important;
  /* Chrome/Safari */
}

.product-card--modern .product-card__color {
  width: 45px !important;
  height: 45px !important;
  border-radius: 1px !important;
  border: 1px solid #e5e7eb !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  background-size: cover !important;
  background-position: center !important;
  box-shadow: none !important;
}

.product-card--modern .product-card__color:hover,
.product-card--modern .product-card__color.active {
  border-color: #000000 !important;
  box-shadow: 0 0 0 1px #000000 !important;
}

.product-card--modern .product-card__quick-add {
  position: static !important;
  transform: none !important;
  opacity: 1 !important;
  width: auto !important;
  height: auto !important;
  padding: 12px 16px !important;
  background: #ffffff !important;
  color: #000000 !important;
  border: 2px solid #000000 !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  font-size: 0.8rem !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  transition: all 0.2s ease-in-out !important;
  white-space: nowrap !important;
  margin-left: auto !important;
}

.product-card--modern .product-card__quick-add svg {
  display: none !important;
}

.product-card--modern .product-card__quick-add:hover {
  background: #000000 !important;
  color: #ffffff !important;
  border-color: #000000 !important;
}

.product-card--modern .product-card__quick-add.success {
  background: #10b981 !important;
  color: #ffffff !important;
  border-color: #10b981 !important;
}

.product-card--modern .product-card__quick-add.loading {
  background: #f3f4f6 !important;
  color: #9ca3af !important;
  border-color: #e5e7eb !important;
  cursor: not-allowed !important;
}

@media (max-width: 576px) {
  .product-card--modern .product-card__bottom-row {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  .product-card--modern .product-card__bottom-row.product-card__bottom-row--icon-button {
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 8px !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  .product-card--modern .product-card__quick-add:not(.product-card__quick-add--icon) {
    width: 100% !important;
    margin-left: 0 !important;
    padding: 6px 12px !important;
  }

  .product-card--modern .product-card__colors {
    justify-content: flex-start !important;
  }

  .product-card--modern .product-card__bottom-row.product-card__bottom-row--icon-button .product-card__colors {
    justify-content: flex-start !important;
  }

  .product-card--modern .product-card__content {
    text-align: center !important;
  }

  .product-card--modern .product-card__title {
    text-align: center !important;
  }

  .product-card--modern .product-card__price {
    justify-content: center !important;
  }

  /* Mobile-specific changes as requested */
  /* 1. Smaller price text */
  .product-card__price-current {
    font-size: 0.65rem !important;
  }

  .product-card__price-old {
    font-size: 0.55rem !important;
  }

  /* 2. Fix badge position & size on mobile */
  .product-card__badges {
    top: 8px !important;
    left: 8px !important;
    gap: 6px !important;
  }

  [dir="rtl"] .product-card__badges {
    left: auto !important;
    right: 8px !important;
  }

  .product-card__badge {
    padding: 4px 8px !important;
    font-size: 10px !important;
    border-radius: 6px !important;
  }

  /* 3. Smaller quick view & wishlist buttons */
  .product-card__action-btn {
    width: 32px !important;
    height: 32px !important;
  }

  .product-card--modern .product-card__action-btn {
    width: 32px !important;
    height: 32px !important;
  }
}

/* Style override for Icon Only Quick Add button in Modern Card Style */
.product-card--modern .product-card__quick-add.product-card__quick-add--icon {
  width: 45px !important;
  height: 45px !important;
  padding: 0 !important;
  border-radius: 1px !important;
  /* matches color swatch border-radius */
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-left: auto !important;
  flex-shrink: 0 !important;
}

.product-card--modern .product-card__quick-add.product-card__quick-add--icon svg {
  display: inline-block !important;
  /* show custom icon */
}