.product-detail-section {
    padding: 50px 0 90px 0;
    background-color: var(--bg-primary);
}

.product-detail-section .container {
    max-width: 1140px;
    margin: 0 auto;
}

.product-header {
    background-image: url('../images/bg/background.jpg');
}

.product-detail-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: start;
    justify-content: center;
    width: 100%;
}

.product-gallery-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

.product-info-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

.product-gallery-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 20px;
    box-shadow: var(--shadow-premium);
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

.gallery-main-display {
    width: 100%;
    height: 380px;
    border-radius: 14px;
    overflow: hidden;
    position: relative;
    background: #070d18;
    border: 1.5px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.5);
}

.gallery-main-display img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: opacity 0.3s ease, transform 0.3s ease;
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.6));
}

.gallery-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.75);
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    color: var(--text-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.25s ease;
    z-index: 10;
    backdrop-filter: blur(8px);
}

.gallery-nav-btn:hover {
    background: var(--accent-blue);
    border-color: var(--accent-blue);
    box-shadow: 0 0 16px rgba(37, 99, 235, 0.6);
    transform: translateY(-50%) scale(1.06);
}

.gallery-prev-btn {
    left: 14px;
}

.gallery-next-btn {
    right: 14px;
}

.gallery-thumbnails {
    display: flex;
    gap: 10px;
    margin-top: 2px;
    overflow-x: auto;
    padding-bottom: 6px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    width: 100%;
}

.gallery-thumbnails::-webkit-scrollbar {
    height: 5px;
}

.gallery-thumbnails::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
}

.gallery-thumbnails::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 10px;
}

.gallery-thumbnails::-webkit-scrollbar-thumb:hover {
    background: var(--accent-blue);
}

.gallery-thumbnail-item {
    width: 82px;
    height: 60px;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid var(--border-color);
    transition: all 0.25s ease;
    flex-shrink: 0;
    background: #070d18;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.gallery-thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.55;
    transition: all 0.25s ease;
}

.gallery-thumbnail-item:hover {
    border-color: rgba(37, 99, 235, 0.5);
    transform: translateY(-2px);
}

.gallery-thumbnail-item:hover img {
    opacity: 0.85;
}

.gallery-thumbnail-item.active {
    border-color: var(--accent-blue);
    box-shadow: 0 0 12px rgba(37, 99, 235, 0.45);
    transform: translateY(-2px);
}

.gallery-thumbnail-item.active img {
    opacity: 1;
}

.product-notice-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 18px 22px;
    box-shadow: var(--shadow-premium);
    width: 100%;
}

.product-notice-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.product-notice-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13.5px;
    color: var(--text-main);
    line-height: 1.5;
}

.notice-icon {
    font-size: 15px;
    color: var(--accent-blue);
    flex-shrink: 0;
}

.product-info-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 24px;
    box-shadow: var(--shadow-premium);
    display: flex;
    flex-direction: column;
    gap: 18px;
    width: 100%;
}

.product-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-id-tag {
    font-size: 13px;
    font-weight: 700;
    color: var(--accent-blue);
    background: rgba(37, 99, 235, 0.1);
    padding: 5px 14px;
    border-radius: 20px;
    border: 1px solid rgba(37, 99, 235, 0.2);
}

.product-status-tag {
    font-size: 13px;
    font-weight: 600;
    color: #10b981;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(16, 185, 129, 0.1);
    padding: 5px 14px;
    border-radius: 20px;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.status-dot-radar {
    width: 8px;
    height: 8px;
    background-color: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 10px #10b981;
}

.product-detail-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.4;
    margin: 0;
}

.product-desc-box {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 18px;
}

.product-spec-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.product-spec-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13.5px;
    color: var(--text-main);
}

.spec-item-left {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.spec-item-left i {
    color: var(--accent-blue);
    font-size: 15px;
    width: 20px;
    text-align: center;
}

.spec-check-icon {
    color: #10b981;
    font-size: 15px;
}

.product-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 18px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

.price-label {
    font-size: 13.5px;
    font-weight: 500;
    color: var(--text-muted);
}

.price-amount {
    font-size: 22px;
    font-weight: 800;
    color: var(--accent-blue);
}

.currency-symbol {
    font-size: 15px;
    font-weight: 600;
}

.product-discount-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.discount-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.discount-label {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-main);
}

.discount-input-row {
    display: flex;
    gap: 10px;
}

.discount-input {
    flex: 1;
    height: 42px;
    background: var(--bg-tertiary);
    border: 1.5px solid var(--border-color);
    border-radius: 10px;
    padding: 0 14px;
    font-family: 'Kanit', sans-serif;
    font-size: 13.5px;
    color: var(--text-main);
    outline: none;
    transition: all 0.25s ease;
}

.discount-input:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 12px rgba(37, 99, 235, 0.25);
}

.btn-apply-discount {
    height: 42px;
    padding: 0 18px;
    background: var(--accent-blue);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-family: 'Kanit', sans-serif;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.btn-apply-discount:hover {
    background: var(--accent-blue-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.discount-results-box {
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 10px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 2px;
}

.discount-result-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text-muted);
}

.discount-result-row.total-row {
    font-weight: 700;
    color: #10b981;
    font-size: 14.5px;
    padding-top: 6px;
    border-top: 1px dashed rgba(16, 185, 129, 0.2);
}

.btn-buy-product {
    width: 100%;
    height: 48px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-family: 'Kanit', sans-serif;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.28);
    transition: all 0.25s ease;
    margin-top: 6px;
}

.btn-buy-product:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(37, 99, 235, 0.4);
}

@media (max-width: 992px) {
    .product-detail-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .gallery-main-display {
        height: 340px;
    }
}

@media (max-width: 576px) {
    .product-gallery-card, .product-info-card {
        padding: 18px;
        border-radius: 16px;
    }

    .gallery-main-display {
        height: 260px;
        border-radius: 12px;
    }

    .gallery-thumbnail-item {
        width: 70px;
        height: 50px;
    }

    .product-detail-title {
        font-size: 18px;
    }

    .price-amount {
        font-size: 20px;
    }
}
