/*
Theme Name: Flatsome Child
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 3.0
*/

/* QR Code tab label */
.woocommerce-Tabs-panel--w2w_qr_code {
    position: relative;
}
.w2w-qr-label {
    border: 2px solid #111;
    padding: 10px;
    background: #f7f7f7;
    max-width: 420px;
    width: 100%;
    position: relative;
}

.w2w-qr-label__inner {
    position: relative;
}

.w2w-qr-label::after {
    content: "";
    position: absolute;
    inset: 8px;
    border: 1px solid #111;
    pointer-events: none;
}

.w2w-qr-label__inner {
    padding: 14px 14px 0px 14px;
}

.w2w-qr-label__inner > .w2w-qr-label__inner {
    display: none;
}

.w2w-qr-label__inner {
    display: flex;
    gap: 12px;
    align-items: stretch;
    background: #f7f7f7;
}

.w2w-qr-label__left {
    flex: 1 1 auto;
    text-transform: uppercase;
    color: #111;
    font-weight: 700;
    font-size: 12px;
    line-height: 1.3;
    padding: 6px 6px 6px 2px;
}

.w2w-qr-label__title {
    font-size: 13px;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.w2w-qr-label__sku {
    font-size: 18px;
    letter-spacing: 0.6px;
    margin-bottom: 6px;
}

.w2w-qr-label__price {
    font-size: 12px;
    margin-bottom: 4px;
}

.w2w-qr-label__warranty {
    font-size: 12px;
    margin-bottom: 2px;
}

.w2w-qr-label__right {
    flex: 0 0 140px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid #111;
    padding: 6px;
    gap: 6px;
}

.w2w-qr-label__logo img {
    display: block;
    max-width: 100%;
    height: auto;
}

.w2w-qr-label__right img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}

.w2w-qr-label__footer {
    display: flex;
    gap: 10px;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;  
    padding: 7px 14px;
}

.w2w-qr-label__site {
    color: #111;
    text-decoration: none;
}

/*************** ADD CUSTOM CSS HERE.   ***************/

/* ============================================================
   SINGLE PROJECT PAGE (single-du-an.php)
   ============================================================ */
#refPage {
    max-width: 100%;
}

/* --- Slider Area --- */
.mvArea {
    position: relative;
    background: #000;
}

