/* Enhanced Product Modal Styles */
.product-detail-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.product-detail-modal.show {
  opacity: 1;
}

.product-modal-content {
  position: relative;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  margin: 5% auto;
  padding: 0;
  width: 90%;
  max-width: 800px;
  border-radius: 20px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
  transform: translateY(-20px);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.product-detail-modal.show .product-modal-content {
  transform: translateY(0);
}

.product-modal-header {
  background: linear-gradient(
    135deg,
    var(--color-primary),
    var(--color-accent)
  );
  padding: 20px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.product-modal-header h2 {
  color: white;
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.modal-close-btn {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
}

.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg);
}

.product-modal-body {
  padding: 30px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.95),
    rgba(255, 255, 255, 0.9)
  );
}

.modal-product-image {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.modal-product-info {
  display: flex;
  flex-direction: column;
}

.modal-product-name {
  font-size: 1.8rem;
  color: var(--color-text);
  margin-bottom: 15px;
  font-family: var(--font-heading);
  font-weight: 600;
}

.modal-product-description {
  color: var(--color-text-light);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.modal-product-price {
  font-size: 1.5rem;
  color: var(--color-primary-dark);
  font-weight: 600;
  margin-bottom: 25px;
  font-family: var(--font-heading);
}

.modal-action-buttons {
  margin-top: auto;
}

.modal-add-to-cart {
  width: 100%;
  padding: 15px 25px;
  background: linear-gradient(
    45deg,
    var(--color-primary-dark),
    var(--color-accent)
  );
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
}

.modal-add-to-cart::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, rgba(255, 255, 255, 0.2), transparent);
  transition: transform 0.3s ease;
  transform: translateX(-100%);
}

.modal-add-to-cart:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 107, 107, 0.3);
}

.modal-add-to-cart:hover::after {
  transform: translateX(100%);
}

.modal-add-to-cart i {
  font-size: 1.1rem;
  transition: transform 0.3s ease;
}

.modal-add-to-cart:hover i {
  transform: translateX(-3px);
}

@media (max-width: 768px) {
  .product-modal-content {
    margin: 10% auto;
    width: 95%;
  }

  .product-modal-body {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .modal-product-image {
    height: 250px;
  }

  .product-modal-header {
    padding: 15px 20px;
  }

  .modal-product-name {
    font-size: 1.5rem;
  }

  .modal-product-price {
    font-size: 1.3rem;
  }
}

/* Page Header Enhancement */
.page-header {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.95),
    rgba(255, 255, 255, 0.9)
  );
  padding: 20px;
  margin-bottom: 30px;
  border-bottom: 1px solid rgba(255, 127, 80, 0.1);
  position: relative;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.page-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(255, 127, 80, 0.2),
    transparent
  );
}

.page-title {
  color: var(--color-primary-dark);
  font-size: 2.2rem;
  font-weight: 700;
  text-align: center;
  margin: 15px 0;
  font-family: var(--font-heading);
  letter-spacing: -0.5px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: white;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 10px 20px;
  border-radius: 25px;
  background: linear-gradient(
    45deg,
    var(--color-primary-dark),
    var(--color-accent)
  );
  transition: all 0.3s ease;
  border: none;
  box-shadow: 0 4px 15px rgba(255, 107, 107, 0.2);
}

.back-btn:hover {
  transform: translateX(-5px);
  box-shadow: 0 6px 20px rgba(255, 107, 107, 0.3);
}

.back-btn i {
  font-size: 0.9em;
  transition: transform 0.3s ease;
}

.back-btn:hover i {
  transform: translateX(-5px);
}
