/* Product Detail Page Styles */

.product-detail-layout {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 50px;
    margin-top: 40px;
}

/* Image Gallery */
.product-gallery {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.main-image-container {
    background-color: var(--bg-white);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    aspect-ratio: 1 / 1;
    box-shadow: var(--card-shadow);
    position: relative;
    cursor: zoom-in;
}

.main-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.main-image-container:hover img {
    transform: scale(1.5);
}

.thumbnail-row {
    display: flex;
    gap: 15px;
}

.thumbnail {
    width: 80px;
    height: 80px;
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    box-shadow: var(--card-shadow);
    transition: var(--transition-smooth);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnail.active,
.thumbnail:hover {
    border-color: var(--primary);
}

/* Product Info Card */
.product-info {
    padding: 10px 0;
}

.product-info-title {
    font-size: 2.2rem;
    margin-bottom: 15px;
    line-height: 1.3;
}

.product-meta-row {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

.stock-badge {
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
}

.stock-badge.in-stock {
    background-color: rgba(37, 211, 102, 0.15);
    color: #20BA5A;
}

.stock-badge.out-of-stock {
    background-color: rgba(231, 76, 60, 0.15);
    color: #E74C3C;
}

.product-info-price {
    display: flex;
    align-items: baseline;
    gap: 15px;
    margin-bottom: 25px;
}

.product-info-price .current-price {
    font-size: 2.2rem;
    font-weight: 700;
}

.product-info-price .original-price {
    font-size: 1.4rem;
}

.discount-percentage {
    background-color: var(--primary);
    color: var(--text-white);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
    align-self: center;
}

.product-desc {
    color: var(--text-light);
    margin-bottom: 30px;
    font-size: 1.05rem;
    line-height: 1.7;
}

/* Add to Cart Controls */
.purchase-controls {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.qty-selector {
    display: flex;
    align-items: center;
    border: 1px solid rgba(74, 25, 66, 0.15);
    border-radius: 50px;
    overflow: hidden;
    background-color: var(--bg-white);
}

.qty-btn {
    width: 45px;
    height: 45px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    color: var(--secondary);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition-smooth);
}

.qty-btn:hover {
    background-color: var(--bg-cream);
}

.qty-input {
    width: 45px;
    height: 45px;
    border: none;
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
    color: var(--secondary);
}

/* Review Tabs Section */
.product-tabs {
    margin-top: 80px;
    border-top: 1px solid rgba(74, 25, 66, 0.08);
    padding-top: 40px;
}

.tabs-header {
    display: flex;
    gap: 30px;
    border-bottom: 1px solid rgba(74, 25, 66, 0.08);
    margin-bottom: 30px;
}

.tab-link {
    font-family: 'Inter', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-light);
    padding-bottom: 12px;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.tab-link.active,
.tab-link:hover {
    color: var(--secondary);
    border-bottom-color: var(--primary);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Reviews List */
.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-bottom: 50px;
}

.review-item {
    background-color: var(--bg-white);
    border-radius: var(--border-radius-md);
    padding: 25px;
    box-shadow: var(--card-shadow);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.reviewer-name {
    font-weight: 600;
    font-size: 1.05rem;
}

.review-date {
    font-size: 0.85rem;
    color: var(--text-light);
}

.review-text {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Submit Review Form */
.review-form-card {
    background-color: var(--bg-white);
    border-radius: var(--border-radius-md);
    padding: 30px;
    box-shadow: var(--card-shadow);
}

.review-form-card h3 {
    margin-bottom: 25px;
    font-size: 1.4rem;
}

.star-rating-input {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 5px;
    margin-bottom: 20px;
}

.star-rating-input input {
    display: none;
}

.star-rating-input label {
    font-size: 1.8rem;
    color: #BDC3C7;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.star-rating-input input:checked ~ label,
.star-rating-input label:hover,
.star-rating-input label:hover ~ label {
    color: #F1C40F;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    padding: 12px 20px;
    border-radius: var(--border-radius-sm);
    border: 1px solid rgba(74, 25, 66, 0.15);
    background-color: var(--bg-cream);
    font-size: 0.95rem;
}

.form-control:focus {
    border-color: var(--secondary);
    background-color: var(--bg-white);
}

@media (max-width: 768px) {
    .product-detail-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .product-info-title {
        font-size: 1.8rem;
    }
}
