/**
 * Dreams Lux Fashion Design
 * Elegant, modern design for women
 */

:root {
  /* Elegant Color Palette */
  --primary-gold: #d4af37;
  --primary-rose: #f6e7e6;
  --primary-blush: #fef3f2;
  --accent-burgundy: #8b4049;
  --accent-champagne: #f5e6d3;
  --neutral-charcoal: #2d2d2d;
  --neutral-warm-gray: #8b8680;
  --neutral-light: #fafaf9;
  
  /* Shadows - Soft and elegant */
  --shadow-soft: 0 2px 20px rgba(212, 175, 55, 0.08);
  --shadow-medium: 0 4px 30px rgba(212, 175, 55, 0.12);
  --shadow-strong: 0 8px 40px rgba(212, 175, 55, 0.16);
  --shadow-hover: 0 12px 50px rgba(212, 175, 55, 0.2);
  
  /* Transitions */
  --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* ============================================
   MODERN BUTTONS
   ============================================ */

.btn-fashion {
  position: relative;
  padding: 16px 40px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  overflow: hidden;
  transition: var(--transition-smooth);
  font-family: 'Montserrat', sans-serif;
}

.btn-fashion::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn-fashion:hover::before {
  width: 300px;
  height: 300px;
}

.btn-fashion-primary {
  background: linear-gradient(135deg, var(--primary-gold) 0%, #c19b2e 100%);
  color: white;
  box-shadow: var(--shadow-medium);
}

.btn-fashion-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.btn-fashion-secondary {
  background: white;
  color: var(--neutral-charcoal);
  border: 2px solid var(--primary-gold);
  box-shadow: var(--shadow-soft);
}

.btn-fashion-secondary:hover {
  background: var(--primary-blush);
  transform: translateY(-3px);
  box-shadow: var(--shadow-medium);
}

.btn-fashion-outline {
  background: transparent;
  color: var(--primary-gold);
  border: 2px solid var(--primary-gold);
}

.btn-fashion-outline:hover {
  background: var(--primary-gold);
  color: white;
  transform: translateY(-2px);
}

/* Icon buttons */
.btn-icon {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.btn-icon svg {
  width: 20px;
  height: 20px;
  transition: transform 0.3s;
}

.btn-icon:hover svg {
  transform: translateX(4px);
}

/* ============================================
   MODERN FORMS
   ============================================ */

.form-fashion {
  position: relative;
}

.form-fashion .form-group {
  position: relative;
  margin-bottom: 28px;
}

.form-fashion label {
  position: absolute;
  top: 18px;
  left: 24px;
  font-size: 15px;
  color: var(--neutral-warm-gray);
  pointer-events: none;
  transition: var(--transition-smooth);
  font-weight: 500;
}

.form-fashion input,
.form-fashion select,
.form-fashion textarea {
  width: 100%;
  padding: 20px 24px;
  font-size: 15px;
  color: var(--neutral-charcoal);
  background: white;
  border: 2px solid #e8e8e8;
  border-radius: 16px;
  transition: var(--transition-smooth);
  font-family: 'Montserrat', sans-serif;
}

.form-fashion input:focus,
.form-fashion select:focus,
.form-fashion textarea:focus {
  outline: none;
  border-color: var(--primary-gold);
  box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.1);
  background: var(--primary-blush);
}

.form-fashion input:focus + label,
.form-fashion input:not(:placeholder-shown) + label,
.form-fashion select:focus + label,
.form-fashion textarea:focus + label {
  top: -10px;
  left: 20px;
  font-size: 12px;
  color: var(--primary-gold);
  background: white;
  padding: 0 8px;
}

.form-fashion input::placeholder {
  color: transparent;
}

/* Checkbox & Radio - Modern style */
.form-fashion input[type="checkbox"],
.form-fashion input[type="radio"] {
  width: 22px;
  height: 22px;
  accent-color: var(--primary-gold);
  cursor: pointer;
}

/* ============================================
   ELEGANT CARDS
   ============================================ */

.card-fashion {
  background: white;
  border-radius: 24px;
  padding: 32px;
  box-shadow: var(--shadow-soft);
  transition: var(--transition-smooth);
  border: 1px solid rgba(212, 175, 55, 0.1);
}

.card-fashion:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary-gold);
}

.card-fashion-header {
  padding-bottom: 20px;
  border-bottom: 2px solid var(--primary-blush);
  margin-bottom: 24px;
}

.card-fashion-title {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--neutral-charcoal);
  margin: 0;
}

/* Product Cards */
.product-card-fashion {
  position: relative;
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: var(--transition-smooth);
}

.product-card-fashion:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: var(--shadow-hover);
}

.product-card-fashion .product-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/4;
}

.product-card-fashion .product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.product-card-fashion:hover .product-image img {
  transform: scale(1.1);
}

.product-card-fashion .product-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: linear-gradient(135deg, var(--primary-gold), #c19b2e);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  box-shadow: var(--shadow-medium);
}

.product-card-fashion .product-info {
  padding: 24px;
}

