/* Product Detail Styles */
.product-detail-wrapper {
    padding: 60px 0;
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

/* Gallery Styles */
.product-gallery .main-image {
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 15px;
    background: #f9f9f9;
}

.product-gallery .main-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.thumbnail-list {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.thumbnail {
    width: 80px;
    height: 80px;
    border: 2px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s;
}

.thumbnail.active {
    border-color: #000;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Product Info Styles */
.product-info-detail h1 {
    font-size: 32px;
    margin-bottom: 15px;
    font-weight: 700;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.stars {
    color: #ffc107;
}

.product-price {
    margin-bottom: 20px;
}

.current-price {
    font-size: 32px;
    font-weight: 700;
    color: #000;
}

.old-price {
    font-size: 18px;
    text-decoration: line-through;
    color: #999;
    margin-left: 10px;
}

.discount-badge {
    background: #e74c3c;
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 14px;
    margin-left: 10px;
}

.product-description {
    margin-bottom: 25px;
    line-height: 1.6;
    color: #666;
}

.size-selector,
.color-selector,
.quantity-selector {
    margin-bottom: 20px;
}

.size-selector h4,
.color-selector h4,
.quantity-selector h4 {
    margin-bottom: 10px;
    font-size: 16px;
    font-weight: 600;
}

.size-options,
.color-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.size-btn {
    width: 45px;
    height: 45px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
}

.size-btn:hover,
.size-btn.active {
    border-color: #000;
    background: #000;
    color: #fff;
}

.color-btn {
    width: 40px;
    height: 40px;
    border: 2px solid #ddd;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.color-btn:hover,
.color-btn.active {
    border-color: #000;
    transform: scale(1.1);
}

.color-name {
    display: none;
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 10px;
}

.qty-btn {
    width: 40px;
    height: 40px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s;
}

.qty-btn:hover {
    background: #f5f5f5;
}

.quantity-control input {
    width: 60px;
    height: 40px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.stock-status {
    margin-bottom: 20px;
}

.in-stock {
    color: #27ae60;
    font-weight: 500;
}

.out-of-stock {
    color: #e74c3c;
    font-weight: 500;
}

.action-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.btn-add-cart,
.btn-buy-now {
    flex: 1;
    padding: 15px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-add-cart:disabled,
.btn-buy-now:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-add-cart {
    background: #f5f5f5;
    color: #000;
    border: 1px solid #ddd;
}

.btn-add-cart:hover:not(:disabled) {
    background: #e0e0e0;
}

.btn-buy-now {
    background: #000;
    color: #fff;
}

.btn-buy-now:hover:not(:disabled) {
    background: #333;
}

.wishlist-share {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #eee;
}

.wishlist-btn,
.share-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: #666;
}

.wishlist-btn:hover,
.share-btn:hover {
    color: #000;
}

.product-meta {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
}

.meta-item {
    margin-bottom: 8px;
}

/* Tabs Section */
.product-tabs-section {
    padding: 60px 0;
    background: #f9f9f9;
}

.tabs {
    display: flex;
    gap: 10px;
    border-bottom: 1px solid #ddd;
    margin-bottom: 30px;
}

.tab-btn {
    padding: 12px 24px;
    background: none;
    border: none;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    color: #666;
    transition: all 0.3s;
}

.tab-btn.active {
    color: #000;
    border-bottom: 2px solid #000;
}

.tab-content {
    display: none;
    padding: 20px 0;
}

.tab-content.active {
    display: block;
}

.tab-content h3 {
    margin-bottom: 15px;
    font-size: 20px;
}

.tab-content ul {
    list-style: none;
    padding: 0;
}

.tab-content ul li {
    padding: 8px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tab-content ul li i {
    color: #27ae60;
}

/* Related Products Section */
.related-products-section {
    padding: 60px 0;
}

.related-products-section .section-header {
    text-align: center;
    margin-bottom: 40px;
}

.related-products-section .section-header h2 {
    font-size: 32px;
    margin-bottom: 10px;
}

.related-products-section .section-header p {
    color: #666;
}

.related-products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.product-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.product-image {
    position: relative;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.3s;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.discount-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #e74c3c;
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    z-index: 1;
}

.product-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    transition: opacity 0.3s;
}

.product-card:hover .product-actions {
    opacity: 1;
}

.product-actions a {
    width: 36px;
    height: 36px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    transition: all 0.3s;
}

.product-actions a:hover {
    background: #000;
    color: #fff;
}

.product-info {
    padding: 15px;
    text-align: center;
}

.product-info h3 {
    font-size: 16px;
    margin-bottom: 8px;
}

.product-info h3 a {
    text-decoration: none;
    color: #333;
}

.product-info h3 a:hover {
    color: #000;
}

.price {
    margin-bottom: 12px;
}

.current-price {
    font-size: 18px;
    font-weight: 700;
    color: #000;
}

.old-price {
    font-size: 14px;
    text-decoration: line-through;
    color: #999;
    margin-left: 8px;
}

.btn-add-to-cart {
    display: inline-block;
    padding: 8px 20px;
    background: #f5f5f5;
    color: #000;
    text-decoration: none;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s;
    cursor: pointer;
}

.btn-add-to-cart:hover {
    background: #000;
    color: #fff;
}

/* Toast Notification */
.toast-notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #333;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    z-index: 1000;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 992px) {
    .related-products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .product-detail-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .related-products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .action-buttons {
        flex-direction: column;
    }

    .tabs {
        flex-wrap: wrap;
    }
}

@media (max-width: 576px) {
    .related-products-grid {
        grid-template-columns: 1fr;
    }
}