/* ==========================================================================
   MARKITLY DESIGN SYSTEM & STYLESHEET
   ========================================================================== */

@import url('https://fonts.cdnfonts.com/css/sf-pro-display');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&family=Unbounded:wght@800;900&display=swap');

.font-apple-sf {
  font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

:root {
  --font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  /* Noon Brand Palette */
  --noon-yellow: #FFE000;
  --noon-blue: #18181b; /* Replaced blue with luxury dark carbon gray */
  --primary: #1e2022; /* Slate/Charcoal for primary texts/headers */
  --primary-light: #323538;
  
  --accent: var(--noon-yellow);
  --accent-hover: #E5C900;
  --accent-soft: #FFF9C4;
  --accent-soft-hover: #FFF59D;
  
  --bg-main: #f7f9fa; /* Classic e-commerce light gray background */
  --bg-surface: #ffffff;
  --bg-alt: #0a0b0d; /* Midnight black footer */
  
  --border-color: #e4e6eb;
  --border-hover: #ccd0d5;
  --border-focus: var(--noon-yellow);
  
  /* Text colors */
  --text-main: #1e2022;
  --text-muted: #687182;
  --text-light: #98a2b3;
  --text-white: #ffffff;
  --primary-btn-text: #1e2022;
  
  /* Typography weights */
  --font-weight-black: 800;
  
  /* Missing border radius tokens */
  --radius-round: 50%;
  
  /* Design Tokens */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.05);
  --shadow-lg: 0 12px 32px rgba(0,0,0,0.08);
  --shadow-premium: 0 20px 48px -10px rgba(0,0,0,0.12);
  --shadow-inset: inset 0 2px 4px rgba(0,0,0,0.02);
  
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   BASE & RESET & BUTTER-SMOOTH PERFORMANCE SUITE
   ========================================================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  min-height: 100%;
  scroll-behavior: smooth !important;
  -webkit-tap-highlight-color: transparent;
  text-rendering: optimizeSpeed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  touch-action: pan-x pan-y;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  overscroll-behavior-y: none;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  touch-action: pan-x pan-y;
  -webkit-text-size-adjust: 100%;
}

body.modal-open,
body.cart-open,
body.mktly-scroll-locked {
  overflow: hidden !important;
  position: fixed !important;
  width: 100% !important;
  touch-action: none !important;
  -webkit-overflow-scrolling: none !important;
}

#checkout-modal-overlay,
#checkout-modal-card,
#checkout-modal-body,
#checkout-step2-items-list,
#checkout-country-modal,
#checkout-country-list,
#checkout-city-modal,
#checkout-city-list,
.checkout-modal-scroll,
#ruul-card-checkout-modal,
#ruul-card-checkout-card,
#ruul-legal-modal,
#ruul-legal-card,
#secure-checkout-loading-overlay,
#crypto-payment-modal,
#crypto-payment-modal-card,
#order-confirmed-modal,
#customer-order-review-modal,
#cart-delivery-modal-overlay,
#address-dropdown {
  overscroll-behavior: contain !important;
}

#checkout-modal-body,
#checkout-step2-items-list,
#checkout-country-list,
#checkout-city-list,
.checkout-modal-scroll,
#ruul-card-checkout-card,
#crypto-payment-modal-card {
  touch-action: pan-y !important;
}

main {
  flex: 1 0 auto;
  width: 100%;
}

.transform-gpu {
  transform: translate3d(0, 0, 0);
  will-change: transform, opacity;
}

.touch-scroll-momentum {
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
}

/* 2.7s Black Pay Button -> 3-Dot White Wave Processing State */
#ruul-pay-submit-btn.is-processing,
#ruul-pay-submit-btn.is-processing:disabled {
  background-color: #111111 !important;
  color: #ffffff !important;
  opacity: 1 !important;
  pointer-events: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  visibility: visible !important;
}

@keyframes ruulPayDotPulse {
  0%, 100% {
    opacity: 0.35;
    background-color: rgba(255, 255, 255, 0.35);
    transform: scale(1);
  }
  40% {
    opacity: 1;
    background-color: #ffffff;
    transform: scale(1.08);
  }
}

.ruul-pay-dots {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  visibility: visible;
  opacity: 1;
}

.ruul-pay-dots .pay-dot,
.ruul-pay-dot {
  display: inline-block;
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  min-width: 7px;
  min-height: 7px;
  border-radius: 50%;
  background-color: #ffffff;
  font-size: 0;
  line-height: 0;
  opacity: 0.35;
  transform: scale(1);
  visibility: visible;
  animation: ruulPayDotPulse 1.1s ease-in-out infinite both;
  will-change: opacity, transform, background-color;
}

.ruul-pay-dots .pay-dot:nth-child(1),
.ruul-pay-dot:nth-child(1) {
  animation-delay: 0ms;
}

.ruul-pay-dots .pay-dot:nth-child(2),
.ruul-pay-dot:nth-child(2) {
  animation-delay: 180ms;
}

.ruul-pay-dots .pay-dot:nth-child(3),
.ruul-pay-dot:nth-child(3) {
  animation-delay: 360ms;
}

.ruul-field-invalid {
  border-color: #dc2626 !important;
  box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.16) !important;
}

.offscreen-render-lazy {
  content-visibility: auto;
  contain-intrinsic-size: 1px 350px;
}

button, a {
  touch-action: manipulation;
}

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

button {
  border: none;
  background: none;
  font-family: inherit;
  cursor: pointer;
  outline: none;
  transition: var(--transition-fast);
}

input,
select,
textarea {
  font-family: inherit;
  font-size: 16px;
}

input {
  font-family: inherit;
  font-size: 16px;
  border: none;
  outline: none;
}

ul {
  list-style: none;
}

img, svg {
  display: block;
  max-width: 100%;
}

.container {
  width: 100%;
  max-width: 1440px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
  box-sizing: border-box;
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
.header {
  background-color: var(--bg-surface);
  border: none;
  border-bottom: none;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: none;
  border-radius: 0;
  overflow: visible;
}

/* ==========================================================================
   PILL CATEGORY BAR
   ========================================================================== */
.sub-header-bar {
  background: #fff;
  border-bottom: 1px solid var(--border-color);
  padding: 8px 0;
  overflow: hidden;
}

.sub-header__scroll-track {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding: 0 24px;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  white-space: nowrap;
}

.sub-header__scroll-track::-webkit-scrollbar {
  display: none;
}

.sub-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  padding: 7px 16px;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 700;
  font-family: var(--font-family);
  color: var(--text-main);
  background: var(--bg-main);
  border: 1.5px solid var(--border-color);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.18s ease;
  flex-shrink: 0;
}

.sub-pill:hover {
  background: var(--noon-blue);
  color: #fff;
  border-color: var(--noon-blue);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(56, 102, 223, 0.25);
}

.sub-pill--active {
  background: var(--noon-blue);
  color: #fff;
  border-color: var(--noon-blue);
  box-shadow: 0 4px 12px rgba(56, 102, 223, 0.2);
}

.sub-pill--sale {
  color: #ff3f6c;
  border-color: #ffd0db;
  background: #fff5f7;
}

.sub-pill--sale:hover {
  background: #ff3f6c;
  color: #fff;
  border-color: #ff3f6c;
  box-shadow: 0 4px 12px rgba(255, 63, 108, 0.25);
}



.header__nav {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 84px;
  padding: 0 24px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.logo {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 1.5rem;
  font-weight: var(--font-weight-black, 800);
  letter-spacing: -0.5px;
  color: var(--primary);
  flex-shrink: 0;
  min-width: 0;
  white-space: nowrap;
}

.logo__icon {
  width: 32px;
  height: 32px;
  color: var(--accent);
}

/* Search Bar Component */
.search-wrapper {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  max-width: 600px;
  margin: 0 12px;
}

.search-bar {
  display: flex;
  align-items: center;
  background-color: var(--bg-main);
  border: 2px solid transparent;
  border-radius: var(--radius-full);
  padding: 4px 20px;
  height: 48px;
  width: 100%;
  transition: var(--transition-fast);
}

.search-bar:focus-within {
  border-color: var(--border-focus);
  background-color: var(--bg-surface);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.search-bar__icon {
  width: 20px;
  height: 20px;
  color: var(--text-muted);
  margin-right: 12px;
}

.search-bar__input {
  background: transparent;
  width: 100%;
  font-size: 16px;
  color: var(--text-main);
}

.search-bar__input::placeholder {
  color: var(--text-light);
}

/* Autocomplete Dropdown - Clean Glassmorphism */
.search-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(18, 18, 24, 0.75) !important;
  backdrop-filter: blur(12px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(12px) saturate(180%) !important;
  transform: translateZ(0) !important;
  will-change: transform, opacity !important;
  border-radius: 20px !important;
  margin-top: 8px !important;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  overflow: hidden !important;
  display: none;
  z-index: 1000 !important;
}

.search-suggestions.is-active {
  display: block;
  animation: slideDown 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.suggestion-group {
  padding: 12px 0;
}

.suggestion-group__title {
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--text-light);
  padding: 6px 20px;
}

.suggestion-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
  font-size: 0.9rem;
  color: var(--text-main);
  cursor: pointer;
  transition: var(--transition-fast);
}

.suggestion-item:hover {
  background-color: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.suggestion-item__icon {
  width: 16px;
  height: 16px;
  color: var(--text-muted);
}

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

.nav-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
}

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

.nav-link--accent {
  color: var(--accent);
}

.nav-link--accent:hover {
  color: var(--accent-hover);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
  margin-left: auto;
}

.action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  color: var(--text-muted);
}

.action-btn:hover {
  background-color: var(--bg-main);
  color: var(--primary);
}

.action-btn__icon {
  width: 22px;
  height: 22px;
}

/* Region Selector Popover */
.region-selector {
  position: relative;
}

.region-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: var(--bg-main);
  border: 1px solid var(--border-color);
  padding: 6px 14px;
  height: 40px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  transition: var(--transition-fast);
}

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

.region-btn__flag {
  display: inline-block;
  width: 20px;
  height: 15px;
  border-radius: 2px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.region-btn__arrow {
  width: 14px;
  height: 14px;
  transition: transform var(--transition-fast);
  color: var(--text-light);
}

.region-selector.is-active .region-btn__arrow {
  transform: rotate(180deg);
}

.region-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  background-color: var(--bg-surface);
  border-radius: var(--radius-lg);
  margin-top: 8px;
  box-shadow: var(--shadow-premium);
  border: 1px solid var(--border-color);
  width: 440px;
  overflow: hidden;
  display: none;
  z-index: 120;
}

.region-dropdown.is-active {
  display: block;
  animation: slideDown 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.region-dropdown__section {
  padding: 24px;
}

.region-dropdown__title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 10px;
}

.region-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.region-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  text-align: left;
  transition: all var(--transition-fast);
  background-color: var(--bg-surface);
}

.region-item:hover {
  border-color: var(--border-hover);
  background-color: var(--bg-main);
}

.region-item.is-active,
#region-dropdown .region-item.is-active {
  border: 1.5px solid rgba(255, 255, 255, 0.95) !important;
  background: rgba(255, 255, 255, 0.16) !important;
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.35), inset 0 0 10px rgba(255, 255, 255, 0.12) !important;
}
.region-item.is-active .region-item__name,
#region-dropdown .region-item.is-active .region-item__name {
  color: #ffffff !important;
}

.region-item__flag {
  display: inline-block;
  width: 24px;
  height: 18px;
  border-radius: 3px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.15);
  flex-shrink: 0;
}

.region-item__info {
  display: flex;
  flex-direction: column;
}

.region-item__name {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
}

.region-item__detail {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.region-item__currency-badge {
  flex-shrink: 0 !important;
  white-space: nowrap !important;
  display: inline-flex;
  align-items: center;
  line-height: 1;
  /* No backdrop-filter — causes GPU layer jitter during scroll */
  background: rgba(0, 0, 0, 0.07) !important;
  border: 1px solid rgba(0, 0, 0, 0.10) !important;
  transform: translateZ(0);
  will-change: auto;
}

/* Region Sub-panel and Group Styling */
.region-item-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  grid-column: span 1;
}

.region-item--has-sub {
  justify-content: space-between;
}

.region-sub-arrow {
  width: 16px;
  height: 16px;
  color: var(--text-muted);
  transition: transform var(--transition-fast);
}

.region-item-group.is-open .region-sub-arrow {
  transform: rotate(180deg);
}

.region-sub-panel {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
  background-color: var(--bg-main);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-top: -4px;
}

.region-item-group.is-open .region-sub-panel {
  display: flex;
}

.region-sub-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  transition: all var(--transition-fast);
}

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

.region-sub-btn.is-selected {
  border-color: var(--accent);
  background-color: var(--accent-soft);
  color: var(--primary);
}

.region-sub-btn__flag {
  display: inline-block;
  width: 20px;
  height: 15px;
  border-radius: 2px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
  margin-right: 8px;
  flex-shrink: 0;
}

.region-sub-btn__name {
  flex: 1;
  text-align: left;
}

.region-sub-btn__tag {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-muted);
  background-color: var(--border-color);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
}

@media (max-width: 768px) {
  .region-dropdown {
    position: fixed !important;
    top: 92px !important;
    left: 16px !important;
    right: 16px !important;
    width: calc(100vw - 32px) !important;
    max-width: min(390px, calc(100vw - 32px)) !important;
    margin: 0 auto !important;
    transform: none !important;
    box-sizing: border-box !important;
    z-index: 100000 !important;
    max-height: calc(85vh - 92px) !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7) !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    overflow: hidden !important;
  }
  .region-dropdown.is-active {
    display: block !important;
    animation: regionDropdownFadeInMobile 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
  }
  .region-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

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

/* ==========================================================================
   HERO & CATEGORIES
   ========================================================================== */
.hero {
  padding: 60px 0;
  background-color: var(--bg-surface);
  text-align: center;
}

.hero__content {
  max-width: 700px;
  margin: 0 auto 48px;
}

.hero__title {
  font-size: 3rem;
  font-weight: var(--font-weight-black, 800);
  letter-spacing: -1px;
  color: var(--primary);
  margin-bottom: 16px;
  line-height: 1.15;
}

.hero__subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 auto;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.category-card {
  background-color: var(--bg-main);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.category-card:hover {
  transform: translateY(-8px);
  background-color: var(--bg-surface);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-lg);
}

.category-card__icon-wrapper {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-round);
  background-color: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  transition: var(--transition-fast);
}

.category-card:hover .category-card__icon-wrapper {
  background-color: var(--accent);
  color: var(--primary-btn-text, var(--primary));
}

.category-card__icon {
  width: 32px;
  height: 32px;
}

.category-card__name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary);
}

/* ==========================================================================
   STEPS SECTION
   ========================================================================== */
.steps-section {
  padding: 80px 0;
  background-color: var(--bg-main);
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-title {
  font-size: 2.25rem;
  font-weight: var(--font-weight-black, 800);
  letter-spacing: -0.5px;
  color: var(--primary);
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  position: relative;
}

.step-card {
  background-color: var(--bg-surface);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  text-align: center;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  transition: all 0.3s var(--transition-normal);
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.step-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.step-card__num {
  position: absolute;
  top: 24px;
  left: 24px;
  font-size: 1rem;
  font-weight: 800;
  color: var(--accent);
  background-color: var(--accent-soft);
  width: 32px;
  height: 32px;
  border-radius: var(--radius-round);
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-card__icon-wrapper {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-round);
  background-color: var(--bg-main);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: 24px;
  transition: var(--transition-fast);
}

.step-card:hover .step-card__icon-wrapper {
  background-color: var(--primary);
  color: var(--bg-surface);
}

.step-card__icon {
  width: 36px;
  height: 36px;
}

.step-card__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
}

.step-card__text {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   FAVORITES SECTION (POPULAR ESTIMATES)
   ========================================================================== */
.favorites-section {
  padding: 80px 0;
  background-color: var(--bg-surface);
}

.favorites-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.favorite-card {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  cursor: pointer;
  background-color: var(--bg-surface);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.favorite-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-lg);
  transform: scale(1.02);
}

.favorite-card__image-wrapper {
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-main);
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  color: var(--text-muted);
  font-size: 2rem;
  transition: var(--transition-fast);
}

.favorite-card:hover .favorite-card__image-wrapper {
  background-color: var(--accent-soft);
  color: var(--accent);
}

.favorite-card__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}

.favorite-card__price-tag {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  background-color: var(--bg-main);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
}

.favorite-card__price {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent);
}

.favorite-card__cta {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 16px;
  opacity: 0;
  transform: translateY(5px);
  transition: all 0.2s ease;
}

.favorite-card:hover .favorite-card__cta {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   REVIEWS & TESTIMONIALS
   ========================================================================== */
.reviews-section {
  padding: 80px 0;
  background-color: var(--bg-main);
  overflow: hidden;
}

.reviews-carousel {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.reviews-track-container {
  overflow: hidden;
  padding: 10px 0;
}

.reviews-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  gap: 24px;
}

.review-card {
  flex: 0 0 100%;
  background-color: var(--bg-surface);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 250px;
}

@media(min-width: 768px) {
  .review-card {
    flex: 0 0 calc(50% - 12px);
  }
}

.review-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
}

.stars {
  display: flex;
  gap: 2px;
  color: #ffc107;
}

.stars__icon {
  width: 18px;
  height: 18px;
}

.review-card__quote {
  font-size: 1.05rem;
  font-style: italic;
  font-weight: 500;
  color: var(--text-main);
  margin-bottom: 24px;
  line-height: 1.6;
}

.review-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-color);
  padding-top: 16px;
  font-size: 0.85rem;
}

.reviewer-name {
  font-weight: 700;
  color: var(--primary);
}

.device-sold {
  color: var(--text-muted);
  background-color: var(--bg-main);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
}

/* Carousel controls */
.carousel-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: var(--radius-round);
  background-color: var(--bg-surface);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  z-index: 10;
}

.carousel-control:hover {
  background-color: var(--primary);
  color: var(--bg-surface);
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
}

.carousel-control--prev {
  left: -24px;
}

.carousel-control--next {
  right: -24px;
}

.carousel-control__icon {
  width: 20px;
  height: 20px;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 32px;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-round);
  background-color: var(--text-light);
  transition: var(--transition-fast);
}

.carousel-dot.is-active {
  background-color: var(--accent);
  width: 24px;
  border-radius: var(--radius-full);
}

/* ==========================================================================
   FAQS SECTION
   ========================================================================== */
.faqs-section {
  padding: 80px 0;
  background-color: var(--bg-surface);
}

.faqs-container {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background-color: var(--bg-surface);
  overflow: hidden;
  transition: all 0.3s var(--transition-normal);
}

.faq-item:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-sm);
}

.faq-item.is-active {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px;
  font-size: 1.1rem;
  font-weight: 700;
  text-align: left;
  color: var(--primary);
}

.faq-question:hover {
  color: var(--accent);
}

.faq-icon {
  width: 20px;
  height: 20px;
  color: var(--text-muted);
  transition: transform 0.3s var(--transition-normal);
}

.faq-item.is-active .faq-icon {
  transform: rotate(180deg);
  color: var(--accent);
}

.faq-answer-wrapper {
  height: 0;
  overflow: hidden;
  transition: height 0.3s var(--transition-normal);
}

.faq-answer {
  padding: 0 24px 24px;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  border-top: 1px solid transparent;
}

.faq-item.is-active .faq-answer {
  border-top-color: var(--border-color);
}

/* ==========================================================================
   INTERACTIVE EVALUATOR MODAL
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(20, 23, 36, 0.6);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--transition-normal);
}

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

.evaluator-modal {
  background-color: var(--bg-surface);
  width: 100%;
  max-width: 640px;
  height: 90vh;
  max-height: 680px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-premium);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(20px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.is-active .evaluator-modal {
  transform: translateY(0);
}

/* Modal Header */
.evaluator-header {
  padding: 24px 32px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.evaluator-back {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-muted);
}

.evaluator-back:hover {
  color: var(--accent);
}

.evaluator-back__icon {
  width: 16px;
  height: 16px;
}

.evaluator-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-round);
  background-color: var(--bg-main);
  color: var(--text-muted);
}

.evaluator-close:hover {
  background-color: var(--text-muted);
  color: var(--bg-surface);
}

.evaluator-close__icon {
  width: 18px;
  height: 18px;
}

/* Progress Tracker */
.evaluator-progress {
  height: 4px;
  width: 100%;
  background-color: var(--bg-main);
  position: relative;
}

.evaluator-progress__bar {
  height: 100%;
  width: 0%;
  background-color: var(--accent);
  transition: width 0.3s var(--transition-normal);
}

/* Modal Body / Steps Scroll Container */
.evaluator-body {
  flex: 1;
  overflow-y: auto;
  padding: 40px 48px;
  position: relative;
}

.eval-step {
  display: none;
  animation: fadeIn 0.4s var(--transition-normal) forwards;
}

.eval-step.is-active {
  display: block;
}

.step-question-group {
  margin-bottom: 32px;
}

.step-tag {
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--accent);
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  display: block;
}

.step-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.25;
}

/* Selectable options grid */
.options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.option-button {
  background-color: var(--bg-surface);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-weight: 700;
  color: var(--primary);
  transition: all 0.2s var(--transition-normal);
}

.option-button:hover {
  border-color: var(--border-hover);
  background-color: var(--bg-main);
}

.option-button.is-selected {
  border-color: var(--accent);
  background-color: var(--accent-soft);
  color: var(--primary);
}

.option-button__icon {
  width: 28px;
  height: 28px;
  color: var(--text-muted);
}

.option-button.is-selected .option-button__icon {
  color: var(--accent);
}

.option-button__desc {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Large condition buttons (stacked) */
.options-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}

.option-row {
  background-color: var(--bg-surface);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  text-align: left;
  font-weight: 700;
  color: var(--primary);
  transition: all 0.2s var(--transition-normal);
}

.option-row:hover {
  border-color: var(--border-hover);
  background-color: var(--bg-main);
}

.option-row.is-selected {
  border-color: var(--accent);
  background-color: var(--accent-soft);
}

.option-row__indicator {
  width: 22px;
  height: 22px;
  border-radius: var(--radius-round);
  border: 2px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition-fast);
}

.option-row.is-selected .option-row__indicator {
  border-color: var(--accent);
  background-color: var(--accent);
}

.option-row__indicator-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-round);
  background-color: var(--bg-surface);
  transform: scale(0);
  transition: transform 0.2s var(--transition-normal);
}

.option-row.is-selected .option-row__indicator-dot {
  transform: scale(1);
}

.option-row__info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.option-row__title {
  font-size: 1.05rem;
}

.option-row__desc {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
}

/* Modal Footer */
.evaluator-footer {
  padding: 24px 48px 32px;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.eval-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 28px;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 700;
  transition: all 0.2s ease;
}

.eval-btn--primary {
  background-color: var(--accent);
  color: var(--primary);
  box-shadow: 0 4px 12px hsla(var(--accent-hue), var(--accent-sat), var(--accent-lightness), 0.3);
}

.eval-btn--primary:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px hsla(var(--accent-hue), var(--accent-sat), var(--accent-lightness), 0.4);
}

.eval-btn--primary:disabled {
  background-color: var(--text-light);
  color: var(--bg-surface);
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

.eval-btn--secondary {
  background-color: var(--bg-main);
  color: var(--text-muted);
  border: 1px solid var(--border-color);
}

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

/* Offer screen special styling */
.offer-box {
  background-color: var(--accent-soft);
  border: 1px solid hsla(var(--accent-hue), var(--accent-sat), var(--accent-lightness), 0.25);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  margin-top: 24px;
  animation: scaleIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.offer-box__summary {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.offer-box__device {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 16px;
}

.offer-box__amount {
  font-size: 3rem;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -1px;
}

.offer-box__note {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.offer-steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 32px;
}

.offer-step-row {
  display: flex;
  align-items: center;
  gap: 16px;
  text-align: left;
}

.offer-step-row__num {
  width: 24px;
  height: 24px;
  border-radius: var(--radius-round);
  background-color: var(--primary);
  color: var(--bg-surface);
  font-size: 0.75rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.offer-step-row__text {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
}

/* ==========================================================================
   FOOTER SECTION
   ========================================================================== */
.footer {
  margin-top: auto;
  margin-bottom: 0 !important;
  background-color: var(--bg-alt);
  color: var(--text-white);
  padding: 80px 0 40px;
  width: 100%;
}

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

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.logo--footer {
  color: var(--text-white);
}

.footer-brand__text {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.6;
  max-width: 280px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-col__title {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text-white);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-link {
  font-size: 0.9rem;
  color: var(--text-light);
  font-weight: 500;
}

.footer-link:hover {
  color: var(--accent);
  transform: translateX(4px);
}

/* Bottom Bar */
.footer-bottom {
  border-top: 1px solid #2e344a;
  padding-top: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-copyright {
  font-size: 0.85rem;
  color: var(--text-light);
}

.footer-trust {
  display: flex;
  align-items: center;
  gap: 24px;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-light);
}

.trust-badge__icon {
  width: 24px;
  height: 24px;
  color: var(--accent);
}

.payment-methods-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.payment-methods-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.payment-svg {
  display: block;
  width: 34px;
  height: 22px;
  border-radius: 3.5px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  pointer-events: none !important;
  user-select: none !important;
  cursor: default !important;
  flex-shrink: 0;
}

/* ==========================================================================
   ANIMATIONS & KEYFRAMES
   ========================================================================== */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(20, 23, 36, 0.4);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(20, 23, 36, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(20, 23, 36, 0);
  }
}

}

/* ==========================================================================
   NOON E-COMMERCE COMPONENTS
   ========================================================================== */
.sub-header-bar {
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border-color);
  height: 44px;
  display: flex;
  align-items: center;
  z-index: 99;
}

.sub-header__nav {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  width: 100%;
  color: var(--text-main);
  overflow-x: auto;
  white-space: nowrap;
}

.sub-header__link {
  color: var(--text-main);
  padding: 8px 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.sub-header__link:hover {
  color: var(--noon-blue);
}

.sub-header__link--bold {
  font-weight: 800;
  color: var(--noon-blue);
}

.header-location {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #4a4a4a;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(0,0,0,0.08);
  background: rgba(255,255,255,0.7);
  margin-left: 16px;
  flex-shrink: 0;
}

.header-location:hover {
  background: #fff;
  border-color: rgba(0,0,0,0.15);
}

.header-location__text {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.header-location__label {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  line-height: 1;
}

.header-location__val {
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.2;
}

.hero-slider-section {
  padding: 16px 0;
  background-color: var(--bg-main);
}

.hero-slider {
  position: relative;
  width: 100%;
  height: 320px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.hero-slides {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-slide {
  min-width: 100%;
  height: 100%;
  position: relative;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  padding: 48px;
}

.hero-slide__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.05) 100%);
  z-index: 1;
}

.hero-slide__content {
  position: relative;
  z-index: 2;
  color: #fff;
  max-width: 480px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
  text-align: left;
}

.hero-slide__tag {
  display: inline-block;
  background-color: var(--noon-yellow);
  color: #000;
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  letter-spacing: 1px;
}

.hero-slide__title {
  font-family: var(--font-family);
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 12px;
  line-height: 1.2;
}

.hero-slide__subtitle {
  font-size: 1.05rem;
  font-weight: 500;
  margin-bottom: 24px;
  opacity: 0.9;
}

.hero-slide__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 20px;
  background-color: #fff;
  color: #000;
  font-weight: 700;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  box-shadow: var(--shadow-sm);
}

.hero-slide__btn:hover {
  background-color: var(--noon-yellow);
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-round);
  background-color: rgba(255,255,255,0.9);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  cursor: pointer;
  color: #000;
  transition: all 0.2s ease;
}

.slider-arrow:hover {
  background-color: #fff;
  transform: translateY(-50%) scale(1.05);
}

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

.slider-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.slider-dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 4px;
  background-color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  overflow: hidden;
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.3s;
}

.slider-dot.is-active {
  width: 28px;
  border-radius: 4px;
  background-color: rgba(255, 255, 255, 0.25);
}

.slider-dot-progress {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background-color: #ffffff;
  border-radius: 4px;
}

.slider-dot.is-active .slider-dot-progress {
  animation: fillProgress 5000ms linear forwards;
}

/* Pause the indicator loading animation when hero-slider is hovered/paused */
.hero-slider.is-paused .slider-dot.is-active .slider-dot-progress {
  animation-play-state: paused;
}

@keyframes fillProgress {
  from { width: 0%; }
  to { width: 100%; }
}

.noon-categories-section {
  padding: 0 0 16px;
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border-color);
}

.noon-categories-grid,
.noon-categories-grid-row2 {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 8px !important;
  width: 100% !important;
  max-width: 100% !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
  padding: 0 8px !important;
}

@media (min-width: 640px) {
  .noon-categories-grid,
  .noon-categories-grid-row2 {
    gap: 16px !important;
    padding: 0 16px !important;
  }
}

.noon-categories-section {
  padding: 0 0 16px;
  background: transparent;
  margin: 0 0 20px;
}

.noon-category-card {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px;
  cursor: pointer;
  flex-shrink: 1 !important;
  min-width: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

.noon-category-card__img-wrapper {
  position: relative;
  width: 90px;
  height: 90px;
  border-radius: 18px;
  background-color: #f5f5f7;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.03);
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

[data-theme="dark"] .noon-category-card__img-wrapper {
  background-color: #242427;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.noon-category-card:hover .noon-category-card__img-wrapper {
  background-color: #eaeaea;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

[data-theme="dark"] .noon-category-card:hover .noon-category-card__img-wrapper {
  background-color: #2d2d30;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.noon-category-card img {
  width: 72px;
  height: 72px;
  object-fit: contain;
}

/* No-background variant: transparent card, image floats */
.noon-category-card__img-wrapper--no-bg {
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
  overflow: visible;
}

.noon-category-card__img-wrapper--no-bg img {
  width: 88px;
  height: 88px;
  object-fit: contain;
  /* Drop-shadow makes colourful products pop */
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.18)) drop-shadow(0 1px 4px rgba(0, 0, 0, 0.12));
}

.noon-category-card:hover .noon-category-card__img-wrapper--no-bg {
  background-color: transparent !important;
  box-shadow: none !important;
}

[data-theme="dark"] .noon-category-card__img-wrapper--no-bg,
[data-theme="dark"] .noon-category-card:hover .noon-category-card__img-wrapper--no-bg {
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

[data-theme="dark"] .noon-category-card__img-wrapper--no-bg img {
  filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.5)) drop-shadow(0 1px 6px rgba(0, 0, 0, 0.4));
}

/* White-product variant: light grey pill so white items are visible */
.noon-category-card__img-wrapper--white-product {
  background-color: #f0f0f0 !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 18px;
  overflow: hidden;
}

