﻿.product-detail-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.product-detail-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    padding: 2rem;
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Image Section */
.product-image-section {
    position: relative;
}

.image-container {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #f8f9fa;
    aspect-ratio: 1;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    cursor:pointer;
}

.image-container:hover .product-image {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    top: 1rem;
    right: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-container:hover .image-overlay {
    opacity: 1;
}

.zoom-btn {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

    .zoom-btn:hover {
        background: rgba(255, 255, 255, 1);
        transform: scale(1.1);
    }

/* Product Info Section */
.product-info-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.product-header {
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 1.5rem;
}

.product-title {
    font-size: 2rem;
    font-weight: 700;
    color: #212529;
    margin: 0 0 1rem 0;
    line-height: 1.2;
}

.product-price {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
}

.currency {
    font-size: 1.25rem;
    font-weight: 600;
    color: gold;
}

.amount {
    font-size: 2.5rem;
    font-weight: 700;
    color: gold;
}

.product-description {
    color: #6c757d;
    font-size: 1.1rem;
    line-height: 1.6;
}

.product-details-container {
    flex: 1;
}

.product-details-content {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    min-height: 120px;
}

/* Loading Skeleton */
.loading-skeleton {
    animation: pulse 1.5s ease-in-out infinite;
}

.skeleton-line {
    height: 16px;
    background: linear-gradient(90deg, #e9ecef 25%, #f8f9fa 50%, #e9ecef 75%);
    border-radius: 4px;
    margin-bottom: 12px;
}

    .skeleton-line.short {
        width: 60%;
    }

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

/* Product Actions */
.product-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.btn-add-to-cart {
    background: linear-gradient(109.6deg, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 98.6%);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
    overflow: hidden;
    flex: 1;
    justify-content: center;
}

    .btn-add-to-cart:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(40, 167, 69, 0.3);
    }

    .btn-add-to-cart:active {
        transform: translateY(0);
    }

.btn-loading {
    display: none;
}

.btn-add-to-cart.loading .btn-text,
.btn-add-to-cart.loading .btn-icon {
    opacity: 0;
}

.btn-add-to-cart.loading .btn-loading {
    display: block;
}

.btn-wishlist,
.btn-share {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #6c757d;
}

    .btn-wishlist:hover {
        background: #fff5f5;
        border-color: #dc3545;
        color: #dc3545;
    }

    .btn-share:hover {
        background: #f0f8ff;
        border-color: #007bff;
        color: #007bff;
    }

/* Image Modal */
/*.image-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    margin: auto;
    display: block;
    width: 90%;
    max-width: 800px;
    top: 50%;
    transform: translateY(-50%);
}

    .modal-content img {
        width: 100%;
        height: auto;
        border-radius: 8px;
    }

.modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
}

    .modal-close:hover {
        opacity: 0.7;
    }*/

/* Responsive Design */
@media (max-width: 768px) {
    .product-detail-card {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 1.5rem;
        margin: 1rem;
    }

    .product-title {
        font-size: 1.5rem;
    }

    .amount {
        font-size: 2rem;
    }

    .product-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-wishlist,
    .btn-share {
        width: 100%;
        height: 50px;
    }
}

@media (max-width: 480px) {
    .product-detail-container {
        padding: 0 0.5rem;
    }

    .product-detail-card {
        margin: 0.5rem;
        padding: 1rem;
    }
}
