/* Offer Details – Product detail page (Figma) */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;800&family=Inter:wght@400;600;800&display=swap');

/* Page wrapper – Ecom Product cards 1 outside */
.offer-details-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 120px;
  gap: 60px;
  max-width: 1440px;
  margin: 0 auto;
  background: #FFFFFF;
  box-sizing: border-box;
}

@media (max-width: 1200px) {
  .offer-details-page {
    padding: 40px 40px;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .offer-details-page {
    padding: 32px 20px;
    gap: 32px;
  }
}

/* Product detail combination – hero row */
.offer-detail-combo {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: flex-start;
  padding: 0;
  gap: 60px;
  width: 100%;
  max-width: 1200px;
  background: #FFFFFF;
}

@media (max-width: 1024px) {
  .offer-detail-combo {
    flex-direction: column;
    align-items: stretch;
    gap: 40px;
  }
}

/* Product detail image column */
.offer-detail-image-col {
  width: 570px;
  max-width: 100%;
  height: 690px;
  flex: none;
  position: relative;
}

@media (max-width: 768px) {
  .offer-detail-image-col {
    height: 360px;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .offer-detail-image-col {
    height: 280px;
  }
}

.offer-detail-image-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 16px;
  overflow: hidden;
  background: #f1f1f1;
}

.offer-detail-image-wrap img {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
}

/* Favorite icon – top right on image */
.offer-detail-favorite {
  position: absolute;
  width: 24px;
  height: 24px;
  right: 16px;
  top: 16px;
  z-index: 2;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.9);
  border-radius: 50%;
  padding: 4px;
}

.offer-detail-favorite i {
  font-size: 16px;
  color: #000;
}

.offer-detail-favorite.active i {
  color: #c00;
}

/* AJAX-injected favorite button inside our wrapper */
.offer-detail-favorite .btn-offer {
  display: inline !important;
  background: none !important;
  border: none !important;
  padding: 0 !important;
  position: static !important;
}
.offer-detail-favorite .btn-offer span {
  cursor: pointer;
  display: inline-block;
}

/* Product detail info column */
.offer-detail-info-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0;
  gap: 64px;
  width: 570px;
  max-width: 100%;
  flex: none;
}

@media (max-width: 1024px) {
  .offer-detail-info-col {
    width: 100%;
  }
}

.offer-detail-info-inner {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  padding: 0;
  gap: 30px;
  width: 100%;
  flex: 1;
}

/* Frame 330 – title, badge, description */
.offer-detail-frame330 {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0;
  gap: 32px;
  width: 100%;
}

/* Product title – Headline H2 */
.offer-detail-title {
  width: 100%;
  margin: 0;
  font-family: 'Inter', sans-serif;
  font-style: normal;
  font-weight: 800;
  font-size: 48px;
  line-height: 56px;
  letter-spacing: -0.02em;
  color: #000000;
}

@media (max-width: 768px) {
  .offer-detail-title {
    font-size: 32px;
    line-height: 40px;
  }
}

/* Badge row – category + stars */
.offer-detail-badge-row {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 0;
  gap: 4px;
  width: 100%;
  height: auto;
  flex-wrap: wrap;
}

.offer-detail-badge {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 2px 10px;
  gap: 4px;
  height: 20px;
  background: #000000;
  border-radius: 16px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0.1em;
  text-transform: capitalize;
  color: #FFFFFF;
  text-decoration: none;
}

.offer-detail-badge:hover {
  color: #FFFFFF;
  opacity: 0.9;
}

.offer-detail-stars {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 0;
  gap: 4px;
}

.offer-detail-stars .star {
  width: 24px;
  height: 24px;
  color: #000;
}

.offer-detail-stars .rating-num {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  color: #000000;
}

/* Short description – Body/Small */
.offer-detail-short-desc {
  width: 100%;
  margin: 0;
  font-family: 'Inter', sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  color: #000000;
}

/* Price box – gray background */
.offer-detail-price-box {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 16px;
  gap: 8px;
  width: 100%;
  background: #F1F1F1;
  border-radius: 8px;
}

