:root {
  /* Semantic Theme Mapping */
  --lux-obsidian: var(--primary);
  --lux-champagne: var(--secondary);
  --lux-cream: #f9f8fc; /* Slightly lighter cream for a cleaner look */
  --lux-alert: var(--accent);

  /* Structural Helpers */
  --lux-border-thin: #e2e0ea; /* Softer, more elegant border */
  --lux-muted-gray: #7a7693;
  --lux-white: #ffffff;

  /* Typography & Motion */
  /* --lux-font-serif: "Playfair Display", Georgia, serif;
    --lux-font-sans: "Inter", sans-serif; */
  --lux-ease: cubic-bezier(
    0.2,
    0.8,
    0.2,
    1
  ); /* Smoother, more cinematic ease */
}

/* =========================================
   2. GLOBAL RESETS & SHARED BASE STYLES
========================================= */
* {
  box-sizing: border-box;
}

body {
  color: var(--lux-obsidian);
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.lux-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 40px;
}

/* Base Header Layout */
.lux-profile-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--lux-border-thin);
  margin-bottom: 60px;
}

.lux-eyebrow {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 4px; /* Increased for elegance */
  color: var(--lux-muted-gray);
  display: block;
  margin-bottom: 12px;
  font-weight: 600;
}

.lux-glance-title {
  font-size: clamp(2.2rem, 3.5vw, 3rem);
  font-weight: 400;
  margin: 0;
  color: var(--lux-obsidian);
  letter-spacing: -0.5px;
}

/* Refined Utility Bar */
.lux-utility-bar {
  display: flex;
  align-items: center;
  gap: 24px;
}

.lux-item-count {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--lux-muted-gray);
}

.lux-divider-line {
  width: 30px;
  height: 1px;
  background-color: var(--lux-border-thin);
}

.lux-btn-outline {
  background: transparent;
  border: 1px solid var(--lux-border-thin);
  color: var(--lux-obsidian);
  padding: 14px 32px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  cursor: pointer;
  transition: all 0.4s var(--lux-ease);
}

.lux-btn-outline:hover {
  border-color: var(--lux-obsidian);
  background: var(--lux-obsidian);
  color: var(--lux-white);
}

/* =========================================
   3. WISHLIST SPECIFIC STYLES
========================================= */
/* Layout & Animation */
.lux-commerce-section {
  background-color: var(--lux-white);
  padding: 100px 0 140px;
}
@keyframes slideUpFade {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.lux-fade-in {
  animation: slideUpFade 0.8s var(--lux-ease) forwards;
}
.lux-product-card {
  animation: slideUpFade 0.8s var(--lux-ease) both;
}

/* Editorial Grid */
.lux-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 90px 40px;
}
.lux-product-card {
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

/* Image Container */
.lux-card-image-wrap {
  position: relative;
  width: 100%;
  margin-bottom: 28px;
  overflow: hidden;
  background: var(--lux-cream);
  border: 1px solid var(--lux-border-thin);
}
.aspect-portrait {
  aspect-ratio: 3 / 4;
  transition: transform 1.2s var(--lux-ease);
  background-size: cover;
  background-position: center;
}
.lux-product-card:hover .aspect-portrait {
  transform: scale(1.05);
}

/* Overlays & Micro-interactions */
.lux-card-overlays {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.lux-icon-circle {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--lux-white);
  border: 1px solid var(--lux-border-thin);
  color: var(--lux-muted-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.8rem;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.4s var(--lux-ease);
  pointer-events: auto;
}
.lux-product-card:hover .lux-icon-circle {
  opacity: 1;
  transform: translateY(0);
}
.lux-icon-circle:hover {
  color: var(--lux-obsidian);
  border-color: var(--lux-obsidian);
}
.lux-icon-circle.remove:hover {
  color: var(--lux-alert);
  border-color: var(--lux-alert);
}

/* Glassmorphic Quick Add (Slide up on hover) */
.glass-panel-sm {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255, 255, 255, 1);
}
.lux-quick-add {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 24px;
  transform: translateY(100%);
  opacity: 0;
  transition: all 0.5s var(--lux-ease);
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.lux-product-card:hover .lux-quick-add {
  transform: translateY(0);
  opacity: 1;
}
.quick-add-title {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--lux-obsidian);
  font-weight: 600;
  margin-bottom: 16px;
}
.size-row {
  display: flex;
  gap: 10px;
  justify-content: center;
}
.size-row button {
  width: 44px;
  height: 44px;
  border: 1px solid var(--lux-border-thin);
  background: transparent;
  color: var(--lux-obsidian);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}
.size-row button:hover:not(.disabled) {
  background: var(--lux-obsidian);
  color: var(--lux-white);
  border-color: var(--lux-obsidian);
}
.size-row button.disabled {
  opacity: 0.3;
  cursor: not-allowed;
  position: relative;
}
.size-row button.disabled::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 10%;
  right: 10%;
  height: 1px;
  background: var(--lux-obsidian);
  transform: translateY(-50%) rotate(-45deg);
}

/* Badges & Text (Editorial Alignment) */
.lux-stock-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  background: var(--lux-white);
  border: 1px solid var(--lux-border-thin);
  color: var(--lux-obsidian);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 8px 14px;
  font-weight: 600;
  z-index: 2;
}
.lux-card-info {
  display: flex;
  flex-direction: column;
  text-align: left;
} /* Changed to left alignment */
.lux-item-brand {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--lux-muted-gray);
  font-weight: 600;
  display: block;
  margin-bottom: 10px;
}
.lux-item-name {
  font-size: 1.2rem;
  font-weight: 400;
  margin: 0 0 16px 0;
  color: var(--lux-obsidian);
  line-height: 1.4;
}
.lux-item-price {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--lux-obsidian);
  letter-spacing: 0.5px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .lux-container {
    padding: 0 24px;
  }
  .lux-profile-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    padding-bottom: 32px;
  }
  .lux-utility-bar {
    width: 100%;
    justify-content: space-between;
  }
  .lux-divider-line {
    display: none;
  }
  .lux-quick-add {
    transform: translateY(0);
    opacity: 1;
    position: relative;
    background: transparent;
    backdrop-filter: none;
    border: none;
    padding: 20px 0 0 0;
    align-items: flex-start;
  }
  .size-row {
    justify-content: flex-start;
  }
  .size-row button {
    width: 40px;
    height: 40px;
  }
  .lux-icon-circle {
    opacity: 1;
    transform: translateY(0);
  }
}
