/* CSS FOR CUSTOM PRODUCT PAGES */
/* Reset container headings */


.section-single-product {
    padding: 60px 0 80px;
    background-color: #fff;
    font-family: Arial, sans-serif;
}

.product-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    max-width: 1080px;
    margin: 0 auto;
}

.product-image-col {
    flex: 0 0 50%;
    max-width: calc(50% - 20px);
}

.product-image-col img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.product-info-col {
    flex: 0 0 50%;
    max-width: calc(50% - 20px);
}

.product-title {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #1a1a1a;
    text-transform: uppercase;
}

.product-desc {
    font-size: 16px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 30px;
}

.product-contact-actions {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 30px;
}

.product-contact-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-top: 15px;
}

.btn-contact-custom {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: #fff !important;
    text-decoration: none;
    transition: all 0.3s ease;
    background-color: #333;
    border: none;
}

.btn-contact-custom.btn-zalo { background-color: #0068ff; }
.btn-contact-custom.btn-mess { background-color: #00b2ff; }
.btn-contact-custom.btn-tiktok { background-color: #000; }

.btn-contact-custom:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    opacity: 0.9;
    color: #fff !important;
}

.btn-contact-custom svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.product-content-detail {
    padding-top: 10px;
    max-width: 1080px;
    margin: 30px auto 0 auto;
    border-top: 1px solid #eaeaea;
}

.product-content-detail h3 {
    font-size: 24px;
    margin-bottom: 20px;
    text-transform: uppercase;
    color: #1a1a1a;
    font-weight: 600;
}

.single-extra-sections {
    margin-top: 56px;
    display: grid;
    gap: 44px;
}

.single-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ece8e3;
}

.single-section-head h3 {
    font-size: 26px;
    font-weight: 600;
    color: #1e1e1e;
    text-transform: uppercase;
}

.single-section-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #be9667;
    color: #be9667;
    padding: 8px 14px;
    font-size: 13px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.3s ease;
}

.single-section-link:hover {
    background: #be9667;
    color: #fff;
}

.single-related-products-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.single-related-product-card {
    border: 1px solid #efefef;
    background: #fff;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.single-related-product-card:hover {
    border-color: #be9667;
    transform: translateY(-4px);
}

.single-related-product-thumb {
    display: block;
    overflow: hidden;
    aspect-ratio: 4/5;
}

.single-related-product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.single-related-product-card:hover .single-related-product-thumb img {
    transform: scale(1.06);
}

.single-related-product-body {
    padding: 14px;
}

.single-related-product-title {
    font-size: 16px;
    line-height: 1.45;
    min-height: 48px;
}

.single-related-product-title a {
    color: #1f1f1f;
    text-decoration: none;
    transition: color 0.3s ease;
}

.single-related-product-title a:hover {
    color: #be9667;
}

.single-related-news-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.single-news-card {
    border: 1px solid #efefef;
    background: #fff;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.single-news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.single-news-thumb {
    display: block;
    overflow: hidden;
    aspect-ratio: 16/10;
}

.single-news-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.single-news-card:hover .single-news-thumb img {
    transform: scale(1.06);
}

.single-news-body {
    padding: 14px 14px 18px;
}

.single-news-date {
    font-size: 12px;
    color: #8b8b8b;
    margin-bottom: 8px;
}

.single-news-title {
    font-size: 17px;
    line-height: 1.45;
    margin-bottom: 10px;
}

.single-news-title a {
    color: #1f1f1f;
    text-decoration: none;
    transition: color 0.3s ease;
}

.single-news-title a:hover {
    color: #be9667;
}

.single-news-excerpt {
    margin: 0;
    font-size: 14px;
    line-height: 1.7;
    color: #595959;
}

.single-empty-note {
    margin: 0;
    color: #6f6f6f;
}

.section-archive-product {
    padding: 60px 0 80px;
}

.section-archive-product .archive-title {
    text-align: center;
    font-size: 36px;
    margin: 0 0 40px 0;
    padding: 0;
    text-transform: uppercase;
    color: #1a1a1a;
    font-weight: 600;
    line-height: 1.3;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin: 0;
    padding: 0;
    list-style: none;
    /* Just in case grid wrapper was a UL before */
}

