@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
ul,
ol,
li,
a,
button,
input,
select,
textarea {
    font-family: 'Inter', sans-serif !important;
}

/* ============================================================
   DARK HEADER — Matching footer navy blue
   GP inline styles use var(--base-3)=#fff with low specificity.
   Using body prefix to ensure our rules win without !important
   where possible.
   ============================================================ */

/* --- Background: site-header & navigation bar --- */
body .site-header,
body .site-header .inside-header {
    background-color: #0d3461 !important;
    border-bottom: none !important;
    box-shadow: 0 2px 12px rgba(0,0,0,0.25) !important;
}

/* --- Logo swap: replace light logo with dark/white BW version --- */
body .site-header .site-logo img,
body .site-header .header-image img,
body .site-header .custom-logo {
    content: url('https://beta.akia.vn/wp-content/uploads/2025/05/Logo-akia-bw-230.png') !important;
    max-height: 60px !important;
    width: auto !important;
}

/* --- Navigation bar background (the row with Danh Mục / search / cart) --- */
body .main-navigation,
body .main-navigation ul ul {
    background-color: #0d3461 !important;
}

/* --- Nav links: make white --- */
body .main-navigation .main-nav ul li a,
body .main-navigation .menu-toggle,
body .main-navigation .menu-bar-items {
    color: #ffffff !important;
}

body .main-navigation .main-nav ul li:hover > a,
body .main-navigation .main-nav ul li:focus > a,
body .main-navigation .menu-bar-item:hover > a {
    color: #ffd700 !important; /* Gold on hover — matching hero banner accent */
}

/* --- Header icons (Tin tức / Tài khoản / Giỏ hàng) --- */
body .site-header .header-widget a,
body .site-header .header-widget svg,
body .main-navigation .menu-bar-item > a {
    color: #ffffff !important;
    fill: #ffffff !important;
}

body .site-header .header-widget a:hover {
    color: #ffd700 !important;
}

/* --- Search bar: white pill on dark background --- */
body .site-header .dgwt-wcas-search-wrapp,
body .site-header .dgwt-wcas-search-form,
body .site-header input.dgwt-wcas-search-input {
    background-color: #ffffff !important;
    border-color: rgba(255,255,255,0.3) !important;
    color: #222 !important;
}

/* --- "Danh mục sản phẩm" button stays blue but slightly lighter on dark bg --- */
body .site-header .akia-mega-menu-toggle,
body .site-header #akia-mega-menu-toggle {
    background-color: #104C87 !important;
    color: #fff !important;
    border: 1.5px solid rgba(255,255,255,0.25) !important;
}

/* --- Site description / branding text --- */
body .site-header .main-title a,
body .site-header .site-description {
    color: #ffffff !important;
}

/* --- MOBILE HEADER: apply same dark bg to mobile header bar --- */
body #mobile-header {
    background-color: #0d3461 !important;
}

body #mobile-header .inside-navigation,
body #mobile-header .menu-toggle,
body #mobile-header .menu-bar-items a {
    background-color: #0d3461 !important;
    color: #ffffff !important;
}

body #mobile-header .site-logo img {
    content: url('https://beta.akia.vn/wp-content/uploads/2025/05/Logo-akia-bw-230.png') !important;
    max-height: 40px !important;
    width: auto !important;
}

/* ========================================================
   PRODUCT PAGE: Definitive Layout Fix
   GP uses 'separate-containers' so .inside-article fills
   the full viewport. We center at the div.product level.
   ======================================================== */

/* Let GP/WC containers fill screen naturally */
.single-product .site.grid-container,
.single-product #content.site-content {
    max-width: none !important;
    padding: 0 !important;
}

/* Desktop: inside-article needs vertical padding for centering */
@media (min-width: 769px) {
    .single-product .inside-article {
        padding: 20px 0 !important;
    }
}
/* Mobile: no top/bottom padding - sections manage their own spacing */
@media (max-width: 768px) {
    .single-product .inside-article {
        padding: 0 !important;
    }
}

/* Desktop only: the actual centering is applied to div.product and its siblings */
@media (min-width: 769px) {
    .single-product.woocommerce .entry-content > * {
        max-width: 1400px !important;
        margin-left: auto !important;
        margin-right: auto !important;
        padding-left: 30px !important;
        padding-right: 30px !important;
        box-sizing: border-box !important;
    }

    /* Breadcrumbs need the same centering */
    .single-product .woocommerce-breadcrumb {
        max-width: 1400px !important;
        margin-left: auto !important;
        margin-right: auto !important;
        padding-left: 30px !important;
        padding-right: 30px !important;
        box-sizing: border-box !important;
    }
}

/* ===== PRODUCT PAGE TWO-COLUMN LAYOUT ===== */
@media (min-width: 769px) {
    .single-product.woocommerce div.product {
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: flex-start !important;
        gap: 0 4% !important;
        position: relative !important;
    }

    /* Remove Clearfix pseudo-elements which become flex items and break layout */
    .single-product.woocommerce div.product::before,
    .single-product.woocommerce div.product::after {
        display: none !important;
    }

    /* LEFT column: Gallery + Policy + Specs */
    .akia-left-column {
        width: 56% !important;
        max-width: 56% !important;
        flex: 0 0 56% !important;
        float: none !important;
        margin: 0 !important;
        margin-bottom: 2em !important;
        padding: 0 !important;
        clear: none !important;
        box-sizing: border-box !important;
        align-self: flex-start !important;  /* don't stretch to match taller right columns */
    }

    /* Make WC gallery fill the left column naturally */
    .woocommerce #content div.product div.images,
    .woocommerce div.product div.images,
    .woocommerce-product-gallery {
        width: 100% !important;
        max-width: 100% !important;
        float: none !important;
        margin: 0 !important;
        margin-bottom: 2em !important;
        padding: 0 !important;
        clear: none !important;
    }

    /* RIGHT column: Summary / Purchase box */
    .woocommerce #content div.product div.summary,
    .woocommerce div.product div.summary,
    .summary.entry-summary {
        width: 40% !important;
        max-width: 40% !important;
        flex: 0 0 40% !important;
        float: none !important;
        margin: 0 !important;
        margin-bottom: 2em !important;
        padding: 0 !important;
        clear: none !important;
        box-sizing: border-box !important;
    }

    /* Product title (if not hidden) */
    .woocommerce div.product>.product_title,
    .woocommerce #content div.product>.product_title,
    .product_title.entry-title {
        width: 100% !important;
        margin-bottom: 20px !important;
        font-size: 28px !important;
        font-weight: 700 !important;
        color: #333 !important;
        flex-basis: 100%;
        order: -1;
    }

    /* Related products, upsells, and reviews must each span a full row
       in the product flex-wrap container, not share a row */
    .related.products,
    .upsells.products,
    #reviews,
    .woocommerce-Reviews {
        width: 100% !important;
        flex: 0 0 100% !important;
    }
}


/* ========================================================
   PHOTOSWIPE / PSWP: Hide below-footer bleeding elements
   pswp buttons use background-image sprites – when the
   container is closed it still bleeds into the page flow.
   ======================================================== */
.pswp {
    display: none !important;
}

.pswp--open {
    display: block !important;
}

/* Hide empty GP sidebar on product pages (right-sidebar class) */
.single-product.right-sidebar #right-sidebar,
.single-product.right-sidebar .is-right-sidebar {
    display: none !important;
}

/* Hide the 'Giảm giá' badge on single product pages per user request */
body.single-product .akia-product-gallery-container span.onsale,
body.single-product div.product>span.onsale {
    display: none !important;
}

/* Style sale badge in product loops (Related Products, Shop Grid, etc.) */
ul.products li.product span.onsale,
.related ul.products span.onsale,
.woocommerce ul.products li.product .onsale {
    display: inline-block !important;
    position: absolute !important;
    top: 8px !important;
    left: 8px !important;
    right: auto !important;
    background: #e53935 !important;
    color: #fff !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    padding: 4px 8px !important;
    border-radius: 4px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.3px !important;
    z-index: 2 !important;
    min-width: unset !important;
    min-height: unset !important;
    width: auto !important;
    height: auto !important;
    box-shadow: 0 1px 3px rgba(0,0,0,.18) !important;
}

/* Ensure product image wrapper is positioned so badge can absolute-position correctly */
ul.products li.product a.woocommerce-loop-product__link,
ul.products li.product .product-image-wrapper,
ul.products li.product > a:first-child {
    position: relative !important;
}

/* li.product itself must be position:relative as fallback containing block */
ul.products li.product {
    position: relative !important;
}

/* Hide duplicate default woo title inside summary column */
.woocommerce div.product div.summary h1.product_title.entry-title:not(.akia-product-header h1),
.woocommerce #content div.product div.summary h1.product_title.entry-title:not(.akia-product-header h1),
.summary .product_title:not(.akia-product-header h1),
.summary h1.product_title:not(.akia-product-header h1) {
    display: none !important;
}

/* Hide default woo rating inside summary column */
.woocommerce div.product div.summary .woocommerce-product-rating,
.summary .woocommerce-product-rating {
    display: none !important;
}

/* FPT Product Header (Right Column Top) */
.akia-product-header {
    margin-bottom: 20px;
    width: 100%;
}

.akia-product-badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.akia-warranty-badge {
    display: inline-flex;
    align-items: center;
    background-color: #104C87;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    line-height: 1.2;
    text-transform: uppercase;
}


.akia-product-header h1.product_title {
    font-size: 24px !important;
    font-weight: 700 !important;
    color: #333 !important;
    line-height: 1.3 !important;
    margin-top: 0 !important;
    margin-bottom: 8px !important;
    display: block !important;
}

.akia-product-meta-row {
    display: flex;
    align-items: center;
    font-size: 13px;
    color: #555;
    flex-wrap: wrap;
    gap: 8px;
}

.akia-sku {
    color: #777;
}

.akia-meta-divider {
    color: #ddd;
    margin: 0 4px;
}

.akia-rating {
    display: flex;
    align-items: center;
    gap: 4px;
}

.akia-rating a {
    color: #2f80ed;
    text-decoration: none;
}

.akia-rating a:hover {
    text-decoration: underline;
}

/* Hide default woo price that couldn't be unhooked */
.summary>p.price {
    display: none !important;
}

/* Swiper Custom Gallery Styles */
.akia-product-gallery-container {
    width: 100%;
    position: relative;
    max-width: 100%;
    margin-bottom: 20px;
}

.akia-gallery-main {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    margin-bottom: 12px;
    overflow: hidden;
    position: relative;
}

.akia-gallery-main .swiper-slide {
    aspect-ratio: 16 / 9;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.akia-gallery-main .swiper-slide a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.akia-slide-img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    margin: 0 auto;
}

/* Video Slide Overlays */
.akia-play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    z-index: 10;
}

.akia-gallery-video-link:hover .akia-play-overlay {
    transform: translate(-50%, -50%) scale(1.1);
    background: #fff;
}

/* Custom Swiper Navigation Arrows */
.akia-swiper-prev,
.akia-swiper-next {
    color: #4b5563;
    background: rgba(255, 255, 255, 0.9);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.akia-swiper-prev:after,
.akia-swiper-next:after {
    font-size: 16px;
    font-weight: 700;
}

.akia-swiper-prev:hover,
.akia-swiper-next:hover {
    color: #104C87;
    background: #fff;
    box-shadow: 0 4px 12px rgba(16, 76, 135, 0.2);
}

/* Hide arrows if disabled by swiper */
.swiper-button-disabled {
    opacity: 0 !important;
    pointer-events: none;
}

/* Thumbnails Slider */
.akia-gallery-thumbs {
    box-sizing: border-box;
    padding: 8px 4px 16px 4px;
    /* padding-bottom for hover translation space */
    margin: 0 -4px;
    /* compensate for padding */
}

.akia-gallery-thumbs .swiper-slide {
    height: auto;
    cursor: pointer;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    background: #fff;
    opacity: 0.5;
    transition: all 0.2s ease-in-out;
    padding: 4px;
    position: relative;
    box-sizing: border-box;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.akia-gallery-thumbs .swiper-slide-thumb-active {
    opacity: 1;
    border-color: #104C87;
    box-shadow: 0 0 0 1px #104C87;
}

.akia-gallery-thumbs .swiper-slide:hover {
    opacity: 1;
    border-color: #104C87;
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(16, 76, 135, 0.15);
}

.akia-gallery-thumbs .swiper-slide img {
    border-radius: 4px;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.akia-thumb-video-badge {
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(215, 0, 24, 0.95);
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 10px;
    white-space: nowrap;
    z-index: 10;
}

/* Price Block (AKIA Style Box) */
.akia-price-wrapper {
    margin-bottom: 20px;
}

.akia-price-box {
    background: #fff;
    border-radius: 8px;
    padding: 2px;
    /* For gradient border effect */
    background: linear-gradient(135deg, #fde047, #f59e0b);
    overflow: hidden;
    position: relative;
}

.akia-price-content {
    padding: 15px 20px;
    background-color: #fffefa;
    border-radius: 6px;
    height: 100%;
}

#akia-dynamic-price .price,
#akia-dynamic-price .price ins,
#akia-dynamic-price .price ins .amount,
#akia-dynamic-price .price bdi {
    color: #D70018 !important;
    /* Changed from Yellow to Red per user request */
    font-size: 32px;
    font-weight: 800;
    /* Increased to 800 for maximum impact */
    margin-bottom: 0;
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    /* Handle long price ranges */
    text-decoration: none;
}

#akia-dynamic-price .price del,
#akia-dynamic-price .price del .amount,
#akia-dynamic-price .price del bdi {
    color: #999 !important;
    font-size: 16px;
    font-weight: 400;
}

.akia-vat-note {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
    display: block;
}

/* Hide WooCommerce native variation price injected near add to cart button */
.woocommerce-variation-price {
    display: none !important;
}

/* Hide duplicate Add to Cart row injected specifically by WooCommerce Variations */
.woocommerce-variation-add-to-cart .quantity,
.woocommerce-variation-add-to-cart .single_add_to_cart_button {
    display: none !important;
}

/* Hide the native WC single_add_to_cart_button on single product pages.
   Our buy-actions.php template injects custom MUA NGAY / Thêm vào giỏ buttons instead.
   This prevents a "ghost" button (yellow text on light bg) from showing before JS runs. */
.single-product form.cart > .single_add_to_cart_button,
.single-product form.cart button.single_add_to_cart_button,
.single-product form.cart .button.alt,
.single-product form.cart button[type="submit"]:not(.akia-btn-buy-now):not(.akia-btn-stb-buy):not(.akia-add-cart-link),
.single-product div.product form.cart [type="submit"]:not(.akia-buy-actions [type="submit"]) {
    display: none !important;
}

/* ── 8. VARIATION SWATCHES ──────────────────────────── */
.akia-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 5px;
}

.akia-swatches .akia-swatch {
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.akia-swatches .akia-swatch:hover {
    border-color: #9ca3af;
    background: #f9fafb;
}

.akia-swatches .akia-swatch.active {
    border-color: #104C87;
    background: #f0f7ff;
    color: #104C87;
    font-weight: 600;
    box-shadow: 0 0 0 1px #104C87;
}

/* Make sure the label looks good above the swatches */
.variations th.label {
    text-align: left;
    padding: 10px 15px 10px 0;
    vertical-align: top;
    font-size: 14px;
    font-weight: 600;
    color: #4b5563;
}

.variations td.value {
    padding-bottom: 15px;
}

/* Hide the clear selection link as button highlighting is enough */
.reset_variations {
    display: none !important;
}

/* Hide duplicate inline images from Shopee Review Imports */
.comment-text .shopee-review-images {
    display: none !important;
}

/* Promo Box */
.akia-promo-box {
    border: 1px solid #eef5ff;
    border-radius: 8px;
    margin-bottom: 25px;
    overflow: hidden;
}

.akia-promo-header {
    background-color: #eef5ff;
    color: #104C87;
    padding: 10px 15px;
    font-weight: 700;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
}

.akia-promo-header svg {
    width: 20px;
    height: 20px;
    fill: #104C87;
}

.akia-promo-content {
    padding: 15px;
    background: #fff;
    font-size: 14px;
    color: #333;
}

.akia-promo-content ul {
    margin: 0;
    padding-left: 0;
    list-style: none;
}

.akia-promo-content ul li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
}

.akia-promo-content ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: #104C87;
    /* Red checkmark */
    font-weight: bold;
    font-size: 16px;
}



/* Buttons Layout */
.woocommerce-variation-add-to-cart,
.single-product div.product form.cart {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
    width: 100%;
}

/* Note: quantity selectors are shown per-context via specific selectors below */


.akia-buy-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

