/* Shopspire 2025 Theme */
:root {
  --color-primary: #2563EB;
  --color-primary-2: #4F46E5;
  --color-secondary: #1E293B;
  --color-accent: #FFB700;
  --color-bg: #F8FAFC;
  --color-text: #0F172A;
  --radius-xl: 20px;
  --spacing-24: 24px;
  --spacing-32: 32px;
  --shadow-soft: 0 8px 24px rgba(31,41,55,.1);
  --shadow-elevated: 0 16px 40px rgba(31,41,55,.15);
  --shadow-glow: 0 0 40px rgba(37, 99, 235, 0.3);
  --glass-bg: rgba(255,255,255,0.85);
  --glass-border: rgba(255,255,255,0.3);
  --glass-bg-dark: rgba(30, 41, 59, 0.85);
  --gradient-primary: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-2) 100%);
  --gradient-accent: linear-gradient(135deg, #FFB700 0%, #FF8A00 100%);
  --gradient-glass: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.7) 100%);
}

html { scroll-behavior: smooth; }
body { 
  background: linear-gradient(135deg, #F8FAFC 0%, #E2E8F0 100%);
  color: var(--color-text); 
  font-family: 'Inter', 'Roboto', sans-serif;
  min-height: 100vh;
}

h1,h2,h3,h4,h5,.btn { font-family: 'Poppins', sans-serif; }

.container { max-width: 1200px; }

/* Enhanced Buttons with 2025 UI */
.btn-primary {
  background: var(--gradient-primary);
  border: none;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  font-weight: 600;
  letter-spacing: 0.5px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
}

.btn-primary:hover { 
  transform: translateY(-4px) scale(1.03); 
  box-shadow: var(--shadow-elevated), var(--shadow-glow);
  filter: brightness(1.1);
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  transition: left 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:active {
  transform: translateY(-1px) scale(0.98);
}

.btn-secondary {
  background: var(--glass-bg);
  border: 1px solid rgba(37,99,235,0.2);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(15px);
  color: var(--color-primary);
  font-weight: 600;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.btn-secondary:hover {
  background: var(--gradient-primary);
  color: white;
  transform: translateY(-3px) scale(1.02);
  box-shadow: var(--shadow-elevated);
  border-color: transparent;
}

.btn-outline-primary {
  background: transparent;
  border: 2px solid var(--color-primary);
  border-radius: var(--radius-xl);
  color: var(--color-primary);
  font-weight: 600;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.btn-outline-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: var(--gradient-primary);
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: -1;
}

.btn-outline-primary:hover {
  color: white;
  border-color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.btn-outline-primary:hover::before {
  width: 100%;
}

/* Enhanced Navbar with Glassmorphism */
.navbar { 
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(20px);
  background: var(--gradient-glass) !important;
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 4px 32px rgba(31,41,55,.08);
}
.navbar.sticky-top {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1030;
}
.navbar.scrolled {
  background: rgba(255,255,255,0.95) !important;
  backdrop-filter: blur(25px);
  box-shadow: 0 8px 40px rgba(31,41,55,.15);
  border-bottom: 1px solid rgba(37, 99, 235, 0.1);
}
.navbar-brand img { 
  height: 40px; 
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  filter: drop-shadow(0 2px 8px rgba(37, 99, 235, 0.2));
}
.navbar-brand:hover img { 
  transform: scale(1.08) rotate(2deg);
  filter: drop-shadow(0 4px 16px rgba(37, 99, 235, 0.3));
}

/* Improved Mobile Toggler Contrast */
.navbar.navbar-light .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='%23000000' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.5' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
  transition: all 0.3s ease;
}
.navbar.navbar-light .navbar-toggler {
  border: 2px solid #1E293B;
  border-radius: 8px;
  padding: 6px 8px;
  background: rgba(255,255,255,0.9);
  transition: all 0.3s ease;
}
.navbar.navbar-light .navbar-toggler:hover {
  background: #1E293B;
  transform: scale(1.05);
}
.navbar.navbar-light .navbar-toggler:hover .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='%23ffffff' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.5' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}
.navbar .navbar-toggler:focus {
  box-shadow: 0 0 0 0.25rem rgba(37, 99, 235, 0.25);
}

/* Enhanced Navigation Links with Micro-interactions */
.navbar-nav .nav-link {
  font-weight: 500;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  margin: 0 8px;
  padding: 8px 16px !important;
  border-radius: 12px;
}
.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  width: 0;
  height: 3px;
  background: var(--gradient-primary);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateX(-50%);
  border-radius: 2px;
}
.navbar-nav .nav-link:hover {
  background: rgba(37, 99, 235, 0.1);
  transform: translateY(-2px);
}
.navbar-nav .nav-link:hover::after {
  width: 80%;
}

/* Active nav link state */
.navbar-nav .nav-link.active,
.navbar-nav .nav-link[aria-current="page"] {
  background: rgba(37, 99, 235, 0.15);
  color: #1E293B;
  box-shadow: 0 6px 20px rgba(31,41,55,.12);
}
.navbar-nav .nav-link.active::after,
.navbar-nav .nav-link[aria-current="page"]::after {
  width: 100%;
}

.hero {
  background: var(--gradient-primary);
  color: #fff;
  border-radius: calc(var(--radius-xl) + 8px);
  padding: 80px 32px;
  box-shadow: var(--shadow-elevated), var(--shadow-glow);
  position: relative;
  overflow: hidden;
  margin: 20px 0;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 70%);
  animation: heroFloat 8s ease-in-out infinite;
}
.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.1) 50%, transparent 70%);
  animation: heroShimmer 3s ease-in-out infinite;
}
@keyframes heroFloat {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-30px) rotate(180deg); }
}
@keyframes heroShimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.card {
  border: none;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  background: var(--gradient-glass);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
}
.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-elevated), 0 0 30px rgba(37, 99, 235, 0.2);
  border: 1px solid rgba(37, 99, 235, 0.3);
}
.card:hover::before {
  left: 100%;
}