.noon-category-card__img-wrapper--white-product img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  filter: none;
}

.noon-category-card:hover .noon-category-card__img-wrapper--white-product {
  background-color: #e4e4e4 !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06) !important;
}

[data-theme="dark"] .noon-category-card__img-wrapper--white-product {
  background-color: #333336 !important;
}

[data-theme="dark"] .noon-category-card:hover .noon-category-card__img-wrapper--white-product {
  background-color: #3d3d40 !important;
}

.noon-category-card__name,
.category-title {
  display: none !important;
}

/* Floating Navigation Arrows */
.noon-cat-arrow {
  position: absolute;
  top: 45px; /* Centered relative to the 90px image card wrapper height */
  transform: translateY(-50%) scale(0.95);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(220, 220, 225, 0.8) !important;
  border: 1px solid rgba(0, 0, 0, 0.05) !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08) !important;
  color: #1d1d1f;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease, background-color 0.2s, color 0.2s;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.noon-cat-arrow:hover {
  background: rgba(200, 200, 205, 0.95) !important;
  transform: translateY(-50%) scale(1.02);
}

.noon-cat-arrow:disabled,
.noon-cat-arrow.is-disabled {
  opacity: 0 !important;
  cursor: not-allowed;
  pointer-events: none;
}

.noon-cat-arrow--prev {
  left: -12px;
}

.noon-cat-arrow--next {
  right: -12px;
}

/* Show arrows on container hover only when not hidden or disabled */
.container:hover .noon-cat-arrow:not(.hidden):not([style*="display: none"]) {
  opacity: 1;
  pointer-events: auto;
}

.noon-cat-arrow.hidden,
.noon-cat-scrollbar-track.hidden,
.category-scrollbar.hidden,
.category-pagination.hidden {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.noon-categories-scroll-wrapper {
  overflow-x: hidden;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  cursor: default;
}

.noon-categories-scroll-wrapper.has-overflow {
  overflow-x: auto;
  cursor: grab;
}

.noon-categories-scroll-wrapper::-webkit-scrollbar {
  display: none;
}

[data-theme="dark"] .noon-cat-arrow {
  background: rgba(50, 50, 55, 0.8) !important;
  border: 1px solid rgba(255, 255, 255, 0.05) !important;
  color: #f5f5f7;
}

[data-theme="dark"] .noon-cat-arrow:hover {
  background: rgba(70, 70, 75, 0.95) !important;
}





.product-shelf-section {
  padding: 40px 0;
  background-color: var(--bg-main);
}

.product-shelf-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.product-shelf-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--primary);
}

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

/* Horizontal carousel shelves — smooth flex scroll and card sizing */
.product-shelf-section .carousel-container-outer .product-grid,
#bestsellers-product-grid,
#flash-deals-carousel-track,
#mobiles-product-grid,
#random-cat-grid {
  display: flex !important;
  gap: 16px !important;
  overflow-x: auto !important;
  scroll-snap-type: x mandatory !important;
  scroll-behavior: smooth !important;
  -webkit-overflow-scrolling: touch !important;
  scrollbar-width: none !important;
  padding: 8px 24px 16px 4px !important;
  scroll-padding: 0 16px !important;
  width: 100% !important;
}

.product-shelf-section .carousel-container-outer .product-grid::-webkit-scrollbar,
#bestsellers-product-grid::-webkit-scrollbar,
#flash-deals-carousel-track::-webkit-scrollbar,
#mobiles-product-grid::-webkit-scrollbar {
  display: none !important;
}

#bestsellers-product-grid .product-card-container,
#bestsellers-product-grid .product-card,
[data-rail="bestsellers"] .product-card-container,
[data-rail="bestsellers"] .product-card,
#flash-deals-carousel-track .product-card-container,
#flash-deals-carousel-track .product-card,
[data-rail="deals"] .product-card-container,
[data-rail="deals"] .product-card {
  flex: 0 0 240px !important;
  min-width: 240px !important;
  max-width: 250px !important;
  scroll-snap-align: start !important;
}

@media (max-width: 640px) {
  #bestsellers-product-grid .product-card-container,
  #bestsellers-product-grid .product-card,
  [data-rail="bestsellers"] .product-card-container,
  [data-rail="bestsellers"] .product-card,
  #flash-deals-carousel-track .product-card-container,
  #flash-deals-carousel-track .product-card,
  [data-rail="deals"] .product-card-container,
  [data-rail="deals"] .product-card {
    flex: 0 0 185px !important;
    min-width: 185px !important;
    max-width: 195px !important;
  }
}

/* ══════════════════════════════════════════════
   PREMIUM DARK PRODUCT CARD  —  reference design
   ══════════════════════════════════════════════ */
.product-card {
  background-color: #ffffff;
  border: 1px solid #e4e6eb;
  border-radius: 22px;
  padding: 0;
  display: flex;
  flex-direction: column;
  position: relative;
  cursor: pointer;
  text-align: left;
  overflow: hidden;
  transition: transform 0.25s cubic-bezier(0.4,0,0.2,1), box-shadow 0.25s ease;
  box-shadow: 0 4px 16px rgba(0,0,0,0.04);
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

/* ── Image zone (light gray backdrop) ── */
.product-card__image-container {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background-color: #ffffff !important;
  border-radius: 21px 21px 0 0;
  overflow: hidden;
  flex-shrink: 0;
  padding: 8px !important;
  box-sizing: border-box !important;
  margin-bottom: 0;
}

.product-card__slide {
  width: 100% !important;
  min-width: 100% !important;
  max-width: 100% !important;
  flex: 0 0 100% !important;
  flex-shrink: 0 !important;
  height: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
  padding: 0 !important;
  background: transparent !important;
  scroll-snap-align: start !important;
}

.product-card__image-container img,
.product-card__slide img,
.product-card img {
  max-width: 100% !important;
  max-height: 100% !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  object-position: center !important;
  aspect-ratio: auto !important;
  display: block !important;
  margin: auto !important;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.product-card:hover .product-card__image-container img,
.product-card:hover .product-card__slide img {
  transform: none !important;
}

.product-card__image-container svg {
  width: 64px;
  height: 64px;
  color: #cbd5e0;
}

/* ── Wishlist heart — transparent circle, dark outline ── */
.wishlist-heart-btn,
.product-card__wishlist {
  position: absolute !important;
  top: 10px !important;
  right: 10px !important;
  width: 32px !important;
  height: 32px !important;
  border-radius: 50% !important;
  background: transparent !important;
  border: 1.2px solid rgba(0, 0, 0, 0.15) !important;
  box-shadow: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #383a48 !important;
  z-index: 5 !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}

.wishlist-heart-btn svg,
.product-card__wishlist svg {
  width: 16px !important;
  height: 16px !important;
  stroke: #383a48 !important;
  fill: none !important;
}

.wishlist-heart-btn:hover,
.product-card__wishlist:hover {
  background: rgba(254, 242, 242, 0.5) !important;
  border-color: #ef4444 !important;
  color: #ef4444 !important;
  transform: scale(1.08) !important;
}

.wishlist-heart-btn:hover svg,
.product-card__wishlist:hover svg {
  stroke: #ef4444 !important;
}

.wishlist-heart-btn.is-wishlisted {
  background: rgba(254, 226, 226, 0.6) !important;
  border-color: #ef4444 !important;
  color: #ef4444 !important;
}
.wishlist-heart-btn.is-wishlisted svg path {
  fill: #ef4444 !important;
  stroke: #ef4444 !important;
}

/* ── Discount badge ── */
.product-card__badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #e53e3e;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 5px;
  z-index: 4;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* ── White info section ── */
.product-card__info {
  display: flex;
  flex-direction: column;
  gap: 0;
  flex-grow: 1;
  padding: 14px;
  background: #ffffff;
}

.product-card__brand {
  font-size: 0.72rem;
  font-weight: 500;
  color: #71717a;
  text-transform: none;
  letter-spacing: 0;
  margin-bottom: 3px;
}

.product-card__title {
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.35;
  color: #18181b;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 10px;
}

/* ── Rating (hidden inside card but kept for JS compat) ── */
.product-card__rating-row {
  display: none;
}

/* ── Price + Cart row ── */
.product-card__price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 0;
}

.product-card__price-main {
  display: flex;
  align-items: baseline;
  gap: 3px;
}

.product-card__currency {
  font-size: 0.85rem;
  font-weight: 800;
  color: #18181b;
}

.product-card__amount {
  font-size: 1.25rem;
  font-weight: 900;
  color: #18181b;
  letter-spacing: -0.5px;
}

.product-card__price-old-row {
  display: flex;
  align-items: center;
  gap: 4px;
}

.product-card__price-old {
  font-size: 0.72rem;
  color: #a1a1aa;
  text-decoration: line-through;
  margin-left: 4px;
}

.product-card__discount {
  display: none;
}

/* ── Add-to-cart button — dark charcoal squircle, white bag icon, bottom right ── */
.product-card__btn {
  width: 48px !important;
  height: 48px !important;
  border-radius: 14px !important;
  background: #18181b !important;
  color: #ffffff !important;
  font-size: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: none !important;
  flex-shrink: 0 !important;
  transition: all 0.2s ease !important;
  margin-top: 0 !important;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1) !important;
  cursor: pointer !important;
}

.product-card__btn svg {
  width: 20px !important;
  height: 20px !important;
  stroke: #ffffff !important;
  stroke-width: 1.8px !important;
  fill: none !important;
}

.product-card__btn:hover {
  background: #27272a !important;
  transform: scale(1.05) !important;
}

.express-tag {
  display: none;
}

/* Cart Drawer */
.cart-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  backdrop-filter: blur(2px);
}

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

.cart-drawer {
  position: fixed;
  top: 16px;
  right: 16px;
  bottom: 16px;
  width: 420px;
  max-width: calc(100vw - 32px);
  height: calc(100vh - 32px);
  background: rgba(255, 255, 255, 0.83);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transform: translateZ(0);
  will-change: transform, opacity;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 24px;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.16);
  z-index: 1201;
  transform: translateX(calc(100% + 24px));
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

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

.cart-drawer__header {
  padding: 20px 24px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: rgba(255, 255, 255, 0.45);
}

.cart-drawer__title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary);
}

.cart-drawer__close {
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-light);
}

.cart-drawer__close:hover {
  color: var(--primary);
}

.cart-drawer__body {
  flex-grow: 1;
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background-color: rgba(247, 249, 250, 0.3);
}

.cart-item {
  background-color: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 16px;
  display: flex;
  gap: 16px;
  text-align: left;
}

.cart-item__img-wrapper {
  width: 64px;
  height: 64px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: #fff;
  color: #bbb;
}

.cart-item__img-wrapper svg {
  width: 36px;
  height: 36px;
}

.cart-item__info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex-grow: 1;
}

.cart-item__title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.3;
}

.cart-item__price {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--noon-blue);
  margin-top: 4px;
}

.cart-item__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
}

.cart-qty-selector {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background-color: #fff;
}

.cart-qty-btn {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
  background-color: #f7f9fa;
  cursor: pointer;
}

.cart-qty-btn:hover {
  background-color: var(--border-color);
}

.cart-qty-val {
  width: 32px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
}

.cart-item__remove {
  font-size: 0.8rem;
  color: #ff3f6c;
  font-weight: 600;
  cursor: pointer;
}

.cart-item__remove:hover {
  text-decoration: underline;
}

.cart-drawer__footer {
  padding: 20px 24px 32px 24px !important;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  background-color: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

#cart-checkout-btn {
  background-color: #000000 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px -1px rgba(0, 0, 0, 0.35), 0 2px 6px -1px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.16) !important;
  transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.18s ease, background-color 0.15s ease !important;
}

#cart-checkout-btn:hover {
  background-color: #18181b !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px -2px rgba(0, 0, 0, 0.45), 0 4px 8px -1px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.22) !important;
}

#cart-checkout-btn:active {
  transform: translateY(0.5px) scale(0.98);
  box-shadow: 0 2px 6px -1px rgba(0, 0, 0, 0.3) !important;
}

/* Native Browser Long-Press Context Menus & Touch Callout Support */
.product-card,
.product-card__visual-area,
.wishlist-grid-card,
.deal-grid-card,
.deal-product-card,
a.product-card__visual-area,
.wishlist-grid-card > a,
.deal-grid-card > a,
.noon-category-card,
a.noon-category-card {
  -webkit-touch-callout: default !important;
}

a.product-card__visual-area,
a.noon-category-card {
  text-decoration: none !important;
  color: inherit !important;
}

/* Cart Item Row Non-Truncating Styles */
.cart-item-row__title {
  font-size: 0.875rem !important;
  font-weight: 800 !important;
  color: #111827 !important;
  line-height: 1.35 !important;
  margin: 0 !important;
  white-space: normal !important;
  word-break: break-word !important;
  overflow: visible !important;
  text-overflow: clip !important;
}

.cart-item-row__variant {
  font-size: 0.75rem !important;
  color: #9ca3af !important;
  font-weight: 500 !important;
  margin: 2px 0 0 0 !important;
  white-space: normal !important;
  word-break: break-word !important;
  overflow: visible !important;
  text-overflow: clip !important;
}

/* Cart Delivery Selector Card Interactive Feedback */
.cart-delivery-card {
  transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease !important;
}

.cart-delivery-card:hover {
  background-color: rgba(239, 246, 255, 0.55) !important;
  border-color: rgba(0, 102, 204, 0.45) !important;
  box-shadow: 0 4px 14px rgba(0, 102, 204, 0.08) !important;
  transform: translateY(-1px);
}

.cart-delivery-card:active {
  transform: scale(0.99);
}

.cart-delivery-modal-overlay {
  animation: cartDeliveryFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes cartDeliveryFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.cart-delivery-modal-card {
  animation: cartDeliverySlideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

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

.cart-summary-row--total {
  border-top: 1px solid var(--border-color);
  padding-top: 12px;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--text-main);
  margin-bottom: 20px;
}

.cart-checkout-btn {
  width: 100%;
  height: 48px;
  background-color: var(--noon-yellow);
  color: #000;
  font-weight: 800;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(0,0,0,0.05);
  box-shadow: 0 4px 12px rgba(255, 224, 0, 0.3);
}

.cart-checkout-btn:hover {
  background-color: #fff;
  border-color: var(--noon-yellow);
  box-shadow: 0 6px 16px rgba(255, 224, 0, 0.4);
}

.cart-empty-message {
  text-align: center;
  margin: auto;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Product Modal / Details */
.product-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1010;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(2px);
}

.product-overlay.is-active {
  opacity: 1;
  visibility: visible;
}

.product-modal {
  width: 840px;
  max-width: 95%;
  max-height: 90vh;
  background-color: #fff;
  border-radius: var(--radius-lg);
  overflow-y: auto;
  box-shadow: var(--shadow-premium);
  position: relative;
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 32px;
}

.product-overlay.is-active .product-modal {
  transform: scale(1);
}

.product-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-light);
  z-index: 10;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-round);
  background: #f7f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-modal__close:hover {
  background-color: var(--border-color);
  color: var(--text-main);
}

.product-modal__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.product-modal__gallery {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  height: 380px;
}

.product-modal__gallery svg {
  width: 180px;
  height: 180px;
  color: var(--noon-blue);
}

.product-modal__info {
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
}

.product-modal__title {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.3;
}

.product-modal__rating-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.product-modal__stars {
  display: flex;
  color: var(--noon-yellow);
}

.product-modal__stars svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.product-modal__specs {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 16px 0;
}

.product-modal__spec-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
}

.product-modal__spec-label {
  color: var(--text-muted);
  font-weight: 600;
}

.product-modal__spec-val {
  color: var(--text-main);
  font-weight: 700;
}

.tabby-badge {
  background-color: #f6f0ff;
  border: 1px solid #d9c4ff;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  color: #4a218f;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.tabby-badge strong {
  color: #ff3c00;
}

.product-modal__price-main {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.product-modal__amount {
  font-size: 2rem;
  font-weight: 900;
  color: var(--text-main);
}

.product-modal__cta-row {
  display: flex;
  gap: 12px;
  margin-top: auto;
}

.product-modal__add-btn {
  flex-grow: 1;
  height: 48px;
  background-color: var(--noon-yellow);
  color: #000;
  font-weight: 800;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(0,0,0,0.05);
}

.product-modal__add-btn:hover {
  background-color: #fff;
  border-color: var(--noon-yellow);
}

/* Checkout Success Overlay */
.checkout-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(255, 255, 255, 0.95);
  z-index: 1200;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
}

.checkout-overlay.is-active {
  opacity: 1;
  visibility: visible;
}

.checkout-success-icon {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-round);
  background-color: #e6fffa;
  color: #38b2ac;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  animation: scaleIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  border: 2px solid #b2f5ea;
}

.checkout-success-icon svg {
  width: 44px;
  height: 44px;
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  
  .hero__title {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  .header__nav {
    height: 70px;
  }
  
  .search-wrapper {
    display: none; /* Hide main search bar on mobile headers, or trigger via icon */
  }
  
  .steps-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .step-card {
    padding: 32px 24px;
  }
  
  .review-card {
    padding: 24px;
  }
  
  .carousel-control {
    display: none; /* Rely on drag / swipe or dots on mobile */
  }
  
  .evaluator-modal {
    height: 100%;
    max-height: 100vh;
    border-radius: 0;
  }
  
  .evaluator-body {
    padding: 32px 24px;
  }
  
  .evaluator-footer {
    padding: 16px 24px 24px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
  }
  
  .footer-trust {
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 100%;
  }

  .payment-methods-wrapper {
    align-items: center;
    width: 100%;
  }

  .payment-methods-row {
    justify-content: center;
    flex-wrap: wrap;
  }
}

/* ==========================================================================
   COMPREHENSIVE RESPONSIVE BREAKPOINTS
   ========================================================================== */

/* Large screens: give more breathing room */
@media (min-width: 1440px) {
  .container {
    max-width: 1400px;
    padding-left: 40px;
    padding-right: 40px;
  }
  .header__nav {
    padding: 0 40px;
  }
}

/* Standard desktop (1024px – 1440px) */
@media (max-width: 1280px) {
  .container {
    padding-left: 20px;
    padding-right: 20px;
  }
  .header__nav {
    padding: 0 16px;
    gap: 10px;
  }
  .search-wrapper {
    margin: 0 10px;
    max-width: 480px;
  }
  .header__actions {
    gap: 10px;
  }
  .header-location {
    max-width: 200px;
  }
}

/* Laptop / narrow desktop (1024px) */
@media (max-width: 1100px) {
  .header__nav {
    gap: 8px;
    padding: 0 14px;
  }
  .search-wrapper {
    margin: 0 8px;
    max-width: 380px;
  }
  .header__actions {
    gap: 8px;
  }
  /* Trim "Wishlist" and "Cart" text labels */
  .action-btn span[data-i18n="wishlist"],
  .action-btn span[data-i18n="cart"] {
    display: none;
  }
  .hero-slider-section .container {
    padding: 0;
  }
}

/* Tablet (768px – 1024px) */
@media (max-width: 900px) {
  .header__nav {
    gap: 6px;
    padding: 0 12px;
    height: 58px;
  }
  .logo {
    font-size: 1.4rem !important;
  }
  .search-wrapper {
    max-width: 300px;
    margin: 0 6px;
  }
  .search-bar {
    height: 40px;
  }
  /* Hide deliver-to text, just keep the pill icon + location val */
  .header-location__label {
    display: none;
  }
  .header-location {
    max-width: 160px;
    padding: 4px 10px;
  }
  .header__actions {
    gap: 6px;
  }
  /* Hero slider text scales down */
  .hero-slide__title {
    font-size: 1.8rem !important;
  }
  .hero-slide__subtitle {
    font-size: 0.85rem !important;
  }
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* Mobile (max 768px) */
@media (max-width: 768px) {
  .header__nav {
    padding: 0 10px;
    gap: 4px;
    height: 54px;
  }
  .logo {
    font-size: 1.2rem !important;
    padding-right: 8px !important;
  }
  .search-wrapper {
    flex: 1 1 0;
    max-width: 220px;
    margin: 0 4px;
  }
  .search-bar {
    height: 38px;
    padding: 4px 12px;
  }
  .search-bar__icon {
    display: none;
  }
  .header-location {
    max-width: 130px;
    padding: 4px 8px;
    gap: 4px;
    margin-left: 4px;
  }
  #header-weather-pill {
    display: none !important;
  }
  .header__actions {
    gap: 4px;
  }
  /* Hide region text, keep globe icon */
  #current-lang {
    display: none;
  }
  .region-btn__arrow {
    display: none;
  }
  /* Hero scales */
  .hero-slide {
    padding: 28px 20px !important;
  }
  .hero-slide__title {
    font-size: 1.5rem !important;
  }
  .hero-slide__subtitle {
    display: none !important;
  }
  .container {
    padding-left: 12px;
    padding-right: 12px;
  }
  .sub-header__scroll-track {
    padding: 0 12px;
  }
}

/* Small mobile (max 480px) */
@media (max-width: 480px) {
  .header__nav {
    padding: 0 8px;
  }
  .logo {
    font-size: 1.1rem !important;
  }
  .search-wrapper {
    max-width: 160px;
  }
  .header-location__val {
    font-size: 0.7rem;
    max-width: 80px;
  }
  .action-btn span[data-i18n="signIn"] {
    display: none;
  }
  .hero-slide__title {
    font-size: 1.3rem !important;
  }
  .hero-slide__btn {
    padding: 8px 18px !important;
    font-size: 0.8rem !important;
  }
}



/* ==========================================================================
   AUTH MODAL
   ========================================================================== */

.auth-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeInOverlay 0.25s ease;
}

@keyframes fadeInOverlay {
  from { opacity: 0; }
  to { opacity: 1; }
}

.auth-modal {
  background: #fff;
  border-radius: 20px;
  width: 100%;
  max-width: 420px;
  max-height: 92vh;
  overflow-y: auto;
  padding: 36px 32px 32px;
  position: relative;
  box-shadow: 0 32px 80px -12px rgba(0,0,0,0.3), 0 0 0 1px rgba(0,0,0,0.05);
  animation: slideUpModal 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUpModal {
  from { transform: translateY(32px) scale(0.97); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

.auth-modal__close {
  position: absolute;
  top: 14px;
  right: 18px;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.15s ease;
}

.auth-modal__close:hover {
  background: var(--bg-main);
  color: var(--primary);
}

.auth-tabs {
  display: flex;
  border-radius: 10px;
  background: var(--bg-main);
  padding: 4px;
  gap: 4px;
  margin-bottom: 24px;
}

.auth-tab {
  flex: 1;
  padding: 10px;
  border: none;
  background: transparent;
  font-family: var(--font-family);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-muted);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.auth-tab.is-active {
  background: #fff;
  color: var(--noon-blue);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.auth-label {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.auth-input {
  width: 100%;
  height: 46px;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0 44px 0 14px;
  font-size: 0.92rem;
  font-family: var(--font-family);
  color: var(--text-main);
  font-weight: 600;
  background: #fafafa;
  transition: all 0.2s ease;
  outline: none;
}

.auth-input:focus {
  border-color: var(--noon-blue);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(56, 102, 223, 0.12);
}

.auth-eye-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  padding: 4px;
  border-radius: 4px;
  transition: color 0.15s;
}

.auth-eye-btn:hover { color: var(--noon-blue); }

.auth-error {
  background: #fff0f3;
  border: 1px solid #ffd0db;
  color: #c0392b;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 0.82rem;
  font-weight: 700;
}

.auth-submit-btn {
  width: 100%;
  height: 50px;
  background: var(--noon-blue);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-family);
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
  letter-spacing: 0.2px;
  margin-top: 4px;
  position: relative;
  overflow: hidden;
}

.auth-submit-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 60%);
  pointer-events: none;
}

.auth-submit-btn:hover {
  background: #2a52c4;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(56, 102, 223, 0.35);
}

.auth-submit-btn:active {
  transform: translateY(0);
  box-shadow: none;
}

.auth-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.auth-switch-text {
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.auth-switch-link {
  background: none;
  border: none;
  color: var(--noon-blue);
  font-weight: 800;
  font-size: 0.82rem;
  cursor: pointer;
  padding: 0;
  font-family: var(--font-family);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.auth-switch-link:hover { color: #2a52c4; }

/* Wishlist Drawer styled at the bottom of stylesheet */

/* Wishlist item in drawer */
.wishlist-item {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-color);
}

.wishlist-item__img {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-sm);
  background: var(--bg-main);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--text-muted);
}

.wishlist-item__img svg {
  width: 28px;
  height: 28px;
}

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

.wishlist-item__name {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}

.wishlist-item__price {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--noon-blue);
}

.wishlist-item__actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.wishlist-item__add-btn {
  background: var(--noon-blue);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  font-size: 0.72rem;
  font-weight: 800;
  cursor: pointer;
  font-family: var(--font-family);
  white-space: nowrap;
  transition: all 0.15s;
}

.wishlist-item__add-btn:hover { background: #2a52c4; }

.wishlist-item__remove-btn {
  background: none;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 5px 10px;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  font-family: var(--font-family);
  transition: all 0.15s;
}

.wishlist-item__remove-btn:hover {
  border-color: #ff3f6c;
  color: #ff3f6c;
}

.wishlist-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  text-align: center;
  color: var(--text-muted);
  gap: 12px;
}

.wishlist-empty svg {
  opacity: 0.3;
}

/* ==========================================================================
   ADDRESS DROPDOWN
   ========================================================================== */

.address-dropdown {
  animation: slideDownDropdown 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.header-location:hover {
  background-color: rgba(255, 255, 255, 0.2) !important;
}

/* ==========================================================================
   USER PROFILE DROPDOWN
   ========================================================================== */

.user-dropdown {
  animation: slideDownDropdown 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Profile Icon Pulsating Order Notification Dot */
@keyframes profileDotPing {
  0% {
    transform: scale(0.9);
    opacity: 0.85;
  }
  70%, 100% {
    transform: scale(2.4);
    opacity: 0;
  }
}

.profile-notification-dot {
  pointer-events: none !important;
}

[dir="rtl"] .profile-notification-dot {
  right: auto !important;
  left: 8px !important;
}

.user-dropdown-item,
#dropdown-account-btn,
#dropdown-orders-btn,
#wishlist-toggle-btn {
  color: rgba(255, 255, 255, 0.88) !important;
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  cursor: pointer !important;
  width: 100% !important;
  box-sizing: border-box !important;
  background: transparent !important;
  border: none !important;
}

.user-dropdown-item svg,
#dropdown-account-btn svg {
  color: rgba(255, 255, 255, 0.72) !important;
  stroke: currentColor !important;
  flex-shrink: 0 !important;
}

.user-dropdown-item:hover,
#dropdown-account-btn:hover {
  background: rgba(255, 255, 255, 0.10) !important;
  color: #ffffff !important;
  transform: translateX(2px) !important;
}

.user-dropdown-item:hover svg,
#dropdown-account-btn:hover svg {
  color: #ffffff !important;
}

/* ==========================================================================
   TOAST NOTIFICATION
   ========================================================================== */

/* ==========================================================================
   FLOATING TOAST NOTIFICATIONS (DISABLED SITE-WIDE)
   ========================================================================== */
#toast-container,
.toast,
#cart-toast-notification,
.personalized-greeting-banner {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  height: 0 !important;
  width: 0 !important;
  overflow: hidden !important;
}

/* ==========================================================================
   3D PRODUCT TILT
   ========================================================================== */

.product-modal__tilt-wrapper {
  perspective: 900px;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.product-modal__tilt-inner {
  transform-style: preserve-3d;
  transition: transform 0.08s ease;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-main);
}

/* Wishlist heart toggle on product cards */
.wishlist-heart-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  transition: all 0.2s ease;
  z-index: 2;
}

.wishlist-heart-btn:hover {
  transform: scale(1.15);
  box-shadow: 0 4px 12px rgba(0,0,0,0.18);
}

.wishlist-heart-btn svg {
  width: 16px;
  height: 16px;
  stroke: var(--text-muted);
  fill: none;
  transition: all 0.2s ease;
}

.wishlist-heart-btn.is-wishlisted svg {
  stroke: #ff3f6c;
  fill: #ff3f6c;
}

/* ==========================================================================
   ANNOUNCEMENT BAR & PERSONALIZED GREETING
   ========================================================================== */
.announcement-bar {
  background: linear-gradient(90deg, #18181b, #27272a);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 800;
  text-align: center;
  padding: 8px 12px;
  position: sticky;
  top: 80px; /* Right under header */
  z-index: 99;
  box-shadow: 0 2px 4px rgba(0,0,0,0.06);
}

.announcement-bar__content {
  display: inline-block;
  animation: announcementFade 4s ease-in-out infinite;
}

@keyframes announcementFade {
  0%, 100% { opacity: 0; transform: translateY(-3px); }
  10%, 90% { opacity: 1; transform: translateY(0); }
}

@keyframes pulseGreen {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(56, 193, 114, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(56, 193, 114, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(56, 193, 114, 0); }
}

@keyframes pulseRed {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(229, 62, 62, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(229, 62, 62, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(229, 62, 62, 0); }
}

/* ==========================================================================
   PREMIUM HERO SLIDER & PARTICLES
   ========================================================================== */
.hero-slider-section {
  padding-bottom: 24px;
}

.hero-slider {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
  height: 380px;
}

.hero-slides {
  width: 100%;
  height: 100%;
  position: relative;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  padding: 48px;
  box-sizing: border-box;
}

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

.hero-slide__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 80% 50%, transparent 20%, rgba(0,0,0,0.4) 80%);
  z-index: 3;
}

.hero-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(circle, rgba(255,255,255,0.15) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.6;
  z-index: 2;
  pointer-events: none;
}

.hero-slide__content {
  color: #fff;
  max-width: 520px;
  position: relative;
  z-index: 4;
}

/* Magnetic Button Visual Hint */
.magnetic-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 24px rgba(255, 224, 0, 0.4);
}

/* ==========================================================================
   CAROUSEL ENGINE & SNAP TRACKS
   ========================================================================== */
.carousel-container-outer {
  position: relative;
  width: 100%;
}

.product-carousel-track, .product-grid {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none; /* Firefox */
  padding: 10px 4px;
}

.product-carousel-track::-webkit-scrollbar, .product-grid::-webkit-scrollbar {
  display: none; /* Safari/Chrome */
}

.product-card {
  flex: 0 0 220px;
  scroll-snap-align: start;
}

#category-product-grid .product-card,
#mobiles-product-grid.grid .product-card {
  flex: unset !important;
  min-width: 0 !important;
  width: auto !important;
}

.product-card:hover {
  transform: translateY(-5px);
}

