html {
  scrollbar-gutter: stable;
}

:root {
  --primary: #be185d; /* Rose 700 - Slightly deeper for better contrast */
  --secondary: #0f172a; /* Slate 900 - Deep and sophisticated */
  --accent: #fbbf24; /* Amber 400 - For subtle gold highlights */
  --background: #ffffff;
  --text: #1e293b;
  --text-muted: #64748b;
}

/* Premium Navigation Link Underline Effect */
.nav-link-premium {
  position: relative;
  transition: color 0.3s ease;
}

.nav-link-premium::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 4px;
  left: 50%;
  background: var(--primary);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateX(-50%);
  border-radius: 2px;
  opacity: 0;
}

.nav-link-premium:hover::after {
  width: 60%;
  opacity: 1;
}

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

/* Sticky Header Glass Effect */
.sticky-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

/* Hide Scrollbar Utility */
.scrollbar-hide {
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}

.scrollbar-hide::-webkit-scrollbar {
  display: none;  /* Chrome, Safari and Opera */
}

/* Category Carousel Snap Alignment */
#category-carousel {
  display: grid;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  grid-auto-flow: column;
  scroll-snap-type: x mandatory;
}

@media (min-width: 768px) {
  #category-carousel {
    display: flex;
    height: auto !important;
  }
}

#category-carousel > a {
  scroll-snap-align: start;
  scroll-snap-stop: always;
  opacity: 0;
  transform: translateY(20px) scale(0.9);
  transition: opacity 0.6s ease-out, transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
  will-change: transform, opacity;
}

#category-carousel > a.reveal-active {
  opacity: 1;
  transform: translateY(0) scale(1);
}

#category-carousel > a:hover {
  transform: translateY(-8px) scale(1.05) !important;
  z-index: 20;
}

/* Staggered entrance delays for category items only */
#category-carousel > a:nth-child(1) { transition-delay: 0.1s; }
#category-carousel > a:nth-child(2) { transition-delay: 0.2s; }
#category-carousel > a:nth-child(3) { transition-delay: 0.3s; }
#category-carousel > a:nth-child(4) { transition-delay: 0.4s; }
#category-carousel > a:nth-child(5) { transition-delay: 0.5s; }
#category-carousel > a:nth-child(6) { transition-delay: 0.6s; }
#category-carousel > a:nth-child(7) { transition-delay: 0.7s; }
#category-carousel > a:nth-child(8) { transition-delay: 0.8s; }
#category-carousel > a:nth-child(9) { transition-delay: 0.15s; }
#category-carousel > a:nth-child(10) { transition-delay: 0.25s; }
#category-carousel > a:nth-child(11) { transition-delay: 0.35s; }
#category-carousel > a:nth-child(12) { transition-delay: 0.45s; }

/* Subtle pulse animation for the active category label */
#category-carousel > a:hover span {
  animation: subtle-pulse 1s infinite alternate;
}

@keyframes subtle-pulse {
  from { transform: scale(1); }
  to { transform: scale(1.05); }
}

/* Base flex alignment to prevent clipping on small screens */
#category-carousel.carousel-snap-active {
  justify-content: flex-start !important;
}


/* Premium Animation Keyframes */
@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fade-in 1s ease-out forwards;
}

.animate-fade-in-up {
  animation: fade-in-up 1s ease-out forwards;
}

/* Carousel Drag Interaction */
#featured-carousel {
    cursor: grab;
    user-select: none;
}

#featured-carousel.active {
    cursor: grabbing;
    scroll-snap-type: none; /* Disable snapping while dragging for fluid feel */
}

/* Sophisticated Typography Helpers */
.font-display {
  font-family: inherit;
  font-weight: 900;
  letter-spacing: -0.02em;
}

/* Custom Scrollbar for Premium Feel */
.custom-scrollbar::-webkit-scrollbar {
  width: 5px;
}