.product-card-fashion .product-name {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--neutral-charcoal);
  margin-bottom: 8px;
}

.product-card-fashion .product-price {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary-gold);
  margin-bottom: 16px;
}

/* ============================================
   PROFESSIONAL ICONS
   ============================================ */

.icon-fashion {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary-blush), white);
  border-radius: 16px;
  color: var(--primary-gold);
  transition: var(--transition-smooth);
}

.icon-fashion:hover {
  background: linear-gradient(135deg, var(--primary-gold), #c19b2e);
  color: white;
  transform: rotate(10deg) scale(1.1);
}

.icon-fashion svg {
  width: 24px;
  height: 24px;
}

/* Icon with text */
.icon-text-fashion {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--neutral-charcoal);
  transition: var(--transition-smooth);
}

.icon-text-fashion:hover {
  color: var(--primary-gold);
  transform: translateX(4px);
}

.icon-text-fashion svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* ============================================
   ELEGANT HEADER
   ============================================ */

.header-fashion {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: var(--transition-smooth);
}

.header-fashion.scrolled {
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.header-fashion .logo {
  height: 50px;
  transition: var(--transition-smooth);
}

.header-fashion nav a {
  position: relative;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: var(--neutral-charcoal);
  transition: var(--transition-smooth);
  padding: 8px 0;
}

.header-fashion nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-gold), #c19b2e);
  transition: width 0.3s ease;
}

.header-fashion nav a:hover {
  color: var(--primary-gold);
}

.header-fashion nav a:hover::after {
  width: 100%;
}

