/* ==========================================================================
   NadPoint Advanced Products — Single Product Page
   ========================================================================== */
.product-single {
    display: grid; grid-template-columns: 1fr 1fr; gap: 50px;
    padding: 40px 20px; align-items: start;
}
@media (max-width: 900px) {
    .product-single { grid-template-columns: 1fr; gap: 25px; padding: 20px 15px; }
}

/* ---- Gallery ---- */
.product-gallery .main-image {
    position: relative; border-radius: 14px; overflow: hidden;
    background: #f7f7f7; aspect-ratio: 1/1; display: flex; align-items: center; justify-content: center;
}
.product-gallery .main-image img,
.product-gallery .main-image iframe,
.product-gallery .main-image video {
    width: 100%; height: 100%; object-fit: cover; border: none;
}
.thumbnails { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.thumb {
    width: 70px; height: 70px; border-radius: 8px; overflow: hidden; cursor: pointer;
    border: 2px solid transparent; transition: border-color 0.2s; position: relative; flex-shrink: 0;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb.active, .thumb:hover { border-color: #c59b27; }
.thumb-video { background: #1b3022; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #fff; }
.thumb-video i { font-size: 1.4rem; }
.thumb-video span { font-size: 0.6rem; text-transform: uppercase; margin-top: 2px; }

.flash-sale-badge {
    position: absolute; top: 14px; left: 14px;
    background: linear-gradient(135deg, #ff5f5f, #e63946); color: #fff;
    padding: 8px 14px; border-radius: 30px; font-size: 0.78rem; font-weight: 700;
    display: flex; align-items: center; gap: 6px; box-shadow: 0 6px 16px rgba(230,57,70,0.35);
}
.flash-sale-badge .flash-countdown { font-variant-numeric: tabular-nums; opacity: 0.95; }

/* ---- Summary ---- */
.product-summary h1 { font-size: 1.9rem; margin: 0 0 8px; color: #1b3022; }
.product-sku { color: #888; font-size: 0.85rem; margin: 0 0 14px; }
.price { font-size: 1.7rem; font-weight: 700; margin-bottom: 18px; }
.price .sale-price { color: #e63946; }
.price del { color: #999; font-size: 1.1rem; margin-left: 10px; font-weight: 400; }
.price .regular-price { color: #1b3022; }

.bulk-pricing-table { background: #fafafa; border: 1px solid #eee; border-radius: 12px; padding: 16px 18px; margin-bottom: 18px; }
.bulk-pricing-table h4 { margin: 0 0 10px; font-size: 0.95rem; color: #1b3022; }
.bulk-pricing-table table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.bulk-pricing-table th { text-align: left; color: #888; font-weight: 600; padding-bottom: 6px; }
.bulk-pricing-table td { padding: 5px 0; border-top: 1px solid #eee; }

.variation-selectors { margin-bottom: 18px; }
.variation-attribute { margin-bottom: 12px; }
.variation-attribute label { display: block; font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.4px; color: #555; margin-bottom: 6px; }
.variation-attribute select { width: 100%; max-width: 280px; padding: 10px 14px; border: 2px solid #e0e0e0; border-radius: 10px; font-size: 0.95rem; }
.variation-hint { font-size: 0.82rem; color: #888; }
.variation-hint.is-ready { color: #27ae60; font-weight: 600; }
.variation-hint.is-unavailable { color: #e74c3c; font-weight: 600; }

.product-type-badge { background: #eef6ff; color: #1d6fb8; padding: 10px 14px; border-radius: 10px; font-size: 0.88rem; display: inline-flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.stock-line { margin-bottom: 16px; }
.stock-line .out-of-stock { color: #e74c3c; font-weight: 700; }

.description { margin: 18px 0; color: #333; line-height: 1.7; }

.grouped-items { display: flex; flex-direction: column; gap: 10px; margin: 18px 0; }
.grouped-item { display: flex; align-items: center; gap: 12px; padding: 10px; border: 1px solid #eee; border-radius: 10px; text-decoration: none; color: #1b3022; transition: box-shadow 0.2s; }
.grouped-item:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.06); }
.grouped-item img { width: 50px; height: 50px; object-fit: cover; border-radius: 6px; }

.qty-and-add { display: flex; gap: 12px; align-items: center; margin-top: 10px; }
.qty-input-single { width: 70px; padding: 12px; border: 2px solid #e0e0e0; border-radius: 10px; text-align: center; font-size: 1rem; }
.add-to-cart-btn {
    flex: 1; background: linear-gradient(135deg, #c59b27, #d4af37); color: #fff; border: none;
    padding: 14px 24px; border-radius: 10px; font-weight: 700; cursor: pointer; font-size: 1rem;
    transition: transform 0.2s, filter 0.2s;
}
.add-to-cart-btn:hover { transform: translateY(-2px); filter: brightness(1.05); }
.add-to-cart-btn:disabled { background: #ccc; cursor: not-allowed; transform: none; }

/* ---- Recommendations ---- */
.product-recommendations { padding: 10px 20px 50px; }
.product-recommendations h3 { font-size: 1.3rem; color: #1b3022; margin-bottom: 18px; }
.recommendation-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 18px; }
.recommendation-card { display: block; text-decoration: none; color: #1b3022; border: 1px solid #eee; border-radius: 12px; padding: 14px; transition: box-shadow 0.2s, transform 0.2s; }
.recommendation-card:hover { box-shadow: 0 8px 20px rgba(0,0,0,0.08); transform: translateY(-3px); }
.recommendation-card img { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: 8px; margin-bottom: 10px; }
.recommendation-card .no-image { width: 100%; aspect-ratio: 1/1; background: #f5f5f5; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: #ccc; font-size: 2rem; margin-bottom: 10px; }
.recommendation-card h5 { font-size: 0.92rem; margin: 0 0 6px; }
.recommendation-card .rec-price { font-weight: 700; color: #c59b27; }

@media (max-width: 600px) {
    .qty-and-add { flex-wrap: wrap; }
    .recommendation-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---- Customer Reviews ---- */
.product-reviews-section { padding: 10px 20px 50px; }
.product-reviews-section h3 { font-size: 1.3rem; color: #1b3022; margin-bottom: 18px; }
.reviews-summary-row { display: flex; gap: 40px; flex-wrap: wrap; background: #fafafa; border-radius: 14px; padding: 24px 28px; margin-bottom: 24px; }
.reviews-average { display: flex; flex-direction: column; align-items: center; justify-content: center; flex: 0 0 140px; }
.reviews-average-number { font-size: 2.4rem; font-weight: 800; color: #1b3022; }
.reviews-average-stars { color: #c59b27; font-size: 1.1rem; letter-spacing: 2px; margin: 4px 0; }
.reviews-average-count { font-size: 0.8rem; color: #888; }
.reviews-breakdown { flex: 1; min-width: 200px; display: flex; flex-direction: column; gap: 6px; justify-content: center; }
.reviews-breakdown-row { display: flex; align-items: center; gap: 10px; font-size: 0.82rem; color: #666; }
.reviews-breakdown-bar { flex: 1; height: 8px; background: #e8e8e8; border-radius: 6px; overflow: hidden; }
.reviews-breakdown-bar span { display: block; height: 100%; background: #c59b27; }
.reviews-breakdown-count { width: 24px; text-align: right; color: #999; }

.reviews-list { display: flex; flex-direction: column; gap: 18px; margin-bottom: 30px; }
.review-card { border-bottom: 1px solid #eee; padding-bottom: 18px; }
.review-card-header { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; flex-wrap: wrap; }
.review-stars { color: #c59b27; letter-spacing: 1px; }
.review-date { color: #999; font-size: 0.78rem; }
.review-text { color: #444; line-height: 1.6; margin: 0 0 10px; }
.review-photos { display: flex; gap: 8px; }
.review-photo-link img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; }

.write-review-box { background: #fafafa; border-radius: 14px; padding: 22px 26px; }
.write-review-box h4 { margin: 0 0 14px; color: #1b3022; }
.review-rating-input { font-size: 1.6rem; color: #ddd; margin-bottom: 12px; cursor: pointer; }
.review-star-choice { margin-right: 4px; transition: color 0.15s; }
.review-star-choice.active { color: #c59b27; }
#write-review-form textarea { width: 100%; padding: 12px 14px; border: 2px solid #e0e0e0; border-radius: 10px; font-size: 0.95rem; box-sizing: border-box; margin-bottom: 12px; font-family: inherit; }
.review-photo-upload { margin-bottom: 14px; }
.review-photo-label { display: block; font-size: 0.85rem; font-weight: 600; color: #555; margin-bottom: 6px; }