.custom-scrollbar::-webkit-scrollbar-track {
  background: #f8fafc;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 10px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* News Ticker Styles - Modern & Professional */
.ticker-wrapper {
  width: 100%;
  overflow: hidden;
  position: relative;
  background: rgba(15, 23, 42, 0.2);
  backdrop-filter: blur(4px);
}

.ticker-content {
  display: flex;
  align-items: center;
  width: max-content;
  animation: ticker-scroll 25s linear infinite;
  will-change: transform;
}

/* Pause animation on hover */
.ticker-wrapper:hover .ticker-content {
  animation-play-state: paused;
}

.ticker-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0 3rem;
  white-space: nowrap;
  color: white;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  position: relative;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.ticker-item:hover {
  transform: translateY(-1px);
}

.ticker-item i {
  font-size: 1.1rem;
  color: var(--primary);
  filter: drop-shadow(0 0 10px rgba(190, 24, 93, 0.4));
  transition: all 0.4s ease;
}

.ticker-item:hover i {
  transform: rotate(10deg) scale(1.2);
  filter: drop-shadow(0 0 15px rgba(190, 24, 93, 0.7));
}

.ticker-item span {
  background: linear-gradient(to right, #ffffff, #e2e8f0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-transform: uppercase;
}

/* Separator Dots */
.ticker-item::after {
  content: '•';
  position: absolute;
  right: 0;
  color: rgba(190, 24, 93, 0.4);
  font-size: 1.5rem;
  opacity: 0.5;
}

@keyframes ticker-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Brands Carousel Enhancement (Interactive) */
.brands-carousel-wrapper {
  width: 100%;
  position: relative;
  padding: 1rem 0;
}

/* Brands Carousel Final Refinements */
#brands-section {
  background: linear-gradient(to bottom, #ffffff, #fffafa, #ffffff);
}

#brands-carousel {
  display: flex;
  align-items: center;
  overflow-x: auto;
  scroll-behavior: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

#brands-carousel::-webkit-scrollbar {
  display: none;
}

.brand-item {
  flex: 0 0 auto;
  padding: 1rem 1.5rem; /* Reduced Spacing */
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.brand-item img {
  height: 120px; /* Even Larger Size */
  width: auto;
  object-fit: contain;
  filter: none; /* Show original color */
  opacity: 0.9;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.brand-item:hover {
  transform: scale(1.15) translateY(-10px);
}

.brand-item:hover img {
  opacity: 1;
  filter: drop-shadow(0 15px 30px rgba(0,0,0,0.12));
}

/* Nav Buttons Hover Glow */
#brands-prev:hover, #brands-next:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  box-shadow: 0 4px 15px rgba(190, 24, 93, 0.3);
  transform: translateY(-2px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  /* News Ticker Mobile */
  .ticker-item {
    font-size: 0.75rem;
    padding: 0 2rem;
    gap: 0.5rem;
  }
  
  .ticker-item i {
    font-size: 1rem;
  }
  
  .ticker-content {
    animation: ticker-scroll 20s linear infinite;
  }

  /* Brands Mobile */
  .brand-item {
    padding: 0 1rem;
  }
  
  .brand-item img {
    height: 90px; /* Significantly Larger for Mobile */
  }
}

/* Instagram Section */
.group:hover img {
    filter: brightness(0.8);
}

.backdrop-blur-\[2px\] {
    backdrop-filter: blur(2px);
}

/* Ensure smooth transitions for all interactive elements */
.transition-transform {
    transition-property: transform;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Blog Slider */
#blog-carousel {
    display: flex !important;
    flex-wrap: nowrap !important;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
    gap: 12px;
    padding: 24px 0;
}

@media (min-width: 768px) {
    #blog-carousel {
        gap: 24px;
    }
}

#blog-carousel::-webkit-scrollbar {
    display: none;
}

.blog-card {
    scroll-snap-align: start;
    flex: 0 0 calc(50% - 6px) !important;
    width: calc(50% - 6px) !important;
    min-width: calc(50% - 6px) !important;
}

@media (min-width: 768px) {
    .blog-card {
        flex: 0 0 calc(25% - 18px) !important;
        width: calc(25% - 18px) !important;
        min-width: calc(25% - 18px) !important;
    }
}

.blog-card-img-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1/1;
    overflow: hidden;
    background: #f8f8f8; /* Fallback for no image */
}

@media (min-width: 768px) {
    .blog-card-img-wrapper {
        aspect-ratio: 16/10;
    }
}

.blog-card-img-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* E-commerce Interactive Animations */
@keyframes float {
  0% { transform: translateY(0px) rotate(-12deg); }
  50% { transform: translateY(-15px) rotate(-10deg); }
  100% { transform: translateY(0px) rotate(-12deg); }
}

.animate-float {
  animation: float 4s ease-in-out infinite;
}

@keyframes pulse-slow {
  0%, 100% { transform: scale(1); opacity: 0.2; }
  50% { transform: scale(1.1); opacity: 0.4; }
}

.animate-pulse-slow {
  animation: pulse-slow 6s ease-in-out infinite;
}