/* MUA NGAY Button */
.akia-btn-buy-now {
    width: 100%;
    background: linear-gradient(135deg, #FFD000, #F59D00);
    color: #104C87 !important;
    border: none;
    border-radius: 8px;
    padding: 12px 10px;
    text-align: center;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.3;
    transition: all 0.3s;
    min-height: 65px;
    justify-content: center;
    box-shadow: 0 4px 6px rgba(225, 27, 30, 0.2);
}

.akia-btn-buy-now strong {
    font-size: 18px;
    text-transform: uppercase;
    display: block;
}

.akia-btn-buy-now span {
    font-size: 13px;
    font-weight: 400;
    opacity: 0.9;
}

.akia-btn-buy-now:hover {
    background: linear-gradient(135deg, #F59D00, #E68A00);
    transform: translateY(-1px);
    box-shadow: 0 6px 12px rgba(245, 157, 0, 0.3);
}

/* Installment Buttons Row */
.akia-installment-row {
    display: flex;
    gap: 10px;
    width: 100%;
}

.akia-btn-installment {
    flex: 1;
    background: linear-gradient(135deg, #1A5FAB, #104C87);
    color: #fff !important;
    border: none;
    border-radius: 8px;
    padding: 10px 5px;
    text-align: center;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.2;
    transition: all 0.3s;
    text-decoration: none;
    box-shadow: 0 4px 6px rgba(16, 76, 135, 0.15);
}

.akia-btn-installment strong {
    font-size: 14px;
    text-transform: uppercase;
    display: block;
}

.akia-btn-installment span {
    font-size: 11px;
    font-weight: 400;
    opacity: 0.9;
}

.akia-btn-installment:hover {
    background: linear-gradient(135deg, #104C87, #0A325A);
    transform: translateY(-1px);
}

/* Add to Cart small link */
.akia-add-cart-link-wrapper {
    text-align: center;
    margin-top: 5px;
}

.akia-add-cart-link {
    background: #fff !important;
    border: 1px solid #104C87 !important;
    color: #104C87 !important;
    padding: 10px 20px !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    width: 100% !important;
    text-align: center !important;
    cursor: pointer !important;
    transition: background 0.2s !important;
}

.akia-add-cart-link:hover {
    background: #fdf2f2 !important;
}

/* Policy Box */
.akia-policy-box {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 15px;
    background: #fff;
    margin-top: 20px;
}

/* Policy Box viewport toggle: desktop version full-width below grid, mobile version inside summary */
.akia-policy-desktop-only { display: none; }
.akia-policy-mobile-only  { display: block; }

@media (min-width: 769px) {
    .akia-policy-desktop-only { display: block; }
    .akia-policy-mobile-only  { display: none !important; }
}

.akia-policy-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    font-size: 13px;
    color: #444;
    line-height: 1.4;
}

.akia-policy-item:last-child {
    margin-bottom: 0;
}

.akia-policy-icon {
    margin-right: 12px;
    font-size: 18px;
    width: 24px;
    text-align: center;
    color: #104C87;
    padding-top: 2px;
}

.akia-policy-item b {
    color: #222;
    display: block;
    margin-bottom: 3px;
    font-size: 14px;
}

/* Tabs layout for Specs and Reviews */
.woocommerce div.product .woocommerce-tabs ul.tabs li {
    border-radius: 8px 8px 0 0 !important;
    background-color: #f1f1f1 !important;
    border: 1px solid #ddd !important;
    border-bottom: none !important;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active {
    background-color: #fff !important;
    border-top: 3px solid #104C87 !important;
}

.woocommerce div.product .woocommerce-tabs .panel {
    border: 1px solid #ddd;
    border-radius: 0 8px 8px 8px;
    padding: 20px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

/* Constrain all images in product description/tabs so they don't overflow their container */
.woocommerce div.product .woocommerce-tabs .panel img,
.woocommerce div.product .woocommerce-tabs .panel p img,
.single-product .entry-content img,
.single-product .woocommerce-product-details__short-description img,
.akia-desc-content-inner img,
.akia-2col-desc-left img,
.akia-2col-desc-wrapper img {
    max-width: 100% !important;
    height: auto !important;
}

/* Prevent description content box from visually overflowing its column.
   min-width: 0 is critical for flex children — without it, the item expands
   to fit its largest child (e.g. a 1920px-wide image), ignoring width: 100%. */
.akia-2col-desc-wrapper {
    min-width: 0 !important;
    overflow: hidden !important;
    max-width: 100% !important;
}

.akia-2col-desc-left,
.akia-desc-content-box,
.akia-desc-content-inner {
    min-width: 0;
    overflow: hidden;
    max-width: 100%;
}

/* ── Product Description Typography (Desktop) ───────────────────────────────
   Browser defaults: h1≈32px, h2≈24px, h3≈18.7px, h4≈16px
   Editors often paste content from Word/Docs which can produce very large
   headings. We normalize them inside the description column to a compact
   editorial scale that fits the product page context.
   ─────────────────────────────────────────────────────────────────────────── */
.akia-desc-content-inner h1,
.akia-desc-content-inner h2 {
    font-size: 20px !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
    margin-top: 24px !important;
    margin-bottom: 10px !important;
    color: #1a1a2e !important;
}

.akia-desc-content-inner h3 {
    font-size: 17px !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
    margin-top: 18px !important;
    margin-bottom: 8px !important;
    color: #1a1a2e !important;
}

.akia-desc-content-inner h4,
.akia-desc-content-inner h5,
.akia-desc-content-inner h6 {
    font-size: 15px !important;
    font-weight: 600 !important;
    line-height: 1.5 !important;
    margin-top: 14px !important;
    margin-bottom: 6px !important;
    color: #333 !important;
}

.akia-desc-content-inner p,
.akia-desc-content-inner li {
    font-size: 14.5px !important;
    line-height: 1.75 !important;
    color: #444 !important;
    margin-bottom: 8px !important;
}

.akia-desc-content-inner ul,
.akia-desc-content-inner ol {
    padding-left: 20px !important;
    margin-bottom: 12px !important;
}

.akia-desc-content-inner strong,
.akia-desc-content-inner b {
    font-weight: 700 !important;
    color: #222 !important;
}

/* Also protect the woocommerce-tabs panel the same way */
.woocommerce div.product .woocommerce-tabs {
    min-width: 0 !important;
    overflow: hidden !important;
}

/* Tweak WooCommerce attributes table - CellphoneS Style */
.woocommerce table.shop_attributes {
    border: 1px solid #ebebeb;
    border-collapse: collapse;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 0;
}

.woocommerce table.shop_attributes th {
    background: #f5f5f5;
    width: 35%;
    border: none;
    border-bottom: 1px solid #ebebeb;
    border-right: 1px solid #ebebeb;
    padding: 12px 15px;
    text-transform: none;
    color: #333;
    font-weight: 500;
    font-size: 13px;
    vertical-align: top;
}

.woocommerce table.shop_attributes td {
    border: none;
    border-bottom: 1px solid #ebebeb;
    padding: 12px 15px;
    background: #fff;
    color: #333;
    font-style: normal;
    font-size: 13px;
    text-align: left;
    vertical-align: top;
}

.woocommerce table.shop_attributes td p {
    margin: 0;
    padding: 0;
}

.woocommerce table.shop_attributes tr:last-child th,
.woocommerce table.shop_attributes tr:last-child td {
    border-bottom: none;
}

/* Specs Summary Box */
.akia-specs-summary-box {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 15px;
    margin-top: 20px;
    background: #fff;
}

.akia-specs-summary-box h3 {
    font-size: 16px;
    margin-bottom: 12px;
    font-weight: 700;
    color: #333;
}

.akia-specs-summary-box ul {
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 13px;
}

.akia-specs-summary-box li {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #f1f1f1;
}

.akia-specs-summary-box li:last-child {
    border-bottom: none;
}

.akia-specs-summary-box li span {
    color: #666;
    width: 45%;
}

.akia-specs-summary-box li strong {
    color: #333;
    width: 55%;
    text-align: right;
}

#btn-open-specs-drawer {
    width: 100%;
    border: 1px solid #2f80ed;
    background: #fff;
    color: #2f80ed;
    padding: 10px;
    border-radius: 8px;
    margin-top: 15px;
    cursor: pointer;
    transition: 0.2s;
    font-weight: 600;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

#btn-open-specs-drawer:hover {
    background: #eef5ff;
}

/* PREMIUM DRAWER SETTINGS */
/* --- SPECS DRAWER (MODAL) --- */
.akia-drawer-overlay,
.akia-specs-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999998;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    backdrop-filter: blur(2px);
}

.akia-drawer-overlay.active,
.akia-specs-overlay.active {
    opacity: 1;
    visibility: visible;
}

.akia-drawer,
.akia-specs-drawer {
    position: fixed;
    background: #fff;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* DRAWER - DESKTOP */
@media (min-width: 769px) {

    .akia-drawer,
    .akia-specs-drawer {
        right: -450px;
        top: 0;
        width: 450px;
        max-width: 100%;
        height: 100%;
        box-shadow: -5px 0 25px rgba(0, 0, 0, 0.1);
        transition: right 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    }

    .akia-drawer.active,
    .akia-specs-drawer.active {
        right: 0;
    }

    .akia-drawer-mobile-handle {
        display: none;
    }
}

/* DRAWER - MOBILE (BOTTOM SHEET) */
@media (max-width: 768px) {

    .akia-drawer,
    .akia-specs-drawer {
        right: 0;
        bottom: -100%;
        left: 0;
        top: auto;
        width: 100%;
        height: 85vh;
        border-radius: 20px 20px 0 0;
        box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.2);
        transition: bottom 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    }

    .akia-drawer.active,
    .akia-specs-drawer.active {
        bottom: 0;
    }

    .akia-drawer-mobile-handle {
        width: 40px;
        height: 5px;
        background: #ddd;
        border-radius: 3px;
        margin: 10px auto 0;
    }
}

/* Drawer Interior */
.akia-drawer-header {
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 2;
}

.akia-drawer-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: bold;
    color: #222;
}

#btn-close-specs-drawer {
    background: #f1f1f1;
    border: none;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    color: #555;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}

#btn-close-specs-drawer:hover {
    background: #e1e1e1;
    color: #000;
}

.akia-drawer-content {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
    -webkit-overflow-scrolling: touch;
    background: #fafafa;
}

.akia-drawer-content h2 {
    display: none;
}

/* Hide WooCommerce default heading */
.akia-drawer-content .shop_attributes {
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* Strict Mobile General Layout */
/* ============================================================
   MOBILE SINGLE PRODUCT — COMPLETE LAYOUT (≤ 768px)
   Thứ tự hiển thị được kiểm soát bằng flexbox order:
   Gallery (1) → Header/Title (2) → Price (3) → Promo (4)
   → Buttons (5) → Policy (6) → Highlighted Specs (7)
   → Description / Reviews / Comparison (8+)
   ============================================================ */
@media (max-width: 768px) {

    /* ── 1. Root container reset ─────────────────────────── */
    .single-product .site.grid-container {
        padding: 0 !important;
    }

    .single-product .inside-article {
        padding: 0 !important;
    }

    /* ── 2. Flatten the GP two-column grid into flex column ─ */
    body.single-product .inside-article {
        display: flex !important;
        flex-direction: column !important;
        gap: 0 !important;
    }

    /* Annihilate wrapper divs so children participate in the flex column.
       Note: div.product can have extra classes (sales-flash-overlay, etc.)
       so we use attribute-containing selector wc class check instead. */
    body.single-product .inside-article>div.product,
    body.single-product .inside-article>.product,
    body.single-product .inside-article div.product>.akia-left-column,
    body.single-product .inside-article div.product>.summary,
    body.single-product .inside-article div.product>.entry-summary,
    body.single-product .inside-article .akia-product-summary-wrapper {
        display: contents !important;
    }

    /* Default "unknown" elements sit at order 50 so they don't jump to top.
       Must also cover grandchildren (left-column children) when display:contents is applied. */
    body.single-product .inside-article>*,
    body.single-product .inside-article .product>*,
    body.single-product .inside-article .akia-left-column>*,
    body.single-product .inside-article .summary>*,
    body.single-product .inside-article .entry-summary>* {
        order: 50;
        min-width: 0;
        /* prevent flex overflow */
    }

    /* ── 3. Hide WooCommerce default duplicates ─────────── */
    .woocommerce div.product>.price,
    .woocommerce div.product>.woocommerce-product-rating,
    .woocommerce div.product>.product_meta {
        display: none !important;
    }

    .woocommerce #content div.product div.images,
    .woocommerce div.product div.images,
    .woocommerce #content div.product div.summary,
    .woocommerce div.product div.summary {
        width: 100% !important;
        float: none !important;
        padding: 0 !important;
    }

    /* ── 4. BREADCRUMBS ─────────────────────────────────── */
    .woocommerce-breadcrumb,
    .rank-math-breadcrumb {
        order: 0 !important;
        width: 100% !important;
        padding: 8px 8px 4px !important;
        /* Reduced padding */
        font-size: 12px !important;
        /* User requested 12px */
        white-space: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        display: block !important;
        background: #f8f9fb !important;
        border-bottom: 1px solid #ebebeb !important;
        margin-bottom: 0 !important;
        color: #888 !important;
    }

    .woocommerce-breadcrumb a,
    .rank-math-breadcrumb a {
        color: #104c87 !important;
        font-weight: 500 !important;
    }

    .woocommerce-breadcrumb::-webkit-scrollbar,
    .rank-math-breadcrumb::-webkit-scrollbar {
        display: none;
    }

    /* ── 5. GALLERY ─────────────────────────────────────── */
    .woocommerce-notices-wrapper {
        order: -1 !important;
        width: 100%;
        padding: 0 10px;
    }

    .akia-product-gallery-container {
        order: 1 !important;
        width: 100% !important;
        margin: 0 !important;
        background: #fff;
        border: none !important;
        border-radius: 0 !important;
        border-bottom: 5px solid #f2f2f2;
    }

    /* Main slide image: keep ratio, add padding so it doesn't touch edges */
    .akia-gallery-main .swiper-slide {
        padding: 5px !important;
        /* Minimum padding so it takes maximum scale within 16:9 */
        /* Lọt lòng */
        box-sizing: border-box;
        aspect-ratio: 16 / 9 !important;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .akia-gallery-main .swiper-slide img.akia-slide-img {
        max-height: none !important;
        height: 100% !important;
        /* Force to take full height of the padded 16:9 box */
        width: 100% !important;
        /* Force to take full width */
        object-fit: contain !important;
        /* Scale purely within dimensions */
        margin: 0 auto;
        display: block;
    }

    /* Thumbnails: smaller on mobile */
    .akia-gallery-thumbs .swiper-slide {
        height: 52px !important;
        width: 52px !important;
        border-radius: 6px !important;
    }

    .akia-gallery-thumbs {
        padding: 5px 10px 10px !important;
    }

    /* ── 6. PRODUCT HEADER (Title + badges + meta) ──────── */
    .akia-product-header {
        order: 2 !important;
        width: 100% !important;
        padding: 8px 8px 4px !important;
        margin: 0 !important;
        background: #fff;
        border-bottom: 1px solid #f0f0f0;
    }

    /* Compact badge row on mobile */
    .akia-product-badges {
        margin-bottom: 6px;
    }

    .akia-warranty-badge {
        font-size: 10px !important;
        padding: 2px 6px !important;
    }

    /* Title size - Smaller, balanced */
    body.single-product.woocommerce div.product h1.product_title.entry-title,
    .akia-product-header h1.product_title {
        font-size: 15px !important;
        line-height: 1.4 !important;
        margin-bottom: 6px !important;
        margin-top: 0 !important;
        color: #1a1a1a !important;
        font-weight: 700 !important;
    }

    /* SKU / rating / specs link row */
    .akia-product-meta-row {
        font-size: 12px !important;
        gap: 6px !important;
        flex-wrap: wrap;
        padding-bottom: 2px;
    }

    .akia-sku {
        font-size: 11px !important;
    }

    /* ── 7. PRICE BOX ───────────────────────────────────── */
    .akia-price-wrapper {
        order: 3 !important;
        width: 100% !important;
    }

    /* Price wrapper: remove bottom margin gap */
    .akia-price-wrapper {
        margin-bottom: 0 !important;
    }

    /* Flush price box to edges with no rounded corners */
    .akia-price-box {
        margin: 0 !important;
        border-radius: 0 !important;
        border: none !important;
        background: #fff !important;
    }

    .akia-price-box .akia-price-content {
        border-radius: 0 !important;
        padding: 4px 8px 8px !important;
        background: none !important;
    }

    .akia-price-box .akia-price-content .price {
        font-size: 24px !important;
        /* Bigger */
        color: #d70018 !important;
        /* FPT/CellphoneS Red */
        font-weight: 700 !important;
    }

    .akia-price-box .akia-price-content .price del {
        font-size: 14px !important;
        color: #888 !important;
    }

    /* ── 8. PROMOTIONS / KHUYẾN MÃI ────────────────────── */
    .akia-promo-box {
        order: 4 !important;
        width: 100% !important;
        margin: 0 !important;
        border-radius: 0 !important;
        border: none !important;
        padding: 0 !important;
        background: #fff;
    }

    .akia-promo-header {
        padding: 10px 14px !important;
    }

    .akia-promo-content {
        padding: 10px 14px !important;
    }

    /* ── 9. BUY BUTTONS ─────────────────────────────────── */
    form.cart {
        order: 5 !important;
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
        background: #fff;
    }

    /* Quantity selector: hidden on mobile per user request */
    .single-product.woocommerce form.cart .quantity {
        display: none !important;
        align-items: center;
        gap: 0;
        margin-bottom: 10px;
    }

    .single-product.woocommerce form.cart .quantity .qty {
        display: block !important;
        width: 52px !important;
        height: 44px !important;
        font-size: 16px !important;
        text-align: center;
        border: 1px solid #d1d5db !important;
        border-left: none !important;
        border-right: none !important;
        border-radius: 0 !important;
        background: #fff;
        appearance: none !important;
        -moz-appearance: textfield !important;
        -webkit-appearance: none !important;
    }

    .single-product.woocommerce form.cart .quantity button.minus,
    .single-product.woocommerce form.cart .quantity button.plus,
    .single-product.woocommerce form.cart .quantity .minus,
    .single-product.woocommerce form.cart .quantity .plus {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 44px !important;
        height: 44px !important;
        min-width: 44px !important;
        font-size: 20px !important;
        background: #f1f5f9 !important;
        border: 1px solid #d1d5db !important;
        color: #374151 !important;
        cursor: pointer;
        transition: background 0.2s;
    }

    .single-product.woocommerce form.cart .quantity .minus {
        border-radius: 6px 0 0 6px !important;
    }

    .single-product.woocommerce form.cart .quantity .plus {
        border-radius: 0 6px 6px 0 !important;
    }

    .single-product.woocommerce form.cart .quantity button.minus:hover,
    .single-product.woocommerce form.cart .quantity button.plus:hover,
    .single-product.woocommerce form.cart .quantity .minus:hover,
    .single-product.woocommerce form.cart .quantity .plus:hover {
        background: #e2e8f0 !important;
    }

    .akia-buy-actions {
        order: 5 !important;
        width: 100% !important;
        padding: 0 0 14px !important;
        margin: 0 !important;
        background: #fff;
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        border-bottom: 5px solid #f2f2f2;
    }

    /* Buy Now — full width, tall for easy tap */
    .akia-btn-buy-now {
        width: 100% !important;
        min-height: 54px !important;
        font-size: 16px !important;
        border-radius: 8px !important;
        padding: 12px 16px !important;
    }

    .akia-btn-buy-now strong {
        font-size: 17px !important;
    }

    .akia-btn-buy-now span {
        font-size: 12px !important;
    }

    /* Installment buttons — side by side */
    .akia-installment-row {
        flex-direction: row !important;
        gap: 8px;
        width: 100%;
    }

    .akia-installment-row button,
    .akia-installment-row a {
        flex: 1 !important;
        min-height: 46px !important;
        font-size: 12px !important;
        border-radius: 6px !important;
        padding: 8px 6px !important;
    }

    .akia-installment-row strong {
        font-size: 12px !important;
    }

    .akia-installment-row span {
        font-size: 10px !important;
    }

    /* "Thêm vào giỏ hàng" secondary link - clearly styled */
    .akia-add-cart-link {
        width: 100% !important;
        padding: 12px 16px !important;
        font-size: 14px !important;
        border-radius: 8px !important;
        min-height: 46px !important;
    }

    /* ── 10. POLICY BOX (Thông tin chung / Bảo hành) ───── */
    .akia-policy-box {
        order: 6 !important;
        width: 100% !important;
        margin: 0 !important;
        border-radius: 0 !important;
        border: none !important;
        background: #fff;
        border-bottom: 5px solid #f2f2f2;
    }

    /* Compact policy rows on mobile */
    .akia-policy-item {
        padding: 10px 8px !important;
        gap: 10px !important;
    }

    .akia-policy-item:not(:last-child) {
        border-bottom: 1px solid #f0f0f0 !important;
    }

    .akia-policy-title {
        font-size: 13px !important;
    }

    .akia-policy-desc {
        font-size: 12px !important;
        line-height: 1.4 !important;
    }

    /* ── 11. HIGHLIGHTED SPECS ───────────────────────────── */
    .akia-highlighted-specs {
        order: 7 !important;
        width: 100% !important;
        padding: 12px 8px !important;
        margin: 0 !important;
        border-radius: 0 !important;
        border: none !important;
        background: #fff;
        border-bottom: 5px solid #f2f2f2;
    }

    .akia-hs-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px 10px !important;
    }

    .akia-highlighted-specs h3 {
        font-size: 14px !important;
        margin-bottom: 12px !important;
        color: #333 !important;
    }

    /* ── 12. DESCRIPTION / REVIEWS / COMPARISON (bottom) ── */
    .akia-2col-desc-wrapper,
    .woocommerce-tabs,
    #reviews,
    .akia-comparison-block,
    .akia-faq-block {
        order: 8 !important;
        width: 100% !important;
        margin-top: 0 !important;
        border-bottom: 5px solid #f2f2f2;
        padding: 10px 0;
    }

    /* ── 13. HEADER OPTIMIZATION (GeneratePress) ────────── */
    .site-header .inside-header,
    #mobile-header .inside-navigation {
        padding: 2px 10px !important;
    }

    #mobile-header {
        min-height: 40px !important;
        /* Super slim mobile header */
    }

    .menu-toggle,
    .mobile-bar-items a {
        line-height: 40px !important;
        height: 40px !important;
        display: flex;
        align-items: center;
    }

    .site-logo.mobile-header-logo img,
    .site-header .header-image {
        height: 30px !important;
        max-height: 30px !important;
        width: auto !important;
        padding: 0 !important;
        margin: 5px 0 !important;
    }

    /* Decrease heading sizes in description content on mobile */
    .akia-2col-desc-wrapper h2,
    .woocommerce-Tabs-panel--description h2,
    .woocommerce-product-details__short-description h2,
    #reviews h2 {
        font-size: 16px !important;
        line-height: 1.4 !important;
        margin-top: 10px !important;
        margin-bottom: 10px !important;
        color: #333 !important;
    }

    .akia-2col-desc-wrapper h3,
    .woocommerce-Tabs-panel--description h3,
    #tab-description h3 {
        font-size: 17px !important;
        line-height: 1.4 !important;
        margin-top: 12px !important;
        margin-bottom: 8px !important;
    }

    .related.products,
    .upsells.products {
        order: 9 !important;
        width: 100% !important;
    }

    /* Compact woo tabs on mobile */
    .woocommerce div.product .woocommerce-tabs ul.tabs {
        display: flex;
        overflow-x: auto;
        white-space: nowrap;
        padding-left: 0;
        -webkit-overflow-scrolling: touch;
    }

    .woocommerce div.product .woocommerce-tabs ul.tabs li {
        padding: 8px 14px;
        margin-right: 4px;
        flex-shrink: 0;
    }

    .woocommerce div.product .woocommerce-tabs .panel {
        padding: 15px;
    }

    /* ── 13. COMPARISON TABLE — horizontal scroll on mobile */
    .akia-comparison-table-wrapper {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
    }

    .akia-comparison-table {
        min-width: 600px;
    }
}