.product-card__image-container {
  height: auto;
  aspect-ratio: 1 / 1;
  padding: 8px;
}

.product-card__image-container img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.product-card:hover .product-card__image-container img {
  transform: none !important;
}

/* ── Mobile: show 2.5 cards across the screen ── */
@media (max-width: 767px) {
  .product-carousel-track,
  .product-grid {
    gap: 10px;
    padding: 8px 4px;
  }

  .product-card {
    flex: 0 0 34vw;
    min-width: 0;
  }

  .product-card__image-container {
    height: auto;
    aspect-ratio: 1 / 1;
    padding: 8px !important;
    box-sizing: border-box !important;
  }

  .product-card__btn {
    width: 32px !important;
    height: 32px !important;
    border-radius: 10px !important;
  }
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: #fff;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.carousel-arrow:hover {
  background: var(--noon-blue);
  color: #fff;
  border-color: var(--noon-blue);
}

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

/* ==========================================================================
   CONVERSION-BOOSTING PRODUCT CARD LABELS
   ========================================================================== */
.product-card__badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #e53e3e;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  z-index: 2;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.express-tag {
  background-color: var(--noon-yellow);
  color: #000;
  font-size: 0.6rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 2px 6px;
  border-radius: 3px;
  align-self: flex-start;
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.express-tag::before {
  content: '⚡';
}

.savings-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: #38c172;
  margin-top: 2px;
}

.scarcity-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: #e53e3e;
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.scarcity-dot {
  width: 6px;
  height: 6px;
  background-color: #e53e3e;
  border-radius: 50%;
  animation: pulseRed 1.2s infinite;
}

.delivery-estimate {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.installment-line {
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-top: 6px;
  border-top: 1px solid var(--border-color);
  padding-top: 6px;
}

/* ==========================================================================
   DEAL PROGRESS BAR (FLASH DEALS)
   ========================================================================== */
.deal-progress {
  width: 100%;
  margin-top: 8px;
}

.deal-progress__bar-outer {
  width: 100%;
  height: 6px;
  background: #edf2f7;
  border-radius: 3px;
  overflow: hidden;
}

.deal-progress__bar-inner {
  height: 100%;
  background: linear-gradient(90deg, #dd6b20, #e53e3e);
  border-radius: 3px;
  transition: width 0.5s ease-out;
}

.deal-progress__text {
  display: flex;
  justify-content: space-between;
  font-size: 0.68rem;
  font-weight: 700;
  color: #718096;
  margin-top: 3px;
}

/* ==========================================================================
   EXPERT'S CHOICE GRID
   ========================================================================== */
.expert-card {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
  position: relative;
}

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

.expert-card__badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--noon-blue);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 4px;
  z-index: 2;
}

.expert-card__img {
  height: 180px;
  background: #f7f9fa;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.expert-card__img img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.expert-card__title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--primary);
  margin-top: 8px;
}

.expert-card__blurb {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 12px;
}

/* ==========================================================================
   INFINITE SCROLLING MARQUEES (BRANDS & REVIEWS)
   ========================================================================== */
@keyframes infiniteScrollBrands {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

@keyframes infiniteScrollReviewsLeft {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

@keyframes infiniteScrollReviewsRight {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(0); }
}

/* Brand Marquee Container with white gradient fading edges */
.brand-marquee-container {
  position: relative;
  overflow: hidden;
  width: 100%;
}
.brand-marquee-container::before,
.brand-marquee-container::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}
.brand-marquee-container::before {
  left: 0;
  background: linear-gradient(to right, #ffffff 15%, transparent);
}
.brand-marquee-container::after {
  right: 0;
  background: linear-gradient(to left, #ffffff 15%, transparent);
}

.brand-marquee-container:hover .brand-marquee-track {
  animation-play-state: paused;
}

.brand-marquee-track {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  animation: infiniteScrollBrands var(--brand-marquee-duration, 40s) linear infinite;
  gap: 40px;
  padding-right: 40px;
  will-change: transform;
}

/* Reviews Marquee Container with theme background gradient fading edges */
.reviews-marquee-container {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding: 10px 0;
}
.reviews-marquee-container::before,
.reviews-marquee-container::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 150px;
  z-index: 2;
  pointer-events: none;
}
.reviews-marquee-container::before {
  left: 0;
  background: linear-gradient(to right, var(--bg-main) 15%, transparent);
}
.reviews-marquee-container::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-main) 15%, transparent);
}

.reviews-marquee-container:hover .reviews-marquee-track-left,
.reviews-marquee-container:hover .reviews-marquee-track-right {
  animation-play-state: paused;
}

.luxury-review-card {
  width: 260px !important;
  min-height: 140px !important;
  padding: 14px !important;
  border-radius: 12px !important;
}

/* ==========================================================================
   FLOATING CHAT BUBBLE & CHAT DRAWER
   ========================================================================== */
.floating-chat-bubble:hover {
  transform: scale(1.08) rotate(3deg);
  box-shadow: 0 12px 32px rgba(56, 102, 223, 0.45);
}

.chat-drawer {
  display: flex;
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.chat-drawer.is-active {
  display: flex !important;
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* ==========================================================================
   SCROLL REVEAL STAGGERED REVEALS (JS intersection observer)
   ========================================================================== */
.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal.reveal-active {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger reveals */
.stagger-reveal-track > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.stagger-reveal-track.reveal-active > * {
  opacity: 1;
  transform: translateY(0);
}

.stagger-reveal-track.reveal-active > *:nth-child(1) { transition-delay: 0.05s; }
.stagger-reveal-track.reveal-active > *:nth-child(2) { transition-delay: 0.10s; }
.stagger-reveal-track.reveal-active > *:nth-child(3) { transition-delay: 0.15s; }
.stagger-reveal-track.reveal-active > *:nth-child(4) { transition-delay: 0.20s; }
.stagger-reveal-track.reveal-active > *:nth-child(5) { transition-delay: 0.25s; }
.stagger-reveal-track.reveal-active > *:nth-child(6) { transition-delay: 0.30s; }

/* ==========================================================================
   ECO BADGES & ADDITIONAL POLISH
   ========================================================================== */
.eco-tag {
  font-size: 0.68rem;
  font-weight: 700;
  color: #2e7d32;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-top: 4px;
}

.vip-light-glow {
  background: radial-gradient(circle, rgba(255, 224, 0, 0.12) 0%, transparent 70%);
}

/* ==========================================================================
   PREMIUM CUSTOM SELECT & RTL SUPPORT
   ========================================================================== */

/* Custom Select Searchable Dropdown for Address Country */
.custom-select {
  position: relative;
  width: 100%;
  margin-top: 4px;
}

.custom-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 38px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0 12px;
  font-weight: 600;
  background: var(--bg-main);
  color: var(--text-main);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.custom-select-trigger:hover {
  border-color: var(--border-hover);
  background: var(--bg-surface);
}

.custom-select-trigger span.fi {
  width: 18px;
  height: 13.5px;
  border-radius: 2px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
  margin-right: 8px;
  flex-shrink: 0;
}

[dir="rtl"] .custom-select-trigger span.fi {
  margin-right: 0;
  margin-left: 8px;
}

.custom-select-trigger .trigger-text-wrapper {
  display: flex;
  align-items: center;
  flex: 1;
}

.custom-select-options-container {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-premium);
  z-index: 1000;
  display: none;
  flex-direction: column;
  overflow: hidden;
  max-height: 250px;
  animation: slideDownDropdown 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.custom-select.is-active .custom-select-options-container {
  display: flex;
}

.custom-select-search-wrapper {
  padding: 8px;
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-main);
}

.custom-select-search-wrapper input {
  width: 100%;
  height: 32px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0 10px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-main);
  background: var(--bg-surface);
  outline: none;
}

.custom-select-search-wrapper input:focus {
  border-color: var(--noon-blue);
}

.custom-select-options-list {
  overflow-y: auto;
  flex: 1;
  max-height: 200px;
}

.custom-select-option {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.custom-select-option:hover {
  background: var(--bg-main);
}

.custom-select-option.is-selected {
  background: var(--accent-soft);
  color: var(--primary);
}

.custom-select-option span.fi {
  width: 18px;
  height: 13.5px;
  border-radius: 2px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
  margin-right: 8px;
  flex-shrink: 0;
}

[dir="rtl"] .custom-select-option span.fi {
  margin-right: 0;
  margin-left: 8px;
}

.custom-select-option .option-currency {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-left: auto;
  font-weight: 700;
}

[dir="rtl"] .custom-select-option .option-currency {
  margin-left: 0;
  margin-right: auto;
}

/* Region selector Search Field */
.region-search-wrapper {
  padding: 12px 24px 8px 24px;
  background: var(--bg-surface);
  position: relative;
}
.region-search-wrapper::before {
  content: "";
  position: absolute;
  left: 36px;
  top: 25px;
  width: 14px;
  height: 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%2394a3b8' stroke-width='3' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E") no-repeat center;
  pointer-events: none;
}
[dir="rtl"] .region-search-wrapper::before {
  left: auto;
  right: 36px;
}
.region-search-wrapper input {
  width: 100%;
  height: 38px;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 0 12px 0 32px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-main);
  background: var(--bg-main);
  outline: none;
  transition: all var(--transition-fast);
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.02);
}
[dir="rtl"] .region-search-wrapper input {
  padding: 0 32px 0 12px;
}
.region-search-wrapper input:focus {
  border-color: var(--noon-blue);
  background: var(--bg-surface);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.12);
}

/* Dropdown alignment constraint LTR / RTL */
#address-modal-country-list {
  right: 0 !important;
  left: auto !important;
}
[dir="rtl"] #address-modal-country-list {
  left: 0 !important;
  right: auto !important;
}

/* Region Categories (for grouping) */
.region-group-title {
  grid-column: 1 / -1;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 14px;
  margin-bottom: 4px;
  border-bottom: 1px dotted var(--border-color);
  padding-bottom: 4px;
}
.region-group-title:first-child {
  margin-top: 0;
}

/* RTL layout fixes */
[dir="rtl"] {
  text-align: right;
}
[dir="rtl"] .logo {
  flex-direction: row-reverse;
}
[dir="rtl"] .header__actions {
  margin-left: 0;
  margin-right: auto;
  flex-direction: row-reverse;
  gap: 16px;
}
[dir="rtl"] .region-selector {
  direction: ltr; /* keep flag and lang EN in standard direction */
}
[dir="rtl"] .region-dropdown {
  direction: ltr; /* keep region selector internally ltr so names match their native spelling/flags */
  right: auto;
  left: 0;
}
[dir="rtl"] .address-dropdown {
  right: auto;
  left: 16px;
  text-align: right;
}
[dir="rtl"] .user-dropdown {
  right: auto;
  left: 0;
  text-align: right;
}
[dir="rtl"] .chat-drawer {
  right: auto;
  left: 24px;
}
[dir="rtl"] .floating-chat-bubble {
  right: auto;
  left: 24px;
}
[dir="rtl"] .back-to-top {
  left: auto;
  right: 24px;
}
[dir="rtl"] .product-card__price-row {
  flex-direction: row-reverse;
}
[dir="rtl"] .product-card__price-main {
  flex-direction: row-reverse;
}
[dir="rtl"] .product-modal__price-row {
  flex-direction: row-reverse;
}
[dir="rtl"] .product-card__btn svg {
  margin-right: 0;
  margin-left: 6px;
}
[dir="rtl"] .product-card__badge {
  right: auto;
  left: 10px;
}
[dir="rtl"] .wishlist-heart-btn {
  right: auto;
  left: 10px;
}
[dir="rtl"] .cart-drawer {
  right: auto;
  left: 0;
  transform: translateX(-100%);
}
[dir="rtl"] .cart-drawer.is-active {
  transform: translateX(0);
}
[dir="rtl"] .wishlist-drawer {
  right: auto;
  left: 0;
  transform: translateX(-100%);
}
[dir="rtl"] .wishlist-drawer.is-active {
  transform: translateX(0);
}
[dir="rtl"] .custom-select-trigger svg {
  transform: rotate(0deg);
}
[dir="rtl"] .search-bar {
  flex-direction: row-reverse;
}
[dir="rtl"] .search-bar__icon {
  margin-left: 0;
  margin-right: 12px;
}
[dir="rtl"] .search-bar__input {
  text-align: right;
}
[dir="rtl"] .header-location {
  margin-left: 0;
  margin-right: 16px;
  flex-direction: row-reverse;
}
[dir="rtl"] .header-location__text {
  text-align: right;
}
[dir="rtl"] .header-location__arrow {
  margin-left: 0;
  margin-right: 2px;
}

/* ==========================================================================
   UPGRADED VIP REWARDS & UI STYLES
   ========================================================================== */

/* Trust Badges Marquee */
.trust-strip-section {
  padding: 0 !important;
  background: var(--bg-marquee, #111) !important;
  border-bottom: 2px solid var(--accent, #FFE000) !important;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.trust-marquee {
  display: flex;
  overflow: hidden;
  user-select: none;
  width: 100%;
  padding: 14px 0;
  position: relative;
  background: transparent;
}
.trust-marquee-track {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: space-around;
  gap: 80px;
  min-width: 100%;
  animation: trust-scroll-ltr 30s linear infinite;
}
@keyframes trust-scroll-ltr {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-100%, 0, 0); }
}
/* RTL support for marquee */
html[dir="rtl"] .trust-marquee-track {
  animation: trust-scroll-rtl 30s linear infinite;
}
@keyframes trust-scroll-rtl {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(100%, 0, 0); }
}

.trust-item-new {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  white-space: nowrap;
}
.trust-item-new svg {
  color: var(--accent, #FFE000);
  filter: drop-shadow(0 0 3px rgba(255, 224, 0, 0.4));
  flex-shrink: 0;
}
.trust-item-new h4 {
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.3px;
  margin: 0;
  color: #fff;
}
.trust-item-new p {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.7);
  margin-top: 2px;
  margin-bottom: 0;
}

/* Category Pill Scroll Track with Arrows */
.sub-header-bar {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-color);
  padding: 0 44px !important; /* Make room for absolute arrows */
}
.sub-header__scroll-track {
  width: 100%;
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 10px 0;
  scroll-behavior: smooth;
  scrollbar-width: none; /* Firefox */
}
.sub-header__scroll-track::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}
.sub-header-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border-color);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.sub-header-arrow:hover {
  background: #fff;
  border-color: var(--noon-blue);
  color: var(--noon-blue);
  transform: translateY(-50%) scale(1.1);
  box-shadow: var(--shadow-md);
}
.sub-header-arrow--prev {
  left: 8px;
}
.sub-header-arrow--next {
  right: 8px;
}
/* Adjust arrows in RTL */
html[dir="rtl"] .sub-header-arrow--prev {
  left: auto;
  right: 8px;
}
html[dir="rtl"] .sub-header-arrow--next {
  right: auto;
  left: 8px;
}

/* Promo Banners Premium Overlays */
.promo-banners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.promo-banner-card {
  position: relative;
  overflow: hidden;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 32px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  background-size: cover;
  background-position: center;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
}
.promo-banner-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.8) 0%, rgba(15, 23, 42, 0.35) 100%);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1;
  transition: backdrop-filter 0.3s ease, background 0.3s ease;
}
.promo-banner-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.promo-banner-card:hover::before {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.7) 0%, rgba(15, 23, 42, 0.2) 100%);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.promo-banner-card__content {
  position: relative;
  z-index: 2;
  max-width: 75%;
}
.promo-banner-card h3 {
  font-size: 1.4rem;
  font-weight: 800;
  line-height: 1.2;
  color: #fff;
  margin: 0;
}
.promo-banner-card p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.85);
  margin-top: 6px;
  margin-bottom: 0;
}

/* Cart Enhancements */
.cart-progress-container {
  padding: 12px 16px;
  background: #f7f9fa;
  border-bottom: 1px solid var(--border-color);
}
.cart-progress-text {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
  display: block;
}
.cart-progress-bar {
  width: 100%;
  height: 6px;
  background: #e4e6eb;
  border-radius: 3px;
  overflow: hidden;
}
.cart-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #38c172, #2ecc71);
  width: 0%;
  transition: width 0.4s ease;
}

.cart-promo-container {
  padding: 12px 16px;
  border-top: 1px solid var(--border-color);
  background: #fdfdfd;
}
.cart-promo-input-row {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}
.cart-promo-input {
  flex: 1;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0 12px;
  font-size: 0.8rem;
  font-weight: 700;
  height: 36px;
  text-transform: uppercase;
}
.cart-promo-input:focus {
  border-color: var(--noon-blue);
}
.cart-promo-btn {
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  font-size: 0.8rem;
  padding: 0 16px;
  border-radius: var(--radius-sm);
  height: 36px;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}
.cart-promo-btn:hover {
  background: var(--primary-light);
}
.cart-promo-status {
  font-size: 0.7rem;
  font-weight: 700;
  margin-top: 6px;
  display: none;
}
.cart-promo-status.success {
  color: #38c172;
}
.cart-promo-status.error {
  color: #e53e3e;
}

/* ==========================================================================
   21. NESTED REGION DROPDOWNS & WISHLIST DRAWER OVERLAYS
   ========================================================================== */

/* Nested Region selector options */
.region-item-container {
  display: flex;
  flex-direction: column;
  width: 100%;
}
.region-item-sub {
  display: none;
  flex-direction: row;
  gap: 8px;
  padding: 8px 12px 12px 42px;
  background: var(--bg-alt);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  margin-top: -4px;
  border: 1px solid var(--border-color);
  border-top: none;
}
.region-item-container.is-open .region-item-sub {
  display: flex;
}
.region-item-container.is-open .region-item {
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  border-bottom: none;
}
.region-item-container.is-open .region-item__arrow {
  transform: rotate(180deg);
}
.region-item-sub-opt {
  flex: 1;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}
.region-item-sub-opt:hover {
  border-color: var(--noon-blue);
  color: var(--noon-blue);
  background: rgba(56, 102, 223, 0.05);
}
.region-item-sub-opt.is-active {
  background: var(--noon-blue);
  color: #fff;
  border-color: var(--noon-blue);
}

/* Custom Address select subdropdown arrow spacing */
.custom-select-option--has-sub .region-item__arrow {
  margin-left: auto;
}
[dir="rtl"] .custom-select-option--has-sub .region-item__arrow {
  margin-left: 0;
  margin-right: auto;
}

/* Wishlist Overlay & Drawer smooth slide-in transition */
.wishlist-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1200;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.3s ease;
}
.wishlist-overlay.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.wishlist-overlay.is-active .wishlist-drawer {
  transform: translateX(0);
}
.wishlist-drawer {
  position: fixed;
  top: 16px;
  right: 16px;
  bottom: 16px;
  width: 420px;
  max-width: calc(100vw - 32px);
  height: calc(100vh - 32px);
  background: rgba(255, 255, 255, 0.83);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transform: translateZ(0);
  will-change: transform, opacity;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 24px;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.16);
  z-index: 1201;
  transform: translateX(calc(100% + 24px));
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

[dir="rtl"] .wishlist-overlay.is-active .wishlist-drawer {
  transform: translateX(0);
}
[dir="rtl"] .wishlist-drawer {
  right: auto;
  left: 16px;
  transform: translateX(calc(-100% - 24px));
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.15);
}

/* Wishlist Items List */
.wishlist-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 14px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 12px;
  margin: 10px 14px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
}
.wishlist-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.04);
}
.wishlist-item__img {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
}
.wishlist-item__img img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.wishlist-item__info {
  flex: 1;
  min-width: 0;
}
.wishlist-item__name {
  font-size: 0.76rem !important;
  font-weight: 700 !important;
  color: var(--primary) !important;
  line-height: 1.35 !important;
  margin-bottom: 2px !important;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  display: block !important;
}
.wishlist-item__price {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--noon-blue);
}
.wishlist-item__actions {
  display: flex;
  gap: 8px;
  border-top: 1px solid #f1f5f9;
  padding-top: 8px;
  margin-top: 2px;
}
.wishlist-item__add-btn {
  flex: 1;
  height: 30px;
  background: var(--noon-blue);
  color: #fff;
  border: none;
  font-size: 0.72rem;
  font-weight: 800;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.wishlist-item__add-btn:hover {
  background: #2b4ea3;
}
.wishlist-item__remove-btn {
  height: 30px;
  padding: 0 10px;
  background: #fff;
  border: 1px solid #fee2e2;
  color: #ef4444;
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.wishlist-item__remove-btn:hover {
  background: #fff5f5;
  border-color: #fca5a5;
  color: #dc2626;
}
.wishlist-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  color: var(--text-muted);
  text-align: center;
  gap: 12px;
}

/* Brand Marquee Logo Images styling */
.brand-marquee-track img {
  height: 24px;
  width: auto;
  max-width: 100px;
  margin: 0 45px;
  vertical-align: middle;
  opacity: 0.85;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  object-fit: contain;
  cursor: pointer;
}
.brand-marquee-track img:hover {
  opacity: 1;
  transform: scale(1.08);
}

/* ==========================================================================
   22. PREMIUM DELIVER-TO MODAL & SIMULATED MAP STYLES
   ========================================================================== */

/* Modal Backdrop — Bottom Sheet Alignment */
.address-modal-backdrop {
  position: fixed;
  inset: 0;
  height: 100vh;
  height: 100dvh;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 2000000 !important;
  display: none;
  align-items: flex-end !important;
  justify-content: center;
  padding: 0 12px 20px 12px !important; /* side and bottom padding to float/raise modal */
  box-sizing: border-box !important;
}
.address-modal-backdrop[style*="display: block"],
.address-modal-backdrop[style*="display: flex"] {
  display: flex !important;
}

/* Container Card — Bottom Sheet Modal */
.address-modal-card,
.address-modal-card * {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
}

.address-modal-card {
  background: rgba(85, 85, 90, 0.98) !important;
  backdrop-filter: blur(40px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(40px) saturate(180%) !important;
  border: 1.2px solid rgba(255, 255, 255, 0.28) !important;
  border-radius: 24px !important; /* fully rounded floating sheet */
  width: 100% !important;
  max-width: 100% !important;
  height: 72vh !important;
  height: 72dvh !important;
  max-height: 72vh !important;
  max-height: 72dvh !important;
  box-shadow: 0 -15px 50px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.35) !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  position: relative !important;
  margin: 0 !important;
  padding: 0 !important;
  animation: slideUpAddressModal 0.32s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
}

@media (min-width: 768px) {
  .address-modal-backdrop,
  #address-dropdown {
    align-items: center !important;
    justify-content: center !important;
    padding: 20px !important;
  }
  .address-modal-card {
    width: 100% !important;
    max-width: 580px !important;
    height: 600px !important;
    max-height: 80vh !important;
    margin: auto !important;
    border-radius: 24px !important;
    border-bottom: 1.2px solid rgba(255, 255, 255, 0.28) !important;
  }
}

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

/* Hover and active states for tabs */
.address-tab-btn {
  border-bottom: 3px solid transparent;
  transition: all 0.2s ease;
}
.address-tab-btn:hover {
  color: var(--noon-blue) !important;
}
.address-tab-btn.is-active {
  color: var(--noon-blue) !important;
}

/* Modal region floating dropdown popover styling */
#modal-region-panel::-webkit-scrollbar {
  width: 4px;
}
#modal-region-panel::-webkit-scrollbar-track {
  background: transparent;
}
#modal-region-panel::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.22);
  border-radius: 4px;
}


/* Country Option Items in Dropdown */
.country-opt-btn {
  transition: background 0.2s ease;
}
.country-opt-btn:hover {
  background: rgba(255, 255, 255, 0.07) !important;
}

/* Dragging state for map pin */
#draggable-map-pin {
  transition: transform 0.1s ease;
}
#draggable-map-pin:active {
  cursor: grabbing !important;
}

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

/* Newsletter email placeholder - make it visible on dark background */
#newsletter-email::placeholder {
  color: rgba(255, 255, 255, 0.85) !important;
  opacity: 1 !important;
}

/* Remove Leaflet map attribution watermark */
.leaflet-control-attribution {
  display: none !important;
}

/* Frosted header search input placeholder */
#search-input::placeholder {
  color: rgba(255, 255, 255, 0.75) !important;
}

#map-search-input::placeholder {
  color: rgba(255, 255, 255, 0.6) !important;
  opacity: 1 !important;
}

#address-modal-search::placeholder {
  color: rgba(255, 255, 255, 0.65) !important;
  opacity: 1 !important;
}

/* ─── Custom scrollbar: Country list dropdown ─── */
#address-modal-country-list {
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.18) transparent;
}
#address-modal-country-list::-webkit-scrollbar {
  width: 4px;
}
#address-modal-country-list::-webkit-scrollbar-track {
  background: transparent;
  border-radius: 99px;
}
#address-modal-country-list::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.18);
  border-radius: 99px;
}
#address-modal-country-list::-webkit-scrollbar-thumb:hover {
  background: rgba(255,255,255,0.35);
}

/* ─── Custom scrollbar: Region grid container ─── */
.region-grid-container {
  scrollbar-width: thin;
  scrollbar-color: rgba(0,0,0,0.15) transparent;
}
.region-grid-container::-webkit-scrollbar {
  width: 4px;
}
.region-grid-container::-webkit-scrollbar-track {
  background: transparent;
}
.region-grid-container::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.13);
  border-radius: 99px;
}
.region-grid-container::-webkit-scrollbar-thumb:hover {
  background: rgba(0,0,0,0.26);
}

/* ==========================================================================
   23. FLOATING PILL HEADER & RESPONSIVE LAYOUT OVERRIDES
   ========================================================================== */
.header__nav {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
  width: 100% !important;
}

.header__actions {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex-shrink: 0 !important;
}

@media (max-width: 992px) {
  #delivery-location-btn {
    width: 42px !important;
    min-width: 42px !important;
    max-width: 42px !important;
    padding: 0 !important;
    justify-content: center !important;
  }
  .header-location__text, .header-location__arrow {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .header {
    top: 0 !important;
    margin: 0 !important;
    border-radius: 0 !important;
    padding: 6px 12px 10px 12px !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .header__nav {
    flex-wrap: wrap !important;
    gap: 8px 10px !important;
    align-items: center !important;
  }

  .logo {
    font-size: 1.3rem !important;
    padding-right: 0 !important;
  }

  #delivery-location-btn {
    width: 36px !important;
    min-width: 36px !important;
    max-width: 36px !important;
    height: 36px !important;
    padding: 0 !important;
    justify-content: center !important;
    margin-left: 0 !important;
    border-radius: 50% !important;
  }

  .header-location__text, .header-location__arrow {
    display: none !important;
  }

  .search-wrapper {
    order: 3 !important;
    width: 100% !important;
    flex: 1 0 100% !important;
    margin: 2px 0 0 0 !important;
  }

  .search-bar {
    height: 36px !important;
    padding: 0 12px !important;
    border-radius: 18px !important;
  }

  .header__actions {
    margin-left: auto !important;
    gap: 6px !important;
  }

  #auth-btn-text, #current-lang {
    display: none !important;
  }

  .region-btn, .action-btn {
    padding: 0 10px !important;
    height: 36px !important;
    border-radius: 18px !important;
    font-size: 0.75rem !important;
  }

  .footer, .newsletter-section {
    margin: 0 !important;
    border-radius: 0 !important;
    padding: 36px 16px 20px 16px !important;
    width: 100% !important;
    max-width: 100% !important;
  }
}

/* ==========================================================================
   ANIMATED BRAND LOGO (PREMIUM & EYE CANDY - CUSTOM BUBBLY WORDMARK)
   ========================================================================== */
.logo-svg {
  display: inline-block;
  vertical-align: middle;
  transform-origin: center;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#logo-link:hover .logo-svg,
.logo--footer:hover .logo-svg {
  transform: scale(1.06);
}

/* Drawing the I's checkmark dot */
@keyframes drawCheckDot {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes dotPulseGlow {
  0%, 100% {
    filter: drop-shadow(0 0 2px rgba(245, 158, 11, 0.5));
    transform: translateY(0);
  }
  50% {
    filter: drop-shadow(0 0 8px rgba(245, 158, 11, 0.9)) drop-shadow(0 0 16px rgba(239, 68, 68, 0.4));
    transform: translateY(-2px);
  }
}

.logo-i-dot {
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
  animation: drawCheckDot 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.6s forwards,
             dotPulseGlow 2.5s ease-in-out infinite 1.4s;
  transform-origin: 78px 14px;
}

#logo-link:hover .logo-i-dot,
.logo--footer:hover .logo-i-dot {
  animation: dotPulseGlow 0.6s ease-in-out infinite;
}

/* Winking Mascot Group animation */
@keyframes mascotBounce {
  0%, 100% {
    transform: translateY(0) scale(1);
    filter: drop-shadow(0 0 2px rgba(245, 158, 11, 0.4));
  }
  50% {
    transform: translateY(-2px) scale(1.06);
    filter: drop-shadow(0 0 8px rgba(245, 158, 11, 0.8)) drop-shadow(0 0 16px rgba(239, 68, 68, 0.4));
  }
}

.logo-mascot-group {
  transform-origin: 132px 25px;
  animation: mascotBounce 3s ease-in-out infinite;
}

#logo-link:hover .logo-mascot-group,
.logo--footer:hover .logo-mascot-group {
  animation: mascotBounce 0.8s ease-in-out infinite;
}

/* Smiley face animations inside mascot dot */
@keyframes wink {
  0%, 90%, 100% {
    transform: scaleY(1);
  }
  95% {
    transform: scaleY(0.15);
  }
}

.logo-smiley circle:first-child {
  transform-origin: 129px 23px;
  animation: wink 3.5s ease-in-out infinite;
}

.logo-smiley circle:nth-child(2) {
  transform-origin: 135px 23px;
  animation: wink 3.5s ease-in-out infinite 0.15s;
}

/* ==========================================================================
   KLARNA HERO SECTION & CAROUSEL SLIDER (DITTO REPLIKA)
   ========================================================================== */
.premium-hero-carousel-section {
  padding: 32px 0 16px;
  background: transparent;
}

.premium-hero-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
}

.premium-hero-carousel {
  width: 100%;
  max-width: 1360px; /* Wider and bigger desktop size */
  margin: 0 auto;    /* Centered within container */
  aspect-ratio: 1024 / 492; /* Exact ratio matching the 1024x492 images to prevent side or top/bottom cropping */
  border-radius: 28px;
  overflow: hidden;
  position: relative;
  background-color: #e6e2f4; /* Exact lavender matching background of delivery banner */
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.04);
}

@media (max-width: 768px) {
  .premium-hero-carousel {
    border-radius: 18px;
  }
}

