/* Gizmora theme — matches Ecommerce7 assets/css/style.css + Laravel helpers */

/* Scroll-reveal */
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
[data-reveal].revealed { opacity: 1; transform: none; }

/* Product card hover */
.card-hover { transition: transform .25s ease, box-shadow .25s ease; }
.card-hover:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -18px rgba(15, 23, 42, .28); }

/* Tabs — Ecommerce7 */
.tab-active { color: #2540e0; border-color: #2540e0; }

/* Hero slider */
.hero-slide { opacity: 1; transition: opacity .5s ease; }
.hero-slide.is-hidden { opacity: 0; pointer-events: none; }

/* Category pill scroller */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* Marquee */
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.marquee { overflow: hidden; }
.marquee__track { display: flex; width: max-content; animation: marquee 22s linear infinite; }

/* Gentle float */
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.floaty { animation: floaty 5s ease-in-out infinite; }

/* Shimmer badge */
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }
.shimmer { background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.4) 50%, rgba(255,255,255,0) 100%); background-size: 200% 100%; animation: shimmer 2.2s infinite; }

/* Back to top */
[data-back-top], #backToTop { transition: opacity .3s ease; }

/* Smooth scrolling */
html { scroll-behavior: smooth; }

html, body {
  overflow-x: hidden;
  max-width: 100%;
}

body.no-scroll { overflow: hidden; }

/* Star ratings */
.stars { color: #facc15; letter-spacing: 0.02em; }
.stars .empty, .stars-empty { color: #e5e7eb; }

/* Sticky phone taskbar */
.site-header { transition: box-shadow .3s ease; }
.site-header.scrolled { box-shadow: 0 10px 30px -18px rgba(15, 23, 42, .35); }

.mobile-menu { transition: transform .3s cubic-bezier(.4, 0, .2, 1); }

.cart-count.bump { animation: bump .4s ease; }
@keyframes bump { 0%{transform:scale(1)} 50%{transform:scale(1.4)} 100%{transform:scale(1)} }

/* ---------- Shop filters ---------- */
:root {
  --brand: #2540e0;
  --brand-700: #1b2bb0;
  --ink: #0f172a;
}

.filter-panel { transition: transform .4s cubic-bezier(.4, 0, .2, 1); }

.acc-body { overflow: hidden; transition: max-height .35s ease; }

input[type="range"].brand-range {
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, #dbe2fb, #c7d2f7);
  outline: none;
}
input[type="range"].brand-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--brand);
  cursor: pointer;
  box-shadow: 0 0 0 5px rgba(37, 64, 224, .18), 0 2px 6px rgba(15, 23, 42, .15);
}
input[type="range"].brand-range::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border: none;
  border-radius: 50%;
  background: var(--brand);
  cursor: pointer;
}

.shop-filter-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  padding: 0.55rem 0.7rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #475569;
  transition: background-color .15s ease, color .15s ease;
}
.shop-filter-item:hover {
  background: #f1f5f9;
  color: var(--ink);
}
.shop-filter-item.is-active {
  background: #eef1fd;
  color: var(--brand-700);
  font-weight: 600;
}
.shop-filter-dot {
  width: 1rem;
  height: 1rem;
  border-radius: 999px;
  border: 2px solid #cbd5e1;
  flex-shrink: 0;
  position: relative;
  background: #fff;
}
.shop-filter-item.is-active .shop-filter-dot {
  border-color: var(--brand);
}
.shop-filter-item.is-active .shop-filter-dot::after {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: 999px;
  background: var(--brand);
}
.shop-filter-count {
  margin-left: auto;
  font-size: 0.7rem;
  font-weight: 600;
  color: #94a3b8;
  background: #f1f5f9;
  border-radius: 999px;
  padding: 0.1rem 0.45rem;
  min-width: 1.5rem;
  text-align: center;
}
.shop-filter-item.is-active .shop-filter-count {
  background: #dbe2fb;
  color: var(--brand-700);
}

.shop-check-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  padding: 0.5rem 0.7rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #475569;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}
.shop-check-item:hover { background: #f1f5f9; color: var(--ink); }
.shop-check-item.is-active { background: #eef1fd; color: var(--brand-700); }

.shop-check,
.shop-radio {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  accent-color: var(--brand);
  cursor: pointer;
}

/* BijliMart-style checkbox look for category links */
.shop-box {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  border: 1.5px solid #cbd5e1;
  border-radius: 0.2rem;
  background: #fff;
  position: relative;
  display: inline-grid;
  place-items: center;
}
.shop-box.is-checked {
  border-color: var(--brand);
  background: var(--brand);
}
.shop-box.is-checked::after {
  content: "";
  width: 4px;
  height: 7px;
  margin-top: -1px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

@media (max-width: 767px) {
  img, video, svg, iframe { max-width: 100%; height: auto; }
  .hero-slide h1,
  .hero-slide h2 { word-break: break-word; }
}
