/* Custom styles for matching the template layout (Xnixa Cyan/Purple Light Theme) */

:root {
  --primary-cyan: #00d2ff;
  --primary-purple: #bd00ff;
  --deep-bg: #090a0f;
  --card-bg: #ffffff;
  --border-color: #f3f4f6;
  --text-light: #1f2937;
  --text-muted: #6b7280;
  --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text-light);
  background-color: #ffffff; /* White background as requested */
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
  background: var(--primary-cyan);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary-purple);
}

/* Utilities */
.bg-brand-cyan {
  background-color: var(--primary-cyan);
}
.bg-brand-purple {
  background-color: var(--primary-purple);
}
.text-brand-cyan {
  color: var(--primary-cyan);
}
.text-brand-purple {
  color: var(--primary-purple);
}
.border-brand-cyan {
  border-color: var(--primary-cyan);
}
.border-brand-purple {
  border-color: var(--primary-purple);
}
.focus-brand-cyan:focus {
  outline: none;
  border-color: var(--primary-cyan);
  box-shadow: 0 0 0 3px rgba(0, 210, 255, 0.15);
}

/* Custom Slider Styles */
.slider-container {
  position: relative;
  overflow: hidden;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease-in-out, transform 0.8s ease-in-out;
  transform: scale(0.98);
  pointer-events: none;
}

.slide.active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
  position: relative;
}

/* Product Card Styling in Light Theme */
.product-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 20px -5px rgba(0, 0, 0, 0.05);
  border-color: var(--primary-cyan);
}

.product-card .add-to-cart-btn,
.product-card .buy-now-btn {
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
}

.product-card:hover .add-to-cart-btn,
.product-card:hover .buy-now-btn {
  opacity: 1;
  transform: translateY(0);
}

/* Color select dots */
.color-dot {
  cursor: pointer;
  transition: transform 0.2s ease;
}
.color-dot:hover {
  transform: scale(1.2);
}
.color-dot.active {
  outline: 2px solid var(--primary-cyan);
  outline-offset: 2px;
}

/* Image zoom effect on banners */
.banner-zoom {
  overflow: hidden;
}
.banner-zoom img {
  transition: transform 0.5s ease;
}
.banner-zoom:hover img {
  transform: scale(1.05);
}

/* Sticky Navbar Option */
.sticky-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Custom Grid Sections */
.promo-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .promo-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Quick View & Floating Elements */
.badge-hot {
  background: linear-gradient(135deg, var(--primary-cyan), var(--primary-purple));
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.5rem;
  border-radius: 9999px;
  position: absolute;
  top: 1rem;
  right: 1rem;
}

/* Logo CSS: Apply invert filter to black logo background for white headers */
.xnixa-logo {
  filter: invert(1) hue-rotate(180deg);
}

/* Animation Utilities */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

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

/* Styling for dark cart drawer dropdown options */
select.select-dark option {
  background-color: #121422;
  color: white;
}

/* Multi-Image Gallery Styles */
.gallery-img-fade {
  transition: opacity 0.2s ease-in-out, transform 0.2s ease-in-out;
}

.gallery-img-fade-hidden {
  opacity: 0;
  transform: scale(0.95);
}

.qv-thumb {
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.qv-thumb:hover {
  transform: scale(1.05);
}

.qv-thumb.active {
  border-color: var(--primary-cyan);
}

/* Lightbox zoom cursor styles */
.cursor-zoom-in {
  cursor: zoom-in;
}

.cursor-zoom-out {
  cursor: zoom-out;
}

/* Mobile Nav Drawer & Responsive Helpers */
#mobile-nav-drawer {
  will-change: transform;
}

.tap-highlight-transparent {
  -webkit-tap-highlight-color: transparent;
}

/* Smooth transition for drawer backdrop */
#mobile-nav-backdrop.active {
  opacity: 1;
}

#mobile-nav-drawer.active {
  transform: translateX(0);
}

/* Category menu smooth positioning */
#category-menu {
  animation: fadeIn 0.2s ease-out;
}

/* Responsive touch target enhancements */
@media (max-width: 768px) {
  .product-card .add-to-cart-btn,
  .product-card .buy-now-btn {
    opacity: 1 !important;
    transform: translateY(0) !important;
  }
}

/* Order Success Modal Styling & Animations */
#order-success-modal {
  animation: modalFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.94) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.success-badge-pulse {
  box-shadow: 0 0 0 0 rgba(0, 210, 255, 0.4);
  animation: pulseCyan 2s infinite cubic-bezier(0.66, 0, 0, 1);
}

@keyframes pulseCyan {
  to {
    box-shadow: 0 0 0 16px rgba(0, 210, 255, 0);
  }
}