/* ========================================================= */
/* ARCHIVE (CATEGORY) PAGE STYLING (FPT STYLE)                 */
/* ========================================================= */
.post-type-archive-product .site.grid-container,
.tax-product_cat .site.grid-container {
    max-width: 1200px !important;
}

/* Sidebar Styling */
#left-sidebar {
    padding-right: 20px;
}

#left-sidebar .widget h4 {
    font-size: 16px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    border-bottom: 2px solid #104C87;
    padding-bottom: 10px;
    margin-bottom: 15px;
    margin-top: 0;
    color: #333;
}

#left-sidebar .widget {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #eee;
    margin-bottom: 20px;
}

.woof_widget_title {
    font-size: 15px !important;
    font-weight: bold;
    margin-bottom: 15px;
    color: #333;
}

.woof_list {
    list-style: none;
    padding-left: 0;
    margin-left: 0;
}

.woof_list li {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.woof_list label {
    font-size: 14px;
    margin-left: 8px;
    cursor: pointer;
    color: #444;
}

.woof_submit_search_form_container {
    text-align: center;
    margin-top: 15px;
}

.woof_submit_search_form_container button {
    width: 100%;
    border-radius: 6px;
    background: #e11b1e;
    border: none;
    padding: 10px;
    color: white;
    cursor: pointer;
    transition: 0.3s;
}

.woof_submit_search_form_container button:hover {
    background: #b81517;
}

/* Product Grid inside Category */
ul.products,
.related.products ul.products,
.upsells.products ul.products {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)) !important;
    grid-gap: 15px !important;
    margin: 0 !important;
    padding: 0 !important;
    justify-content: start;
}

/* Ensure empty columns don't stretch the first few products */
.related.products ul.products,
.upsells.products ul.products {
    justify-content: start;
}

ul.products li.product {
    width: 100% !important;
    margin: 0 !important;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #f2f2f2;
    padding: 15px;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}

ul.products li.product:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
    z-index: 2;
    border-color: #dcdcdc;
}

/* Product Link Wrapper (Make it robust flex column) */
ul.products li.product a.woocommerce-LoopProduct-link,
ul.products li.product a.woocommerce-loop-product__link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none !important;
}

/* Base Image Styling */
ul.products li.product a.woocommerce-LoopProduct-link img,
ul.products li.product a.woocommerce-loop-product__link img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: contain;
    margin-bottom: 15px;
    border-radius: 4px;
    transition: transform 0.3s ease;
}

/* Hide Secondary Image to prevent layout breakage (Overlap bug) */
ul.products li.product a.woocommerce-LoopProduct-link img.secondary-image,
ul.products li.product a.woocommerce-loop-product__link img.secondary-image {
    display: none !important;
}

ul.products li.product:hover a.woocommerce-LoopProduct-link img.attachment-woocommerce_thumbnail,
ul.products li.product:hover a.woocommerce-loop-product__link img.attachment-woocommerce_thumbnail {
    transform: scale(1.05);
}

ul.products li.product .woocommerce-loop-product__title,
ul.products li.product a.woocommerce-loop-product__link .woocommerce-loop-product__title {
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    color: #444 !important;
    /* Force dark grey */
    margin-top: 5px !important;
    margin-bottom: 10px !important;
    height: 40px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    display: -webkit-box !important;
    line-clamp: 2 !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
}

ul.products li.product:hover .woocommerce-loop-product__title,
ul.products li.product a.woocommerce-loop-product__link:hover .woocommerce-loop-product__title {
    color: #288ad6 !important;
    /* FPT Blue hover link color */
}

/* Guard rating text and star against WooCommerce link colors */
ul.products li.product a.woocommerce-LoopProduct-link .dmx-inline-rating,
ul.products li.product a.woocommerce-loop-product__link .dmx-inline-rating {
    font-size: 11px !important;
    color: #6b7280 !important;
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    text-align: left !important;
    margin-top: auto !important;
    /* Push to absolute bottom */
}

ul.products li.product a.woocommerce-LoopProduct-link .dmx-inline-rating span,
ul.products li.product a.woocommerce-loop-product__link .dmx-inline-rating span {
    color: #6b7280 !important;
}

ul.products li.product a.woocommerce-LoopProduct-link .dmx-inline-rating .star,
ul.products li.product a.woocommerce-loop-product__link .dmx-inline-rating .star {
    color: #f59e0b !important;
    /* Yellow */
}

/* Pricing Grid */
ul.products li.product .price {
    color: #d70018 !important;
    /* Bold FPT Red */
    font-size: 16px !important;
    font-weight: 700 !important;
    margin-bottom: 15px !important;
    display: block !important;
    margin-top: auto !important;
    /* Push to bottom */
}

ul.products li.product .price .woocommerce-Price-amount {
    color: #d70018 !important;
    font-size: 16px !important;
    font-weight: 700 !important;
}

/* Old Price styling */
ul.products li.product .price del,
ul.products li.product .price del .amount,
ul.products li.product .price del .woocommerce-Price-amount {
    color: #999 !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    text-decoration: line-through !important;
    opacity: 1 !important;
    margin-bottom: 2px !important;
    display: block !important;
}

ul.products li.product .price ins {
    background: none;
    text-decoration: none;
    display: block !important;
}

/* Category Layout Responsive */
@media (max-width: 1024px) {
    ul.products {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 768px) {



    #left-sidebar {
        padding-right: 0;
        margin-bottom: 20px;
    }

    ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
        grid-gap: 10px !important;
    }

    ul.products li.product {
        padding: 10px;
    }

    ul.products li.product .woocommerce-loop-product__title {
        font-size: 13px;
        height: 38px;
    }

    ul.products li.product .price {
        font-size: 15px;
    }

    /* FPT Style: Horizontal Scroll for Related/Upsell Products on Mobile */
    .related.products ul.products,
    .upsells.products ul.products {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        padding-bottom: 10px !important;
        margin-left: -5px;
        /* Adjust for padding */
        margin-right: -5px;
        padding-left: 5px;
    }

    .related.products ul.products li.product,
    .upsells.products ul.products li.product {
        flex: 0 0 145px !important;
        /* Smaller fixed width */
        scroll-snap-align: start;
        margin-right: 10px !important;
        margin-bottom: 0 !important;
        max-width: 145px !important;
    }

    .related.products ul.products::-webkit-scrollbar,
    .upsells.products ul.products::-webkit-scrollbar {
        height: 4px;
    }

    .related.products ul.products::-webkit-scrollbar-track,
    .upsells.products ul.products::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 4px;
    }

    .related.products ul.products::-webkit-scrollbar-thumb,
    .upsells.products ul.products::-webkit-scrollbar-thumb {
        background: #cbd5e1;
        border-radius: 4px;
    }
}

/* ========================================================= */
/* CellphoneS Out of Stock Block */
/* ========================================================= */
.akia-oos-block {
    margin: 20px 0;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    clear: both;
}

.akia-oos-header {
    background: #f3f4f6;
    text-align: center;
    padding: 15px;
    border-bottom: 1px solid #e5e7eb;
}

.akia-oos-header h3 {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    margin: 0 0 5px;
    text-transform: uppercase;
}

.akia-oos-header p {
    font-size: 14px;
    color: #F59D00;
    margin: 0;
}

.akia-oos-subscribe {
    padding: 20px;
}

.akia-oos-subscribe h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 15px;
    text-align: center;
    color: #333;
}

.akia-oos-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.akia-oos-form input {
    width: 100%;
    padding: 10px 15px !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 6px !important;
    font-size: 14px !important;
    outline: none !important;
    transition: 0.2s border-color !important;
    background: #fff !important;
}

.akia-oos-form input:focus {
    border-color: #F59D00 !important;
}

.akia-btn-oos-submit {
    background-color: #F59D00 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 6px !important;
    padding: 12px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    text-transform: uppercase !important;
    transition: 0.2s background !important;
    text-align: center !important;
    width: 100%;
}

.akia-btn-oos-submit:hover {
    background-color: #a1141a !important;
}

/* ========================================================================= */
/* HIGHLIGHTED SPECS (BESTBUY STYLE) */
/* ========================================================================= */
.akia-highlighted-specs {
    margin: 20px 0 10px;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #e0e6ef;
}

.akia-highlighted-specs h3 {
    font-size: 18px;
    font-weight: 700;
    color: #040c13;
    margin-bottom: 20px;
    line-height: 1.2;
}

.akia-hs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px 30px;
}

.akia-hs-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.akia-hs-icon {
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.akia-hs-icon svg {
    max-width: 100%;
    max-height: 100%;
    fill: #040c13;
    /* BestBuy dark icon color */
}

.akia-hs-label {
    font-size: 11px;
    color: #555;
    line-height: 1.2;
    margin-bottom: 2px;
}

.akia-hs-value {
    font-size: 13px;
    font-weight: 600;
    color: #040c13;
    line-height: 1.3;
}

@media (max-width: 768px) {
    .akia-highlighted-specs {
        padding: 12px;
        margin: 15px 0 10px;
    }

    .akia-hs-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px 10px;
    }

    .akia-highlighted-specs h3 {
        font-size: 15px;
        margin-bottom: 12px;
    }

    .akia-hs-item {
        gap: 8px;
        align-items: center;
    }

    .akia-hs-icon {
        flex: 0 0 20px;
        width: 20px;
        height: 20px;
    }

    .akia-hs-label {
        font-size: 10px;
        margin-bottom: 0px;
    }

    .akia-hs-value {
        font-size: 12px;
    }
}

/* ========================================================================= */
/* STICKY TOP BAR (ADD TO CART) */
/* ========================================================================= */
.akia-sticky-top-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    z-index: 99999;
    transform: translateY(-100%);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), opacity 0.4s ease;
    opacity: 0;
}

.akia-sticky-top-bar.is-visible {
    transform: translateY(0);
    opacity: 1;
}

.akia-stb-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.akia-stb-left {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.akia-stb-img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #eee;
}

.akia-stb-info {
    display: flex;
    flex-direction: column;
}