[data-theme="dark"] .premium-hero-carousel {
  background-color: #1a152e; /* Deep purple dark mode background to match the dark theme */
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.premium-hero-track {
  display: flex;
  width: 400%; /* 4 slides side-by-side */
  height: 100%;
  position: relative;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
  cursor: grab;
}

.premium-hero-track:active {
  cursor: grabbing;
}

.premium-hero-slide {
  flex: 1;
  width: 25%;
  height: 100%;
  position: relative;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  flex-shrink: 0;
}

.premium-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Stretch to fill container without white bars or empty spaces */
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

/* Align delivery image to top-right to preserve drone visibility */
.premium-hero-img--delivery {
  object-position: right top !important;
}

/* Container to lay out the text on the left */
.premium-hero-content-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 50%; /* takes up the left half of the banner */
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* Pushes text group to top and features card to bottom */
  padding: 48px 0 48px 64px; /* padding on the left and vertical */
  z-index: 5;
  box-sizing: border-box;
  text-align: left;
}

.premium-hero-title {
  font-family: 'Unbounded', 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 3.2rem; /* restored to majestic 3.2rem size */
  line-height: 1.1;
  letter-spacing: -1.5px;
  color: #121214;
  margin: 0 0 16px 0;
}

[data-theme="dark"] .premium-hero-title {
  color: #ffffff;
}

.premium-hero-highlight {
  color: #5c24e6; /* purple highlight */
}

[data-theme="dark"] .premium-hero-highlight {
  color: #9d75ff; /* lighter purple for dark mode contrast */
}

.premium-hero-subtitle {
  font-size: 1.1rem; /* restored to 1.1rem */
  font-weight: 600;
  line-height: 1.5;
  color: #4a4a4f;
  max-width: 480px;
  margin: 0;
}

[data-theme="dark"] .premium-hero-subtitle {
  color: #c9c9cf;
}

/* White features badge card - positioned at the bottom, smaller size */
.premium-hero-features-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 16px;
  padding: 10px 16px; /* smaller padding */
  display: flex;
  justify-content: space-between;
  gap: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
  max-width: 540px; /* smaller max-width */
}

[data-theme="dark"] .premium-hero-features-card {
  background: rgba(25, 25, 28, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.premium-hero-feature-item {
  display: flex;
  align-items: center; /* align vertically centered */
  gap: 8px;
  flex: 1;
}

.premium-hero-feature-icon {
  width: 20px; /* smaller icon */
  height: 20px;
  color: #5c24e6; /* Purple icons */
  flex-shrink: 0;
}

[data-theme="dark"] .premium-hero-feature-icon {
  color: #9d75ff;
}

.premium-hero-feature-icon svg {
  width: 100%;
  height: 100%;
}

.premium-hero-feature-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.premium-hero-feature-title {
  font-size: 0.74rem; /* smaller title font size */
  font-weight: 800;
  color: #121214;
  white-space: nowrap;
}

[data-theme="dark"] .premium-hero-feature-title {
  color: #ffffff;
}

.premium-hero-feature-desc {
  font-size: 0.58rem; /* smaller desc font size */
  font-weight: 600;
  color: #636366;
  line-height: 1.1;
}

[data-theme="dark"] .premium-hero-feature-desc {
  color: #a1a1a6;
}

/* White stats container card for Slide 2 */
.premium-hero-stats-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 16px;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
  max-width: 440px; /* even narrower and cleaner! */
  box-sizing: border-box;
}

[data-theme="dark"] .premium-hero-stats-card {
  background: rgba(25, 25, 28, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.premium-hero-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
}

.premium-hero-stat-icon {
  width: 20px;
  height: 20px;
  color: #5c24e6;
  margin-bottom: 6px;
}

[data-theme="dark"] .premium-hero-stat-icon {
  color: #9d75ff;
}

.premium-hero-stat-icon svg {
  width: 100%;
  height: 100%;
}

.premium-hero-stat-value {
  font-size: 1.1rem;
  font-weight: 800;
  color: #121214;
  line-height: 1.2;
  margin-bottom: 2px;
}

[data-theme="dark"] .premium-hero-stat-value {
  color: #ffffff;
}

.premium-hero-stat-label {
  font-size: 0.62rem;
  font-weight: 600;
  color: #636366;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

[data-theme="dark"] .premium-hero-stat-label {
  color: #a1a1a6;
}

.premium-hero-stat-divider {
  width: 1px;
  height: 36px;
  background-color: rgba(0, 0, 0, 0.08);
  flex-shrink: 0;
  margin: 0 12px;
}

[data-theme="dark"] .premium-hero-stat-divider {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Responsive scaling for overlay */
@media (max-width: 1200px) {
  .premium-hero-title {
    font-size: 2.6rem;
  }
  .premium-hero-subtitle {
    font-size: 1rem;
    margin-bottom: 24px;
  }
  .premium-hero-features-card {
    padding: 14px 18px;
    gap: 12px;
  }
  .premium-hero-stats-card {
    padding: 10px 18px;
    gap: 8px;
  }
}

@media (max-width: 992px) {
  .premium-hero-content-overlay {
    width: 60%;
    padding-left: 40px;
  }
  .premium-hero-title {
    font-size: 2.2rem;
  }
}

@media (max-width: 768px) {
  .premium-hero-carousel {
    aspect-ratio: 1024 / 492 !important; /* Perfect fit for the baked-text banners */
    min-height: auto !important;
  }
  .premium-hero-content-overlay {
    width: 100% !important;
    height: 100% !important;
    padding: 20px 20px 32px 20px !important;
    /* Bottom-heavy fading mask: solid text backing at bottom, transparent top to show graphics */
    background: linear-gradient(to top, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.88) 55%, rgba(255, 255, 255, 0) 100%) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-end !important; /* Push text to the bottom */
  }
  [data-theme="dark"] .premium-hero-content-overlay {
    background: linear-gradient(to top, rgba(26, 21, 46, 0.98) 0%, rgba(26, 21, 46, 0.88) 55%, rgba(26, 21, 46, 0) 100%) !important;
  }
  .premium-hero-header-group {
    margin-bottom: 8px !important;
  }
  .premium-hero-title {
    font-size: 1.7rem !important;
    line-height: 1.15 !important;
    margin-bottom: 6px !important;
  }
  .premium-hero-subtitle {
    font-size: 0.85rem !important;
    line-height: 1.4 !important;
    color: #4a4a4f !important;
  }
  [data-theme="dark"] .premium-hero-subtitle {
    color: #c9c5d8 !important;
  }
  .premium-hero-features-card,
  .premium-hero-stats-card {
    display: none !important; /* Hide to prevent cluttering slide height and overlapping */
  }
}

@media (max-width: 480px) {
  .premium-hero-features-card,
  .premium-hero-stats-card {
    display: none; /* Hide overlay cards on mobile to keep layout clean */
  }
}

/* Bottom Right Payment Methods Bar */
.premium-hero-payment-overlay {
  position: absolute;
  bottom: 24px;
  right: 24px;
  z-index: 5;
  pointer-events: auto;
}

.premium-hero-payment-bar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 9999px; /* Pill shape */
  padding: 6px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .premium-hero-payment-bar {
  background: rgba(25, 25, 28, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.premium-hero-payment-trust {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #121214;
  font-weight: 800;
  font-size: 0.65rem;
  white-space: nowrap;
}

[data-theme="dark"] .premium-hero-payment-trust {
  color: #ffffff;
}

.premium-hero-trust-icon {
  width: 14px;
  height: 14px;
  color: #5c24e6;
}

[data-theme="dark"] .premium-hero-trust-icon {
  color: #9d75ff;
}

.premium-hero-payment-divider {
  width: 1px;
  height: 16px;
  background-color: rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .premium-hero-payment-divider {
  background-color: rgba(255, 255, 255, 0.15);
}

.premium-hero-payment-icons {
  display: flex;
  align-items: center;
  gap: 8px;
}

.payment-badge-svg {
  height: 16px; /* consistent tiny height for icons */
  display: block;
}

@media (max-width: 768px) {
  .premium-hero-payment-overlay {
    bottom: 12px !important;
    right: 12px !important;
  }
  .premium-hero-payment-bar {
    padding: 4px 10px !important;
    gap: 8px !important;
    border-radius: 9999px !important;
  }
  .premium-hero-payment-trust span {
    font-size: 0.55rem !important;
  }
  .premium-hero-trust-icon {
    width: 11px !important;
    height: 11px !important;
  }
  .premium-hero-payment-divider {
    height: 12px !important;
  }
  .payment-badge-svg {
    height: 12px !important;
  }
  
  /* Prevent category nav page stretch on mobile */
  .cat-nav-bar {
    width: 100% !important;
    overflow: hidden !important;
  }
  .cat-nav-inner {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    width: 100% !important;
    padding: 0 12px !important;
  }
  .cat-nav-dropdown {
    display: none !important;
  }
}

/* Base HTML overflow prevention */
html {
  max-width: 100%;
}

.premium-hero-controls-row {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  z-index: 10;
  pointer-events: auto;
}

/* No pill — controls sit transparently on the image */
.premium-hero-control-pill {
  display: contents;
}


.premium-hero-play-pause-btn {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  background: transparent;
  border: none;
  padding: 0;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,0.5));
}

[data-theme="dark"] .premium-hero-play-pause-btn {
  color: rgba(255, 255, 255, 0.85);
}

.premium-hero-play-pause-btn svg {
  width: 12px;
  height: 12px;
  display: block;
}

.premium-hero-progress-track {
  display: flex;
  align-items: center;
  gap: 5px;
  width: 130px;
}

.premium-hero-progress-segment {
  flex: 1;
  height: 3px;
  background: rgba(255, 255, 255, 0.35);
  border-radius: 2px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.4));
}

[data-theme="dark"] .premium-hero-progress-segment {
  background: rgba(255, 255, 255, 0.35);
}

.premium-hero-progress-fill {
  height: 100%;
  width: 0%;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 2px;
  transition: none;
}

[data-theme="dark"] .premium-hero-progress-fill {
  background-color: rgba(255, 255, 255, 0.9);
}

@media (max-width: 768px) {
  .premium-hero-carousel {
    border-radius: 18px;
  }
}

/* Extending hero section color to the top and mid-sections */
.klarna-header-hero-wrapper,
.klarna-mid-wrapper {
  background-color: var(--bg-main);
  transition: background-color 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  width: 100%;
}

.klarna-header-hero-wrapper {
  position: relative;
}

.klarna-header-hero-wrapper .klarna-hero-section {
  background-color: transparent !important;
}

.klarna-header-hero-wrapper .sub-header-bar {
  background: transparent !important;
  border-bottom: none !important;
}

/* ===================================================
   HIERARCHICAL CATEGORY NAV BAR
   =================================================== */

/* ── Bar container ── */
.cat-nav-bar {
  display: none !important;
}
.cat-nav-inner {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 0 16px;
  /* No overflow-x here — dropdowns need to escape; JS handles scrolling */
  scrollbar-width: none;
  -ms-overflow-style: none;
  flex-wrap: nowrap;
}
.cat-nav-inner::-webkit-scrollbar { display: none; }

/* ── Each top-level item ── */
.cat-nav-item { position: static; flex-shrink: 0; }
.cat-nav-item--has-dropdown { position: relative; }

/* ── Top-level tab button ── */
.cat-nav-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px !important;
  padding: 6px 14px !important;
  background: transparent;
  border: none !important;
  border-radius: 9999px !important;
  font-family: var(--font-family);
  font-size: 0.82rem !important;
  font-weight: 600 !important;
  color: #52525B !important;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease !important;
  letter-spacing: -0.1px;
}
.cat-nav-tab svg {
  width: 16px !important;
  height: 16px !important;
  opacity: 0.75;
  flex-shrink: 0;
  stroke: currentColor !important;
  stroke-width: 1.5px !important;
  transition: all 0.2s ease !important;
}
.cat-nav-tab:hover,
.cat-nav-item--has-dropdown:hover > .cat-nav-tab {
  color: #18181B !important;
  background: rgba(0, 0, 0, 0.05) !important;
}
.cat-nav-tab:hover svg,
.cat-nav-item--has-dropdown:hover > .cat-nav-tab svg {
  opacity: 1 !important;
}

/* Active tab */
.cat-nav-tab.cat-nav-tab--active {
  background: #18181B !important;
  color: #FFFFFF !important;
  font-weight: 700 !important;
}
.cat-nav-tab.cat-nav-tab--active svg {
  opacity: 1 !important;
}
.cat-nav-tab.cat-nav-tab--active:hover {
  background: #27272A !important;
  color: #FFFFFF !important;
}

/* Sale tab */
.cat-nav-tab--sale {
  color: #ff3f6c !important;
}
.cat-nav-tab--sale:hover {
  color: #ff3f6c !important;
  background: rgba(255, 63, 108, 0.06) !important;
}

/* Chevron rotates on hover */
.cat-nav-chevron {
  transition: transform 0.2s ease;
  opacity: 0.4 !important;
}
.cat-nav-item--has-dropdown:hover .cat-nav-chevron {
  transform: rotate(180deg);
  opacity: 0.9 !important;
}

/* ── Dropdown panel — position:fixed to escape overflow clipping ── */
.cat-nav-dropdown {
  display: none;
  position: fixed; /* escapes any overflow:auto ancestor */
  min-width: 600px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.18), 0 6px 20px rgba(0,0,0,0.08);
  z-index: 9999;
}
.cat-nav-dropdown.is-open {
  display: block;
  animation: catDropIn 0.18s cubic-bezier(0.16,1,0.3,1) forwards;
}

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

/* Inner layout: columns side by side */
.cat-nav-dropdown-inner {
  display: flex;
  padding: 22px 8px 22px 8px;
}
.cat-nav-dropdown-col {
  flex: 1;
  padding: 0 20px;
  border-right: 1px solid var(--border-color);
}
.cat-nav-dropdown-col:last-child { border-right: none; }

/* Column heading */
.cat-nav-dropdown-heading {
  font-size: 0.63rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--noon-blue);
  margin: 0 0 10px 0;
  padding-bottom: 7px;
  border-bottom: 1.5px solid rgba(56, 102, 223, 0.2);
}

/* Subcategory links */
.cat-nav-sub {
  display: block;
  padding: 5px 0;
  font-size: 0.81rem;
  font-weight: 600;
  color: var(--text-main);
  text-decoration: none;
  transition: color 0.14s ease, padding-left 0.14s ease;
  white-space: nowrap;
}
.cat-nav-sub:hover {
  color: var(--noon-blue);
  padding-left: 5px;
}

/* Dark-mode adjustments */
[data-theme="dark"] .cat-nav-dropdown {
  box-shadow: 0 20px 60px rgba(0,0,0,0.55), inset 0 1px 0 rgba(255,255,255,0.06);
}
[data-theme="dark"] .cat-nav-dropdown-col {
  border-right-color: rgba(255,255,255,0.08);
}

/* Hide old sub-header-bar if still present */
.sub-header-bar { display: none !important; }

/* Klarna hero wrapper override */
/* Klarna hero wrapper override */
.klarna-header-hero-wrapper .cat-nav-bar {
  background: transparent !important;
  border-bottom: none !important;
}

/* ==========================================================================
   DELIVERY SUB-HEADER BAR (Walmart & Sam's Club inspired)
   ========================================================================== */
.delivery-sub-bar {
  width: 100% !important;
  margin: 0 !important;
  height: 52px !important;
  background: rgba(18, 18, 20, 0.95) !important;
  backdrop-filter: blur(15px) !important;
  -webkit-backdrop-filter: blur(15px) !important;
  border: none !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  display: flex !important;
  align-items: center !important;
  z-index: 1000;
  box-sizing: border-box !important;
}

.delivery-sub-bar__container {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 0 24px !important;
}

/* Reset hover state for address button within sub-bar */
.delivery-sub-bar #delivery-location-btn:hover {
  background-color: transparent !important;
  opacity: 0.85;
}

/* Sub-bar specific locations overrides (desktop & mobile viewports) */
.delivery-sub-bar #delivery-location-btn {
  width: auto !important;
  min-width: auto !important;
  max-width: none !important;
  height: auto !important;
  padding: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  border: none !important;
}

.delivery-sub-bar .header-location__text {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 6px !important;
  overflow: visible !important;
  text-align: left !important;
}

.delivery-sub-bar .header-location__label {
  font-size: 0.88rem !important;
  font-weight: 500 !important;
  color: rgba(255, 255, 255, 0.75) !important;
  text-transform: none !important;
  margin: 0 !important;
}

.delivery-sub-bar .header-location__val {
  font-size: 0.88rem !important;
  font-weight: 700 !important;
  color: #fff !important;
  margin: 0 !important;
}

.delivery-sub-bar .header-location__arrow {
  display: block !important;
  width: 12px !important;
  height: 12px !important;
  color: rgba(255, 255, 255, 0.6) !important;
  margin-left: 2px !important;
}

/* Sub-bar region selector: hidden on desktop, shown on mobile */
.sub-bar-region-selector {
  display: none;
  align-items: center;
  flex-shrink: 0;
}

/* ============================================================
   MOBILE HEADER OVERRIDES (≤768px)
   ============================================================ */
@media (max-width: 768px) {
  /* Prevent header row wrapping — Logo | Search | Actions on one line */
  .header__nav {
    flex-wrap: nowrap !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 0 12px !important;
    height: 48px !important;
  }

  .logo {
    order: 1 !important;
    flex-shrink: 0 !important;
    padding-right: 0 !important;
    margin-right: 0 !important;
  }

  .logo-svg {
    height: 22px !important;
    width: auto !important;
  }

  /* Search bar fills remaining space but won't overflow */
  .search-wrapper {
    order: 2 !important;
    flex: 1 1 0 !important;
    min-width: 0 !important;
    max-width: 180px !important; /* cap so it doesn't push icons off screen */
    margin: 0 6px !important;
    display: block !important;
  }

  .search-bar {
    height: 28px !important;
    padding: 0 10px !important;
    border-radius: 14px !important;
  }

  .search-bar__icon {
    width: 12px !important;
    height: 12px !important;
    flex-shrink: 0;
  }

  .search-bar__input {
    font-size: 16px !important;
    min-width: 0 !important;
    width: 100% !important;
  }

  /* Actions: sign-in + cart only (region selector moved to sub-bar) */
  .header__actions {
    order: 3 !important;
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    flex-shrink: 0 !important;
    margin-left: 0 !important;
  }

  /* Hide the region selector button from the main header on mobile, but keep container for dropdown */
  #region-btn {
    display: none !important;
  }
  #region-selector-container {
    display: block !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
  }

  /* Borderless transparent icon buttons */
  #auth-trigger-btn,
  #cart-toggle-btn {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    height: 28px !important;
    padding: 0 2px !important;
    gap: 3px !important;
    font-size: 0.68rem !important;
    font-weight: 700 !important;
    min-width: auto !important;
    color: #ffffff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
  }

  #auth-trigger-btn svg,
  #cart-toggle-btn svg {
    width: 17px !important;
    height: 17px !important;
    color: #ffffff !important;
  }

  #cart-toggle-btn span[data-i18n="cart"] {
    display: none !important;
  }

  #auth-btn-text {
    display: none !important;
  }

  /* Apple-style floating badge */
  .cart-badge {
    position: absolute !important;
    top: -2px !important;
    right: -6px !important;
    font-size: 0.6rem !important;
    font-weight: 900 !important;
    width: 14px !important;
    height: 14px !important;
    border: 1.5px solid rgba(24, 24, 27, 0.96) !important;
    background-color: var(--noon-yellow) !important;
    color: #000000 !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  /* Sub-bar on mobile */
  .delivery-sub-bar {
    width: 100% !important;
    margin: 0 !important;
    height: 36px !important;
  }
  .delivery-sub-bar__container {
    padding: 0 12px !important;
  }
  .delivery-sub-bar .header-location__label,
  .delivery-sub-bar .header-location__val {
    font-size: 0.72rem !important;
  }

  /* Show region selector in sub-bar on mobile */
  .sub-bar-region-selector {
    display: flex !important;
    align-items: center !important;
  }

  /* Sub-bar region button styling */
  .sub-bar-region-btn {
    background: transparent !important;
    border: none !important;
    color: #fff !important;
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    cursor: pointer;
    padding: 0 !important;
    white-space: nowrap !important;
  }

  .sub-bar-region-lang {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 0.72rem !important;
    font-weight: 700 !important;
  }
}

/* ==========================================================================
   INTERACTIVE CHEVRON ROTATIONS & ANIMATIONS
   ========================================================================== */
.sub-bar-region-chevron {
  transition: transform 0.24s cubic-bezier(0.16, 1, 0.3, 1), stroke 0.24s ease !important;
  transform-origin: center center !important;
}

#sub-bar-region-btn:hover .sub-bar-region-chevron,
#sub-bar-region-btn.is-active .sub-bar-region-chevron {
  transform: rotate(180deg) !important;
  stroke: rgba(255, 255, 255, 1) !important;
}

.delivery-sub-bar .header-location__arrow {
  transition: transform 0.24s cubic-bezier(0.16, 1, 0.3, 1), color 0.24s ease !important;
  transform-origin: center center !important;
}

.delivery-sub-bar #delivery-location-btn:hover svg,
.delivery-sub-bar #delivery-location-btn.is-active svg {
  color: #FFFFFF !important;
}

.delivery-sub-bar #delivery-location-btn:hover .header-location__arrow,
.delivery-sub-bar #delivery-location-btn.is-active .header-location__arrow {
  transform: rotate(180deg) !important;
  color: rgba(255, 255, 255, 1) !important;
}

/* Desktop main region selector hover rotation */
.region-btn:hover .region-btn__arrow {
  transform: rotate(180deg) !important;
}

/* ==========================================================================
   PREMIUM RIGHT-SIDE SEARCH BUTTON
   ========================================================================== */
.search-bar__btn {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 30px !important;
  height: 30px !important;
  border-radius: 50% !important;
  background: var(--noon-yellow) !important;
  border: none !important;
  cursor: pointer !important;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
  margin-left: 8px !important;
  flex-shrink: 0 !important;
  color: #1e2022 !important;
  padding: 0 !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15) !important;
}

.search-bar__btn:hover {
  background: var(--accent-hover) !important;
  transform: scale(1.06) !important;
  box-shadow: 0 4px 12px rgba(255, 224, 0, 0.35) !important;
}

.search-bar__btn svg {
  width: 14px !important;
  height: 14px !important;
  stroke: #1e2022 !important;
  stroke-width: 3.5 !important;
  display: block !important;
}

@media (max-width: 768px) {
  .search-bar__btn {
    width: 22px !important;
    height: 22px !important;
    margin-left: 4px !important;
  }
  
  .search-bar__btn svg {
    width: 10px !important;
    height: 10px !important;
    stroke-width: 4 !important;
  }
}

/* ==========================================================================
   FULL-SCREEN PRODUCT DETAIL PAGE (PDP) OVERRIDES
   ========================================================================== */

/* Overlay takes the whole screen, no blur, solid white background */
#product-details-overlay {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background-color: #ffffff !important;
  z-index: 99999 !important;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease, visibility 0.22s ease;
  display: flex !important;
  flex-direction: column !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  align-items: unset !important;
  justify-content: unset !important;
  overflow: hidden !important;
}

#product-details-overlay.is-active {
  opacity: 1;
  visibility: visible;
}

/* Product modal fills the entire overlay as a flex column */
#product-details-overlay .product-modal {
  width: 100% !important;
  max-width: 800px !important;
  height: 100vh !important;
  max-height: 100vh !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 auto !important;
  transform: none !important;
  background: #ffffff !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
}

/* Scrollable content area fills remaining space */
#product-details-overlay .pdp-content-scroll {
  flex: 1 !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
}

/* Bottom bar never scrolls */
#product-details-overlay .pdp-bottom-bar {
  flex-shrink: 0 !important;
}

/* Hide the default X close button */
#product-details-overlay .product-modal__close {
  display: none !important;
}

/* Hide scrollbar on thumbnail container */
.pdp-thumbs-container::-webkit-scrollbar {
  display: none;
}

/* Global boost for all modals and overlays above the full-screen PDP */
.auth-overlay,
.auth-modal-overlay,
#auth-modal-overlay,
#account-required-overlay,
.address-modal-backdrop,
#address-dropdown,
.checkout-overlay {
  z-index: 2000000 !important;
}

/* Address Modal Search Placeholder Styling */
#address-modal-search::placeholder {
  color: rgba(255, 255, 255, 0.70) !important;
  font-weight: 600 !important;
}

#address-modal-add-btn:hover {
  background: rgba(79, 142, 247, 0.18) !important;
  border-color: rgba(79, 142, 247, 0.6) !important;
  transform: translateY(-1px);
}

/* Grid Utility Classes to support standard Tailwind grid classes in vanilla CSS */
.grid {
  display: grid !important;
}
.grid-cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}
.gap-2\.5 {
  gap: 10px !important;
}
.w-full {
  width: 100% !important;
}

@media (min-width: 640px) {
  .sm\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
  .sm\:gap-4 {
    gap: 16px !important;
  }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}

/* ── DUAL-ROW DIRECTIONAL TESTIMONIAL MARQUEE ── */
@keyframes marquee-left {
  0% { transform: translateX(0%); }
  100% { transform: translateX(-50%); }
}
@keyframes marquee-right {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0%); }
}
.animate-marquee-left {
  display: flex;
  animation: marquee-left 35s linear infinite;
  will-change: transform;
  transform: translate3d(0, 0, 0);
  contain: layout paint;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.animate-marquee-right {
  display: flex;
  animation: marquee-right 35s linear infinite;
  will-change: transform;
  transform: translate3d(0, 0, 0);
  contain: layout paint;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
#testimonials-top-track,
#testimonials-bottom-track {
  will-change: transform;
  transform: translate3d(0, 0, 0);
  contain: layout paint;
}
.animate-marquee-left:hover, .animate-marquee-right:hover {
  animation-play-state: paused;
}

/* ── MARQUEE TESTIMONIAL CARD STYLING Clamps & Interactive Focus ── */
.marquee-review-card {
  width: 175px !important;
  min-width: 175px !important;
  max-width: 175px !important;
  height: 125px !important;
  min-height: 125px !important;
  max-height: 125px !important;
  padding: 10px !important; /* p-2.5 is 10px */
  border-radius: 12px !important; /* rounded-xl is 12px */
  background-color: #ffffff !important;
  border: 1px solid rgba(229, 229, 229, 0.9) !important;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  flex-shrink: 0 !important;
  user-select: none !important;
  box-sizing: border-box !important;
  text-align: left !important;
  white-space: normal !important;
  cursor: pointer !important;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.2s ease !important;
  -webkit-tap-highlight-color: transparent !important;
}

.marquee-review-card:hover {
  transform: translateY(-2px) scale(1.02) !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08) !important;
  border-color: rgba(24, 24, 27, 0.3) !important;
}

.marquee-review-card:active {
  transform: scale(0.97) !important;
}

.marquee-review-card * {
  pointer-events: none !important;
}

@media (min-width: 1024px) {
  .marquee-review-card {
    width: 210px !important;
    min-width: 210px !important;
    max-width: 210px !important;
  }
}

/* ── INTERACTIVE REVIEW POP-UP MODAL (iOS-GRADE SPRING & BACKDROP BLUR) ── */
.review-modal-backdrop,
.review-modal-portal {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 2147483647 !important;
  background-color: rgba(0, 0, 0, 0.45) !important;
  backdrop-filter: blur(12px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(12px) saturate(180%) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 16px !important;
  box-sizing: border-box !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transition: opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.28s !important;
  overscroll-behavior: contain !important;
}

.review-modal-backdrop.is-active,
.review-modal-portal.is-active {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

.review-modal-card,
.review-modal-content-card {
  width: 100% !important;
  max-width: 480px !important;
  background: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.06) !important;
  border-radius: 20px !important;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(0, 0, 0, 0.04) !important;
  padding: 26px 24px 22px 24px !important;
  box-sizing: border-box !important;
  position: relative !important;
  transform: scale(0.92) translateY(8px) !important;
  opacity: 0 !important;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1) !important;
  max-height: calc(100vh - 40px) !important;
  overflow-y: auto !important;
  scrollbar-width: none !important;
  overscroll-behavior: contain !important;
}

.review-modal-card::-webkit-scrollbar,
.review-modal-content-card::-webkit-scrollbar {
  display: none !important;
}

.review-modal-backdrop.is-active .review-modal-card,
.review-modal-backdrop.is-active .review-modal-content-card,
.review-modal-portal.is-active .review-modal-card,
.review-modal-portal.is-active .review-modal-content-card {
  transform: scale(1) translateY(0) !important;
  opacity: 1 !important;
}

.review-modal-close {
  position: absolute !important;
  top: 18px !important;
  right: 18px !important;
  width: 34px !important;
  height: 34px !important;
  border-radius: 50% !important;
  background: #f1f5f9 !important;
  border: 1px solid #e2e8f0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #64748b !important;
  cursor: pointer !important;
  padding: 0 !important;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s ease, color 0.2s ease !important;
  user-select: none !important;
  -webkit-tap-highlight-color: transparent !important;
}

.review-modal-close:hover {
  background: #e2e8f0 !important;
  color: #0f172a !important;
  transform: scale(1.06) !important;
}

.review-modal-close:active {
  transform: scale(0.92) !important;
}

.review-modal-top {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  margin-bottom: 18px !important;
  padding-right: 40px !important;
}

.review-modal-stars {
  display: flex !important;
  align-items: center !important;
  gap: 3px !important;
  font-size: 16px !important;
  color: #000000 !important;
  line-height: 1 !important;
  letter-spacing: -0.02em !important;
}

.review-modal-verified-pill {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  padding: 4px 10px 4px 6px !important;
  border-radius: 9999px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  letter-spacing: 0.02em !important;
  font-family: var(--font-outfit, 'Outfit', sans-serif) !important;
}

.review-modal-verified-pill img {
  width: 15px !important;
  height: 15px !important;
  object-fit: contain !important;
  display: block !important;
}

.review-modal-quote-wrap {
  position: relative !important;
  margin: 0 0 22px 0 !important;
}

.review-modal-quote-text {
  font-size: 1.05rem !important;
  line-height: 1.6 !important;
  color: #1e293b !important;
  font-weight: 500 !important;
  font-family: var(--font-inter, 'Inter', -apple-system, BlinkMacSystemFont, sans-serif) !important;
  margin: 0 !important;
  font-style: italic !important;
  word-break: break-word !important;
}

.review-modal-author-section {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  padding-top: 18px !important;
  border-top: 1px solid #f1f5f9 !important;
}

.review-modal-avatar {
  width: 44px !important;
  height: 44px !important;
  border-radius: 50% !important;
  background: #18181b !important;
  color: #ffffff !important;
  font-size: 16px !important;
  font-weight: 800 !important;
  font-family: var(--font-outfit, 'Outfit', sans-serif) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  box-shadow: 0 4px 12px rgba(24, 24, 27, 0.15) !important;
}