.product-card {
    background: #fff;
    border: 1px solid #f2f2f2;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    border-color: #BE9667;
}

.product-card-img {
    display: block;
    overflow: hidden;
    position: relative;
    padding-bottom: 125%;
    border-bottom: 1px solid #f2f2f2;
}

.product-card-img img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-card-img img {
    transform: scale(1.05);
}

.product-card-body {
    padding: 16px 16px 20px;
    text-align: center;
    background: #fff;
    margin: 0;
}

.section-archive-product .product-card-title {
    font-size: 18px;
    margin: 0 0 10px 0;
    padding: 0;
    line-height: 1.4;
    font-weight: 500;
}

.product-card-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
}

.product-card-title a:hover {
    color: #BE9667;
}

.product-card-btn {
    display: inline-block;
    padding: 8px 20px;
    border: 1px solid #BE9667;
    color: #BE9667;
    text-transform: uppercase;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: 5px;
}

.product-card-btn:hover {
    background: #BE9667;
    color: #fff;
}

/* Pagination Reset */
.pagination-wrap {
    margin-top: 40px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
}

.pagination-wrap .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 15px;
    border: 1px solid #eaeaea;
    background: #fff;
    color: #333;
    text-decoration: none;
    font-size: 16px;
    transition: all 0.3s ease;
}

.pagination-wrap .page-numbers:hover,
.pagination-wrap .page-numbers.current {
    background: #BE9667;
    color: #fff;
    border-color: #BE9667;
}

@media (max-width: 991px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .single-related-products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .single-related-news-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .product-wrapper {
        flex-direction: column;
    }

    .product-image-col,
    .product-info-col {
        flex: 0 0 100%;
        max-width: 100%;
    }

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

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .archive-title {
        font-size: 28px;
    }

    .single-extra-sections {
        margin-top: 42px;
        gap: 34px;
    }

    .single-section-head {
        align-items: flex-start;
        flex-direction: column;
        margin-bottom: 16px;
    }

    .single-section-head h3 {
        font-size: 22px;
    }

    .single-news-title {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .product-card-body {
        padding: 10px 10px 20px;
    }

    .product-card-title {
        font-size: 14px;
    }

    .product-card-btn {
        font-size: 12px;
        padding: 6px 15px;
    }

    .single-related-products-grid,
    .single-related-news-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .single-related-product-body,
    .single-news-body {
        padding: 12px;
    }

    .single-related-product-title {
        font-size: 15px;
        min-height: 0;
    }

    .single-news-title {
        font-size: 15px;
        margin-bottom: 8px;
    }
}

/** -- PRODUCT GALLERY ZOOM WOO -- **/
.product-gallery-wrapper {
    position: relative;
    width: 100%;
}

.product-main-slider {
    width: 100%;
    margin-bottom: 12px;
    overflow: hidden;
}

.product-main-slider .swiper-slide {
    position: relative;
    text-align: center;
}

.product-main-slider img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 1;
    object-fit: cover;
    cursor: pointer;
}

.woo-zoom-wrapper {
    display: block;
    position: relative;
    overflow: hidden;
    cursor: crosshair;
}

.product-thumb-slider {
    box-sizing: border-box;
    padding: 10px 0;
}

.product-thumb-slider .swiper-slide {
    width: 25%;
    height: auto;
    opacity: 0.5;
    cursor: pointer;
    border: 1px solid transparent;
    overflow: hidden;
    transition: all 0.3s;
    margin-right: 10px;
}

.product-thumb-slider .swiper-slide-thumb-active {
    opacity: 1;
    border-color: #BE9667;
}

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

.product-main-slider .swiper-button-next,
.product-main-slider .swiper-button-prev {
    color: #BE9667 !important;
    background: rgba(255, 255, 255, 0.8);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.product-main-slider .swiper-button-next:after,
.product-main-slider .swiper-button-prev:after {
    font-size: 18px;
    font-weight: bold;
}

.product-main-slider:hover .swiper-button-next,
.product-main-slider:hover .swiper-button-prev {
    opacity: 1;
}

@media (max-width: 991px) {
    .woo-zoom-wrapper {
        cursor: default;
    }

    .zoomImg {
        display: none !important;
    }
}