.akia-stb-title {
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #333 !important;
    margin: 0 0 2px 0 !important;
    line-height: 1.3 !important;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.akia-stb-price {
    font-size: 16px;
    font-weight: bold;
    color: #d70018;
    /* FPT Style Red */
}

.akia-stb-price del {
    font-size: 12px;
    color: #999;
    font-weight: normal;
    margin-right: 5px;
}

.akia-stb-right {
    display: flex;
    align-items: center;
}

.akia-stb-cart-form {
    margin: 0;
    display: flex;
}

.akia-btn-stb-buy,
.akia-btn-stb-oos {
    padding: 10px 30px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    color: white;
}

.akia-btn-stb-buy {
    background: linear-gradient(135deg, #FFD000, #F59D00);
    box-shadow: 0 4px 15px rgba(245, 157, 0, 0.3);
    color: #104C87 !important;
}

.akia-btn-stb-buy:hover {
    background: linear-gradient(135deg, #F59D00, #E68A00);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 157, 0, 0.4);
    color: #104C87 !important;
}

.akia-btn-stb-oos {
    background: #ccc;
    cursor: not-allowed;
    color: #666;
}

@media (max-width: 768px) {

    /* ===== STICKY BOTTOM BAR — MOBILE REDESIGN ===== */
    .akia-sticky-top-bar {
        top: auto;
        bottom: 0;
        transform: translateY(100%);
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.18);
        border-top: none;
        background: #fff;
        border-radius: 16px 16px 0 0;
    }

    .akia-sticky-top-bar.is-visible {
        transform: translateY(0);
    }

    /* Prevent GeneratePress Back to Top from overlapping */
    .generate-back-to-top {
        bottom: 85px !important;
        z-index: 99999 !important;
    }

    /* 3-section layout: [📞 Contact] | [💰 Price] | [🛒 MUA NGAY] */
    .akia-stb-container {
        padding: 0;
        display: flex;
        align-items: stretch;
        height: 58px;
        max-width: none;
        gap: 0;
    }

    /* LEFT: Phone/Consult button */
    .akia-stb-left {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 72px;
        min-width: 72px;
        background: #104C87;
        color: #fff;
        gap: 3px;
        cursor: pointer;
        text-decoration: none;
        flex-shrink: 0;
        border-radius: 16px 0 0 0;
    }

    .akia-stb-left svg,
    .akia-btn-stb-contact svg {
        width: 20px;
        height: 20px;
        color: #fff;
        margin-bottom: 0;
    }

    .akia-stb-left-label {
        font-size: 10px;
        font-weight: 600;
        color: #fff;
        letter-spacing: 0.3px;
    }

    /* CENTER: Product price */
    .akia-stb-info {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        flex: 1;
        padding: 0 8px;
        min-width: 0;
        border-left: 1px solid #e8edf4;
        border-right: 1px solid #e8edf4;
        overflow: hidden;
    }

    .akia-stb-title {
        font-size: 10px !important;
        font-weight: 500 !important;
        color: #888 !important;
        margin: 0 0 1px 0 !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
        line-clamp: 1;
        -webkit-line-clamp: 1;
    }

    .akia-stb-price {
        font-size: 15px;
        font-weight: 700;
        color: #D70018;
        white-space: nowrap;
    }

    .akia-stb-price del,
    .akia-stb-price del .amount {
        font-size: 11px;
        color: #aaa;
        font-weight: 400;
        margin-right: 3px;
    }

    /* RIGHT: MUA NGAY */
    .akia-stb-right {
        display: flex;
        align-items: stretch;
        flex-shrink: 0;
    }

    .akia-stb-cart-form {
        display: flex;
        margin: 0;
    }

    /* Buy Button Mobile*/
    .akia-btn-stb-buy,
    .akia-btn-stb-oos {
        width: 115px;
        border-radius: 0 16px 0 0;
        padding: 0 12px;
        font-size: 14px;
        font-weight: 700;
        letter-spacing: 0.5px;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        height: 58px;
    }

    .akia-btn-stb-buy {
        background: linear-gradient(135deg, #FFD000, #F09800);
        color: #104C87 !important;
        box-shadow: none;
    }

    .akia-btn-stb-buy:hover {
        background: linear-gradient(135deg, #F59D00, #E68A00);
        transform: none;
        box-shadow: none;
        color: #104C87 !important;
    }

    /* hide the img in mobile bar */
    .akia-stb-img {
        display: none;
    }

    /* Policy Compact Mobile */
    .akia-policy-box {
        padding: 12px !important;
    }

    .akia-policy-item {
        margin-bottom: 8px !important;
        align-items: flex-start !important;
    }

    .akia-policy-item b {
        display: inline !important;
        /* Keep bold inline instead of block */
        margin-right: 5px;
        font-size: 13px !important;
    }

    .akia-policy-item div {
        font-size: 13px !important;
    }

    .akia-policy-icon {
        font-size: 18px !important;
        margin-right: 8px !important;
        margin-top: 2px;
    }
}

/* ========================================================================= */
/* COLLAPSIBLE PRODUCT DESCRIPTION */
/* ========================================================================= */
.akia-desc-content-box {
    position: relative;
    max-height: 500px;
    overflow: hidden;
    transition: max-height 0.5s ease;
}

.akia-desc-content-box.expanded {
    max-height: 10000px;
    /* Arbitrary large value to allow full expansion */
}

.akia-desc-fade {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 90%);
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.akia-desc-content-box.expanded .akia-desc-fade {
    opacity: 0;
}

.akia-desc-action {
    text-align: center;
    margin-top: 20px;
    position: relative;
    z-index: 2;
}

.akia-btn-read-more {
    background: #fff;
    border: 1px solid #104C87;
    /* AKIA Style Blue */
    color: #104C87;
    padding: 8px 30px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s ease;
}

/* ========================================================================= */
/* PREMIUM REVIEWS BLOCK (Empty State & Modal) */
/* ========================================================================= */
.akia-premium-reviews {
    margin-top: 2em;
    padding-top: 2em;
    border-top: 1px solid #eee;
}

.akia-reviews-empty-state {
    text-align: center;
    padding: 40px 20px;
    background: #f9f9f9;
    border-radius: 12px;
    margin: 20px 0;
}

.akia-empty-icon {
    margin-bottom: 15px;
    color: #ccc;
}

.akia-reviews-empty-state h3 {
    margin: 0 0 10px;
    font-size: 18px;
    color: #333;
}

.akia-reviews-empty-state p {
    color: #666;
    margin-bottom: 20px;
}

.akia-btn-write-review {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #d40018;
    /* FPT Style Red */
    color: #fff;
    padding: 10px 25px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background 0.3s ease;
}

.akia-btn-write-review:hover {
    background: #b80014;
}

/* Review Form Modal Overlay */
.akia-review-form-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 999999;
    /* Ensure it's above everything */
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.akia-review-form-modal {
    background: #fff;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    padding: 30px;
    border-radius: 12px;
    position: relative;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.akia-review-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    color: #999;
    background: none;
    border: none;
    cursor: pointer;
    line-height: 1;
}

.akia-review-close:hover {
    color: #333;
}

body.akia-no-scroll {
    overflow: hidden;
}

/* ========================================================================= */
/* 9. FAQ Section */
/* ========================================================================= */
.akia-faq-block {
    margin-top: 2em;
    padding: 30px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f0f0;
}

.akia-faq-title {
    font-size: 20px;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
}

.akia-faq-item {
    border-bottom: 1px solid #eee;
    padding: 15px 0;
}

.akia-faq-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.akia-faq-item:first-child {
    padding-top: 0;
}

.akia-faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.akia-faq-question h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #222;
    padding-right: 20px;
    transition: color 0.3s;
}

.akia-faq-question:hover h3 {
    color: #d40018;
}

.akia-faq-toggle-icon {
    flex-shrink: 0;
    color: #999;
    transition: transform 0.3s ease;
}

.akia-faq-answer {
    display: none;
    padding-top: 15px;
    color: #555;
    line-height: 1.6;
    font-size: 15px;
}

.akia-faq-item.active .akia-faq-answer {
    display: block;
    animation: fadeIn 0.3s ease;
}

.akia-faq-item.active .akia-faq-toggle-icon {
    transform: rotate(180deg);
    color: #d40018;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================================================= */
/* 11. Product Comparison Box */
/* ========================================================================= */
.akia-comparison-block {
    margin-top: 2em;
    padding: 30px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f0f0;
}

.akia-comparison-title {
    font-size: 20px;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
}

.akia-comparison-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.akia-comparison-table {
    width: 100%;
    min-width: 600px;
    border-collapse: collapse;
    table-layout: fixed;
}

.akia-comparison-table td {
    padding: 15px;
    border: 1px solid #eee;
    vertical-align: top;
}

.akia-compare-basic-info td {
    text-align: center;
    position: relative;
}

.akia-compare-main-product {
    background: #fafafa;
}

.akia-compare-badge {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    background: #d70018;
    /* FPT Style Red */
    color: #fff;
    padding: 2px 10px;
    font-size: 11px;
    font-weight: bold;
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
}

.akia-compare-img-wrap {
    width: 120px;
    height: 120px;
    margin: 15px auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.akia-compare-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.akia-compare-product-title {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin: 10px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.akia-compare-link {
    text-decoration: none !important;
}

.akia-compare-link:hover .akia-compare-product-title {
    color: #0d5cb6;
    /* Tiki/FPT blue hover */
}

.akia-compare-price .woocommerce-Price-amount {
    color: #d70018;
    font-weight: bold;
    font-size: 16px;
}

.akia-compare-rating {
    margin: 8px 0;
    font-size: 12px;
}

.akia-compare-action {
    margin-top: 10px;
}

.akia-compare-action .button {
    padding: 6px 12px;
    font-size: 13px;
    border-radius: 4px;
}

.akia-compare-attr-row td {
    font-size: 14px;
    color: #444;
}

.akia-compare-attr-label-mobile {
    font-weight: 600;
    color: #777;
    font-size: 12px;
    margin-bottom: 4px;
    display: none;
    /* Only show on mobile if needed, but table structure handles it well usually */
}

.akia-compare-dash {
    color: #ccc;
}

/* Responsive Table Adjustments */
@media (max-width: 768px) {
    .akia-comparison-table {
        min-width: 150vw;
        /* Force horizontal scroll */
    }
}

/* --------------- PREMIUM REVIEWS LIST --------------- */
.woocommerce-Reviews ol.commentlist {
    margin: 0;
    padding: 0;
    list-style: none;
}

.woocommerce-Reviews ol.commentlist li.review {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
    position: relative;
    clear: both;
}

.woocommerce-Reviews ol.commentlist li.review .comment_container {
    display: flex;
    flex-direction: row;
    gap: 20px;
}

/* Avatar styling */
#reviews.woocommerce-Reviews ol.commentlist li.review img.avatar {
    width: 48px !important;
    height: 48px !important;
    border-radius: 50% !important;
    position: relative !important;
    margin: 0 !important;
    padding: 2px !important;
    flex-shrink: 0 !important;
    display: block !important;
    top: auto !important;
    left: auto !important;
    border: 2px solid #e5e7eb;
}

/* Comment text container */
.woocommerce-Reviews ol.commentlist li.review .comment-text {
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    flex: 1;
}

/* Star Rating */
#reviews.woocommerce-Reviews ol.commentlist li.review .comment-text {
    display: flex !important;
    flex-direction: column !important;
}

#reviews.woocommerce-Reviews ol.commentlist li.review .comment-text>* {
    order: 3 !important;
    /* Ensure dynamic elements appear at the end */
}

#reviews.woocommerce-Reviews ol.commentlist li.review .star-rating {
    float: none !important;
    position: relative !important;
    margin: 5px 0 10px 0 !important;
    font-size: 15px !important;
    color: #ffb800 !important;
    width: 80px !important;
    display: block !important;
    order: 2 !important;
    /* Place after meta */
}

/* Meta info (Author & Date) */
#reviews.woocommerce-Reviews ol.commentlist li.review .comment-text .meta {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 6px 4px !important;
    /* Row gap 6px, Col gap 4px for mobile wrap */
    margin-bottom: 6px !important;
    color: #666;
    font-size: 13px;
    order: 1 !important;
    /* Place before stars */
}

#reviews.woocommerce-Reviews ol.commentlist li.review .woocommerce-review__author {
    color: #111;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
    display: inline-flex;
    align-items: center;
}

#reviews.woocommerce-Reviews ol.commentlist li.review .description {
    order: 4 !important;
    margin-top: 5px !important;
}

.woocommerce-Reviews ol.commentlist li.review .woocommerce-review__dash {
    display: none !important;
}

/* Verified Owner Badge (Tick + Tooltip) */
#reviews.woocommerce-Reviews ol.commentlist li.review .woocommerce-review__verified {
    font-size: 0 !important;
    color: transparent !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    background-color: #0b9e43;
    border-radius: 50%;
    margin-left: 6px;
    position: relative;
    cursor: help;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    background-size: 10px;
    background-position: center;
    background-repeat: no-repeat;
    font-style: normal !important;
}

#reviews.woocommerce-Reviews ol.commentlist li.review .woocommerce-review__verified:hover::after {
    content: "Đã mua hàng";
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: #fff !important;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px !important;
    white-space: nowrap;
    z-index: 100;
    pointer-events: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    font-family: inherit;
    font-weight: 500;
}

#reviews.woocommerce-Reviews ol.commentlist li.review .woocommerce-review__verified:hover::before {
    content: "";
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px 6px 0;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
    z-index: 100;
    pointer-events: none;
}

/* Verified buyer label */
.woocommerce-Reviews ol.commentlist li.review .woocommerce-review__verified {
    display: inline-flex;
    align-items: center;
    color: #2e7d32;
    background: #e8f5e9;
    width: 20px;
    height: 20px;
    justify-content: center;
    border-radius: 50%;
    font-size: 0;
    /* Hide default text */
    position: relative;
    cursor: help;
    margin-left: 8px;
}

.woocommerce-Reviews ol.commentlist li.review .woocommerce-review__verified::after {
    content: "\2713";
    /* Checkmark */
    font-size: 11px;
    font-weight: bold;
    margin-left: 0;
}

/* Custom Tooltip for Verified Buyer */
.woocommerce-Reviews ol.commentlist li.review .woocommerce-review__verified:hover::before {
    content: "Đã xác minh mua hàng tại AKIA";
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 10;
    pointer-events: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.woocommerce-Reviews ol.commentlist li.review .woocommerce-review__published-date {
    color: #888;
    font-size: 13px;
    margin-left: auto;
}

/* Review content */
.woocommerce-Reviews ol.commentlist li.review .description {
    font-size: 15px;
    line-height: 1.6;
    color: #333;
    margin-top: 10px;
}

.woocommerce-Reviews ol.commentlist li.review .description p {
    margin-bottom: 0;
}

/* Rating Summary Global Fixes */
.woocommerce-Reviews .woocommerce-Reviews-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 30px;
    color: #111;
}

@media (max-width: 768px) {
    .woocommerce-Reviews ol.commentlist li.review {
        padding: 16px;
    }

    .woocommerce-Reviews ol.commentlist li.review .comment_container {
        flex-direction: column;
        gap: 12px;
    }

    .woocommerce-Reviews ol.commentlist li.review img.avatar {
        width: 44px;
        height: 44px;
        margin-bottom: 8px;
    }

    .woocommerce-Reviews ol.commentlist li.review .woocommerce-review__published-date {
        margin-left: 0;
        width: 100%;
    }
}

/* =========================================
   FAST CHECKOUT SINGLE COLUMN LAYOUT (DMX/FPT)
   ========================================= */
.akia-checkout-single-column {
    max-width: 650px;
    margin: 0 auto;
    width: 100%;
}

/* Force WooCommerce top-level sections to stack vertically */
.akia-checkout-single-column #customer_details,
.akia-checkout-single-column #order_review_heading,
.akia-checkout-single-column #order_review {
    width: 100% !important;
    float: none !important;
    clear: both !important;
}

/* Force WooCommerce col2-set to stack vertically instead of side-by-side */
.woocommerce-checkout .col2-set .col-1,
.woocommerce-checkout .col2-set .col-2 {
    width: 100% !important;
    float: none !important;
    padding: 0 !important;
}

/* Modernize inputs to look like FPT */
.woocommerce-checkout form.checkout input.input-text,
.woocommerce-checkout form.checkout select,
.woocommerce-checkout form.checkout textarea {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px 15px;
    font-size: 15px;
    background: #fff;
    transition: border-color 0.2s;
}

.woocommerce-checkout form.checkout input.input-text:focus,
.woocommerce-checkout form.checkout select:focus,
.woocommerce-checkout form.checkout textarea:focus {
    border-color: #F59D00;
    /* FPT Brand Red */
    box-shadow: 0 0 0 1px rgba(203, 28, 34, 0.1);
}

.woocommerce-checkout form.checkout label {
    font-weight: 500;
    color: #333;
    margin-bottom: 5px;
    display: block;
    font-size: 14px;
}

/* Force wide container for checkout page to prevent squished columns */
body.woocommerce-checkout .site.grid-container,
body.woocommerce-checkout .site-content,
body.woocommerce-checkout .container,
body.woocommerce-checkout #main,
body.woocommerce-checkout #content {
    max-width: 1200px !important;
    width: 100% !important;
}