.glass {
  background: var(--gradient-glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  box-shadow: 0 12px 40px rgba(31,41,55,.1);
  border-radius: var(--radius-xl);
}

.category-banner {
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(37,99,235,.1) 0%, rgba(79,70,229,.1) 100%);
  overflow: hidden;
  position: relative;
}
.category-banner::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.1) 50%, transparent 70%);
  animation: shimmer 3s infinite;
}
@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.progress-top {
  position: fixed; top: 0; left: 0; height: 4px; width: 0;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-2) 100%);
  z-index: 1050;
  transition: width 0.3s ease;
}

.back-to-top {
  position: fixed; right: 24px; bottom: 24px;
  display: none;
  z-index: 1050;
  border-radius: 999px;
  box-shadow: var(--shadow-soft);
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-2) 100%);
  border: none;
  color: white;
  width: 50px;
  height: 50px;
  transition: all 0.3s ease;
}
.back-to-top:hover {
  transform: translateY(-3px) scale(1.1);
  box-shadow: var(--shadow-elevated);
}

.search-input::placeholder { color: #64748B; opacity: .8; }

.footer { 
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%); 
  border-top: 1px solid #e5e7eb; 
  position: relative;
}
.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
}

/* Enhanced Product Cards 2025 */
.product-card {
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(37,99,235,0.08);
  background: var(--gradient-glass);
  backdrop-filter: blur(15px);
  border-radius: var(--radius-xl);
  box-shadow: 0 8px 32px rgba(31,41,55,.06);
  contain: layout style paint;
  contain-intrinsic-size: 350px;
}

.product-card .card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.product-card .card-title {
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--color-text-dark);
  transition: color 0.3s ease;
}

.product-card img { 
  border-radius: calc(var(--radius-xl) - 4px) calc(var(--radius-xl) - 4px) 0 0; 
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  width: 100%;
  height: 240px;
  object-fit: cover;
  filter: brightness(1) saturate(1);
}

.product-card:hover img {
  transform: scale(1.1) rotate(1deg);
  filter: brightness(1.1) saturate(1.2);
}

