/* ------------------------
   Product Page - Clean & Minimalist (Improved Spacing)
--------------------------- */

.product-page {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  max-width: 1200px;
  margin: 4rem auto;
  padding: 0 2rem;
  font-family: 'Montserrat', sans-serif;
}

/* ---------- Product Image ---------- */
.product-image {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}

.product-image img {
  width: 100%;
  height: 600px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.product-image img:hover {
  transform: scale(1.03);
}

/* ---------- Product Info ---------- */
.product-info {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  padding: 0.5rem 0;
}

.product-info h1 {
  font-family: 'Century Gothic', CenturyGothic, AppleGothic, sans-serif;
  font-size: 2.4rem;
  font-weight: 500;
  color: #2a2a2a;
  line-height: 1.3;
  margin-bottom: 0.5rem;
}

/* ---------- Price Styles ---------- */
.price-container {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin: 0.5rem 0;
}

.price {
  font-size: 1.9rem;
  font-weight: 600;
  color: #2a2a2a;
  font-family: 'Century Gothic', CenturyGothic, AppleGothic, sans-serif;
}

.price .sale {
  color: #8b5a2b;
  font-weight: 700;
}

.price .old {
  text-decoration: line-through;
  color: #999;
  font-weight: 400;
  font-size: 1.3rem;
}

.discount-percent {
  background: #8b5a2b;
  color: white;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* ---------- Stock Information Styles ---------- */
.stock-info {
  margin: 1rem 0;
  padding: 15px;
  border-radius: 8px;
  background: #f8f9fa;
  border: 1px solid #e9ecef;
}

.stock-available {
  color: #28a745;
  font-weight: 600;
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.stock-low {
  color: #e67e22;
  font-weight: 600;
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.stock-out {
  color: #dc3545;
  font-weight: 600;
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.stock-icon {
  font-size: 18px;
}

/* Size Stock Information */
.size-stock-info {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid #dee2e6;
}

.size-stock-info h4 {
  margin: 0 0 10px 0;
  font-size: 14px;
  color: #6c757d;
  font-weight: 600;
}

.size-stock-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.size-stock-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: white;
  border-radius: 6px;
  border: 1px solid #e9ecef;
}

.size-label {
  font-weight: 500;
  color: #495057;
  font-size: 14px;
}

.size-quantity {
  font-size: 14px;
  font-weight: 500;
}

.size-quantity.in-stock {
  color: #28a745;
}

.size-quantity.out-of-stock {
  color: #dc3545;
}

/* ---------- Product Description ---------- */
.product-description {
  margin: 1rem 0;
  font-size: 1rem;
  color: #444;
  line-height: 1.7;
  background: #fafafa;
  padding: 1.5rem;
  border-radius: 8px;
  border-left: 3px solid #8b5a2b;
}

.product-description h3 {
  font-family: 'Century Gothic', CenturyGothic, AppleGothic, sans-serif;
  font-size: 1.4rem;
  color: #222;
  margin-bottom: 0.8rem;
  border-bottom: none;
  display: block;
  padding-bottom: 0;
}

/* ---------- Size Selector ---------- */
.size-selector {
  margin: 1.5rem 0;
}

.size-selector label {
  display: block;
  margin-bottom: 0.8rem;
  font-weight: 600;
  color: #2a2a2a;
  font-size: 1rem;
}

.size-options {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.size-option {
  padding: 10px 16px;
  border: 2px solid #e0e0e0;
  background: white;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.3s ease;
  font-weight: 500;
  color: #666;
  min-width: 50px;
  text-align: center;
  position: relative;
}

.size-option:hover:not(.disabled) {
  border-color: #8b5a2b;
  color: #8b5a2b;
}

.size-option.active {
  border-color: #8b5a2b;
  background: #8b5a2b;
  color: white;
}

.size-option.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: #f8f9fa;
  color: #6c757d;
  border-color: #dee2e6;
}

.size-out-of-stock {
  font-size: 0.7rem;
  color: #dc3545;
  margin-left: 2px;
}

/* ---------- Quantity Selector ---------- */
.quantity-selector {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin: 1.5rem 0;
  background: #f8f8f8;
  border-radius: 8px;
  border: none;
  width: fit-content;
  padding: 10px;
  transition: all 0.3s ease;
}

.quantity-selector.out-of-stock {
  opacity: 0.6;
  pointer-events: none;
  background: #f1f1f1;
}

.quantity-selector label {
  font-weight: 600;
  color: #2a2a2a;
  margin-right: 0.8rem;
  font-size: 1rem;
}

.quantity-btn {
  width: 40px;
  height: 40px;
  border: 2px solid #ddd;
  background: white;
  color: #333;
  font-size: 1.2rem;
  font-weight: 300;
  cursor: pointer;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.quantity-btn:hover:not(:disabled) {
  border-color: #8b5a2b;
  color: #8b5a2b;
  transform: translateY(-1px);
}

.quantity-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.quantity-input {
  width: 70px;
  height: 40px;
  border: 2px solid #ddd;
  border-radius: 6px;
  text-align: center;
  font-size: 1rem;
  font-weight: 600;
  color: #2a2a2a;
  background: white;
  transition: all 0.3s ease;
}

.quantity-input:focus {
  outline: none;
  border-color: #8b5a2b;
}

.quantity-input:disabled {
  background: #f8f9fa;
  color: #6c757d;
  cursor: not-allowed;
}

/* ---------- Action Buttons ---------- */
.action-buttons {
  display: flex;
  gap: 0.8rem;
  margin: 1.5rem 0 1rem 0;
}

.action-buttons button {
  flex: 1;
  padding: 1.1rem 1.5rem;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
  font-family: 'Montserrat', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  border-radius: 6px;
}

.add-to-cart {
  background: #2a2a2a;
  color: #fff;
}

.add-to-cart:hover:not(:disabled) {
  background: #8b5a2b;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(139, 90, 43, 0.3);
}

.add-to-cart:disabled {
  background: #6c757d;
  cursor: not-allowed;
  opacity: 0.6;
  transform: none;
}

.wishlist-btn {
  background: #f8f8f8;
  color: #2a2a2a;
  border: 1px solid #e0e0e0;
}

.wishlist-btn:hover:not(:disabled) {
  background: #f8f4f0;
  border-color: #8b5a2b;
  color: #8b5a2b;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(139, 90, 43, 0.2);
}

.wishlist-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* ---------- Buy Now Button ---------- */
.checkout-btn {
  background: #8b5a2b;
  color: #fff;
  border: none;
  padding: 1.2rem 2rem;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Montserrat', sans-serif;
  border-radius: 6px;
  width: 100%;
  box-shadow: 0 4px 12px rgba(139, 90, 43, 0.2);
}

.checkout-btn:hover:not(:disabled) {
  background: #2a2a2a;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(42, 42, 42, 0.3);
}

.checkout-btn:disabled {
  background: #6c757d;
  cursor: not-allowed;
  opacity: 0.6;
  transform: none;
}

/* ---------- Responsive Design ---------- */
@media (max-width: 768px) {
  .product-page {
    grid-template-columns: 1fr;
    gap: 2rem;
    margin: 2rem auto;
    padding: 0 1rem;
  }

  .product-image img {
    height: 400px;
  }

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

  .price {
    font-size: 1.7rem;
  }

  .stock-info {
    padding: 12px;
  }

  .size-stock-grid {
    grid-template-columns: 1fr;
  }

  .action-buttons {
    flex-direction: column;
    gap: 0.8rem;
  }

  .action-buttons button {
    width: 100%;
  }

  .size-options {
    gap: 0.6rem;
  }

  .size-option {
    padding: 8px 14px;
    min-width: 45px;
  }

  .quantity-selector {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .product-info h1 {
    font-size: 1.8rem;
  }

  .price {
    font-size: 1.5rem;
  }

  .stock-info {
    padding: 10px;
  }

  .action-buttons button,
  .checkout-btn {
    padding: 1rem 1.2rem;
    font-size: 0.9rem;
  }

  .product-description {
    padding: 1.2rem;
  }
}

/* ---------- Button States ---------- */
.action-buttons button:active:not(:disabled),
.checkout-btn:active:not(:disabled) {
  transform: translateY(0);
}

/* ---------- Success Feedback ---------- */
.add-to-cart.added {
  background: #27ae60;
}

.wishlist-btn.added {
  background: #8b5a2b;
  color: white;
  border-color: #8b5a2b;
}