body.woocommerce-checkout .inside-article {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Failsafe to hide unwanted woo-viet fields if they bypass PHP hooks */
body.woocommerce-checkout p[id*="billing_company"],
body.woocommerce-checkout p[id*="shipping_company"],
body.woocommerce-checkout p[id*="billing_postcode"],
body.woocommerce-checkout p[id*="shipping_postcode"],
body.woocommerce-checkout p[id*="billing_country"],
body.woocommerce-checkout p[id*="shipping_country"],
body.woocommerce-checkout p[id*="billing_address_2"],
body.woocommerce-checkout p[id*="shipping_address_2"] {
    display: none !important;
}

/* Force Name field to be full width */
body.woocommerce-checkout .form-row-first,
body.woocommerce-checkout .form-row-last {
    width: 100% !important;
    float: none !important;
}

/* ========================================================================== */
/* CART & CHECKOUT PAGE UI OPTIMIZATION */
/* ========================================================================== */

/* Top Notices (Login, Coupon, Cart messages) */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
    background-color: #f8fafc !important;
    color: #0f172a !important;
    border: 1px solid #e2e8f0 !important;
    border-top: 3px solid #3b82f6 !important;
    border-radius: 8px;
    padding: 16px 20px !important;
    display: flex;
    align-items: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.woocommerce-error {
    border-top-color: #ef4444 !important;
    background-color: #fef2f2 !important;
}

.woocommerce-message {
    border-top-color: #10b981 !important;
    background-color: #f0fdf4 !important;
}

.woocommerce-message a,
.woocommerce-info a,
.woocommerce-error a {
    color: #2563eb !important;
    font-weight: 600;
}

.woocommerce-info::before,
.woocommerce-message::before,
.woocommerce-error::before {
    color: inherit !important;
    position: static !important;
    margin-right: 12px;
}

/* Cart Table Styling */
.woocommerce-cart table.shop_table {
    border: 1px solid #e0e6ef;
    border-radius: 8px;
    border-collapse: separate;
    overflow: hidden;
}

.woocommerce-cart table.shop_table th {
    background: #f8f9fa;
    color: #040c13;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 13px;
    border-bottom: 1px solid #e0e6ef;
}

.woocommerce-cart table.shop_table td {
    border-top: 1px solid #e0e6ef;
    vertical-align: middle;
}

/* Cart Totals Box */
.cart-collaterals .cart_totals {
    background: #fff;
    border: 1px solid #e0e6ef;
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.cart-collaterals .cart_totals h2 {
    font-size: 20px;
    color: #040c13;
    border-bottom: 2px solid #040c13;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.checkout-button.button.alt {
    background-color: #f59e0b !important;
    color: #fff !important;
    border-radius: 6px !important;
    padding: 15px 24px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    display: block;
    text-align: center;
    transition: background 0.2s ease;
}

.checkout-button.button.alt:hover {
    background-color: #e08e09 !important;
}

/* Checkout Form Inputs */
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea {
    border: 1px solid #e0e6ef;
    border-radius: 6px;
    padding: 12px 14px;
    font-size: 14px;
    color: #040c13;
    background-color: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus {
    border-color: #040c13;
    box-shadow: 0 0 0 1px #040c13;
    outline: none;
}

.woocommerce form .form-row label {
    font-weight: 600;
    color: #040c13;
    font-size: 14px;
    margin-bottom: 6px;
    display: block;
}

/* ---- DMX STYLE CHECKOUT REFACTOR ---- */
body.woocommerce-checkout {
    background-color: #f1f1f1 !important;
}

/* Base Block Styling */
.woocommerce-checkout .col2-set .col-1,
.woocommerce-checkout .col2-set .col-2,
.woocommerce-checkout .akia-checkout-block {
    background: #fff;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.woocommerce-checkout #order_review_heading {
    background: #fff;
    border-radius: 8px 8px 0 0;
    padding: 24px 24px 0 24px;
    margin-bottom: 0;
    margin-top: 0;
    font-size: 18px;
    color: #040c13;
    text-transform: uppercase;
    border-bottom: none;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.woocommerce-checkout #order_review {
    background: #fff;
    border-radius: 0 0 8px 8px;
    padding: 0 24px 24px 24px;
    margin-bottom: 20px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

/* Block Headings */
.woocommerce-checkout .woocommerce-billing-fields h3,
.woocommerce-checkout .akia-checkout-block h3 {
    margin-top: 0;
    font-size: 18px;
    color: #040c13;
    text-transform: uppercase;
    border-bottom: 1px solid #e0e6ef;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

/* Hide WooCommerce "(tuỳ chọn)" text in Invoice Request Box */
#akia-invoice-request-block .optional {
    display: none !important;
}

/* Order Review Table (Compact AKIA Style) */
#order_review table.shop_table {
    border: none;
    border-radius: 0;
    border-collapse: separate;
    margin-bottom: 20px;
    width: 100%;
    font-size: 14px;
    /* Default smaller font for the table */
}

#order_review table.shop_table th {
    background: transparent;
    color: #040c13;
    border-bottom: 2px solid #e0e6ef;
    padding-bottom: 12px;
    font-size: 14px;
}

#order_review table.shop_table td {
    border-top: 1px dashed #e0e6ef;
    padding: 12px 0;
    /* Reduced padding from 15px */
    vertical-align: middle;
}

#order_review table.shop_table tbody td.product-name {
    font-size: 13px;
    /* Smaller product names */
    color: #333;
    line-height: 1.4;
    padding-right: 15px;
    /* Prevent text hugging the price column */
}

/* Image & Text Flex Layout for Order Review Table */
.akia-checkout-item-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.akia-checkout-item-image {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #e0e6ef;
}

.akia-checkout-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.akia-checkout-item-details {
    flex-grow: 1;
}

#order_review table.shop_table tbody td.product-total {
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
    /* Prevent price wrapping */
    text-align: right;
}

#order_review table.shop_table tfoot th {
    padding-top: 12px;
    padding-bottom: 12px;
    font-weight: 600;
}

#order_review table.shop_table tfoot td {
    padding-top: 12px;
    padding-bottom: 12px;
    text-align: right;
    font-weight: 600;
}

/* Shipping Row Optimization */
#order_review table.shop_table tr.shipping td {
    font-size: 13px;
    line-height: 1.4;
    color: #555;
}

#order_review table.shop_table tr.shipping ul#shipping_method {
    margin: 0;
    padding: 0;
    list-style: none;
    text-align: right;
}

#order_review table.shop_table tr.shipping ul#shipping_method li {
    margin-bottom: 4px;
}

#order_review table.shop_table tr.order-total td {
    color: #FFD60D;
    /* Bold yellow for total price like AKIA */
    font-size: 18px;
    font-weight: 700;
}

/* Payment Methods Box (Compact AKIA Style) - High Specificity */
#add_payment_method #payment,
.woocommerce-cart #payment,
.woocommerce-checkout #payment {
    background: transparent !important;
    border-radius: 0 !important;
    border: none !important;
    padding: 0 !important;
    margin: 20px 0 0 0 !important;
    /* Ensure some spacing from the table */
    width: 100% !important;
    max-width: 100% !important;
    display: block !important;
    clear: both !important;
    float: none !important;
    box-sizing: border-box !important;
}

#add_payment_method #payment ul.payment_methods,
.woocommerce-cart #payment ul.payment_methods,
.woocommerce-checkout #payment ul.payment_methods {
    border-bottom: 1px solid #e0e6ef !important;
    padding: 0 0 15px 0 !important;
    margin: 0 0 15px 0 !important;
    list-style: none outside !important;
    width: 100% !important;
    display: block !important;
    clear: both !important;
    float: none !important;
    box-sizing: border-box !important;
}

/* Individual Payment Method Block */
#add_payment_method #payment ul.payment_methods li.wc_payment_method,
.woocommerce-cart #payment ul.payment_methods li.wc_payment_method,
.woocommerce-checkout #payment ul.payment_methods li.wc_payment_method {
    margin-bottom: 12px !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    transition: all 0.2s ease;
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
}

#add_payment_method #payment ul.payment_methods li.wc_payment_method:hover,
.woocommerce-cart #payment ul.payment_methods li.wc_payment_method:hover,
.woocommerce-checkout #payment ul.payment_methods li.wc_payment_method:hover {
    background: transparent !important;
}

/* Base Flexbox Layout for Label to handle radio, text, and logo */
#add_payment_method #payment ul.payment_methods li.wc_payment_method>label,
.woocommerce-cart #payment ul.payment_methods li.wc_payment_method>label,
.woocommerce-checkout #payment ul.payment_methods li.wc_payment_method>label {
    display: flex !important;
    align-items: center !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    color: #333 !important;
    background: transparent !important;
    cursor: pointer;
    line-height: 1.4 !important;
    flex: 1 !important;
    margin: 0 !important;
    padding: 8px 0 !important;
    box-sizing: border-box !important;
}

/* Fix line separation between radio and label */
#add_payment_method #payment ul.payment_methods li.wc_payment_method>input[type="radio"],
.woocommerce-cart #payment ul.payment_methods li.wc_payment_method>input[type="radio"],
.woocommerce-checkout #payment ul.payment_methods li.wc_payment_method>input[type="radio"] {
    margin: 0 10px 0 0 !important;
    accent-color: #f59e0b !important;
    width: 16px !important;
    flex-basis: 16px !important;
    /* Force width within flex */
    flex-shrink: 0 !important;
    /* Prevent squishing on mobile */
    height: 16px !important;
    cursor: pointer;
    vertical-align: top !important;
    /* Reset */
    position: static !important;
    /* Reset */
    float: none !important;
    /* Reset */
    display: inline-block !important;
    /* Ensure native radio is visible */
}

/* Hide WooCommerce's duplicate pseudo-element radio button */
#add_payment_method #payment ul.payment_methods li.wc_payment_method>input[type="radio"]:after,
#add_payment_method #payment ul.payment_methods li.wc_payment_method>input[type="radio"]:before,
.woocommerce-cart #payment ul.payment_methods li.wc_payment_method>input[type="radio"]:after,
.woocommerce-cart #payment ul.payment_methods li.wc_payment_method>input[type="radio"]:before,
.woocommerce-checkout #payment ul.payment_methods li.wc_payment_method>input[type="radio"]:after,
.woocommerce-checkout #payment ul.payment_methods li.wc_payment_method>input[type="radio"]:before,
#add_payment_method #payment ul.payment_methods li.wc_payment_method>label::before,
.woocommerce-cart #payment ul.payment_methods li.wc_payment_method>label::before,
.woocommerce-checkout #payment ul.payment_methods li.wc_payment_method>label::before {
    display: none !important;
    content: none !important;
}

/* Push image to the right using Flexbox gap/margin-auto trick */
#add_payment_method #payment ul.payment_methods li.wc_payment_method>label img,
.woocommerce-cart #payment ul.payment_methods li.wc_payment_method>label img,
.woocommerce-checkout #payment ul.payment_methods li.wc_payment_method>label img {
    float: none !important;
    /* Remove legacy float */
    margin-left: auto !important;
    /* Push to the right edge */
    margin-right: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    max-height: 20px !important;
    display: block !important;
}

/* Ensure Logo Wrapper is pushed to the right if WooCommerce wraps the image */
#add_payment_method #payment ul.payment_methods li.wc_payment_method>label .about_paypal,
.woocommerce-cart #payment ul.payment_methods li.wc_payment_method>label .about_paypal,
.woocommerce-checkout #payment ul.payment_methods li.wc_payment_method>label .about_paypal {
    margin-left: auto !important;
    font-size: 12px !important;
}

/* Instruction Drawer */
#add_payment_method #payment div.payment_box,
.woocommerce-cart #payment div.payment_box,
.woocommerce-checkout #payment div.payment_box {
    background-color: transparent !important;
    border: none !important;
    color: #666 !important;
    box-shadow: none !important;
    padding: 0 0 10px 26px !important;
    /* Indent to match radio width */
    margin-top: 0 !important;
    font-size: 13px !important;
    line-height: 1.5 !important;
    width: 100% !important;
    flex-basis: 100% !important;
    clear: both !important;
    display: none;
}

#add_payment_method #payment div.payment_box::before,
.woocommerce-cart #payment div.payment_box::before,
.woocommerce-checkout #payment div.payment_box::before {
    display: none !important;
}

/* The MUA NGAY (Place Order) Button */
body.woocommerce-checkout #payment #place_order,
body.woocommerce-page #payment #place_order,
button#place_order {
    background-color: #f7941e !important;
    color: #fff !important;
    font-size: 18px !important;
    font-weight: bold !important;
    text-transform: uppercase;
    padding: 16px 30px !important;
    border-radius: 8px !important;
    width: 100%;
    margin-top: 20px;
    transition: background 0.2s ease;
    border: none !important;
    opacity: 1 !important;
}

body.woocommerce-checkout #payment #place_order:hover,
body.woocommerce-page #payment #place_order:hover,
button#place_order:hover {
    background-color: #e07a09 !important;
}

body.woocommerce-checkout #payment #place_order:disabled,
body.woocommerce-page #payment #place_order:disabled,
button#place_order:disabled,
button#place_order.disabled {
    background-color: #e0e6ef !important;
    /* disabled light grey */
    color: #666 !important;
    cursor: not-allowed !important;
}

/* --- Breadcrumbs: Clean & Minimal --- */
.woocommerce-breadcrumb,
.rank-math-breadcrumb {
    padding: 8px 0;
    margin-bottom: 16px !important;
    background: transparent;
    border-radius: 0;
    font-size: 12px !important;
    color: #999;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    width: 100%;
    letter-spacing: 0.01em;
}

.woocommerce-breadcrumb a,
.rank-math-breadcrumb a {
    color: #555;
    text-decoration: none;
    font-weight: 500;
    font-size: 12px !important;
    transition: color 0.15s ease;
}

.woocommerce-breadcrumb a:hover,
.rank-math-breadcrumb a:hover {
    color: #104c87;
    text-decoration: underline;
}

/* Center Gallery Content to fix "skewed/lệch" appearance for products with no specs block */
.woocommerce-product-gallery .woocommerce-product-gallery__wrapper {
    display: flex !important;
    justify-content: center !important;
    width: 100% !important;
    align-items: flex-start !important;
}

.woocommerce-product-gallery__image {
    width: 100%;
    text-align: center;
}

.woocommerce-product-gallery__image img {
    margin: 0 auto;
    display: inline-block !important;
}

/* Center Thumbnails Row */
.woocommerce-product-gallery .flex-control-thumbs {
    display: flex !important;
    justify-content: center !important;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px !important;
    padding: 0 !important;
}

.woocommerce-product-gallery .flex-control-thumbs li {
    float: none !important;
    width: auto !important;
    max-width: 80px;
}

.woocommerce-product-gallery .flex-control-thumbs li img {
    border-radius: 6px;
    border: 2px solid transparent;
}

.woocommerce-product-gallery .flex-control-thumbs li img.flex-active {
    border-color: #104c87;
}

/* -------------------------------------------------------------
   WOOCOMMERCE REVIEW FORM CUSTOMIZATION (DMX STYLE) & GLOBAL FIXES
   ------------------------------------------------------------- */
html,
body {
    overflow-x: hidden;
    max-width: 100vw;
}

#commentform {
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

#commentform label {
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
    display: inline-block;
    font-size: 14px;
}

#commentform textarea,
#commentform input[type="text"],
#commentform input[type="email"] {
    width: 100% !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 6px !important;
    padding: 12px 15px !important;
    font-size: 14px !important;
    font-family: inherit;
    transition: all 0.3s ease;
    background: #fff !important;
    color: #333 !important;
}

#commentform textarea:focus,
#commentform input:focus {
    border-color: #288ad6 !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(40, 138, 214, 0.1) !important;
}

/* Nút Submit của Form Đánh Giá */
#commentform input#submit,
#commentform .submit,
.woocommerce-verification-required {
    background: #288ad6 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 6px !important;
    padding: 12px 24px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: background 0.3s ease !important;
    align-self: flex-start;
    display: inline-block;
    text-align: center;
    box-shadow: 0 4px 6px rgba(40, 138, 214, 0.2) !important;
}

#commentform input#submit:hover,
#commentform .submit:hover {
    background: #104c87 !important;
    box-shadow: 0 6px 12px rgba(40, 138, 214, 0.3) !important;
}

/* Text điều khoản */
#commentform .comment-notes,
#commentform .comment-form-cookies-consent label {
    font-size: 13px;
    color: #666;
    font-weight: normal;
}

/* -------------------------------------------------------------
   WOOCOMMERCE REVIEW MODAL - CLOSE BUTTON FIX
   ------------------------------------------------------------- */
.akia-review-modal {
    position: relative;
    /* Ensure absolute positioning works for close button */
}

button.akia-review-close {
    position: absolute !important;
    top: 15px !important;
    right: 15px !important;
    background: transparent !important;
    color: #666 !important;
    border: none !important;
    font-size: 28px !important;
    line-height: 1 !important;
    padding: 0 !important;
    width: 30px !important;
    height: 30px !important;
    cursor: pointer !important;
    z-index: 100 !important;
    box-shadow: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: color 0.2s ease !important;
}

button.akia-review-close:hover {
    color: #d70018 !important;
    /* Đỏ highlight khi hover giống DMX/FPT */
    background: transparent !important;
}

/* --- DMX BLOG ARCHIVE LAYOUT (3-Column Grid) --- */
/* Target only standard blog/category archives, not WooCommerce */
body.blog .site-main,
body.category .site-main,
body.archive:not(.post-type-archive-product):not(.tax-product_cat) .site-main {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    grid-gap: 30px !important;
    align-items: stretch !important;
}

/* Ensure the page header (Archive Title) spans all columns */
body.blog .site-main .page-header,
body.category .site-main .page-header,
body.archive:not(.post-type-archive-product):not(.tax-product_cat) .site-main .page-header {
    grid-column: 1 / -1;
    margin-bottom: 20px;
    border-bottom: 2px solid #ed1b24;
    padding-bottom: 10px;
}

