.product-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.loading-spinner {
    text-align: center;
    padding: 3rem 0;
    color: var(--primary-color);
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(74, 128, 130, 0.2);
    border-left: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.product-detail {
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.product-header {
    background: var(--primary-color);
    color: var(--white);
    padding: 1.5rem 2rem;
}

.product-title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    text-transform: capitalize;
}

.product-content {
    display: flex;
    flex-wrap: wrap;
    padding: 2.5rem 2rem;
    justify-content: center;
    gap: 1.5rem;
    background-color: rgba(74, 128, 130, 0.05);
}

.product-image-section {
    flex: 0 0 280px;
    margin-bottom: 2rem;
    text-align: center;
}

.product-thumb-link {
    display: inline-block;
    width: 100%;
    cursor: zoom-in;
    pointer-events: auto;
}

.product-thumb-link:hover {
    transform: translateY(-5px);
    transition: var(--transition);
}

.product-thumb {
    max-width: 100%;
    height: auto;
    border: 1px solid rgba(74, 128, 130, 0.1);
    border-radius: 6px;
    background-color: #f9f9f9;
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 0.85rem;
    content: attr(alt);
    pointer-events: none;
}

.product-image-section.image-loaded .product-thumb {
    background-color: transparent;
    min-height: auto;
    color: transparent;
}

.product-info-section {
    flex: 0 0 450px;
    min-width: 280px;
}

.product-info-table {
    width: 100%;
    margin-bottom: 1.2rem;
    border-collapse: collapse;
    font-size: 0.85rem;
    background: var(--white);
    border: 1px solid rgba(74, 128, 130, 0.15);
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.03);
}

.info-row {
    display: flex;
    border-bottom: 1px solid rgba(74, 128, 130, 0.1);
    padding: 0.4rem 0;
    background-color: rgba(74, 128, 130, 0.02);
}

.info-row:nth-child(even) {
    background-color: rgba(74, 128, 130, 0.04);
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    flex: 0 0 110px;
    font-weight: 500;
    color: rgba(74, 128, 130, 0.8);
    padding-right: 0.6rem;
}

.info-value {
    flex: 1;
    color: var(--text-color);
    line-height: 1.4;
}

.info-value[data-field="model"],
.info-value[data-field="item"] {
    position: relative;
}

.info-value:empty::after {
    content: '-';
    color: #bbb;
}

.description-row .info-value {
    line-height: 1.5;
    white-space: pre-line;
    padding: 0.2rem 0;
}

.product-actions {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(74, 128, 130, 0.1);
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.inquiry-button,
.return-button {
    display: inline-flex;
    align-items: center;
    padding: 0.55rem 1.1rem;
    border-radius: 4px;
    font-weight: 500;
    font-size: 0.85rem;
    transition: var(--transition);
    text-decoration: none;
}

.inquiry-button {
    background: #2F869A;
    color: var(--white);
    border: none;
    cursor: pointer;
}

.inquiry-button:hover {
    background: #246a78;
    transform: translateY(-2px);
}

.return-button {
    background: var(--primary-color);
    color: var(--white);
}

.return-button:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
}

.button-icon {
    margin-right: 0.5rem;
}

.error-message {
    text-align: center;
    padding: 3rem 1rem;
    color: #DC2626;
}

.error-message h2 {
    margin-bottom: 1rem;
}

.return-link {
    display: inline-block;
    margin-top: 1rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.return-link:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .product-content {
        flex-direction: column;
        padding: 1.5rem 1rem;
        gap: 1rem;
    }

    .product-image-section {
        flex: 0 0 auto;
        max-width: 300px;
        margin: 0 auto 1.5rem;
    }

    .product-info-section {
        flex: 0 0 auto;
        width: 100%;
        max-width: 350px;
        margin: 0 auto;
    }

    .product-info-table {
        padding: 0.8rem;
    }

    .info-row {
        flex-direction: column;
        padding: 0.5rem 0;
    }

    .info-label {
        flex: 0 0 auto;
        margin-bottom: 0.2rem;
        margin-left: 0.2rem;
    }

    .product-actions {
        flex-direction: column;
    }

    .inquiry-button,
    .return-button {
        width: 100%;
        justify-content: center;
    }
}

.swiper-lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.swiper-lightbox-overlay.active {
    opacity: 1;
    visibility: visible;
}

.swiper-lightbox-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    z-index: 10000;
    width: 90%;
    max-width: 1200px;
    max-height: 90vh;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.swiper-lightbox-container.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.swiper-lightbox-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 90vh;
}

.swiper-lightbox-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.swiper-lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: var(--white);
    font-size: 24px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 10001;
}

.swiper-lightbox-close:hover {
    color: #ccc;
    transform: rotate(90deg);
}

.swiper-lightbox-nav {
    position: absolute;
    top: 50%;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transform: translateY(-50%);
    transition: var(--transition);
    z-index: 10;
}

.swiper-lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.4);
}

.swiper-lightbox-prev {
    left: -50px;
}

.swiper-lightbox-next {
    right: -50px;
}

.swiper-lightbox-container.single-image .swiper-lightbox-nav {
    display: none;
}