/**
 * ==============================================================================
 * UX ELEMENT: LANDING GIFT SETS (SET QUÀ TẶNG CỐM VIỆT)
 * Theme: Cốm Làng Vòng
 * Tuân thủ màu sắc & responsive theo AGENTS.md
 * ==============================================================================
 */

.gift-sets-section {
  background-color: var(--bg-cream, #FFFDF5);
  position: relative;
  overflow: hidden;
  padding-block: clamp(56px, 8vw, 110px);
}


/* 2. GRID SYSTEM - RESPONSIVE */
.gift-sets-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 0;
}

@media (min-width: 768px) and (max-width: 1023px) {
  .gift-sets-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
  }
}

@media (max-width: 767px) {
  .gift-sets-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* 3. GIFT SET CARD */
.gift-set-card {
  background: var(--bg-white, #FFFFFF);
  border: 1px solid var(--border-light, #E4E9D3);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.35s ease;
  box-shadow: 0 8px 24px rgba(49, 87, 44, 0.05);
}

.gift-set-card:hover {
  transform: translateY(-6px);
  border-color: var(--com-green, #A8C957);
  box-shadow: 0 16px 36px rgba(49, 87, 44, 0.12);
}

/* Featured / Best-seller Card Highlight */
.gift-set-card.is-featured {
  border: 2px solid var(--com-green, #A8C957);
  box-shadow: 0 12px 32px rgba(82, 122, 50, 0.12);
}

.gift-set-card.is-featured:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 42px rgba(82, 122, 50, 0.18);
}

/* Badge */
.gift-set-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 3;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--deep-green, #31572C);
  backdrop-filter: blur(4px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(228, 233, 211, 0.7);
}

.gift-set-badge.badge-featured {
  background: var(--green-dark, #527A32);
  color: #FFFFFF;
  border-color: transparent;
  box-shadow: 0 3px 10px rgba(82, 122, 50, 0.3);
}


/* 4. NOTE: NHẬN MIX HỘP QUÀ THEO YÊU CẦU (.note capsule) */
.gift-sets-section .note,
.gift-sets-note {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: fit-content;
  max-width: 92%;
  margin: 16px auto 0;
  padding: 6px 18px 6px 8px;
  background: #FFFFFF;
  background: linear-gradient(135deg, #FFFFFF 0%, #FAFBF5 100%);
  border: 1.5px solid rgba(168, 201, 87, 0.55);
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(49, 87, 44, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: center;
}

.gift-sets-section .note:hover,
.gift-sets-note:hover {
  border-color: var(--com-green, #A8C957);
  box-shadow: 0 6px 20px rgba(49, 87, 44, 0.1);
  transform: translateY(-2px);
}

.gift-sets-section .note .note-icon,
.gift-sets-note .note-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--bg-soft-lime, #F1F5D8);
  color: var(--green-dark, #527A32);
  border: 1px solid rgba(168, 201, 87, 0.45);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.gift-sets-section .note:hover .note-icon,
.gift-sets-note .note-icon {
  background: var(--com-green, #A8C957);
  color: var(--deep-green, #31572C);
  border-color: var(--com-green, #A8C957);
  transform: rotate(-8deg) scale(1.08);
}

.gift-sets-section .note .note-text,
.gift-sets-note .note-text {
  font-family: var(--font-body, "Be Vietnam Pro", sans-serif);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--deep-green, #31572C);
  letter-spacing: 0.15px;
  line-height: 1.4;
  white-space: nowrap;
}

@media (max-width: 767px) {
  .gift-sets-section .note,
  .gift-sets-note {
    margin-top: 14px;
    padding: 5px 14px 5px 6px;
    max-width: calc(100% - 24px);
  }

  .gift-sets-section .note .note-icon,
  .gift-sets-note .note-icon {
    width: 24px;
    height: 24px;
  }

  .gift-sets-section .note .note-text,
  .gift-sets-note .note-text {
    font-size: 13px;
  }
}

/* 9. ACCESSIBILITY / REDUCED MOTION */
@media (prefers-reduced-motion: reduce) {
  .gift-sets-section *,
  .gift-sets-section *::before,
  .gift-sets-section *::after {
    transition: none !important;
  }
}
