.product-detail-section {
    padding: 60px 0;
}
.compare-btn i{
    cursor:pointer;
}

/* Image Gallery */
.video-thumb {
    position: relative;
}

.video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    background: rgba(255,255,255,0.95);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
}

.play-overlay i {
    font-size: 22px;
    color: #007bff;
    margin-left: 1px;
}


.product-gallery {
    position: relative;
}

.main-image-container {
    position: relative;
    overflow: hidden;
    background-color: var(--secondary);
    margin-bottom: 20px;
    cursor: zoom-in;
}

.main-image-container img {
    width:100%;
    height:75vh;
    object-fit:cover;
    display: block;
    transition: var(--transition);
}

.main-image-container.zoomed {
    cursor: zoom-out;
}

.main-image-container.zoomed img {
    transform: scale(2);
    transform-origin: center;
}

.thumbnail-gallery {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 10px;
    scrollbar-width: thin; /* Firefox */
    scrollbar-color: #ccc transparent; /* Firefox */
}

/* Chrome, Edge, Safari */
.thumbnail-gallery::-webkit-scrollbar {
    height: 4px; /* 👈 scrollbar ki motai yaha control hoti hai (2-4px recommended) */
}

.thumbnail-gallery::-webkit-scrollbar-track {
    background: transparent; /* background clean look ke liye */
}

.thumbnail-gallery::-webkit-scrollbar-thumb {
    background-color: #aaa; /* scrollbar color */
    border-radius: 10px; /* smooth rounded look */
}

.thumbnail-gallery::-webkit-scrollbar-thumb:hover {
    background-color: #888; /* hover par thoda dark */
}


.thumbnail-item {
    width: 80px;
    height: 80px;
    border: 2px solid var(--border-color);
    cursor: pointer;
    overflow: hidden;
    transition: var(--transition);
    flex-shrink: 0;
}

.thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.thumbnail-item:hover {
    border-color: var(--accent);
}

