/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800;900&family=Space+Grotesk:wght@500;600;700;800&display=swap');

:root {
  --bg-body: #ffffff;
  --bg-subtle: #f8fafc;
  --brand-blue: #1d72fe;
  --brand-blue-hover: #155bd5;
  --brand-cyan: #00b4d8;
  --brand-navy: #0f172a;
  --text-main: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --border-light: #e2e8f0;
}

* {
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-body);
  color: var(--text-main);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, .font-heading {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  letter-spacing: -0.025em;
}

/* Primary brand button matching mockup */
.btn-primary-blue {
  background-color: #1d72fe;
  color: #ffffff;
  font-weight: 600;
  border-radius: 9999px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 14px 0 rgba(29, 114, 254, 0.39);
}

.btn-primary-blue:hover {
  background-color: #155bd5;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(29, 114, 254, 0.45);
}

.btn-outline-blue {
  background-color: #ffffff;
  color: #1d72fe;
  border: 1.5px solid #1d72fe;
  font-weight: 600;
  border-radius: 9999px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-outline-blue:hover {
  background-color: #f0f6ff;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(29, 114, 254, 0.18);
}

/* Mockup Pill Badges */
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 1rem;
  border-radius: 9999px;
  background-color: #eaf2ff;
  color: #1d72fe;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Card Mockup Styles */
.mockup-product-card {
  background: #ffffff;
  border: 1px solid #eef2f6;
  border-radius: 1.5rem;
  box-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.04);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.mockup-product-card:hover {
  transform: translateY(-6px);
  border-color: #bfdbfe;
  box-shadow: 0 20px 40px -10px rgba(29, 114, 254, 0.12);
}

/* Available Card Design showcase item */
.design-showcase-card {
  background: #ffffff;
  border: 1.5px solid #edf2f7;
  border-radius: 1.25rem;
  padding: 1rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  position: relative;
  display: flex;
  flex-direction: column;
}

.design-showcase-card:hover {
  transform: translateY(-5px);
  border-color: #1d72fe;
  box-shadow: 0 15px 35px -5px rgba(29, 114, 254, 0.15);
}

.design-showcase-card .card-preview-wrapper {
  background: #f8fafc;
  border-radius: 0.85rem;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.design-showcase-card:hover .card-preview-img {
  transform: scale(1.05) rotate(-1deg);
}

.card-preview-img {
  max-height: 240px;
  width: auto;
  object-fit: contain;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.12));
}

/* Feature Box in Why Choose OmniTap */
.feature-box {
  background: #ffffff;
  border: 1px solid #f1f5f9;
  border-radius: 1.25rem;
  padding: 1.75rem;
  box-shadow: 0 4px 18px -2px rgba(15, 23, 42, 0.03);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.feature-box:hover {
  transform: translateY(-4px);
  border-color: #bfdbfe;
  box-shadow: 0 12px 30px -5px rgba(29, 114, 254, 0.1);
}

/* CTA Gradient Banner */
.cta-gradient-banner {
  background: linear-gradient(135deg, #1d72fe 0%, #4338ca 100%);
  border-radius: 1.5rem;
  box-shadow: 0 15px 35px -5px rgba(29, 114, 254, 0.35);
}

/* Filter buttons */
.filter-btn {
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  transition: all 0.2s ease;
  border: 1px solid #e2e8f0;
  background-color: #ffffff;
  color: #475569;
}

.filter-btn:hover {
  background-color: #f8fafc;
  color: #1d72fe;
}

.filter-btn.active {
  background-color: #1d72fe;
  color: #ffffff;
  border-color: #1d72fe;
  box-shadow: 0 4px 12px rgba(29, 114, 254, 0.3);
}

/* Product Card Design Carousel */
.product-carousel-track {
  display: flex;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  width: 100%;
}

.product-carousel-slide {
  min-width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Glassmorphism How It Works Step Cards */
.how-it-works-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: 1.75rem;
  box-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.05);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.how-it-works-card:hover {
  transform: translateY(-6px);
  border-color: rgba(29, 114, 254, 0.4);
  box-shadow: 0 20px 40px -10px rgba(29, 114, 254, 0.18);
}

.how-it-works-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #1d72fe, #00b4d8);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.how-it-works-card:hover::before {
  opacity: 1;
}

/* Feature advantage box */
.advantage-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 1.5rem;
  padding: 1.5rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.advantage-card:hover {
  transform: translateY(-4px);
  border-color: #1d72fe;
  box-shadow: 0 12px 30px -5px rgba(29, 114, 254, 0.12);
}

/* Design Gallery Selector Buttons */
.design-thumb-btn {
  border: 2px solid transparent;
  border-radius: 0.75rem;
  padding: 0.25rem;
  transition: all 0.2s ease;
  background: #f8fafc;
}

.design-thumb-btn.active, .design-thumb-btn:hover {
  border-color: #1d72fe;
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(29, 114, 254, 0.2);
}

/* Cart Drawer Slide-Over Panel */
.cart-drawer-overlay {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 99999 !important;
  background: rgba(15, 23, 42, 0.6) !important;
  backdrop-filter: blur(6px) !important;
  display: flex !important;
  justify-content: flex-end !important;
  align-items: stretch !important;
  transition: opacity 0.3s ease;
}

.cart-drawer-overlay.hidden {
  display: none !important;
  pointer-events: none !important;
}

.cart-drawer-panel {
  width: 100% !important;
  max-width: 440px !important;
  height: 100% !important;
  background: #ffffff !important;
  box-shadow: -10px 0 35px rgba(0, 0, 0, 0.25) !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  position: relative !important;
  z-index: 100000 !important;
  overflow: hidden !important;
  animation: slideInRight 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}

.cart-item-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 1.25rem;
  padding: 1rem;
  transition: all 0.2s ease;
}