.product-card .price { 
  color: var(--color-secondary); 
  font-weight: 700;
  font-size: 1.15rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.product-card .price .original-price {
  font-size: 0.9rem;
  text-decoration: line-through;
  opacity: 0.7;
  font-weight: 400;
}

.product-card:hover { 
  transform: translateY(-12px) scale(1.03); 
  box-shadow: 0 25px 60px rgba(31,41,55,.2), var(--shadow-glow);
  border-color: rgba(37,99,235,0.3);
}

.product-card .carousel {
  border-radius: calc(var(--radius-xl) - 4px);
  overflow: hidden;
}

.product-card .carousel-item img {
  height: 200px;
  object-fit: cover;
  width: 100%;
}

.product-card .carousel-control-prev,
.product-card .carousel-control-next {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.product-card:hover .carousel-control-prev,
.product-card:hover .carousel-control-next {
  opacity: 0.8;
}

.product-card .carousel-control-prev-icon,
.product-card .carousel-control-next-icon {
  background-color: rgba(0, 0, 0, 0.3);
  border-radius: 50%;
  padding: 10px;
  background-size: 50%;
}

.product-card .badge {
  font-weight: 500;
  padding: 0.35em 0.65em;
}

/* Card actions overlay */
.product-card .features-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.25rem 0;
  padding: 0;
  list-style: none;
}

.product-card .features-list li {
  font-size: 0.8rem;
  background: rgba(37,99,235,0.08);
  color: var(--color-text-dark);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
}

.product-card .features-list li i {
  font-size: 0.7rem;
  margin-right: 0.25rem;
  color: var(--color-primary);
}

.product-card .product-rating {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.product-card .product-rating .stars {
  color: #FFB800;
  letter-spacing: -0.1em;
}

.product-card .product-rating .count {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.product-card .card-actions {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1rem;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
  opacity: 0;
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  z-index: 2;
  transition: all 0.3s ease;
  transform: translateY(20px);
}

.product-card:hover .card-actions,
.product-card:focus-within .card-actions {
  opacity: 1;
  transform: translateY(0);
}

.product-card .btn-cta {
  font-weight: 600;
  padding: 0.6rem 1.25rem;
  border-radius: 999px;
  box-shadow: var(--shadow-soft);
  background: var(--color-primary);
  color: white;
  border: none;
  flex-grow: 1;
  text-align: center;
  letter-spacing: 0.02em;
  transition: all 0.2s ease;
}

.product-card .btn-cta:hover {
  box-shadow: var(--shadow-elevated);
  transform: translateY(-2px);
  background: var(--color-secondary);
}

.product-card .btn-save {
  border-radius: 999px;
  padding: 0.6rem;
  background: white;
  border: none;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.product-card .btn-save:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: var(--shadow-soft);
}

.product-card .btn-save i {
  font-size: 1.1rem;
  color: #666;
  transition: all 0.2s ease;
}

.product-card .btn-save.active i {
  color: #e74c3c;
}

/* Performance hint */
.product-card {
  content-visibility: auto;
  contain-intrinsic-size: 350px;
}

/* Responsive Product Card Adjustments */
@media (max-width: 576px) {
  .product-card img {
    height: 180px;
  }
  
  .product-card .card-body {
    padding: 1rem;
  }
  
  .product-card .card-title {
    font-size: 1rem;
  }
  
  .product-card .price {
    font-size: 1rem;
  }
  
  .product-card .btn-cta {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }
}

@media (min-width: 577px) and (max-width: 768px) {
  .product-card img {
    height: 200px;
  }
}

@media (min-width: 769px) and (max-width: 992px) {
  .product-card img {
    height: 220px;
  }
}

@media (min-width: 993px) {
  .product-card img {
    height: 240px;
  }
}
  contain-intrinsic-size: 300px 380px;
}

.product-card .badge.bg-accent {
  background: linear-gradient(135deg, #FF6B6B 0%, #FF8E53 100%);
  color: white;
}

.product-card .product-rating {
  font-size: 0.8rem;
}

.product-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(37,99,235,0.08) 0%, rgba(79,70,229,0.08) 100%);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover::after {
  opacity: 1;
}

.product-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.1) 50%, transparent 70%);
  transform: rotate(45deg);
  transition: all 0.6s ease;
  opacity: 0;
}

.product-card:hover::before {
  animation: shimmer 1.5s ease-in-out;
}

@keyframes shimmer {
  0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); opacity: 0; }
  50% { opacity: 1; }
  100% { transform: translateX(100%) translateY(100%) rotate(45deg); opacity: 0; }
}

/* Responsive Product Grid */
.product-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* Desktop: 4 cards per row */
@media (min-width: 1200px) {
  .product-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .product-card img {
    height: 220px;
  }
}

/* Large tablets: 3 cards per row */
@media (min-width: 992px) and (max-width: 1199px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .product-card img {
    height: 200px;
  }
}

/* Tablets: 2 cards per row */
@media (min-width: 768px) and (max-width: 991px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .product-card img {
    height: 180px;
  }
}

/* Mobile: 1 card per row */
@media (max-width: 767px) {
  .product-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .product-card img {
    height: 200px;
  }
  .product-card {
    margin-bottom: 1rem;
  }
}

