/* Product Single Page Layout */
.scdev-single-post.scdev_product-scdev_product {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.product-images-section {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.product-featured-image {
    width: 100%;
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--bg-secondary, #f8f9fa);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.product-featured-image img {
    width: 100%;
    height: auto;
    display: block;
    max-height: 500px;
    object-fit: contain;
    cursor: pointer;
}

.product-gallery {
    display: flex;
    gap: 4px;
    margin-top: 15px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 8px;
    /* background: var(--bg-secondary, #f8f9fa); */
    border-radius: 12px;
    scrollbar-width: thin;
    scrollbar-color: var(--border-color, #888) var(--bg-secondary, #f1f1f1);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.product-gallery::-webkit-scrollbar {
    height: 8px;
}

.product-gallery::-webkit-scrollbar-track {
    background: var(--bg-secondary, #f1f1f1);
    border-radius: 4px;
}

.product-gallery::-webkit-scrollbar-thumb {
    background: var(--border-color, #888);
    border-radius: 4px;
}

.product-gallery::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary, #555);
}

.gallery-image {
    border-radius: 8px;
    overflow: hidden;
    background: var(--bg-secondary, #f8f9fa);
    width: 100px;
    height: 100px;
    flex-shrink: 0;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery-image img:hover {
    transform: scale(1.05);
}

.product-info-section {
    margin-bottom: 20px;
}

.product-title {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 15px 0;
    color: var(--text-primary, #1a1a1a);
    line-height: 1.2;
}

.product-single-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 15px;
    /* background: var(--bg-secondary, #f8f9fa); */
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.product-price {
    font-size: 30px;
    font-weight: 700;
    color: #28a745;
    line-height: 39px !important;
    display: inline-block !important;
    height: 39px !important;
    padding: 0 10px;
    vertical-align: middle !important;
}

.product-action-buttons {
    display: flex;
    gap: 12px;
    margin-left: auto;
}

.product-btn {
    padding: 0 24px;
    background: #0ea5e9;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
    line-height: 39px;
    height: 39px;
    min-width: 120px;
    box-sizing: border-box;
}

.product-btn:hover {
    background: #0284c7;
}

.product-btn-transparent {
    background: transparent !important;
    color: var(--text-primary, #1a1a1a) !important;
    cursor: default;
    padding: 0 12px;
    min-width: auto;
}

body.night-mode .product-btn-transparent {
    color: #999 !important;
}

.product-category-link {
    cursor: pointer !important;
    text-decoration: none;
    transition: color 0.3s ease;
}

body.night-mode .product-category-link {
    color: #999 !important;
}

.product-category-link:hover {
    color: #0ea5e9 !important;
    background: transparent !important;
}

/* Night Mode - Grey borders for decorative lines */
body.night-mode .product-images-section {
    border-bottom-color: rgba(255, 255, 255, 0.15);
}

body.night-mode .product-featured-image,
body.night-mode .product-gallery,
body.night-mode .gallery-image,
body.night-mode .product-single-line,
body.night-mode .product-description {
    border-color: rgba(255, 255, 255, 0.15);
}

.product-description {
    margin-bottom: 30px;
    padding: 20px;
    /* background: var(--bg-primary, #fff); */
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.product-description h2 {
    font-size: 22px;
    margin: 0 0 15px 0;
    color: var(--text-primary, #1a1a1a);
}

.product-description p {
    line-height: 1.6;
    color: var(--text-secondary, #666);
    margin-bottom: 10px;
}

/* Review Form */
.star-rating-selector {
    display: inline-flex;
    gap: 5px;
    margin-left: 15px;
}

.star-rating-selector .star {
    font-size: 24px;
    cursor: pointer;
    color: #ddd;
}

.star-rating-selector .star.active,
.star-rating-selector .star:hover {
    color: #ffc107;
}

.review-restriction {
    padding: 10px;
    background: var(--bg-secondary, #f8f9fa);
    border-left: 4px solid #0ea5e9;
    margin: 20px 0;
    line-height: 1.2;
}

.comment-rating {
    color: #ffc107;
    font-size: 18px;
    margin-bottom: 10px;
}

/* Gallery Lightbox */
.gallery-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-image {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
    transition: color 0.3s ease;
}

.lightbox-close:hover {
    color: #ccc;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.8);
    color: #000;
    border: none;
    font-size: 30px;
    padding: 15px 20px;
    cursor: pointer;
    z-index: 10000;
    transition: background 0.3s ease;
    border-radius: 4px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 1);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 16px;
    background: rgba(0, 0, 0, 0.7);
    padding: 8px 16px;
    border-radius: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .product-title {
        font-size: 24px;
        margin-bottom: 12px;
    }
    
    .product-single-line {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding: 10px 12px;
    }
    
    .product-price {
        font-size: 28px;
    }
    
    .btn-add-to-cart {
        width: 100%;
        justify-content: center;
    }
    
    .product-gallery {
        gap: 4px;
    }
    
    .gallery-image {
        width: 80px;
        height: 80px;
    }
    
    .product-description {
        padding: 15px;
    }
    
    .lightbox-prev,
    .lightbox-next {
        font-size: 24px;
        padding: 10px 15px;
    }
    
    .lightbox-prev {
        left: 10px;
    }
    
    .lightbox-next {
        right: 10px;
    }
    
    .lightbox-close {
        top: 10px;
        right: 20px;
        font-size: 32px;
    }
}