/* Cart badge */
.cart-badge-fashion {
  position: absolute;
  top: -8px;
  right: -8px;
  background: linear-gradient(135deg, var(--accent-burgundy), #a94d57);
  color: white;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  box-shadow: var(--shadow-medium);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

/* ============================================
   RESPONSIVE MOBILE MENU
   ============================================ */

.mobile-menu-fashion {
  position: fixed;
  top: 0;
  right: -100%;
  width: 320px;
  height: 100vh;
  background: white;
  box-shadow: -4px 0 30px rgba(0, 0, 0, 0.1);
  transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 2000;
  overflow-y: auto;
}

.mobile-menu-fashion.active {
  right: 0;
}

.mobile-menu-fashion .menu-header {
  background: linear-gradient(135deg, var(--primary-gold), #c19b2e);
  padding: 24px;
  color: white;
}

.mobile-menu-fashion .menu-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 24px;
  color: var(--neutral-charcoal);
  border-bottom: 1px solid var(--primary-blush);
  transition: var(--transition-smooth);
}

.mobile-menu-fashion .menu-item:hover {
  background: var(--primary-blush);
  color: var(--primary-gold);
  padding-left: 32px;
}

.mobile-menu-fashion .menu-item svg {
  width: 20px;
  height: 20px;
}

/* ============================================
   ELEGANT ANIMATIONS
   ============================================ */

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

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

.animate-fade-in-scale {
  animation: fadeInScale 0.5s ease-out;
}

/* Stagger animation for lists */
.stagger-animation > * {
  opacity: 0;
  animation: fadeInUp 0.6s ease-out forwards;
}

.stagger-animation > *:nth-child(1) { animation-delay: 0.1s; }
.stagger-animation > *:nth-child(2) { animation-delay: 0.2s; }
.stagger-animation > *:nth-child(3) { animation-delay: 0.3s; }
.stagger-animation > *:nth-child(4) { animation-delay: 0.4s; }
.stagger-animation > *:nth-child(5) { animation-delay: 0.5s; }
.stagger-animation > *:nth-child(6) { animation-delay: 0.6s; }

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
  .btn-fashion {
    padding: 14px 32px;
    font-size: 14px;
  }
  
  .card-fashion {
    padding: 24px;
    border-radius: 20px;
  }
  
  .card-fashion-title {
    font-size: 24px;
  }
  
  .product-card-fashion .product-name {
    font-size: 18px;
  }
  
  .product-card-fashion .product-price {
    font-size: 20px;
  }
}


/* ============================================
   MODERN FORM INPUTS - DISTINCTIVE DESIGN
   ============================================ */

/* Form Group */
.form-group-fashion {
  margin-bottom: 1.5rem;
  position: relative;
}

/* Form Labels */
.form-label-fashion {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 14px;
  color: var(--neutral-charcoal);
  margin-bottom: 0.75rem;
  font-family: 'Montserrat', sans-serif;
  letter-spacing: 0.5px;
}

.form-label-fashion svg {
  color: var(--primary-gold);
  flex-shrink: 0;
}

/* Modern Input Base */
.form-input-fashion {
  width: 100%;
  padding: 16px 20px;
  font-size: 15px;
  font-family: 'Montserrat', sans-serif;
  color: var(--neutral-charcoal);
  background: white;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* Input Focus State */
.form-input-fashion:focus {
  outline: none;
  border-color: var(--primary-gold);
  background: white;
  box-shadow: 0 4px 16px rgba(212, 175, 55, 0.15),
              0 0 0 4px rgba(212, 175, 55, 0.08);
  transform: translateY(-2px);
}

/* Input Hover State */
.form-input-fashion:hover:not(:focus) {
  border-color: #c0c0c0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Input Placeholder */
.form-input-fashion::placeholder {
  color: #a0a0a0;
  font-style: italic;
  font-size: 14px;
}

/* Select Dropdown */
.form-input-fashion select,
select.form-input-fashion {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23d4af37' 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 16px center;
  background-size: 20px;
  padding-right: 48px;
  cursor: pointer;
}

/* Textarea */
textarea.form-input-fashion {
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}

/* Input with Icon */
.input-with-icon {
  position: relative;
}

.input-with-icon svg {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary-gold);
  pointer-events: none;
}

.input-with-icon .form-input-fashion {
  padding-left: 48px;
}

/* Input States */
.form-input-fashion:disabled {
  background: #f5f5f5;
  color: #999;
  cursor: not-allowed;
  border-color: #e0e0e0;
}

.form-input-fashion.error {
  border-color: #ef4444;
  background: #fef2f2;
}

.form-input-fashion.error:focus {
  box-shadow: 0 4px 16px rgba(239, 68, 68, 0.15),
              0 0 0 4px rgba(239, 68, 68, 0.08);
}

.form-input-fashion.success {
  border-color: #10b981;
  background: #f0fdf4;
}

/* Input Group (for addons) */
.input-group-fashion {
  display: flex;
  gap: 0;
}

.input-group-fashion .form-input-fashion {
  border-radius: 0;
}

.input-group-fashion .form-input-fashion:first-child {
  border-top-left-radius: 12px;
  border-bottom-left-radius: 12px;
}

.input-group-fashion .form-input-fashion:last-child {
  border-top-right-radius: 12px;
  border-bottom-right-radius: 12px;
}

.input-group-addon {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  background: linear-gradient(135deg, var(--primary-gold) 0%, #c19b2e 100%);
  color: white;
  font-weight: 600;
  border: 2px solid var(--primary-gold);
}

.input-group-addon:first-child {
  border-top-left-radius: 12px;
  border-bottom-left-radius: 12px;
  border-right: none;
}

.input-group-addon:last-child {
  border-top-right-radius: 12px;
  border-bottom-right-radius: 12px;
  border-left: none;
}

/* Checkbox & Radio - Modern Style */
.form-check-fashion {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  padding: 12px;
  border-radius: 8px;
  transition: background 0.3s ease;
}

.form-check-fashion:hover {
  background: var(--primary-blush);
}

.form-check-fashion input[type="checkbox"],
.form-check-fashion input[type="radio"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: var(--primary-gold);
}

/* File Input */
.form-file-fashion {
  position: relative;
  display: inline-block;
  width: 100%;
}

.form-file-fashion input[type="file"] {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.form-file-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 20px;
  background: white;
  border: 2px dashed #d0d0d0;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
  color: var(--neutral-charcoal);
}

.form-file-label:hover {
  border-color: var(--primary-gold);
  background: var(--primary-blush);
  transform: translateY(-2px);
}

.form-file-label svg {
  color: var(--primary-gold);
}

/* Input Error Message */
.form-error-message {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-size: 13px;
  color: #ef4444;
  font-weight: 500;
}

.form-error-message svg {
  flex-shrink: 0;
}

/* Input Success Message */
.form-success-message {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-size: 13px;
  color: #10b981;
  font-weight: 500;
}

/* Input Helper Text */
.form-helper-text {
  margin-top: 6px;
  font-size: 13px;
  color: #6b7280;
  font-style: italic;
}

/* Floating Label Effect */
.form-floating-fashion {
  position: relative;
}

.form-floating-fashion .form-input-fashion {
  padding-top: 24px;
  padding-bottom: 8px;
}

.form-floating-fashion label {
  position: absolute;
  left: 20px;
  top: 16px;
  color: #a0a0a0;
  font-size: 15px;
  transition: all 0.3s ease;
  pointer-events: none;
}

.form-floating-fashion .form-input-fashion:focus ~ label,
.form-floating-fashion .form-input-fashion:not(:placeholder-shown) ~ label {
  top: 8px;
  font-size: 11px;
  color: var(--primary-gold);
  font-weight: 600;
}

/* Search Input */
.search-input-fashion {
  position: relative;
}

.search-input-fashion svg {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary-gold);
  pointer-events: none;
}

.search-input-fashion .form-input-fashion {
  padding-left: 48px;
  padding-right: 48px;
}

.search-input-fashion .clear-btn {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #999;
  cursor: pointer;
  padding: 4px;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.search-input-fashion .clear-btn:hover {
  background: #f0f0f0;
  color: var(--neutral-charcoal);
}

/* Responsive */
@media (max-width: 640px) {
  .form-input-fashion {
    padding: 14px 16px;
    font-size: 14px;
  }
  
  .form-label-fashion {
    font-size: 13px;
  }
  
  .btn-fashion {
    padding: 14px 32px;
    font-size: 13px;
  }
}