.cart-item-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
}

/* Upsell Box Card */
.upsell-box-card {
  background: linear-gradient(135deg, #f0f7ff 0%, #e0eafd 100%);
  border: 2px dashed #1d72fe;
  border-radius: 1.5rem;
  position: relative;
  overflow: hidden;
}

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

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #1d72fe;
}

/* ==========================================================================
   Comprehensive Mobile & Touch Optimization System
   ========================================================================== */

/* Ultra-smooth Touch Feedback for Buttons */
button, .btn-primary-blue, .btn-outline-blue, a.btn-primary-blue, a.btn-outline-blue {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

button:active, .btn-primary-blue:active, .btn-outline-blue:active {
  transform: scale(0.97);
}

/* Horizontal Scroll Strip for Mobile Filter Buttons */
.mobile-filter-strip {
  display: flex;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 0.5rem;
}

.mobile-filter-strip::-webkit-scrollbar {
  display: none;
}

/* Running Marquee Alert Bar */
.marquee-container {
  overflow: hidden;
  white-space: nowrap;
  width: 100%;
  position: relative;
}

.marquee-content {
  display: inline-flex;
  align-items: center;
  gap: 3rem;
  animation: marqueeScroll 25s linear infinite;
  will-change: transform;
}

.marquee-container:hover .marquee-content {
  animation-play-state: paused;
}

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

/* Responsive Media Query Adjustments (< 640px) */
@media (max-width: 640px) {
  /* Prevent horizontal scroll leakage */
  html, body {
    overflow-x: hidden !important;
    width: 100% !important;
  }

  /* Full-width Cart Drawer on Mobile */
  .cart-drawer-panel {
    max-width: 100vw !important;
    width: 100vw !important;
    border-radius: 0 !important;
  }

  /* Carousel Navigation Buttons Scaling */
  #carousel-prev, #carousel-next {
    width: 2.25rem !important;
    height: 2.25rem !important;
  }

  #carousel-prev svg, #carousel-next svg {
    width: 1.1rem !important;
    height: 1.1rem !important;
  }

  /* 2-Column Parallel Mobile Design Cards */
  .design-showcase-card {
    padding: 0.65rem !important;
    border-radius: 1.15rem !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    border-width: 1px !important;
  }

  .design-showcase-card .card-preview-wrapper {
    min-height: 120px !important;
    padding: 0.4rem !important;
    border-radius: 0.75rem !important;
  }

  .card-preview-img {
    max-height: 95px !important;
  }

  .design-showcase-card h4 {
    font-size: 0.72rem !important;
    line-height: 1.2 !important;
    font-weight: 800 !important;
  }

  .design-showcase-card p {
    font-size: 0.62rem !important;
    line-height: 1.2 !important;
    margin-top: 0.15rem !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 1 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
  }

  .design-showcase-card .quick-view-btn, 
  .design-showcase-card button[data-open-order] {
    padding: 0.35rem 0.35rem !important;
    font-size: 0.62rem !important;
    border-radius: 0.5rem !important;
    white-space: nowrap !important;
    text-align: center !important;
  }

  .design-showcase-card .quick-view-btn {
    font-size: 0.6rem !important;
  }

  /* Card Carousel Thumbnails & Badges */
  .design-label-badge {
    font-size: 9px !important;
    padding: 2px 8px !important;
  }

  /* Feature cards & padding optimization */
  .feature-box, .advantage-card, .how-it-works-card {
    padding: 1.25rem !important;
  }

  /* Modal max height & padding for mobile screens */
  #order-modal .bg-white, #quick-view-modal .bg-white {
    max-height: 92vh !important;
    overflow-y: auto !important;
    padding: 1.25rem !important;
    margin: 1rem !important;
    border-radius: 1.5rem !important;
  }

  /* Sticky floating WhatsApp button position on phone */
  .fixed.bottom-6.left-6 {
    bottom: 1rem !important;
    left: 1rem !important;
    width: 3.25rem !important;
    height: 3.25rem !important;
  }
}

/* Small phone tweak (< 380px) */
@media (max-width: 380px) {
  .btn-primary-blue, .btn-outline-blue {
    padding-left: 0.85rem !important;
    padding-right: 0.85rem !important;
    font-size: 0.75rem !important;
  }

  .text-3xl {
    font-size: 1.65rem !important;
    line-height: 1.25 !important;
  }
}