/* Pagination spans all columns */
body.blog .site-main .nav-links,
body.category .site-main .nav-links,
body.archive:not(.post-type-archive-product):not(.tax-product_cat) .site-main .nav-links {
    grid-column: 1 / -1;
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

/* Article Card Styling */
body.blog .site-main .post,
body.category .site-main .post,
body.archive:not(.post-type-archive-product):not(.tax-product_cat) .site-main .post {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid #f2f2f2;
    margin-bottom: 0 !important;
    padding: 0 !important;
}

body.blog .site-main .post:hover,
body.category .site-main .post:hover,
body.archive:not(.post-type-archive-product):not(.tax-product_cat) .site-main .post:hover {
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    transform: translateY(-5px);
}

body.blog .site-main .post .inside-article,
body.category .site-main .post .inside-article,
body.archive:not(.post-type-archive-product):not(.tax-product_cat) .site-main .post .inside-article {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 0 !important;
}

/* Post Image */
body.blog .site-main .post .post-image,
body.category .site-main .post .post-image,
body.archive:not(.post-type-archive-product):not(.tax-product_cat) .site-main .post .post-image {
    margin: 0 !important;
    overflow: hidden;
}

body.blog .site-main .post .post-image img,
body.category .site-main .post .post-image img,
body.archive:not(.post-type-archive-product):not(.tax-product_cat) .site-main .post .post-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

body.blog .site-main .post:hover .post-image img,
body.category .site-main .post:hover .post-image img,
body.archive:not(.post-type-archive-product):not(.tax-product_cat) .site-main .post:hover .post-image img {
    transform: scale(1.05);
}

/* Post Content Area */
body.blog .site-main .post .entry-header,
body.blog .site-main .post .entry-summary,
body.blog .site-main .post .entry-meta,
body.category .site-main .post .entry-header,
body.category .site-main .post .entry-summary,
body.category .site-main .post .entry-meta,
body.archive:not(.post-type-archive-product):not(.tax-product_cat) .site-main .post .entry-header,
body.archive:not(.post-type-archive-product):not(.tax-product_cat) .site-main .post .entry-summary,
body.archive:not(.post-type-archive-product):not(.tax-product_cat) .site-main .post .entry-meta {
    padding: 0 15px;
}

body.blog .site-main .post .entry-header,
body.category .site-main .post .entry-header,
body.archive:not(.post-type-archive-product):not(.tax-product_cat) .site-main .post .entry-header {
    margin-top: 15px;
    margin-bottom: 10px;
}

body.blog .site-main .post .entry-title,
body.category .site-main .post .entry-title,
body.archive:not(.post-type-archive-product):not(.tax-product_cat) .site-main .post .entry-title {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
}

body.blog .site-main .post .entry-title a,
body.category .site-main .post .entry-title a,
body.archive:not(.post-type-archive-product):not(.tax-product_cat) .site-main .post .entry-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

body.blog .site-main .post:hover .entry-title a,
body.category .site-main .post:hover .entry-title a,
body.archive:not(.post-type-archive-product):not(.tax-product_cat) .site-main .post:hover .entry-title a {
    color: #288ad6;
}

/* Excerpt/Summary */
body.blog .site-main .post .entry-summary,
body.category .site-main .post .entry-summary,
body.archive:not(.post-type-archive-product):not(.tax-product_cat) .site-main .post .entry-summary {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

/* Meta Footer */
body.blog .site-main .post .entry-meta,
body.category .site-main .post .entry-meta,
body.archive:not(.post-type-archive-product):not(.tax-product_cat) .site-main .post .entry-meta {
    margin-top: auto;
    padding-bottom: 15px;
    font-size: 12px;
    color: #999;
    border-top: 1px dashed #eee;
    padding-top: 10px;
    margin-left: 15px;
    margin-right: 15px;
}

/* --- MOBILE RESPONSIVE BLOG --- */
@media (max-width: 1024px) {
    body.blog .site-main,
    body.category .site-main,
    body.archive:not(.post-type-archive-product):not(.tax-product_cat) .site-main {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 768px) {
    body.blog .site-main,
    body.category .site-main,
    body.archive:not(.post-type-archive-product):not(.tax-product_cat) .site-main {
        grid-template-columns: 1fr !important;
        grid-gap: 20px !important;
    }
    body.blog .site-main .post .post-image img,
    body.category .site-main .post .post-image img,
    body.archive:not(.post-type-archive-product):not(.tax-product_cat) .site-main .post .post-image img {
        height: auto;
        aspect-ratio: 16/9;
    }
}

/* Force 100% Full Width & Center Content for Blog Archives */
body.blog .content-area,
body.category .content-area,
body.archive:not(.post-type-archive-product):not(.tax-product_cat) .content-area {
    width: 100% !important;
    float: none !important;
    margin: 0 auto !important;
}

body.blog #right-sidebar,
body.category #right-sidebar,
body.archive:not(.post-type-archive-product):not(.tax-product_cat) #right-sidebar {
    display: none !important;
}

/* Fix Global Container Alignment */
.grid-container, .site-content {
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Center Pagination in Blog Archive */
.nav-links {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 30px;
}
.nav-links .page-numbers {
    margin: 0 5px;
}

/* Force Pagination Center */
.navigation.pagination, .nav-links {
    display: flex !important;
    justify-content: center !important;
    width: 100% !important;
    margin-top: 30px !important;
}

/* ==========================================================================
   HOMEPAGE DMX STYLE SKELETON (Phase 6.8)
   ========================================================================== */
.akia-home-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-bottom: 40px;
}

/* 1. Hero Grid (65% / 35%) */
.akia-hero-section {
    width: 100%;
    margin-top: 15px;
}
.akia-hero-grid {
    display: flex;
    gap: 10px;
}
.akia-hero-main {
    flex: 0 0 calc(66.66% - 5px);
    max-width: calc(66.66% - 5px);
}
.akia-hero-side {
    flex: 0 0 calc(33.33% - 5px);
    max-width: calc(33.33% - 5px);
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.akia-hero-main img, .akia-hero-side img {
    border-radius: 12px;
    width: 100%;
    height: 100%;
    object-fit: cover;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}
.akia-hero-main a {
    display: block;
    height: 100%;
}
.akia-hero-side a {
    display: block;
    height: calc(50% - 5px);
}

/* 2. Quick Nav Grid */
.akia-quick-nav {
    background: #fff;
    border-radius: 12px;
    padding: 20px 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.akia-nav-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 15px;
    text-align: center;
}
.akia-nav-grid .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: #333;
    font-size: 13px;
    font-weight: 500;
    transition: transform 0.2s;
}
.akia-nav-grid .nav-item:hover {
    transform: translateY(-3px);
    color: #104C87;
}
.akia-nav-grid .icon-circle {
    width: 45px;
    height: 45px;
    border-radius: 15px;
    background: #f5f5f7;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: background 0.2s;
}
.akia-nav-grid .nav-item:hover .icon-circle {
    background: #e8ebf0;
}

/* 3. Flash Sale Box */
.akia-flash-sale-box {
    background: linear-gradient(180deg, #D70018 0%, #aa0013 100%);
    border-radius: 12px;
    padding: 15px 20px 20px;
}
.flash-sale-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    color: #fff;
}
.flash-title {
    font-size: 24px !important;
    font-weight: 800;
    margin: 0 !important;
    color: #fff !important;
    text-transform: uppercase;
    font-style: italic;
    text-shadow: 2px 2px 0px rgba(0,0,0,0.2);
}
.flash-countdown {
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}
.flash-countdown span {
    background: #000;
    color: #fff;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 14px;
}

/* 4. Category Box standard */
.akia-category-box {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}
.cat-box-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 25px;
    border-bottom: 2px solid #f1f1f1;
    padding-bottom: 15px;
}
.cat-box-header .cat-title {
    font-size: 22px !important;
    font-weight: 800;
    margin: 0 !important;
    color: #104C87 !important;
    text-transform: uppercase;
}
.cat-box-header .cat-title a {
    color: inherit;
}
.cat-links {
    display: flex;
    gap: 15px;
    font-size: 14px;
    font-weight: 600;
}
.cat-links a {
    color: #666;
}
.cat-links a:hover {
    color: #0b3762;
    text-decoration: underline;
}

/* Force container width to 1200px strictly for frontpage */
.page-id-13992.fluid-header .site.grid-container {
    max-width: 1200px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .akia-hero-grid {
        flex-direction: column;
    }
    .akia-hero-main, .akia-hero-side {
        flex: 0 0 100%;
        max-width: 100%;
        height: auto;
    }
    .akia-hero-side {
        flex-direction: row;
    }
    .akia-hero-side a {
        flex: 0 0 calc(50% - 5px);
    }
    .flash-sale-header, .cat-box-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

/* Force Global Alignment Fix for DMX Theme */
body .grid-container {
    max-width: 1200px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* ========================================================
   STICKY BOTTOM ACTION BAR — Mobile Product Page
   ======================================================== */
#akia-sticky-top-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9000;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.12);
    padding: 10px 12px;
    padding-bottom: calc(10px + env(safe-area-inset-bottom));
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

#akia-sticky-top-bar.is-visible {
    transform: translateY(0);
}

.akia-stb-container {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 600px;
    margin: 0 auto;
}

/* Left: product info (hidden on small mobile to save space) */
.akia-stb-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.akia-stb-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 6px;
    border: 1px solid #eee;
    flex-shrink: 0;
    background: #fafafa;
}

.akia-stb-info {
    min-width: 0;
    flex: 1;
    overflow: hidden;
}

.akia-stb-title {
    font-size: 12px !important;
    font-weight: 600 !important;
    color: #1a1a1a !important;
    margin: 0 0 2px 0 !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3 !important;
}

.akia-stb-price {
    font-size: 13px;
    font-weight: 700;
    color: #D70018;
    line-height: 1;
}

.akia-stb-price .price {
    font-size: 14px !important;
    font-weight: 800 !important;
    color: #D70018 !important;
}

.akia-stb-price del,
.akia-stb-price del .amount,
.akia-stb-price del bdi {
    display: none !important;
}

/* Right: action buttons */
.akia-stb-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

/* "Tư vấn" call button */
.akia-btn-stb-contact {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    color: #374151 !important;
    text-decoration: none !important;
    padding: 6px 8px;
    border-radius: 10px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    min-width: 52px;
    transition: all 0.2s;
}

.akia-btn-stb-contact svg {
    width: 20px;
    height: 20px;
    stroke: #374151;
}

.akia-btn-stb-contact span {
    font-size: 11px;
    font-weight: 600;
    color: #374151;
    white-space: nowrap;
}

.akia-btn-stb-contact:active {
    background: #e2e8f0;
}

/* "MUA NGAY" / "Chọn loại" CTA buy button */
.akia-btn-stb-buy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #FFD000, #F59D00) !important;
    color: #104C87 !important;
    font-weight: 800 !important;
    font-size: 15px !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0 20px !important;
    height: 46px !important;
    border-radius: 10px !important;
    border: none !important;
    cursor: pointer;
    text-decoration: none !important;
    white-space: nowrap;
    box-shadow: 0 3px 10px rgba(245, 157, 0, 0.4);
    transition: all 0.2s;
}

.akia-btn-stb-buy:hover,
.akia-btn-stb-buy:focus {
    background: linear-gradient(135deg, #FFCA00, #E08C00) !important;
    box-shadow: 0 5px 15px rgba(245, 157, 0, 0.5);
    transform: translateY(-1px);
}

.akia-btn-stb-buy:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(245, 157, 0, 0.3);
}

/* Out of stock button */
.akia-btn-stb-oos {
    background: #f1f1f1 !important;
    color: #999 !important;
    font-size: 15px !important;
    padding: 0 20px !important;
    height: 46px !important;
    border-radius: 10px !important;
    border: none;
    cursor: not-allowed;
}

/* Desktop: hide sticky bar entirely (product has buy buttons visible) */
@media (min-width: 769px) {
    #akia-sticky-top-bar {
        display: none !important;
    }
}

/* Mobile: add bottom padding to article so sticky bar doesn't cover content */
@media (max-width: 768px) {
    body.single-product .site-main,
    body.single-product .inside-article {
        padding-bottom: 80px !important;
    }

    /* On very small screens, hide the product info on left to give more room for buttons */
    @media (max-width: 360px) {
        .akia-stb-left {
            display: none;
        }

        .akia-stb-right {
            width: 100%;
            justify-content: center;
        }

        .akia-btn-stb-buy {
            flex: 1;
        }
    }
}
.akia-home-wrapper {
    max-width: 1200px !important;
    margin: 0 auto !important;
    width: 100%;
}

/* =========================================================
   MOBILE COMPACT TYPOGRAPHY (≤ 768px) — Điện Máy Xanh style
   Smaller font sizes, tighter spacing to show more content
   ========================================================= */
@media (max-width: 768px) {

    /* Base body font */
    body.single-product {
        font-size: 13px !important;
        line-height: 1.45 !important;
    }

    /* Product title: compact like DMX */
    body.single-product.woocommerce div.product h1.product_title.entry-title,
    .akia-product-header h1.product_title {
        font-size: 14px !important;
        line-height: 1.3 !important;
        font-weight: 600 !important;
    }

    /* Price: keep prominent but slightly smaller */
    .akia-price-box .akia-price-content .price {
        font-size: 20px !important;
    }

    .akia-price-box .akia-price-content .price del {
        font-size: 12px !important;
    }

    /* Policy box text */
    .akia-policy-title {
        font-size: 12px !important;
        font-weight: 600 !important;
    }

    .akia-policy-desc {
        font-size: 11px !important;
        line-height: 1.35 !important;
    }

    /* MUA NGAY button - slightly smaller text to fit edge-to-edge */
    .akia-btn-buy-now strong {
        font-size: 15px !important;
    }

    .akia-btn-buy-now span {
        font-size: 11px !important;
    }

    /* TRẢ GÓP buttons */
    .akia-btn-installment strong {
        font-size: 12px !important;
    }

    .akia-btn-installment span {
        font-size: 10px !important;
    }

    /* Description / article text */
    .akia-2col-desc-wrapper,
    .entry-content p,
    .woocommerce-tabs p {
        font-size: 13px !important;
        line-height: 1.5 !important;
    }

    /* Promo list */
    .akia-promo-content li,
    .akia-promo-content p {
        font-size: 12px !important;
        line-height: 1.4 !important;
    }

    /* Meta row (SKU, rating) */
    .akia-product-meta-row {
        font-size: 11px !important;
    }

    /* Breadcrumb stays 11px */
    .woocommerce-breadcrumb,
    .rank-math-breadcrumb {
        font-size: 11px !important;
    }
}

/* =========================================================
   MOBILE GAP FIX: Remove space between header & breadcrumbs
   ========================================================= */
@media (max-width: 768px) {

    /* Remove GeneratePress default top padding on single product */
    body.single-product #content.site-content,
    body.single-product .site-content,
    body.single-product #primary.content-area,
    body.single-product .content-area {
        padding-top: 0 !important;
        margin-top: 0 !important;
    }

    /* Also remove any padding-bottom from header area */
    body.single-product .site-header,
    body.single-product .inside-header {
        margin-bottom: 0 !important;
        border-bottom: 1px solid #e8e8e8 !important;
    }

    /* Breadcrumb - flush right under header, no extra top margin */
    body.single-product .woocommerce-breadcrumb,
    body.single-product .rank-math-breadcrumb {
        margin-top: 0 !important;
    }
}

/* CRITICAL: Override GP #content padding-top: 40px on mobile product page */
@media (max-width: 768px) {
    body.single-product #content,
    body.single-product #content.site-content,
    body.single-product #primary,
    body.single-product #main {
        padding-top: 0 !important;
        margin-top: 0 !important;
    }
}

/* ==========================================================================
   STATIC PAGES REDESIGN (PHASE 8 - Tailwind UI Inspired)
   ========================================================================== */

/* --- 1. Fix Duplications --- */
/* Hide the default GeneratePress title and RankMath breadcrumbs in the content area 
   since we already output them in our custom global hero banner. */
body.has-akia-hero .site-content .entry-header,
body.has-akia-hero .site-content .rank-math-breadcrumb {
    display: none !important;
}

/* --- 2. Global Hero Banner --- */
.akia-global-page-hero {
    background: linear-gradient(135deg, #0b2e59 0%, #104c87 100%);
    padding: 60px 20px;
    text-align: center;
    color: #ffffff;
    margin-bottom: 40px;
}

.akia-global-page-hero h1 {
    font-size: 36px;
    font-weight: 700;
    margin: 0 0 16px 0;
    color: #fff;
    line-height: 1.2;
}

.akia-global-page-hero .akia-hero-breadcrumbs p {
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

.akia-global-page-hero .akia-hero-breadcrumbs a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.2s ease;
}

.akia-global-page-hero .akia-hero-breadcrumbs a:hover {
    color: #fff;
}

.akia-global-page-hero .akia-hero-breadcrumbs .separator {
    margin: 0 8px;
    opacity: 0.6;
}

.akia-global-page-hero .akia-hero-breadcrumbs .last {
    color: #fff;
    font-weight: 500;
}

/* --- 3. Tailwind UI Inspired Contact Page --- */
.akia-contact-v2-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 60px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

/* Left Column: Info */
.akia-contact-v2-info {
    padding-right: 20px;
}

.akia-contact-v2-info h2 {
    font-size: 30px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 16px;
    line-height: 1.3;
}

.akia-contact-subtitle {
    font-size: 16px;
    color: #4b5563;
    margin-bottom: 40px;
    line-height: 1.6;
}

.akia-contact-v2-cards {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 40px;
}

.akia-contact-v2-card {
    display: flex;
    align-items: flex-start;
}

.akia-contact-v2-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background-color: #f3f4f6;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #104c87;
    margin-right: 20px;
}

.akia-contact-v2-icon svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.akia-contact-v2-content h3 {
    margin: 0 0 4px 0;
    font-size: 16px;
    font-weight: 600;
    color: #111827;
}

.akia-contact-v2-content p, 
.akia-contact-v2-content a {
    margin: 0;
    font-size: 15px;
    color: #4b5563;
    line-height: 1.5;
    text-decoration: none;
}

.akia-contact-v2-content a:hover {
    color: #104c87;
    text-decoration: underline;
}

/* Map */
.akia-contact-v2-map {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    height: 300px;
}

.akia-contact-v2-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

/* Right Column: Premium Form Card */
.akia-contact-v2-form-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border: 1px solid #f3f4f6;
}

.akia-contact-v2-form-card .wpcf7-form-control-wrap {
    display: block;
    margin-bottom: 20px;
}

.akia-contact-v2-form-card input[type="text"],
.akia-contact-v2-form-card input[type="email"],
.akia-contact-v2-form-card input[type="tel"],
.akia-contact-v2-form-card textarea {
    width: 100%;
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 14px 16px;
    font-size: 15px;
    color: #111827;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05) inset;
}

