/* Grand Mall Nicaragua — Custom styles (extends Tailwind CDN) */

html {
  scroll-behavior: smooth;
}

:focus-visible { outline: 3px solid #b80000; outline-offset: 4px; }
button, summary, select { cursor: pointer; }
button:disabled { cursor: not-allowed; }
input, select, textarea { min-width: 0; }
img { max-width: 100%; }
#toast { max-width: calc(100vw - 2rem); white-space: normal !important; text-align: center; }
.product-card:focus-within { border-color: #111; }
.skip-link { position: fixed; top: -5rem; left: 1rem; z-index: 999; padding: .75rem 1rem; background: white; color: black; }
.skip-link:focus { top: 1rem; }
[class~="bg-[#FE0000]"] { background-color: #cf0000; }
[class~="text-[#FE0000]"] { color: #c70000; }
.bg-black [class~="text-[#FE0000]"], .bg-gray-950 [class~="text-[#FE0000]"] { color: #ff6666; }
.bg-black .text-gray-500, .bg-black .text-gray-600, .bg-gray-950 .text-gray-500, .bg-gray-950 .text-gray-600 { color: #a3a3a3; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Scrollbar */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: #f5f5f5; }
::-webkit-scrollbar-thumb { background: #cccccc; border-radius: 0; }
::-webkit-scrollbar-thumb:hover { background: #FE0000; }

/* Line clamp (cross-browser) */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Product card image zoom */
.product-card .product-image {
  transition: transform 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.product-card:hover .product-image {
  transform: scale(1.06);
}

/* Toast notification */
#toast {
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Skeleton shimmer */
@keyframes shimmer {
  0%   { background-position: -600px 0; }
  100% { background-position: 600px 0; }
}
.skeleton {
  background: linear-gradient(90deg, #eeeeee 25%, #e0e0e0 50%, #eeeeee 75%);
  background-size: 600px 100%;
  animation: shimmer 1.4s infinite linear;
}

/* Hero diagonal accent */
.hero-accent {
  clip-path: polygon(15% 0, 100% 0, 100% 100%, 0% 100%);
}

/* Category card hover overlay */
.category-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: #FE0000;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.category-card:hover::after {
  opacity: 0.08;
}

/* Underline nav animation */
.nav-link {
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: #FE0000;
  transition: width 0.2s ease;
}
.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Filter checkbox custom */
.filter-check {
  accent-color: #FE0000;
}

/* Price range slider */
input[type="range"] {
  accent-color: #FE0000;
}

/* Fade-in animation for rendered cards */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.product-card {
  animation: fadeInUp 0.35s ease both;
}

/* ─── n8n Chat Widget — Grand Mall Theme ─────────────────────────── */
:root {
  --chat--color--primary: #E30613;
  --chat--color--primary-shade-50: #C9050F;
  --chat--color--primary-shade-100: #AF040E;
  --chat--color--secondary: #1A1A1A;
  --chat--color-dark: #1A1A1A;
  --chat--border-radius: 0px;
  --chat--font-family: 'Inter', system-ui, sans-serif;
}
