/* Product Gallery */
.product-gallery {
    position: sticky;
    top: 120px;
}

.main-image-container {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    margin-bottom: 1rem;
    background: var(--light-color);
    border: 1px solid var(--border-color);
}

.main-product-image {
    width: 100%;
    height: 500px;
    object-fit: cover;
    transition: transform 0.3s ease;
}


.thumbnail-container {
    display: flex;
    gap: 0.50rem;
    overflow-x: auto;
    scrollbar-width: thin; 
    scrollbar-color: var(--primary-color) transparent;
    padding: 0.5rem 0;
}

.thumbnail {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 0.5rem;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.thumbnail.active {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.similar-product-row {
    display: flex;
    flex-wrap: wrap; /* wrap to next line if too many */
    gap: 12px; /* horizontal + vertical spacing */
    margin-top: 10px;
}

.similar-product-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border: 2px solid var(--primary-color);
    border-radius: 6px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease;
    cursor:pointer;
}

.similar-product-img:hover {
    transform: scale(1.05);
    border-color: var(--primary-dark);
}


/* Product Info */
.product-details-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--dark-color);
    margin-bottom: 1rem;
    line-height: 1.2;
}



.product-price-section {
    background: linear-gradient(135deg, var(--light-color) 0%, #e2e8f0 100%);
    padding: 1rem;
    border-radius: 1rem;
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
}

product-.price-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.product-current-price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
}

.product-original-price {
    font-size: 1.5rem;
    color: var(--secondary-color);
    text-decoration: line-through;
}

.product-discount-badge {
    background: var(--danger-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-weight: 600;
    font-size: 0.875rem;
}

/* Product Options */
.option-group {
    margin-bottom: 2rem;
}

.option-label {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 1rem;
    display: block;
}


.size-options {
    display: flex;
    flex-direction: rows;
    gap: 1rem;
}

.size-option {
    border: 2px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.size-option:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.size-option.active {
    border-color: var(--primary-color);
    background: rgba(37, 99, 235, 0.05);
}
.size-option-disabled{
    pointer-events: none;
    opacity: 0.5;
    cursor: not-allowed;
}
.size-name {
    font-weight: 700;
    color: var(--dark-color);
    font-size: 1.125rem;
}


/* Action Buttons */
.product-details-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.btn-buy-now {
    flex: 2;
    background: linear-gradient(45deg, var(--primary-color), var(--primary-dark));
    color: white;
    border: none;
    padding: 0.50rem 0.50rem;
    border-radius: 0.75rem;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.btn-buy-now:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}
.btn-buy-now-disable, .btn-add-cart-disable{
    pointer-events: none;
    opacity: 0.5;
    cursor: not-allowed;
}
.btn-add-cart {
    flex: 2;
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 0.50rem 0.50rem;
    border-radius: 0.75rem;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.btn-add-cart:hover {
    background: var(--primary-color);
    color: white;
}
.added-to-cart{
    background: #097969; 
    color: white !important;
    border: none;
}
.added-to-cart:hover{
    background: #5F9EA0;
}
.out-of-stock{
    background: linear-gradient(45deg, var(--primary-color), var(--primary-dark));
    color: white;
    border: none;
    padding: 0.50rem 0.50rem;
    border-radius: 0.75rem;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    pointer-events: none;
    cursor: not-allowed;
}
/* Tabs */
.product-tabs {
    background: white;
    border-radius: 1rem;
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    margin-top: 4rem;
}

.nav-tabs {
    border-bottom: 1px solid var(--border-color);
    padding: 0 2rem;
}

.nav-tabs .nav-link {
    border: none;
    color: var(--secondary-color);
    font-weight: 600;
    padding: 1.5rem 2rem;
    transition: all 0.3s ease;
    position: relative;
}

.nav-tabs .nav-link:hover {
    color: var(--primary-color);
}

.nav-tabs .nav-link.active {
    color: var(--primary-color);
    background: none;
}

.nav-tabs .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-color);
}

.tab-content {
    padding: 3rem;
}

.tab-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 2rem;
}


/* Reviews */

.review-item {
    background: var(--light-color);
    padding: 2rem;
    border-radius: 1rem;
    margin-bottom: 2rem;
}

