/* Product Details Styles - Mobile Responsive */
.product-details-main {
    padding: 20px 0;
}
.pro-dis {
    background: #271d1d;
    border-left-color: #e74c3c;
    color: #e74c3c;
    font-weight: 300;
}
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    font-size: 0.85rem;
    color: #666;
    flex-wrap: wrap;
}

.breadcrumb a {
    color: hsl(353, 100%, 78%);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb .separator {
    color: #999;
}

.breadcrumb .current {
    color: #333;
    font-weight: 500;
}

.product-details-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.product-images {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.product-info .product-price{
  display: flex;
  align-items: center;
  gap: 15px;
}
.product-info .product-price del {
  color: var(--sonic-silver);
  font-weight: var(--weight-300);
  font-size: 20px;
} 

.main-image {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
}

.main-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.image-thumbnails {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 5px 0;
    -webkit-overflow-scrolling: touch;
}

.thumbnail {
    width: 70px;
    height: 70px;
    border: 2px solid transparent;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    flex-shrink: 0;
    background: #f8f9fa;
}

.thumbnail.active {
    border-color: hsl(353, 100%, 78%);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info {
    padding: 15px 0;
}

.product-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #333;
    line-height: 1.3;
}

.product-rating {
    margin-bottom: 15px;
}

.stars {
    display: flex;
    align-items: center;
    gap: 4px;
}

.stars .fa-star {
    color: #ddd;
    font-size: 0.9rem;
}

.stars .fa-star.active {
    color: #ffc107;
}

.rating-text {
    margin-left: 8px;
    color: #666;
    font-size: 0.85rem;
}

.product-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 15px;
    color: #666;
    font-size: 0.85rem;
}

.product-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: hsl(353, 100%, 78%);
    margin-bottom: 20px;
}

.product-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 25px;
}

.btn {
    padding: 14px 20px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    width: 100%;
}

.btn-primary {
    background-color: hsl(353, 100%, 78%);
    color: white;
}

.btn-primary:hover {
    background-color: hsl(353, 58%, 47%);
}

.btn-secondary {
    background-color: #f8f9fa;
    color: #333;
    border: 1px solid #dee2e6;
}

.btn-secondary:hover {
    background-color: hsl(353, 100%, 78%);
}

.quick-features {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 0.85rem;
}

.feature i {
    color: hsl(353, 100%, 78%);
    width: 16px;
}

/* Product Tabs */
.product-tabs {
    margin-bottom: 40px;
}

.tab-headers {
    display: flex;
    flex-direction: column;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 20px;
    gap: 0;
}

.tab-header {
    padding: 15px 20px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    font-size: 0.95rem;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    width: 100%;
}

.tab-header.active {
    color: hsl(353, 100%, 78%);
    border-bottom-color: hsl(353, 100%, 78%);
    background-color: #f8f9fa;
}

.tab-header:hover {
    color: hsl(353, 100%, 78%);
}

.tab-pane {
    display: none;
    padding: 15px 0;
}

.tab-pane.active {
    display: block;
}

/* Overview Tab */
.overview-content {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.overview-text h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #333;
}

.overview-text p {
    line-height: 1.6;
    color: #666;
    margin-bottom: 20px;
}

.dummy {
    max-height: none;
    overflow: visible;
}



.key-features h4 {
    font-size: 1.1rem;
    margin-bottom: 12px;
    color: #333;
}

.key-features ul {
    list-style: none;
    padding: 0;
}

.key-features li {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    color: #666;
}

.key-features li i {
    color: #28a745;
}

.overview-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.tech-stack h4,
.system-requirements h4 {
    font-size: 1.1rem;
    margin-bottom: 12px;
    color: #333;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tech-tag {
    padding: 5px 10px;
    background: #e9ecef;
    border-radius: 15px;
    font-size: 0.75rem;
    color: #495057;
}

.system-requirements ul {
    list-style: none;
    padding: 0;
    color: #666;
}

.system-requirements li {
    margin-bottom: 6px;
    padding-left: 12px;
    position: relative;
}

.system-requirements li:before {
    content: "•";
    color: hsl(353, 100%, 78%);
    position: absolute;
    left: 0;
}

/* Specifications Tab */
.specifications-grid {
    display: block;
}

.spec-item {
    display: block;
    padding: 12px 0;
    margin-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.spec-label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
    font-size: 0.95rem;
}

.spec-value {
    display: block;
    color: #555;
    line-height: 1.5;
    font-size: 0.9rem;
}

/* Reviews Tab */
.reviews-container {
    max-width: 100%;
}

.review-summary {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.average-rating {
    text-align: center;
}

.rating-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    display: block;
    line-height: 1;
}

