.old-price {
    text-decoration: line-through;
    color: #999;
    margin-right: 10px;
}

.related-products.carousel-shadow {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #eee;
}

.related-products h3 {
    margin-bottom: 30px;
    font-size: 24px;
    font-weight: 600;
    text-align: left;
}

.validthemes-out-of-stock {
    color: #dc3545;
}

.validthemes-in-stock {
    color: #28a745;
}

.validtheme-shop-single-area {
    padding: 80px 0;
}

.product-item {
    position: relative;
}

.product-item .onsale.theme {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #e74c3c;
    color: white;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: bold;
    z-index: 2;
}

/* Swiper carousel styles to match static HTML */
.related-product-carousel.swiper {
    overflow: hidden;
}

.related-product-carousel .swiper-wrapper {
    display: flex;
    align-items: stretch;
}

.related-product-carousel .swiper-slide {
    width: auto;
    margin-right: 30px;
}

@media (max-width: 768px) {
    .related-product-carousel .swiper-slide {
        width: 250px;
    }
}

/* Product layout adjustments */
.single-product-contents .summary-top-box {
    margin-bottom: 20px;
}

.single-product-contents .product-tags a {
    background: #f8f9fa;
    color: #6c757d;
    padding: 5px 12px;
    border-radius: 3px;
    text-decoration: none;
    font-size: 12px;
    margin-right: 8px;
    display: inline-block;
}

.single-product-contents .review-count {
    display: flex;
    align-items: center;
    gap: 10px;
}

.single-product-contents .rating i {
    color: #ffc107;
    font-size: 14px;
}

.single-product-contents .price {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin: 15px 0;
}

.single-product-contents .product-stock {
    margin-bottom: 15px;
    font-weight: 500;
}

.single-product-contents .product-purchase-list {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 25px 0;
    flex-wrap: wrap;
}

.single-product-contents .product-purchase-list input[type="number"] {
    width: 80px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 3px;
}

.single-product-contents .product-estimate-delivary {
    background: #f8f9fa;
    padding: 12px 15px;
    border-radius: 5px;
    margin: 20px 0;
    border-left: 3px solid #28a745;
}

.single-product-contents .product-estimate-delivary i {
    color: #28a745;
    margin-right: 8px;
}

.single-product-contents .product-meta {
    border-top: 1px solid #eee;
    padding-top: 20px;
    margin-top: 25px;
}

.single-product-contents .product-meta span {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
}

.single-product-contents .product-meta a {
    color: #98221e;
    text-decoration: none;
}

/* Tab content styling */
.single-product-bottom-info {
    margin-top: 60px;
}

.nav-tabs {
    border-bottom: 2px solid #e9ecef;
    margin-bottom: 30px;
}

.nav-tabs .nav-link {
    border: none;
    color: #6c757d;
    font-weight: 500;
    padding: 12px 24px;
    margin-right: 40px;
    background: none;
}

.nav-tabs .nav-link.active {
    color: #98221e;
    border-bottom: 2px solid #98221e;
    background: none;
}

.tab-content-info {
    padding: 30px 0;
}

/* Review section */
.review-items .item {
    display: flex;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eee;
}

.review-items .item .thumb {
    margin-right: 20px;
}

.review-items .item .thumb img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.review-items .item .info .rating {
    margin-bottom: 8px;
}

.review-items .item .info .rating i {
    color: #ffc107;
    font-size: 14px;
}

.review-items .item .info .review-date {
    color: #6c757d;
    font-size: 12px;
    margin-bottom: 5px;
}

.review-items .item .info .review-authro h5 {
    margin: 0 0 10px 0;
    font-size: 16px;
    font-weight: 600;
}

.review-form {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
    margin-top: 40px;
}

.review-form h4 {
    margin-bottom: 20px;
}

.rating-select {
    margin-bottom: 20px;
}

.rating-select .stars a {
    color: #ddd;
    font-size: 18px;
    margin-right: 5px;
    text-decoration: none;
}

.rating-select .stars a:hover,
.rating-select .stars a.active {
    color: #ffc107;
}

.review-form .form-group {
    margin-bottom: 20px;
}

.review-form .form-control {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px 12px;
}

.review-form textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.review-form button[type="submit"] {
    background: #98221e;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
}

.review-form button[type="submit"]:hover {
    background: #e7272d;
}

/* Product Gallery Styles */
.product-gallery {
    position: relative;
}

.main-media-container {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.product-main-image,
.product-main-video {
    transition: transform 0.3s ease;
}

.media-item {
    position: relative;
}

.media-item:hover .product-main-image {
    transform: scale(1.02);
}

.product-thumbnails {
    margin-top: 15px;
}

.thumbnail-item {
    position: relative;
    cursor: pointer;
    border-radius: 6px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.thumbnail-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.thumbnail-item.active .thumbnail-image,
.thumbnail-item.active .thumbnail-video {
    border-color: #98221e !important;
    box-shadow: 0 0 0 2px rgba(0,123,255,0.25);
}

.thumbnail-image,
.thumbnail-video {
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.media-type-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
}

.media-counter {
    text-align: center;
}

.media-counter i {
    margin-right: 4px;
}

/* Carousel custom styling */
.carousel-control-prev,
.carousel-control-next {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0,0,0,0.5);
    top: 50%;
    transform: translateY(-50%);
    border: none;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.carousel-control-prev {
    left: 10px;
}

.carousel-control-next {
    right: 10px;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background: rgba(0,0,0,0.8);
    opacity: 1;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 20px;
    height: 20px;
}

/* Sale badge */
.onsale {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #dc3545;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    z-index: 10;
}

/* Responsive design */
@media (max-width: 768px) {
    .thumbnail-item {
        margin-bottom: 10px;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        width: 35px;
        height: 35px;
    }
    
    .product-main-image,
    .product-main-video {
        height: 300px !important;
    }
    
    .thumbnail-image,
    .thumbnail-video {
        height: 50px !important;
    }
}

/* Gallery Grid Styles */
.product-gallery-grid {
    margin-top: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.gallery-thumbnail {
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-thumbnail {
    transform: scale(1.1);
}

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

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-icon {
    color: white;
    font-size: 24px;
    margin-bottom: 10px;
}

.gallery-info {
    color: white;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.video-container {
    position: relative;
}

.video-overlay {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.video-icon {
    font-size: 10px;
}

.gallery-video {
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-video {
    transform: scale(1.02);
}

/* Tab content improvements */
.tab-content-info h4 {
    color: #333;
    margin-bottom: 20px;
    font-weight: 600;
}

.tab-content-info h5 {
    color: #555;
    margin-bottom: 15px;
    font-weight: 500;
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
}
