/* Charm UI Enhancements for Annapurna Jewelry Website */

:root {
  /* Luxurious Red Color Palette */
  --charm-red-primary: #9D2235; /* Rich burgundy red */
  --charm-red-dark: #6D0E16; /* Deep wine red */
  --charm-red-darker: #4A0A0F; /* Dark ruby red */
  --charm-red-light: #E8B7BF; /* Soft rose pink */
  --charm-red-lighter: #F5DCE0; /* Very light pink */
  --charm-red-accent: #C01F2F; /* Vibrant red accent */
  --charm-gold: #D4AF37; /* Complementary gold */
  --charm-gold-light: #F8F0D2; /* Light gold */
  --charm-cream: #FFF8F0; /* Warm cream background */
  --charm-dark: #2D1A1E; /* Deep dark red-brown */
  
  /* Gradients */
  --charm-gradient-red: linear-gradient(135deg, var(--charm-red-primary) 0%, var(--charm-red-dark) 100%);
  --charm-gradient-gold: linear-gradient(135deg, #D4AF37 0%, #FBF5B7 50%, #D4AF37 100%);
  
  /* Transparent Colors */
  --charm-red-light-transparent: rgba(157, 34, 53, 0.08);
  --charm-red-medium-transparent: rgba(157, 34, 53, 0.2);
  --charm-red-dark-transparent: rgba(109, 14, 22, 0.15);
  
  /* Spacing */
  --charm-space-xs: 0.25rem;
  --charm-space-sm: 0.5rem;
  --charm-space-md: 1rem;
  --charm-space-lg: 1.5rem;
  --charm-space-xl: 2rem;
  
  /* Transitions */
  --charm-transition: all 0.3s ease;
}

/* Enhanced Card Styling */
.card {
  border: none;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
  border-radius: 8px;
  overflow: hidden;
  transition: var(--charm-transition);
}

.card:hover {
  box-shadow: 0 5px 20px var(--charm-red-dark-transparent);
  transform: translateY(-3px);
}

.card-header {
  border-bottom: 1px solid var(--charm-red-light-transparent);
  background-color: white;
  padding: 1rem 1.25rem;
}

/* Enhanced Button Styling */
.btn {
  border-radius: 6px;
  font-weight: 500;
  padding: 0.5rem 1.25rem;
  transition: var(--charm-transition);
  letter-spacing: 0.3px;
}

.btn-primary {
  background: var(--charm-gradient-red);
  border-color: var(--charm-red-primary);
  box-shadow: 0 2px 5px var(--charm-red-dark-transparent);
  color: white;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--charm-red-accent) 0%, var(--charm-red-primary) 100%);
  border-color: var(--charm-red-accent);
  box-shadow: 0 4px 10px var(--charm-red-dark-transparent);
  transform: translateY(-2px);
}

.btn-outline-primary {
  border-color: var(--charm-red-primary);
  color: var(--charm-red-primary);
}

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

/* Product Card Enhancements */
.luxury-product-card {
  border-radius: 10px;
  transition: var(--charm-transition);
  border: 1px solid var(--charm-red-light-transparent);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.luxury-product-card:hover {
  box-shadow: 0 10px 25px var(--charm-red-dark-transparent);
  transform: translateY(-5px);
}

.luxury-product-image-wrapper {
  border-radius: 10px 10px 0 0;
  position: relative;
  overflow: hidden;
}

.luxury-product-image-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(157, 34, 53, 0) 70%, rgba(157, 34, 53, 0.05) 100%);
  pointer-events: none;
}

.luxury-product-title {
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--charm-red-dark);
  font-family: 'Playfair Display', serif;
  letter-spacing: 0.02em;
}

.luxury-product-content {
  padding: 1.25rem !important;
}

.luxury-product-price {
  color: var(--charm-red-primary);
  font-weight: 600;
  font-size: 1.1rem;
}

.luxury-product-meta {
  color: var(--charm-red-primary) !important;
  background-color: var(--charm-red-light-transparent) !important;
  border: 1px solid var(--charm-red-medium-transparent) !important;
}

.luxury-product-badge {
  background: var(--charm-gradient-red) !important;
  color: white !important;
  box-shadow: 0 2px 8px var(--charm-red-dark-transparent) !important;
  letter-spacing: 0.05em;
  font-weight: 500;
}

