/* ============================================================
   PAVI'S LAB — pages/index.css
   Homepage only: hero, search, categories, why choose us.
   ============================================================ */


/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: calc(100vh - 120px);
  display: flex;
  align-items: flex-start;
  padding: 60px 0 48px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url('https://res.cloudinary.com/dhpxr9ubq/image/upload/v1779472936/bg_xzjklr.png') center / cover no-repeat;
  filter: brightness(0.35);
  z-index: 0;
}

.hero-container {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

/* Search */
.search-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 56px;
}

.search-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
}

.search-bar input {
  width: 520px;
  max-width: 100%;
  padding: 14px 26px;
  border: 2px solid var(--pink);
  border-radius: 50px;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 15px;
  font-family: var(--font);
  outline: none;
  transition: border-color var(--transition), background var(--transition);
}
.search-bar input::placeholder { color: rgba(255, 255, 255, 0.45); }
.search-bar input:focus {
  border-color: var(--pink-light);
  background: rgba(0, 0, 0, 0.65);
}

.search-bar button {
  padding: 14px 32px;
  background: var(--pink);
  color: #fff;
  border: none;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background var(--transition), transform var(--transition);
}
.search-bar button:hover { background: var(--pink-deep); transform: translateY(-2px); }

/* Two-column content */
.hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}

.hero-left { flex: 1; max-width: 560px; }

.hero-title {
  font-size: clamp(52px, 6.5vw, 84px);
  font-weight: 800;
  color: var(--pink-light);
  line-height: 1.08;
  margin-bottom: 16px;
  letter-spacing: -1px;
}

.hero-tagline {
  font-size: 20px;
  color: #fff;
  font-weight: 400;
  margin-bottom: 32px;
}

.hero-btns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
}

.hero-right {
  flex: 1;
  max-width: 480px;
  display: flex;
  justify-content: flex-end;
}

.hero-right img {
  width: 100%;
  max-width: 460px;
  border-radius: 20px;
  border: 2px solid rgba(255, 0, 127, 0.25);
  box-shadow: 0 0 60px rgba(255, 0, 127, 0.18);
  object-fit: cover;
}

/* How to Order */
.how-to-order-wrap {
  display: flex;
  justify-content: flex-end;
  margin-top: 28px;
}

.btn-how-to-order {
  padding: 14px 30px;
  background: var(--pink);
  color: #fff;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 600;
  display: inline-block;
  transition: background var(--transition), transform var(--transition);
}
.btn-how-to-order:hover { background: var(--pink-deep); transform: translateY(-2px); }


/* ============================================================
   EXPLORE CATEGORIES
   ============================================================ */
.categories {
  padding: 64px 0;
  position: relative;
  overflow: hidden;
}

.cat-bg {
  position: absolute;
  inset: 0;
  background: url('https://res.cloudinary.com/dhpxr9ubq/image/upload/v1779472936/bg_xzjklr.png') center / cover no-repeat;
  filter: brightness(0.35);
  z-index: 0;
}

.categories .container {
  position: relative;
  z-index: 1;
}

.cat-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px 0;
  color: rgba(255, 255, 255, 0.45);
  font-size: 15px;
}

.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.cat-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  display: block;
  cursor: pointer;
  transition: transform var(--transition);
}
.cat-card:hover { transform: scale(1.025); }

.cat-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.cat-card:hover img { transform: scale(1.06); }

.cat-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 36px 16px 14px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.82), transparent);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}


/* ============================================================
   WHY CHOOSE US
   ============================================================ */
.why-choose {
  position: relative;
  padding: 80px 0;
  overflow: hidden;
}

.why-bg {
  position: absolute;
  inset: 0;
  background: url('https://res.cloudinary.com/dhpxr9ubq/image/upload/v1779472936/bg_xzjklr.png') center / cover no-repeat;
  filter: brightness(0.18);
  z-index: 0;
}

.why-choose .container { position: relative; z-index: 1; }

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.why-card {
  padding: 28px 24px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 0, 127, 0.12);
  border-radius: var(--radius);
}

.why-icon  { font-size: 34px; margin-bottom: 14px; }
.why-card h3 { font-size: 16px; font-weight: 700; color: #fff; margin-bottom: 10px; }
.why-card p  { font-size: 13px; color: var(--text-muted); line-height: 1.65; }


/* ============================================================
   RESPONSIVE — homepage sections
   ============================================================ */

/* Tablet */
@media (max-width: 1024px) {
  .cat-grid  { grid-template-columns: repeat(2, 1fr); }
  .why-grid  { grid-template-columns: repeat(2, 1fr); }

  .hero-content { flex-direction: column; text-align: center; }
  .hero-left    { max-width: 100%; }
  .hero-btns    { justify-content: center; }
  .hero-tags    { justify-content: center; }
  .hero-right   { justify-content: center; max-width: 100%; }
  .hero-right img { max-width: 480px; }
  .how-to-order-wrap { justify-content: center; }
}

/* Mobile */
@media (max-width: 768px) {
  .hero { padding: 40px 0 36px; min-height: auto; }
  .hero-title   { font-size: 42px; }
  .hero-tagline { font-size: 17px; }
  .search-bar        { flex-wrap: nowrap; }
  .search-bar input  { flex: 1; min-width: 0; width: auto; }
  .search-bar button { flex-shrink: 0; padding: 14px 18px; }
}

/* Very small screens — hide "Search" text, keep icon */
@media (max-width: 400px) {
  .search-btn-text  { display: none; }
  .search-bar button { padding: 14px 14px; }
}

/* Small mobile */
@media (max-width: 480px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .why-grid { grid-template-columns: 1fr; }
  .hero-btns { flex-direction: column; align-items: center; }
  .btn-pink, .btn-outline { width: 100%; text-align: center; }
}