.review-modal-author-info {
  display: flex !important;
  flex-direction: column !important;
  gap: 2px !important;
  min-width: 0 !important;
  flex: 1 !important;
}

.review-modal-author-name-row {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
}

.review-modal-author-name {
  font-size: 1.05rem !important;
  font-weight: 800 !important;
  font-family: var(--font-outfit, 'Outfit', sans-serif) !important;
  color: #0f172a !important;
  letter-spacing: -0.01em !important;
}

.review-modal-time {
  font-size: 0.82rem !important;
  font-weight: 500 !important;
  color: #94a3b8 !important;
}

.review-modal-guarantee-footer {
  margin-top: 18px !important;
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 12px !important;
  padding: 8px 12px !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  color: #475569 !important;
}

.review-modal-guarantee-footer svg {
  color: #10b981 !important;
  flex-shrink: 0 !important;
}

/* ── PDP Variant Selector Styles ── */
#pdp-variants-container {
  display: flex !important;
  flex-direction: column !important;
  gap: 24px !important;
  width: 100% !important;
  margin-top: 20px !important;
  margin-bottom: 20px !important;
  box-sizing: border-box !important;
}
.color-card {
  width: 112px !important;
  min-width: 112px !important;
  flex-shrink: 0 !important;
  border-radius: 16px !important;
  padding: 10px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
  box-sizing: border-box !important;
  border: 1px solid #e5e7eb;
  background-color: #ffffff;
}
.color-card.border-sky-400 {
  border-color: #38bdf8 !important;
  background-color: rgba(240, 249, 255, 0.5) !important;
  box-shadow: 0 0 0 1px #38bdf8, 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important;
}
.storage-card {
  padding: 10px 16px !important;
  border-radius: 12px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
  border: 1px solid #e5e7eb;
  background-color: #ffffff;
  color: #1f2937;
}
.storage-card.border-sky-400 {
  border-color: #38bdf8 !important;
  background-color: rgba(240, 249, 255, 0.5) !important;
  color: #030712 !important;
  box-shadow: 0 0 0 1px #38bdf8 !important;
}
.version-card {
  padding: 12px 16px !important;
  border-radius: 12px !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
  border: 1px solid #e5e7eb;
  background-color: #ffffff;
  color: #1f2937;
}
.version-card.border-sky-400 {
  border-color: #38bdf8 !important;
  background-color: rgba(240, 249, 255, 0.5) !important;
  color: #030712 !important;
  box-shadow: 0 0 0 1px #38bdf8 !important;
}
.scrollbar-none::-webkit-scrollbar,
.no-scrollbar::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}
.scrollbar-none,
.no-scrollbar {
  -ms-overflow-style: none !important;
  scrollbar-width: none !important;
}

/* Animated Continuous Diagonal Sheen for NEW Badges */
@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}
.animate-shimmer {
  animation: shimmer 2.5s linear infinite !important;
}

/* PDP Mini-Thumbnail Clean Neutral Styling (Zero Black/Blue Rings, Strict Pure White Background) */
.pdp-mini-card {
  background: #ffffff !important;
  background-color: #ffffff !important;
  transition: all 200ms cubic-bezier(0.4, 0, 0.2, 1) !important;
}
.pdp-mini-card:hover {
  opacity: 1 !important;
}

/* Card image pagination dots */
.product-card__dots {
  position: absolute !important;
  bottom: 8px !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  height: 10px !important;
  margin: 0 !important;
  padding: 0 8px !important;
  box-sizing: border-box !important;
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 5px !important;
  line-height: 0 !important;
  font-size: 0 !important;
  z-index: 10 !important;
  pointer-events: none !important;
  transform: none !important;
}

.card-pagination-dot,
.product-card__dot {
  display: block !important;
  height: 6px !important;
  width: 6px !important;
  min-width: 6px !important;
  min-height: 6px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  box-sizing: border-box !important;
  border-radius: 9999px !important;
  background-color: rgba(24, 24, 27, 0.22) !important;
  transition: width 220ms cubic-bezier(0.22, 1, 0.36, 1), background-color 220ms ease, opacity 220ms ease !important;
  flex-shrink: 0 !important;
  align-self: center !important;
  transform: none !important;
}

.card-pagination-dot.is-active,
.product-card__dot.is-active {
  width: 16px !important;
  min-width: 16px !important;
  height: 6px !important;
  background-color: #18181b !important;
  opacity: 1 !important;
}

/* PDP Floating Action Controls */
#pdp-floating-back-btn,
#pdp-wishlist-btn,
#pdp-share-btn {
  z-index: 30 !important;
  transition: transform 0.15s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.15s ease, box-shadow 0.15s ease !important;
}

#pdp-floating-back-btn:hover,
#pdp-wishlist-btn:hover,
#pdp-share-btn:hover {
  background-color: rgba(255, 255, 255, 0.98) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12) !important;
  transform: translateY(-1px);
}

#pdp-floating-back-btn:active,
#pdp-wishlist-btn:active,
#pdp-share-btn:active {
  transform: scale(0.92);
}

/* PDP Overlapping Sheet & Gallery Section */
#pdp-gallery-section {
  position: sticky !important;
  top: 0 !important;
  z-index: 0 !important;
  width: 100% !important;
  background-color: #ffffff !important;
  border-radius: 0 !important;
  padding-top: 54px !important;
  padding-bottom: 36px !important;
}

/* PDP Product Gallery Viewport & GPU-Composited Swipe Rail */
#pdp-swipe-track {
  position: relative !important;
  width: 100% !important;
  max-width: 100% !important;
  aspect-ratio: 1 / 1 !important;
  max-height: 350px !important;
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  justify-content: flex-start !important;
  align-items: stretch !important;
  overflow: hidden !important;
  overscroll-behavior-x: contain !important;
  touch-action: pan-y !important;
  padding: 0 !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  background: #ffffff !important;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
  cursor: grab !important;
  user-select: none !important;
  -webkit-user-select: none !important;
}

#pdp-swipe-track::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

#pdp-swipe-track.is-dragging {
  cursor: grabbing !important;
}

.pdp-swipe-rail {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: stretch !important;
  flex: 0 0 100% !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
  transform: translate3d(0, 0, 0);
  transition: transform 380ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

#pdp-swipe-track.is-dragging .pdp-swipe-rail,
.pdp-swipe-rail.is-dragging {
  transition: none !important;
}

.pdp-gallery-slide {
  flex: 0 0 100% !important;
  width: 100% !important;
  min-width: 100% !important;
  max-width: 100% !important;
  height: 100% !important;
  max-height: 350px !important;
  aspect-ratio: 1 / 1 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 8px 14px !important;
  box-sizing: border-box !important;
  background: #ffffff !important;
  position: relative !important;
  overflow: hidden !important;
  user-select: none !important;
  opacity: 0.72;
  transform: scale(0.965);
  transition: opacity 340ms cubic-bezier(0.22, 1, 0.36, 1), transform 380ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform, opacity;
}

.pdp-gallery-slide.is-active,
.pdp-gallery-slide:only-child {
  opacity: 1;
  transform: scale(1);
}

#pdp-swipe-track.is-dragging .pdp-gallery-slide {
  opacity: 0.96;
  transform: scale(0.99);
  transition: opacity 160ms ease, transform 160ms ease;
}

.pdp-gallery-slide img {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  object-position: center !important;
  pointer-events: none !important;
  user-select: none !important;
  -webkit-user-drag: none !important;
  display: block !important;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

#pdp-outer-tier-sheet {
  position: relative !important;
  z-index: 10 !important;
  margin-top: -48px !important;
  width: 100% !important;
  border-top-left-radius: 24px !important;
  border-top-right-radius: 24px !important;
  background-color: #ffffff !important;
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.12) !important;
  box-sizing: border-box !important;
}

/* PDP position:sticky requirements — ensure ancestor containers have no overflow clipping */
html.route-pdp,
html.route-pdp body,
body.route-pdp,
html.route-pdp main,
#pdp-view,
#pdp-view > div {
  overflow: visible !important;
  overflow-x: visible !important;
  overflow-y: visible !important;
}

#pdp-brand-header-bar {
  width: 100% !important;
  border-top-left-radius: 22px !important;
  border-top-right-radius: 22px !important;
  background-color: #eef6ff !important;
  padding: 12px 16px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  box-sizing: border-box !important;
}

/* PDP Visit Brand Products Link */
#pdp-visit-products-btn {
  font-size: 13.5px !important;
  font-weight: 600 !important;
  color: #0066cc !important;
  background: transparent !important;
  border: none !important;
  padding: 4px 6px !important;
  cursor: pointer !important;
  text-align: right !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  border-radius: 8px !important;
  text-decoration: none !important;
  transition: color 0.18s ease, background-color 0.18s ease, transform 0.15s ease !important;
}

#pdp-visit-products-btn .pdp-visit-chevron {
  display: inline-block !important;
  vertical-align: middle !important;
  flex-shrink: 0 !important;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

#pdp-visit-products-btn:hover {
  color: #004da3 !important;
  background-color: rgba(0, 102, 204, 0.06) !important;
}

#pdp-visit-products-btn:hover .pdp-visit-text {
  text-decoration: underline !important;
}

#pdp-visit-products-btn:hover .pdp-visit-chevron {
  transform: translateX(3px) !important;
}

#pdp-visit-products-btn:active {
  transform: scale(0.97) !important;
}

#pdp-product-info-sheet {
  position: relative !important;
  z-index: 20 !important;
  margin-top: -8px !important;
  width: 100% !important;
  border-radius: 20px !important;
  background-color: #ffffff !important;
  padding: 16px !important;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.05) !important;
  box-sizing: border-box !important;
}

/* PDP Phase 1: Hero Layout, Swatches & Collapsible Blocks */
#pdp-dots-indicator {
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 18px;
  padding: 6px 12px;
  box-sizing: border-box;
  pointer-events: auto;
}

#pdp-dots-indicator .pdp-indicator-dot,
.pdp-indicator-dot {
  display: block !important;
  height: 6px !important;
  min-height: 6px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 9999px !important;
  cursor: pointer !important;
  outline: none !important;
  transition: width 280ms cubic-bezier(0.22, 1, 0.36, 1), background-color 240ms ease, opacity 240ms ease, transform 180ms cubic-bezier(0.22, 1, 0.36, 1) !important;
  flex-shrink: 0 !important;
  -webkit-tap-highlight-color: transparent !important;
}

#pdp-dots-indicator .pdp-indicator-dot.is-active,
.pdp-indicator-dot.is-active {
  width: 20px !important;
  background-color: #18181b !important;
  opacity: 1 !important;
}

#pdp-dots-indicator .pdp-indicator-dot:not(.is-active),
.pdp-indicator-dot:not(.is-active) {
  width: 6px !important;
  background-color: #cbd5e1 !important;
  opacity: 0.85 !important;
}

#pdp-dots-indicator .pdp-indicator-dot:not(.is-active):hover {
  background-color: #94a3b8 !important;
  opacity: 1 !important;
}

#pdp-dots-indicator .pdp-indicator-dot:active {
  transform: scale(0.9) !important;
}

.pdp-accordion-card {
  transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

.pdp-accordion-card:hover {
  border-color: #cbd5e1 !important;
}

.pdp-accordion-card.is-expanded {
  border-color: #cbd5e1 !important;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.04) !important;
}

.model-swatch-btn,
.storage-swatch-btn,
.color-swatch-btn {
  transition: all 0.15s ease !important;
  user-select: none !important;
}

.model-swatch-btn:active,
.storage-swatch-btn:active,
.color-swatch-btn:active {
  transform: scale(0.97) !important;
}

/* ── PDP Phase 2: Extended Warranty Cards & Selection States ── */
.pdp-warranty-card {
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  cursor: pointer !important;
}

.pdp-warranty-card:hover {
  border-color: #94a3b8 !important;
  box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.05) !important;
}

.pdp-warranty-card.is-selected {
  border-color: #0f172a !important;
  border-width: 1.5px !important;
  background: #f8fafc !important;
  box-shadow: 0 2px 8px -2px rgba(15, 23, 42, 0.12) !important;
}

.pdp-warranty-card.is-selected .pdp-warranty-radio {
  border-color: #0f172a !important;
  background-color: #0f172a !important;
}

.pdp-warranty-card.is-selected .pdp-warranty-radio-dot {
  background-color: #ffffff !important;
}

/* ── PDP Phase 2: Un-grayed Crisp Overview Description Typography ── */
#pdp-overview-description-wrapper,
#pdp-overview-description-wrapper * {
  color: #0f172a !important;
  -webkit-text-fill-color: #0f172a !important;
}

.pdp-overview-description-text {
  font-size: 13.5px !important;
  line-height: 1.7 !important;
  font-weight: 450 !important;
  color: #0f172a !important;
  word-break: break-word !important;
  white-space: normal !important;
  max-height: none !important;
  overflow: visible !important;
  -webkit-line-clamp: unset !important;
  display: block !important;
  mask-image: none !important;
  -webkit-mask-image: none !important;
}

#pdp-overview-description-text,
#pdp-overview-description-text * {
  color: #0f172a !important;
  -webkit-text-fill-color: #0f172a !important;
}

.pdp-accordion-header {
  transition: background-color 0.15s ease !important;
}

.pdp-accordion-header:hover {
  background-color: #f8fafc !important;
}

.pdp-accordion-chevron {
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}


/* ── PDP Phase 3: Markitly AI Reviews, Rating Summary & Sticky Bar ── */
.pdp-ai-summary-card {
  box-shadow: 0 2px 8px -2px rgba(124, 58, 237, 0.08) !important;
}

.pdp-photo-review-thumb {
  width: 74px !important;
  height: 74px !important;
  border-radius: 12px !important;
  border: 1px solid #e2e8f0 !important;
  overflow: hidden !important;
  position: relative !important;
  cursor: pointer !important;
  flex-shrink: 0 !important;
  background-color: #f8fafc !important;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease !important;
}

.pdp-photo-review-thumb:hover {
  transform: translateY(-2px) scale(1.03) !important;
  border-color: #0f172a !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08) !important;
}

.pdp-photo-review-thumb img,
.pdp-photo-review-thumb video {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}

.pdp-review-card {
  border: 1px solid #e2e8f0 !important;
  border-radius: 14px !important;
  padding: 14px !important;
  background: #ffffff !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

.pdp-review-card:hover {
  border-color: #cbd5e1 !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03) !important;
}

.pdp-helpful-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 6px 12px !important;
  border-radius: 8px !important;
  border: 1px solid #e2e8f0 !important;
  background: #f8fafc !important;
  color: #475569 !important;
  font-size: 11.5px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
  outline: none !important;
  user-select: none !important;
}

.pdp-helpful-btn:hover {
  background: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
  color: #1e293b !important;
}

.pdp-helpful-btn.is-voted {
  background: #ecfdf5 !important;
  border-color: #a7f3d0 !important;
  color: #059669 !important;
}

.pdp-helpful-btn.is-voted i {
  color: #059669 !important;
}

/* Sticky Action Bar Safe Area & Responsive Alignment */
#pdp-bottom-bar {
  z-index: 50 !important;
  padding-bottom: max(14px, env(safe-area-inset-bottom)) !important;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease !important;
}

#pdp-bottom-bar.is-hidden-footer {
  transform: translateY(120%) !important;
  pointer-events: none !important;
}

.pdp-video-badge {
  position: absolute !important;
  bottom: 6px !important;
  right: 6px !important;
  width: 20px !important;
  height: 20px !important;
  background: rgba(15, 23, 42, 0.75) !important;
  backdrop-filter: blur(4px) !important;
  -webkit-backdrop-filter: blur(4px) !important;
  color: #ffffff !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 8px !important;
  pointer-events: none !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3) !important;
}

/* PDP Bottom Sheet Modals (Warranty & Non-Returnable) */
.pdp-bottom-sheet-backdrop {
  z-index: 9998 !important;
  opacity: 0;
  pointer-events: none;
  background-color: rgba(0, 0, 0, 0.5) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  transition: opacity 0.3s ease-out;
}
.pdp-bottom-sheet-backdrop.active {
  opacity: 1 !important;
  pointer-events: auto !important;
}
.pdp-bottom-sheet-panel {
  z-index: 9999 !important;
  max-height: 85vh !important;
  overflow-y: auto !important;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
  will-change: transform;
}
.pdp-bottom-sheet-panel.active {
  transform: translateY(0) !important;
}

/* Product Overview Accordion - Smooth 300ms Grid Height & Opacity Transition */
.pdp-acc-body {
  display: grid !important;
  transition: grid-template-rows 300ms ease-out, opacity 300ms ease-out, padding 300ms ease-out, border-color 300ms ease-out !important;
}
.pdp-acc-body.grid-rows-\[1fr\],
.pdp-acc-body.is-open {
  grid-template-rows: 1fr !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}
.pdp-acc-body.grid-rows-\[0fr\],
.pdp-acc-body.is-closed {
  grid-template-rows: 0fr !important;
  opacity: 0 !important;
  pointer-events: none !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  border-top-color: transparent !important;
}
.pdp-accordion-chevron {
  transition: transform 300ms cubic-bezier(0.4, 0, 0.2, 1) !important;
}
.pdp-accordion-chevron.rotate-180 {
  transform: rotate(180deg) !important;
}

/* ==========================================================================
   MARKITLY AI SUMMARY ANIMATION ENGINE
   ========================================================================== */
@keyframes aiShimmerGradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.ai-shimmer-text {
  background: linear-gradient(90deg, #7e22ce, #a855f7, #3b82f6, #a855f7, #7e22ce);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: aiShimmerGradient 3s linear infinite;
  display: inline-block;
}

@keyframes aiBlinkCursor {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.ai-typing-cursor {
  display: inline-block;
  width: 2px;
  height: 12px;
  background-color: #7e22ce;
  margin-left: 2px;
  vertical-align: middle;
  animation: aiBlinkCursor 0.8s infinite;
}

.ai-bullet-item {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 700ms cubic-bezier(0.16, 1, 0.3, 1), transform 700ms cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.ai-bullet-item.is-visible {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* Apple-grade 120ms Stagger Sequence */
.ai-bullet-item:nth-child(1) { transition-delay: 0ms; }
.ai-bullet-item:nth-child(2) { transition-delay: 120ms; }
.ai-bullet-item:nth-child(3) { transition-delay: 240ms; }
.ai-bullet-item:nth-child(4) { transition-delay: 360ms; }
.ai-bullet-item:nth-child(5) { transition-delay: 480ms; }

/* Trusted Sources Bottom Sheet Modal */
#pdp-trusted-sources-modal {
  transition: opacity 300ms cubic-bezier(0.16, 1, 0.3, 1), backdrop-filter 300ms cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity;
}

#pdp-trusted-sources-card {
  transition: transform 300ms cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

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

.animate-in.slide-in-from-bottom {
  animation: slideInFromBottomSheet 300ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* ==========================================================================
   FOOTER POLICY LINKS
   ========================================================================== */
.footer-policy-links {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 8px 18px !important;
  flex-wrap: wrap !important;
  font-size: 0.85rem !important;
  font-weight: 500 !important;
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif !important;
  margin-top: -6px !important;
  line-height: 1.4 !important;
}

.footer-bottom-link {
  color: #6b7280 !important;
  font-weight: 500 !important;
  font-size: 0.85rem !important;
  text-decoration: none !important;
  transition: color 0.15s ease !important;
  display: inline-block !important;
}

.footer-bottom-link:hover {
  color: #111827 !important;
  text-decoration: none !important;
}

/* ==========================================================================
   PDP Sticky Bottom Bar, Pill Quantity Selector & Quantity Popup
   ========================================================================== */
@keyframes pdpQtyPopupIn {
  from {
    opacity: 0;
    transform: translateY(6px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

#pdp-qty-popup {
  animation: pdpQtyPopupIn 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.pdp-qty-opt-btn {
  height: 40px;
  border-radius: 12px;
  border: 1.5px solid #e4e4e7;
  background: #f8fafc;
  color: #18181b;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
  font-family: inherit;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.pdp-qty-opt-btn:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  transform: translateY(-1px);
}

.pdp-qty-opt-btn.is-active {
  background: #18181b !important;
  color: #ffffff !important;
  border-color: #18181b !important;
  box-shadow: 0 4px 12px rgba(24, 24, 27, 0.25) !important;
}

.pdp-qty-opt-btn:active {
  transform: scale(0.95);
}

#pdp-qty-pill-btn:active {
  transform: scale(0.97);
}

#pdp-add-to-cart-btn:active {
  transform: scale(0.985);
}

/* ==========================================================================
   CHECKOUT 2-STEP LUXURY MINIMALIST MODAL
   ========================================================================== */
#checkout-modal-overlay {
  position: fixed !important;
  inset: 0 !important;
  z-index: 100000 !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 20px !important;
  background: rgba(12, 13, 16, 0.56) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  box-sizing: border-box !important;
  overscroll-behavior: contain !important;
}

#checkout-country-modal,
#checkout-city-modal {
  z-index: 100050 !important;
}

#checkout-modal-card {
  position: relative !important;
  z-index: 10 !important;
  width: 100% !important;
  max-width: 520px !important;
  margin: auto !important;
  background: #ffffff !important;
  border-radius: 28px !important;
  border: 1px solid rgba(17, 24, 39, 0.07) !important;
  box-shadow: 0 32px 80px -12px rgba(0, 0, 0, 0.24), 0 0 0 1px rgba(0, 0, 0, 0.03) !important;
  display: flex !important;
  flex-direction: column !important;
  max-height: min(90vh, 840px) !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}

#checkout-modal-header {
  padding: 22px 28px 18px 28px !important;
  border-bottom: 1px solid #f2f3f5 !important;
  background: rgba(255, 255, 255, 0.98) !important;
}

#checkout-modal-body {
  padding: 22px 28px 28px 28px !important;
  overflow-y: auto !important;
  box-sizing: border-box !important;
}

@media (max-width: 640px) {
  #checkout-modal-overlay {
    padding: 14px !important;
  }
  #checkout-modal-card {
    border-radius: 24px !important;
    max-height: 92vh !important;
  }
  #checkout-modal-header {
    padding: 18px 20px 15px 20px !important;
  }
  #checkout-modal-body {
    padding: 18px 20px 24px 20px !important;
  }
}

#checkout-modal-card .mkt-co-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6b7280;
  margin-bottom: 6px;
}

#checkout-modal-card .mkt-co-input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  color: #111827;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

#checkout-modal-card .mkt-co-input.mkt-co-phone-input {
  padding-left: 42px;
}

#checkout-modal-card .mkt-co-input::placeholder {
  color: #9ca3af;
  font-weight: 400;
}

#checkout-modal-card .mkt-co-input:focus {
  border-color: #111827;
  box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.06);
  outline: none;
}

#checkout-modal-card .mkt-co-select-btn {
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  color: #111827;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  text-align: left;
  transition: border-color 0.18s ease, background-color 0.18s ease;
}

#checkout-modal-card .mkt-co-select-btn:hover:not(:disabled) {
  border-color: #9ca3af;
}

#checkout-modal-card .mkt-co-select-btn:disabled {
  background: #f9fafb;
  color: #9ca3af;
  cursor: not-allowed;
}

#checkout-modal-card .mkt-delivery-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 15px;
  border-radius: 14px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  cursor: pointer;
  transition: border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
  user-select: none;
}

#checkout-modal-card .mkt-delivery-card:hover {
  border-color: #d1d5db;
}

#checkout-modal-card .mkt-delivery-card.is-selected {
  border: 1.5px solid #111827;
  background: #fafafa;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

#checkout-modal-card .mkt-payment-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1.5px solid #e4e4e7;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
  cursor: pointer;
  user-select: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

#checkout-modal-card .mkt-payment-card:hover {
  border-color: #a1a1aa;
}

#checkout-modal-card .mkt-payment-card.is-selected {
  border: 1.5px solid #18181b;
  background: #ffffff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

#checkout-modal-card .mkt-co-primary-btn {
  padding: 15px 20px;
  border-radius: 14px;
  background: #18181b;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background-color 0.18s ease, opacity 0.18s ease;
}

#checkout-modal-card .mkt-co-primary-btn:hover:not(:disabled) {
  background: #27272a;
}

#checkout-modal-card .mkt-co-primary-btn:disabled {
  opacity: 0.72;
  cursor: wait;
}

/* Dedicated Crypto Payment Modal & Currency Selector */
.mkt-crypto-currency-btn {
  padding: 11px 6px;
  border-radius: 14px;
  background: #ffffff;
  border: 1.5px solid #e5e7eb;
  text-align: center;
  transition: all 0.18s ease;
  cursor: pointer;
  user-select: none;
  outline: none;
  opacity: 0.82;
}

.mkt-crypto-currency-btn:hover {
  border-color: #d1d5db;
  background: #f9fafb;
  opacity: 1;
}

.mkt-crypto-currency-btn.is-active {
  border-color: #18181b;
  background: #f4f4f5; /* Subtle off-gray light background highlight */
  box-shadow: 0 0 0 2px #18181b, 0 3px 10px rgba(0, 0, 0, 0.05); /* Ring container */
  opacity: 1;
  transform: translateY(-1px);
}

#crypto-payment-modal-card,
#customer-order-review-card {
  will-change: transform, opacity;
}

@keyframes starburstPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.03); }
}

.mkt-starburst-pulse {
  animation: starburstPulse 3s ease-in-out infinite;
}

#checkout-modal-card .mkt-co-secondary-btn {
  padding: 15px 16px;
  border-radius: 14px;
  background: #f4f4f5;
  color: #3f3f46;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.18s ease;
}

#checkout-modal-card .mkt-co-secondary-btn:hover:not(:disabled) {
  background: #e4e4e7;
}

#checkout-modal-body::-webkit-scrollbar,
#checkout-step2-items-list::-webkit-scrollbar {
  width: 5px;
}

#checkout-modal-body::-webkit-scrollbar-track,
#checkout-step2-items-list::-webkit-scrollbar-track {
  background: transparent;
}

#checkout-modal-body::-webkit-scrollbar-thumb,
#checkout-step2-items-list::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.12);
  border-radius: 9999px;
}

#checkout-modal-body::-webkit-scrollbar-thumb:hover,
#checkout-step2-items-list::-webkit-scrollbar-thumb:hover {
  background-color: rgba(0, 0, 0, 0.25);
}

/* Clean select arrow styling for dynamic Country & City dropdowns */
#checkout-country,
#checkout-city {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1.1em;
  padding-right: 2.5rem;
}


/* ==========================================================================
   SITE-WIDE PRODUCT IMAGE CONTAINMENT & ASPECT RATIO PROTECTION
   ========================================================================== */
.product-card-container img,
.product-card img,
.deal-product-card img,
.product-card__image-container img,
.product-card__slide img,
#category-products-grid img,
#category-product-grid img,
#mobiles-product-grid img,
#random-cat-product-grid img,
#bestsellers-product-grid img,
#flash-deals-carousel-track img,
.suggestion-item__img-wrapper img,
.wishlist-item__img img,
.cart-item-row__img img {
  object-fit: contain !important;
  max-width: 100% !important;
  max-height: 100% !important;
}

/* ==========================================================================
   1. FILL EMPTY WHITE SPACE ON PRODUCT CARDS (ALL 8 CATEGORIES SITE-WIDE)
   Eliminates distracting blank white gaps around top, bottom, and side corners.
   The image container fills the card frame cleanly and looks visually proportional.
   ========================================================================== */
.product-card,
.product-card-container,
#category-products-grid .product-card,
#category-product-grid .product-card,
#mobiles-product-grid.grid .product-card {
  padding: 0 !important;
  border-radius: 22px !important;
  overflow: hidden !important;
  background-color: #ffffff !important;
}

.product-card__image-container {
  position: relative !important;
  width: 100% !important;
  aspect-ratio: 1 / 1 !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  border-radius: 21px 21px 0 0 !important;
  background-color: #f7f9fa !important;
  padding: 10px 10px 22px 10px !important;
  box-sizing: border-box !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
}

.product-card__slide {
  width: 100% !important;
  min-width: 100% !important;
  max-width: 100% !important;
  flex: 0 0 100% !important;
  flex-shrink: 0 !important;
  height: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
  padding: 0 !important;
  background: transparent !important;
  scroll-snap-align: start !important;
}

/* ==========================================================================
   2. FIX PRODUCT IMAGE SQUEEZING & CLIPPING (LAPTOPS & DESKTOPS & MOBILES ONLY)
   Strictly scoped to Mobiles and Laptops & Desktops category views/grids.
   Removes rigid fixed-height classes and portrait aspect ratios.
   Ensures the image container wrapper has a fixed square constraint (w-full aspect-square)
   with relative overflow-hidden flex items-center justify-center bg-white.
   Forces <img> to use object-contain and max-h-full max-w-full with clean padding (p-2)
   so the laptop, monitor, or phone is never squeezed, stretched, or cropped into a sliver.
   ========================================================================== */

#category-products-grid .product-card__image-container,
#category-product-grid .product-card__image-container,
#category-view .product-card__image-container,
#category-products-grid[data-category="mobiles"] .product-card__image-container,
#category-products-grid[data-category="mobile"] .product-card__image-container,
#category-products-grid[data-category="laptops-desktops"] .product-card__image-container,
#category-products-grid[data-category="laptops-and-desktops"] .product-card__image-container,
#category-products-grid[data-category="laptops"] .product-card__image-container,
#category-view[data-category="mobiles"] .product-card__image-container,
#category-view[data-category="mobile"] .product-card__image-container,
#category-view[data-category="laptops-desktops"] .product-card__image-container,
#category-view[data-category="laptops-and-desktops"] .product-card__image-container,
#category-view[data-category="laptops"] .product-card__image-container,
.category-grid--mobiles .product-card__image-container,
.category-grid--laptops .product-card__image-container,
#mobiles-product-grid .product-card__image-container,
.product-card--mobiles .product-card__image-container,
.product-card--laptops-desktops .product-card__image-container,
.product-card__image-container--devices,
.product-card__image-container--laptops,
.product-card__image-container--mobiles {
  width: 100% !important;
  aspect-ratio: 1 / 1 !important;
  height: auto !important;
  background-color: white !important;
  box-sizing: border-box !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0.75rem 0.75rem 1.4rem 0.75rem !important; /* Reserve bottom lane for centered pagination dots */
  position: relative !important;
  overflow: hidden !important;
  border-radius: 21px 21px 0 0 !important;
}

.product-card__slides-wrapper {
  display: flex !important;
  width: 100% !important;
  min-width: 100% !important;
  height: 100% !important;
  overflow-x: auto !important;
  scroll-snap-type: x mandatory !important;
  -webkit-overflow-scrolling: touch !important;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}