/* Bootstrap Grid Override for Product Cards */
.row.product-row {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* Desktop: 4 cards per row */
@media (min-width: 1200px) {
  .row.product-row {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Large tablets: 3 cards per row */
@media (min-width: 992px) and (max-width: 1199px) {
  .row.product-row {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Tablets: 2 cards per row */
@media (min-width: 768px) and (max-width: 991px) {
  .row.product-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile: 1 card per row */
@media (max-width: 767px) {
  .row.product-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

/* Modern Form Controls */
.sort-select, .form-control, .form-select { 
  border-radius: var(--radius-xl);
  border: 2px solid rgba(37,99,235,0.1);
  transition: all 0.3s ease;
  background: rgba(255,255,255,0.9);
}
.form-control:focus, .form-select:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 0.25rem rgba(37,99,235,0.1);
  background: white;
}

/* Enhanced Section Titles */
.section-title { 
  font-weight: 700; 
  letter-spacing: .3px;
  position: relative;
  display: inline-block;
  margin-bottom: 2rem;
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-2) 100%);
  border-radius: 2px;
}

.badge-accent { 
  background: linear-gradient(135deg, var(--color-accent) 0%, #FCD34D 100%); 
  color: #111827;
  border-radius: 20px;
  padding: 6px 12px;
  font-weight: 600;
}

/* Utilities */
.rounded-16 { border-radius: 16px; }
.shadow-soft { box-shadow: var(--shadow-soft); }
.shadow-elevated { box-shadow: var(--shadow-elevated); }

/* Enhanced Footer 2025 */
.footer {
  background: var(--glass-bg);
  backdrop-filter: blur(15px);
  border-top: 1px solid var(--glass-border);
  box-shadow: 0 -10px 30px rgba(31,41,55,0.05);
}

.footer-heading {
  font-weight: 600;
  color: var(--color-secondary);
  position: relative;
  display: inline-block;
}

.footer-heading::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer a { 
  color: var(--color-secondary); 
  text-decoration: none; 
  transition: all 0.3s;
  position: relative;
  display: inline-block;
}

.footer a:hover { 
  color: var(--color-primary);
  transform: translateX(3px);
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  transition: all 0.3s;
  color: var(--color-secondary);
}

.social-icon:hover {
  background: var(--gradient-primary);
  color: white;
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
}

.payment-methods img {
  filter: grayscale(0.5);
  opacity: 0.8;
  transition: all 0.3s;
}

.payment-methods img:hover {
  filter: grayscale(0);
  opacity: 1;
}

/* Breadcrumb styling */
.breadcrumb {
  background: transparent;
  margin-bottom: 0.75rem;
  padding: 12px 0;
}
.breadcrumb-item a { 
  color: #0F172A; 
  text-decoration: none; 
  transition: all 0.3s ease;
  font-weight: 500;
}
.breadcrumb-item a:hover { 
  color: var(--color-primary);
  text-decoration: underline; 
}
.breadcrumb-item.active { 
  color: #1E293B; 
  font-weight: 600;
}

/* Global sections helpers */
.global-sections .section-title { font-weight: 600; margin-bottom: 0.75rem; }
.trust-badges .badge-card { 
  border: 1px solid rgba(2, 6, 23, 0.05); 
  border-radius: 16px; 
  padding: 1.5rem; 
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%); 
  box-shadow: 0 8px 25px rgba(2, 6, 23, 0.08);
  transition: all 0.3s ease;
}
.trust-badges .badge-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 35px rgba(2, 6, 23, 0.12);
}
.trust-badges .badge-card i { 
  font-size: 1.6rem; 
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}
.brands-row img { 
  height: 40px; 
  filter: grayscale(100%); 
  opacity: 0.7;
  transition: all 0.3s ease;
}
.brands-row img:hover { 
  filter: none; 
  opacity: 1;
  transform: scale(1.1);
}
.app-cta { 
  background: linear-gradient(135deg, #F8FAFC 0%, #ffffff 100%); 
  border-radius: 20px;
  border: 1px solid rgba(37,99,235,0.1);
  box-shadow: var(--shadow-soft);
}
.testimonials .card { 
  border-radius: 20px;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  transition: all 0.3s ease;
}
.testimonials .card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-elevated);
}

/* Feature cards and lookbook */
.feature-card {
  border: 1px solid rgba(2,6,23,0.06);
  border-radius: 16px;
  padding: 1rem 1.25rem;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: 0 8px 24px rgba(2,6,23,0.08);
  transition: all 0.3s ease;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(2,6,23,0.12);
}
.category-description .lead { color: #334155; }
.lookbook-section {
  background: linear-gradient(135deg, rgba(37,99,235,0.06) 0%, rgba(79,70,229,0.06) 100%);
  border: 1px solid rgba(37,99,235,0.15);
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
}
.faq .accordion-button { 
  font-weight: 500;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: none;
  border-radius: 12px !important;
}
.faq .accordion-item {
  border: 1px solid rgba(37,99,235,0.1);
  border-radius: 12px;
  margin-bottom: 8px;
}
.social-grid img { 
  border-radius: 16px;
  transition: all 0.3s ease;
}
.social-grid img:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-soft);
}

/* Product grid refinement */
.product-grid .card.product-card { 
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid rgba(37,99,235,0.05);
}
.product-grid .card.product-card:hover { 
  transform: translateY(-6px) scale(1.02); 
  box-shadow: 0 16px 40px rgba(2,6,23,0.12);
  border-color: rgba(37,99,235,0.2);
}

/* Micro-interactions */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.8; }
}
.loading { animation: pulse 1.5s infinite; }

