/* Product Detail Container */
.product-detail-container {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 15px;
}

.product-detail-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    padding: 30px;
}

/* Breadcrumb Navigation */
.breadcrumb-nav {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

.breadcrumb-nav a {
    color: #4a90e2;
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb-nav a:hover {
    color: #2a6496;
    text-decoration: underline;
}

/* Product Header */
.product-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.product-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.2;
}

.product-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 15px;
    color: #666;
}

.product-brand, .product-category {
    display: flex;
    align-items: center;
    gap: 5px;
}

.product-brand::before {
    content: "•";
    margin-right: 5px;
    color: #ccc;
}

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

.product-rating i {
    color: #FFD700;
    font-size: 16px;
}

.product-rating span {
    font-size: 14px;
    color: #666;
}

/* Product Content Layout */
.product-content {
    display: flex;
    gap: 40px;
}

.gallery-column {
    flex: 1;
    min-width: 0;
}

.info-column {
    flex: 1;
    min-width: 0;
}

/* Image Gallery */
.main-image-container {
    position: relative;
    margin-bottom: 15px;
    border-radius: 12px;
    overflow: hidden;
    background: #f9f9f9;
    aspect-ratio: 1/1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: zoom-in;
    transition: transform 0.3s;
}

.main-image-container:hover {
    transform: translateY(-5px);
}

.main-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.5s;
}

.main-image:hover {
    transform: scale(1.05);
}

.image-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.thumbnail-gallery {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.thumbnail-container {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s;
    flex-shrink: 0;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.thumbnail-container.active {
    border-color: #4a90e2;
}

.thumbnail-container:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.thumbnail {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Price Section */
.price-section {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 25px;
}

.current-price {
    font-size: 2rem;
    font-weight: 700;
    color: #000000;
}

.old-price {
    font-size: 1.3rem;
    text-decoration: line-through;
    color: #999;
}

.discount-badge {
    background: #e74c3c;
    color: white;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

/* Description Section */
.description-section {
    margin-bottom: 30px;
}

.description-section h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
    padding-bottom: 8px;
    border-bottom: 1px solid #f0f0f0;
}

.description-section p {
    line-height: 1.6;
    color: #555;
}

/* Variants Section */
.variants-section {
    margin-bottom: 30px;
}

.variants-section h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
    padding-bottom: 8px;
    border-bottom: 1px solid #f0f0f0;
}

.variants-table {
    width: 100%;
    border-collapse: collapse;
}

.variants-table th {
    text-align: left;
    padding: 10px 15px;
    background-color: #f8f9fa;
    font-weight: 600;
    color: #444;
    border-bottom: 2px solid #e9ecef;
}

.variants-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #e9ecef;
    vertical-align: middle;
}

.variants-table tr:hover td {
    background-color: #f8f9fa;
}

.color-swatch {
    display: inline-block;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    margin-right: 8px;
    vertical-align: middle;
    border: 1px solid #ddd;
}

.in-stock {
    color: #27ae60;
    font-weight: 500;
}

.low-stock {
    color: #f39c12;
    font-weight: 500;
}

.out-of-stock {
    color: #e74c3c;
    font-weight: 500;
}

/* QR Code Section */
.qr-code-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #f0f0f0;
}

.section-header h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
}

.section-header p {
    color: #666;
    font-size: 14px;
    margin-bottom: 20px;
}

.qr-code-container {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    justify-content: center;
}

.qr-code-display {
    text-align: center;
}

.qr-code-image {
    width: 200px;
    height: 200px;
    object-fit: contain;
    background: white;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    margin-bottom: 15px;
}

.qr-code-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.action-btn {
    padding: 8px 15px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.download-btn {
    background: #4a90e2;
    color: white;
}

.download-btn:hover {
    background: #3a7bc8;
    transform: translateY(-2px);
}

.print-btn {
    background: #2ecc71;
    color: white;
}

.print-btn:hover {
    background: #27ae60;
    transform: translateY(-2px);
}

.refresh-btn {
    background: #f39c12;
    color: white;
}

.refresh-btn:hover {
    background: #e67e22;
    transform: translateY(-2px);
}

.no-qr-code {
    text-align: center;
    padding: 20px;
}

.qr-code-placeholder {
    width: 150px;
    height: 150px;
    margin: 0 auto 15px;
    background: white;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #ccc;
    border: 2px dashed #ddd;
}

.qr-code-placeholder i {
    font-size: 40px;
    margin-bottom: 10px;
}

.qr-code-placeholder p {
    font-size: 14px;
    color: #999;
}

.generate-qr-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #4a90e2;
    color: white;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}

.generate-qr-btn:hover {
    background: #3a7bc8;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(74, 144, 226, 0.3);
}

/* Responsive Design */
@media (max-width: 992px) {
    .product-content {
        flex-direction: column;
        gap: 30px;
    }

    .gallery-column, .info-column {
        flex: none;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .product-detail-card {
        padding: 20px;
    }

    .product-title {
        font-size: 1.8rem;
    }

    .current-price {
        font-size: 1.6rem;
    }

    .old-price {
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    .product-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .product-brand::before {
        display: none;
    }

    .qr-code-actions {
        flex-direction: column;
        align-items: center;
    }

    .action-btn {
        width: 100%;
        justify-content: center;
    }
}
