* {
  font-family: 'Plus Jakarta Sans', sans-serif;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Plus Jakarta Sans', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}


/* Animations */
.animate-fade-in {
  animation: fadeIn 0.3s ease-out forwards;
}

.animate-slide-in {
  animation: slideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Entering Animations (Radix/Premium Style) */
.animate-in {
  animation-duration: 300ms;
  animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
  animation-fill-mode: forwards;
}

.fade-in {
  animation-name: enterFadeIn;
}

.zoom-in-95 {
  animation-name: enterZoom95;
}

.slide-in-from-bottom-8 {
  animation-name: enterSlideFromBottom8;
}

@keyframes enterFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes enterZoom95 {
  from {
    transform: scale(0.95);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes enterSlideFromBottom8 {
  from {
    transform: translateY(2rem);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(5px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(20px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Custom Scrollbar for navigation */
.custom-scrollbar::-webkit-scrollbar {
  width: 4px;
}

.custom-scrollbar::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
}

.custom-scrollbar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
}

/* Horizontal Scrollbar - Thin & Modern */
.custom-scrollbar-horizontal::-webkit-scrollbar {
  height: 5px;
}

.custom-scrollbar-horizontal::-webkit-scrollbar-track {
  background: #f9fafb;
  border-radius: 10px;
}

.custom-scrollbar-horizontal::-webkit-scrollbar-thumb {
  background: #e5e7eb;
  border-radius: 10px;
}

.custom-scrollbar-horizontal::-webkit-scrollbar-thumb:hover {
  background: #d1d5db;
}

.no-scrollbar::-webkit-scrollbar {
  display: none;
}

.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Blob Animation */
@keyframes blob {
  0% {
    transform: translate(0px, 0px) scale(1);
  }

  33% {
    transform: translate(30px, -50px) scale(1.1);
  }

  66% {
    transform: translate(-20px, 20px) scale(0.9);
  }

  100% {
    transform: translate(0px, 0px) scale(1);
  }
}

.animate-blob {
  animation: blob 7s infinite;
}

.animation-delay-2000 {
  animation-delay: 2s;
}

.animation-delay-4000 {
  animation-delay: 4s;
}

/* Global Button Styling Override */
button,
input[type="submit"],
input[type="reset"],
input[type="button"],
.btn,
.button {
  border-radius: 6px !important;
}

/* --- Global Perfect Shape Loader --- */
.path-anim {
  fill-opacity: 0;
  stroke-width: 25px;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 4000;
  stroke-dashoffset: 4000;
  stroke-opacity: 1;
  animation: drawFillLoop 3.5s ease-in-out infinite;
}

.orange-part {
  stroke: #FF6C0C;
  fill: #FF6C0C;
}

.navy-part {
  stroke: #071C2C;
  fill: #071C2C;
}

.dark-loader .navy-part {
  stroke: #ffffff;
  fill: #ffffff;
}

.dark-loader .orange-part {
  stroke: #fc6c0f;
  fill: #fc6c0f;
}

.dot {
  opacity: 0;
}

.animate-dotFade {
  animation: dotFade 1.5s infinite;
}

@keyframes drawFillLoop {
  0% {
    stroke-dashoffset: 12000;
    fill-opacity: 0;
    stroke-opacity: 1;
  }

  35% {
    stroke-dashoffset: 0;
    fill-opacity: 0;
    stroke-opacity: 1;
  }

  45% {
    stroke-dashoffset: 0;
    fill-opacity: 1;
    stroke-opacity: 0;
  }

  65% {
    stroke-dashoffset: 0;
    fill-opacity: 1;
    stroke-opacity: 0;
  }

  75% {
    stroke-dashoffset: 0;
    fill-opacity: 0;
    stroke-opacity: 1;
  }

  100% {
    stroke-dashoffset: 12000;
    fill-opacity: 0;
    stroke-opacity: 1;
  }
}

@keyframes dotFade {
  0% {
    opacity: 0;
  }

  50% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}

@keyframes progress {
  0% {
    width: 0%;
    transform: translateX(-100%);
  }

  50% {
    width: 70%;
    transform: translateX(20%);
  }

  100% {
    width: 100%;
    transform: translateX(100%);
  }
}

/* --- Cookie Consent Banner Mobile Optimization --- */

/* Desktop Default for Button Wrapper (Restoring fixed width removed from inline styles) */
.cookie-button-wrapper {
  width: 140px;
}

@media (max-width: 768px) {
  /* Change Main Container to Column */
  .cookie-consent-container {
    flex-direction: column !important;
    align-items: stretch !important; /* Make children full width */
    gap: 20px !important;
    padding: 24px !important;
    bottom: 20px !important; /* Keep it floating */
    width: 90% !important; 
    left: 5% !important; /* Center it: (100-90)/2 = 5% */
    right: auto !important;
  }

  /* Adjust Text Content */
  .cookie-consent-container > div:first-child {
    margin: 0 !important;
    margin-bottom: 5px !important; /* Space below text */
    width: 100% !important;
    text-align: left; /* Keep left or center? User said "text and bullet points". Left usually better for reading. */
  }

  /* Button Wrapper Full Width */
  .cookie-button-wrapper {
    width: 100% !important;
    margin-top: 10px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
  }

  /* Buttons Full Width & Order */
  .cookie-button-wrapper button {
    width: 100% !important;
    margin: 0 !important;
    padding: 12px !important; /* Larger touch target */
  }
  
  /* Ensure Accept is First, Decline is Second */
  #rcc-confirm-button {
    order: 1 !important;
    margin-bottom: 0 !important;
  }
  
  #rcc-decline-button {
    order: 2 !important;
    margin-top: 0 !important;
  }
}

.pb-safe-area-bottom {
  padding-bottom: env(safe-area-inset-bottom, 1rem);
}

/* Lock body background scroll when modal or chat is open */
body.modal-open,
body.chat-modal-open {
  overflow: hidden !important;
  overscroll-behavior: contain;
}

/* Hide mobile bottom navigation when modal or chat is open */
body.modal-open .mobile-bottom-nav,
body.chat-modal-open .mobile-bottom-nav,
body[style*="overflow: hidden"] .mobile-bottom-nav {
  display: none !important;
}

/* Product Details Sticky Tabs Bar */
.product-details-sticky-tabs {
  background-color: #ffffff !important;
  position: -webkit-sticky !important;
  position: sticky !important;
  top: 54px !important;
  z-index: 40 !important;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.product-details-sticky-tabs::before,
.product-details-sticky-tabs::after {
  content: none !important;
  display: none !important;
}

@media (min-width: 768px) {
  .product-details-sticky-tabs {
    top: 0px !important;
  }
}