.offer-detail-price-row1 {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.offer-detail-price-label {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  color: #000000;
}

.offer-detail-discount-pct {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  text-align: right;
  color: #000000;
}

.offer-detail-price-row2 {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.offer-detail-price-current {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 24px;
  line-height: 32px;
  letter-spacing: -0.02em;
  color: #000000;
}

.offer-detail-price-old {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 24px;
  line-height: 32px;
  letter-spacing: -0.02em;
  text-decoration-line: line-through;
  color: #000000;
}

.offer-detail-price-incvat {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  color: #000000;
}

/* Buttons row */
.offer-detail-buttons {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  padding: 0;
  gap: 8px;
  width: 100%;
}

@media (max-width: 600px) {
  .offer-detail-buttons {
    flex-direction: column;
    align-items: stretch;
  }
}

.offer-detail-btn-primary {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 20.5px 20px;
  gap: 4px;
  flex: 1;
  min-height: 60px;
  background: #1A6E83;
  border: none;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 16px;
  line-height: 24px;
  text-align: center;
  color: #FFFFFF;
  text-decoration: none;
  cursor: pointer;
}

.offer-detail-btn-primary:hover {
  background: #155a6b;
  color: #FFFFFF;
}

.offer-detail-btn-secondary {
  box-sizing: border-box;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 20.5px 20px;
  gap: 4px;
  min-width: 127px;
  height: 60px;
  border: 1px solid #000000;
  border-radius: 8px;
  background: transparent;
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 16px;
  line-height: 24px;
  text-align: center;
  color: #000000;
  text-decoration: none;
  cursor: pointer;
}

@media (max-width: 600px) {
  .offer-detail-btn-primary,
  .offer-detail-btn-secondary {
    width: 100%;
    min-width: 0;
  }
}

.offer-detail-btn-secondary:hover {
  background: #f1f1f1;
  color: #000000;
}

.offer-detail-btn-primary svg,
.offer-detail-btn-secondary svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

/* ---------- Product content section – Text left ---------- */
.offer-detail-content-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 60px 120px;
  gap: 120px;
  width: 100%;
  max-width: 1440px;
  background: #FFFFFF;
}

@media (max-width: 1200px) {
  .offer-detail-content-section {
    padding: 40px 24px;
    gap: 60px;
  }
}

.offer-detail-text-row {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  padding: 0;
  gap: 120px;
  width: 100%;
  max-width: 1200px;
}

@media (max-width: 1024px) {
  .offer-detail-text-row {
    flex-direction: column;
    gap: 40px;
  }
}

.offer-detail-sidebar-title {
  width: 360px;
  max-width: 100%;
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 48px;
  line-height: 56px;
  letter-spacing: -0.02em;
  color: #000000;
  margin: 0;
  flex: none;
}

@media (max-width: 768px) {
  .offer-detail-sidebar-title {
    font-size: 32px;
    line-height: 40px;
  }
}

.offer-detail-content-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0;
  gap: 64px;
  flex: 1;
  min-width: 0;
  max-width: 720px;
}

.offer-detail-content-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0;
  gap: 16px;
  width: 100%;
}

.offer-detail-content-block h3 {
  width: 100%;
  margin: 0;
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 32px;
  line-height: 40px;
  letter-spacing: -0.02em;
  color: #000000;
}

.offer-detail-content-block p {
  width: 100%;
  margin: 0;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 20px;
  line-height: 32px;
  color: #000000;
}

/* ---------- Testimonials section ---------- */
.offer-detail-testimonials {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 120px;
  gap: 60px;
  width: 100%;
  max-width: 1440px;
  background: #FFFFFF;
}

@media (max-width: 1200px) {
  .offer-detail-testimonials {
    padding: 60px 24px;
    gap: 40px;
  }
}

.offer-detail-testimonials-header {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0;
  gap: 30px;
  width: 100%;
  max-width: 1200px;
}

.offer-detail-testimonials-title {
  width: 100%;
  margin: 0;
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 48px;
  line-height: 56px;
  text-align: center;
  letter-spacing: -0.02em;
  color: #000000;
}

@media (max-width: 768px) {
  .offer-detail-testimonials-title {
    font-size: 32px;
    line-height: 40px;
  }
}

.offer-detail-testimonials-subtitle {
  width: 100%;
  margin: 0;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 20px;
  line-height: 32px;
  text-align: center;
  color: #000000;
}

.offer-detail-testimonials-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0;
  gap: 30px;
  width: 100%;
  max-width: 1200px;
}

.offer-detail-testimonials-row {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  padding: 0;
  gap: 30px;
  width: 100%;
  flex-wrap: wrap;
  justify-content: center;
}

.offer-detail-testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 30px;
  gap: 30px;
  width: 380px;
  max-width: 100%;
  background: #F1F1F1;
  border-radius: 16px;
  box-sizing: border-box;
}

.offer-detail-testimonial-name-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 0;
  gap: 10px;
  width: 100%;
}

.offer-detail-testimonial-avatar {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #D9D9D9;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.offer-detail-testimonial-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.offer-detail-testimonial-name-block {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 0;
  gap: 4px;
}

.offer-detail-testimonial-name {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 16px;
  line-height: 24px;
  color: #000000;
  margin: 0;
}

.offer-detail-testimonial-role {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 12px;
  line-height: 16px;
  color: #000000;
  margin: 0;
}

.offer-detail-testimonial-quote {
  font-family: 'Inter', sans-serif;
  font-style: italic;
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  color: #000000;
  margin: 0;
  width: 100%;
}

