/* =====================================================
   EMARKET 247 — Product Detail Page CSS
   ===================================================== */

.product-detail-section { padding: var(--space-2xl) 0 var(--space-3xl); }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 0.82rem; color: var(--gray-500); margin-bottom: var(--space-xl); flex-wrap: wrap; }
.breadcrumb a { color: var(--gray-600); } .breadcrumb a:hover { color: var(--red); } .breadcrumb .sep { color: var(--gray-400); }

.product-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2xl); align-items: start; }
@media(max-width:900px){ .product-detail-grid { grid-template-columns: 1fr; } }

/* Images */
.product-gallery { position: sticky; top: 90px; }
.main-image-wrap { border-radius: var(--radius-xl); overflow: hidden; background: var(--gray-100); aspect-ratio: 1; margin-bottom: 12px; cursor: zoom-in; }
.main-image { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.main-image-wrap:hover .main-image { transform: scale(1.05); }
.thumbnail-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.thumbnail { border-radius: var(--radius-md); overflow: hidden; cursor: pointer; border: 2px solid transparent; transition: border-color 0.2s; aspect-ratio: 1; }
.thumbnail.active { border-color: var(--red); }
.thumbnail img { width: 100%; height: 100%; object-fit: cover; }

/* Product Info */
.product-detail-info {}
.product-detail-cat { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 1.5px; color: var(--red); font-weight: 700; margin-bottom: 6px; display: flex; align-items: center; gap: 6px; }
.product-detail-name { font-size: clamp(1.4rem, 3vw, 2rem); margin-bottom: var(--space-sm); line-height: 1.2; }
.product-detail-rating { display: flex; align-items: center; gap: 10px; margin-bottom: var(--space-md); flex-wrap: wrap; }
.rating-score { background: var(--gold-light); padding: 3px 10px; border-radius: var(--radius-full); font-size: 0.82rem; font-weight: 700; color: var(--gold-dark); display: flex; align-items: center; gap: 4px; }
.review-link { font-size: 0.82rem; color: var(--red); cursor: pointer; }
.sku-text { font-size: 0.78rem; color: var(--gray-500); }

.price-block { background: var(--gray-100); border-radius: var(--radius-lg); padding: var(--space-md) var(--space-lg); margin-bottom: var(--space-lg); }
.price-main { font-size: 2.2rem; font-weight: 800; color: var(--red); font-family: var(--font-display); }
.price-row { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; flex-wrap: wrap; }
.price-original-lg { font-size: 1.2rem; color: var(--gray-400); text-decoration: line-through; }
.discount-tag { background: var(--red); color: white; padding: 4px 12px; border-radius: var(--radius-full); font-size: 0.88rem; font-weight: 700; }
.savings-text { font-size: 0.88rem; color: var(--success); font-weight: 600; display: flex; align-items: center; gap: 4px; }

.product-detail-desc { font-size: 0.95rem; color: var(--gray-700); line-height: 1.8; margin-bottom: var(--space-lg); }
.spec-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: var(--space-lg); }
.spec-item { display: flex; gap: 8px; font-size: 0.88rem; padding: 6px 0; border-bottom: 1px solid var(--gray-100); }
.spec-item:last-child { border-bottom: none; }
.spec-label { font-weight: 600; min-width: 100px; color: var(--charcoal); }
.spec-val { color: var(--gray-700); }

.stock-indicator { display: flex; align-items: center; gap: 8px; font-size: 0.88rem; font-weight: 600; margin-bottom: var(--space-md); }
.stock-dot { width: 10px; height: 10px; border-radius: 50%; animation: pulse-stock 2s infinite; }
.stock-dot.in-stock { background: var(--success); box-shadow: 0 0 0 3px rgba(39,174,96,0.2); }
.stock-dot.low-stock { background: var(--warning); box-shadow: 0 0 0 3px rgba(243,156,18,0.2); }
.stock-dot.out-stock { background: var(--danger); }
@keyframes pulse-stock { 0%,100% { opacity: 1; } 50% { opacity: 0.5; } }

.qty-selector { display: flex; align-items: center; gap: 16px; margin-bottom: var(--space-lg); flex-wrap: wrap; }
.qty-selector label { font-size: 0.9rem; font-weight: 600; }
.qty-control { display: flex; align-items: center; border: 1px solid var(--gray-300); border-radius: var(--radius-md); overflow: hidden; }
.qty-control button { width: 40px; height: 42px; background: var(--gray-100); border: none; cursor: pointer; font-size: 1.1rem; font-weight: 600; transition: background 0.2s; }
.qty-control button:hover { background: var(--red); color: white; }
.qty-control input { width: 52px; height: 42px; text-align: center; border: none; border-left: 1px solid var(--gray-300); border-right: 1px solid var(--gray-300); font-size: 1rem; font-weight: 600; outline: none; }

.action-buttons { display: flex; flex-direction: column; gap: 10px; margin-bottom: var(--space-xl); }
.action-row { display: flex; gap: 10px; }
.btn-wishlist { background: white; border: 2px solid var(--gray-300); color: var(--gray-600); }
.btn-wishlist.active, .btn-wishlist:hover { border-color: var(--red); color: var(--red); background: var(--red-light); }
.btn-whatsapp-order { background: #25D366; color: white; }
.btn-whatsapp-order:hover { background: #1fb956; }

.trust-strip { display: flex; gap: 16px; flex-wrap: wrap; padding: 16px; background: var(--gray-100); border-radius: var(--radius-lg); }
.trust-strip-item { display: flex; align-items: center; gap: 8px; font-size: 0.8rem; font-weight: 600; color: var(--gray-700); }
.trust-strip-item i { color: var(--red); font-size: 1rem; }

.product-tabs-section { padding: var(--space-2xl) 0; }
.product-tab-content p { font-size: 0.95rem; color: var(--gray-700); line-height: 1.8; }

/* Reviews */
.reviews-list { display: flex; flex-direction: column; gap: var(--space-lg); }
.review-item { background: var(--gray-100); border-radius: var(--radius-lg); padding: var(--space-lg); }
.review-header { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.review-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--red-light); display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--red); font-size: 1.1rem; }
.review-meta { flex: 1; }
.review-name { font-weight: 700; font-size: 0.92rem; }
.review-date { font-size: 0.75rem; color: var(--gray-500); }
.review-stars { color: var(--gold); margin-bottom: 6px; }
.review-text { font-size: 0.9rem; color: var(--gray-700); line-height: 1.6; }

/* Related */
.related-section { padding: var(--space-2xl) 0; background: var(--gray-100); }