.akia-contact-v2-form-card input[type="text"]:focus,
.akia-contact-v2-form-card input[type="email"]:focus,
.akia-contact-v2-form-card input[type="tel"]:focus,
.akia-contact-v2-form-card textarea:focus {
    background-color: #fff;
    border-color: #3b82f6;
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.akia-contact-v2-form-card textarea {
    min-height: 120px;
    resize: vertical;
}

.akia-contact-v2-form-card .wpcf7-submit {
    width: 100%;
    background: linear-gradient(135deg, #104c87 0%, #1e3a8a 100%);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 16px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 6px -1px rgba(16, 76, 135, 0.4);
    margin-top: 8px;
}

.akia-contact-v2-form-card .wpcf7-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(16, 76, 135, 0.4);
}

.akia-contact-v2-form-card p {
    margin: 0;
}

/* Response messaging */
.wpcf7-response-output {
    border-radius: 8px !important;
    font-size: 14px;
    margin-top: 20px !important;
    border-width: 1px !important;
}

/* Mobile Responsiveness */
@media (max-width: 991px) {
    .akia-contact-v2-container {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 0 16px 40px;
    }
    
    .akia-contact-v2-info {
        padding-right: 0;
    }
    
    .akia-contact-v2-form-card {
        padding: 24px;
        border-radius: 20px;
    }
}

/* --- 4. Tailwind Prose Inspired Policy Pages --- */
.akia-policy-v2-container {
    max-width: 65ch; /* Optimal reading width */
    margin: 0 auto;
    padding: 0 20px 60px;
}

.akia-policy-v2-prose {
    font-size: 16px;
    line-height: 1.75;
    color: #374151; /* text-gray-700 */
}

.akia-policy-v2-prose h2 {
    color: #111827; /* text-gray-900 */
    font-weight: 700;
    font-size: 24px;
    margin-top: 2em;
    margin-bottom: 1em;
    line-height: 1.3333333;
}

.akia-policy-v2-prose h3 {
    color: #111827;
    font-weight: 600;
    font-size: 20px;
    margin-top: 1.6em;
    margin-bottom: 0.6em;
    line-height: 1.5;
}

.akia-policy-v2-prose p {
    margin-top: 1.25em;
    margin-bottom: 1.25em;
}

.akia-policy-v2-prose a {
    color: #104c87;
    text-decoration: underline;
    font-weight: 500;
}

.akia-policy-v2-prose strong {
    color: #111827;
    font-weight: 600;
}

.akia-policy-v2-prose ul {
    margin-top: 1.25em;
    margin-bottom: 1.25em;
    padding-left: 1.625em;
    list-style-type: disc;
}

.akia-policy-v2-prose li {
    margin-top: 0.5em;
    margin-bottom: 0.5em;
}

.akia-policy-v2-prose li::marker {
    color: #d1d5db; /* text-gray-300 */
}

@media (max-width: 768px) {
    .akia-policy-v2-prose {
        font-size: 15px;
    }
    .akia-policy-v2-prose h2 {
        font-size: 20px;
    }
}

/* ========================================================
   STATIC PAGES: Global Hero, About, Contact & Policies
   ======================================================== */

.has-akia-hero .entry-header {
    display: none !important;
}

/* 1. Global Page Hero */
.akia-global-page-hero {
    background: linear-gradient(135deg, #0b2e59 0%, #104c87 100%);
    padding: 60px 20px 40px;
    text-align: center;
    color: #fff;
    margin-bottom: 40px;
}
.akia-global-page-hero .akia-hero-title {
    color: #fff;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 15px;
    text-transform: uppercase;
}
.akia-hero-breadcrumbs {
    font-size: 14px;
    opacity: 0.9;
}
.akia-hero-breadcrumbs p {
    color: #ffffff;    
}
.akia-hero-breadcrumbs a {
    color: #ffd700;
    text-decoration: none;
}
.akia-hero-breadcrumbs a:hover {
    text-decoration: underline;
}

/* 2. Static Page Content Container (About, Contact, Policy) */
.akia-static-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 60px;
}

/* 3. About Page (`/gioi-thieu/`) specific */
.page-template-default .wp-block-image img,
.page-template-default .wp-block-gallery img {
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
    transition: transform 0.3s ease;
}
.page-template-default .wp-block-image img:hover,
.page-template-default .wp-block-gallery img:hover {
    transform: translateY(-2px);
}
.page-template-default h2.wp-block-heading {
    text-align: center;
    position: relative;
    padding-bottom: 15px;
    margin-top: 60px;
    margin-bottom: 30px;
    font-weight: 800;
    color: #0b2e59;
}
.page-template-default h2.wp-block-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: #0b2e59;
    border-radius: 2px;
}

/* 4. Policy Pages Wrapper Box */
.akia-policy-box {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.04);
}
.akia-policy-box h2, .akia-policy-box h3 {
    color: #0b2e59;
    margin-top: 1.5em;
}
.akia-policy-box ul {
    list-style-type: disc;
    padding-left: 20px;
}
.akia-policy-box li {
    margin-bottom: 10px;
    line-height: 1.6;
}

/* 5. Contact Page Refinements */
.akia-contact-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.04);
    padding: 40px;
    margin-top: -20px;
}
.akia-contact-info {
    flex: 1 1 300px;
}
.akia-contact-form-area {
    flex: 1 1 400px;
}
.akia-contact-card {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    background: #f8f9fb;
    border-radius: 12px;
    margin-bottom: 20px;
}
.akia-contact-icon {
    font-size: 24px;
    color: #104c87;
    margin-top: 5px;
}
.akia-contact-icon svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}
.akia-contact-text h4 {
    margin: 0 0 5px;
    font-size: 16px;
    font-weight: 700;
    color: #333;
}
.akia-contact-text p {
    margin: 0;
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}
.akia-contact-text a {
    color: #104c87;
    font-weight: 600;
    text-decoration: none;
}
.akia-contact-text p strong {
    color: #104c87;
}

/* Overhaul Contact Form 7 */
.wpcf7-form .wpcf7-text,
.wpcf7-form .wpcf7-textarea {
    width: 100%;
    background: #f8f9fb;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 14px;
    color: #333;
    transition: border-color 0.2s;
    margin-bottom: 15px;
}
.wpcf7-form .wpcf7-text:focus,
.wpcf7-form .wpcf7-textarea:focus {
    border-color: #104c87;
    outline: none;
    background: #fff;
}
.wpcf7-form .wpcf7-submit {
    width: 100%;
    background: linear-gradient(135deg, #104c87 0%, #0b2e59 100%);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 14px 20px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}
.wpcf7-form .wpcf7-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 76, 135, 0.3);
}

@media (max-width: 768px) {
    .akia-contact-wrapper {
        padding: 20px;
    }
    .akia-global-page-hero {
        padding: 40px 15px 30px;
    }
    .akia-global-page-hero .akia-hero-title {
        font-size: 28px;
    }
    .akia-policy-box {
        padding: 20px;
    }
}

/* --------------------------------------------------------------------------
 * Premium About Page (Storytelling Layout - Phase 8 Tailwind UI)
 * -------------------------------------------------------------------------- */
.akia-about-v2-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 80px;
    font-family: var(--generate-font-family, system-ui, -apple-system, sans-serif);
}

.akia-about-v2-hero {
    text-align: center;
    max-width: 800px;
    margin: 40px auto 60px;
}
.akia-about-v2-hero h2 {
    font-size: 36px;
    font-weight: 800;
    color: #111827;
    margin-bottom: 24px;
    letter-spacing: -0.025em;
}
.akia-about-v2-hero p {
    font-size: 18px;
    line-height: 1.75;
    color: #4b5563;
}

.akia-about-v2-feature {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
    margin-bottom: 80px;
}
.akia-about-v2-feature.reverse {
    direction: rtl;
}
.akia-about-v2-feature.reverse > * {
    direction: ltr;
}

.akia-about-v2-feature-img img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.akia-about-v2-feature-text h3 {
    font-size: 30px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 20px;
    letter-spacing: -0.025em;
}
.akia-about-v2-feature-text p {
    font-size: 16px;
    line-height: 1.75;
    color: #4b5563;
    margin-bottom: 24px;
}
.akia-about-v2-feature-text ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.akia-about-v2-feature-text li {
    position: relative;
    padding-left: 32px;
    margin-bottom: 16px;
    font-size: 16px;
    color: #374151;
}
.akia-about-v2-feature-text li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 2px;
    color: #0ea5e9;
    font-weight: 900;
}

.akia-about-v2-values {
    margin-top: 100px;
    text-align: center;
}
.akia-about-v2-values h3 {
    font-size: 36px;
    font-weight: 800;
    color: #111827;
    margin-bottom: 48px;
}
.akia-about-v2-values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}
.akia-about-v2-value-card {
    background: #f9fafb;
    border-radius: 16px;
    padding: 40px 32px;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.akia-about-v2-value-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}
.akia-about-v2-value-icon {
    width: 48px;
    height: 48px;
    background: #e0f2fe;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: #0ea5e9;
}
.akia-about-v2-value-card h4 {
    font-size: 20px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 16px;
}
.akia-about-v2-value-card p {
    font-size: 15px;
    line-height: 1.6;
    color: #4b5563;
    margin: 0;
}

@media (max-width: 991px) {
    .akia-about-v2-feature {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .akia-about-v2-feature.reverse {
        direction: ltr;
    }
    .akia-about-v2-values-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }
}
@media (max-width: 768px) {
    .akia-about-v2-hero h2 {
        font-size: 28px;
    }
    .akia-about-v2-feature-text h3 {
        font-size: 26px;
    }
    .akia-about-v2-values h3 {
        font-size: 28px;
    }
}

/* ============================================================
   DARK HEADER — matches footer navy palette
   Background: #104C87 → #0A325A gradient (brand navy)
   Logo:       white/transparent version (Logo-akia-bw-230.png)
   Text/icons: white
   ============================================================ */

/* ── 1. Header background ─────────────────────────────────── */
.site-header,
.site-header .inside-header,
.site-header .navigation-branding,
.site-header.sticky-enabled {
    background: linear-gradient(135deg, #104C87, #0A325A) !important;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25) !important;
}

/* ── 2. Logo swap to dark/white version ───────────────────── */
.site-header .site-logo img,
.site-header .header-image img,
.site-header .custom-logo {
    content: url('https://beta.akia.vn/wp-content/uploads/2025/03/Logo-akia-bw-230.png') !important;
    filter: none !important;
}

/* ── 3. Navigation bar (GP primary nav) links ────────────── */
.main-navigation,
.main-navigation .main-nav ul li a,
.main-navigation .main-nav ul li a:visited {
    background: transparent !important;
    color: #ffffff !important;
}

.main-navigation .main-nav ul li a:hover {
    color: #FFD000 !important;
    background: transparent !important;
}

/* ── 4. Header widget links/icons ────────────────────────── */
.site-header a,
.site-header .widget a,
.site-header .widget_nav_menu a,
.site-header .site-header-item a {
    color: #ffffff !important;
}

.site-header a:hover {
    color: #FFD000 !important;
}

/* Ensure text under icons is white */
.site-header .site-header-item span,
.site-header .site-header-item svg {
    color: #ffffff !important;
    fill: #ffffff !important;
}

/* Cart count badge — keep visible on dark bg */
.site-header .woocommerce-cart-form .qty,
.site-header .mini-cart .cart-count {
    background: #FFD000 !important;
    color: #1a1a1a !important;
}

/* ── 5. Search bar — white so it pops against dark bg ────── */
.dgwt-wcas-search-input,
.dgwt-wcas-sf-wrapp input[type="search"],
.dgwt-wcas-sf-wrapp .dgwt-wcas-search-input {
    background: #ffffff !important;
    color: #333 !important;
    border: none !important;
    border-radius: 6px 0 0 6px !important;
}

.dgwt-wcas-sf-wrapp .dgwt-wcas-search-submit,
.dgwt-wcas-sf-wrapp button[type="submit"],
.dgwt-wcas-sf-wrapp .dgwt-wcas-ico-magnifier-handler {
    background: #FFD000 !important;
    color: #1a1a1a !important;
    border-radius: 0 6px 6px 0 !important;
}

.dgwt-wcas-sf-wrapp .dgwt-wcas-ico-magnifier path {
    fill: #1a1a1a !important;
}

/* Search placeholder text */
.dgwt-wcas-search-input::placeholder {
    color: #aaa !important;
}

/* Search wrapper background on dark header */
.dgwt-wcas-sf-wrapp {
    border-radius: 6px !important;
    overflow: hidden !important;
}

/* ── 6. Mobile header ────────────────────────────────────── */
@media (max-width: 768px) {
    #mobile-header,
    #mobile-header .inside-navigation {
        background: linear-gradient(135deg, #104C87, #0A325A) !important;
    }

    #mobile-header .site-logo img,
    #mobile-header .header-image img {
        content: url('https://beta.akia.vn/wp-content/uploads/2025/03/Logo-akia-bw-230.png') !important;
    }
}


/* ── 7. Cart Cross-sells "Bạn cũng thích" mobile grid fix ── */
@media (max-width: 768px) {
    .woocommerce-cart .cross-sells,
    .cross-sells {
        width: 100% !important;
        float: none !important;
        clear: both !important;
        padding: 0 !important;
        margin-top: 30px !important;
    }

    .cross-sells h2 {
        font-size: 16px !important;
        margin-bottom: 12px !important;
    }

    /* Override WC default columns (columns-4, columns-2, etc.) */
    .woocommerce-cart .cross-sells ul.products,
    .cross-sells ul.products,
    .cross-sells ul.products.columns-4,
    .cross-sells ul.products.columns-3,
    .cross-sells ul.products.columns-2 {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 10px !important;
        list-style: none !important;
        padding: 0 !important;
        margin: 0 !important;
        float: none !important;
    }

    /* Override WC float and width on each product item */
    .woocommerce-cart .cross-sells ul.products li.product,
    .cross-sells ul.products li.product,
    .cross-sells ul.products li.product.first,
    .cross-sells ul.products li.product.last {
        width: 100% !important;  /* beats any inline width="25%" */
        float: none !important;
        clear: none !important;  /* beat .first clear:left */
        margin: 0 !important;
        padding: 8px !important;
        border: 1px solid #f0f0f0 !important;
        border-radius: 8px !important;
        background: #fff !important;
        display: flex !important;
        flex-direction: column !important;
    }

    /* Fix product image */
    .cross-sells ul.products li.product img {
        width: 100% !important;
        height: auto !important;
        max-width: 100% !important;
        object-fit: contain !important;
        margin-bottom: 8px !important;
    }

    /* Product title */
    .cross-sells ul.products li.product .woocommerce-loop-product__title {
        font-size: 13px !important;
        line-height: 1.4 !important;
    }

    /* Price */
    .cross-sells ul.products li.product .price {
        font-size: 14px !important;
        color: #f7941e !important;
        font-weight: 700 !important;
    }
}


/* ════════════════════════════════════════════════════════════
   CHECKOUT PAGE (page-id / .woocommerce-checkout)
   ════════════════════════════════════════════════════════════ */

/* --- Page title --- */
.woocommerce-checkout .entry-header .entry-title,
.woocommerce-checkout h1.entry-title {
    font-size: 22px !important;
    font-weight: 700 !important;
    color: #1a1a2e !important;
    margin-bottom: 20px !important;
    padding-bottom: 12px !important;
    border-bottom: 2px solid #f0f0f0 !important;
}

/* --- Coupon notice --- */
.woocommerce-form-coupon-toggle,
.woocommerce-info {
    background: #f0f6ff !important;
    border-left: 4px solid #0055aa !important;
    border-top: none !important;
    border-right: none !important;
    border-bottom: none !important;
    border-radius: 0 8px 8px 0 !important;
    padding: 12px 18px !important;
    font-size: 13.5px !important;
    margin-bottom: 20px !important;
}
.woocommerce-info a {
    color: #0055aa !important;
    font-weight: 600 !important;
}
.woocommerce-form-coupon {
    background: #fff !important;
    border: 1.5px solid #e0e0e0 !important;
    border-radius: 10px !important;
    padding: 20px !important;
    margin-bottom: 24px !important;
}
.woocommerce-form-coupon p { margin-bottom: 10px !important; }

/* --- Checkout 2-column wrapper cards --- */
.woocommerce-checkout #customer_details,
.woocommerce-checkout .col-1,
.woocommerce-checkout .col-2,
#order_review_heading,
#order_review {
    background: #fff !important;
    border-radius: 12px !important;
    border: 1.5px solid #ebebeb !important;
    padding: 24px !important;
    margin-bottom: 20px !important;
}
#order_review_heading {
    padding-bottom: 0 !important;
    border-bottom: none !important;
    border-radius: 12px 12px 0 0 !important;
    margin-bottom: 0 !important;
}
#order_review {
    border-top: none !important;
    border-radius: 0 0 12px 12px !important;
    padding-top: 0 !important;
}

/* --- Section heading "THÔNG TIN GIAO HÀNG" --- */
.woocommerce-billing-fields h3,
.woocommerce-shipping-fields h3,
.woocommerce-additional-fields h3,
#order_review_heading h3 {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #0055aa !important;
    letter-spacing: .4px !important;
    text-transform: uppercase !important;
    margin: 0 0 20px !important;
    padding-bottom: 12px !important;
    border-bottom: 2px solid #f0f0f0 !important;
}

