/* ===== PRODUCT DETAIL PAGE ===== */
.product-detail {
    padding: 40px 0 80px;
}
.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

/* Product Gallery */
.product-gallery { position: sticky; top: 80px; }
.gallery-main {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--light-bg);
    aspect-ratio: 1;
    margin-bottom: 12px;
    position: relative;
}
.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.gallery-main:hover img { transform: scale(1.05); }
.gallery-zoom {
    position: absolute;
    bottom: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    background: white;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-medium);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: var(--transition);
}
.gallery-zoom:hover { background: var(--primary); color: white; }
.gallery-thumbs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
}
.gallery-thumbs::-webkit-scrollbar { height: 4px; }
.gallery-thumbs::-webkit-scrollbar-track { background: var(--border); border-radius: 2px; }
.gallery-thumbs::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 2px; }
.thumb-item {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    flex-shrink: 0;
    transition: var(--transition);
    background: var(--light-bg);
}
.thumb-item img { width: 100%; height: 100%; object-fit: cover; }
.thumb-item.active, .thumb-item:hover { border-color: var(--primary); }

/* Product Info */
.product-info { padding-top: 10px; }
.product-category-tag {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 10px;
}
.product-title {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 14px;
    line-height: 1.3;
}
.product-rating-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.rating-stars { color: var(--secondary); font-size: 1rem; }
.rating-count { font-size: 0.85rem; color: var(--text-muted); }
.rating-divider { color: var(--border); }
.in-stock { font-size: 0.85rem; color: var(--success); font-weight: 500; }
.out-stock { font-size: 0.85rem; color: var(--danger); font-weight: 500; }

.product-price-block { margin-bottom: 24px; }
.product-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}
.product-price-original {
    font-size: 1.1rem;
    color: var(--text-muted);
    text-decoration: line-through;
    margin-left: 10px;
}
.product-discount {
    display: inline-block;
    background: var(--danger);
    color: white;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    margin-left: 10px;
}
.product-price-note { font-size: 0.8rem; color: var(--text-muted); margin-top: 6px; }

.product-short-desc {
    font-size: 0.95rem;
    color: var(--text-medium);
    line-height: 1.7;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

/* Weight Options */
.product-options { margin-bottom: 24px; }
.option-label {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px;
}
.option-label span { color: var(--primary); }
.weight-options { display: flex; gap: 10px; flex-wrap: wrap; }
.weight-btn {
    padding: 8px 18px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-medium);
    background: white;
    cursor: pointer;
    transition: var(--transition);
}
.weight-btn.active, .weight-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--light-bg);
}

/* Quantity */
.qty-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.qty-control {
    display: flex;
    align-items: center;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
}
.qty-btn {
    width: 40px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--text-medium);
    background: var(--off-white);
    transition: var(--transition);
    cursor: pointer;
}
.qty-btn:hover { background: var(--primary); color: white; }
.qty-input {
    width: 56px;
    height: 44px;
    text-align: center;
    border: none;
    border-left: 1.5px solid var(--border);
    border-right: 1.5px solid var(--border);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    outline: none;
    background: white;
}
.product-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-wishlist {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    border: 1.5px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--text-medium);
    background: white;
    transition: var(--transition);
    cursor: pointer;
}
.btn-wishlist:hover, .btn-wishlist.active { border-color: var(--danger); color: var(--danger); background: #fff5f5; }

/* Product Meta */
.product-meta {
    padding: 20px 0;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.meta-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.88rem;
}
.meta-row .meta-label { color: var(--text-muted); min-width: 80px; }
.meta-row .meta-value { color: var(--text-dark); font-weight: 500; }
.meta-row .meta-value a { color: var(--primary); }

/* Share */
.product-share {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}
.share-label { font-size: 0.85rem; color: var(--text-muted); }
.share-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--light-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: var(--text-medium);
    transition: var(--transition);
}
.share-btn:hover { background: var(--primary); color: white; }

/* Product Tabs */
.product-tabs-section { padding: 60px 0; }
.tabs-nav {
    display: flex;
    border-bottom: 2px solid var(--border);
    margin-bottom: 30px;
    gap: 4px;
    overflow-x: auto;
}
.tab-nav-btn {
    padding: 12px 24px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: var(--transition);
    white-space: nowrap;
    cursor: pointer;
    background: none;
}
.tab-nav-btn.active, .tab-nav-btn:hover {
    color: var(--primary);
    border-bottom-color: var(--primary);
}
.tab-content { display: none; }
.tab-content.active { display: block; }
.tab-content p { font-size: 0.95rem; color: var(--text-medium); line-height: 1.8; margin-bottom: 16px; }

/* Reviews */
.reviews-summary {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 40px;
    align-items: center;
    padding: 30px;
    background: var(--off-white);
    border-radius: var(--radius-lg);
    margin-bottom: 30px;
}
.rating-big {
    text-align: center;
    padding-right: 40px;
    border-right: 1px solid var(--border);
}
.rating-big .number {
    font-size: 4rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}
.rating-big .stars { font-size: 1.2rem; color: var(--secondary); margin: 8px 0; }
.rating-big .count { font-size: 0.85rem; color: var(--text-muted); }
.rating-bars { display: flex; flex-direction: column; gap: 8px; }
.rating-bar-row {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.85rem;
}
.rating-bar-row .label { min-width: 40px; color: var(--text-muted); }
.rating-bar-row .bar {
    flex: 1;
    height: 8px;
    background: var(--border);
    border-radius: var(--radius-full);
    overflow: hidden;
}
.rating-bar-row .bar .fill {
    height: 100%;
    background: var(--secondary);
    border-radius: var(--radius-full);
}
.rating-bar-row .count { min-width: 30px; color: var(--text-muted); text-align: right; }

.review-item {
    padding: 24px 0;
    border-bottom: 1px solid var(--border);
}
.review-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 12px;
    gap: 16px;
}
.reviewer-info { display: flex; align-items: center; gap: 12px; }
.reviewer-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--light-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--primary);
    font-size: 1rem;
    flex-shrink: 0;
}
.reviewer-name { font-size: 0.9rem; font-weight: 600; color: var(--text-dark); }
.review-date { font-size: 0.78rem; color: var(--text-muted); }
.review-stars { color: var(--secondary); font-size: 0.9rem; }
.review-text { font-size: 0.9rem; color: var(--text-medium); line-height: 1.7; }

/* Related Products */
.related-products { padding: 60px 0; background: var(--off-white); }

@media (max-width: 992px) {
    .product-detail-grid { grid-template-columns: 1fr; gap: 30px; }
    .product-gallery { position: static; }
    .reviews-summary { grid-template-columns: 1fr; }
    .rating-big { border-right: none; border-bottom: 1px solid var(--border); padding-right: 0; padding-bottom: 20px; }
}
