.product-card-triexpot {
  border: 1px solid #e9ecef;
  transition: all 0.2s ease-in-out;
}

.product-card-triexpot:hover {
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
  border-color: #dee2e6;
}

.product-card-img-container {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
}

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

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

.image-overlay-icons {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.product-card-triexpot:hover .image-overlay-icons {
  opacity: 1;
}

.product-title-link:hover {
  color: #e8600c !important;
}

/* .product-card-footer {
  opacity: 0;
  transition: opacity 0.3s ease;
} */

/* .product-card-triexpot:hover .product-card-footer {
  opacity: 1;
} */

.product-card-footer .btn {
  font-size: 0.875rem;
  padding: 0.5rem 0.75rem;
}

.marketplace-header {
  font-family: Arial, sans-serif;
  z-index: 1020; /* Ensure it stays on top of other content */
}

.search-container {
  max-width: 650px;
  padding: 5px;
}

.search-container .form-control {
  border: none;
}

.search-container .form-control:focus {
  box-shadow: none;
  /* border-color: #e8600c; */
}

.search-container .btn {
  /* height: 44px; */
}

.search-container .btn-outline-secondary {
  /* border-left: none; */
  border: none;
  background: white;
  color: #6c757d;
}

.search-button,
.create-account-btn {
  /* background-color: #e8600c !important; */
  background-color: #e8600c !important;
  border-color: #e8600c !important;
  font-weight: 600;
  border: none;
}

.search-button:hover,
.create-account-btn:hover {
  background-color: #e65c00 !important;
  border-color: #e65c00 !important;
}

.user-actions .nav-link {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.marketplace-header .navbar {
  min-height: auto;
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
}

.marketplace-header .navbar .nav-link.active {
  border-bottom: 3px solid #e8600c;
  color: #e8600c !important;
}

.market_logo_navbar {
  height: 40px;
  width: 40px;
}

.market_navbar_logo_text {
  font-size: 28px;
  font-weight: 700;
}

.location-popover {
  position: absolute;
  top: 90%;
  left: 50%;
  transform: translateX(-50%);
  width: 320px;
  z-index: 1050;
  margin-top: 0.5rem;
  border-radius: 0.5rem;
  border: 1px solid #dee2e6;
}

@media (max-width: 768px) {
  .location-popover {
    left: auto;
    right: 0;
    transform: translateX(0);
  }
}

.seller_details {
  background-color: #f2f2f2;
}
/* ==================================================================================== */
/* product carosuel  ==========================================================*/
/* ================================================================================================ */
.image-carousel-container {
  display: flex;
  gap: 1rem;
  height: 60vh;
}

.thumbnail-list-container {
  flex: 0 0 80px;
  position: relative;
  height: 60vh;
}

.thumbnail-list {
  max-height: 60vh;
  overflow-y: auto;
  /* Hide scrollbar */
  -ms-overflow-style: none; /* IE and Edge */
  scrollbar-width: none; /* Firefox */
}

.thumbnail-list::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

.thumbnail-item {
  cursor: pointer;
  border: 2px solid transparent;
  border-radius: 0.375rem;
  padding: 2px;
  transition: border-color 0.2s ease;
}

.thumbnail-item.active {
  border-color: #e8600c; /* triexpot orange */
}

.thumbnail-item img,
.thumbnail-item .video-thumb {
  width: 100%;
  height: 80px;
  object-fit: cover;
  border-radius: 0.25rem;
}

.main-preview {
  flex: 1;
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  border-radius: 0.5rem;
  border: 1px solid #eee;
}

.main-preview img,
.main-preview video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.main-preview .zoom-image {
  position: absolute;
  top: 0;
  left: 0;
  transform-origin: var(--zoom-x) var(--zoom-y);
}

.nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255, 255, 255, 0.7);
  border: 1px solid #ddd;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: opacity 0.2s;
}

.nav-arrow:hover {
  background-color: white;
}

.nav-arrow.left {
  left: 10px;
}
.nav-arrow.right {
  right: 10px;
}

/* Mobile Layout */
@media (max-width: 767.98px) {
  .image-carousel-container {
    flex-direction: column;
  }
  .thumbnail-list-container {
    order: 2; /* Move thumbnails below main image */
  }
  .thumbnail-list {
    max-height: none;
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
  }
  .thumbnail-item {
    flex: 0 0 60px; /* Fixed width for horizontal thumbnails */
  }
  .thumbnail-item img,
  .thumbnail-item .video-thumb {
    height: 60px;
  }
}

/* =========================================================================================== */

/* Product Right Pane Css ==================================== */
/* --- Basic Setup & Fonts --- */
.product-card {
  background-color: #fff;
  border-radius: 8px;
  padding: 16px;
  /* max-width: 450px; */
  width: 100%;
  border: 1px solid #e0e0e0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
}