.product-card__slides-wrapper::-webkit-scrollbar {
  display: none !important;
}

#category-products-grid .product-card__slide,
#category-product-grid .product-card__slide,
#category-view .product-card__slide,
#category-products-grid[data-category="mobiles"] .product-card__slide,
#category-products-grid[data-category="mobile"] .product-card__slide,
#category-products-grid[data-category="laptops-desktops"] .product-card__slide,
#category-products-grid[data-category="laptops-and-desktops"] .product-card__slide,
#category-products-grid[data-category="laptops"] .product-card__slide,
#category-view[data-category="mobiles"] .product-card__slide,
#category-view[data-category="mobile"] .product-card__slide,
#category-view[data-category="laptops-desktops"] .product-card__slide,
#category-view[data-category="laptops-and-desktops"] .product-card__slide,
#category-view[data-category="laptops"] .product-card__slide,
.category-grid--mobiles .product-card__slide,
.category-grid--laptops .product-card__slide,
#mobiles-product-grid .product-card__slide,
.product-card--mobiles .product-card__slide,
.product-card--laptops-desktops .product-card__slide,
.product-card__image-container--devices .product-card__slide,
.product-card__image-container--laptops .product-card__slide,
.product-card__image-container--mobiles .product-card__slide,
.product-card__slide {
  width: 100% !important;
  min-width: 100% !important;
  max-width: 100% !important;
  flex: 0 0 100% !important;
  flex-shrink: 0 !important;
  height: 100% !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
  background: white !important;
  scroll-snap-align: start !important;
}

#category-products-grid .product-card__slide img,
#category-product-grid .product-card__slide img,
#category-view .product-card__slide img,
#category-products-grid[data-category="mobiles"] .product-card__slide img,
#category-products-grid[data-category="mobile"] .product-card__slide img,
#category-products-grid[data-category="laptops-desktops"] .product-card__slide img,
#category-products-grid[data-category="laptops-and-desktops"] .product-card__slide img,
#category-products-grid[data-category="laptops"] .product-card__slide img,
#category-view[data-category="mobiles"] .product-card__slide img,
#category-view[data-category="mobile"] .product-card__slide img,
#category-view[data-category="laptops-desktops"] .product-card__slide img,
#category-view[data-category="laptops-and-desktops"] .product-card__slide img,
#category-view[data-category="laptops"] .product-card__slide img,
.category-grid--mobiles .product-card__slide img,
.category-grid--laptops .product-card__slide img,
#mobiles-product-grid .product-card__slide img,
.product-card--mobiles .product-card__slide img,
.product-card--laptops-desktops .product-card__slide img,
.product-card__image-container--devices .product-card__slide img,
.product-card__image-container--laptops .product-card__slide img,
.product-card__image-container--mobiles .product-card__slide img {
  max-width: 100% !important;
  max-height: 100% !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  margin: auto !important;
  display: block !important;
}

/* ==========================================================================
   iOS-GRADE SPRING MICRO-ANIMATIONS (stiffness: 400, damping: 30)
   ========================================================================== */
@keyframes authBackdropIn {
  0% {
    opacity: 0;
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
  }
  100% {
    opacity: 1;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }
}

@keyframes authBackdropOut {
  0% {
    opacity: 1;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }
  100% {
    opacity: 0;
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
  }
}

@keyframes iosSpringModalIn {
  0% {
    opacity: 0;
    transform: scale(0.94) translateY(16px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes iosSpringModalOut {
  0% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
  100% {
    opacity: 0;
    transform: scale(0.94) translateY(16px);
  }
}

@keyframes iosSpringTabFade {
  0% {
    opacity: 0;
    transform: translateX(10px) scale(0.99);
  }
  100% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes iosSpringTabFadeLeft {
  0% {
    opacity: 0;
    transform: translateX(-14px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes iosSpringTabFadeRight {
  0% {
    opacity: 0;
    transform: translateX(14px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes authShake {
  0%, 100% {
    transform: translateX(0);
  }
  18% {
    transform: translateX(-8px);
  }
  36% {
    transform: translateX(7px);
  }
  54% {
    transform: translateX(-5px);
  }
  72% {
    transform: translateX(4px);
  }
  88% {
    transform: translateX(-2px);
  }
}

@keyframes authSpin {
  to {
    transform: rotate(360deg);
  }
}

#auth-modal-overlay.is-open {
  animation: authBackdropIn 0.28s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

#auth-modal-overlay.is-closing {
  animation: authBackdropOut 0.22s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.auth-modal-card {
  will-change: transform, opacity;
}

.auth-modal-card.ios-spring-in {
  animation: iosSpringModalIn 0.38s cubic-bezier(0.22, 1, 0.36, 1) forwards !important;
}

.auth-modal-card.ios-spring-out {
  animation: iosSpringModalOut 0.22s cubic-bezier(0.22, 1, 0.36, 1) forwards !important;
}

.auth-modal-card.auth-shake-active {
  animation: authShake 0.44s cubic-bezier(0.36, 0.07, 0.19, 0.97) both !important;
}

.ios-spring-tab {
  animation: iosSpringTabFade 0.32s cubic-bezier(0.22, 1, 0.36, 1) forwards !important;
}

.ios-spring-tab-left {
  animation: iosSpringTabFadeLeft 0.32s cubic-bezier(0.22, 1, 0.36, 1) forwards !important;
}

.ios-spring-tab-right {
  animation: iosSpringTabFadeRight 0.32s cubic-bezier(0.22, 1, 0.36, 1) forwards !important;
}

/* Luxury iOS Auth Modal Layout & Motion */
#auth-modal-close-btn {
  transition: transform 0.18s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.2s ease, border-color 0.2s ease !important;
}

#auth-modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.26) !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
}

#auth-modal-close-btn:active {
  transform: scale(0.92) !important;
}

.auth-brand-header {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 8px;
  margin-bottom: 22px;
  flex-shrink: 0;
}

.auth-pill-switcher {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 4px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.24);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.2);
  margin-bottom: 22px;
  flex-shrink: 0;
}

.auth-pill-slider {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc(50% - 4px);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
  z-index: 0;
  will-change: transform;
}

.auth-pill-tab {
  position: relative;
  z-index: 1;
  height: 38px;
  border-radius: 999px;
  border: none;
  background: transparent;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.24s cubic-bezier(0.22, 1, 0.36, 1) !important;
}

.auth-pill-tab.is-active {
  color: #ffffff;
}

.auth-pill-tab:active {
  transform: scale(0.97) !important;
}

.auth-field-group label {
  transition: color 0.22s cubic-bezier(0.22, 1, 0.36, 1), transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
  transform-origin: left center;
}

.auth-field-group:focus-within label {
  color: #ffffff !important;
  transform: translateX(2px);
}

#auth-modal-overlay input[type="text"],
#auth-modal-overlay input[type="email"],
#auth-modal-overlay input[type="password"] {
  transition: border-color 0.22s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.22s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.22s cubic-bezier(0.22, 1, 0.36, 1) !important;
}

#auth-modal-overlay input[type="text"]:focus,
#auth-modal-overlay input[type="email"]:focus,
#auth-modal-overlay input[type="password"]:focus {
  outline: none !important;
  border-color: rgba(255, 255, 255, 0.65) !important;
  background: rgba(255, 255, 255, 0.16) !important;
  box-shadow: 0 0 0 3.5px rgba(255, 255, 255, 0.16) !important;
}

#auth-modal-overlay input:-webkit-autofill,
#auth-modal-overlay input:-webkit-autofill:hover,
#auth-modal-overlay input:-webkit-autofill:focus,
#auth-modal-overlay input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 1000px rgba(72, 72, 78, 0.96) inset !important;
  box-shadow: 0 0 0 1000px rgba(72, 72, 78, 0.96) inset !important;
  -webkit-text-fill-color: #ffffff !important;
  caret-color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.32) !important;
  transition: background-color 99999s ease-out 0s !important;
}

#auth-modal-overlay .auth-error {
  display: none;
  align-items: flex-start;
  gap: 10px;
  background: rgba(239, 68, 68, 0.16) !important;
  border: 1px solid rgba(248, 113, 113, 0.38) !important;
  color: #fecaca !important;
  border-radius: 14px !important;
  font-size: 0.8rem !important;
  font-weight: 600 !important;
  line-height: 1.45 !important;
  text-align: left !important;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  padding: 0 14px !important;
  margin-bottom: 0;
  transform: translateY(-4px);
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

#auth-modal-overlay .auth-error.is-visible {
  max-height: 120px;
  opacity: 1;
  padding: 12px 14px !important;
  transform: translateY(0);
}

#auth-modal-overlay .auth-error .auth-error-icon {
  flex-shrink: 0;
  margin-top: 1px;
  color: #f87171;
}

#auth-modal-overlay #signin-submit-btn,
#auth-modal-overlay #signup-submit-btn,
#auth-modal-overlay .google-signin-btn {
  transition: transform 0.18s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease !important;
}

#auth-modal-overlay #signin-submit-btn:active:not(:disabled),
#auth-modal-overlay #signup-submit-btn:active:not(:disabled),
#auth-modal-overlay .google-signin-btn:active:not(:disabled) {
  transform: scale(0.97) !important;
}

.auth-btn-spinner {
  width: 22px;
  height: 7px;
  border-radius: 9999px;
  background: currentColor;
  opacity: 0.35;
  display: inline-block;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  animation: mktAuthPillPulse 1.1s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}

@keyframes mktAuthPillPulse {
  0%, 100% { opacity: 0.32; transform: scaleX(0.86); }
  50% { opacity: 0.92; transform: scaleX(1.06); }
}

/* ==========================================================================
   ANIMATED PASSWORD EYE TOGGLE (EYELID MORPH, PUPIL SPRING & SLASH DRAW)
   ========================================================================== */
#auth-modal-overlay .auth-password-input {
  letter-spacing: 0.06em;
  transition:
    border-color 0.22s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.22s cubic-bezier(0.22, 1, 0.36, 1),
    background-color 0.22s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.16s cubic-bezier(0.22, 1, 0.36, 1),
    letter-spacing 0.24s cubic-bezier(0.22, 1, 0.36, 1) !important;
}

#auth-modal-overlay .auth-password-input.is-text-revealed {
  letter-spacing: 0.01em;
}

#auth-modal-overlay .auth-password-input.is-toggling-visibility {
  opacity: 0.62 !important;
}

#auth-modal-overlay .auth-eye-toggle-btn {
  position: absolute !important;
  right: 7px !important;
  top: 50% !important;
  transform: translateY(-50%) scale(1) !important;
  width: 34px !important;
  height: 34px !important;
  border-radius: 50% !important;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
  cursor: pointer !important;
  color: rgba(255, 255, 255, 0.68) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 3 !important;
  -webkit-tap-highlight-color: transparent;
  transition:
    transform 0.2s cubic-bezier(0.22, 1, 0.36, 1),
    background-color 0.2s ease,
    color 0.2s ease !important;
}

#auth-modal-overlay .auth-eye-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #ffffff !important;
}

#auth-modal-overlay .auth-eye-toggle-btn:active {
  transform: translateY(-50%) scale(0.86) !important;
  background: rgba(255, 255, 255, 0.14) !important;
  transition: transform 0.1s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.1s ease !important;
}

#auth-modal-overlay .auth-eye-toggle-btn.is-revealed {
  color: rgba(255, 255, 255, 0.94) !important;
}

#auth-modal-overlay .auth-eye-svg {
  width: 19px;
  height: 19px;
  overflow: visible;
  pointer-events: none;
}

#auth-modal-overlay .auth-eye-svg .eye-lid-top {
  d: path("M2 12s3.5 5 10 5 10-5 10-5");
  transition: d 0.32s cubic-bezier(0.22, 1, 0.36, 1) 0.04s;
}

#auth-modal-overlay .auth-eye-svg .eye-lid-bottom {
  d: path("M2 12s3.5 5 10 5 10-5 10-5");
  transition: d 0.32s cubic-bezier(0.22, 1, 0.36, 1) 0.04s;
}

#auth-modal-overlay .auth-eye-svg .eye-pupil {
  transform-box: fill-box;
  transform-origin: center;
  transform: scale(0.15);
  opacity: 0;
  transition:
    transform 0.18s cubic-bezier(0.22, 1, 0.36, 1) 0s,
    opacity 0.15s ease 0s;
}

#auth-modal-overlay .auth-eye-svg .eye-slash {
  stroke-dasharray: 26;
  stroke-dashoffset: 0;
  opacity: 1;
  transition:
    stroke-dashoffset 0.26s cubic-bezier(0.22, 1, 0.36, 1) 0.1s,
    opacity 0.16s ease 0.08s;
}

#auth-modal-overlay .auth-eye-toggle-btn.is-revealed .eye-lid-top {
  d: path("M2 12s3.5-7 10-7 10 7 10 7");
  transition: d 0.34s cubic-bezier(0.22, 1, 0.36, 1) 0.03s;
}

#auth-modal-overlay .auth-eye-toggle-btn.is-revealed .eye-lid-bottom {
  d: path("M2 12s3.5 7 10 7 10-7 10-7");
  transition: d 0.34s cubic-bezier(0.22, 1, 0.36, 1) 0.03s;
}

#auth-modal-overlay .auth-eye-toggle-btn.is-revealed .eye-pupil {
  transform: scale(1);
  opacity: 1;
  transition:
    transform 0.34s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s,
    opacity 0.2s ease 0.08s;
}

#auth-modal-overlay .auth-eye-toggle-btn.is-revealed .eye-slash {
  stroke-dashoffset: 26;
  opacity: 0;
  transition:
    stroke-dashoffset 0.22s cubic-bezier(0.22, 1, 0.36, 1) 0s,
    opacity 0.18s ease 0.04s;
}

@media (max-width: 480px) {
  .auth-modal-card {
    padding: 28px 24px 26px !important;
    border-radius: 24px !important;
  }
}

/* Button and Interactive Elements Fluid Tactile Spring Feedback */
button:not(:disabled),
.btn,
.auth-tab,
.user-dropdown-item,
.region-grid-item,
.city-select-row {
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1.05), background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease !important;
}

button:active:not(:disabled),
.btn:active:not(:disabled),
.auth-tab:active,
.user-dropdown-item:active,
.region-grid-item:active,
.city-select-row:active {
  transform: scale(0.96) !important;
  transition: transform 0.1s cubic-bezier(0.16, 1, 0.3, 1.05) !important;
}

/* ==========================================================================
   MARKITLY SITE-WIDE 60/120FPS iOS SPRING MOTION UPGRADE
   ========================================================================== */

/* 1. Tactile Spring Press-Scale for Cards, Pills & Buttons */
.product-card,
.product-card__add-btn,
.cat-nav-tab,
.cat-slider-item,
.mkt-delivery-card,
.mkt-payment-card,
.mkt-co-primary-btn,
#cart-checkout-btn,
#pdp-add-to-cart-btn,
.wishlist-heart-btn {
  transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.18s ease !important;
}

.product-card:active,
.product-card__add-btn:active,
.cat-nav-tab:active,
.cat-slider-item:active,
.mkt-delivery-card:active,
.mkt-payment-card:active,
.mkt-co-primary-btn:active,
#cart-checkout-btn:active,
#pdp-add-to-cart-btn:active,
.wishlist-heart-btn:active {
  transform: scale(0.96) !important;
}

/* 2. Cart Badge Spring Pop Animation */
@keyframes markitlyBadgePop {
  0% { transform: scale(0.6); opacity: 0.6; }
  60% { transform: scale(1.38); opacity: 1; }
  85% { transform: scale(0.94); }
  100% { transform: scale(1); opacity: 1; }
}

.cart-badge-pop {
  animation: markitlyBadgePop 0.38s cubic-bezier(0.34, 1.56, 0.64, 1) forwards !important;
}

/* 3. Wishlist Heart Burst Animation */
@keyframes markitlyHeartBurst {
  0% { transform: scale(1); }
  25% { transform: scale(0.72); }
  55% { transform: scale(1.38); }
  75% { transform: scale(0.92); }
  100% { transform: scale(1); }
}

.heart-burst {
  animation: markitlyHeartBurst 0.42s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards !important;
}

/* 4. Add-to-Cart Button Success Confirmation (Pill Expansion Fix for "Added" text) */
.btn-add-success {
  width: auto !important;
  min-width: 68px !important;
  height: 30px !important;
  padding: 0 10px !important;
  border-radius: 9999px !important;
  background-color: #059669 !important;
  color: #ffffff !important;
  border-color: #059669 !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  white-space: nowrap !important;
  transform: scale(0.98);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* Keep Product Card Quick-Add (+) a crisp #18181b circle during active confirmation */
.product-card__add-btn.btn-add-success {
  width: 34px !important;
  min-width: 34px !important;
  height: 34px !important;
  padding: 0 !important;
  border-radius: 50% !important;
  background: #18181b !important;
  background-color: #18181b !important;
  border-color: #18181b !important;
  color: #ffffff !important;
}

/* Category & Shelf Title Wrapping Safety - Prevent truncating like "Laptops &..." */
.top-picks-header-title,
#random-cat-title,
#category-hero-title,
.product-shelf-title,
.section-title,
.shelf-title {
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  word-break: break-word !important;
  max-width: 100% !important;
}

/* 5. Frosted Dynamic-Capsule Toast */
.markitly-toast-capsule {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%) translateY(-140%);
  z-index: 1000099;
  pointer-events: none;
  transition: transform 0.42s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
  opacity: 0;
}

.markitly-toast-capsule.is-visible {
  transform: translateX(-50%) translateY(22px);
  opacity: 1;
}

.markitly-toast-capsule.is-hiding {
  transform: translateX(-50%) translateY(-140%);
  opacity: 0;
}

.markitly-toast-inner {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 20px;
  background: rgba(18, 18, 24, 0.92);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 9999px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45), 0 2px 6px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

/* 6. Checkout Step Slide & Fade Transitions */
@keyframes checkoutStepEnterRight {
  0% {
    opacity: 0;
    transform: translateX(24px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes checkoutStepEnterLeft {
  0% {
    opacity: 0;
    transform: translateX(-24px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

.checkout-step-enter-right {
  animation: checkoutStepEnterRight 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
}

.checkout-step-enter-left {
  animation: checkoutStepEnterLeft 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
}

/* 7. Site-Wide View Entrance Fade & Rise */
@keyframes viewFadeRise {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.view-enter-active {
  animation: viewFadeRise 0.26s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
}

/* 8. Staggered Cascades for Cart Items (Drawer Open Only) and Live Search */
@keyframes markitlyStaggerFade {
  0% {
    opacity: 0;
    transform: translateY(8px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

#cart-overlay.is-entering .cart-item-row {
  animation: markitlyStaggerFade 0.36s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.suggestion-item {
  animation: markitlyStaggerFade 0.24s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* Account Required Modal Spring Physics */
@keyframes accountModalSpringIn {
  from {
    transform: scale(0.92);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.account-required-card {
  animation: accountModalSpringIn 0.32s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  will-change: transform, opacity;
}

/* ==========================================================================
   LUXURY CART REMAKE — MOTION, FEEDBACK, EMPTY STATE & TACTILE CONTROLS
   Strictly scoped to #cart-overlay, cart items, header cart pill, and cue.
   ========================================================================== */

/* 1. Weighted Sheet / Drawer & Backdrop Physics */
#cart-overlay {
  overflow: hidden !important;
  background: rgba(9, 10, 14, 0.38) !important;
  backdrop-filter: blur(8px) saturate(135%) !important;
  -webkit-backdrop-filter: blur(8px) saturate(135%) !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transition: opacity 0.32s cubic-bezier(0.32, 0.72, 0, 1), visibility 0.32s cubic-bezier(0.32, 0.72, 0, 1) !important;
}

#cart-overlay.is-active {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transition: opacity 0.44s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.44s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

#cart-overlay .cart-drawer {
  top: 16px !important;
  right: 16px !important;
  bottom: auto !important;
  width: 432px !important;
  max-width: calc(100vw - 32px) !important;
  height: auto !important;
  max-height: calc(100vh - 32px) !important;
  max-height: calc(100dvh - 32px) !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  background: #ffffff !important;
  border: 1px solid rgba(9, 9, 11, 0.085) !important;
  border-radius: 28px !important;
  box-shadow: 0 36px 90px -18px rgba(9, 9, 11, 0.28), 0 12px 30px -10px rgba(9, 9, 11, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.94) !important;
  transform: translate3d(calc(100% + 40px), 0, 0) scale(0.985) !important;
  opacity: 0.9 !important;
  transition: transform 0.34s cubic-bezier(0.32, 0.72, 0, 1), opacity 0.28s ease !important;
  will-change: transform, opacity;
}

#cart-overlay.is-active .cart-drawer {
  transform: translate3d(0, 0, 0) scale(1) !important;
  opacity: 1 !important;
  transition: transform 0.52s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.38s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

[dir="rtl"] #cart-overlay .cart-drawer {
  right: auto !important;
  left: 16px !important;
  transform: translate3d(calc(-100% - 40px), 0, 0) scale(0.985) !important;
}

[dir="rtl"] #cart-overlay.is-active .cart-drawer {
  transform: translate3d(0, 0, 0) scale(1) !important;
}

@media (max-width: 768px) {
  #cart-overlay .cart-drawer {
    top: auto !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    max-width: 100vw !important;
    height: auto !important;
    max-height: 90vh !important;
    max-height: 90dvh !important;
    border-radius: 28px 28px 0 0 !important;
    border: none !important;
    border-top: 1px solid rgba(9, 9, 11, 0.08) !important;
    box-shadow: 0 -22px 60px -14px rgba(9, 9, 11, 0.24), 0 -4px 16px -4px rgba(9, 9, 11, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.95) !important;
    transform: translate3d(0, 108%, 0) !important;
    opacity: 0.96 !important;
    transition: transform 0.34s cubic-bezier(0.32, 0.72, 0, 1), opacity 0.28s ease !important;
  }

  #cart-overlay.is-active .cart-drawer {
    transform: translate3d(0, 0, 0) !important;
    opacity: 1 !important;
    transition: transform 0.50s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.36s ease !important;
  }
}

/* 2. Staggered Content Entrance on Cart Open */
#cart-overlay .cart-drawer__header,
#cart-overlay #cart-items-container,
#cart-overlay #cart-delivery-section,
#cart-overlay #cart-summary-breakdown,
#cart-overlay #cart-summary-footer {
  opacity: 0;
  transform: translate3d(0, 14px, 0);
  transition: opacity 0.22s ease, transform 0.22s ease;
  transition-delay: 0s;
}

#cart-overlay.is-active .cart-drawer__header {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition: opacity 0.42s cubic-bezier(0.16, 1, 0.3, 1) 0.05s, transform 0.46s cubic-bezier(0.16, 1, 0.3, 1) 0.05s;
}

#cart-overlay.is-active #cart-items-container {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition: opacity 0.44s cubic-bezier(0.16, 1, 0.3, 1) 0.11s, transform 0.48s cubic-bezier(0.16, 1, 0.3, 1) 0.11s;
}

#cart-overlay.is-active #cart-delivery-section {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition: opacity 0.44s cubic-bezier(0.16, 1, 0.3, 1) 0.17s, transform 0.48s cubic-bezier(0.16, 1, 0.3, 1) 0.17s;
}

#cart-overlay.is-active #cart-summary-breakdown {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition: opacity 0.44s cubic-bezier(0.16, 1, 0.3, 1) 0.22s, transform 0.48s cubic-bezier(0.16, 1, 0.3, 1) 0.22s;
}

#cart-overlay.is-active #cart-summary-footer {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition: opacity 0.44s cubic-bezier(0.16, 1, 0.3, 1) 0.26s, transform 0.48s cubic-bezier(0.16, 1, 0.3, 1) 0.26s;
}

/* Smooth section state reveal (empty <-> populated transitions while open) */
@keyframes cartSectionReveal {
  0% {
    opacity: 0;
    transform: translate3d(0, 10px, 0);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.cart-section-reveal {
  animation: cartSectionReveal 0.38s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* 3. Cart Header & Count Pill & Tactile Close */
#cart-overlay .cart-drag-pill {
  width: 38px !important;
  height: 4px !important;
  background: rgba(9, 9, 11, 0.14) !important;
  margin: 9px auto 2px auto !important;
  flex-shrink: 0 !important;
}

#cart-overlay .cart-drawer__header {
  padding: 15px 18px 13px 20px !important;
  border-bottom: 1px solid rgba(9, 9, 11, 0.06) !important;
  align-items: center !important;
  background: #ffffff !important;
  flex-shrink: 0 !important;
}

@media (max-width: 768px) {
  #cart-overlay .cart-drawer__header {
    padding: 8px 18px 12px 20px !important;
  }
}

#cart-overlay .cart-drawer__title-group {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

#cart-overlay .cart-drawer__title {
  font-size: 1.28rem !important;
  font-weight: 850 !important;
  letter-spacing: -0.035em !important;
  color: #09090b !important;
  margin: 0 !important;
  line-height: 1.15 !important;
}

#cart-header-count-pill {
  display: none;
  align-items: center;
  justify-content: center;
  padding: 3px 9px;
  border-radius: 9999px;
  background: #09090b;
  border: 1px solid rgba(9, 9, 11, 0.12);
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(9, 9, 11, 0.16);
}

#cart-header-count-pill.is-visible {
  display: inline-flex;
}

#cart-overlay .cart-drawer__close {
  width: 34px !important;
  height: 34px !important;
  border-radius: 50% !important;
  background: #f3f4f6 !important;
  border: 1px solid rgba(9, 9, 11, 0.06) !important;
  color: #52525b !important;
  margin-top: 0 !important;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

#cart-overlay .cart-drawer__close:hover {
  background: #e5e7eb !important;
  color: #09090b !important;
  transform: scale(1.06) !important;
}

#cart-overlay .cart-drawer__close:active {
  transform: scale(0.9) !important;
}

#cart-overlay .cart-drawer__body {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow: hidden !important;
  padding: 12px 16px 14px 16px !important;
  background: linear-gradient(180deg, #f5f5f7 0%, #eff1f5 100%) !important;
  gap: 10px !important;
  transition: background-color 0.3s ease !important;
}

#cart-overlay .cart-drawer__body.is-empty {
  flex: 0 1 auto !important;
  background: #ffffff !important;
  justify-content: center !important;
  padding: 26px 20px 36px 20px !important;
  gap: 0 !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
}

#cart-overlay .cart-drawer__body.is-empty #cart-items-container {
  flex: 0 1 auto !important;
  overflow: visible !important;
  padding-right: 0 !important;
}

#cart-overlay .cart-drawer__body.is-empty .cart-order-dock {
  display: none !important;
}

#cart-items-container {
  transition: height 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 4. Empty Cart Remake ("Eye Candy" Even When Empty) */
@keyframes cartEmptyFloat {
  0%, 100% {
    transform: translate3d(0, 0px, 0);
  }
  50% {
    transform: translate3d(0, -5px, 0);
  }
}

@keyframes cartSparkleTwinkle {
  0%, 100% {
    transform: scale(0.92) rotate(0deg);
    opacity: 0.72;
  }
  50% {
    transform: scale(1.12) rotate(12deg);
    opacity: 1;
  }
}

@keyframes cartEmptyFadeIn {
  0% {
    opacity: 0;
    transform: translate3d(0, 12px, 0) scale(0.98);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

.cart-empty-luxury {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 28px 16px 24px;
  animation: cartEmptyFadeIn 0.44s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.cart-empty-hero {
  position: relative;
  width: 104px;
  height: 104px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}

.cart-empty-halo {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(15, 23, 42, 0.055) 0%, rgba(15, 23, 42, 0.015) 52%, transparent 74%);
  pointer-events: none;
}

.cart-empty-ring {
  position: absolute;
  inset: 4px;
  border-radius: 30px;
  border: 1px dashed rgba(148, 163, 184, 0.38);
  background: linear-gradient(145deg, rgba(248, 250, 252, 0.9), rgba(241, 245, 249, 0.45));
  transform: rotate(-4deg);
  pointer-events: none;
}

.cart-empty-card {
  position: relative;
  z-index: 2;
  width: 74px;
  height: 74px;
  border-radius: 22px;
  background: linear-gradient(160deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 14px 32px -10px rgba(15, 23, 42, 0.14), 0 4px 10px -4px rgba(15, 23, 42, 0.06), inset 0 1px 0 rgba(255, 255, 255, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #09090b;
  animation: cartEmptyFloat 4.2s ease-in-out infinite;
}

.cart-empty-bag-svg {
  width: 32px;
  height: 32px;
  color: #09090b;
}

.cart-empty-sparkle {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 3;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #09090b;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 14px rgba(9, 9, 11, 0.22), 0 0 0 3px #ffffff;
  animation: cartSparkleTwinkle 3.6s ease-in-out infinite;
}

.cart-empty-sparkle svg {
  width: 12px;
  height: 12px;
}

.cart-empty-title {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #09090b;
  margin: 0 0 8px 0;
  line-height: 1.25;
}

.cart-empty-sub {
  font-size: 0.83rem;
  font-weight: 450;
  line-height: 1.55;
  color: #64748b;
  max-width: 268px;
  margin: 0 0 24px 0;
}

.cart-empty-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 204px;
  height: 46px;
  padding: 0 24px;
  border-radius: 14px;
  background: #09090b;
  color: #ffffff;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 24px -6px rgba(9, 9, 11, 0.34), 0 2px 6px rgba(9, 9, 11, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.16);
  cursor: pointer;
  outline: none;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s ease, box-shadow 0.22s ease;
}

.cart-empty-cta:hover {
  background: #18181b;
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -6px rgba(9, 9, 11, 0.42), 0 4px 10px rgba(9, 9, 11, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.cart-empty-cta:active {
  transform: translateY(0) scale(0.965);
  box-shadow: 0 4px 12px -2px rgba(9, 9, 11, 0.3);
}

.cart-empty-cta__arrow {
  width: 15px;
  height: 15px;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.cart-empty-cta:hover .cart-empty-cta__arrow {
  transform: translateX(3px);
}

.cart-empty-perks {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid #f1f5f9;
  width: 100%;
  max-width: 290px;
}

.cart-empty-perk {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #94a3b8;
  letter-spacing: -0.005em;
}

.cart-empty-perk svg {
  width: 13px;
  height: 13px;
  color: #64748b;
  flex-shrink: 0;
}

/* 5. Populated Cart — Studio-Lit Hardware Showcase Cards & Machined Stepper */
#cart-overlay #cart-items-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding-right: 2px;
  scrollbar-width: thin;
  scrollbar-color: rgba(9, 9, 11, 0.16) transparent;
}

#cart-overlay #cart-items-container::-webkit-scrollbar {
  width: 4px;
}

#cart-overlay #cart-items-container::-webkit-scrollbar-track {
  background: transparent;
}

#cart-overlay #cart-items-container::-webkit-scrollbar-thumb {
  background: rgba(9, 9, 11, 0.16);
  border-radius: 9999px;
}

#cart-overlay #cart-items-container::-webkit-scrollbar-thumb:hover {
  background: rgba(9, 9, 11, 0.28);
}

#cart-overlay .cart-item-row {
  position: relative !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  flex-shrink: 0 !important;
  gap: 13px !important;
  padding: 11px 13px 11px 11px !important;
  margin: 0 !important;
  border-radius: 20px !important;
  background: #ffffff !important;
  border: 1px solid rgba(9, 9, 11, 0.068) !important;
  box-shadow: 0 4px 16px -6px rgba(9, 9, 11, 0.075), 0 1px 2px rgba(9, 9, 11, 0.03), inset 0 1px 0 rgba(255, 255, 255, 1) !important;
  transition: background-color 0.22s ease, border-color 0.24s ease, box-shadow 0.24s ease, transform 0.26s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.24s ease, max-height 0.26s cubic-bezier(0.32, 0.72, 0, 1), padding 0.26s cubic-bezier(0.32, 0.72, 0, 1), margin 0.26s cubic-bezier(0.32, 0.72, 0, 1) !important;
}

