/* Product Details Styles */
.product-gallery {
    position: sticky;
    top: 100px;
}

.product-main-img {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.product-thumb-slider {
    margin-top: 15px !important;
}

.product-thumb-img {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.product-thumb-slider .swiper-slide-thumb-active .product-thumb-img {
    border-color: #FF9900;
    box-shadow: 0 2px 10px rgba(255, 153, 0, 0.3);
}

.product-thumb-img:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.product-info {
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.product-meta {
    display: flex;
    gap: 20px;
    align-items: center;
}

.stock-status {
    background: #28a745;
    color: #fff;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
}

.sku {
    color: #6c757d;
    font-size: 14px;
}

.product-title {
    font-size: 32px;
    font-weight: 700;
    color: #222;
    margin: 20px 0;
    line-height: 1.3;
}

.product-price {
    font-size: 28px;
    font-weight: 700;
    color: #FF9900;
}

.product-description {
    color: #555;
    font-size: 16px;
    line-height: 1.8;
}

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

.product-features li {
    color: #333;
    font-size: 15px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.product-features li i {
    color: #28a745;
    font-size: 18px;
}

.product-actions .theme-btn {
    padding: 16px 40px;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Tabs Styling */
.product-details-tabs {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.nav-tabs {
    border-bottom: 2px solid #e5e5e5;
}

.nav-tabs .nav-link {
    color: #666;
    font-size: 16px;
    font-weight: 600;
    padding: 15px 25px;
    border: none;
    border-bottom: 3px solid transparent;
    background: transparent;
    transition: all 0.3s ease;
}

.nav-tabs .nav-link:hover {
    color: #FF9900;
    border-color: transparent;
}

.nav-tabs .nav-link.active {
    color: #FF9900;
    background: transparent;
    border-color: #FF9900;
}

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

.product-tab-content p {
    color: #555;
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 15px;
}

.product-tab-content h3,
.product-tab-content h4,
.product-tab-content h5 {
    color: #222;
    margin-top: 25px;
    margin-bottom: 15px;
    font-weight: 600;
}

.product-tab-content ul,
.product-tab-content ol {
    color: #555;
    line-height: 1.8;
    margin-bottom: 15px;
}

.product-tab-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

/* Table styles from previous custom-product.css */
.product-tab-content table th {
    background: #f9f9f9;
    width: 30%;
    color: #333;
    font-weight: 600;
}

.product-tab-content table td {
    color: #555;
}

/* Related Products */
.related-products {
    background: #fff;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.related-products h3 {
    font-size: 28px;
    font-weight: 700;
    color: #222;
    margin-bottom: 30px;
}

.product-card-item {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    height: 100%;
}

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

.product-card-item .product-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
}

.product-card-item .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card-item:hover .product-image img {
    transform: scale(1.1);
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.product-card-item:hover .product-overlay {
    opacity: 1;
}

.product-overlay .icon {
    width: 50px;
    height: 50px;
    background: #FF9900;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 20px;
    transition: all 0.3s ease;
}

.product-overlay .icon:hover {
    background: #fff;
    color: #FF9900;
    transform: rotate(360deg);
}

.product-content {
    padding: 25px 20px;
}

.product-content .sub-title {
    color: #FF9900;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
}

.product-content h4 {
    margin: 10px 0 15px;
    font-size: 18px;
    font-weight: 700;
}

.product-content h4 a {
    color: #222;
    transition: color 0.3s ease;
}

.product-content h4 a:hover {
    color: #FF9900;
}

.theme-btn-2 {
    background: transparent;
    color: #FF9900;
    border: 2px solid #FF9900;
    padding: 10px 25px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    display: inline-block;
}

.theme-btn-2:hover {
    background: #FF9900;
    color: #fff;
}

.theme-btn-2 i {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.theme-btn-2:hover i {
    transform: translateX(5px);
}

@media (max-width: 991px) {
    .product-gallery {
        position: relative;
        top: 0;
        margin-bottom: 30px;
    }

    .product-info {
        padding: 30px 20px;
    }

    .product-title {
        font-size: 26px;
    }
}

/* Product Pagination */
.product-pagination-wrapper {
    border-bottom: 1px solid #e5e5e5;
}

.post-nav-item {
    display: flex;
    align-items: center;
    gap: 20px;
}

.post-nav-item.next-post {
    justify-content: flex-end;
}

.post-nav-item .thumb a {
    width: 50px;
    height: 50px;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #222;
    transition: all 0.3s ease;
    font-size: 18px;
    text-decoration: none;
}

.post-nav-item .thumb a:hover {
    background: #FF9900;
    color: #fff;
}

.post-nav-item .content span {
    font-size: 14px;
    color: #666;
    display: block;
    margin-bottom: 5px;
}

.post-nav-item .content h6 {
    font-size: 16px;
    font-weight: 700;
    margin: 0;
    line-height: 1.4;
}

.post-nav-item .content h6 a {
    color: #222;
    transition: all 0.3s ease;
    text-decoration: none;
}

.post-nav-item .content h6 a:hover {
    color: #FF9900;
}

@media (max-width: 767px) {
    .post-nav-item {
        margin-bottom: 20px;
    }

    .post-nav-item.next-post {
        justify-content: flex-start;
        flex-direction: row-reverse;
    }

    .post-nav-item.next-post .content {
        text-align: right;
    }
}

/* Project List Thumbnail specific styling */
.project-wrapper .project-image.style-2.project-list-thumb {
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: 410 / 287;
    width: 100%;
    max-width: 410px;
    /* Limit width to maintain natural size */
}

@media (max-width: 575px) {
    .project-wrapper .project-image.style-2.project-list-thumb {
        height: auto !important;
        min-height: 0 !important;
    }
}