/* ==========================================================================
   Premium Product Detail Page Styles
   ========================================================================== */

.product-detail-wrapper {
    background-color: #fbfbfb;
    padding-top: 60px;
    padding-bottom: 30px;
}

@media (max-width: 1024px) {
    .product-detail-wrapper {
        padding-top: 30px;
    }
}

@media (max-width: 768px) {
    .product-detail-wrapper {
        padding-top: 70px;
        padding-bottom: 40px;
    }
}

/* Breadcrumbs Navigation */
.breadcrumb-container {
    margin-bottom: 10px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--color-text-muted);
}

.breadcrumb a {
    color: var(--color-text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
    font-weight: 500;
}

.breadcrumb a:hover {
    color: var(--color-brand);
}

.breadcrumb span.separator {
    color: #d1d5db;
    display: flex;
    align-items: center;
}

.breadcrumb span.current {
    color: var(--color-text-dark);
    font-weight: 600;
}

/* Hero Box Layout */
.product-main-info {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 15px;
    background: #FFF5F2;
    border-radius: 24px;
    padding: 15px 0;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.04);
    border: 1px solid #f3f4f6;
    margin-bottom: 20px;
}

@media (max-width: 991px) {
    .product-main-info {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 24px;
    }
}

/* Image Slider Gallery */
.product-gallery {
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow: hidden;
    padding-left: 15px;
}

.swiper-product-main {
    width: 100%;
    height: 480px;
    border-radius: 16px;
    background: #f9fafb;
    border: 1px solid #f3f4f6;
    overflow: hidden;
}

.swiper-product-main .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
}

.swiper-product-main img {
    width: 100%;
    height: auto;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.swiper-product-main .swiper-slide:hover img {
    transform: scale(1.05);
}

.swiper-product-thumbs {
    width: 100%;
    height: 90px;
    box-sizing: border-box;
}

.swiper-product-thumbs .swiper-slide {
    width: 20%;
    height: 100%;
    opacity: 0.4;
    cursor: pointer;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    background: white;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    overflow: hidden;
}

.swiper-product-thumbs .swiper-slide-thumb-active {
    opacity: 1;
    border-color: var(--color-brand);
    box-shadow: 0 4px 12px rgba(var(--color-brand-rgb), 0.15);
}

.swiper-product-thumbs img {
    width: 100%;
    height: 100%;
}

@media (max-width: 600px) {
    .swiper-product-main {
        height: 320px;
    }

    .swiper-product-thumbs {
        height: 70px;
    }
}

/* Right Content Info */
.product-meta-details {
    display: flex;
    flex-direction: column;
    padding-right: 15px;
}

.product-detail-cat {
    font-size: 13px;
    font-weight: 700;
    color: var(--color-brand);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
}

.product-detail-title {
    font-size: 32px;
    font-weight: 800;
    color: var(--color-text-dark);
    line-height: 1.3;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.product-detail-desc {
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text-muted);
    margin-bottom: 30px;
    border-bottom: 1px solid #f3f4f6;
    padding-bottom: 24px;
    text-align: justify;
}

.product-action-box {
    margin-top: 15px;
}

.btn-contact-buy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: var(--color-brand);
    color: white !important;
    font-weight: 700;
    font-size: 15px;
    padding: 14px 28px;
    border-radius: 12px;
    text-decoration: none !important;
    box-shadow: 0 4px 12px rgba(var(--color-brand-rgb), 0.25);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
}

.btn-contact-buy:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(var(--color-brand-rgb), 0.35);
}

/* Product Detail Custom Content Blocks */
.product-detail-section {
    background: white;
    border-radius: 15px;
    padding: 15px;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.04);
    border: 1px solid #f3f4f6;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .product-detail-section {
        padding: 15px;
        margin-bottom: 20px;
        border-radius: 15px;
    }
}