#cart-overlay .cart-item-row:last-child {
  margin-bottom: 0 !important;
  border-bottom: 1px solid rgba(9, 9, 11, 0.068) !important;
}

#cart-overlay .cart-item-row:hover {
  background: #ffffff !important;
  border-color: rgba(9, 9, 11, 0.13) !important;
  box-shadow: 0 10px 24px -10px rgba(9, 9, 11, 0.11), 0 2px 6px -2px rgba(9, 9, 11, 0.045) !important;
}

.cart-item-row__content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  min-height: 82px;
  gap: 8px;
}

.cart-item-card__top {
  display: flex;
  align-items: flex-start;
  width: 100%;
  min-width: 0;
}

.cart-item-card__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 2px;
  border-top: none;
  width: 100%;
}

#cart-overlay .cart-item-row__thumb {
  width: 82px !important;
  height: 82px !important;
  background: radial-gradient(circle at 50% 24%, #ffffff 0%, #f4f5f8 62%, #e8ebf1 100%) !important;
  border: 1px solid rgba(9, 9, 11, 0.055) !important;
  box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, 0.96), inset 0 -4px 10px rgba(9, 9, 11, 0.035) !important;
  border-radius: 16px !important;
  padding: 7px !important;
  flex-shrink: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
}

#cart-overlay .cart-item-row__thumb img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  filter: drop-shadow(0 6px 10px rgba(9, 9, 11, 0.14));
  transition: transform 0.34s cubic-bezier(0.16, 1, 0.3, 1), filter 0.34s ease !important;
}

#cart-overlay .cart-item-row:hover .cart-item-row__thumb img {
  transform: scale(1.06) translateY(-1px) !important;
  filter: drop-shadow(0 9px 14px rgba(9, 9, 11, 0.18));
}

#cart-overlay .cart-item-row__details {
  padding-right: 0 !important;
}

#cart-overlay .cart-item-row__title {
  font-size: 0.875rem !important;
  font-weight: 780 !important;
  color: #09090b !important;
  letter-spacing: -0.02em !important;
  line-height: 1.26 !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden !important;
}

#cart-overlay .cart-item-row__variant {
  font-size: 0.72rem !important;
  color: #64748b !important;
  font-weight: 550 !important;
  margin-top: 3px !important;
  line-height: 1.3 !important;
  letter-spacing: -0.005em !important;
}

.cart-item-row__controls {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 0;
  flex-wrap: wrap;
}

#cart-overlay .cart-qty-pill {
  display: inline-flex !important;
  align-items: center !important;
  gap: 2px !important;
  background: #f2f3f6 !important;
  border: 1px solid rgba(9, 9, 11, 0.075) !important;
  box-shadow: inset 0 1px 2px rgba(9, 9, 11, 0.045) !important;
  border-radius: 9999px !important;
  padding: 2.5px !important;
  margin-top: 0 !important;
  height: 30px !important;
  user-select: none !important;
}

#cart-overlay .cart-qty-pill-btn {
  width: 24px !important;
  height: 24px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 50% !important;
  color: #27272a !important;
  background: transparent !important;
  border: none !important;
  cursor: pointer !important;
  padding: 0 !important;
  transition: background-color 0.16s ease, color 0.16s ease, transform 0.16s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.16s ease !important;
}

#cart-overlay .cart-qty-pill-btn:hover {
  background: #ffffff !important;
  color: #09090b !important;
  box-shadow: 0 1.5px 4px rgba(9, 9, 11, 0.11) !important;
}

#cart-overlay .cart-qty-pill-btn:active {
  transform: scale(0.84) !important;
}

#cart-overlay .cart-qty-pill-btn--remove {
  color: #71717a !important;
}

#cart-overlay .cart-qty-pill-btn--remove:hover {
  background: #fef2f2 !important;
  color: #dc2626 !important;
  box-shadow: 0 1px 4px rgba(220, 38, 38, 0.14) !important;
}

#cart-overlay .cart-qty-pill-val {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', ui-sans-serif, sans-serif !important;
  font-variant-numeric: tabular-nums !important;
  font-feature-settings: "tnum" 1 !important;
  font-size: 0.78rem !important;
  font-weight: 800 !important;
  color: #09090b !important;
  min-width: 24px !important;
  text-align: center !important;
  display: inline-block !important;
}

.cart-item-remove-link {
  background: transparent;
  border: none;
  padding: 3px 6px;
  border-radius: 8px;
  font-size: 0.7rem;
  font-weight: 600;
  color: #94a3b8;
  cursor: pointer;
  transition: color 0.16s ease, background-color 0.16s ease, transform 0.14s ease;
}

.cart-item-remove-link:hover {
  color: #dc2626;
  background: #fef2f2;
}

.cart-item-remove-link:active {
  transform: scale(0.94);
}

#cart-overlay .cart-item-row__price {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-end !important;
  text-align: right !important;
  flex-shrink: 0 !important;
  padding-top: 0 !important;
}

.cart-item-row__price-main {
  display: inline-flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 6px;
  white-space: nowrap;
}

.cart-item-row__orig-price {
  display: inline-block;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', ui-sans-serif, sans-serif !important;
  font-variant-numeric: tabular-nums !important;
  font-feature-settings: "tnum" 1 !important;
  font-size: 0.77rem !important;
  font-weight: 600 !important;
  color: #94a3b8 !important;
  text-decoration: line-through !important;
  text-decoration-thickness: 1.4px !important;
  text-decoration-color: rgba(148, 163, 184, 0.9) !important;
  letter-spacing: -0.02em !important;
  line-height: 1.1 !important;
  white-space: nowrap !important;
}

.cart-item-row__price-val {
  display: inline-block;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', ui-sans-serif, sans-serif !important;
  font-variant-numeric: tabular-nums !important;
  font-feature-settings: "tnum" 1 !important;
  font-size: 1.06rem !important;
  font-weight: 850 !important;
  color: #09090b !important;
  letter-spacing: -0.03em !important;
  line-height: 1.1 !important;
  white-space: nowrap !important;
}

.cart-item-row__unit-price {
  display: block;
  font-size: 0.67rem;
  font-weight: 500;
  color: #94a3b8;
  font-variant-numeric: tabular-nums;
  margin-top: 2px;
  white-space: nowrap;
}

/* Smooth Item Exit Collapse Animation */
#cart-overlay .cart-item-row.cart-item-row--removing {
  opacity: 0 !important;
  transform: translate3d(-16px, 0, 0) scale(0.97) !important;
  max-height: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  border-width: 0 !important;
  pointer-events: none !important;
}

/* 6. Unmistakable "Item Added" Animations (Header Pill, Badge, Row Sheen, Number Pop, Cue) */
@keyframes cartPillPulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.32);
    border-color: rgba(255, 255, 255, 0.55);
  }
  32% {
    transform: scale(1.09);
    box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.14), 0 6px 20px rgba(0, 0, 0, 0.35);
    border-color: rgba(255, 255, 255, 0.85);
    background: rgba(255, 255, 255, 0.18);
  }
  65% {
    transform: scale(0.97);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.06);
  }
  100% {
    transform: scale(1);
    box-shadow: none;
  }
}

#cart-toggle-btn.cart-pill-pulse,
#header #cart-toggle-btn.cart-pill-pulse {
  animation: cartPillPulse 0.52s cubic-bezier(0.22, 1, 0.36, 1) both !important;
}

#cart-badge-count.is-empty,
#header #cart-badge-count.is-empty {
  display: none !important;
}

@keyframes cartTotalPop {
  0% {
    transform: translateY(4px) scale(0.88);
    opacity: 0.55;
    color: #fde047;
  }
  55% {
    transform: translateY(-1px) scale(1.08);
    opacity: 1;
    color: #ffffff;
  }
  100% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

#cart-btn-total.cart-total-pop {
  display: inline-block;
  animation: cartTotalPop 0.42s cubic-bezier(0.22, 1, 0.36, 1) both !important;
}

@keyframes cartNumPopUp {
  0% {
    transform: translateY(6px) scale(0.84);
    opacity: 0.4;
  }
  58% {
    transform: translateY(-1.5px) scale(1.1);
    opacity: 1;
  }
  100% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

@keyframes cartNumPopDown {
  0% {
    transform: translateY(-6px) scale(0.84);
    opacity: 0.4;
  }
  58% {
    transform: translateY(1px) scale(1.04);
    opacity: 1;
  }
  100% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

.cart-num-pop-up {
  animation: cartNumPopUp 0.34s cubic-bezier(0.22, 1, 0.36, 1) both !important;
}

.cart-num-pop-down {
  animation: cartNumPopDown 0.30s cubic-bezier(0.22, 1, 0.36, 1) both !important;
}

/* Row Arrival + Luxury Highlight Sheen & Border Pulse */
@keyframes cartRowArrive {
  0% {
    opacity: 0;
    transform: translate3d(0, 14px, 0) scale(0.97);
    border-color: rgba(16, 185, 129, 0.5);
    background-color: #f0fdf4;
    box-shadow: 0 8px 24px -8px rgba(16, 185, 129, 0.22);
  }
  42% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1.01);
    border-color: rgba(16, 185, 129, 0.36);
    background-color: #f7fef9;
    box-shadow: 0 6px 20px -8px rgba(16, 185, 129, 0.16);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    border-color: rgba(15, 23, 42, 0.065);
    background-color: #ffffff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.025);
  }
}

@keyframes cartRowHighlightPulse {
  0% {
    transform: scale(1);
    border-color: rgba(16, 185, 129, 0.48);
    background-color: #f0fdf4;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.12), 0 6px 18px -6px rgba(15, 23, 42, 0.1);
  }
  38% {
    transform: scale(1.012);
    border-color: rgba(16, 185, 129, 0.34);
    background-color: #f8fffb;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.08), 0 4px 14px -6px rgba(15, 23, 42, 0.07);
  }
  100% {
    transform: scale(1);
    border-color: rgba(15, 23, 42, 0.065);
    background-color: #ffffff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.025);
  }
}

@keyframes cartRowSheenSweep {
  0% {
    transform: translateX(-125%) skewX(-20deg);
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  100% {
    transform: translateX(225%) skewX(-20deg);
    opacity: 0;
  }
}

#cart-overlay .cart-item-row.cart-item-row--just-added {
  animation: cartRowArrive 0.95s cubic-bezier(0.16, 1, 0.3, 1) both !important;
}

#cart-overlay .cart-item-row.cart-item-row--just-updated {
  animation: cartRowHighlightPulse 0.85s cubic-bezier(0.16, 1, 0.3, 1) both !important;
}

#cart-overlay .cart-item-row.cart-item-row--just-added::after,
#cart-overlay .cart-item-row.cart-item-row--just-updated::after {
  content: '';
  position: absolute;
  inset: 0;
  width: 55%;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.78) 46%, rgba(16, 185, 129, 0.14) 55%, transparent 100%);
  pointer-events: none;
  z-index: 4;
  animation: cartRowSheenSweep 0.78s cubic-bezier(0.22, 1, 0.36, 1) 0.06s both;
}

.cart-item-just-added-tag {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 7px;
  border-radius: 9999px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #047857;
  font-size: 0.64rem;
  font-weight: 750;
  letter-spacing: 0.01em;
  animation: cartNumPopUp 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* 7. Non-Blocking Luxury "Added to Cart" Confirmation Cue */
.mkt-cart-cue {
  position: fixed !important;
  top: max(16px, env(safe-area-inset-top, 16px)) !important;
  left: 50% !important;
  transform: translate3d(-50%, -22px, 0) scale(0.92);
  opacity: 0;
  visibility: hidden;
  pointer-events: none !important;
  z-index: 2147483640 !important;
  max-width: calc(100vw - 24px);
  width: max-content;
  transition: transform 0.42s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease, visibility 0.3s ease;
  will-change: transform, opacity;
}

.mkt-cart-cue.is-visible {
  transform: translate3d(-50%, 0, 0) scale(1);
  opacity: 1 !important;
  visibility: visible !important;
}

@keyframes mktCartCueBump {
  0% { transform: translate3d(-50%, 0, 0) scale(1); }
  38% { transform: translate3d(-50%, 2px, 0) scale(1.045); }
  100% { transform: translate3d(-50%, 0, 0) scale(1); }
}

.mkt-cart-cue.is-visible.is-bumping {
  animation: mktCartCueBump 0.34s cubic-bezier(0.22, 1, 0.36, 1);
}

.mkt-cart-cue__inner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 9px;
  border-radius: 9999px;
  background: rgba(12, 12, 16, 0.92);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 18px 42px -8px rgba(0, 0, 0, 0.42), 0 4px 12px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Inter', sans-serif;
  max-width: 100%;
  overflow: hidden;
}

.mkt-cart-cue__media {
  position: relative;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #f4f4f5;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 3px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.mkt-cart-cue__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
}

.mkt-cart-cue__check {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #10b981;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid #0c0c10;
}

.mkt-cart-cue__check-only {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.18);
  border: 1px solid rgba(16, 185, 129, 0.42);
  color: #34d399;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mkt-cart-cue__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.2;
}

.mkt-cart-cue__status {
  font-size: 0.77rem;
  font-weight: 750;
  color: #ffffff;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.mkt-cart-cue__item {
  font-size: 0.7rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.68);
  max-width: 195px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 1px;
}

.mkt-cart-cue__qty {
  padding: 3px 8px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
  white-space: nowrap;
}

/* 8. Unified Architectural Order Dock (Delivery + Precision Ledger) & Grounded Action Bar */
#cart-overlay .cart-order-dock,
#cart-overlay #cart-order-dock {
  flex: 0 0 auto !important;
  flex-shrink: 0 !important;
  background: #ffffff !important;
  border-radius: 22px !important;
  border: 1px solid rgba(9, 9, 11, 0.072) !important;
  box-shadow: 0 8px 26px -10px rgba(9, 9, 11, 0.095), 0 1px 3px rgba(9, 9, 11, 0.035), inset 0 1px 0 rgba(255, 255, 255, 1) !important;
  overflow: hidden !important;
}

#cart-overlay .cart-delivery-section {
  margin-top: 0 !important;
  padding: 10px 10px 10px 10px !important;
  border-top: none !important;
  background: #ffffff !important;
}

.cart-delivery-header {
  padding: 2px 6px 8px 6px;
}

.cart-delivery-eyebrow {
  font-size: 0.69rem;
  font-weight: 750;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  color: #71717a;
}

.cart-delivery-learn-more {
  font-size: 0.71rem;
  font-weight: 600;
  color: #52525b;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
  transition: color 0.18s ease;
}

.cart-delivery-learn-more:hover {
  color: #09090b;
}

#cart-overlay .cart-delivery-card {
  border: 1px solid rgba(9, 9, 11, 0.06) !important;
  border-radius: 15px !important;
  background: #f7f8fa !important;
  padding: 10px 11px !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85) !important;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease !important;
}

#cart-overlay .cart-delivery-card:hover {
  background: #ffffff !important;
  border-color: rgba(0, 102, 204, 0.28) !important;
  box-shadow: 0 6px 18px -6px rgba(9, 9, 11, 0.09) !important;
  transform: translateY(-1px) !important;
}

#cart-overlay .cart-delivery-card:active {
  transform: scale(0.985) !important;
}

.cart-delivery-icon-badge {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: linear-gradient(145deg, #ffffff 0%, #eff6ff 100%);
  border: 1px solid rgba(0, 102, 204, 0.14);
  box-shadow: 0 2px 8px -2px rgba(0, 102, 204, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-delivery-title-row {
  font-size: 0.82rem;
  font-weight: 780;
  color: #09090b;
  letter-spacing: -0.015em;
  line-height: 1.2;
}

.cart-delivery-estimate {
  font-size: 0.71rem;
  font-weight: 500;
  color: #64748b;
  margin-top: 2px;
  line-height: 1.2;
}

.cart-delivery-price {
  font-size: 0.8rem;
  font-weight: 800;
  color: #09090b;
}

.cart-delivery-chevron {
  width: 26px;
  height: 26px;
  border-radius: 9999px;
  background: #ffffff;
  border: 1px solid rgba(9, 9, 11, 0.075);
  color: #71717a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), color 0.18s ease, border-color 0.18s ease;
}

#cart-overlay .cart-delivery-card:hover .cart-delivery-chevron {
  color: #09090b;
  border-color: rgba(9, 9, 11, 0.16);
  transform: translateX(2px);
}

#cart-summary-total-qty,
#cart-summary-shipping-fee,
#cart-total-amount,
#cart-delivery-price {
  font-variant-numeric: tabular-nums !important;
  font-feature-settings: "tnum" 1 !important;
}

#cart-overlay .cart-order-summary {
  margin-top: 0 !important;
  padding: 0 !important;
  border-top: 1px solid rgba(9, 9, 11, 0.065) !important;
  border-radius: 0 !important;
  background: #ffffff !important;
  border-left: none !important;
  border-right: none !important;
  border-bottom: none !important;
  box-shadow: none !important;
}

.cart-summary-rows {
  padding: 11px 16px 10px 16px;
  background: #fafbfc;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.cart-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.76rem;
}

.cart-summary-label {
  font-weight: 500;
  color: #64748b;
}

.cart-summary-value {
  font-weight: 800;
  color: #09090b;
  letter-spacing: -0.01em;
}

.cart-summary-row--discount {
  color: #059669;
  font-weight: 750;
}

#cart-summary-shipping-fee.is-free {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 8px;
  border-radius: 9999px;
  background: rgba(16, 185, 129, 0.11);
  border: 1px solid rgba(16, 185, 129, 0.24);
  color: #047857 !important;
  font-size: 0.67rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.04em !important;
  line-height: 1.25;
}

/* Eye-Candy Animated Multi-Currency Cart Savings Counter */
.cart-savings-collapse {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  background: #fafbfc;
  transition: grid-template-rows 0.34s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.26s ease;
  pointer-events: none;
  will-change: grid-template-rows, opacity;
}

.cart-savings-collapse.is-active {
  grid-template-rows: 1fr;
  opacity: 1;
  pointer-events: auto;
}

.cart-savings-collapse__inner {
  overflow: hidden;
  min-height: 0;
}

@keyframes cartSavingsShimmer {
  0% {
    transform: translateX(-130%) skewX(-22deg);
    opacity: 0;
  }
  22% {
    opacity: 1;
  }
  100% {
    transform: translateX(230%) skewX(-22deg);
    opacity: 0;
  }
}

@keyframes cartSavingsPulse {
  0% {
    transform: scale(1);
    border-color: rgba(16, 185, 129, 0.28);
    box-shadow: 0 4px 14px -4px rgba(16, 185, 129, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.92);
  }
  38% {
    transform: scale(1.016);
    border-color: rgba(5, 150, 105, 0.52);
    box-shadow: 0 8px 20px -4px rgba(16, 185, 129, 0.28), 0 0 0 2.5px rgba(16, 185, 129, 0.12), inset 0 1px 0 rgba(255, 255, 255, 1);
  }
  100% {
    transform: scale(1);
    border-color: rgba(16, 185, 129, 0.28);
    box-shadow: 0 4px 14px -4px rgba(16, 185, 129, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.92);
  }
}

.cart-savings-banner {
  position: relative;
  overflow: hidden;
  margin: 0 12px 9px 12px;
  padding: 6.5px 10px 6.5px 8.5px;
  border-radius: 13px;
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 54%, #fef9c3 100%);
  border: 1px solid rgba(16, 185, 129, 0.28);
  box-shadow: 0 4px 14px -4px rgba(16, 185, 129, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.92);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  transform: translateZ(0);
  transition: transform 0.26s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.26s ease, border-color 0.26s ease;
}

.cart-savings-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  width: 54%;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.82) 48%, rgba(16, 185, 129, 0.15) 58%, transparent 100%);
  pointer-events: none;
  opacity: 0;
  z-index: 2;
}

.cart-savings-banner.is-pulsing {
  animation: cartSavingsPulse 0.54s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.cart-savings-banner.is-pulsing::after {
  animation: cartSavingsShimmer 0.82s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.cart-savings-banner__left {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  position: relative;
  z-index: 3;
}

.cart-savings-icon {
  position: relative;
  overflow: hidden;
  width: 24px;
  height: 22px;
  border-radius: 7.5px;
  background: linear-gradient(145deg, #10b981 0%, #059669 52%, #047857 100%);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 3px 8px -1px rgba(5, 150, 105, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.42);
  transform-origin: 50% 55%;
  will-change: transform;
}

@keyframes cartCouponEntrance {
  0% {
    opacity: 0;
    transform: translate3d(0, 4px, 0) scale3d(0.64, 0.64, 1) rotate(-15deg);
  }
  44% {
    opacity: 1;
    transform: translate3d(0, -1.5px, 0) scale3d(1.14, 1.14, 1) rotate(8deg);
  }
  72% {
    transform: translate3d(0, 0.5px, 0) scale3d(0.96, 0.96, 1) rotate(-3.5deg);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale3d(1, 1, 1) rotate(0deg);
  }
}

@keyframes cartCouponCelebrate {
  0% {
    transform: scale3d(1, 1, 1) rotate(0deg);
  }
  24% {
    transform: translate3d(0, -1.5px, 0) scale3d(1.18, 1.18, 1) rotate(-12deg);
  }
  52% {
    transform: translate3d(0, -1px, 0) scale3d(1.15, 1.15, 1) rotate(10deg);
  }
  76% {
    transform: translate3d(0, 0, 0) scale3d(1.04, 1.04, 1) rotate(-4deg);
  }
  100% {
    transform: scale3d(1, 1, 1) rotate(0deg);
  }
}

@keyframes cartCouponGlint {
  0% {
    transform: translateX(-140%) skewX(-24deg);
    opacity: 0;
  }
  30% {
    opacity: 0.95;
  }
  100% {
    transform: translateX(220%) skewX(-24deg);
    opacity: 0;
  }
}

.cart-savings-icon::after {
  content: '';
  position: absolute;
  inset: 0;
  width: 60%;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.68) 50%, transparent 100%);
  pointer-events: none;
  opacity: 0;
}

#cart-overlay.is-active .cart-savings-collapse.is-active .cart-savings-icon {
  animation: cartCouponEntrance 0.58s cubic-bezier(0.22, 1, 0.36, 1) 0.12s both;
}

.cart-savings-banner.is-pulsing .cart-savings-icon {
  animation: cartCouponCelebrate 0.62s cubic-bezier(0.22, 1, 0.36, 1) both !important;
}

.cart-savings-banner.is-pulsing .cart-savings-icon::after {
  animation: cartCouponGlint 0.64s cubic-bezier(0.22, 1, 0.36, 1) 0.04s both;
}

.cart-savings-icon svg,
.cart-savings-coupon-svg {
  width: 14px;
  height: 14px;
  display: block;
  transform-origin: 50% 50%;
  transition: transform 0.34s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cart-savings-banner:hover .cart-savings-icon svg {
  transform: scale3d(1.08, 1.08, 1) rotate(-6deg);
}

.cart-savings-title {
  font-size: 0.73rem;
  font-weight: 800;
  color: #064e3b;
  letter-spacing: -0.015em;
  white-space: nowrap;
  line-height: 1.2;
}

.cart-savings-banner__right {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  position: relative;
  z-index: 3;
}

@keyframes cartSavingsWaveWord {
  0%, 48%, 100% {
    transform: translate3d(0, 0, 0) scale3d(1, 1, 1);
  }
  16% {
    transform: translate3d(0, -2.1px, 0) scale3d(1.032, 1.032, 1);
  }
  32% {
    transform: translate3d(0, 0.55px, 0) scale3d(0.992, 0.992, 1);
  }
}

@keyframes cartSavingsWaveAmount {
  0%, 52%, 100% {
    transform: translate3d(0, 0, 0) scale3d(1, 1, 1);
    filter: brightness(1);
  }
  17% {
    transform: translate3d(0, -2.5px, 0) scale3d(1.052, 1.052, 1);
    filter: brightness(1.08);
  }
  34% {
    transform: translate3d(0, 0.6px, 0) scale3d(0.99, 0.99, 1);
    filter: brightness(1);
  }
}

@keyframes cartSavingsPillWaveSheen {
  0% {
    transform: translate3d(-135%, 0, 0) skewX(-22deg);
    opacity: 0;
  }
  10% {
    opacity: 0.85;
  }
  38% {
    transform: translate3d(235%, 0, 0) skewX(-22deg);
    opacity: 0;
  }
  100% {
    transform: translate3d(235%, 0, 0) skewX(-22deg);
    opacity: 0;
  }
}

@keyframes cartSavingsPillBreath {
  0%, 56%, 100% {
    border-color: rgba(16, 185, 129, 0.32);
    box-shadow: 0 1px 3px rgba(6, 78, 59, 0.08), inset 0 1px 0 #ffffff;
  }
  26% {
    border-color: rgba(16, 185, 129, 0.54);
    box-shadow: 0 3px 10px -1px rgba(16, 185, 129, 0.22), 0 0 0 1.5px rgba(16, 185, 129, 0.09), inset 0 1px 0 #ffffff;
  }
}

.cart-savings-pill {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: baseline;
  gap: 4.5px;
  padding: 3.5px 10px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(16, 185, 129, 0.32);
  box-shadow: 0 1px 3px rgba(6, 78, 59, 0.08), inset 0 1px 0 #ffffff;
  color: #065f46;
  font-size: 0.71rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
  line-height: 1.25;
  transform: translateZ(0);
}

.cart-savings-pill::after {
  content: '';
  position: absolute;
  inset: 0;
  width: 48%;
  background: linear-gradient(90deg, transparent 0%, rgba(16, 185, 129, 0.14) 45%, rgba(255, 255, 255, 0.92) 55%, transparent 100%);
  pointer-events: none;
  opacity: 0;
  z-index: 1;
}

.cart-savings-collapse.is-active .cart-savings-pill {
  animation: cartSavingsPillBreath 3.8s cubic-bezier(0.42, 0, 0.25, 1) infinite;
}

.cart-savings-collapse.is-active .cart-savings-pill::after {
  animation: cartSavingsPillWaveSheen 3.8s cubic-bezier(0.42, 0, 0.25, 1) infinite;
}

.cart-savings-prefix {
  display: inline-flex;
  align-items: baseline;
  gap: 3.5px;
  color: #047857;
  font-weight: 700;
  position: relative;
  z-index: 2;
}

.cart-savings-word {
  display: inline-block;
  transform-origin: 50% 65%;
  will-change: transform;
}

.cart-savings-collapse.is-active .cart-savings-word--1 {
  animation: cartSavingsWaveWord 3.8s cubic-bezier(0.42, 0, 0.25, 1) 0s infinite;
}

.cart-savings-collapse.is-active .cart-savings-word--2 {
  animation: cartSavingsWaveWord 3.8s cubic-bezier(0.42, 0, 0.25, 1) 0.24s infinite;
}

.cart-savings-amount-wrap {
  display: inline-flex;
  align-items: baseline;
  position: relative;
  z-index: 2;
}

.cart-savings-collapse.is-active .cart-savings-word--3 {
  animation: cartSavingsWaveAmount 3.8s cubic-bezier(0.42, 0, 0.25, 1) 0.48s infinite;
}

.cart-savings-amount,
#cart-savings-amount {
  display: inline-block;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', ui-sans-serif, sans-serif;
  font-variant-numeric: tabular-nums !important;
  font-feature-settings: "tnum" 1 !important;
  font-size: 0.8rem;
  font-weight: 900;
  color: #047857;
  letter-spacing: -0.02em;
}

.cart-summary-total-band {
  padding: 12px 16px 14px 16px;
  background: #ffffff;
  border-top: 1px dashed rgba(9, 9, 11, 0.11);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cart-summary-total-label {
  font-size: 1.02rem;
  font-weight: 850;
  color: #09090b;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.cart-summary-returns-row {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 3px;
  font-size: 0.71rem;
  font-weight: 550;
  color: #64748b;
  line-height: 1.2;
}

.cart-summary-total-amount {
  display: inline-block;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', ui-sans-serif, sans-serif;
  font-size: 1.46rem;
  font-weight: 900;
  color: #09090b;
  letter-spacing: -0.04em;
  line-height: 1;
}

#cart-overlay .cart-drawer__footer {
  padding: 12px 16px calc(16px + env(safe-area-inset-bottom, 0px)) 16px !important;
  border-top: 1px solid rgba(9, 9, 11, 0.068) !important;
  background: rgba(255, 255, 255, 0.96) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  flex-shrink: 0 !important;
}

.cart-footer-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cart-continue-btn {
  flex: 0.92;
  height: 48px;
  padding: 0 14px;
  border-radius: 15px !important;
  border: 1px solid rgba(9, 9, 11, 0.12) !important;
  background: #ffffff !important;
  color: #18181b !important;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-align: center;
  cursor: pointer;
  outline: none;
  box-shadow: 0 1px 2px rgba(9, 9, 11, 0.04);
  transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease !important;
}

.cart-continue-btn:hover {
  background: #f8fafc !important;
  border-color: rgba(9, 9, 11, 0.22) !important;
  box-shadow: 0 6px 16px -6px rgba(9, 9, 11, 0.12) !important;
}

.cart-continue-btn:active {
  transform: scale(0.972) !important;
}