.rating-bars {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.rating-bar {
    display: flex;
    align-items: center;
    gap: 8px;
}

.rating-star {
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 0.8rem;
    color: #666;
    width: 50px;
}

.bar-container {
    flex: 1;
    height: 6px;
    background: #e9ecef;
    border-radius: 3px;
    overflow: hidden;
}

.bar {
    height: 100%;
    background: #ffc107;
    transition: width 0.3s ease;
}

.rating-count {
    width: 25px;
    text-align: right;
    font-size: 0.8rem;
    color: #666;
}

.reviews-list {
    margin-bottom: 30px;
}

.review-item {
    padding: 20px 0;
    border-bottom: 1px solid #e0e0e0;
}

.review-header {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 12px;
}

.reviewer-info {
    display: flex;
    align-items: start;
    gap: 10px;
}

.reviewer-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: hsl(353, 100%, 78%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.8rem;
}

.reviewer-name {
    margin: 0 0 4px 0;
    font-size: 0.95rem;
    color: #333;
}

.review-rating .fa-star {
    color: #ddd;
    font-size: 0.75rem;
}

.review-rating .fa-star.active {
    color: #ffc107;
}

.review-date {
    color: #999;
    font-size: 0.75rem;
}

.review-content p {
    line-height: 1.5;
    color: #666;
    margin: 0;
    font-size: 0.9rem;
}

.add-review-form {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.add-review-form h4 {
    margin-bottom: 15px;
    color: #333;
    font-size: 1.1rem;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #333;
    font-size: 0.9rem;
}

.rating-input {
    display: flex;
    gap: 4px;
}

.rating-input .fa-star {
    color: #ddd;
    cursor: pointer;
    font-size: 1.1rem;
    transition: color 0.2s ease;
}

.rating-input .fa-star.active,
.rating-input .fa-star:hover {
    color: #ffc107;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: hsl(353, 100%, 78%);
}

/* Recommended Products */
.recommended-products {
    margin-top: 40px;
    margin-left: 0;
}

.recommended-products h2 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #333;
    text-align: center;
}

.recommended-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-left: 0;
}

.recommended-item {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.recommended-item:hover {
    transform: translateY(-3px);
}

.recommended-item a {
    display: block;
    text-decoration: none;
    color: inherit;
}

.recommended-item img {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.recommended-item h4 {
    padding: 8px;
    font-size: 0.9rem;
    margin: 0;
    text-align: center;
}

.recommended-item .price {
    padding: 0 8px 8px;
    font-weight: 700;
    color: hsl(353, 100%, 78%);
    margin: 0;
    text-align: center;
    font-size: 0.9rem;
}


/* Product Not Found */
.product-not-found {
    text-align: center;
    padding: 40px 20px;
}

.product-not-found h2 {
    font-size: 1.5rem;
    margin-bottom: 12px;
    color: #333;
}

.product-not-found p {
    font-size: 1rem;
    margin-bottom: 20px;
    color: #666;
}

.media-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* Apply the same rule to both video and img */
.media-container video,
.media-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;  /* or contain based on your need */
    border-radius: 8px;
    display: block;
}


.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.3s ease;
    cursor: pointer;
}

.media-container:hover .video-overlay {
    opacity: 1;
}

.play-pause-btn {
    background: rgba(0, 123, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.play-pause-btn:hover {
    transform: scale(1.1);
    background: rgba(0, 123, 255, 1);
}

.video-thumbnail {
    position: relative;
    width: 100%;
    height: 100%;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-thumbnail .fa-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    background: rgba(0, 123, 255, 0.8);
    border-radius: 50%;
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
}

.media-thumbnail.video-active {
    border-color: #007bff;
}

.media-thumbnail.video-active .video-thumbnail .fa-play {
    background: #007bff;
}

.video-playing .video-overlay {
    opacity: 0;
}

/* Small Mobile Adjustments */
@media (max-width: 360px) {
    .product-details-main {
        padding: 15px 0;
    }
    
    .main-image {
        height: 250px;
    }
    
    .thumbnail {
        width: 60px;
        height: 60px;
    }
    
    .product-title {
        font-size: 1.3rem;
    }
    
    .product-price {
        font-size: 1.2rem;
    }
    
    .recommended-grid {
        grid-template-columns: 1fr;
    }
    
    .breadcrumb {
        font-size: 0.8rem;
        gap: 6px;
    }
    
    .btn {
        padding: 12px 16px;
        font-size: 0.85rem;
    }
    
    .quick-features {
        padding: 12px;
    }
    
    .feature {
        font-size: 0.8rem;
    }
    
    .tab-header {
        padding: 12px 16px;
        font-size: 0.9rem;
    }
    
    .review-summary {
        padding: 15px;
    }
    
    .add-review-form {
        padding: 15px;
    }
}

/* Tablet Styles */
@media (min-width: 768px) {
    .product-details-main {
        padding: 30px 0;
    }
    
    .product-details-container {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
        margin-bottom: 50px;
    }
    
    .product-title {
        font-size: 1.8rem;
    }
    
    .product-actions {
        flex-direction: row;
    }
    
    .btn {
        width: auto;
        padding: 12px 24px;
    }
    
    .tab-headers {
        flex-direction: row;
    }
    
    .tab-header {
        text-align: center;
        width: auto;
    }
    
    .review-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: start;
    }
    
    .review-summary {
        flex-direction: row;
        gap: 40px;
    }
    
    .recommended-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 20px;
    }
    
    .main-image {
        height: 350px;
    }
}