/* Touch targets for mobile */
@media (max-width: 768px) {
  /* Enhanced Accessibility & Touch Targets */
.btn, .nav-link, .card { 
  min-height: 44px; 
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Focus states for accessibility */
.btn:focus, .nav-link:focus, .form-control:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
  box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .card, .product-card {
    border: 2px solid var(--color-primary);
  }
  .btn-primary {
    border: 2px solid #000;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .aos-animate {
    transform: none !important;
    opacity: 1 !important;
  }
}

/* Loading states */
.loading {
  position: relative;
  overflow: hidden;
}

.loading::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  animation: loading-shimmer 1.5s infinite;
}

@keyframes loading-shimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* Image optimization */
img {
  max-width: 100%;
  height: auto;
  loading: lazy;
}

.product-card img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

/* Performance optimizations */
.product-card, .card {
  will-change: transform;
  transform: translateZ(0);
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  :root {
    --color-primary: #60a5fa;
    --color-secondary: #e2e8f0;
    --glass-bg: rgba(15, 23, 42, 0.8);
    --gradient-glass: linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(30, 41, 59, 0.8) 100%);
  }
  
  body {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #e2e8f0;
  }
  
  .card, .product-card {
    background: var(--gradient-glass);
    border-color: rgba(148, 163, 184, 0.2);
  }
}
  .navbar-toggler { min-width: 44px; min-height: 44px; }
}

/* Accessibility: improved text legibility across viewports */
:root {
  --text-size-base: clamp(15px, 1vw + 14px, 18px);
  --text-line: 1.7;
}

body {
  font-size: var(--text-size-base);
  line-height: var(--text-line);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Ensure high-contrast default text across components */
p, .card-text, .content, .footer, .navbar, .section-title, .lead {
  color: var(--color-text);
}

/* Strengthen muted text contrast for readability */
.text-muted { color: #334155 !important; }
@media (prefers-color-scheme: dark) {
  .text-muted { color: #cbd5e1 !important; }
}

/* Ensure readable text on glass surfaces */
.card, .product-card, .glass { color: var(--color-text); }

/* When text sits over gradients/media, add subtle shadow */
.text-overlay, .hero .lead, .hero .text-panel, .hero h1 {
  text-shadow: 0 1px 2px rgba(0,0,0,0.45);
}

/* Responsive heading and lead sizing */
.section-title { font-size: clamp(1.25rem, 2vw, 1.75rem); }
.lead { font-size: clamp(1rem, 1.2vw, 1.125rem); line-height: 1.7; }
/* Navbar icon buttons */
.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(37,99,235,0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-secondary);
  box-shadow: var(--shadow-soft);
  transition: all 0.3s ease;
}
.icon-btn:hover {
  background: var(--gradient-primary);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: var(--shadow-elevated), var(--shadow-glow);
}
.icon-btn .badge { font-size: 0.6rem; }

/* Megamenu styles */
.dropdown-menu.megamenu {
  min-width: 680px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-soft);
  background: var(--gradient-glass);
}
@media (max-width: 992px) {
  .dropdown-menu.megamenu { min-width: auto; width: 100%; }
}
.megamenu .col-title {
  font-weight: 600;
  color: var(--color-secondary);
  margin-bottom: 0.5rem;
}
.megamenu .dropdown-item {
  border-radius: 8px;
  padding: 6px 10px;
}
.megamenu .dropdown-item:hover {
  background: rgba(37,99,235,0.08);
  color: var(--color-primary);
  transform: translateX(3px);
}

/* Hero readability improvements */
.hero .text-panel {
  background: linear-gradient(135deg, rgba(2,6,23,0.25) 0%, rgba(2,6,23,0.15) 100%);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--radius-xl);
  padding: 24px;
}
.hero h1, .hero .lead {
  text-shadow: 0 2px 16px rgba(0,0,0,0.25);
}
.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Homepage Hero enhancements */
.hero .text-panel { max-width: 62ch; }
.hero-title { font-size: clamp(2rem, 4.2vw, 3.25rem); line-height: 1.15; letter-spacing: -0.02em; }
.hero-kicker { text-transform: uppercase; letter-spacing: .08em; font-weight: 600; border-radius: 999px; padding: 6px 10px; }