.thumbnail-item.active {
    border-color: var(--accent);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

/* Product Info Sticky */
.product-info-sticky {
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

.product-info-sticky::-webkit-scrollbar {
    width: 6px;
}

.product-info-sticky::-webkit-scrollbar-track {
    background: #fff;
}

.product-info-sticky::-webkit-scrollbar-thumb {
    background: #fff;
    border-radius: 3px;
}


.product-category {
    font-size: 0.875rem;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

.product-header {
    margin-bottom: 30px;
}

.product-header h1 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.product-rating .stars {
    color: #ffc107;
}
.product-rating .stars i{
    margin-right:5px !important;
}

.product-rating .review-count {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.price-section {
    padding: 20px;
    background-color: var(--secondary);
    border-radius: 5px;
    margin-bottom: 30px;
}

.price-display {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.current-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
}

.old-price {
    font-size: 1.2rem;
    color: var(--text-muted);
    text-decoration: line-through;
}

.discount-badge {
    background-color: #dc3545;
    color: white;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 0.9rem;
    font-weight: 600;
}

.stock-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.stock-label {
    color: var(--text-muted);
}

.stock-value {
    font-weight: 600;
    color: var(--primary);
}

.stock-value.low {
    color: #dc3545;
}

/* Quantity Selector */
.quantity-selector {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.quantity-selector label {
    color: var(--text-muted);
    margin-bottom: 0;
}

.quantity-input {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: 3px;
    width: fit-content;
}

.quantity-input button {
    background: none;
    border: none;
    width: 35px;
    height: 35px;
    cursor: pointer;
    color: var(--primary);
    transition: var(--transition);
}

.quantity-input button:hover {
    background-color: var(--secondary);
}

.quantity-input input {
    width: 100px;
    border: none;
    text-align: center;
    font-weight: 600;
}

/* Attributes */
.attributes-section {
    margin-bottom: 30px;
}

.attribute-group {
    margin-bottom: 20px;
}

.attribute-label {
    font-weight: 600;
    margin-bottom: 10px;
    display: block;
    color: var(--text-dark);
}

.attribute-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.attribute-btn {
    padding: 10px 15px;
    border: 2px solid var(--border-color);
    background-color: white;
    color: var(--text-dark);
    cursor: pointer;
    transition: var(--transition);
    border-radius: 3px;
    font-weight: 500;
}

.attribute-btn:hover {
    border-color: var(--accent);
}

.attribute-btn.active {
    background-color: var(--accent);
    color: white;
    border-color: var(--accent);
}

/* Action Buttons */
.product-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 25px;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
}

.action-btn {
    padding: 12px 20px;
    border-radius: 6px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Buy Now Button */
.btn-buy {
    background: linear-gradient(135deg, var(--accent), #e4c85e);
    color: #fff;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.35);
}
.btn-buy:hover {
    background: linear-gradient(135deg, #c9a227, #f0d465);
    transform: translateY(-2px);
}

/* Add to Cart / Added Button */
.btn-cart {
    background-color: var(--primary);
    color: #fff;
    box-shadow: 0 4px 12px rgba(33, 37, 41, 0.35);
}
.btn-cart:hover {
    background-color: #0f1113;
    transform: translateY(-2px);
}
.btn-cart-added{
    background-color: var(--accent) !important;
    color: #fff;
    box-shadow: 0 4px 12px rgba(33, 37, 41, 0.35);
}
.btn-cart-added:hover {
    background-color: #0f1113;
    transform: translateY(-2px);
}
/* Small Icon Button (Share etc.) */
.btn-mini {
    width: 46px;
    height: 46px;
    padding: 0;
    background: var(--secondary);
    color: var(--primary);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    transition: all 0.3s ease;
}
.btn-mini:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    transform: scale(1.08);
}


@media (max-width: 767px) {
    .main-image-container img {
        height:500px;
    }
}

/* Responsive Fix */
@media (max-width: 500px) {
    .product-actions {
        gap: 6px;
    }
    .action-btn {
        padding: 6px 8px;
        letter-spacing: 0.3px;
        gap: 4px;
    }
    .btn-mini {
        width: 35px;
        height: 35px;
    }

}
@media (max-width: 365px) {
    .product-actions {
        flex-wrap: wrap;
    }
    .action-btn {
        flex: 1 1 100%;
    }
}

/* Share Modal */
.share-options {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    color: white;
    font-size: 1.2rem;
}

.share-btn.facebook {
    background-color: #1877f2;
}

.share-btn.twitter {
    background-color: #1da1f2;
}

.share-btn.whatsapp {
    background-color: #25d366;
}

.share-btn.copy {
    background-color: var(--text-muted);
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Reviews Section */
.reviews-section {
    margin-top: 80px;
    padding-top: 60px;
    border-top: 2px solid var(--border-color);
}

.section-title {
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 20px;
}

.section-title h2 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 25px;
    width: 50px;
}

.review-form {
    background-color: var(--secondary);
    padding: 30px;
    border-radius: 5px;
    margin-bottom: 40px;
    margin-top:10px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
    color: var(--text-dark);
}

.form-control {
    border: 1px solid var(--border-color);
    padding: 12px;
    border-radius: 3px;
    font-family: 'Poppins', sans-serif;
}

.form-control:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 0.2rem rgba(212, 175, 55, 0.25);
}

.rating-input {
    display: flex;
    gap: 10px;
    font-size: 1.5rem;
}

.rating-input .star {
    cursor: pointer;
    color: #ddd;
    transition: var(--transition);
}

.rating-input .star:hover,
.rating-input .star.active {
    color: #ffc107;
}

.review-item {
    padding: 15px 25px 0px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    margin-bottom: 10px;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 5px;
}

.reviewer-name {
    font-weight: 600;
    color: var(--text-dark);
}

.review-date {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.review-rating {
    color: #ffc107;
    margin-bottom: 5px;
}

.review-text {
    color: var(--text-dark);
    line-height: 1.6;
}


.suggested-products {
    margin-top: 80px;
    padding-top: 60px;
    border-top: 2px solid var(--border-color);
}

.suggested-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.suggested-card {
    text-align: center;
    transition: var(--transition);
}

.suggested-card-image {
    position: relative;
    overflow: hidden;
    background-color: var(--secondary);
    margin-bottom: 15px;
    height: 250px;
}

.suggested-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.suggested-card:hover .suggested-card-image img {
    transform: scale(1.1);
}

.suggested-card-info h4 {
    color:var(--primary);
    text-decoration:none;
    font-size: 1rem;
    margin-bottom: 10px;
}

.suggested-card-price {
    color: var(--accent);
    font-weight: 700;
    font-size: 1.1rem;
}
        

@media (max-width: 991.98px) {
    .product-info-sticky {
        position: static;
        max-height: none;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .btn-icon {
        width: 100%;
    }
}

@media (max-width: 767.98px) {
    .product-header h1 {
        font-size: 1.5rem;
    }
    
    .current-price {
        font-size: 1.5rem;
    }
    
    .section-title h2 {
        font-size: 1.5rem;
    }
    
    .suggested-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}


.pre_tag_view_page{
    color: var(--text-muted); 
    line-height: 1.6;
    overflow-x: hidden;
    white-space: pre-wrap;
    white-space: -moz-pre-wrap;
    white-space: pre-wrap;
    white-space: -o-pre-wrap;
    word-wrap: break-word;
    font-optical-sizing: auto;
    font-style: normal;
}



/* Product share modal */

.modal-content {
    background-color: #222;
    border-radius: 12px;
    padding: 15px;
    text-align: center;
}
.modal-title{
    text-align: center !important;
    font-size:25px;
    color:#fff;
    margin-left:20px !important;
}
.modal-header {
    border-bottom: none;
    padding-bottom: 10px;
}
.share-icons {
    display: flex;
    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;
    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);
}


.addwishlist{
    cursor:pointer;
}


.color-variant-box {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom:10px;
    margin-left:10px;
}

.color-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    transition: all 0.25s ease-in-out;
    box-sizing: border-box;
}

/* Other color variant */
.color-circle.normal {
    border: 3px solid #ccc;
}
.color-circle.normal:hover {
    transform: scale(1.12);
    box-shadow: 0 0 6px rgba(0,0,0,0.25);
}

/* Selected color variant */
.color-circle.selected {
    transform: translateY(-2px) scale(1.12);
    border-width: 5px !important;
    box-shadow: 0 0 10px rgba(0,0,0,0.35);
}