.cart-checkout-cta {
  flex: 1.08;
  height: 48px;
  padding: 0 18px;
  border-radius: 15px !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  background: linear-gradient(180deg, #222226 0%, #09090b 100%) !important;
  color: #ffffff !important;
  font-size: 0.86rem;
  font-weight: 750;
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  cursor: pointer;
  outline: none;
  box-shadow: 0 10px 24px -6px rgba(9, 9, 11, 0.42), 0 2px 6px rgba(9, 9, 11, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.22) !important;
  transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, background 0.18s ease !important;
}

.cart-checkout-cta:hover {
  background: linear-gradient(180deg, #2a2a2f 0%, #141418 100%) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 14px 28px -6px rgba(9, 9, 11, 0.48), 0 4px 10px rgba(9, 9, 11, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.26) !important;
}

.cart-checkout-cta:active {
  transform: translateY(0) scale(0.972) !important;
  box-shadow: 0 4px 12px -2px rgba(9, 9, 11, 0.35) !important;
}

.cart-checkout-cta__arrow {
  width: 15px;
  height: 15px;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.cart-checkout-cta:hover .cart-checkout-cta__arrow {
  transform: translateX(3px);
}

/* Shorter viewport compaction (e.g. compact mobile screens <= 700px tall) */
@media (max-height: 700px) {
  #cart-overlay .cart-drawer__body {
    padding: 8px 14px 10px 14px !important;
    gap: 8px !important;
  }

  #cart-overlay .cart-drawer__body.is-empty {
    padding: 20px 18px 26px 18px !important;
  }

  #cart-overlay .cart-delivery-section {
    padding: 8px 9px !important;
  }

  #cart-overlay .cart-delivery-header {
    padding: 0 5px 5px 5px;
  }

  #cart-overlay .cart-delivery-card {
    padding: 7px 10px !important;
  }

  #cart-overlay .cart-summary-rows {
    padding: 8px 14px 7px 14px;
    gap: 5px;
  }

  #cart-overlay .cart-savings-banner {
    margin: 0 10px 7px 10px;
    padding: 5px 9px 5px 7.5px;
  }

  #cart-overlay .cart-summary-total-band {
    padding: 9px 14px 10px 14px;
  }

  #cart-overlay .cart-summary-total-amount {
    font-size: 1.32rem;
  }

  #cart-overlay .cart-drawer__footer {
    padding: 9px 14px calc(12px + env(safe-area-inset-bottom, 0px)) 14px !important;
  }

  #cart-overlay .cart-continue-btn,
  #cart-overlay .cart-checkout-cta {
    height: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cart-empty-card,
  .cart-empty-sparkle,
  .cart-savings-banner.is-pulsing,
  .cart-savings-banner.is-pulsing::after,
  #cart-overlay .cart-item-row.cart-item-row--just-added::after,
  #cart-overlay .cart-item-row.cart-item-row--just-updated::after {
    animation: none !important;
  }
}

/* ==========================================================================
   MARKITLY 60/120FPS MOTION, SHARED-ELEMENT FLIP & SITE-WIDE SKELETON ENGINE
   Native iOS / Airbnb-grade GPU-composited transitions & zero-CLS skeletons
   ========================================================================== */
:root {
  --mkt-ease-ios: cubic-bezier(0.22, 1, 0.36, 1);
  --mkt-ease-fade: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --mkt-sk-base: #ECEEF1;
  --mkt-sk-soft: #F3F4F6;
  --mkt-sk-border: #ECEEF2;
}

/* Permanently disable legacy full-screen route spinner */
#route-loader {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* ── 1. Reusable GPU-Composited Diagonal Shimmer Skeleton System ── */
@keyframes mktShimmerSweep {
  0% {
    transform: translate3d(-125%, 0, 0);
  }
  100% {
    transform: translate3d(125%, 0, 0);
  }
}

.mkt-sk {
  position: relative;
  overflow: hidden;
  background-color: var(--mkt-sk-base);
  border-radius: 10px;
  pointer-events: none;
  user-select: none;
  contain: layout paint style;
}

.mkt-sk::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    108deg,
    rgba(255, 255, 255, 0) 18%,
    rgba(255, 255, 255, 0.74) 50%,
    rgba(255, 255, 255, 0) 82%
  );
  transform: translate3d(-125%, 0, 0);
  animation: mktShimmerSweep 1.32s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  will-change: transform;
}

.mkt-sk--soft {
  background-color: var(--mkt-sk-soft);
}

.mkt-sk--pill {
  border-radius: 9999px;
}

.mkt-sk--circle {
  border-radius: 50%;
}

.mkt-sk--rounded {
  border-radius: 16px;
}

.mkt-sk--dark {
  background-color: rgba(255, 255, 255, 0.11);
}

.mkt-sk--dark::after {
  background: linear-gradient(
    108deg,
    rgba(255, 255, 255, 0) 20%,
    rgba(255, 255, 255, 0.22) 50%,
    rgba(255, 255, 255, 0) 80%
  );
}

/* Inline shimmer progress pill (replaces raw button/banner spinners) */
.mkt-sk-inline-pill {
  display: inline-block;
  width: 28px;
  height: 7px;
  border-radius: 9999px;
  background: rgba(15, 23, 42, 0.16);
  position: relative;
  overflow: hidden;
  vertical-align: middle;
  flex-shrink: 0;
}

.mkt-sk-inline-pill::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(108deg, transparent 15%, rgba(15, 23, 42, 0.62) 50%, transparent 85%);
  transform: translate3d(-120%, 0, 0);
  animation: mktShimmerSweep 1.15s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  will-change: transform;
}

.mkt-sk-inline-pill--light {
  background: rgba(255, 255, 255, 0.22);
}

.mkt-sk-inline-pill--light::after {
  background: linear-gradient(108deg, transparent 15%, rgba(255, 255, 255, 0.92) 50%, transparent 85%);
}

/* Clean Rounded Product Card Skeleton (Zero-CLS Geometry Match) */
.mkt-sk-card {
  background: #ffffff;
  border: 1px solid var(--mkt-sk-border);
  border-radius: 22px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  pointer-events: none;
  user-select: none;
}

.mkt-sk-card--rail {
  flex: 0 0 240px !important;
  min-width: 240px !important;
  max-width: 250px !important;
  scroll-snap-align: start;
}

@media (max-width: 640px) {
  .mkt-sk-card--rail {
    flex: 0 0 185px !important;
    min-width: 185px !important;
    max-width: 195px !important;
  }
}

.mkt-sk-card--rec {
  flex: 0 0 210px !important;
  min-width: 200px !important;
  width: 210px !important;
  border-radius: 16px;
  padding: 12px;
  gap: 10px;
}

.mkt-sk-card__media {
  width: 100%;
  aspect-ratio: 1 / 1;
  padding: 12px;
  box-sizing: border-box;
  background: #ffffff;
}

.mkt-sk-card__media-inner {
  width: 100%;
  height: 100%;
  border-radius: 16px;
}

.mkt-sk-card__body {
  padding: 10px 14px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.mkt-sk-card--grid .mkt-sk-card__body {
  padding: 10px 12px 12px 12px;
  gap: 7px;
}

.mkt-sk-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 6px;
}

/* Order Card & Account Profile Skeleton Cards */
.mkt-sk-order-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 22px;
  padding: 20px;
  box-shadow: 0 8px 24px -12px rgba(15, 23, 42, 0.06);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mkt-sk-order-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid #f1f5f9;
}

.mkt-sk-order-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* ── 2. Smooth 220ms Skeleton -> Live Content Crossfade (Zero CLS) ── */
@keyframes mktContentFadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

.mkt-content-crossfade {
  animation: mktContentFadeIn 220ms ease-out both;
}

/* ── 3. Fluid Shared-Axis Category / View Navigation & Staggered Card Entrance ── */
@keyframes mktViewSlideInForward {
  0% {
    opacity: 0;
    transform: translate3d(26px, 0, 0);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes mktViewSlideInBack {
  0% {
    opacity: 0;
    transform: translate3d(-22px, 0, 0);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

/* Pre-reserved Category Header Geometry (Zero CLS for unified artwork with baked-in text) */
#category-header-container {
  min-height: 175px;
  height: 175px;
  box-sizing: border-box;
  contain: layout style;
}

#category-hero-image {
  display: block;
  width: 155px;
  height: 155px;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  transform-origin: center center;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

@keyframes mktCategoryHeroReveal {
  0% {
    opacity: 0;
    transform: translate3d(0, 8px, 0) scale(0.975);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes mktCardStaggerIn {
  0% {
    opacity: 0;
    transform: translate3d(0, 18px, 0) scale(0.982);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes mktCardPopIn {
  0% {
    opacity: 0;
    transform: translate3d(0, 14px, 0) scale(0.955);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

.mkt-view-enter-forward {
  animation: mktViewSlideInForward 340ms var(--mkt-ease-ios) backwards;
  will-change: transform, opacity;
}

.mkt-view-enter-back {
  animation: mktViewSlideInBack 300ms var(--mkt-ease-ios) backwards;
  will-change: transform, opacity;
}

.mkt-cat-hero-enter {
  animation: mktCategoryHeroReveal 420ms var(--mkt-ease-ios) both;
  will-change: transform, opacity;
}

.mkt-stagger-card {
  animation: mktCardPopIn 380ms var(--mkt-ease-ios) backwards;
  animation-delay: calc(var(--mkt-stagger-i, 0) * 38ms);
  will-change: transform, opacity;
}

.mkt-card-pop-in {
  animation: mktCardPopIn 380ms var(--mkt-ease-ios) backwards;
  animation-delay: calc(var(--mkt-stagger-i, 0) * 38ms);
  will-change: transform, opacity;
}

/* Category Shared-Icon Floating Morph Layer */
.mkt-cat-icon-ghost {
  position: fixed;
  z-index: 995;
  pointer-events: none;
  object-fit: contain;
  transform-origin: center center;
  will-change: transform, opacity;
  transition:
    transform 340ms var(--mkt-ease-ios),
    opacity 220ms ease-out;
}

/* ── 4. Weighted Real-DOM Card <-> PDP Open/Close & Interactive Swipe-Back ──
   Fluid 440–460ms origin-weighted transitions over the intact underlying grid
   with cohesive surface blending (zero stark white slab flash, zero disjointed
   title/info snap, zero tiny image shrink). */
.mkt-flip-stage {
  position: fixed;
  inset: 0;
  z-index: 980;
  pointer-events: none;
  display: none;
  overflow: hidden;
  contain: layout style;
}

.mkt-flip-stage.is-active {
  display: block;
  pointer-events: none;
}

.mkt-flip-backdrop,
.mkt-pdp-scrim {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.14);
  opacity: 0;
  transition: opacity 420ms var(--mkt-ease-ios);
  will-change: opacity;
  pointer-events: none;
}

.mkt-flip-backdrop.is-visible,
.mkt-pdp-scrim.is-visible {
  opacity: 1;
}

#pdp-view.mkt-pdp-sheet-animating {
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.14), 0 4px 14px rgba(15, 23, 42, 0.06);
  will-change: transform, opacity, border-radius;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  background-color: #f8f9fa !important;
}

#pdp-view.mkt-pdp-sheet-closing {
  background-color: #f8f9fb !important;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.11), 0 2px 10px rgba(15, 23, 42, 0.05);
  will-change: transform, opacity, clip-path;
}

#pdp-view.mkt-pdp-sheet-closing > div {
  will-change: transform, opacity;
}

@keyframes mktPdpHeroNaturalReveal {
  0% {
    opacity: 0.88;
    transform: scale(0.955);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes mktPdpMetaSyncReveal {
  0% {
    opacity: 0.72;
    transform: translate3d(0, 10px, 0);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

#pdp-view.mkt-pdp-hero-entering #pdp-swipe-track .pdp-gallery-slide:first-child img {
  animation: mktPdpHeroNaturalReveal 440ms var(--mkt-ease-ios) backwards;
  will-change: transform, opacity;
}

#pdp-view.mkt-pdp-content-entering #pdp-title,
#pdp-view.mkt-pdp-content-entering #pdp-brand-label,
#pdp-view.mkt-pdp-content-entering #pdp-price {
  animation: mktPdpMetaSyncReveal 420ms var(--mkt-ease-ios) backwards;
  will-change: transform, opacity;
}

/* Sticky PDP Bottom Bar (Add to Cart CTA) — Smooth, Gradual Unhurried Entrance */
@keyframes mktPdpBottomBarIn {
  0% {
    opacity: 0;
    transform: translate3d(0, 12px, 0);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

#pdp-bottom-bar.mkt-bar-enter {
  animation: mktPdpBottomBarIn 500ms var(--mkt-ease-ios) 110ms both;
  will-change: transform, opacity;
}

/* Override view-enter-active so it never freezes sticky positioning on PDP */
.view-enter-active {
  animation: viewFadeRise 260ms var(--mkt-ease-ios) backwards !important;
}

/* ── 5. High-Impact Tactile Micro-Animations (Category Tiles, Quick-Add, Wishlist, Image Reveals) ── */

/* 5a. Category Tiles & Navigation Tabs: Press Depth (scale 0.96) + Subtle Hover/Active Sheen */
.noon-category-card,
.category-tile {
  transition: transform 200ms var(--mkt-ease-ios) !important;
  -webkit-tap-highlight-color: transparent;
}

.noon-category-card:active,
.category-tile:active {
  transform: scale(0.96) !important;
}

.noon-category-card__img-wrapper {
  position: relative;
  transition: transform 240ms var(--mkt-ease-ios), background-color 220ms ease, box-shadow 240ms ease !important;
}

.noon-category-card__img-wrapper::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    112deg,
    rgba(255, 255, 255, 0) 24%,
    rgba(255, 255, 255, 0.56) 50%,
    rgba(255, 255, 255, 0) 76%
  );
  transform: translate3d(-130%, 0, 0);
  opacity: 0;
  pointer-events: none;
  transition: transform 520ms var(--mkt-ease-ios), opacity 260ms ease;
}

.noon-category-card__img-wrapper--no-bg::after {
  display: none;
}

.noon-category-card img {
  transition: transform 280ms var(--mkt-ease-ios);
  will-change: transform;
}

@media (hover: hover) {
  .noon-category-card:hover .noon-category-card__img-wrapper::after {
    transform: translate3d(130%, 0, 0);
    opacity: 1;
  }
  .noon-category-card:hover img {
    transform: translate3d(0, -2px, 0) scale(1.045);
  }
  .product-card-container:hover {
    transform: translate3d(0, -3px, 0);
    box-shadow: 0 12px 26px -10px rgba(15, 23, 42, 0.12);
  }
}

.noon-category-card:active .noon-category-card__img-wrapper::after {
  transform: translate3d(115%, 0, 0);
  opacity: 0.85;
}

.noon-category-card:active img {
  transform: scale(0.95);
}

.product-card-container {
  transition: transform 220ms var(--mkt-ease-ios), box-shadow 240ms ease;
}

.product-card-container:active {
  transform: scale(0.978);
}

/* 5b. Card Quick-Add (+) Tactile Spring Burst & Ripple Ring */
@keyframes mktAddSpringPop {
  0% {
    transform: scale(0.84);
  }
  42% {
    transform: scale(1.18);
  }
  72% {
    transform: scale(0.95);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes mktTapRingOut {
  0% {
    opacity: 0.55;
    transform: scale(0.85);
  }
  100% {
    opacity: 0;
    transform: scale(1.68);
  }
}

.product-card__add-btn {
  position: relative;
  overflow: visible !important;
  -webkit-tap-highlight-color: transparent;
}

.product-card__add-btn:active {
  transform: scale(0.88) !important;
}

.product-card__add-btn.mkt-add-spring-pop {
  animation: mktAddSpringPop 420ms cubic-bezier(0.34, 1.56, 0.64, 1) both !important;
  background: #18181b !important;
  background-color: #18181b !important;
  border-color: #18181b !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(24, 24, 27, 0.28) !important;
}

.product-card__add-btn.mkt-add-spring-pop::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 2px solid rgba(24, 24, 27, 0.45);
  pointer-events: none;
  animation: mktTapRingOut 440ms var(--mkt-ease-ios) forwards;
}

/* 5c. Wishlist Heart (♡) Tactile Spring Favorite & Unfavorite Feedback */
@keyframes mktHeartSpringIn {
  0% {
    transform: scale(0.76);
  }
  40% {
    transform: scale(1.26);
  }
  72% {
    transform: scale(0.93);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes mktHeartSpringOut {
  0% {
    transform: scale(1);
  }
  45% {
    transform: scale(0.84);
  }
  100% {
    transform: scale(1);
  }
}

.wishlist-heart-btn,
#pdp-wishlist-btn {
  position: relative;
  -webkit-tap-highlight-color: transparent;
}

.wishlist-heart-btn:active,
#pdp-wishlist-btn:active {
  transform: scale(0.88) !important;
}

.wishlist-heart-btn.mkt-heart-spring-in,
#pdp-wishlist-btn.mkt-heart-spring-in {
  animation: mktHeartSpringIn 440ms cubic-bezier(0.34, 1.56, 0.64, 1) both !important;
}

.wishlist-heart-btn.mkt-heart-spring-in::after,
#pdp-wishlist-btn.mkt-heart-spring-in::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 2px solid rgba(239, 68, 68, 0.55);
  pointer-events: none;
  animation: mktTapRingOut 440ms var(--mkt-ease-ios) forwards;
}

.wishlist-heart-btn.mkt-heart-unpop,
#pdp-wishlist-btn.mkt-heart-unpop {
  animation: mktHeartSpringOut 260ms var(--mkt-ease-ios) both !important;
}

/* 5d. Smooth Image Crossfade Reveal (Zero Flicker for Cached Images) */
.mkt-img-reveal {
  opacity: 0;
  transition: opacity 260ms ease-out;
  will-change: opacity;
}

.mkt-img-reveal.is-loaded {
  opacity: 1;
}

/* ── 6. Eye-Candy Post-Sign-In "Welcome back, [username] 👋" Notification Popup ── */
@keyframes mktWelcomeWave {
  0% {
    transform: rotate(0deg);
  }
  14% {
    transform: rotate(18deg);
  }
  28% {
    transform: rotate(-10deg);
  }
  42% {
    transform: rotate(16deg);
  }
  56% {
    transform: rotate(-6deg);
  }
  70% {
    transform: rotate(10deg);
  }
  84%, 100% {
    transform: rotate(0deg);
  }
}

@keyframes mktWelcomeArrowGlide {
  0%, 100% {
    transform: translate3d(0, 0, 0);
    opacity: 0.78;
  }
  50% {
    transform: translate3d(4px, 0, 0);
    opacity: 1;
  }
}

@keyframes mktWelcomeSheen {
  0% {
    transform: translate3d(-140%, 0, 0) skewX(-18deg);
    opacity: 0;
  }
  24% {
    opacity: 1;
  }
  100% {
    transform: translate3d(240%, 0, 0) skewX(-18deg);
    opacity: 0;
  }
}

#mkt-welcome-toast,
.mkt-welcome-toast {
  position: fixed !important;
  top: max(18px, env(safe-area-inset-top, 18px)) !important;
  left: 50% !important;
  transform: translate3d(-50%, -18px, 0) scale(0.94);
  opacity: 0;
  visibility: hidden;
  pointer-events: none !important;
  z-index: 2147483645 !important;
  max-width: calc(100vw - 24px);
  width: max-content;
  transition:
    transform 460ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 340ms cubic-bezier(0.22, 1, 0.36, 1),
    visibility 340ms ease;
  will-change: transform, opacity;
}

#mkt-welcome-toast.is-visible,
.mkt-welcome-toast.is-visible {
  transform: translate3d(-50%, 0, 0) scale(1);
  opacity: 1 !important;
  visibility: visible !important;
}

#mkt-welcome-toast.is-leaving,
.mkt-welcome-toast.is-leaving {
  transform: translate3d(-50%, -14px, 0) scale(0.96);
  opacity: 0 !important;
  visibility: hidden !important;
  transition:
    transform 320ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 260ms ease,
    visibility 260ms ease;
}

.mkt-welcome-toast__inner {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px 10px 14px;
  border-radius: 9999px;
  background: linear-gradient(180deg, rgba(28, 28, 34, 0.95) 0%, rgba(12, 12, 16, 0.94) 100%);
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow:
    0 22px 48px -10px rgba(0, 0, 0, 0.45),
    0 6px 16px -4px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Inter', sans-serif;
  max-width: 100%;
  overflow: hidden;
}

.mkt-welcome-toast__inner::before {
  content: "";
  position: absolute;
  inset: 0;
  width: 45%;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.14) 50%, transparent 100%);
  pointer-events: none;
  opacity: 0;
}

.mkt-welcome-toast.is-visible .mkt-welcome-toast__inner::before {
  animation: mktWelcomeSheen 1.05s cubic-bezier(0.22, 1, 0.36, 1) 180ms 1 both;
}

.mkt-welcome-wave {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.08rem;
  line-height: 1;
  transform-origin: 70% 70%;
  will-change: transform;
  flex-shrink: 0;
}

.mkt-welcome-toast.is-visible .mkt-welcome-wave {
  animation: mktWelcomeWave 1.45s cubic-bezier(0.22, 1, 0.36, 1) 120ms 2;
}

.mkt-welcome-toast__text {
  font-size: 0.84rem;
  font-weight: 650;
  letter-spacing: -0.012em;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: min(260px, calc(100vw - 120px));
  line-height: 1.25;
}

.mkt-welcome-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #ffffff;
  flex-shrink: 0;
  will-change: transform, opacity;
}

.mkt-welcome-arrow svg {
  width: 12px;
  height: 12px;
  display: block;
}

.mkt-welcome-toast.is-visible .mkt-welcome-arrow {
  animation: mktWelcomeArrowGlide 1.15s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}

/* ── 7. Eye-Candy Sign-Out Confirmation Prompt Modal ── */
#mkt-signout-confirm-overlay,
.mkt-signout-overlay {
  position: fixed !important;
  inset: 0 !important;
  z-index: 2147483644 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
  background: rgba(9, 10, 14, 0.46);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 280ms cubic-bezier(0.22, 1, 0.36, 1),
    visibility 280ms ease;
}

#mkt-signout-confirm-overlay.is-visible,
.mkt-signout-overlay.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

#mkt-signout-confirm-overlay.is-closing,
.mkt-signout-overlay.is-closing {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 220ms cubic-bezier(0.22, 1, 0.36, 1),
    visibility 220ms ease;
}

.mkt-signout-card {
  width: 100%;
  max-width: 372px;
  padding: 26px 24px 22px 24px;
  box-sizing: border-box;
  border-radius: 26px;
  background: #ffffff;
  color: #09090b;
  border: 1px solid rgba(9, 9, 11, 0.085);
  box-shadow:
    0 36px 84px -18px rgba(9, 9, 11, 0.32),
    0 12px 28px -10px rgba(9, 9, 11, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Inter', sans-serif;
  opacity: 0;
  transform: translate3d(0, 16px, 0) scale(0.94);
  transition:
    transform 360ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 280ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform, opacity;
}

#mkt-signout-confirm-overlay.is-visible .mkt-signout-card,
.mkt-signout-overlay.is-visible .mkt-signout-card {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

#mkt-signout-confirm-overlay.is-closing .mkt-signout-card,
.mkt-signout-overlay.is-closing .mkt-signout-card {
  opacity: 0;
  transform: translate3d(0, 10px, 0) scale(0.955);
  transition:
    transform 220ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 200ms ease;
}

.mkt-signout-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #fff5f5 0%, #fee2e2 100%);
  border: 1px solid rgba(220, 38, 38, 0.16);
  color: #dc2626;
  box-shadow:
    0 8px 18px -6px rgba(220, 38, 38, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  flex-shrink: 0;
}

.mkt-signout-icon svg {
  width: 24px;
  height: 24px;
  display: block;
}

.mkt-signout-title {
  margin: 0 0 6px 0;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.028em;
  color: #09090b;
  line-height: 1.25;
}

.mkt-signout-desc {
  margin: 0 0 22px 0;
  font-size: 0.84rem;
  font-weight: 450;
  color: #52525b;
  line-height: 1.48;
  max-width: 290px;
}

.mkt-signout-actions {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
}

.mkt-signout-btn {
  flex: 1 1 0;
  height: 46px;
  padding: 0 16px;
  border-radius: 14px;
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  cursor: pointer;
  outline: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
  transition:
    transform 180ms cubic-bezier(0.22, 1, 0.36, 1),
    background-color 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    color 180ms ease;
}

.mkt-signout-btn:focus-visible {
  box-shadow: 0 0 0 3px rgba(24, 24, 27, 0.22);
}

.mkt-signout-btn:active {
  transform: scale(0.968);
}

#mkt-signout-cancel-btn,
.mkt-signout-btn--cancel {
  background: #f4f4f5;
  color: #18181b;
  border: 1px solid rgba(9, 9, 11, 0.1);
  box-shadow: 0 1px 2px rgba(9, 9, 11, 0.04);
}

#mkt-signout-cancel-btn:hover,
.mkt-signout-btn--cancel:hover {
  background: #e4e4e7;
  border-color: rgba(9, 9, 11, 0.18);
  color: #09090b;
}

#mkt-signout-confirm-btn,
.mkt-signout-btn--confirm {
  background: linear-gradient(180deg, #dc2626 0%, #b91c1c 100%);
  color: #ffffff;
  border: 1px solid rgba(185, 28, 28, 0.5);
  box-shadow:
    0 10px 22px -6px rgba(220, 38, 38, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

#mkt-signout-confirm-btn:hover,
.mkt-signout-btn--confirm:hover {
  background: linear-gradient(180deg, #ef4444 0%, #dc2626 100%);
  transform: translateY(-1px);
  box-shadow:
    0 14px 26px -6px rgba(220, 38, 38, 0.52),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

#mkt-signout-confirm-btn:active,
.mkt-signout-btn--confirm:active {
  transform: translateY(0) scale(0.968);
}

html.dark .mkt-signout-card,
[data-theme="dark"] .mkt-signout-card {
  background: #18181b;
  color: #fafafa;
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow:
    0 36px 84px -18px rgba(0, 0, 0, 0.65),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

html.dark .mkt-signout-title,
[data-theme="dark"] .mkt-signout-title {
  color: #fafafa;
}

html.dark .mkt-signout-desc,
[data-theme="dark"] .mkt-signout-desc {
  color: #a1a1aa;
}

html.dark .mkt-signout-icon,
[data-theme="dark"] .mkt-signout-icon {
  background: rgba(220, 38, 38, 0.16);
  border-color: rgba(248, 113, 113, 0.28);
  color: #f87171;
  box-shadow: none;
}

html.dark .mkt-signout-btn--cancel,
[data-theme="dark"] .mkt-signout-btn--cancel {
  background: #27272a;
  color: #f4f4f5;
  border-color: rgba(255, 255, 255, 0.12);
}

html.dark .mkt-signout-btn--cancel:hover,
[data-theme="dark"] .mkt-signout-btn--cancel:hover {
  background: #3f3f46;
  color: #ffffff;
}

/* Reduced Motion Respect */
@media (prefers-reduced-motion: reduce) {
  .mkt-sk::after,
  .mkt-sk-inline-pill::after,
  .mkt-content-crossfade,
  .mkt-view-enter-forward,
  .mkt-view-enter-back,
  .mkt-cat-hero-enter,
  .mkt-stagger-card,
  .mkt-card-pop-in,
  .product-card__add-btn.mkt-add-spring-pop,
  .product-card__add-btn.mkt-add-spring-pop::after,
  .wishlist-heart-btn.mkt-heart-spring-in,
  .wishlist-heart-btn.mkt-heart-spring-in::after,
  .wishlist-heart-btn.mkt-heart-unpop,
  #pdp-wishlist-btn.mkt-heart-spring-in,
  #pdp-wishlist-btn.mkt-heart-spring-in::after,
  #pdp-wishlist-btn.mkt-heart-unpop,
  #pdp-view.mkt-pdp-hero-entering #pdp-swipe-track .pdp-gallery-slide:first-child img,
  #pdp-view.mkt-pdp-content-entering #pdp-title,
  #pdp-view.mkt-pdp-content-entering #pdp-brand-label,
  #pdp-view.mkt-pdp-content-entering #pdp-price,
  #pdp-bottom-bar.mkt-bar-enter,
  .mkt-welcome-wave,
  .mkt-welcome-arrow,
  .mkt-welcome-toast.is-visible .mkt-welcome-wave,
  .mkt-welcome-toast.is-visible .mkt-welcome-arrow,
  .mkt-welcome-toast.is-visible .mkt-welcome-toast__inner::before {
    animation: none !important;
  }
  .mkt-flip-backdrop,
  .mkt-pdp-scrim,
  #pdp-view.mkt-pdp-sheet-animating,
  .mkt-cat-icon-ghost,
  .noon-category-card,
  .noon-category-card__img-wrapper,
  .noon-category-card__img-wrapper::after,
  .noon-category-card img,
  .product-card-container,
  .mkt-img-reveal,
  .pdp-swipe-rail,
  .pdp-gallery-slide,
  #mkt-welcome-toast,
  .mkt-welcome-toast,
  #mkt-signout-confirm-overlay,
  .mkt-signout-overlay,
  .mkt-signout-card {
    transition-duration: 0.01ms !important;
  }
  .mkt-img-reveal {
    opacity: 1 !important;
  }
}




/* ==========================================================================
   iOS SAFARI / WEBKIT PRODUCT CARD MEDIA CONTAINMENT
   The slides wrapper is absolutely inset inside the square media frame so
   percentage image heights always resolve against a definite box (WebKit
   otherwise lets tall phone images overflow the frame and hide the heart).
   ========================================================================== */
.product-card:not(.deal-product-card) .product-card__image-container {
  --mkt-card-media-inset: 10px 10px 22px 10px;
  position: relative !important;
  overflow: hidden !important;
  min-height: 0 !important;
  isolation: isolate;
  -webkit-mask-image: -webkit-radial-gradient(white, black);
}
.product-card:not(.deal-product-card) .product-card__image-container--devices,
.product-card--mobiles:not(.deal-product-card) .product-card__image-container,
.product-card--laptops-desktops:not(.deal-product-card) .product-card__image-container {
  --mkt-card-media-inset: 0.75rem 0.75rem 1.4rem 0.75rem;
}
.product-card:not(.deal-product-card) .product-card__slide {
  position: relative !important;
  overflow: hidden !important;
  min-height: 0 !important;
}
.product-card:not(.deal-product-card) .product-card__slide img {
  max-width: 100% !important;
  max-height: 100% !important;
  width: auto !important;
  height: auto !important;
  min-width: 0 !important;
  min-height: 0 !important;
  flex-shrink: 1 !important;
  object-fit: contain !important;
}
.product-card:not(.deal-product-card) .product-card__image-container .product-card__dots {
  z-index: 2 !important;
}