.reviewer-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.reviewer-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    background-color: #ccc; /* default */
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #fff;
    font-size: 20px;
    text-transform: uppercase;
}
/* Background colors based on first letter */
.avatar-a { background-color: #e74c3c; }
.avatar-b { background-color: #9b59b6; }
.avatar-c { background-color: #1abc9c; }
.avatar-d { background-color: #f39c12; }
.avatar-e { background-color: #34495e; }
.avatar-f { background-color: #2ecc71; }
.avatar-g { background-color: #d35400; }
.avatar-h { background-color: #2980b9; }
.avatar-i { background-color: #16a085; }
.avatar-j { background-color: #8e44ad; }
.avatar-k { background-color: #e67e22; }
.avatar-l { background-color: #27ae60; }
.avatar-m { background-color: #c0392b; }
.avatar-n { background-color: #2980b9; }
.avatar-o { background-color: #2c3e50; }
.avatar-p { background-color: #7f8c8d; }
.avatar-q { background-color: #1abc9c; }
.avatar-r { background-color: #9b59b6; }
.avatar-s { background-color: #f1c40f; }
.avatar-t { background-color: #34495e; }
.avatar-u { background-color: #16a085; }
.avatar-v { background-color: #d35400; }
.avatar-w { background-color: #8e44ad; }
.avatar-x { background-color: #2ecc71; }
.avatar-y { background-color: #f39c12; }
.avatar-z { background-color: #e74c3c; }

.reviewer-name {
    font-weight: 700;
    color: var(--dark-color);
}

.review-rating {
    color: #fbbf24;
}


/* Responsive Design */
@media (max-width: 992px) {
    .product-info {
        padding-left: 0.95rem;
        margin-top: 2rem;
    }

    .product-details-title {
        font-size: 2rem;
    }

    .current-price {
        font-size: 2rem;
    }

    .product-actions {
        flex-direction: column;
    }

    .reviews-summary {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .product-gallery {
        position: static;
    }

    .main-product-image {
        height: 300px;
    }

    .product-details-title {
        font-size: 1.75rem;
    }

    .price-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .current-price {
        font-size: 1.75rem;
    }

    .product-features {
        grid-template-columns: 1fr;
    }

    .tab-content {
        padding: 2rem 1rem;
    }

    .spec-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .spec-value {
        text-align: left;
        font-weight: 600;
    }
}


.modal-content {
    background-color: #222;
    border-radius: 12px;
    padding: 15px;
    text-align: center;
}
.modal-title{
    font-size:25px;
    color:#fff;
}
.modal-header {
    border-bottom: none;
    text-align: center;
    padding-bottom: 10px;
}
.modal-body {
    text-align: center;
}
.share-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 10px;
}
.share-icons a {
    text-decoration: none;
    color: white;
    font-size: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.share-icons .icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: 0.3s;
    font-size: 22px;
}
.share-icons .icon:hover {
    background: rgba(255, 255, 255, 0.2);
}
.copy-section {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    overflow: hidden;
    margin-top: 15px;
    margin-right:-20px;
    padding: 5px;
}
.copy-section input {
    flex: 1;
    background: none;
    border: none;
    padding: 10px;
    color: white;
    outline: none;
    font-size: 14px;
}
.copy-btn {
    background: #007BFF;
    border: none;
    color: white;
    padding: 10px 15px;
    cursor: pointer;
    transition: 0.3s;
    font-size: 14px;
    border-radius:25px;
}
.copy-btn:hover {
    background: #0056b3;
}
.native-share {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: white;
    padding: 10px;
    width: 100%;
    cursor: pointer;
    margin-top: 10px;
    transition: 0.3s;
    font-size: 14px;
}
.native-share:hover {
    background: rgba(255, 255, 255, 0.2);
}
.mobile-product-image {
    width: 100%;
    height: 400px; /* fix the container height */
    object-fit: cover;
    object-position: center;
    display: block;
}
.laptop-product-image {
    width: 100%;
    height: 100px;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Main image (right side) */
.realtec {
    width: 100%;
    height: 600px; /* Set height as per layout */
    object-fit: cover;
    object-position: center;
    display: block;
}



#reviewRating {
    direction: rtl;
    unicode-bidi: normal;
    display: inline-flex;
}
#reviewRating input[type="radio"] {
    display: none;
}
#reviewRating label {
    font-size: 1.5rem;
    color: #ccc;
    cursor: pointer;
    transition: color 0.2s;
}
#reviewRating input:checked ~ label i {
    color: #ffc107; /* Yellow for selected */
}
#reviewRating label:hover i,
#reviewRating label:hover ~ label i {
    color: #ffca2c; /* Lighter yellow on hover */
}
