/* ─────────────────────────────────────────────
   v2-components.css — Plantisia V2
   Bento grid, deal cards, testimonial section.
──────────────────────────────────────────── */

/* ════════════════════════════════════════════
   BENTO CATEGORIES
════════════════════════════════════════════ */

.v2-bento {
  padding: var(--space-16) 0;
  background: var(--color-bg);
}

.v2-bento__inner {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2.5rem);
}

.v2-bento__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 260px 260px;
  gap: var(--space-4);
}

/* Large card — spans 2 rows on left */
.v2-bento__card {
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}
.v2-bento__card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.v2-bento__card--large {
  grid-row: 1 / 3;
  background: var(--color-surface);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: var(--space-8);
}

/* Limit text width so it doesn't overlap the absolutely-positioned model image */
.v2-bento__card--large > div {
  max-width: 52%;
}

.v2-bento__card--dark {
  background: var(--color-accent);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.75rem var(--space-8);
}

.v2-bento__card--light {
  background: var(--color-surface-alt);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.75rem var(--space-8);
}

/* Limit text width in small cards so it doesn't overlap the model image */
.v2-bento__card--dark > div,
.v2-bento__card--light > div {
  max-width: 56%;
}

/* Card content */
.v2-bento__card-title {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  line-height: var(--leading-snug);
  letter-spacing: -0.01em;
}

.v2-bento__card--large .v2-bento__card-title {
  font-size: clamp(var(--text-2xl), 2.8vw, var(--text-4xl));
  color: var(--color-charcoal);
}

.v2-bento__card--dark .v2-bento__card-title {
  font-size: clamp(var(--text-xl), 2vw, var(--text-3xl));
  color: rgba(255,255,255,0.95);
}

.v2-bento__card--light .v2-bento__card-title {
  font-size: clamp(var(--text-xl), 2vw, var(--text-3xl));
  color: var(--color-charcoal);
}

.v2-bento__card-sub {
  font-size: var(--text-sm);
  line-height: var(--leading-loose);
  margin-bottom: var(--space-4);
}

.v2-bento__card--large .v2-bento__card-sub { color: var(--color-warm-gray); }
.v2-bento__card--dark  .v2-bento__card-sub { color: rgba(255,255,255,0.65); }
.v2-bento__card--light .v2-bento__card-sub { color: var(--color-warm-gray); }

/* Category list inside card */
.v2-bento__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
}

.v2-bento__list-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
}

.v2-bento__card--large .v2-bento__list-item { color: var(--color-warm-gray); }
.v2-bento__card--dark  .v2-bento__list-item { color: rgba(255,255,255,0.75); }
.v2-bento__card--light .v2-bento__list-item { color: var(--color-warm-gray); }

.v2-bento__list-item::before {
  content: '';
  width: 18px;
  height: 18px;
  border-radius: var(--radius-full);
  border: 1.5px solid currentColor;
  flex-shrink: 0;
  opacity: 0.5;
}

/* Model image inside large card */
.v2-bento__card-img {
  position: absolute;
  right: 0;
  bottom: 0;
  height: 85%;
  width: auto;
  object-fit: contain;
  object-position: bottom;
  pointer-events: none;
}

/* Small card model image */
.v2-bento__card-img-sm {
  position: absolute;
  right: var(--space-6);
  bottom: 0;
  height: 80%;
  width: auto;
  object-fit: contain;
  object-position: bottom;
  pointer-events: none;
  opacity: 0.85;
}

/* ════════════════════════════════════════════
   DEALS / PRODUCT CARDS — horizontal
════════════════════════════════════════════ */

.v2-deals {
  padding: var(--space-16) 0;
  background: var(--color-surface);
}

.v2-deals__inner {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2.5rem);
}

.v2-deals__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: var(--space-8);
  gap: var(--space-6);
}

.v2-deals__title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(var(--text-2xl), 3.5vw, var(--text-4xl));
  font-weight: 700;
  color: var(--color-charcoal);
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.v2-deals__desc {
  font-size: var(--text-sm);
  color: var(--color-warm-gray);
  max-width: 280px;
  line-height: var(--leading-loose);
  text-align: right;
}

.v2-deals__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
}

/* Horizontal product card */
.v2-deal-card {
  display: grid;
  grid-template-columns: 200px 1fr;
  border-radius: var(--radius-xl);
  border: 1.5px solid var(--color-border);
  overflow: hidden;
  background: var(--color-surface);
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}

.v2-deal-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.v2-deal-card__media {
  position: relative;
  overflow: hidden;
}

.v2-deal-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform var(--transition-slow);
}

.v2-deal-card:hover .v2-deal-card__media img { transform: scale(1.04); }

.v2-deal-card__badge {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  background: var(--color-accent);
  color: #fff;
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  letter-spacing: var(--tracking-wide);
}

.v2-deal-card__wishlist {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  width: 32px;
  height: 32px;
  background: rgba(255,255,255,0.9);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-muted);
  opacity: 0;
  transition: opacity var(--transition-base), color var(--transition-fast);
  cursor: pointer;
}