.chip-group { display: flex; flex-wrap: wrap; gap: 8px; }
.btn-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 12px; border-radius: 999px;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.35);
  color: #fff; text-decoration: none;
  transition: all 0.25s ease;
}
.btn-chip i { font-size: 1rem; opacity: 0.9; }
.btn-chip:hover { background: rgba(255,255,255,0.28); transform: translateY(-2px); box-shadow: var(--shadow-soft); }
.btn-chip:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

.hero-actions { gap: 12px; }
.scroll-hint { opacity: 0.85; transition: all 0.25s ease; }
.scroll-hint:hover { opacity: 1; transform: translateY(2px); }
.scroll-hint:focus-visible { outline: 2px solid #fff; outline-offset: 2px; border-radius: 8px; }

.hero-media img { border-radius: calc(var(--radius-xl) + 4px); }
.animate-float { animation: heroFloat 8s ease-in-out infinite; }

@media (max-width: 576px) {
  .btn-chip { padding: 6px 10px; }
  .hero-title { font-size: clamp(1.75rem, 7vw, 2.25rem); }
}

.card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-elevated), 0 0 30px rgba(37, 99, 235, 0.2);
  border: 1px solid rgba(37, 99, 235, 0.3);
}
.card:hover::before {
  left: 100%;
}

.glass {
  background: var(--gradient-glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  box-shadow: 0 12px 40px rgba(31,41,55,.1);
  border-radius: var(--radius-xl);
}

.category-banner {
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(37,99,235,.1) 0%, rgba(79,70,229,.1) 100%);
  overflow: hidden;
  position: relative;
}
.category-banner::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.1) 50%, transparent 70%);
  animation: shimmer 3s infinite;
}
@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.progress-top {
  position: fixed; top: 0; left: 0; height: 4px; width: 0;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-2) 100%);
  z-index: 1050;
  transition: width 0.3s ease;
}

.back-to-top {
  position: fixed; right: 24px; bottom: 24px;
  display: none;
  z-index: 1050;
  border-radius: 999px;
  box-shadow: var(--shadow-soft);
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-2) 100%);
  border: none;
  color: white;
  width: 50px;
  height: 50px;
  transition: all 0.3s ease;
}
.back-to-top:hover {
  transform: translateY(-3px) scale(1.1);
  box-shadow: var(--shadow-elevated);
}

.search-input::placeholder { color: #64748B; opacity: .8; }

.footer { 
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%); 
  border-top: 1px solid #e5e7eb; 
  position: relative;
}
.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
}

/* Enhanced Product Cards 2025 */
.product-card {
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(37,99,235,0.08);
  background: var(--gradient-glass);
  backdrop-filter: blur(15px);
  border-radius: var(--radius-xl);
  box-shadow: 0 8px 32px rgba(31,41,55,.06);
}

.product-card img { 
  border-radius: calc(var(--radius-xl) - 4px); 
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  width: 100%;
  height: 200px;
  object-fit: cover;
  filter: brightness(1) saturate(1);
}

.product-card:hover img {
  transform: scale(1.1) rotate(1deg);
  filter: brightness(1.1) saturate(1.2);
}