/* Form Control Enhancements */
.form-control, .form-select {
  border-radius: 6px;
  border-color: var(--charm-red-medium-transparent);
  padding: 0.5rem 0.75rem;
  transition: var(--charm-transition);
  background-color: rgba(255, 255, 255, 0.9);
}

.form-control:focus, .form-select:focus {
  border-color: var(--charm-red-primary);
  box-shadow: 0 0 0 0.25rem var(--charm-red-light-transparent);
  background-color: #fff;
}

/* Enhanced Filter Section */
.luxury-filters {
  background: white;
  border-radius: 8px;
  box-shadow: 0 3px 15px var(--charm-red-light-transparent);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--charm-red-light-transparent);
}

.luxury-filter-title {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  font-size: 1.25rem;
  margin-bottom: 1.25rem;
  color: var(--charm-red-dark);
  position: relative;
  padding-bottom: 10px;
  letter-spacing: 0.02em;
}

.luxury-filter-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, var(--charm-red-primary) 0%, var(--charm-red-light) 100%);
}

.luxury-filter-group {
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--charm-red-light-transparent);
  padding-bottom: 1.5rem;
}

.luxury-filter-label {
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--charm-red-dark);
  font-size: 0.9rem;
}

/* Price Range Slider */
.noUi-connect {
  background: var(--charm-red-primary) !important;
}

.noUi-handle {
  background: white !important;
  border: 2px solid var(--charm-red-primary) !important;
  box-shadow: 0 1px 4px var(--charm-red-dark-transparent) !important;
}

/* Quick Filter Buttons */
.quick-filter-btn {
  border-color: var(--charm-red-medium-transparent);
  color: var(--charm-red-dark);
}

.quick-filter-btn:hover,
.quick-filter-btn.active {
  background-color: var(--charm-red-primary);
  border-color: var(--charm-red-primary);
  color: white;
}

/* Navigation Enhancements */
.royal-nav-link.active::after,
.royal-nav-link:hover::after {
  background-color: var(--charm-red-primary) !important;
}

.royal-nav-link.active,
.royal-nav-link:hover {
  color: var(--charm-red-primary) !important;
}

/* Badge Enhancements */
.badge {
  font-weight: 500;
  padding: 0.35em 0.65em;
  border-radius: 4px;
}

.badge-primary {
  background-color: var(--charm-red-primary);
  color: white;
}

.badge-secondary {
  background-color: var(--charm-red-light);
  color: var(--charm-red-dark);
}

.badge-gold {
  background: var(--charm-gradient-gold);
  color: var(--charm-dark);
}

/* Table Enhancements */
.table thead th {
  background-color: var(--charm-red-light-transparent);
  color: var(--charm-red-dark);
  font-weight: 600;
  border-bottom: 2px solid var(--charm-red-medium-transparent);
}

.table tbody tr:hover {
  background-color: var(--charm-red-light-transparent);
}

/* Section Title Enhancements */
.luxury-page-title::after,
.products-title::after {
  background: linear-gradient(90deg, var(--charm-red-primary) 0%, var(--charm-red-light) 100%);
  height: 3px;
  width: 80px;
  bottom: -12px;
}

.luxury-page-title,
.products-title {
  color: var(--charm-red-dark);
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  letter-spacing: 0.02em;
  position: relative;
  display: inline-block;
  margin-bottom: 1.5rem;
  font-size: 2.2rem;
}

/* Elegant page header with subtle pattern */
.products-hero {
  background-color: var(--charm-red-light-transparent) !important;
  position: relative;
  overflow: hidden;
}

.products-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%239D2235' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.8;
}

/* Pagination Enhancements */
.page-link {
  color: var(--charm-red-primary);
  border-color: var(--charm-red-medium-transparent);
}

.page-item.active .page-link {
  background-color: var(--charm-red-primary);
  border-color: var(--charm-red-primary);
}

.page-link:hover {
  color: var(--charm-red-accent);
  background-color: var(--charm-red-light-transparent);
}

/* Premium Jewelry-Specific Elements */

/* Elegant product showcase */
.jewelry-showcase {
  position: relative;
  padding: 2rem 0;
  margin: 2rem 0;
  overflow: hidden;
}

.jewelry-showcase::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(157, 34, 53, 0) 0%, rgba(157, 34, 53, 0.3) 50%, rgba(157, 34, 53, 0) 100%);
}

