/* ============================================================
   safitri mart Shop - Product Detail Styles
   ============================================================ */

/* Section Titles */
.section-title {
  color: #ea580c;
  position: relative;
  display: inline-block;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  border-radius: var(--radius-full);
  background: var(--primary-gradient);
}

.section-subtitle {
  color: var(--text-muted);
  margin-top: 14px;
  font-size: 0.95rem;
}

.section-product-detail {
  background: var(--bg-card);
}

.section-related {
  background: var(--bg-light);
}

/* Product Detail */
.product-detail-title {
  color: var(--text-heading);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.detail-badge {
  background: var(--primary-gradient);
  color: #fff;
  border-radius: var(--radius-full);
  font-weight: 600;
}

.price-box {
  background: linear-gradient(135deg, var(--bg-light), rgba(45, 107, 84, 0.05));
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.product-price {
  font-size: 2rem;
  font-weight: 800;
  color: #2d6b54;
  letter-spacing: -0.02em;
}

.shipping-note {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.text-accent {
  color: #f59e0b !important;
}

/* Quantity Input */
.quantity-group .btn {
  border-color: var(--border-color);
  background: var(--bg-light);
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
}

.quantity-group .btn:hover {
  background: var(--hover-bg);
  border-color: var(--border-color);
  transform: scale(1.05);
}

.qty-detail {
  border-color: var(--border-color);
  font-weight: 600;
  border-radius: var(--radius-md);
  text-align: center;
}

.qty-detail:focus {
  border-color: #2d6b54;
  box-shadow: 0 0 0 3px rgba(45, 107, 84, 0.15);
}

/* Add to Cart Button */
.btn-cart-detail {
  background: var(--primary-gradient);
  border: none;
  color: #fff;
  font-weight: 700;
  border-radius: var(--radius-full);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(27, 77, 62, 0.25);
}

.btn-cart-detail:hover:not(:disabled) {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(27, 77, 62, 0.35);
  color: #fff;
}

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

/* Features Section */
.section-features {
  background: var(--bg-light);
}

.feature-icon {
  color: #2d6b54;
  padding: 0.5rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-icon:hover {
  transform: translateY(-4px) scale(1.1);
}

.feature-icon small {
  color: var(--text-main);
}

/* Product Cards (related products) */
.product-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid var(--border-color) !important;
  border-radius: var(--radius-lg) !important;
  overflow: hidden;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--card-shadow-hover) !important;
  border-color: transparent !important;
}

.product-image {
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  height: 220px;
  object-fit: cover;
}

.product-card:hover .product-image {
  transform: scale(1.08);
}

.product-placeholder {
  height: 220px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.product-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
  transition: color 0.2s ease;
  font-weight: 600;
}

.product-title:hover {
  color: #2d6b54 !important;
}

.product-actions .btn {
  padding: 0.55rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-detail {
  background: transparent;
  border: 2px solid var(--border-color);
  color: var(--text-main);
}

.btn-detail:hover {
  background: var(--hover-bg);
  border-color: #2d6b54;
  color: #2d6b54;
  transform: translateY(-2px);
}

/* Dark Theme Overrides */
[data-theme="dark"] .section-title {
  color: #34d399 !important;
}

[data-theme="dark"] .section-title::after {
  background: linear-gradient(90deg, #2d6b54, #f59e0b) !important;
}

[data-theme="dark"] .section-subtitle {
  color: var(--text-muted, #9ca3af) !important;
}

[data-theme="dark"] .section-product-detail {
  background: var(--bg-body, #0f172a) !important;
}

[data-theme="dark"] .section-related {
  background: var(--bg-light, #1e293b) !important;
}

[data-theme="dark"] .product-detail-title {
  color: var(--text-heading, #f3f4f6) !important;
}

[data-theme="dark"] .detail-badge {
  background: #2d6b54 !important;
  color: #fff !important;
}

[data-theme="dark"] .price-box {
  background: linear-gradient(
    135deg,
    var(--bg-card, #1e293b),
    var(--bg-light, #334155)
  ) !important;
  border-color: var(--border-color, #475569) !important;
}

[data-theme="dark"] .product-price {
  color: #34d399 !important;
}

[data-theme="dark"] .shipping-note {
  color: var(--text-muted, #9ca3af) !important;
}

[data-theme="dark"] .quantity-group .btn {
  border-color: var(--border-color, #475569) !important;
  background: var(--bg-input, #1e293b) !important;
}

[data-theme="dark"] .quantity-group .btn:hover {
  background: var(--hover-bg, #334155) !important;
  border-color: var(--border-color, #64748b) !important;
}

[data-theme="dark"] .qty-detail {
  border-color: var(--border-color, #475569) !important;
  background-color: var(--bg-input, #1e293b) !important;
  color: var(--text-main, #e5e7eb) !important;
}

[data-theme="dark"] .qty-detail:focus {
  border-color: #2d6b54 !important;
  box-shadow: 0 0 0 3px rgba(45, 107, 84, 0.2) !important;
}

[data-theme="dark"] .btn-cart-detail {
  background: linear-gradient(135deg, #2d6b54, #34d399) !important;
  color: #fff !important;
}

[data-theme="dark"] .btn-cart-detail:hover:not(:disabled) {
  background: linear-gradient(135deg, #1b4d3e, #2d6b54) !important;
  color: #fff !important;
}

[data-theme="dark"] .section-features {
  background: var(--bg-light, #1e293b) !important;
}

[data-theme="dark"] .feature-icon {
  color: #34d399 !important;
}

[data-theme="dark"] .feature-icon small {
  color: var(--text-main, #e5e7eb) !important;
}

[data-theme="dark"] .product-card {
  background-color: var(--bg-card, #1e293b) !important;
  border-color: var(--border-color, #334155) !important;
}

[data-theme="dark"] .product-card:hover {
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3) !important;
}

[data-theme="dark"] .product-title {
  color: var(--text-heading, #f3f4f6) !important;
}

[data-theme="dark"] .product-title:hover {
  color: #34d399 !important;
}

[data-theme="dark"] .btn-detail {
  border-color: var(--border-color, #475569) !important;
  color: var(--text-main, #e5e7eb) !important;
}

[data-theme="dark"] .btn-detail:hover {
  background-color: var(--hover-bg, #334155) !important;
  border-color: #2d6b54 !important;
  color: #34d399 !important;
}