.v2-deal-card:hover .v2-deal-card__wishlist { opacity: 1; }
.v2-deal-card__wishlist:hover { color: #e05252; }
.v2-deal-card__wishlist.is-active { opacity: 1; color: #e05252; }
.v2-deal-card__wishlist.is-active svg { fill: #e05252; stroke: #e05252; }
.v2-deal-card__wishlist svg { width: 15px; height: 15px; }

.v2-deal-card__content {
  padding: var(--space-5) var(--space-6);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.v2-deal-card__category {
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: var(--space-2);
}

.v2-deal-card__name {
  font-family: 'Playfair Display', serif;
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-charcoal);
  letter-spacing: -0.01em;
  line-height: var(--leading-snug);
  margin-bottom: var(--space-3);
}

.v2-deal-card__desc {
  font-size: var(--text-sm);
  color: var(--color-warm-gray);
  line-height: var(--leading-loose);
  flex: 1;
  margin-bottom: var(--space-4);
}

.v2-deal-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

.v2-deal-card__stars {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-charcoal);
}

.v2-deal-card__star {
  color: #D4A853;
  font-size: 14px;
  line-height: 1;
}

/* ════════════════════════════════════════════
   TESTIMONIAL
════════════════════════════════════════════ */

.v2-testimonial {
  padding: var(--space-16) 0;
  background: var(--color-bg);
}

.v2-testimonial__inner {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2.5rem);
}

.v2-testimonial__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-8);
}

.v2-testimonial__title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(var(--text-2xl), 3.5vw, var(--text-4xl));
  font-weight: 700;
  color: var(--color-charcoal);
  letter-spacing: -0.02em;
}

.v2-testimonial__nav {
  display: flex;
  gap: var(--space-2);
}

.v2-testimonial__nav-btn {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--color-border);
  color: var(--color-warm-gray);
  transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
  cursor: pointer;
}

.v2-testimonial__nav-btn:hover,
.v2-testimonial__nav-btn--active {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
}

.v2-testimonial__nav-btn svg { width: 18px; height: 18px; }

.v2-testimonial__card {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 0;
  border-radius: var(--radius-xl);
  border: 1.5px solid var(--color-border);
  overflow: hidden;
  background: var(--color-surface);
}

.v2-testimonial__photo-wrap {
  position: relative;
  overflow: hidden;
}

.v2-testimonial__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.v2-testimonial__quote-mark {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  width: 44px;
  height: 44px;
  background: var(--color-charcoal);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: 'Playfair Display', serif;
  font-size: var(--text-2xl);
  font-weight: 700;
  line-height: 1;
}

.v2-testimonial__content {
  padding: var(--space-8) var(--space-10);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-4);
}

.v2-testimonial__stars {
  display: flex;
  align-items: center;
  gap: 4px;
}

.v2-testimonial__star { color: #D4A853; font-size: 18px; }
.v2-testimonial__rating {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-charcoal);
  margin-left: var(--space-2);
}

.v2-testimonial__text {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-warm-gray);
  line-height: var(--leading-loose);
  font-style: italic;
}

.v2-testimonial__author {
  font-size: var(--text-base);
  font-weight: var(--weight-medium);
  color: var(--color-charcoal);
}

.v2-testimonial__role {
  font-size: var(--text-sm);
  color: var(--color-muted);
  margin-top: 2px;
}

/* ════════════════════════════════════════════
   TESTIMONIAL SLIDER
════════════════════════════════════════════ */

.v2-testimonial__track { position: relative; }

.v2-testimonial__slide { display: none; }
.v2-testimonial__slide.is-active { display: block; }

.v2-testimonial__dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  margin-top: var(--space-6);
}

.v2-testimonial__dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--color-border-dark);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background var(--transition-base), width var(--transition-base);
}

.v2-testimonial__dot.is-active {
  background: var(--color-accent);
  width: 24px;
}

/* ════════════════════════════════════════════
   RESPONSIVE — COMPONENTS
════════════════════════════════════════════ */

@media (max-width: 960px) {
  .v2-bento__grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    height: auto;
  }
  .v2-bento__card--large { grid-row: auto; min-height: 320px; }
  .v2-bento__card--dark,
  .v2-bento__card--light { min-height: 220px; }
  .v2-bento__card--large > div { max-width: 60%; }
  .v2-bento__card--dark > div,
  .v2-bento__card--light > div { max-width: 60%; }

  .v2-deals__grid { grid-template-columns: 1fr; }
  .v2-deal-card { grid-template-columns: 160px 1fr; }

  .v2-testimonial__card { grid-template-columns: 200px 1fr; }
  .v2-testimonial__content { padding: var(--space-6); }
}

@media (max-width: 640px) {
  /* Bento: hide absolute images, full-width text */
  .v2-bento__card-img,
  .v2-bento__card-img-sm { display: none; }
  .v2-bento__card--large > div,
  .v2-bento__card--dark > div,
  .v2-bento__card--light > div { max-width: 100%; }
  .v2-bento__card--large { min-height: auto; padding: var(--space-6); }
  .v2-bento__card--dark,
  .v2-bento__card--light { min-height: auto; padding: var(--space-6); }

  /* Deals */
  .v2-deal-card { grid-template-columns: 110px 1fr; }
  .v2-deal-card__content { padding: var(--space-4); }
  .v2-deal-card__name { font-size: var(--text-base); }
  .v2-deals__header { flex-direction: column; align-items: flex-start; }
  .v2-deals__desc { text-align: left; max-width: 100%; }

  /* Testimonials */
  .v2-testimonial__card { grid-template-columns: 1fr; }
  .v2-testimonial__photo-wrap { height: 260px; }
  .v2-testimonial__content { padding: var(--space-5); }
}