.product-card .price { 
  color: var(--color-secondary); 
  font-weight: 700;
  font-size: 1.15rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.product-card:hover { 
  transform: translateY(-12px) scale(1.03); 
  box-shadow: 0 25px 60px rgba(31,41,55,.2), var(--shadow-glow);
  border-color: rgba(37,99,235,0.3);
}

.product-card .carousel {
  border-radius: calc(var(--radius-xl) - 4px);
  overflow: hidden;
}

.product-card .carousel-item img {
  height: 200px;
  object-fit: cover;
  width: 100%;
}

.product-card .carousel-control-prev,
.product-card .carousel-control-next {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.product-card:hover .carousel-control-prev,
.product-card:hover .carousel-control-next {
  opacity: 0.8;
}

.product-card .carousel-control-prev-icon,
.product-card .carousel-control-next-icon {
  background-color: rgba(0, 0, 0, 0.3);
  border-radius: 50%;
  padding: 10px;
  background-size: 50%;
}

.product-card .badge {
  font-weight: 500;
  padding: 0.35em 0.65em;
}

.product-card .badge.bg-accent {
  background: linear-gradient(135deg, #FF6B6B 0%, #FF8E53 100%);
  color: white;
}

.product-card .product-rating {
  font-size: 0.8rem;
}

.product-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(37,99,235,0.08) 0%, rgba(79,70,229,0.08) 100%);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover::after {
  opacity: 1;
}

.product-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.1) 50%, transparent 70%);
  transform: rotate(45deg);
  transition: all 0.6s ease;
  opacity: 0;
}

.product-card:hover::before {
  animation: shimmer 1.5s ease-in-out;
}

@keyframes shimmer {
  0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); opacity: 0; }
  50% { opacity: 1; }
  100% { transform: translateX(100%) translateY(100%) rotate(45deg); opacity: 0; }
}

/* Responsive Product Grid */
.product-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* Desktop: 4 cards per row */
@media (min-width: 1200px) {
  .product-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .product-card img {
    height: 220px;
  }
}

/* Large tablets: 3 cards per row */
@media (min-width: 992px) and (max-width: 1199px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .product-card img {
    height: 200px;
  }
}

/* Tablets: 2 cards per row */
@media (min-width: 768px) and (max-width: 991px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .product-card img {
    height: 180px;
  }
}

/* Mobile: 1 card per row */
@media (max-width: 767px) {
  .product-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .product-card img {
    height: 200px;
  }
  .product-card {
    margin-bottom: 1rem;
  }
}