.jewelry-showcase::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(157, 34, 53, 0) 0%, rgba(157, 34, 53, 0.3) 50%, rgba(157, 34, 53, 0) 100%);
}

/* Gold product indicator */
.gold-product-badge {
  background: var(--charm-gradient-gold);
  color: var(--charm-red-darker);
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  display: inline-block;
  box-shadow: 0 2px 4px var(--charm-red-dark-transparent);
  margin-bottom: 0.5rem;
}

/* Luxury divider */
.luxury-divider {
  height: 1px;
  background: linear-gradient(90deg, rgba(157, 34, 53, 0) 0%, rgba(157, 34, 53, 0.3) 50%, rgba(157, 34, 53, 0) 100%);
  margin: 2rem 0;
  position: relative;
}

.luxury-divider::before {
  content: '✦';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  padding: 0 1rem;
  color: var(--charm-red-primary);
  font-size: 0.8rem;
}

/* Gemstone colors for filters */
.gemstone-ruby { background-color: rgba(224, 17, 95, 0.1); border-color: rgba(224, 17, 95, 0.3); }
.gemstone-emerald { background-color: rgba(0, 148, 68, 0.1); border-color: rgba(0, 148, 68, 0.3); }
.gemstone-sapphire { background-color: rgba(8, 83, 156, 0.1); border-color: rgba(8, 83, 156, 0.3); }
.gemstone-diamond { background-color: rgba(185, 242, 255, 0.1); border-color: rgba(185, 242, 255, 0.3); }

/* Elegant quote section */
.elegant-quote {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--charm-red-dark);
  text-align: center;
  max-width: 800px;
  margin: 2rem auto;
  padding: 1.5rem;
  position: relative;
}

.elegant-quote::before,
.elegant-quote::after {
  content: '"';
  font-size: 3rem;
  position: absolute;
  opacity: 0.2;
  color: var(--charm-red-primary);
}

.elegant-quote::before {
  top: -0.5rem;
  left: 0;
}

.elegant-quote::after {
  bottom: -2rem;
  right: 0;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.fade-in {
  animation: fadeIn 0.5s ease forwards;
}

@keyframes goldShimmer {
  0% { background-position: -100% 0; }
  100% { background-position: 200% 0; }
}

.gold-shimmer {
  background: linear-gradient(90deg, rgba(212, 175, 55, 0), rgba(212, 175, 55, 0.4), rgba(212, 175, 55, 0)) !important;
  background-size: 200% 100% !important;
  animation: goldShimmer 2s infinite !important;
}

@keyframes redShimmer {
  0% { background-position: -100% 0; }
  100% { background-position: 200% 0; }
}

.red-shimmer {
  background: linear-gradient(90deg, rgba(157, 34, 53, 0), rgba(157, 34, 53, 0.2), rgba(157, 34, 53, 0)) !important;
  background-size: 200% 100% !important;
  animation: redShimmer 2s infinite !important;
}

/* Elegant Red Jewelry Specific Elements */
.luxury-product-card .luxury-product-image-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(157, 34, 53, 0.02) 0%, rgba(157, 34, 53, 0.1) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
  pointer-events: none;
}

.luxury-product-card:hover .luxury-product-image-wrapper::before {
  opacity: 1;
}

/* Awesome Compact Title Bar Styles */
.royal-topbar {
    background: linear-gradient(135deg, var(--luxury-red-primary) 0%, var(--luxury-red-dark) 100%);
    color: white;
    font-size: 0.75rem;
    padding: 4px 0;
    letter-spacing: 0.5px;
    font-weight: 400;
    width: 100%;
    display: flex;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(157, 34, 53, 0.2);
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1050;
}

/* Gold shimmer border at bottom */
.royal-topbar::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, var(--luxury-gold), rgba(212, 175, 55, 0.5), var(--luxury-gold));
    background-size: 200% 100%;
    animation: shimmerBorder 3s infinite;
}

@keyframes shimmerBorder {
    0% { background-position: -100% 0; }
    100% { background-position: 200% 0; }
}

/* Contact Info Styling */
.compact-contact-info {
    display: flex;
    align-items: center;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}