/* ---------- Rate / Review section (Set – Figma) ---------- */
.offer-detail-rating-section {
  width: 100%;
  max-width: 1200px;
  padding: 60px 0 0;
  border-top: 1px solid #eee;
}

.offer-detail-rate-set {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0;
  gap: 32px;
  width: 100%;
}

.offer-detail-rate-title {
  margin: 0;
  font-family: 'Cairo', sans-serif;
  font-weight: 800;
  font-size: 32px;
  line-height: 40px;
  color: #000000;
}

.offer-detail-rate-frame {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0;
  gap: 16px;
  width: 100%;
}

/* Stars row – 5 stars, 25×24px, gap 3px */
.offer-detail-rate-stars {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  padding: 0;
  gap: 3px;
  width: 137px;
  height: 24px;
}

.offer-detail-rate-stars input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
}

.offer-detail-rate-stars label {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 25px;
  height: 24px;
  margin: 0;
  cursor: pointer;
  color: #F2F2F2;
  font-size: 24px;
  line-height: 1;
}

.offer-detail-rate-stars label:hover {
  color: #FFB800;
}

/* Filled stars when a rating is selected (inputs first, then labels star-1..star-5) */
.offer-detail-rate-stars input#rating1:checked ~ .offer-detail-star-1,
.offer-detail-rate-stars input#rating2:checked ~ .offer-detail-star-1,
.offer-detail-rate-stars input#rating3:checked ~ .offer-detail-star-1,
.offer-detail-rate-stars input#rating4:checked ~ .offer-detail-star-1,
.offer-detail-rate-stars input#rating5:checked ~ .offer-detail-star-1 { color: #FFB800; }
.offer-detail-rate-stars input#rating2:checked ~ .offer-detail-star-2,
.offer-detail-rate-stars input#rating3:checked ~ .offer-detail-star-2,
.offer-detail-rate-stars input#rating4:checked ~ .offer-detail-star-2,
.offer-detail-rate-stars input#rating5:checked ~ .offer-detail-star-2 { color: #FFB800; }
.offer-detail-rate-stars input#rating3:checked ~ .offer-detail-star-3,
.offer-detail-rate-stars input#rating4:checked ~ .offer-detail-star-3,
.offer-detail-rate-stars input#rating5:checked ~ .offer-detail-star-3 { color: #FFB800; }
.offer-detail-rate-stars input#rating4:checked ~ .offer-detail-star-4,
.offer-detail-rate-stars input#rating5:checked ~ .offer-detail-star-4 { color: #FFB800; }
.offer-detail-rate-stars input#rating5:checked ~ .offer-detail-star-5 { color: #FFB800; }

/* Input – textarea */
.offer-detail-rate-input-wrap {
  width: 100%;
  max-width: 1200px;
  height: 130px;
}

.offer-detail-rate-input {
  box-sizing: border-box;
  display: block;
  width: 100%;
  max-width: 1200px;
  min-height: 130px;
  padding: 16px 12px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  color: #000000;
  resize: vertical;
}

.offer-detail-rate-input::placeholder {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 12px;
  line-height: 16px;
  color: #555556;
}

/* Button / Single – Add review */
.offer-detail-rate-btn {
  display: inline-flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 12px 20px;
  gap: 4px;
  width: 217px;
  height: 48px;
  background: #1A6E83;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 16px;
  line-height: 24px;
  text-align: center;
  color: #FFFFFF;
}

.offer-detail-rate-btn:hover {
  background: #155a6d;
  color: #FFFFFF;
}

.offer-detail-rate-actions {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* Override old .online-offers when using this page */
body .offer-details-page .online-offers {
  padding: 0;
  max-width: none;
}

.offer-details-page .container {
  max-width: none;
  width: 100%;
  padding: 0;
}

/* ========== Company detail hero (Bremen-style: pills + View Times) ========== */
.company-detail-hero-info .offer-detail-frame330 {
  gap: 24px;
}

.company-detail-info-pills {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.company-detail-info-pill {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: #F1F1F1;
  border-radius: 12px;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 20px;
  color: #000;
}

.company-detail-info-pill i {
  color: #1A6E83;
  font-size: 16px;
  flex-shrink: 0;
}

.company-detail-pill-with-btn {
  gap: 10px;
  flex-wrap: wrap;
}

.company-detail-view-times-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  background: #1A6E83;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 14px;
  line-height: 20px;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
}

.company-detail-view-times-btn:hover {
  background: #155a6b;
  color: #fff;
}

.company-detail-read-more {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 16px;
  line-height: 24px;
  color: #1A6E83;
  text-decoration: none;
}

.company-detail-read-more:hover {
  color: #155a6b;
  text-decoration: underline;
}
