/* ==========================================================================
   REI DOS COINS - Product & Category Page Stylesheet
   Faithful to the official Rei dos Coins visual identity
   ========================================================================== */

/* --- Breadcrumb Styling --- */
.breadcrumb-container {
  background: #f7f7fa;
  border-bottom: 1px solid #e9e9f0;
  padding: 12px 0;
  margin-bottom: 25px;
}

.breadcrumb-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
}

.breadcrumb-list li {
  display: flex;
  align-items: center;
  color: #666;
}

.breadcrumb-list li a {
  color: var(--rdc-blue);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

.breadcrumb-list li a:hover {
  color: var(--rdc-red);
}

.breadcrumb-list li .separator {
  margin: 0 6px;
  color: #999;
  font-size: 11px;
}

.breadcrumb-list li.active {
  color: #888;
  font-weight: 400;
}

/* --- Product Header / Hero Banner --- */
.product-hero {
  background: linear-gradient(135deg, #1e1e3b 0%, #2c2c56 100%);
  border-radius: 12px;
  padding: 24px;
  color: #ffffff;
  margin-bottom: 30px;
  box-shadow: 0 8px 24px rgba(44, 44, 86, 0.15);
  display: flex;
  align-items: center;
  gap: 24px;
  position: relative;
  overflow: hidden;
}

.product-hero::after {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(228, 21, 63, 0.25) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.product-hero-thumb {
  width: 100px;
  height: 140px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
  background: #111;
  border: 2px solid rgba(255, 255, 255, 0.15);
}

.product-hero-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-hero-info {
  flex-grow: 1;
}

.product-hero-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.badge-instant {
  background: #00ed80;
  color: #0b6020;
  font-weight: 800;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-official {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-weight: 600;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 20px;
}

.badge-category {
  background: #e4153f;
  color: #ffffff;
  font-weight: 700;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 20px;
}

.product-hero-title {
  font-size: 26px;
  font-weight: 800;
  margin: 0 0 8px 0;
  letter-spacing: 0.2px;
}

.product-hero-desc {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
  max-width: 700px;
  line-height: 1.5;
}

/* --- Section Heading --- */
.section-title-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid #e9e9f0;
  padding-bottom: 10px;
  margin-bottom: 22px;
}

.section-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--rdc-blue);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-title span.count {
  font-size: 13px;
  font-weight: 600;
  color: #777;
}

/* --- Product Packages Grid --- */
.packages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 20px;
  margin-bottom: 45px;
}

.package-card {
  background: #ffffff;
  border: 1px solid #e2e2ec;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
}

.package-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(44, 44, 86, 0.12);
  border-color: #c9c9df;
}

.package-card-img-wrap {
  background: #f7f7fa;
  padding: 16px;
  text-align: center;
  border-bottom: 1px solid #f0f0f5;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.package-card-img-wrap img {
  max-height: 130px;
  max-width: 90%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.package-card:hover .package-card-img-wrap img {
  transform: scale(1.05);
}

.package-cashback-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #0b6020;
  color: #00ed80;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 12px;
  letter-spacing: 0.3px;
}

.package-card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.package-card-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--rdc-blue);
  margin: 0 0 10px 0;
  line-height: 1.35;
  min-height: 38px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.package-card-price-row {
  margin-bottom: 12px;
}

.package-card-price {
  font-size: 20px;
  font-weight: 900;
  color: #1e1e3b;
}

.package-card-price small {
  font-size: 11px;
  color: #666;
  font-weight: 600;
  display: block;
  margin-top: 2px;
}

/* Package Card Action Buttons */
.package-card-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
}

.package-btn-add-cart {
  background: #f1f4f9;
  color: var(--rdc-blue);
  border: 1.5px solid #cdd7e5;
  border-radius: 6px;
  padding: 9px 12px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  transition: all 0.2s ease;
}

.package-btn-add-cart:hover {
  background: #e2ecf9;
  border-color: var(--rdc-blue);
  color: var(--rdc-blue);
  transform: translateY(-1px);
}

.package-btn-buy {
  background: linear-gradient(135deg, #e61c34 0%, #cc142b 100%);
  color: #ffffff;
  border: none;
  border-radius: 6px;
  padding: 11px 12px;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  box-shadow: 0 4px 12px rgba(230, 28, 52, 0.25);
  transition: all 0.2s ease;
}

.package-btn-buy:hover {
  background: linear-gradient(135deg, #f5223b 0%, #db172e 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(230, 28, 52, 0.38);
}

.package-btn-buy:active,
.package-btn-add-cart:active {
  transform: scale(0.98);
}

/* --- Instructions & FAQ Accordion --- */
.instructions-section {
  background: #fdfdfd;
  border: 1px solid #e5e5ed;
  border-radius: 12px;
  padding: 26px;
  margin-bottom: 50px;
}

.instructions-header {
  margin-bottom: 20px;
}

.instructions-header h2 {
  font-size: 18px;
  font-weight: 800;
  color: var(--rdc-blue);
  margin: 0 0 6px 0;
}

.instructions-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin-bottom: 25px;
}

.step-card {
  background: #ffffff;
  border: 1px solid #ebebf2;
  border-radius: 8px;
  padding: 16px;
  display: flex;
  gap: 14px;
}

.step-num {
  background: var(--rdc-blue);
  color: #ffffff;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
  flex-shrink: 0;
}

.step-content h3 {
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 4px 0;
  color: #2c2c56;
}

.step-content p {
  font-size: 12px;
  color: #666;
  margin: 0;
  line-height: 1.45;
}

.faq-box {
  border-top: 1px dashed #dcdce6;
  padding-top: 20px;
  margin-top: 15px;
}

.faq-item {
  margin-bottom: 12px;
}

.faq-question {
  font-weight: 700;
  color: var(--rdc-blue);
  font-size: 13px;
  margin-bottom: 3px;
}

.faq-answer {
  font-size: 12px;
  color: #666;
  line-height: 1.5;
}

/* Responsive adjustments */
@media screen and (max-width: 767px) {
  .product-hero {
    flex-direction: column;
    text-align: center;
    padding: 20px 16px;
  }
  
  .product-hero-thumb {
    width: 90px;
    height: 125px;
  }
  
  .product-hero-badges {
    justify-content: center;
  }
  
  .product-hero-title {
    font-size: 22px;
  }
  
  .packages-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  
  .package-card-img-wrap {
    height: 130px;
    padding: 10px;
  }
  
  .package-card-title {
    font-size: 12px;
    min-height: 32px;
  }
  
  .package-card-price {
    font-size: 16px;
  }
}

@media screen and (max-width: 520px) {
  .packages-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .package-card {
    border-radius: 12px;
  }

  .package-card-img-wrap {
    height: 160px;
  }

  .package-card-title {
    font-size: 14px;
    min-height: auto;
  }

  .package-card-price {
    font-size: 20px;
  }

  .package-btn-add-cart {
    padding: 12px;
    font-size: 13px;
    border-radius: 8px;
  }

  .package-btn-buy {
    padding: 13px;
    font-size: 14px;
    border-radius: 8px;
  }
}