.contact-item {
    display: inline-flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.contact-item i {
    margin-right: 5px;
    font-size: 0.7rem;
    color: var(--luxury-gold-light);
}

.contact-divider {
    margin: 0 10px;
    color: rgba(255, 255, 255, 0.4);
}

/* Currency Selector Styling */
.currency-dropdown {
    margin-right: 15px;
    position: relative;
}

.currency-selector {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.currency-selector i {
    font-size: 0.7rem;
    margin-left: 4px;
    transition: transform 0.2s;
}

.currency-dropdown-menu {
    min-width: 200px;
    padding: 0;
    border-radius: 6px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.dropdown-header {
    padding: 10px 15px;
    background-color: #f8f8f8;
    border-bottom: 1px solid #eee;
}

.dropdown-header h6 {
    margin: 0;
    font-size: 0.8rem;
    font-weight: 600;
    color: #333;
}

.currency-option {
    padding: 10px 15px;
    cursor: pointer;
    border-bottom: 1px solid #f5f5f5;
    transition: background-color 0.2s;
}

.currency-option:hover {
    background-color: #f5f5f5;
}

.currency-option:last-child {
    border-bottom: none;
}

.currency-symbol {
    width: 20px;
    display: inline-block;
    margin-right: 10px;
    font-weight: bold;
    color: var(--luxury-red-primary);
}

.currency-details {
    display: flex;
    flex-direction: column;
}

.currency-code {
    font-size: 0.8rem;
    font-weight: 500;
    color: #333;
}

.currency-name {
    font-size: 0.7rem;
    color: #666;
}

/* User Menu Styling */
.user-menu {
    display: flex;
    align-items: center;
}

.user-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 500;
    transition: color 0.2s;
}

.user-link:hover {
    color: var(--luxury-gold-light);
}

.user-divider {
    margin: 0 10px;
    color: rgba(255, 255, 255, 0.4);
}

.user-dropdown {
    position: relative;
}

.user-dropdown-toggle {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.user-dropdown-toggle i.fa-user-circle {
    margin-right: 5px;
    font-size: 0.9rem;
    color: var(--luxury-gold-light);
}

.user-dropdown-toggle i.fa-chevron-down {
    font-size: 0.7rem;
    margin-left: 4px;
    transition: transform 0.2s;
}

.user-dropdown-toggle:hover {
    color: var(--luxury-gold-light);
}

.user-dropdown .dropdown-menu {
    min-width: 200px;
    padding: 5px 0;
    border-radius: 6px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.08);
    margin-top: 10px;
}

.user-dropdown .dropdown-item {
    padding: 8px 15px;
    font-size: 0.85rem;
    color: #333;
    transition: background-color 0.2s;
}

.user-dropdown .dropdown-item:hover {
    background-color: #f5f5f5;
    color: var(--luxury-red-primary);
}

.user-dropdown .dropdown-item i {
    width: 20px;
    text-align: center;
    color: var(--luxury-red-primary);
    opacity: 0.8;
}

/* Responsive Adjustments */
@media (max-width: 767px) {
    .compact-contact-info {
        display: none;
    }
    
    .currency-dropdown {
        margin-right: 10px;
    }
}

/* Luxury Category Highlight */
.luxury-category-highlight {
  position: relative;
  padding-left: 12px;
}

.luxury-category-highlight::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 70%;
  background: var(--charm-gradient-red);
  border-radius: 2px;
}

/* Red Accent Border */
.red-accent-border {
  position: relative;
  overflow: hidden;
}

.red-accent-border::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--charm-red-primary), var(--charm-red-light), var(--charm-red-primary));
  background-size: 200% 100%;
  animation: shimmerBorder 2s infinite;
}

@keyframes shimmerBorder {
  0% { background-position: -100% 0; }
  100% { background-position: 200% 0; }
}

/* Elegant Price Display */
.elegant-price {
  font-family: 'Playfair Display', serif;
  position: relative;
  display: inline-block;
}

.elegant-price::before {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--charm-red-primary), transparent);
}

.luxury-category-highlight::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 70%;
  background: var(--charm-gradient-red);
  border-radius: 2px;
}

/* Responsive Improvements */
@media (max-width: 767px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .luxury-product-grid {
    gap: 1rem;
  }
  
  .elegant-quote {
    font-size: 1rem;
    padding: 1rem;
  }
  
  .elegant-quote::before {
    font-size: 2rem;
  }
  
  .elegant-quote::after {
    font-size: 2rem;
    bottom: -1.5rem;
  }
}
