/*
 * Enter any custom CSS here.
 * This file will not be overwritten by theme updates.
*/

/*
 * Crimson Obsidian Dynamic Theme Styles */

:root {
  --accent-secondary: {{ (global.properties.accent_2_color if global.properties.accent_2_color else '#FF0000') }};
  --text-muted: {{ (global.properties.text_muted_color if global.properties.text_muted_color else '#A0A0A0') }};
  --border-radius: {{ (global.properties.border_radius if global.properties.border_radius else '24px') }};
  --deep-black: #000000;
}

/* Base Styles */
body {
  background-color: var(--deep-black) !important;
  letter-spacing: -0.02em;
  -webkit-text-size-adjust: 100%;
}

h1, h2, h3, .uppercase-bold {
  letter-spacing: -0.05em !important;
  text-transform: uppercase;
  font-weight: 900 !important;
  font-style: italic;
}

/* ===== MOBILE RESPONSIVE IMPROVEMENTS ===== */

/* Ensure no horizontal overflow on mobile */
html, body {
  overflow-x: hidden;
  max-width: 100vw;
}

/* Better touch targets on mobile */
@media (max-width: 768px) {
  /* Reduce main padding on mobile */
  #app > div {
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
  }

  /* Make gaps between sections smaller on mobile */
  .flex.flex-col.gap-12 {
    gap: 2.5rem !important;
  }

  /* Full-width buttons on mobile */
  .btn-crimson {
    padding: 0.75rem 1.5rem !important;
    font-size: 0.875rem !important;
  }

  /* Better product card grid on mobile */
  .product-card {
    border-radius: 10px;
  }

  /* Splide pagination dots */
  .best-sellers-splide .splide__pagination {
    margin-top: 1rem;
  }

  /* Navbar mobile improvements */
  nav .glass-card {
    border-radius: 10px !important;
  }
}

/* ===== END MOBILE ===== */

/* Grid Overlay Enhanced */
.grid-overlay {
  position: fixed;
  inset: 0;
  background-image: linear-gradient(rgba(139, 0, 0, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139, 0, 0, 0.05) 1px, transparent 1px);
  background-size: 50px 50px;
  z-index: -1;
  pointer-events: none;
  opacity: 0.4;
}

/* Glassmorphism Evolution */
.glass-card {
  background: rgba(10, 10, 10, 0.8) !important;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card:hover {
  border-color: rgba(var(--cl-accent), 0.4);
  transform: translateY(-8px) scale(1.01);
  background: rgba(15, 15, 15, 0.9) !important;
  box-shadow: 0 20px 40px -15px rgba(var(--cl-accent), 0.2);
}

/* Glow Evolution - reduced to not bleed */
.glow-red {
  box-shadow: 0 0 16px -4px rgba(var(--cl-accent), 0.3);
}

.btn-crimson {
  background: linear-gradient(135deg, rgb(var(--cl-accent)) 0%, #FF0000 100%);
  color: white !important;
  border-radius: 8px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 1rem 2rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-crimson:hover {
  box-shadow: 0 0 30px rgba(var(--cl-accent), 0.6);
  transform: translateY(-2px) scale(1.02);
  filter: brightness(1.1);
}

/* Hero Title Split Effect */
.hero-title-main {
  font-size: clamp(2rem, 8vw, 6rem);
  line-height: 0.9;
  margin-bottom: 1rem;
}

/* Product Card Improvements */
.product-card {
  border-radius: 12px;
  overflow: hidden;
}

.product-card:hover .product-card-img {
  filter: grayscale(0%) brightness(1.1);
  transform: scale(1.05);
}

/* Status Tracker Bars */
.status-bar {
  height: 6px;
  border-radius: 3px;
  width: 100%;
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
}

.status-bar-inner {
  height: 100%;
  transition: width 1s ease-in-out;
}

.status-fixed { background: #00FF00; box-shadow: 0 0 10px #00FF00; }
.status-coming { background: #FFA500; box-shadow: 0 0 10px #FFA500; }
.status-stopped { background: #FF0000; box-shadow: 0 0 10px #FF0000; }

/* Scrollbar */
::-webkit-scrollbar {
  width: 5px;
}

::-webkit-scrollbar-track {
  background: var(--cl-background);
}

::-webkit-scrollbar-thumb {
  background: rgb(var(--cl-accent));
  border-radius: 4px;
}

/* Back to top button - no glow */
.back-to-top {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 50;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  background: rgba(var(--cl-accent), 0.8);
  border: 1px solid rgba(var(--cl-accent), 0.4);
  color: white;
}

.back-to-top:hover {
  transform: translateY(-3px);
  background: rgb(var(--cl-accent));
}

/*
 * This file will not be overwritten by theme updates.
*/
