/* Universal Reset */

/* Breadcrumb Styling */
.breadcrumb {
  background-color: transparent;
  padding: 1rem 0;
  margin-bottom: 0;
}

.breadcrumb-item a {
  color: #007bff;
  text-decoration: none;
}

.breadcrumb-item.active {
  color: #6c757d;
}

/* Product Container */
.product-container {
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 2rem;
  margin-bottom: 2rem;
}

/* Product Title */
.product-title {
  font-size: 1.75rem;
  color: #333;
}

/* Price Styling */
.product-price {
  font-size: 2rem;
  font-weight: 700;
  color: #028332;
  margin-bottom: 0.5rem;
}

.original-price {
  font-size: 1rem;
  color: #6c757d;
  text-decoration: line-through;
  margin-left: 0.5rem;
}

/* Product Features */
.product-features {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.feature-badge {
  background-color: #f8f9fa;
  color: #495057;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.875rem;
  border: 1px solid #dee2e6;
}

/* Shipping Info */
.shipping-info {
  background-color: #e3f2fd;
  border: 1px solid #90caf9;
  border-radius: 6px;
  padding: 0.75rem 1rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.shipping-info i {
  color: #1976d2;
}

/* ETA Badge */
.eta-badge {
  background-color: #ff9800;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  display: inline-block;
}

/* Product Image */
.product-image {
  width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: contain;
  border-radius: 8px;
}

/* Variant Selection */
.variants-section {
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 1rem;
}

.variants-title {
  font-size: 1.25rem;
  font-weight: 600;
}

/* Search Variants */
.variant-search {
  position: relative;
  width: 100%;
  height: 50px;
}

.variant-search input {
  padding-right: 40px;
  width: 45%;
  display: flex;
  float: right;
  height: 70%;
}

.variant-search .search-icon {
  position: absolute;
  right: 10px;
  top: 45%;
  transform: translateY(-50%);
  color: #6c757d;
  cursor: pointer;
}

/* Variant Cards */
.variant-card {
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
  background-color: #ffffff;
}

.variant-card:hover {
  border-color: #038523;
  box-shadow: 0 2px 8px rgba(1, 107, 28, 0.15);
}

.variant-name {
  font-weight: 600;
  color: #333;
  margin-bottom: 0.25rem;
}

.variant-price {
  font-weight: 700;
  color: #058f25;
  font-size: 1.1rem;
}

.variant-price-unit {
  font-size: 0.875rem;
  color: #6c757d;
}

.variant-details {
  font-size: 0.875rem;
  color: #6c757d;
}

.stock-status {
  font-size: 0.875rem;
  color: #28a745;
  font-weight: 500;
}

.stock-status.out-of-stock {
  color: #dc3545;
}

/* Quantity Controls */
.quantity-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.quantity-btn {
  width: 30px;
  height: 30px;
  border: 1px solid #dee2e6;
  background: #f8f9fa;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.quantity-btn:hover {
  background: #e9ecef;
  border-color: #adb5bd;
}

.quantity-input {
  width: 50px;
  text-align: center;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  padding: 0.25rem;
}

.total-price {
  font-weight: 700;
  color: #007bff;
  font-size: 1.1rem;
}

/* Product Tabs */
.product-tabs {
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  margin-top: 2rem;
}

.nav-tabs {
  border-bottom: 1px solid #dee2e6;
  padding: 0 2rem;
}

.nav-tabs .nav-link {
  border: none;
  color: #6c757d;
  font-weight: 500;
  padding: 1rem 1.5rem;
}

.nav-tabs .nav-link.active {
  color: #039b45;
  border-bottom: 2px solid #007bff;
  background: none;
}

.tab-content {
  padding: 2rem;
}

/* Responsive Design */
@media (max-width: 992px) {
  .product-container {
    padding: 1.5rem;
  }

  .variants-section {
    padding: 1.5rem;
  }

  .product-title {
    font-size: 1.5rem;
  }

  .product-price {
    font-size: 1.75rem;
  }
}

@media (max-width: 768px) {
  .product-container,
  .variants-section {
    padding: 1rem;
  }

  .product-title {
    font-size: 1.25rem;
  }

  .product-price {
    font-size: 1.5rem;
  }

  .feature-badge {
    font-size: 0.75rem;
    padding: 0.375rem 0.75rem;
  }

  .variant-card {
    padding: 0.75rem;
  }

  .tab-content {
    padding-left: 1rem;
    padding-right: 1rem;
    padding-bottom: 0px !important;
  }
}

@media (max-width: 576px) {
  .breadcrumb {
    font-size: 0.875rem;
  }

  .product-features {
    gap: 0.5rem;
  }

  .variant-image {
    width: 78% !important;
  }

  .quantity-controls {
    gap: 0.25rem;
  }

  .quantity-btn {
    width: 25px;
    height: 25px;
  }

  .quantity-input {
    width: 40px;
  }
}

/* Mobile tabs horizontal layout */
@media (max-width: 767.98px) {
  .variants-tabs .nav-tabs {
    display: flex;
    flex-wrap: nowrap;
    border-bottom: 1px solid #dee2e6;
  }

  .variants-tabs .nav-item {
    flex: 1;
    text-align: center;
  }

  .variants-tabs .nav-link {
    width: 100%;
    padding: 12px 8px;
    font-size: 14px;
    border: none;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    background: transparent;
  }

  .variants-tabs .nav-link.active {
    border-bottom-color: #007bff;
    background: transparent;
    color: #007bff;
    font-weight: 600;
  }
}