.section-title-premium {
    font-size: 20px;
    font-weight: 800;
    color: var(--color-text-dark);
    position: relative;
    padding-bottom: 14px;
    margin-bottom: 28px;
    border-bottom: 1px solid #f3f4f6;
    text-transform: uppercase;
    letter-spacing: -0.2px;
}

.section-title-premium::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--color-brand);
    border-radius: 2px;
}

/* Specifications Table styling */
.specs-table-wrapper {
    overflow-x: auto;
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 15px;
}

.specs-table tr {
    border-bottom: 1px solid #f3f4f6;
}

.specs-table tr:last-child {
    border-bottom: none;
}

.specs-table th,
.specs-table td {
    padding: 16px 24px;
}

.specs-table th {
    font-weight: 700;
    color: var(--color-text-dark);
    background-color: #f9fafb;
    width: 25%;
    border-radius: 8px 0 0 8px;
}

.specs-table td {
    color: #4b5563;
}

@media (max-width: 768px) {
    .specs-table th {
        width: 35%;
        padding: 12px 16px;
    }

    .specs-table td {
        padding: 12px 16px;
    }
}

/* Detailed description styling */
.product-desc-body {
    font-size: 16px;
    line-height: 1.8;
    color: #374151;
}

.product-desc-body p {
    margin-bottom: 20px;
    text-align: justify;
}

.product-desc-body img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 24px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.product-desc-body h2,
.product-desc-body h3 {
    font-weight: 700;
    color: var(--color-text-dark);
    margin-top: 32px;
    margin-bottom: 16px;
}

/* Related Products Grid spacing overrides */
.related-products-box {
    margin-top: 15px;
}

.related-title {
    font-size: 24px;
    font-weight: 800;
    text-align: center;
    color: var(--color-text-dark);
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

/* ==========================================================================
   Premium Single News/Blog Post Styles
   ========================================================================== */

.single-post-wrapper {
    background-color: #fbfbfb;
    padding-top: 60px;
    padding-bottom: 60px;
}

.article-container {
    max-width: 100%;
    margin: 0 auto;
}

.article-card {
    margin-bottom: 15px;
}

@media (max-width: 768px) {
    .article-card {
        padding: 15px;
        border-radius: 15px;
    }
}

.article-header {
    margin-bottom: 15px;
    border-bottom: 1px solid #f3f4f6;
}

.article-title {
    font-size: 36px;
    font-weight: 800;
    color: var(--color-text-dark);
    line-height: 1.3;
    letter-spacing: -0.5px;
    margin-bottom: 16px;
}

@media (max-width: 768px) {
    .article-title {
        font-size: 28px;
    }
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    font-size: 13px;
    color: var(--color-text-muted);
}

.article-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.article-content {
    font-size: 16.5px;
    line-height: 1.8;
    color: #374151;
    text-align: justify;
}

.article-content p {
    margin-bottom: 5px;
}

.article-content h2,
.article-content h3 {
    font-weight: 700;
    color: var(--color-text-dark);
    margin-top: 15px;
    margin-bottom: 15px;
}

.article-content img {
    display: block !important;
    max-width: 100% !important;
    height: auto !important;
    border-radius: 12px !important;
    margin: 24px auto !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
    float: none !important;
}

.article-content .wp-block-image,
.article-content figure,
.article-content .alignleft,
.article-content .alignright,
.article-content .aligncenter {
    float: none !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 24px auto !important;
    width: 100% !important;
}

.article-content figure img,
.article-content .wp-block-image img {
    margin: 0 auto !important;
}

.article-content .article-featured-img-left {
    float: left !important;
    display: block !important;
    width: 450px !important;
    max-width: 100% !important;
    margin-right: 15px !important;
    margin-bottom: 10px !important;
}

.article-content .article-featured-img-left img {
    width: 100% !important;
    height: auto !important;
    margin: 10px 0 0 0 !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
    float: none !important;
    display: block !important;
}

@media (max-width: 600px) {
    .article-content .article-featured-img-left {
        float: none !important;
        width: 100% !important;
        margin-right: 0 !important;
        margin-bottom: 20px !important;
    }
}