/* Path: /public/assets/css/pages/index.css */
/* ── HERO SLIDER ──────────────────────────────── */
.hero {
  position: relative;
  width: calc(100% - 95px);
  margin: 5px auto 0;
  height: 400px;
  overflow: hidden;
  background: #111;
  z-index: 5;
}

.hero-slides {
  display: flex;
  width: 300%;
  height: 100%;
  transition: transform .7s cubic-bezier(.77,0,.18,1);
}

.hero-slide {
  width: calc(100% / 3);
  height: 100%;
  flex-shrink: 0;
  background: linear-gradient(135deg, #0d2550 0%, #1a4fa0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-slide:nth-child(1) { background: linear-gradient(135deg, #ffffff 0%, #ffffff 100%); }
.hero-slide:nth-child(2) { background: linear-gradient(135deg, #ffffff 0%, #ffffff 100%); }
.hero-slide:nth-child(3) { background: linear-gradient(135deg, #ffffff 0%, #94c0a0 100%); }

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 48px; height: 48px;
  background: rgba(255,255,255,.18);
  backdrop-filter: blur(8px);
  border: 1.5px solid rgba(255,255,255,.35);
  border-radius: 50%;
  cursor: pointer;
  color: #fff;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .25s, transform .25s;
}
.hero-arrow:hover { background: rgba(255,255,255,.32); transform: translateY(-50%) scale(1.1); }
.hero-arrow.prev { left: 20px; }
.hero-arrow.next { right: 20px; }

.hero-dots {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}
.hero-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.4);
  cursor: pointer;
  transition: background .3s, transform .3s;
  border: none;
}
.hero-dot.active {
  background: #fff;
  transform: scale(1.4);
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--cyan), var(--pink), var(--yellow), var(--green), var(--cyan));
  background-size: 200% 100%;
  animation: shimmer 4s linear infinite;
  z-index: 11;
}

/* ── MAIN LAYOUT ──────────────────────────────── */
.main {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 28px 5% 50px;
  display: flex;
  gap: 32px;
  position: relative;
  z-index: 5;
}

/* ── SIDEBAR ──────────────────────────────────── */
.sidebar { width: 230px; flex-shrink: 0; }
.sidebar-title { background: linear-gradient(135deg, var(--cyan), #0089c7); color: #fff; padding: 12px 18px; border-radius: 10px; font-size: 15px; font-weight: 600; margin-bottom: 6px; box-shadow: 0 4px 14px rgba(0,174,239,.3); }
.sidebar ul li a { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 8px; color: var(--text); font-size: 14px; transition: all .2s; margin: 2px 0; text-decoration: none; }
.sidebar ul li a::before { content: ''; width: 6px; height: 6px; background: var(--border); border-radius: 50%; flex-shrink: 0; transition: background .2s, transform .2s; }
.sidebar ul li a:hover { color: var(--cyan); background: rgba(0,174,239,.07); padding-left: 18px; }
.sidebar ul li a:hover::before { background: var(--cyan); transform: scale(1.4); }

/* ── CONTENT ──────────────────────────────────── */
.content { flex: 1; min-width: 0; }

.search-row { display: flex; align-items: center; gap: 12px; margin-bottom: 28px; flex-wrap: wrap; }
.search-box { display: flex; flex: 1; min-width: 200px; border-radius: 10px; overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,.07); border: 1.5px solid var(--border); transition: border-color .2s, box-shadow .2s; }
.search-box:focus-within { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(0,174,239,.15); }
.search-box input { flex: 1; height: 46px; border: none; padding: 0 16px; font-size: 14px; font-family: 'Poppins', sans-serif; outline: none; background: #fff; }
.search-box button { width: 52px; height: 46px; background: linear-gradient(135deg, var(--cyan), #0089c7); border: none; cursor: pointer; font-size: 16px; color: #fff; transition: opacity .2s; }
.search-box button:hover { opacity: .85; }

.pagination { display: flex; align-items: center; gap: 4px; }
.pagination button { min-width: 40px; height: 40px; padding: 0 10px; border: 1.5px solid var(--border); background: #fff; font-size: 13px; font-family: 'Poppins', sans-serif; cursor: pointer; border-radius: 8px; transition: all .2s; color: var(--text); }
.pagination button:hover:not(.active):not(:disabled) { border-color: var(--cyan); color: var(--cyan); }
.pagination button.active { background: linear-gradient(135deg, var(--cyan), #0089c7); border-color: transparent; color: #fff; font-weight: 600; box-shadow: 0 3px 10px rgba(0,174,239,.35); }

.sort-btn { height: 40px; padding: 0 16px; border: 1.5px solid var(--pink); background: #fff; color: var(--pink); font-size: 13px; font-family: 'Poppins', sans-serif; cursor: pointer; border-radius: 8px; display: flex; align-items: center; gap: 8px; font-weight: 500; transition: all .2s; }
.sort-btn:hover { background: var(--pink); color: #fff; }

.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

@media (max-width: 1100px) { .products { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px) {
  .main { flex-direction: column; }
  .sidebar { width: 100%; }
  .sidebar ul { display: flex; flex-wrap: wrap; gap: 4px; }
  .sidebar ul li { flex: none; }
  .sidebar ul li a { padding: 8px 14px; background: var(--gray); }
  .hero { height: 320px; }
}
@media (max-width: 640px) {
  .products { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .search-row { flex-direction: column; align-items: stretch; }
  .search-box { min-width: 100%; }
  .hero { height: 240px; }
}
@media (max-width: 420px) {
  .products { grid-template-columns: 1fr; }
  .main { padding: 14px 4% 30px; }
}