:root {
  --primary-green: #2d5a27;
  --secondary-green: #4a7c59;
  --light-green: #8fbc8f;
  --accent-green: #90c695;
  --dark-green: #1e3f20;
  --cream: #f8f9fa;
}

* {
  font-family: "Prompt", sans-serif;
}

body {
  background-color: var(--cream);
}

/* Navigation */
.navbar {
  background: linear-gradient(
    135deg,
    var(--primary-green),
    var(--secondary-green)
  );
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.8rem;
  color: white !important;
  transition: transform 0.3s ease;
}

.navbar-brand:hover {
  transform: scale(1.05);
}

.nav-link {
  color: white !important;
  font-weight: 500;
  transition: all 0.3s ease;
  margin: 0 10px;
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent-green) !important;
  transform: translateY(-2px);
}

/* Page Header */
.page-header {
  background: linear-gradient(135deg, var(--light-green), var(--accent-green));
  padding: 2rem 0 1rem 0;
  margin-top: 76px;
  color: white;
  position: relative;
  overflow: hidden;
}

.breadcrumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 25px;
  padding: 0.5rem 1rem;
  margin: 0;
}

.breadcrumb-item a {
  color: white;
  text-decoration: none;
}

.breadcrumb-item.active {
  color: var(--cream);
}

/* Product Detail Section */
.product-detail-section {
  padding: 3rem 0;
}

/* Image Gallery */
.image-gallery {
  background: white;
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 100px;
}

.main-image {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 15px;
  margin-bottom: 1rem;
  cursor: zoom-in;
  transition: transform 0.3s ease;
}

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

.thumbnail-container {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 10px 0;
}

.thumbnail {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 10px;
  cursor: pointer;
  border: 3px solid transparent;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.thumbnail:hover {
  border-color: var(--light-green);
  transform: scale(1.05);
}

.thumbnail.active {
  border-color: var(--secondary-green);
}

/* Product Info */
.product-info {
  background: white;
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.product-code {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.product-title {
  color: var(--primary-green);
  font-weight: 700;
  font-size: 2rem;
  margin-bottom: 1rem;
}

.rating {
  color: #ffc107;
  margin-bottom: 1rem;
}

.price-section {
  background: linear-gradient(135deg, var(--light-green), var(--accent-green));
  padding: 1.5rem;
  border-radius: 15px;
  margin-bottom: 1.5rem;
}

.current-price {
  color: white;
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0;
}

.old-price {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: line-through;
  font-size: 1.3rem;
  margin-right: 10px;
}

.discount-badge {
  background: #e74c3c;
  color: white;
  padding: 5px 15px;
  border-radius: 20px;
  font-weight: 600;
  display: inline-block;
  margin-top: 10px;
}

/* Quantity Selector */
.quantity-selector {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 1.5rem;
}

.quantity-btn {
  width: 40px;
  height: 40px;
  border: 2px solid var(--light-green);
  background: white;
  border-radius: 10px;
  color: var(--secondary-green);
  font-weight: 700;
  transition: all 0.3s ease;
  cursor: pointer;
}

.quantity-btn:hover {
  background: var(--secondary-green);
  color: white;
  transform: scale(1.1);
}

.quantity-input {
  width: 80px;
  height: 40px;
  text-align: center;
  border: 2px solid var(--light-green);
  border-radius: 10px;
  font-weight: 600;
}

/* Action Buttons */
.btn-add-cart {
  background: var(--secondary-green);
  color: white;
  border: none;
  padding: 15px 30px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  width: 100%;
  margin-bottom: 10px;
  transition: all 0.3s ease;
}

.btn-add-cart:hover {
  background: var(--primary-green);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(74, 124, 89, 0.3);
}

.btn-buy-now {
  background: #27ae60;
  color: white;
  border: none;
  padding: 15px 30px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  width: 100%;
  transition: all 0.3s ease;
}

.btn-buy-now:hover {
  background: #229954;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(39, 174, 96, 0.3);
}

/* Product Features */
.features-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.features-list li {
  padding: 10px 0;
  border-bottom: 1px solid #eee;
  display: flex;
  align-items: center;
}

.features-list li:last-child {
  border-bottom: none;
}

.features-list i {
  color: var(--secondary-green);
  margin-right: 10px;
  font-size: 1.2rem;
}

/* Tabs Section */
.details-tabs {
  margin-top: 3rem;
}

.nav-tabs {
  border-bottom: 3px solid var(--light-green);
}

.nav-tabs .nav-link {
  color: var(--primary-green);
  font-weight: 600;
  border: none;
  padding: 15px 25px;
  transition: all 0.3s ease;
}

.nav-tabs .nav-link:hover {
  border: none;
  color: var(--secondary-green);
  background: rgba(143, 188, 143, 0.1);
}

.nav-tabs .nav-link.active {
  color: white;
  background: var(--secondary-green);
  border-radius: 10px 10px 0 0;
}

.tab-content {
  background: white;
  padding: 2rem;
  border-radius: 0 0 20px 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Specifications Table */
.specs-table {
  width: 100%;
}

.specs-table tr {
  border-bottom: 1px solid #eee;
}

.specs-table td {
  padding: 15px 10px;
}

.specs-table td:first-child {
  font-weight: 600;
  color: var(--primary-green);
  width: 30%;
}

/* Stock Status */
.stock-status {
  display: inline-block;
  padding: 8px 15px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.stock-status.in-stock {
  background: rgba(39, 174, 96, 0.1);
  color: #27ae60;
}

/* Modal Styles */
.modal-content {
  border-radius: 20px;
  border: none;
}

.modal-header {
  background: linear-gradient(
    135deg,
    var(--primary-green),
    var(--secondary-green)
  );
  color: white;
  border-radius: 20px 20px 0 0;
  padding: 1.5rem;
}

.modal-body {
  padding: 2rem;
}

.order-summary {
  background: var(--cream);
  padding: 1.5rem;
  border-radius: 15px;
  margin-bottom: 1.5rem;
}

.order-item {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #ddd;
}

.order-item:last-child {
  border-bottom: none;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--primary-green);
}

.line-contact-btn {
  background: #00b900;
  color: white;
  border: none;
  padding: 15px 30px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  width: 100%;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.line-contact-btn:hover {
  background: #00a300;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 185, 0, 0.3);
}

/* Animations */
.fade-in {
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .product-title {
    font-size: 1.5rem;
  }

  .current-price {
    font-size: 2rem;
  }

  .image-gallery {
    position: relative;
    top: 0;
    margin-bottom: 2rem;
  }

  .main-image {
    height: 300px;
  }
}