.mvArea .slider {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mvArea .slide-item {
    position: relative;
    overflow: hidden;
    display: none;
}

.mvArea .slide-item:first-child,
.mvArea .slide-item.active {
    display: block;
}

.mvArea .slide-item img {
    width: 100%;
    max-height: 70vh;
    object-fit: cover;
    opacity: 0.95;
}

.thumbnail-wrapper {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.thumbnail-list {
    list-style: none;
    margin: 0 auto;
    padding: 0;
    display: flex;
    gap: 8px;
    justify-content: center;
}

.thumbnail-item {
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.3s;
    border: 2px solid transparent;
}

.thumbnail-item:hover,
.thumbnail-item.thumbnail-current {
    opacity: 1;
}

.thumbnail-item.thumbnail-current {
    border-color: #fff;
}

.thumbnail-item img {
    width: 80px;
    height: 55px;
    object-fit: cover;
    display: block;
}

/* --- Main Contents --- */
.mainContents {
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 20px;
}

.mainContents h1 {
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 40px;
    color: #222;
}

.mainContents .detail {
    margin-bottom: 30px;
}

.mainContents .detail p {
    font-size: 15px;
    line-height: 1.8;
    color: #444;
    margin-bottom: 15px;
}

/* --- Info Table --- */
.tableArea {
    margin: 40px 0;
}

.tableArea table {
    width: 100%;
    border-collapse: collapse;
    border-top: 2px solid #222;
    border-bottom: 2px solid #222;
}

.tableArea table tr {
    border-bottom: 1px solid #eee;
}

.tableArea table tr:last-child {
    border-bottom: none;
}

.tableArea table th {
    padding: 14px 15px;
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #888;
    width: 40%;
    background: #fafafa;
}

.tableArea table td {
    padding: 14px 15px;
    font-size: 14px;
    color: #222;
}

/* --- Featured Products Area --- */
.featuedProductsArea {
    margin: 50px 0;
    text-align: center;
}

.featuedProductsArea h2 {
    font-size: 20px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 30px;
    color: #222;
}

.featuedProductsArea ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
}

.featuedProductsArea ul li {
    max-width: 300px;
}

.featuedProductsArea .itemImg img {
    width: 100%;
    max-width: 250px;
    margin-bottom: 15px;
}

.featuedProductsArea .itemName {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.featuedProductsArea .itemCont {
    font-size: 12px;
    color: #666;
}

.featuedProductsArea .itemCont .dt {
    font-weight: 600;
    color: #333;
}

/* --- Detail Buttons --- */
.detailBtnArea {
    display: flex;
    justify-content: center;
    margin: 30px 0;
    gap: 15px;
}

.detailBtnArea .detailBtn a {
    text-decoration: none;
    display: inline-block;
}

.detailBtnArea .blackLine {
    padding: 10px 25px;
    border: 1px solid #222;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #222;
    transition: background 0.3s, color 0.3s;
}

.detailBtnArea .detailBtn a:hover .blackLine {
    background: #222;
    color: #fff;
}

/* --- Share / PDF Buttons --- */
.optionBtnArea {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
}

.optionBtn {
    padding: 8px 20px;
    border: 1px solid #ddd;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    color: #555;
    transition: border-color 0.3s, color 0.3s;
}

.optionBtn:hover {
    border-color: #222;
    color: #222;
}

.optionBtn a {
    text-decoration: none;
    color: inherit;
}

.snsBtnwrapper {
    display: flex;
    justify-content: center;
}

.snsBtnArea {
    display: flex;
    gap: 10px;
}

.snsBtnArea a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #ddd;
    color: #555;
    font-size: 14px;
    transition: border-color 0.3s, color 0.3s;
}

.snsBtnArea a:hover {
    border-color: #222;
    color: #222;
}

/* --- Back Button --- */
.footBtnArea {
    margin-top: 50px;
    text-align: center;
}

.footBtnArea .footBtn a {
    display: inline-block;
    padding: 12px 30px;
    border: 2px solid #222;
    color: #222;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background 0.3s, color 0.3s;
}

.footBtnArea .footBtn a:hover {
    background: #222;
    color: #fff;
}

/* ============================================================
   PRODUCT DESCRIPTION + SIDEBAR LAYOUT
   Left: Description | Right: Kỹ thuật + Tính năng
   ============================================================ */
.product-description-sidebar-wrapper {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid #eee;
}

.product-description-sidebar-wrapper .detail__feature .item {
    margin-bottom: 30px;
}

.product-description-sidebar-wrapper .detail__feature .title-section {
    background: #222;
    color: #fff;
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 15px;
}

.product-description-sidebar-wrapper .detail__feature-content {
    background: #fff;
    border: 1px solid #e0e0e0;
    padding: 20px;
}

.product-description-sidebar-wrapper .detail__feature-content p {
    font-size: 14px;
    line-height: 1.7;
    color: #444;
    margin-bottom: 10px;
}

.product-description-sidebar-wrapper .detail__feature-content strong {
    color: #222;
}

.product-description-sidebar-wrapper .doc-item {
    margin-bottom: 12px;
}

.product-description-sidebar-wrapper .doc-item a {
    text-decoration: none;
}

.product-description-sidebar-wrapper .doc-item a:hover .doc-item-content {
    background: #f5f5f5;
}

.product-description-sidebar-wrapper .doc-item .doc-item-content {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    border: 1px solid #e0e0e0;
    transition: background 0.2s;
}

.product-description-sidebar-wrapper .doc-item img {
    width: 36px;
    height: auto;
}

.product-description-sidebar-wrapper .doc-item span {
    font-size: 13px;
    color: #222;
    font-weight: 500;
}

.product-description-sidebar-wrapper .bullet {
    color: #c00;
    font-weight: bold;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media only screen and (max-width: 48em) {
    .projects .intro .title {
        font-size: 22px;
    }

    .projects-links .img img {
        height: 220px;
    }

    .mainContents h1 {
        font-size: 24px;
    }

    .mainContents {
        margin: 30px auto;
    }

    .tableArea table th,
    .tableArea table td {
        display: block;
        width: 100%;
    }

    .tableArea table th {
        border-bottom: none;
        padding-bottom: 5px;
    }

    .tableArea table td {
        padding-top: 5px;
        padding-bottom: 15px;
    }

    .thumbnail-item img {
        width: 60px;
        height: 40px;
    }

    .product-description-sidebar-wrapper .row > .large-7,
    .product-description-sidebar-wrapper .row > .large-5 {
        width: 100%;
        max-width: 100%;
        flex-basis: 100%;
    }
}