/* --- Form inputs --- */
.woocommerce-checkout .form-row label {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #444 !important;
    margin-bottom: 5px !important;
}
.woocommerce-checkout .form-row input[type="text"],
.woocommerce-checkout .form-row input[type="email"],
.woocommerce-checkout .form-row input[type="tel"],
.woocommerce-checkout .form-row textarea,
.woocommerce-checkout .form-row select {
    border: 1.5px solid #ddd !important;
    border-radius: 8px !important;
    padding: 10px 14px !important;
    font-size: 14px !important;
    height: auto !important;
    transition: border-color .2s !important;
    background: #fafafa !important;
}
.woocommerce-checkout .form-row input:focus,
.woocommerce-checkout .form-row select:focus,
.woocommerce-checkout .form-row textarea:focus {
    border-color: #0055aa !important;
    background: #fff !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(0,85,170,.1) !important;
}
.woocommerce-checkout .required { color: #e53935 !important; }

/* --- Order summary table --- */
#order_review table.shop_table {
    border: none !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    margin-bottom: 16px !important;
}
#order_review table.shop_table th {
    background: #f7f7f7 !important;
    font-size: 12px !important;
    text-transform: uppercase !important;
    letter-spacing: .5px !important;
    color: #888 !important;
    padding: 10px 14px !important;
    font-weight: 600 !important;
}
#order_review table.shop_table td {
    padding: 12px 14px !important;
    font-size: 13.5px !important;
    border-top: 1px solid #f0f0f0 !important;
    vertical-align: middle !important;
}
#order_review table.shop_table .cart-subtotal td,
#order_review table.shop_table .order-total td,
#order_review table.shop_table tfoot tr td,
#order_review table.shop_table tfoot tr th {
    border-top: 1px solid #e8e8e8 !important;
    background: #fafafa !important;
    font-size: 14px !important;
}
#order_review .order-total td strong,
#order_review .order-total .amount {
    font-size: 18px !important;
    color: #e53935 !important;
    font-weight: 800 !important;
}

/* --- Payment methods --- */
#payment {
    background: #fff !important;
    border-radius: 12px !important;
    border: 1.5px solid #ebebeb !important;
    overflow: visible !important;
}
#payment ul.payment_methods {
    list-style: none !important;
    padding: 16px 20px !important;
    margin: 0 !important;
    border-bottom: 1px solid #f0f0f0 !important;
}
#payment ul.payment_methods li {
    padding: 12px 0 !important;
    border-bottom: 1px solid #f5f5f5 !important;
}
#payment ul.payment_methods li:last-child { border-bottom: none !important; }
#payment .payment_box {
    background: #f0f6ff !important;
    border-radius: 8px !important;
    padding: 14px 16px !important;
    font-size: 13px !important;
    color: #555 !important;
    margin-top: 8px !important;
}
#payment label { font-size: 14px !important; font-weight: 600 !important; color: #222 !important; }

/* --- Place order button --- */
#payment #place_order,
.woocommerce-checkout #place_order {
    background: linear-gradient(135deg, #e53935, #c62828) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 10px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    padding: 14px 28px !important;
    width: 100% !important;
    letter-spacing: .3px !important;
    cursor: pointer !important;
    transition: all .3s ease !important;
    box-shadow: 0 4px 15px rgba(229,57,53,.3) !important;
    text-transform: uppercase !important;
}
#payment #place_order:hover {
    background: linear-gradient(135deg, #c62828, #b71c1c) !important;
    box-shadow: 0 6px 20px rgba(229,57,53,.4) !important;
    transform: translateY(-1px) !important;
}
#payment .place-order {
    padding: 20px !important;
    background: #fff !important;
}

/* --- Terms checkbox --- */
.woocommerce-terms-and-conditions-wrapper {
    font-size: 13px !important;
    color: #666 !important;
    margin-bottom: 16px !important;
}

/* Mobile checkout */
@media (max-width: 768px) {
    .woocommerce-checkout #customer_details,
    .woocommerce-checkout .col-1,
    .woocommerce-checkout .col-2,
    #order_review { padding: 16px !important; }
}


/* ════════════════════════════════════════════════════════════
   THANK YOU / ORDER RECEIVED PAGE
   ════════════════════════════════════════════════════════════ */

/* Page title */
.woocommerce-order .entry-title,
.woocommerce-order h1.entry-title {
    font-size: 24px !important;
    font-weight: 700 !important;
    color: #1a1a2e !important;
}

/* Success notice banner */
.woocommerce-thankyou-order-received,
.woocommerce-notice--success,
p.woocommerce-thankyou-order-received {
    display: block !important;
    background: linear-gradient(135deg, #e8f5e9, #f1f8f1) !important;
    border-left: 5px solid #43a047 !important;
    border-radius: 0 10px 10px 0 !important;
    padding: 16px 20px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #2e7d32 !important;
    margin-bottom: 28px !important;
}

/* Order info strip */
.woocommerce-order-overview,
ul.woocommerce-order-overview {
    list-style: none !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0 !important;
    margin: 0 0 32px !important;
    padding: 0 !important;
    background: #f9f9fc !important;
    border: 1.5px solid #ebebeb !important;
    border-radius: 12px !important;
    overflow: hidden !important;
}
.woocommerce-order-overview li {
    flex: 1 1 auto !important;
    padding: 16px 20px !important;
    border-right: 1px solid #ebebeb !important;
    min-width: 120px !important;
}
.woocommerce-order-overview li:last-child { border-right: none !important; }
.woocommerce-order-overview li::before { content: none !important; }
.woocommerce-order-overview li span:first-child, /* label */
.woocommerce-order-overview .key {
    display: block !important;
    font-size: 10px !important;
    text-transform: uppercase !important;
    letter-spacing: .7px !important;
    color: #999 !important;
    font-weight: 600 !important;
    margin-bottom: 4px !important;
}
.woocommerce-order-overview li strong,
.woocommerce-order-overview li .amount {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #1a1a2e !important;
    display: block !important;
}
.woocommerce-order-overview .total .amount {
    color: #e53935 !important;
    font-size: 17px !important;
}

/* Order details section */
.woocommerce-order-details {
    background: #fff !important;
    border: 1.5px solid #ebebeb !important;
    border-radius: 12px !important;
    padding: 24px !important;
    margin-bottom: 24px !important;
}
.woocommerce-order-details h2 {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #0055aa !important;
    text-transform: uppercase !important;
    letter-spacing: .4px !important;
    border-bottom: 2px solid #f0f0f0 !important;
    padding-bottom: 12px !important;
    margin-bottom: 16px !important;
}
.woocommerce-order-details table.shop_table {
    border: none !important;
    width: 100% !important;
}
.woocommerce-order-details table.shop_table th {
    font-size: 12px !important;
    text-transform: uppercase !important;
    letter-spacing: .5px !important;
    color: #888 !important;
    background: #f7f7f7 !important;
    padding: 10px 14px !important;
}
.woocommerce-order-details table.shop_table td {
    padding: 12px 14px !important;
    font-size: 14px !important;
    border-bottom: 1px solid #f5f5f5 !important;
    vertical-align: middle !important;
}
.woocommerce-order-details table.shop_table .order-total td strong {
    font-size: 18px !important;
    color: #e53935 !important;
    font-weight: 800 !important;
}

/* Customer details / billing section */
.woocommerce-customer-details {
    background: #fff !important;
    border: 1.5px solid #ebebeb !important;
    border-radius: 12px !important;
    padding: 24px !important;
    margin-bottom: 24px !important;
}
.woocommerce-customer-details h2 {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #0055aa !important;
    text-transform: uppercase !important;
    letter-spacing: .4px !important;
    border-bottom: 2px solid #f0f0f0 !important;
    padding-bottom: 12px !important;
    margin-bottom: 16px !important;
}
.woocommerce-customer-details address {
    font-size: 14px !important;
    line-height: 1.8 !important;
    color: #444 !important;
    font-style: normal !important;
}

/* Continue shopping button */
.return-to-shop .button,
.woocommerce-order .button {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    background: #0055aa !important;
    color: #fff !important;
    border-radius: 8px !important;
    padding: 12px 24px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: all .2s ease !important;
    margin-top: 16px !important;
}
.return-to-shop .button:hover,
.woocommerce-order .button:hover {
    background: #003d80 !important;
    transform: translateY(-1px) !important;
}

/* Mobile thank you page */
@media (max-width: 600px) {
    .woocommerce-order-overview {
        flex-direction: column !important;
    }
    .woocommerce-order-overview li {
        border-right: none !important;
        border-bottom: 1px solid #ebebeb !important;
    }
    .woocommerce-order-overview li:last-child { border-bottom: none !important; }
    .woocommerce-order-details,
    .woocommerce-customer-details { padding: 16px !important; }
}


/* ════════════════════════════════════════════════════════════
   BANK TRANSFER (BACS) DETAILS ON ORDER-RECEIVED PAGE
   ════════════════════════════════════════════════════════════ */

/* Style the standalone h2 before bank list  */
.woocommerce-order h2,
.woocommerce:not(.woocommerce-order-details):not(.woocommerce-customer-details) h2 {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #0055aa !important;
    text-transform: uppercase !important;
    letter-spacing: .4px !important;
    margin: 24px 0 8px !important;
    padding-bottom: 10px !important;
    border-bottom: 2px solid #f0f0f0 !important;
}

/* Instruction paragraph preceding bank details */
.woocommerce-order > p {
    font-size: 14px !important;
    color: #555 !important;
    line-height: 1.7 !important;
    margin-bottom: 20px !important;
}

/* Bank details UL container */
ul.wc-bacs-bank-details,
.order_details.bacs_details {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 0 24px !important;
    background: #fff !important;
    border: 1.5px solid #ebebeb !important;
    border-radius: 12px !important;
    overflow: hidden !important;
}

/* Per-bank section heading */
ul.wc-bacs-bank-details li.account-header,
ul.wc-bacs-bank-details > li:first-child {
    border-radius: 10px 10px 0 0 !important;
}

/* Each bank account detail row */
ul.wc-bacs-bank-details li {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 12px 18px !important;
    border-bottom: 1px solid #f5f5f5 !important;
    flex-wrap: wrap !important;
}
ul.wc-bacs-bank-details li:last-child {
    border-bottom: none !important;
}

/* The label like "NGÂN HÀNG:", "SỐ TÀI KHOẢN:", "IBAN:" */
ul.wc-bacs-bank-details li span.label,
ul.wc-bacs-bank-details li .label {
    flex: 0 0 160px !important;
    font-size: 12px !important;
    text-transform: uppercase !important;
    letter-spacing: .5px !important;
    color: #999 !important;
    font-weight: 600 !important;
}

/* The value/content */
ul.wc-bacs-bank-details li span.value,
ul.wc-bacs-bank-details li .value {
    flex: 1 !important;
    font-size: 15px !important;
    color: #1a1a2e !important;
    font-weight: 700 !important;
}
ul.wc-bacs-bank-details li span.value strong,
ul.wc-bacs-bank-details li .value strong {
    font-size: inherit !important;
    color: inherit !important;
}

/* QR code image (after JS converts URL to img) */
ul.wc-bacs-bank-details li.iban .value img,
ul.wc-bacs-bank-details li.iban .value strong img {
    height: 80px !important;
    width: auto !important;
    display: block !important;
    border-radius: 6px !important;
    border: 1px solid #eee !important;
    padding: 4px !important;
    background: #fff !important;
}

/* Hide IBAN li entirely when still showing raw URL as text - handled by JS */
ul.wc-bacs-bank-details li.iban.is-url-iban {
    display: none !important;
}

/* Account separator heading li */
ul.wc-bacs-bank-details li.payment-heading {
    background: #f7f7fa !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    color: #333 !important;
    padding: 10px 18px !important;
}

/* Mobile */
@media (max-width: 600px) {
    ul.wc-bacs-bank-details li {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 4px !important;
    }
    ul.wc-bacs-bank-details li span.label { flex: none !important; }
}


/* ════════════════════════════════
   MOBILE STICKY BAR FIXES
   ════════════════════════════════ */
@media (max-width: 768px) {
    /* Fix #1: Messenger button — compact fixed width, column layout (override flex:1 from newer block) */
    .akia-stb-left {
        flex: 0 0 72px !important;
        width: 72px !important;
        min-width: 72px !important;
        max-width: 72px !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 3px !important;
        padding: 0 !important;
        background: #0866FF !important; /* Facebook Messenger blue */
        color: #fff !important;
        text-decoration: none !important;
        border-radius: 16px 0 0 0 !important;
        overflow: hidden !important;
        cursor: pointer !important;
    }
    .akia-stb-left svg {
        width: 24px !important;
        height: 24px !important;
        fill: #fff !important;
        color: #fff !important;
        stroke: none !important;
        flex-shrink: 0 !important;
    }
    .akia-stb-left-label {
        font-size: 10px !important;
        font-weight: 600 !important;
        color: #fff !important;
        letter-spacing: 0.3px !important;
        line-height: 1 !important;
    }
}


/* ════════════════════════════════════════════════════════════
   KEY FEATURES BOX (Đặc điểm nổi bật) — AKIA Brand Colors
   ════════════════════════════════════════════════════════════ */
.akia-key-features {
    background: #eef4fc;
    border: 1px solid #c8ddf5;
    border-left: 4px solid #104C87;
    border-radius: 10px;
    padding: 14px 18px 16px;
    margin-bottom: 20px;
}

.akia-kf-header {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 10px;
    padding-bottom: 9px;
    border-bottom: 1px solid #c8ddf5;
}

.akia-kf-header > svg {
    fill: #FFD000;
    color: #FFD000;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    filter: drop-shadow(0 1px 2px rgba(255,208,0,.4));
}

.akia-kf-title {
    font-size: 13px !important;
    font-weight: 800 !important;
    color: #104C87 !important;
    margin: 0 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.6px !important;
    line-height: 1.2 !important;
}

.akia-kf-list {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.akia-kf-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 14px;
    color: #1a2a3a;
    line-height: 1.45;
}

.akia-kf-check {
    fill: #104C87 !important;
    color: #104C87 !important;
    width: 15px !important;
    height: 15px !important;
    flex-shrink: 0;
    margin-top: 2px;
}

@media (max-width: 768px) {
    .akia-key-features {
        padding: 12px 14px;
        margin-bottom: 16px;
    }
    .akia-kf-item {
        font-size: 13px;
    }
}

/* ════════════════════════════════════════════════════════════
   WOOCOMMERCE ADDED-TO-CART NOTICE — Compact & Brand-styled
   ════════════════════════════════════════════════════════════ */
.woocommerce-message {
    border-top: none !important;
    border-left: 4px solid #104C87 !important;
    border-color: #c8ddf5 !important;
    background: linear-gradient(135deg, #f0f6ff 0%, #e8f0fb 100%) !important;
    border-radius: 10px !important;
    padding: 10px 14px !important;
    gap: 10px !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
}

/* Hide WC default icon (::before) */
.woocommerce-message::before {
    display: none !important;
}

/* Truncate long product name to 1 line */
.woocommerce-message > :not(a) {
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 13px !important;
    color: #1a2a3a !important;
    font-weight: 500 !important;
    min-width: 0;
}

/* "XEM GIỎ HÀNG" / "View cart" button — compact */
.woocommerce-message a.button,
.woocommerce-message .wc-forward {
    background: #104C87 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 7px !important;
    padding: 7px 12px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
    text-transform: uppercase !important;
    flex-shrink: 0 !important;
    width: auto !important;
    min-width: auto !important;
    height: auto !important;
    line-height: 1.4 !important;
    letter-spacing: 0.3px !important;
    box-shadow: none !important;
    text-decoration: none !important;
}

.woocommerce-message a.button:hover,
.woocommerce-message .wc-forward:hover {
    background: #0a3a6e !important;
    color: #fff !important;
}


/* ════════════════════════════════════════════════════════════
   STICKY BAR: Out-of-Stock → Hotline Button
   ════════════════════════════════════════════════════════════ */
.akia-btn-stb-hotline {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    background: linear-gradient(135deg, #e53e3e, #c0392b) !important;
    color: #fff !important;
    text-decoration: none !important;
    border-radius: 0 16px 0 0 !important;
    padding: 0 12px !important;
    height: 58px !important;
    width: 130px !important;
    gap: 2px !important;
    flex-shrink: 0 !important;
}

.akia-stb-oos-label {
    font-size: 11px !important;
    font-weight: 600 !important;
    color: rgba(255,255,255,0.85) !important;
    text-transform: uppercase !important;
    letter-spacing: .3px !important;
    line-height: 1 !important;
}

.akia-stb-oos-phone {
    font-size: 13px !important;
    font-weight: 800 !important;
    color: #fff !important;
    letter-spacing: .5px !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
}

.akia-btn-stb-hotline:hover,
.akia-btn-stb-hotline:active {
    background: linear-gradient(135deg, #c0392b, #a93226) !important;
    color: #fff !important;
}


/* ── Key Features: override to white background (previous #eef4fc appears green) ── */
.akia-key-features {
    background: #fff !important;
    border: 1px solid #d0e4f7 !important;
    border-left: 4px solid #104C87 !important;
}


/* ════════════════════════════════════════════════════════════
   PRODUCT PAGE: Hide quantity stepper (- 1 +)
   ════════════════════════════════════════════════════════════ */
.single-product form.cart .quantity {
    display: none !important;
}


/* ── Mega menu: neutralize any red/colored SVG fill in custom icons ── */
.akia-mega-menu-ul svg.mega-icon {
    color: #666 !important;
}
.akia-mega-menu-ul svg.mega-icon path,
.akia-mega-menu-ul svg.mega-icon circle,
.akia-mega-menu-ul svg.mega-icon rect {
    fill: #666 !important;
    stroke: #666 !important;
}