/* Bootstrap Grid Override for Product Cards */
.row.product-row {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* Desktop: 4 cards per row */
@media (min-width: 1200px) {
  .row.product-row {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Large tablets: 3 cards per row */
@media (min-width: 992px) and (max-width: 1199px) {
  .row.product-row {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Tablets: 2 cards per row */
@media (min-width: 768px) and (max-width: 991px) {
  .row.product-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile: 1 card per row */
@media (max-width: 767px) {
  .row.product-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

/* Modern Form Controls */
.sort-select, .form-control, .form-select { 
  border-radius: var(--radius-xl);
  border: 2px solid rgba(37,99,235,0.1);
  transition: all 0.3s ease;
  background: rgba(255,255,255,0.9);
}
.form-control:focus, .form-select:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 0.25rem rgba(37,99,235,0.1);
  background: white;
}

/* Enhanced Section Titles */
.section-title { 
  font-weight: 700; 
  letter-spacing: .3px;
  position: relative;
  display: inline-block;
  margin-bottom: 2rem;
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-2) 100%);
  border-radius: 2px;
}

.badge-accent { 
  background: linear-gradient(135deg, var(--color-accent) 0%, #FCD34D 100%); 
  color: #111827;
  border-radius: 20px;
  padding: 6px 12px;
  font-weight: 600;
}

/* Utilities */
.rounded-16 { border-radius: 16px; }
.shadow-soft { box-shadow: var(--shadow-soft); }
.shadow-elevated { box-shadow: var(--shadow-elevated); }

/* Enhanced Footer 2025 */
.footer {
  background: var(--glass-bg);
  backdrop-filter: blur(15px);
  border-top: 1px solid var(--glass-border);
  box-shadow: 0 -10px 30px rgba(31,41,55,0.05);
}

.footer-heading {
  font-weight: 600;
  color: var(--color-secondary);
  position: relative;
  display: inline-block;
}

.footer-heading::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer a { 
  color: var(--color-secondary); 
  text-decoration: none; 
  transition: all 0.3s;
  position: relative;
  display: inline-block;
}

.footer a:hover { 
  color: var(--color-primary);
  transform: translateX(3px);
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  transition: all 0.3s;
  color: var(--color-secondary);
}

.social-icon:hover {
  background: var(--gradient-primary);
  color: white;
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
}

.payment-methods img {
  filter: grayscale(0.5);
  opacity: 0.8;
  transition: all 0.3s;
}

.payment-methods img:hover {
  filter: grayscale(0);
  opacity: 1;
}

/* Breadcrumb styling */
.breadcrumb {
  background: transparent;
  margin-bottom: 0.75rem;
  padding: 12px 0;
}
.breadcrumb-item a { 
  color: #0F172A; 
  text-decoration: none; 
  transition: all 0.3s ease;
  font-weight: 500;
}
.breadcrumb-item a:hover { 
  color: var(--color-primary);
  text-decoration: underline; 
}
.breadcrumb-item.active { 
  color: #1E293B; 
  font-weight: 600;
}

/* Global sections helpers */
.global-sections .section-title { font-weight: 600; margin-bottom: 0.75rem; }
.trust-badges .badge-card { 
  border: 1px solid rgba(2, 6, 23, 0.05); 
  border-radius: 16px; 
  padding: 1.5rem; 
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%); 
  box-shadow: 0 8px 25px rgba(2, 6, 23, 0.08);
  transition: all 0.3s ease;
}
.trust-badges .badge-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 35px rgba(2, 6, 23, 0.12);
}
.trust-badges .badge-card i { 
  font-size: 1.6rem; 
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}
.brands-row img { 
  height: 40px; 
  filter: grayscale(100%); 
  opacity: 0.7;
  transition: all 0.3s ease;
}
.brands-row img:hover { 
  filter: none; 
  opacity: 1;
  transform: scale(1.1);
}
.app-cta { 
  background: linear-gradient(135deg, #F8FAFC 0%, #ffffff 100%); 
  border-radius: 20px;
  border: 1px solid rgba(37,99,235,0.1);
  box-shadow: var(--shadow-soft);
}
.testimonials .card { 
  border-radius: 20px;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  transition: all 0.3s ease;
}
.testimonials .card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-elevated);
}

/* Feature cards and lookbook */
.feature-card {
  border: 1px solid rgba(2,6,23,0.06);
  border-radius: 16px;
  padding: 1rem 1.25rem;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: 0 8px 24px rgba(2,6,23,0.08);
  transition: all 0.3s ease;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(2,6,23,0.12);
}
.category-description .lead { color: #334155; }
.lookbook-section {
  background: linear-gradient(135deg, rgba(37,99,235,0.06) 0%, rgba(79,70,229,0.06) 100%);
  border: 1px solid rgba(37,99,235,0.15);
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
}
.faq .accordion-button { 
  font-weight: 500;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: none;
  border-radius: 12px !important;
}
.faq .accordion-item {
  border: 1px solid rgba(37,99,235,0.1);
  border-radius: 12px;
  margin-bottom: 8px;
}
.social-grid img { 
  border-radius: 16px;
  transition: all 0.3s ease;
}
.social-grid img:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-soft);
}

/* Product grid refinement */
.product-grid .card.product-card { 
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid rgba(37,99,235,0.05);
}
.product-grid .card.product-card:hover { 
  transform: translateY(-6px) scale(1.02); 
  box-shadow: 0 16px 40px rgba(2,6,23,0.12);
  border-color: rgba(37,99,235,0.2);
}

/* Micro-interactions */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.8; }
}
.loading { animation: pulse 1.5s infinite; }

/* Touch targets for mobile */
@media (max-width: 768px) {
  /* Enhanced Accessibility & Touch Targets */
.btn, .nav-link, .card { 
  min-height: 44px; 
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Focus states for accessibility */
.btn:focus, .nav-link:focus, .form-control:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
  box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .card, .product-card {
    border: 2px solid var(--color-primary);
  }
  .btn-primary {
    border: 2px solid #000;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .aos-animate {
    transform: none !important;
    opacity: 1 !important;
  }
}

/* Loading states */
.loading {
  position: relative;
  overflow: hidden;
}

.loading::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  animation: loading-shimmer 1.5s infinite;
}

@keyframes loading-shimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* Image optimization */
img {
  max-width: 100%;
  height: auto;
  loading: lazy;
}

.product-card img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

/* Performance optimizations */
.product-card, .card {
  will-change: transform;
  transform: translateZ(0);
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  :root {
    --color-primary: #60a5fa;
    --color-secondary: #e2e8f0;
    --glass-bg: rgba(15, 23, 42, 0.8);
    --gradient-glass: linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(30, 41, 59, 0.8) 100%);
  }
  
  body {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #e2e8f0;
  }
  
  .card, .product-card {
    background: var(--gradient-glass);
    border-color: rgba(148, 163, 184, 0.2);
  }
}
  .navbar-toggler { min-width: 44px; min-height: 44px; }
}