@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Agbalumo&display=swap');

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background-color: #221114;
  color: white;
  font-family: 'Vazirmatn', sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: #2d161a; }
::-webkit-scrollbar-thumb { background: #47242a; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #cf1736; }

/* ── Typography ── */
.font-display { font-family: 'Agbalumo', cursive; }

/* ── Line clamp ── */
.line-clamp-2 {
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* ── Focus ── */
input:focus, select:focus, textarea:focus {
  outline: none;
}

/* ── Transitions ── */
a, button { transition: all 0.2s ease; }

/* ───────────────────────────────────────────
   Swiper — Categories
─────────────────────────────────────────── */
.categories-swiper {
  position: relative;
  overflow: visible;    /* let slide peek out */
}

.categories-swiper .swiper-wrapper {
  align-items: stretch;
}

.categories-swiper .swiper-slide {
  height: 360px;
}

@media (min-width: 768px) {
  .categories-swiper .swiper-slide { height: 440px; }
}

/* ───────────────────────────────────────────
   Swiper — Products
─────────────────────────────────────────── */
.products-swiper {
  position: relative;
  overflow: visible;
}

/* ───────────────────────────────────────────
   Swiper — Nav arrows (custom)
─────────────────────────────────────────── */
.swiper-button-prev-cats,
.swiper-button-next-cats,
.swiper-button-prev-prods,
.swiper-button-next-prods {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 36px;
  height: 36px;
  background: rgba(45,22,26,0.85);
  border: 1px solid #47242a;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  user-select: none;
}

.swiper-button-prev-cats:hover,
.swiper-button-next-cats:hover,
.swiper-button-prev-prods:hover,
.swiper-button-next-prods:hover {
  background: #cf1736;
  border-color: #cf1736;
}

.swiper-button-prev-cats  { right: 4px; }
.swiper-button-next-cats  { left:  4px; }
.swiper-button-prev-prods { right: 4px; }
.swiper-button-next-prods { left:  4px; }

@media (min-width: 768px) {
  .swiper-button-prev-cats  { right: 16px; }
  .swiper-button-next-cats  { left:  16px; }
  .swiper-button-prev-prods { right: 0; }
  .swiper-button-next-prods { left:  0; }
}

/* ── Swiper pagination dots ── */
.swiper-pagination-prods {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 20px;
}

.swiper-pagination-prods .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #47242a;
  opacity: 1;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.swiper-pagination-prods .swiper-pagination-bullet-active {
  background: #cf1736;
  transform: scale(1.3);
}

/* Override Swiper default arrows (hide them since we use custom) */
.swiper-button-prev::after,
.swiper-button-next::after { display: none; }

/* ───────────────────────────────────────────
   Product detail — image gallery
─────────────────────────────────────────── */
.gallery-thumb {
  cursor: pointer;
  transition: border-color 0.2s;
}

.gallery-thumb.active {
  border-color: #cf1736 !important;
}

/* ───────────────────────────────────────────
   Accordion
─────────────────────────────────────────── */
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

/* ───────────────────────────────────────────
   Animations
─────────────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-in-up { animation: fadeInUp 0.5s ease forwards; }

/* Hero logo float */
@keyframes logoFloat {
  0%   { transform: translateY(0px)    rotate(-1deg); filter: drop-shadow(0 0 20px rgba(207,23,54,0.5)); }
  50%  { transform: translateY(-12px)  rotate(1deg);  filter: drop-shadow(0 0 40px rgba(207,23,54,0.85)); }
  100% { transform: translateY(0px)    rotate(-1deg); filter: drop-shadow(0 0 20px rgba(207,23,54,0.5)); }
}
@keyframes logoReveal {
  from { opacity: 0; transform: translateY(24px) scale(0.85); }
  to   { opacity: 1; transform: translateY(0)    scale(1); }
}

.animate-logo {
  animation:
    logoReveal 0.8s cubic-bezier(0.22,1,0.36,1) forwards,
    logoFloat  4s ease-in-out 0.8s infinite;
}

/* Header logo subtle pulse on hover */
header a:hover img {
  filter: drop-shadow(0 0 12px rgba(207,23,54,0.8));
  transition: filter 0.3s ease;
}

/* ── Logo animation in hero ── */
@keyframes logoFloat {
  0%, 100% { transform: translateY(0) scale(1); filter: drop-shadow(0 0 16px rgba(207,23,54,0.5)); }
  50%       { transform: translateY(-8px) scale(1.03); filter: drop-shadow(0 0 28px rgba(207,23,54,0.8)); }
}

.animate-logo {
  animation: logoFloat 4s ease-in-out infinite;
}
@media (max-width: 767px) {
  /* bigger tap targets */
  a, button { min-height: 44px; }
  nav a, footer a { min-height: unset; }
}
