body {
    --logo-lg-height: 90px;
    --logo-sm-height: 65px;

    /* color */
    --color-primary: #5ad40b;
    --color-secondary: #0E2B4B;
}

.woocommerce-MyAccount-navigation.nasa-MyAccount-navigation .woocommerce-MyAccount-navigation-link a:hover svg {
    color: var(--color-primary);
}

/* HEADER */
.header-wrapper #masthead {
    padding: 0;
}
.header-wrapper .nav-wrapper .root-item>a {
    padding: 20px 0;
}
body .logo .header_logo,
body .fixed-already .logo .header_logo {
    height: var(--logo-lg-height);
    max-height: unset;
}
body .mobile-menu .logo .header_logo,
body .fixed-already .mobile-menu .logo .header_logo,
body .nasa-header-mobile-layout .logo .header_logo {
    height: var(--logo-sm-height);
    max-height: unset;
}
.nav-wrapper .default-menu>.nav-dropdown .sub-menu {
    padding: 15px 0;
}
.nav-wrapper .default-menu>.nav-dropdown .sub-menu > .menu-item {
    padding: 3px 20px;
}
.nav-wrapper .default-menu .menu-item a {
    line-height: 1.5;
    font-size: 95%;
}
.main-menu-warpper .sub-menu .nasa-has-items-child {
    display: block;
}

/* LOGIN FORM */
body .nasa-login-register-warper #nasa-login-register-form .nasa-form-logo-log .header_logo {
    height: var(--logo-sm-height);
    max-height: unset;
}

/* PRODUCT LOOP BOX */
body .badge.sale-label {
    background-color: var(--color-secondary);
}
.product-item .info .name > h3 {
    display: inline;
    line-height: inherit;
    font-size: inherit;
    color: inherit;
    margin: 0;
}
.group-btn-in-list .add-to-cart-grid:hover .add_to_cart_text {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}

/* PRODUCT CATEGORY DESCRIPTION */
.product-category-description {
    padding: 15px 20px 20px;
    margin-top: 20px;
    background-color: #f6f6f6;
    border-radius: 10px;
}

/* PRODUCT SINGLE - BRAND */
.nasa-sa-brand-item {
    padding: 4px;
}

/* PRODUCT SINGLE - BUY NOW BUTTON */
.cart .nasa-buy-now {
    background-color: var(--color-secondary);
    border-color: var(--color-secondary);
}
.cart .nasa-buy-now:hover {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}

/* PRODUCT SINGLE - GALLERY */
.woocommerce-product-gallery .nasa-wrap-item-thumb img,
.woocommerce-product-gallery .product-image img {
    aspect-ratio: 1/1;
    object-fit: cover;
}
.woocommerce-product-gallery .product-image img {
    border: 1px solid #ccc;
    border-radius: 5px;
}

/* PRODUCT - QUICK VIEW */
.product-lightbox .main-image-slider img {
    aspect-ratio: 1/1;
    object-fit: cover;
}

/* CART */
.cart_totals .order-total td,
.woocommerce-checkout-review-order .woocommerce-Price-amount,
.woocommerce-table--order-details tfoot tr:last-child td>.amount {
    color: var(--color-primary);
}

/* CHECKOUT */
#billing_first_name_field {
    width: 100%;
    padding: 0;
}
#billing_country_field {
    display: none;
}
.woocommerce-billing-fields__field-wrapper {
    display: flex;
    flex-wrap: wrap;
}
.woocommerce-billing-fields__field-wrapper #billing_address_1_field {
    order: 1;
} 


/* COLLAPSE MODULE */
.has-collapse {
    overflow: hidden;
    transition: .5s;
}
.has-collapse.collapse-on {
    mask-image: linear-gradient(to top, transparent 5px, #000 80px);
    -webkit-mask-image: linear-gradient(to top, transparent 5px, #000 80px);
}
.has-collapse:not(.collapse-on) + .collapse-button {
    margin-top: 20px !important;
}

/* FOOTER */
@media only screen and (max-width: 1024px) {
    #nasa-footer .nasa-nav-sc-menu {
        margin-top: 0;
    }
    #nasa-footer .footer-light-1 .footer-contact .nasa-contact-text {
        margin-top: 5px;
    }
}

/* BLOG */
body.blog h1.page-title {
    margin-bottom: 30px;
}
.blog-item .entry-title > a,
.nasa-recent-posts-li .nasa-wg-recent-post-title {
    font-size: 16px;

    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}
.nasa-recent-posts-li .nasa-wg-recent-post-title {
    font-size: 14px;
}
.cat-links-archive a,
.nasa-post-cats-wrap a {
    color: #555;
    font-weight: normal;
    letter-spacing: 0;

    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
}

/* ═══════════════════════════════════════════════════════════════
   BẢO NGUYÊN — Style mặc định cho bảng (table)
   Hàng tiêu đề: nền xanh thương hiệu #5AD40B + chữ trắng đậm
   Hàng dữ liệu: viền nhẹ, xen kẽ màu, hover xanh nhạt
   ═══════════════════════════════════════════════════════════════ */

/* Reset + khung bảng */
.entry-content table,
.wp-block-table table,
.post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
    font-size: 14px;
    line-height: 1.55;
    border: 1px solid #d1fae5;
    background: #fff;
}

/* ── HÀNG TIÊU ĐỀ — nền xanh thương hiệu, chữ trắng, in đậm ── */
.entry-content table thead th,
.entry-content table thead td,
.entry-content table tr:first-child th,
.wp-block-table table thead th,
.wp-block-table table thead td,
.wp-block-table table tr:first-child th,
.post-content table thead th,
.post-content table tr:first-child th {
    background-color: #5AD40B !important;
    color: #ffffff !important;
    font-weight: 700;
    padding: 12px 16px;
    text-align: left;
    border: none;
    border-right: 1px solid rgba(255, 255, 255, .25);
    letter-spacing: .2px;
    white-space: nowrap;
}
.entry-content table thead th:last-child,
.entry-content table tr:first-child th:last-child,
.wp-block-table table thead th:last-child,
.wp-block-table table tr:first-child th:last-child {
    border-right: none;
}

/* ── Ô DỮ LIỆU ── */
.entry-content table td,
.wp-block-table table td,
.post-content table td {
    padding: 10px 16px;
    color: #374151;
    vertical-align: top;
    border-bottom: 1px solid #e5e7eb;
    border-right: 1px solid #f3f4f6;
}
.entry-content table td:last-child,
.wp-block-table table td:last-child,
.post-content table td:last-child {
    border-right: none;
}

/* ── XEN KẼ HÀNG (zebra) ── */
.entry-content table tbody tr:nth-child(even) td,
.wp-block-table table tbody tr:nth-child(even) td,
.post-content table tbody tr:nth-child(even) td {
    background-color: #f9fffe;
}

/* ── HOVER ── */
.entry-content table tbody tr:hover td,
.wp-block-table table tbody tr:hover td,
.post-content table tbody tr:hover td {
    background-color: #ecfdf5;
    transition: background-color .15s ease;
}

/* ── RESPONSIVE — cuộn ngang trên mobile ── */
@media (max-width: 767px) {
    .entry-content .wp-block-table,
    .entry-content table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .entry-content table th,
    .entry-content table td,
    .wp-block-table table th,
    .wp-block-table table td {
        padding: 9px 12px;
        font-size: 13px;
        white-space: nowrap;
    }
}

/* RESPONSIVE */
@media only screen and (max-width: 767px) {
    .nasa-tab-primary-color ul.nasa-tabs > li.nasa-tab {
        width: 50%;
        justify-content: center;
    }
}