/* --- Helper for Flexbox alignment --- */
.flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.flex-start {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* --- Top Banner (Free Shipping) --- */
.shipping-banner {
  background-color: #fff1f0;
  color: #d93025;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
}
.shipping-banner .arrow {
  font-weight: bold;
}

/* --- Pricing Tiers --- */
.pricing-tiers {
  display: flex;
  text-align: center;
  margin-top: 16px;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
}
.tier {
  flex: 1;
  padding: 8px;
  position: relative;
}
.tier:not(:last-child) {
  border-right: 1px solid #e0e0e0;
}
.tier .quantity {
  font-size: 12px;
  color: #666;
}
.tier .price {
  font-size: 20px;
  font-weight: bold;
  color: #333;
}
.tier .old-price {
  font-size: 12px;
  color: #999;
  text-decoration: line-through;
}
.tier .discount-badge {
  /* position: absolute; */
  /* top: -10px; */
  /* left: 50%; */
  /* transform: translateX(-50%); */
  background-color: #ffeceb;
  color: #d93025;
  font-size: 10px;
  font-weight: 500;
  padding: 2px 6px;
  border-radius: 8px;
  white-space: nowrap;
  border: 1px solid #fff;
}

/* --- Tariff & Sample Sections --- */
.info-bar {
  background-color: #f7f7f7;
  border-radius: 4px;
  padding: 8px 12px;
  margin-top: 16px;
  font-size: 13px;
  color: #555;
}
.sample-price-bar {
  padding: 12px 0;
  margin-top: 8px;
  border-top: 1px solid #f0f0f0;
  border-bottom: 1px solid #f0f0f0;
}
.sample-price-bar .get-sample-btn {
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 16px;
  padding: 6px 16px;
  font-size: 13px;
  cursor: pointer;
}

/* --- Variations (Color/Size) --- */
.variations {
  margin-top: 20px;
}
.variations-header {
  margin-bottom: 12px;
}
.variations-header h3 {
  margin: 0;
  font-size: 16px;
}
.variations-header a {
  font-size: 13px;
  color: #1a73e8;
  text-decoration: none;
}
.option-group {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.option-group .label {
  font-size: 14px;
  color: #666;
  width: 50px;
}
.color-swatches,
.size-options {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.color-swatch {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  cursor: pointer;
  border: 1px solid #ccc;
  overflow: hidden;
  padding: 2px; /* Add padding for the active border */
  box-sizing: border-box;
}
.color-swatch img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 2px;
}
.color-swatch.active {
  border: 2px solid #000;
}
.size-option {
  background-color: #f5f5f5;
  border: 1px solid #e0e0e0;
  padding: 6px 14px;
  font-size: 14px;
  border-radius: 4px;
  cursor: pointer;
}
.size-option.active {
  background-color: #000;
  color: #fff;
  border-color: #000;
}

/* --- Shipping --- */
.shipping {
  margin-top: 16px;
}
.shipping-header {
  margin-bottom: 8px;
}
.shipping-header h3 {
  margin: 0;
  font-size: 16px;
}
.shipping-header a {
  font-size: 13px;
  color: #1a73e8;
  text-decoration: none;
}

.shipping-details {
  background-color: #f3f3f3;
}
.shipping-details p {
  font-size: 14px;
  color: #333;
  margin: 4px 0;
}
.shipping-details .provider-logo {
  width: 16px; /* Placeholder for logo */
}

/* --- Action Buttons (CTA) --- */
.actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}
.actions button {
  flex: 1;
  padding: 12px;
  font-size: 16px;
  font-weight: bold;
  border-radius: 24px;
  cursor: pointer;
  border: 1px solid #ccc;
}
.btn-primary {
  background-color: #ff6600;
  color: #fff;
  border-color: #ff6600;
}
.btn-secondary {
  background-color: #fff;
  color: #333;
}

/* --- Installments & Protections --- */
.installments,
.protections {
  margin-top: 16px;
  font-size: 13px;
  color: #555;
}
.protection-item {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  align-items: flex-start;
}
.protection-item .icon {
  flex-shrink: 0;
  color: #34a853; /* Green checkmark */
  margin-top: 2px;
}
.protection-item p {
  margin: 0;
}
.protection-item .title {
  font-weight: 500;
  color: #333;
}
.trade-assurance {
  margin-top: 16px;
  font-size: 13px;
  color: #555;
}

/* ==================================================================================== */
/* =========================================================================================== */

.related-products-container {
  width: 100%;
  padding: 2rem 0;
  background-color: #f9f9f9;
  border-top: 1px solid #eee;
}

.related-products-header {
  text-align: center;
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 2rem;
}

.related-products-grid {
  display: grid;
  /* This single line creates a responsive grid that works on all screen sizes */
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
  padding: 0 1rem; /* Add some padding on the sides */
}
