/* ===== FONTS - Using Rubik from Google Fonts ===== */
@import url('https://fonts.googleapis.com/css2?family=Rubik:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

/* DEBUG COMPLETE: CSS now loads correctly with product-detail-page class applied to container */

/* ===== GENERAL ENHANCEMENTS ===== */
.product-detail-page {
  font-family: 'Rubik', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background-color: #f8fafc;
  min-height: 100vh;
  line-height: 1.6;
  font-feature-settings: 'kern' 1, 'liga' 1; /* Better typography */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body {
      font-family: var(--font-sans);
      background-color:#fafafacc !important;
      color: var(--bs-dark);
      
    }

/* ===== BOOTSTRAP OVERRIDES ===== */
.py-4 {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

/* ===== NEW 3-COLUMN PRODUCT HEADER ===== */
.product_header_wrapper {
  width: 100vw;
  max-width: none;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  background: #f4f8fb;
  
  border: 1px solid #e2e8f0;
  overflow: hidden;
 margin-bottom: 0rem !important;
}

.product_header_wrapper .row {
  margin: 0;
  padding: 0 5rem;
  height: 100%;
}

.product_header_wrapper .col-lg-2,
.product_header_wrapper .col-lg-6,
.product_header_wrapper .col-lg-4 {
  padding: 1rem;
  display: flex;
  flex-direction: column;
}

/* ===== PRODUCT HEADER ROW - EQUAL HEIGHT LAYOUT ===== */
.product-header-row {
  display: flex;
  align-items: stretch;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.product-header-row .col-lg-4,
.product-header-row .col-lg-8 {
  display: flex;
  flex-direction: column;
}

.product-header-row .product-gallery,
.product-header-row .product-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* ===== PRODUCT GALLERY ===== */
.product-gallery {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.main-image-container {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: white;
  transition: box-shadow 0.2s ease;
  /*flex: 1;*/
  min-height: 200px;
  max-height: 250px;
}

.main-image-container img {
  width: 100%;
  height: 100%;
  object-fit: contain;
 
}

.main-product-image {
  border: none;
  transition: transform 0.2s ease;
  filter: brightness(1);
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #ffffff00;
}

.main-product-image:hover {
  transform: scale(1.02);
  filter: brightness(1.02);
}

.placeholder-image {
  border-radius: 8px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  width: 100%;
  height: 100%;
  min-height: 200px;
  max-height: 250px;
}

/* ===== PRODUCT INFO ===== */
.product-info {
  background: transparent;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  border: none;
  transition: none;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.product-info:hover {
  box-shadow: none;
}

.product-info h1 {
  font-size: 1.75rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.product-info .text-muted {
  font-size: 0.95rem;
  color: #64748b;
  margin-bottom: 1rem;
}

/* ===== NAME AND RATING SECTION ===== */
.name_and_rating {
  margin-bottom: 1rem;
}

.name_and_rating h1 {
  margin-bottom: 0.5rem;
}

/* ===== INLINE BULLET POINTS ===== */
.inline_bullet_points {
  margin-bottom: 1rem;
}

.inline_bullet_points .badge {
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.8rem;
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  background-color: #f1f5f9;
  color: #475569;
  border: 1px solid #adb2b8a8;
  transition: all 0.2s ease;
}

.inline_bullet_points .clickable-badge {
  cursor: pointer;
  transition: all 0.2s ease;
}

.inline_bullet_points .clickable-badge:hover {
  background-color: #3b82f6 !important;
  color: white !important;
  border-color: #3b82f6 !important;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.inline_bullet_points .clickable-spec {
  cursor: help;
  transition: all 0.2s ease;
}

.inline_bullet_points .clickable-spec:hover {
  background-color: #dbeafe !important;
  color: #1e40af !important;
  border-color: #3b82f6 !important;
}

/* ===== VARIATIONS SECTION ===== */
.variations_section {
  margin-bottom: 1rem;
  min-height: 40px; /* Placeholder space */
}

/* ===== EXTRA SECTIONS ===== */
.extra_1,
.extra_2 {
  margin-bottom: 1rem;
}

.product-description-short p {
  font-size: 0.9rem;
  color: #64748b;
  line-height: 1.4;
  margin-bottom: 0;
}

/* ===== PRICE INFO COLUMN ===== */
.price-info {
  background: white;
  border-radius: 10px;
  padding: 10px;
  box-shadow: 0 2px 8px #dddddd;
  border: 1px solid #3b82f636;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  text-align: center;
}

/* ===== PRICE DISPLAY ===== */
.price-display {
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: #f8fafc;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  width: 100%;


  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--mm-text-muted);


}

.price-display .h3 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #059669;
  margin: 0.5rem 0;
}

.price-display small {
  font-size: 0.85rem;
  color: #64748b;
  font-weight: 500;
}

.price-details {
  font-size: 0.8rem;
  color: #64748b;
  margin-top: 0.5rem;
}

.price-details div {
  margin-bottom: 0.25rem;
}

/* ===== PRICE CHART LINK ===== */
.price-chart-link {
  margin-bottom: 1.5rem;
  width: 100%;
}

.price-chart-link .btn {
 width: 100%;
 background: linear-gradient(135deg, #05294c 0%, #0a4a7a 100%);
 border: 2px solid #05294c;
 color: white;
 font-weight: 600;
 font-size: 1rem;
 padding: 0.75rem 1rem;
 border-radius: 0.5rem;
 text-decoration: none;
 display: inline-flex;
 align-items: center;
 justify-content: center;
 gap: 0.5rem;
 transition: all 0.3s ease;
 box-shadow: 0 2px 8px rgba(5, 41, 76, 0.2);
}

.price-chart-link .btn:hover {
  background: linear-gradient(135deg, #0a4a7a 0%, #05294c 100%);
    border-color: #0a4a7a;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(5, 41, 76, 0.3);
    text-decoration: none;
}

/* ===== ACTION BUTTONS ===== */
.action-buttons {
  width: 100%;
}

.action-buttons .btn {
 
 border: 2px solid #05294c;
 color: white;
 font-weight: 600;
 font-size: 1rem;
 padding: 0.75rem 1rem;
 border-radius: 0.5rem;
 text-decoration: none;
 display: inline-flex;
 align-items: center;
 justify-content: center;
 gap: 0.5rem;
 transition: all 0.3s ease;
 box-shadow: 0 2px 8px rgba(5, 41, 76, 0.2);
}

.action-buttons .btn:last-child {
  margin-bottom: 0;
}

.action-buttons .btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.action-buttons .btn-outline-danger {
  background: transparent;
  border-color: #dc2626;
  color: #dc2626;
}

.action-buttons .btn-outline-danger:hover {
  background: #dc2626;
  color: white;
}

.action-buttons .btn-outline-warning {
  background: transparent;
  border-color: #d97706;
  color: #d97706;
}

.action-buttons .btn-outline-warning:hover {
  background: #d97706;
  color: white;
}

/* ===== ACTION BUTTONS ===== */
.product-info .btn {
  border-radius: 6px;
  padding: 0.6rem 1.2rem;
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  margin-top: auto;
}

.product-info .btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.product-info .btn-primary {
  background-color: #3b82f6;
  border-color: #3b82f6;
  color: white;
}

.product-info .btn-primary:hover {
  background-color: #2563eb;
  border-color: #2563eb;
}

.product-info .btn-outline-primary {
  background-color: transparent;
  border-color: #3b82f6;
  color: #3b82f6;
}

.product-info .btn-outline-primary:hover {
  background-color: #3b82f6;
  color: white;
}

/* ===== PRODUCT DESCRIPTION ===== */
.product-description {
  background: white;
  border-radius: 8px;
  padding: 1rem;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  margin-bottom: 1rem;
  flex: 1;
}

.product-description h6 {
  color: #1e293b;
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.product-description p {
  color: #475569;
  line-height: 1.5;
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* ===== TABS ===== */
.nav-tabs {
  border: none;
  background: transparent;
  padding: 0.5rem 0;
  margin-bottom: 0rem !important;
  position: relative;
  border-bottom: 1px solid #e2e8f0;
}

.nav-tabs .nav-link {
  border: none;
  border-radius: 0;
  color: #000000;
  font-weight: 500;
  padding: 0.75rem 1.25rem;
  margin: 0;
  transition: color 0.2s ease;
  background: transparent;
  position: relative;
}

.nav-tabs .nav-link:hover {
  color: #39bcd3;
  background: transparent;
}

.nav-tabs .nav-link.active {
  background: transparent;
  color: #39bcd3;
  font-weight: 600;
}

.nav-tabs .nav-link i {
  margin-right: 0.5rem;
  font-size: 1rem;
}

/* Tab Slider - Sliding Underline */
.tab-slider {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background-color: #39bcd3;
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
}

/* ===== TAB CONTENT ===== */
.tab-content {
  background: white;
  overflow: hidden;
}

.tab-pane {
  padding: 0rem;
}

/* ===== PRODUCT OFFERS ===== */
.productOffers {
  background: white;
  overflow: hidden;


}

.productOffers-header {
  background: #f8fafc;
  color: #1e293b;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid #e2e8f0;
}

.productOffers-headerTitle {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
}

.productOffers-headerTitle i {
  margin-right: 0.75rem;
  color: #3b82f6;
}

.productOffer {
  display: flex;
  flex-direction: column;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid #f1f5f9;
  min-height: 80px;
  transition: background-color 0.2s ease;
}

.productOffer:hover {
  background-color: #f8fafc;
}

.productOffer:last-child {
  border-bottom: none;
}

/* ===== OFFER MAIN ROW - INLINE LAYOUT ===== */
.offer-main-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
}

/* ===== OFFER ELEMENTS ===== */
.merchant-col {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
}

.merchant-icon {
  font-size: 1.5rem;
  color: #3b82f6;
  flex-shrink: 0;
  padding: 0.5rem;
  background: #f1f5f9;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.merchant-icon:hover {
  background: #e2e8f0;
  transform: scale(1.05);
}

.merchant-icon.bi-amazon {
  background: #fef3c7;
  color: #d97706;
}

.merchant-name {
  font-weight: 600;
  font-size: 1rem;
  color: #1e293b;
  flex-shrink: 0;
  margin-right: 0.5rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.merchant-rating {
  font-size: 0.9rem;
  color: #f59e0b;
  flex-shrink: 0;
}

.stars {
  font-size: 0.8rem;
  margin-right: 0.25rem;
}

.rating-text {
  font-size: 0.8rem;
  color: #64748b;
  margin-left: 0.25rem;
}

.price-col {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin: 0 1rem;
}

.price {
  font-size: 1.5rem;
  font-weight: 700;
  color: #059669;
  white-space: nowrap;
}

.action-col {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-shrink: 0;
}

.offer-btn {
  padding: 0.75rem 1.5rem;
  font-size: 0.95rem;
  border-radius: 6px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.offer-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-text-short {
  display: none;
}

/* ===== BOTTOM ROW ===== */
.offer-bottom-row {
  display: flex;
  gap: 2.5rem;
  font-size: 0.9rem;
  color: #64748b;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid #f1f5f9;
}

.shipping-col, .availability-col, .similar-products-col {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.shipping-label, .availability-label {
  font-weight: 600;
  color: #475569;
  font-size: 0.85rem;
}

.shipping-cost {
  color: #dc2626;
  font-weight: 600;
  background: #fef2f2;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
}

.shipping-free {
  color: #16a34a;
  font-weight: 600;
  background: #f0fdf4;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
}

.similar-products-link {
  color: #3b82f6;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.85rem;
  transition: color 0.2s ease;
}

.similar-products-link:hover {
  color: #2563eb;
  text-decoration: underline;
}

.similar-products-link i {
  font-size: 0.8rem;
}

/* ===== BADGES ===== */
.badge {
  border-radius: 20px;
  font-weight: 500;
  padding: 0.4rem 0.8rem;
  font-size: 0.8rem;
  border: none;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  background: #ffffff !important;
}

.badge.bg-success {
  background-color: #dcfce7 !important;
  color: #166534 !important;
}

.badge.bg-warning {
  background-color: #fef3c7 !important;
  color: #92400e !important;
}

.badge.bg-info {
  background-color: #dbeafe !important;
  color: #1e40af !important;
}

/* ===== SIMILAR PRODUCTS ===== */
.product-card {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.2s ease;
  overflow: hidden;
  background: white;
}

.product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  border-color: #3b82f6;
}

.product-card .card-img-container {
  position: relative;
  overflow: hidden;
  height: 200px;
  background: #f8fafc;
}

.product-card .card-img-top {
  transition: transform 0.2s ease;
  object-fit: cover;
  height: 100%;
  width: 100%;
}

.product-card:hover .card-img-top {
  transform: scale(1.05);
}

.similarity-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 10;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.4rem 0.6rem;
  border-radius: 20px;
  background: #3b82f6;
  color: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.product-card .card-body {
  padding: 1.25rem;
}

.product-card .card-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.product-card .text-muted {
  font-size: 0.85rem;
  color: #64748b;
  margin-bottom: 0.25rem;
}

.product-card .card-body .d-flex {
  margin-top: 1rem;
}

.product-card .btn {
  border-radius: 6px;
  padding: 0.5rem 1rem;
  font-weight: 500;
  font-size: 0.85rem;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.product-card .btn-outline-primary {
  background: transparent;
  border-color: #3b82f6;
  color: #3b82f6;
}

.product-card .btn-outline-primary:hover {
  background: #3b82f6;
  color: white;
  transform: translateY(-1px);
}

.product-card .card-footer {
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  padding: 0.75rem 1.25rem;
}

.product-card .card-footer .d-flex {
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: #64748b;
}

/* ===== ALERTS ===== */
.alert {
  border: none;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  padding: 1.5rem;
  margin-bottom: 2rem;
  border: 1px solid #e2e8f0;
}

.alert-warning {
  background: #fef3c7;
  color: #92400e;
  border-color: #f59e0b;
}

.alert-info {
  background: #dbeafe;
  color: #1e40af;
  border-color: #3b82f6;
}

.alert-success {
  background: #dcfce7;
  color: #166534;
  border-color: #16a34a;
}

.alert i {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.alert h5 {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.alert p {
  opacity: 0.9;
  margin-bottom: 0;
}

/* ===== LOADING STATES ===== */
.spinner-border {
  width: 2rem;
  height: 2rem;
  border-width: 0.25em;
  color: #3b82f6;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1200px) {
  .product_header_wrapper .col-lg-2,
  .product_header_wrapper .col-lg-6,
  .product_header_wrapper .col-lg-4 {
    padding: 1.25rem;
  }

  .main-image-container {
    min-height: 180px;
    max-height: 220px;
  }

  .placeholder-image {
    min-height: 180px;
    max-height: 220px;
  }

  .product-header-row {
    gap: 0.75rem;
  }
  
  .merchant-col {
    min-width: auto;
  }

  .price-col {
    flex: 0 0 120px;
  }

  .action-col {
    flex: 0 0 160px;
  }

  .offer-bottom-row {
    gap: 2rem;
  }
}

@media (max-width: 992px) {
  .product_header_wrapper .col-lg-2,
  .product_header_wrapper .col-lg-6,
  .product_header_wrapper .col-lg-4 {
    padding: 1rem;
  }

  .main-image-container {
    min-height: 160px;
    max-height: 200px;
  }

  .placeholder-image {
    min-height: 160px;
    max-height: 200px;
  }

  .product-header-row {
    flex-direction: column;
    gap: 1rem;
  }
  
  .product-header-row .col-lg-4,
  .product-header-row .col-lg-8 {
    flex: none;
  }
  
  .product-info {
    padding: 1.25rem;
  }

  .product-info h1 {
    font-size: 1.5rem;
  }

  .price-summary {
    padding: 0.875rem;
  }

  .price-summary .h4 {
    font-size: 1.75rem;
  }

  .productOffer {
    padding: 1.25rem 1.5rem;
    min-height: 70px;
  }



  .merchant-name {
    font-size: 0.95rem;
  }

  .merchant-rating {
    font-size: 0.85rem;
  }

  .price {
    font-size: 1.3rem;
  }

  .price-col {
    flex: 0 0 110px;
  }

  .action-col {
    flex: 0 0 140px;
  }

  .offer-btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
  }

  .offer-bottom-row {
    gap: 1.5rem;
    font-size: 0.85rem;
  }
}

@media (max-width: 768px) {
  .product_header_wrapper {
    margin-bottom: 1.5rem;
  }

  .product_header_wrapper .col-lg-2,
  .product_header_wrapper .col-lg-6,
  .product_header_wrapper .col-lg-4 {
    padding: 0.75rem;
  }

  .main-image-container {
    min-height: 140px;
    max-height: 180px;
  }

  .placeholder-image {
    min-height: 140px;
    max-height: 180px;
  }

  .price-display .h3 {
    font-size: 1.5rem;
  }

  .product-gallery .main-image-container {
    margin-bottom: 1.5rem;
  }

  .product-info {
    padding: 1rem;
  }

  .product-info h1 {
    font-size: 1.5rem;
  }

  .price-summary {
    padding: 1rem;
  }

  .price-summary .h4 {
    font-size: 1.75rem;
  }

  .productOffers-header {
    padding: 1.25rem 1.5rem;
  }

  .productOffers-headerTitle {
    font-size: 1.1rem;
  }

  .productOffer {
    padding: 1rem 1.25rem;
    min-height: 60px;
  }

  .offer-main-row {
    margin-bottom: 0.5rem;
  }



  .merchant-icon {
    font-size: 1.25rem;
  }

  .merchant-name {
    font-size: 0.9rem;
  }

  .merchant-rating {
    font-size: 0.75rem;
  }

  .stars {
    font-size: 0.7rem;
  }

  .price {
    font-size: 1.1rem;
  }

  .price-col {
    flex: 0 0 90px;
  }

  .action-col {
    flex: 0 0 110px;
  }

  .offer-btn {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
  }

  .btn-text {
    display: none;
  }

  .btn-text-short {
    display: inline;
  }

  .offer-bottom-row {
    gap: 1.25rem;
    font-size: 0.8rem;
  }

  .shipping-label, .availability-label {
    font-size: 0.75rem;
  }

  .product-card .card-img-container {
    height: 180px;
  }

  .product-card .card-body {
    padding: 1rem;
  }

  .product-card .card-title {
    font-size: 0.9rem;
  }
}

@media (max-width: 576px) {
  /* ===== MOBILE LAYOUT STYLES ===== */

  /* Breadcrumb text size reduction */
  .breadcrumb-bar .breadcrumb {
    font-size: 0.75rem !important;
  }

  .breadcrumb-bar .breadcrumb-item {
    font-size: 0.75rem !important;
  }

  /* Mobile header layout - inline image and title */
  .mobile-header {
    padding: 1rem 0;
    position: relative;
  }

  .mobile-image-title {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding-left: 10px;
    padding-right: 5px;
  }

  .mobile-image {
    flex-shrink: 0;
    width: 100px;
    border: 1px solid #baacac;
    border-radius: 5px;
  }

  .mobile-main-image {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 0.375rem;
  }

  .mobile-placeholder {
    width: 100px;
    height: 100px;
  }

  .mobile-title-section {
    flex: 1;
    min-width: 0; /* Allow text to wrap */
  }

  .mobile-product-title {
    font-size: 1.1rem;
    line-height: 1.3;
    margin-bottom: 0.5rem;
    word-wrap: break-word;
    hyphens: auto;
  }

  .mobile-rating-stars {
    font-size: 0.9rem;
  }

  .mobile-rating-stars .bi {
    font-size: 0.85rem;
  }

  .mobile-rating-text {
    font-size: 0.85rem;
  }

  .mobile-price-display {
    margin-top: 0.5rem;
  }

  .mobile-price-display .price-text {
    text-align: left;
  }

  .mobile-price-display .mobile-favorite-alert {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
  }

  .mobile-price-display .mobile-favorite-alert .btn {
    width: 36px;
    height: 36px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
  }

  /* Mobile header favorite alert buttons - positioned bottom right */
  .mobile-header-favorite-alert {
    position: absolute;
    bottom: 0.5rem;
    right: 0.5rem;
    display: flex;
    gap: 0.5rem;
    z-index: 1000;
    background: rgba(255, 0, 0, 0.1); /* Debug background */
    padding: 0.5rem;
    border-radius: 0.5rem;
  }

  .mobile-header-favorite-alert .btn {
    width: 40px;
    height: 40px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    border: 2px solid white;
    transition: all 0.2s ease;
  }

  .mobile-header-favorite-alert .btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  }

  .mobile-header-favorite-alert .btn-outline-danger {
    background: rgba(255, 255, 255, 0.9);
    border-color: #dc2626;
    color: #dc2626;
  }

  .mobile-header-favorite-alert .btn-outline-danger:hover {
    background: #dc2626;
    color: white;
  }

  .mobile-header-favorite-alert .btn-outline-warning {
    background: rgba(255, 255, 255, 0.9);
    border-color: #d97706;
    color: #d97706;
  }

  .mobile-header-favorite-alert .btn-outline-warning:hover {
    background: #d97706;
    color: white;
  }

  .mobile-actions {
    border-top: 1px solid #e9ecef;
    padding-top: 1rem;
  }

  .mobile-price-chart .btn {
    font-size: 0.8rem;
    padding: 0.375rem 0.75rem;
  }

  .mobile-favorite-alert .btn {
    width: 40px;
    height: 40px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .mobile-bullet-points {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0 10px;
  }

  .mobile-bullet-points .badge {
    font-size: 0.75rem;
    padding: 0.375rem 0.5rem;
  }

  .mobile-description {
    font-size: 0.9rem;
    line-height: 1.4;
    padding: 0 10px;
  }

  /* Desktop layout hidden on mobile */
  .d-none.d-md-flex {
    display: none !important;
  }

  /* Product offers mobile adjustments */
  .productOffer {
    padding: 0.75rem 1rem;
    min-height: 55px;
  }

  .offer-main-row {
    margin-bottom: 0.25rem;
    /* Mobile layout: logo (left), name (center), button (right) */
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
  }

  .merchant-col {
    flex: 0 0 auto;
    order: 1; /* Logo on the left */
    margin: 0;
  }

  .merchant-icon {
    font-size: 1.1rem;
  }

  .merchant-name {
    font-size: 0.8rem;
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin: 0;
  }

  .merchant-rating {
    font-size: 0.7rem;
  }

  .stars {
    font-size: 0.65rem;
  }

  .price {
    font-size: 1.2rem; /* Larger font for mobile */
    font-weight: 800; /* Bolder font weight */
    color: #059669;
  }

  .price-col {
    display: none; /* Hide price column on mobile for Amazon offer */
  }

  .action-col {
    flex: 0 0 auto;
    order: 3; /* Button on the right */
    margin: 0;
    min-width: 85px;
    max-width: 100px;
  }

  .offer-btn {
    /* Use Bootstrap standard button styles */
    padding: 0.375rem 0.5rem; /* Smaller padding for mobile */
    font-size: 0.85rem; /* Smaller font for mobile */
    font-weight: 500; /* Medium weight */
    line-height: 1.2; /* Tighter line height */
    color: #fff; /* White text */
    background-color: #007bff; /* Bootstrap primary color */
    border: 1px solid #007bff; /* Bootstrap primary border */
    border-radius: 0.25rem; /* Bootstrap border-radius */
    box-shadow: none; /* No custom shadow */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem; /* Small gap between icon and text */
    position: relative; /* For positioning */
    width: 100%; /* Take full width of container */
    min-width: 70px; /* Minimum width */
    max-width: 100px; /* Maximum width to prevent overflow */
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out; /* Bootstrap transition */
    text-decoration: none; /* Remove link decoration */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    height: 32px; /* Fixed height for consistency */
  }

  .offer-btn:hover {
    color: #fff; /* Bootstrap hover color */
    background-color: #0056b3; /* Bootstrap btn-primary hover bg */
    border-color: #004085; /* Bootstrap btn-primary hover border */
    text-decoration: none; /* Remove link decoration on hover */
  }

  .offer-btn:focus {
    color: #fff;
    background-color: #0056b3;
    border-color: #004085;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25); /* Bootstrap focus shadow */
  }

  .offer-btn:active {
    color: #fff;
    background-color: #0056b3;
    border-color: #004085;
    background-image: none; /* Remove gradient on active */
    border-style: solid; /* Ensure solid border */
  }

  /* Hide all existing content */
  .offer-btn i,
  .offer-btn .btn-text,
  .offer-btn .btn-text-short {
    display: none !important;
  }

  /* Add custom content for regular offers */
  .offer-btn:after {
    content: "Vai";
    font-weight: 400; /* Match Bootstrap font-weight */
    color: #fff; /* White text */
    white-space: nowrap; /* Prevent text wrapping */
  }

  /* Amazon offer button specific styling */
  .amazon-offer .offer-btn:after {
    content: "Cerca";
    font-weight: 500;
  }

  /* Responsive adjustments for very small screens */
  @media (max-width: 480px) {
    .action-col {
      min-width: 85px; /* Slightly smaller minimum */
    }

    .offer-btn {
      padding: 0.25rem 0.5rem; /* Bootstrap btn-sm padding */
      font-size: 0.875rem; /* Bootstrap btn-sm font-size */
      line-height: 1.5; /* Bootstrap btn-sm line-height */
      border-radius: 0.2rem; /* Bootstrap btn-sm border-radius */
      min-width: 75px; /* Adjusted min-width */
      min-height: 31px; /* Bootstrap btn-sm min-height */
    }

    .offer-btn:after {
      font-size: 0.875rem; /* Match Bootstrap btn-sm font-size */
    }
  }

  .offer-bottom-row {
    gap: 1rem;
    font-size: 0.75rem;
    /* Mobile layout: shipping and availability inline, similar products below */
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .shipping-col, .availability-col {
    width: calc(50% - 0.5rem); /* Account for gap */
    flex: 0 0 calc(50% - 0.5rem);
  }

  .similar-products-col {
    width: 100%;
    flex-basis: 100%;
    border-top: 1px solid #e2e8f0;
    padding-top: 0.75rem;
    margin-top: 0.5rem;
  }

  /* Similar products mobile adjustments */
  .product-card .card-img-container {
    height: 160px;
  }

  .product-card .card-body {
    padding: 0.75rem;
  }

  .product-card .card-title {
    font-size: 0.85rem;
  }

  .product-card .card-footer {
    padding: 0.5rem 0.75rem;
  }

  .product-card .card-footer .d-flex {
    font-size: 0.75rem;
  }

  /* Alert mobile adjustments */
  .alert {
    padding: 1rem;
    margin-bottom: 1.5rem;
  }

  .alert i {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
  }

  .alert h5 {
    font-size: 1rem;
  }

  /* ===== MOBILE TABS IMPROVEMENTS ===== */
  /* Mobile tabs horizontal scroll layout */
  .nav-tabs {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
  }

  .nav-tabs::-webkit-scrollbar {
    display: none; /* Chrome, Safari, and Opera */
  }

  .nav-tabs .nav-item {
    flex-shrink: 0;
  }

  .nav-tabs .nav-link {
    white-space: nowrap;
    border: none;
    border-radius: 8px;
    color: #000000;
    font-weight: 500;
    font-size: 0.85rem;
    padding: 0.6rem 1rem;
    margin: 0;
    transition: all 0.2s ease;
    background: transparent;
    position: relative;
    min-width: fit-content;
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }

  .nav-tabs .nav-link:hover {
    color: #39bcd3;
    
    transform: translateY(-1px);
  }

  .nav-tabs .nav-link.active {
    font-weight: 600;    
    transform: translateY(-1px);
  }

  .nav-tabs .nav-link i {
    font-size: 0.9rem;
    margin-right: 0.25rem;
  }

  /* Mobile tab slider - enhanced for horizontal scroll */
  .tab-slider {
    position: absolute;
    bottom: 0.5rem;
    left: 0.5rem;
    height: 3px;
    background: linear-gradient(90deg, #39bcd3, #2dd4bf);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
    box-shadow: 0 1px 3px rgba(57, 189, 211, 0.4);
  }


  .tab-pane {
    padding: 0.5rem 0;
  }
}