/* Product Page Specific Styles */
.product-page-main {
    padding: 2rem 0;
}

.product-page-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

/* Product Gallery */
.product-gallery {
    display: flex;
    flex-direction: column;
}

.main-image {
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.main-image img {
    width: 70%;
    display: block;
}

.thumbnail-images {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.thumbnail-images img {
    width: 100%;
    border: 2px solid transparent;
    border-radius: 5px;
    cursor: pointer;
    transition: border-color 0.3s;
}

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

/* Product Details */
.product-details {
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
}

.product-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-light);
    font-size: 0.9rem;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 5px;
}

.product-rating .fa-star,
.product-rating .fa-star-half-alt {
    color: #f39c12;
}

.product-sold {
    border-left: 1px solid #ddd;
    padding-left: 1.5rem;
}

.product-price {
    background-color: #fff7f5;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.current-price {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-red);
}

.original-price {
    font-size: 1.2rem;
    text-decoration: line-through;
    
}

.discount-percentage {
    background-color: var(--primary-red);
    color: #fff;
    font-size: 0.8rem;
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 4px;
}

/* Product Options */
.product-options {
    margin-bottom: 1.5rem;
}

.option-group {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.option-group label {
    font-weight: bold;
    width: 80px;
}

.option-buttons .option-btn {
    background-color: #fff;
    border: 1px solid #ddd;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    margin-right: 0.5rem;
    transition: all 0.3s;
}

.option-buttons .option-btn.active,
.option-buttons .option-btn:hover {
    border-color: var(--primary-red);
    color: var(--primary-red);
}

/* Product Actions */
.product-actions {
    margin-bottom: 1.5rem;
}

.quantity-selector {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.quantity-selector label {
    font-weight: bold;
    width: 80px;
}

.quantity-btn {
    width: 30px;
    height: 30px;
    border: 1px solid #ddd;
    background-color: #f9f9f9;
    cursor: pointer;
    font-size: 1.2rem;
}

.quantity-input {
    width: 50px;
    text-align: center;
    border: 1px solid #ddd;
    border-left: none;
    border-right: none;
    height: 28px;
}

.action-buttons {
    display: flex;
    gap: 1rem;
}

.btn-buy-now, .btn-add-to-cart {
    flex: 1;
    padding: 0.8rem;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-buy-now {
    background-color: var(--primary-red);
    color: #fff;
}
.btn-buy-now:hover {
    background-color: var(--primary-red-dark);
}

.btn-add-to-cart {
    background-color: #ffc107;
    color: #333;
}
.btn-add-to-cart:hover {
    background-color: #ffb300;
}
.ActiveCartBtn {
    background-color: #fff;
    color: #ffc107;
    border: 1px solid #ffc107;
}
/* Store Info */
.store-info {
    border-top: 1px solid #eee;
    padding-top: 1.5rem;
}

.store-header {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.store-logo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1px solid #eee;
}

.store-name h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}
.store-name span {
    font-size: 0.85rem;
    color: var(--text-light);
}

.btn-follow {
    margin-left: auto;
    background: transparent;
    border: 1px solid var(--primary-red);
    color: var(--primary-red);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
}
.btn-follow:hover {
    background-color: var(--primary-red);
    color: #fff;
}

/* Product Details Tabs */
.product-details-tabs {
    margin-top: 3rem;
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.tab-navigation {
    border-bottom: 1px solid #eee;
    margin-bottom: 1.5rem;
}

.tab-link {
    background: none;
    border: none;
    font-size: 1.1rem;
    padding: 0.8rem 1.5rem;
    cursor: pointer;
    color: var(--text-light);
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
}

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

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

#description ul {
    list-style: none;
    padding-left: 0;
}
#description ul li {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}
#description ul li .fa-check-circle {
    color: #2ecc71;
    margin-right: 10px;
}

#specifications table {
    width: 100%;
    border-collapse: collapse;
}
#specifications th, #specifications td {
    padding: 0.8rem;
    border-bottom: 1px solid #eee;
    text-align: left;
}
#specifications th {
    background-color: #f9f9f9;
    font-weight: 600;
    width: 150px;
}

/* Reviews */
.review {
    border-bottom: 1px solid #eee;
    padding: 1.5rem 0;
}
.review:last-child {
    border-bottom: none;
}
.review-author {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0.5rem;
}
.review-author img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}
.review-author span {
    font-weight: bold;
}
.review-rating {
    margin-bottom: 0.5rem;
    color: #f39c12;
}
.review-text {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}
.review-date {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* Responsive */
@media (max-width: 992px) {
    .product-page-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .product-page-main {
        padding: 1rem 0;
    }
    .product-page-grid {
        padding: 1rem;
    }
    .product-title {
        font-size: 1.5rem;
    }
    .current-price {
        font-size: 1.8rem;
    }
    .action-buttons {
        flex-direction: column;
    }
    .tab-link {
        padding: 0.8rem;
        font-size: 1rem;
    }
}
