/* =========================================================
   Ocean Market — custom styles (Tailwind handles most utility)
   ========================================================= */

:root {
  --primary-50: #eef8fd;
  --primary-100: #d9eefb;
  --primary-500: #2f9bd6;
  --primary-600: #1e7fbe;
  --primary-700: #17669a;
}

html, body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background-color: #f8fafc;
  color: #0f172a;
  scroll-behavior: smooth;
}

/* Hide scrollbars on horizontal-scroll rows while keeping scroll functional */
.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

/* -------- Glass accents (used sparingly, per design brief) -------- */
.glass-header {
  background: rgb(255 255 255 / 72%);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid rgb(148 163 184 / 18%);
}

.glass-nav {
  background: rgb(239 68 68 / var(--tw-bg-opacity, 1));
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid rgb(255 255 255 / 60%);
  box-shadow: 0 10px 30px -8px rgb(15 79 122 / 25%);
}

.glass-purchase-bar {
  background: rgb(255 255 255 / 82%);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid rgb(255 255 255 / 60%);
  box-shadow: 0 10px 30px -8px rgb(15 79 122 / 25%);
}

.glass-banner-overlay {
  background: rgb(255 255 255 / 14%);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgb(255 255 255 / 25%);
}

.toast-glass {
  background: rgb(255 255 255 / 85%);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid rgb(255 255 255 / 50%);
}

/* -------- Toast animation -------- */
.toast-glass {
  opacity: 0;
  transform: translateY(-12px) scale(0.96);
  transition: opacity 0.22s ease, transform 0.22s ease;
}
.toast-show {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.toast-hide {
  opacity: 0;
  transform: translateY(-8px) scale(0.96);
}

/* -------- Micro-interactions -------- */
@keyframes pop {
  0% { transform: scale(1); }
  40% { transform: scale(1.3); }
  100% { transform: scale(1); }
}
.animate-pop {
  animation: pop 0.25s ease;
}

.category-chip:active > div,
.product-card:active {
  transform: scale(0.96);
}

button {
  cursor: pointer;
}
button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 2px solid var(--primary-500);
  outline-offset: 2px;
  border-radius: 8px;
}

/* -------- Accordion -------- */
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}
.accordion-content.open {
  max-height: 600px;
}
.accordion-chevron {
  transition: transform 0.25s ease;
}
.accordion-chevron.open {
  transform: rotate(180deg);
}

/* -------- Carousel -------- */
.carousel-track {
  transition: transform 0.4s ease;
}

/* -------- Line clamp helpers -------- */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* -------- Description expand -------- */
.desc-collapsed {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* -------- Image gallery thumbnails -------- */
.thumb-active {
  border-color: var(--primary-600) !important;
  box-shadow: 0 0 0 2px rgba(30, 127, 190, 0.25);
}