/* Desktop Styles */
@media (min-width: 1024px) {
    .product-details-main {
        padding: 40px 0;
    }
    
    .product-details-container {
        margin-bottom: 60px;
    }
    
    .product-title {
        font-size: 2rem;
    }
    
    .main-image {
        height: 400px;
    }
    
    .thumbnail {
        width: 80px;
        height: 80px;
    }
    
    .overview-content {
        grid-template-columns: 3fr 1fr;
        display: grid;
        gap: 40px;
    }
    
    .recommended-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

/* Fix for touch devices */
@media (hover: none) {
    .video-overlay {
        opacity: 1;
    }
    
    .media-container:hover .video-overlay {
        opacity: 1;
    }
}

/* Ensure proper scrolling on mobile */
.tab-pane {
    overflow-x: hidden;
}

/* Improve button touch targets */
.btn {
    min-height: 44px;
}

.tab-header {
    min-height: 44px;
}

/* Fix for iOS Safari */
@supports (-webkit-touch-callout: none) {
    .main-image {
        -webkit-overflow-scrolling: touch;
    }
}


        /* Recommended Products Styling */
        .recommended-products {
            margin-top: 60px;
            padding-top: 40px;
            border-top: 1px solid #eee;
        }

        .recommended-products h2 {
            font-size: 28px;
            margin-bottom: 30px;
            color: #333;
            text-align: center;
        }

        .recommended-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
            gap: 25px;
            margin-top: 20px;
        }

        .recommended-grid .showcase {
            background: white;
            border-radius: 10px;
            padding: 15px;
            box-shadow: 0 2px 15px rgba(0,0,0,0.08);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            cursor: pointer;
            position: relative;
            overflow: hidden;
        }

        .recommended-grid .showcase:hover {
            transform: translateY(-5px);
            box-shadow: 0 5px 20px rgba(0,0,0,0.12);
        }

        .recommended-grid .showcase-banner {
            position: relative;
            margin-bottom: 15px;
            border-radius: 8px;
            overflow: hidden;
        }

        .recommended-grid .showcase-banner img {
            width: 100%;
            height: 180px;
            object-fit: cover;
            transition: transform 0.3s ease;
        }

        .recommended-grid .showcase:hover .showcase-banner img {
            transform: scale(1.05);
        }

        .recommended-grid .showcase-actions {
            position: absolute;
            top: 10px;
            right: 10px;
            display: flex;
            flex-direction: column;
            gap: 8px;
            /* opacity: 0; */
            transition: opacity 0.3s ease;
        }

        .recommended-grid .showcase:hover .showcase-actions {
            opacity: 1;
        }

        .recommended-grid .btn-action {
            width: 36px;
            height: 36px;
            background: white;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            border: none;
            box-shadow: 0 2px 8px rgba(0,0,0,0.15);
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .recommended-grid .btn-action:hover {
            background:hsl(353, 100%, 78%);
            color: white;
            transform: scale(1.1);
        }

        .recommended-grid .showcase-content {
            text-align: center;
        }

        .recommended-grid .showcase-category {
            font-size: 12px;
            color: #666;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            margin-bottom: 5px;
            display: block;
        }

        .recommended-grid .showcase-title {
            font-size: 16px;
            font-weight: 600;
            color: #333;
            margin-bottom: 8px;
            display: block;
            text-decoration: none;
            transition: color 0.2s ease;
        }

        .recommended-grid .showcase-title:hover {
            color: hsl(353, 100%, 78%);
        }

        .recommended-grid .showcase-description {
            font-size: 13px;
            color: #666;
            line-height: 1.4;
            margin-bottom: 12px;
            height: 36px;
            overflow: hidden;
        }

        .recommended-grid .price-box {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
        }

        .recommended-grid .price {
            font-size: 18px;
            font-weight: 700;
            color: hsl(353, 100%, 78%);
        }

        .recommended-grid del {
            font-size: 14px;
            color: #999;
        }

        .no-recommendations {
            text-align: center;
            color: #666;
            font-size: 16px;
            padding: 40px;
            background: #f9f9f9;
            border-radius: 8px;
        }

        /* Responsive Design */
        @media (max-width: 768px) {
            .recommended-grid {
                grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
                gap: 15px;
            }
            
            .recommended-grid .showcase-banner img {
                height: 150px;
            }
        }

        @media (max-width: 480px) {
            .recommended-grid {
                grid-template-columns: 1fr;
            }
            
            .recommended-products h2 {
                font-size: 22px;
            }
        }

/* Wishlist Toast */

/* Wishlist Toast */

#toast-container {
    position: fixed;
    bottom: 30px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    pointer-events: none;
}

.toast {
    min-width: 200px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    color: #fff;
    background: #333;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    opacity: 0; /* start hidden for animation */
    transform: translateX(20px);
    animation: slideIn 0.3s forwards, fadeOut 0.3s 2.7s forwards; /* 3s total */
}

.toast.success { background: #28a745; }
.toast.error   { background: #dc3545; }
.toast.warning { background: #ffc107; color: #000; }

@keyframes slideIn {
    from { opacity: 0; transform: translateX(20px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to   { opacity: 0; }
}