/* =========================================
   Product Cards - Responsive Flex Layout
========================================= */

.pc-grid-wrapper {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  box-sizing: border-box;
}

/* Horizontal scrolling viewport */
.pc-grid-wrapper .pc-grid {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

/* Cards in one horizontal row */
.pc-grid-wrapper .cards-container {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: stretch;
  justify-content: space-evenly;
  gap: 24px;

  width: max-content;
  min-width: 100%;
  padding: 0 0 10px;
  box-sizing: border-box;
}

/* =========================================
   Card Base Styles
========================================= */

.pc-grid-wrapper .pc-card {
  position: relative;

  flex: 0 0 340px;
  /* width: 340px; */
  min-width: 364px;
  /* max-width: 340px; */

  min-height: 100%;
  padding: 24px 20px 20px;
  box-sizing: border-box;

  display: flex;
  flex-direction: column;
  justify-content: flex-start;

  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background-color: #ffffff;
  overflow: hidden;

  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

/* Card Themes */
.pc-grid-wrapper .pc-card--blue {
  background-color: #f3f8fe;
}

.pc-grid-wrapper .pc-card--peach {
  background-color: #fffaf7;
}

.pc-grid-wrapper .pc-card--mint {
  background-color: #f2fcf7;
}

/* Top Right Red Ribbon */
.pc-grid-wrapper .pc-card__corner-ribbon {
  position: absolute;
  top: 0;
  right: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 28px 28px 0;
  border-color: transparent #e11919 transparent transparent;
}

/* Top Category Chip */
.pc-grid-wrapper .pc-card__top-bar {
  margin-bottom: 12px;
}

.pc-grid-wrapper .pc-card__chip {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  background-color: #e0f0fe;
  color: #1d4ed8;
}

.pc-grid-wrapper .pc-card--mint .pc-card__chip {
  background-color: #d1fae5;
  color: #065f46;
}

/* Card Body */
.pc-grid-wrapper .pc-card__body {
  max-height: 215px;
  overflow-y: auto;
}

/* Header & Titles */
.pc-grid-wrapper .pc-card__header {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 6px;
}

.pc-grid-wrapper .pc-card__title {
  width: 100%;
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  color: #005e9e;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.pc-grid-wrapper .pc-card__title .pc-brand {
  color: #ed1c24;
}

/* Badges */
.pc-grid-wrapper .pc-badge {
  display: inline-block;
  color: #ed1c24;
  cursor: pointer;
  border: 1px solid #ed1c24;
  padding: 5px 9px;
  text-transform: uppercase;
  border-radius: 20px;
  line-height: 20px;
  z-index: 1;
  font-size: 11px;
  margin: 0 0 3px 10px;
  vertical-align: middle;
}

.pc-grid-wrapper .pc-badge:last-child {
  margin-left: 0;
}

/* UIN */
.pc-grid-wrapper .pc-card__uin {
  font-size: 12px;
  color: #6b7280;
  margin: 4px 0 12px;
  font-weight: 500;
}

.pc-grid-wrapper .pc-card__rule {
  border: 0;
  height: 2px;
  background-color: #e11919;
  width: 24px;
  margin: 0 0 12px;
}

/* Description */
.pc-grid-wrapper .pc-card__desc {
  font-size: 13px;
  color: #1f2937;
  line-height: 1.5;
  margin-bottom: 16px;
  overflow-wrap: anywhere;
}

.pc-grid-wrapper .pc-card__desc p {
  color: #444;
}

/* =========================================
   Features
========================================= */

.pc-grid-wrapper .pc-card__features-wrapper {
  background: rgba(255, 255, 255, 0.7);
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 20px;
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.pc-grid-wrapper .pc-feats {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
}

.pc-grid-wrapper .pc-feat {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid #e3e7ee;
}

.pc-grid-wrapper .pc-feat:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.pc-grid-wrapper .pc-feat:first-child {
  padding-top: 0;
}

.pc-grid-wrapper .pc-feat__icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: #ebf5ff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 36px;
}

.pc-grid-wrapper .pc-feat__icon--highlight {
  background-color: #fde8e8;
}

.pc-grid-wrapper .pc-feat__icon img {
  display: block;
  max-width: 24px;
  max-height: 24px;
  object-fit: contain;
}

.pc-grid-wrapper .pc-feat__text {
  min-width: 0;
  font-size: 12.5px;
  color: #374151;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.pc-grid-wrapper .pc-feat__text strong {
  font-weight: 700;
  color: #111827;
}

/* =========================================
   CTA Buttons
========================================= */

.pc-grid-wrapper .pc-card__ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: auto;
}

.pc-grid-wrapper .pc-btn {
  flex: 0 0 auto;
  line-height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 5px 9px;
  box-sizing: border-box;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  transition: all 0.2s ease;
  text-align: center;
  max-width: 100%;
}

.pc-grid-wrapper .pc-btn--primary {
  background-color: #ed1c24;
  color: #ffffff;
  border: 1px solid #ed1c24;
}

.pc-grid-wrapper .pc-btn--primary:hover {
  background-color: #e11919;
  border-color: #c40e0e;
  cursor: pointer;
}

.pc-grid-wrapper .pc-btn--outline {
  background-color: transparent;
  color: #ed1c24;
  border: 1px solid #ed1c24;
}

.pc-grid-wrapper .pc-btn--outline:hover {
  background-color: #fde8e8;
  cursor: pointer;
}

.pc-grid-wrapper .pc-btn__arrow {
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.pc-grid-wrapper .pc-btn:hover .pc-btn__arrow {
  transform: translateX(2px);
}

/* =========================================
   Tablet - 768px and below
========================================= */

@media (max-width: 768px) {
  .pc-grid-wrapper .pc-grid-wrapper {
    padding: 16px;
  }

  .pc-grid-wrapper .pc-grid-wrapper .cards-container {
    gap: 16px;
  }

  .pc-grid-wrapper .pc-grid-wrapper .pc-card {
    flex: 0 0 340px;
    width: 340px;
    min-width: 340px;
    max-width: 340px;
  }
}

/* =========================================
   Mobile - 480px and below
========================================= */

@media (max-width: 480px) {
  .pc-grid-wrapper {
    padding: 12px;
  }

  .pc-grid-wrapper .cards-container {
    gap: 12px;
  }

  .pc-grid-wrapper .pc-card {
    flex: 0 0 340px;
    width: 340px;
    min-width: 340px;
    max-width: 340px;
    padding: 20px 16px;
  }

  .pc-grid-wrapper .pc-card__title {
    font-size: 22px;
  }

  .pc-grid-wrapper .pc-card__body {
    min-height: 215px;
  }
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  .pc-grid-wrapper .pc-grid {
    scroll-behavior: auto;
  }

  .pc-grid-wrapper .pc-btn,
  .pc-grid-wrapper .pc-btn__arrow {
    transition: none;
  }
}
