﻿/*
 Theme Name:   Hello Elementor Child
 Theme URI:    https://elementor.com/hello-theme/
 Description:  Hello Elementor Child Theme
 Author:       Hacom
 Author URI:   https://hacom.vn
 Template:     hello-elementor
 Version:      1.0.0
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Text Domain:  hello-elementor-child
*/

/* ── Mega menu hover ── */
#mega-menu-fixed {
    position: fixed;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transform: translateY(6px);
    transition: opacity .18s ease, transform .18s ease;
    visibility: hidden;
}
#mega-menu-fixed.hacom-mega--visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    visibility: visible;
}

/* ── Shortcode: post_meta ── */
.hacom-pm { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 13px; color: #6b7280; }
.hacom-pm__item { display: flex; align-items: center; gap: 5px; }
.hacom-pm__item svg { flex-shrink: 0; }
.hacom-pm__label { color: #6b7280; }
.hacom-pm__author { color: var(--e-global-color-secondary, #e07b00); font-weight: 600; }
.hacom-pm__dot { width: 4px; height: 4px; border-radius: 50%; background: #d1d5db; flex-shrink: 0; }

/* ── Shortcode: post_breadcrumb ── */
.hacom-bc { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 13px; font-weight: 700; }
.hacom-bc__link { color: #374151; text-decoration: none; }
.hacom-bc__link:hover { color: var(--e-global-color-secondary, #3b82f6); }
.hacom-bc__sep { color: #374151; font-weight: 700; }
.hacom-bc__current { color: #374151; }

/* ── Shortcode: relation_posts ── */
.hacom-rp { display: flex; flex-direction: column; gap: 0; }
.hacom-rp__item { display: flex; flex-direction: column; text-decoration: none; color: inherit; border-bottom: 1px solid #e5e7eb; padding-bottom: 14px; margin-bottom: 14px; }
.hacom-rp__item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.hacom-rp__img-wrap { width: 100%; overflow: hidden; border-radius: 8px; margin-bottom: 10px; }
.hacom-rp__img { width: 100%; height: auto; display: block; object-fit: cover; transition: transform .25s; }
.hacom-rp__item:hover .hacom-rp__img { transform: scale(1.03); }
.hacom-rp__body { display: flex; flex-direction: column; gap: 6px; }
.hacom-rp__title { font-size: 14px; font-weight: 700; color: #111; line-height: 1.4; }
.hacom-rp__item:hover .hacom-rp__title { color: var(--e-global-color-secondary, #3b82f6); }
.hacom-rp__excerpt { font-size: 13px; color: #4b5563; line-height: 1.55; }

/* ── Shortcode: product_comments ── */
.hacom-pc__title { font-size: 18px; font-weight: 500; color: #111; margin-bottom: 14px; }

.hacom-pc__form { margin-bottom: 20px; }
.hacom-pc__fields { display: flex; gap: 10px; margin-bottom: 10px; }
.hacom-pc__input { flex: 1; border: 1px solid #e5e7eb; border-radius: 8px; padding: 9px 12px; font-size: 13px; font-family: inherit; outline: none; }
.hacom-pc__input:focus { border-color: var(--e-global-color-secondary, #3b82f6); }
.hacom-pc__textarea { width: 100%; border: 1px solid #e5e7eb; border-radius: 10px; padding: 14px; font-size: 14px; font-family: inherit; resize: vertical; min-height: 100px; box-sizing: border-box; outline: none; }
.hacom-pc__textarea:focus { border-color: var(--e-global-color-secondary, #3b82f6); }
.hacom-pc__rating-wrap { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.hacom-pc__rating-label { font-size: 13px; color: #374151; white-space: nowrap; }
.hacom-pc__stars-input { display: flex; gap: 3px; }
.hacom-pc__star-btn { display: block; transition: fill .1s; }
.hacom-pc__form-footer { display: flex; justify-content: flex-end; margin-top: 10px; }
.hacom-pc__form-footer .hacom-pc__submit { padding: 10px 28px; background: var(--e-global-color-secondary, #3b82f6); color: #fff; border: none; border-radius: 8px; font-size: 14px; font-weight: 600; cursor: pointer; font-family: inherit; transition: opacity .15s; }
.hacom-pc__form-footer .hacom-pc__submit:hover { opacity: .85; }

.hacom-pc__notice { background: #fefce8; border: 1px solid #fde047; color: #854d0e; font-size: 13px; border-radius: 8px; padding: 10px 14px; margin-bottom: 14px; }
.hacom-pc__count { font-size: 16px; font-weight: 500; color: #111; margin-bottom: 12px; }
.hacom-pc__divider { border: none; border-top: 1px dashed #d1d5db; margin-bottom: 16px !important; }

.hacom-pc__list { display: flex; flex-direction: column; gap: 12px; }
.hacom-pc__item { border: 1px solid #e5e7eb; border-radius: 10px; padding: 14px 16px; background: #fff; }
.hacom-pc__item-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.hacom-pc__avatar { width: 42px; height: 42px; border-radius: 50%; background: #94a3b8; color: #fff; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.hacom-pc__item-info { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.hacom-pc__author { font-weight: 600; font-size: 14px; color: #111; }
.hacom-pc__stars-display { display: flex; gap: 2px; }
.hacom-pc__meta { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.hacom-pc__badge { font-size: 12px; padding: 2px 8px; border-radius: 4px; color: #3b82f6; background: #eff6ff; border: 1px solid #bfdbfe; white-space: nowrap; }
.hacom-pc__date { font-size: 11px; color: #9ca3af; }
.hacom-pc__content { font-size: 14px; line-height: 1.6; }
.hacom-pc__empty { color: #9ca3af; font-size: 14px; }

/* ── Shortcode: product_rating_summary ── */
.hacom-rs {
    display: flex;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
}

.hacom-rs__overall {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 120px;
}

.hacom-rs__avg {
    font-size: 42px;
    font-weight: 800;
    color: #e02020;
    line-height: 1;
}

.hacom-rs__total {
    font-size: 13px;
    color: #6b7280;
}

.hacom-rs__stars {
    display: flex;
    gap: 2px;
}

.hacom-rs__bars {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 200px;
}

.hacom-rs__bar-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.hacom-rs__bar-num {
    font-size: 13px;
    color: #555;
    width: 10px;
    text-align: right;
}

.hacom-rs__bar-track {
    flex: 1;
    height: 10px;
    background: #e5e7eb;
    border-radius: 99px;
    overflow: hidden;
}

.hacom-rs__bar-fill {
    height: 100%;
    background: #f5a623;
    border-radius: 99px;
}

.hacom-rs__bar-count {
    font-size: 12px;
    color: var(--e-global-color-secondary, #3b82f6);
    min-width: 64px;
}

.hacom-rs__bar-count strong {
    font-weight: 700;
}

/* ── Native comment section styling ── */

/* Title */
.woocommerce-Reviews-title,
#reply-title {
    font-size: 18px;
    font-weight: 700;
    color: #111;
    margin-bottom: 16px;
}

/* Comment form */
.comment-form textarea#comment {
    width: 100%;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 14px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    min-height: 100px;
    box-sizing: border-box;
    box-shadow: none;
    outline: none;
}

.comment-form textarea#comment:focus {
    border-color: var(--e-global-color-secondary, #3b82f6);
}

.comment-form .form-submit {
    display: flex;
    justify-content: flex-end;
    margin: 10px 0 0;
}

.comment-form .form-submit #submit {
    padding: 10px 28px;
    background: var(--e-global-color-secondary, #3b82f6);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    box-shadow: none;
    transition: opacity .15s;
}

.comment-form .form-submit #submit:hover {
    opacity: .85;
}

/* Comment list */
.commentlist {
    list-style: none;
    padding: 0;
    margin: 20px 0 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.commentlist li.comment,
.commentlist li.review {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 14px 16px;
    background: #fff;
    list-style: none;
}

/* Avatar */
.commentlist .comment-author {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.commentlist .comment-author .hacom-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #94a3b8;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.commentlist .comment-author .fn,
.commentlist .woocommerce-review__author {
    font-weight: 600;
    font-size: 14px;
    color: #111;
}

/* Date & meta */
.commentlist .comment-metadata,
.commentlist .woocommerce-review__dash,
.commentlist .woocommerce-review__published-date {
    font-size: 12px;
    color: #9ca3af;
}

/* Badge "Bình luận" */
.commentlist .comment-author::after {
    content: '💬 Bình luận';
    margin-left: auto;
    font-size: 12px;
    padding: 3px 8px;
    border-radius: 4px;
    color: #3b82f6;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    white-space: nowrap;
}

/* Comment text */
.commentlist .comment-text p,
.commentlist .description p {
    font-size: 14px;
    color: #374151;
    line-height: 1.6;
    margin: 0;
}

/* Reply link */
.commentlist .reply a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: var(--e-global-color-secondary, #3b82f6);
    text-decoration: none;
    margin-top: 8px;
}

.commentlist .reply a::before {
    content: '💬';
}

/* Nested replies */
.commentlist .children {
    list-style: none;
    padding: 0;
    margin: 12px 0 0 16px;
    border-left: 3px solid #e5e7eb;
    padding-left: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.commentlist .children li.comment {
    border: none;
    padding: 0;
    border-radius: 0;
    background: transparent;
}

/* ── Shortcode: product_feedback ── */
.hacom-feedback { display: flex; flex-direction: column; gap: 40px; }
.hacom-section-title { font-size: 20px; font-weight: 700; color: #111; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 1px solid #e5e7eb; }

/* Avatar */
.hacom-avatar { width: 42px; height: 42px; border-radius: 50%; background: #94a3b8; color: #fff; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.hacom-avatar--sm { width: 32px; height: 32px; font-size: 10px; }

/* Badge */
.hacom-badge { font-size: 12px; padding: 3px 8px; border-radius: 4px; white-space: nowrap; }
.hacom-badge--bought { color: #16a34a; background: #f0fdf4; border: 1px solid #bbf7d0; }
.hacom-badge--comment { color: #3b82f6; background: #eff6ff; border: 1px solid #bfdbfe; }

/* ── Review summary ── */
.hacom-rv__summary { display: flex; gap: 32px; margin-bottom: 20px; flex-wrap: wrap; }
.hacom-rv__overall { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 130px; }
.hacom-rv__avg { font-size: 40px; font-weight: 800; color: #e02020; line-height: 1; }
.hacom-rv__total { font-size: 13px; color: #6b7280; }
.hacom-rv__stars { display: flex; gap: 2px; }
.hacom-rv__submit-btn { margin-top: 6px; padding: 8px 18px; background: var(--e-global-color-secondary, #3b82f6); color: #fff; border-radius: 6px; font-size: 13px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.hacom-rv__submit-btn:hover { opacity: .85; color: #fff; text-decoration: none; }

/* Rating bars */
.hacom-rv__bars { flex: 1; display: flex; flex-direction: column; gap: 6px; justify-content: center; min-width: 200px; }
.hacom-rv__bar-row { display: flex; align-items: center; gap: 6px; }
.hacom-rv__bar-num { font-size: 13px; color: #555; width: 10px; text-align: right; }
.hacom-rv__bar-track { flex: 1; height: 8px; background: #e5e7eb; border-radius: 99px; overflow: hidden; }
.hacom-rv__bar-fill { height: 100%; background: #f5a623; border-radius: 99px; }
.hacom-rv__bar-count { font-size: 12px; color: var(--e-global-color-secondary, #3b82f6); white-space: nowrap; min-width: 60px; }

/* Filter tabs */
.hacom-rv__tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.hacom-rv__tab { display: inline-flex; align-items: center; gap: 3px; padding: 6px 14px; border: 1px solid #e5e7eb; border-radius: 20px; font-size: 13px; color: #555; text-decoration: none; transition: border-color .15s, color .15s; }
.hacom-rv__tab:hover { border-color: #f5a623; color: #555; text-decoration: none; }
.hacom-rv__tab.is-active { border-color: #e02020; color: #e02020; font-weight: 600; }

/* Review items */
.hacom-rv__list { display: flex; flex-direction: column; gap: 16px; }
.hacom-rv-item { border: 1px solid #e5e7eb; border-radius: 10px; padding: 16px; background: #fff; }
.hacom-rv-item__top { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 10px; }
.hacom-rv-item__info { flex: 1; }
.hacom-rv-item__name { font-weight: 600; font-size: 14px; color: #111; margin-bottom: 4px; }
.hacom-rv-item__stars { display: flex; align-items: center; gap: 2px; }
.hacom-rv-item__score { font-size: 13px; color: #555; margin-left: 4px; }
.hacom-rv-item__content { font-size: 14px; color: #374151; line-height: 1.6; }
.hacom-rv__empty { color: #9ca3af; font-size: 14px; }

/* Review form */
.hacom-rv-form { margin-top: 24px; }
.hacom-rv-form .comment-form textarea { width: 100%; border: 1px solid #e5e7eb; border-radius: 8px; padding: 12px; font-size: 14px; resize: vertical; }
.hacom-rv-form .hacom-form-submit { padding: 10px 24px; background: var(--e-global-color-secondary,#3b82f6); color: #fff; border: none; border-radius: 8px; font-size: 14px; font-weight: 600; cursor: pointer; }

/* ── Comment section ── */
.hacom-cmt-form { border: 1px solid #e5e7eb; border-radius: 10px; padding: 16px; background: #fff; margin-bottom: 20px; }
.hacom-cmt-form__fields { display: flex; gap: 10px; margin-bottom: 10px; }
.hacom-cmt-form__input { flex: 1; border: 1px solid #e5e7eb; border-radius: 6px; padding: 8px 12px; font-size: 13px; font-family: inherit; }
.hacom-cmt-form__textarea { width: 100%; border: 1px solid #e5e7eb; border-radius: 8px; padding: 12px; font-size: 14px; resize: vertical; font-family: inherit; box-sizing: border-box; }
.hacom-cmt-form__textarea--sm { min-height: 80px; margin: 8px 0; }
.hacom-cmt-form__actions { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; gap: 10px; }
.hacom-cmt-form__attach { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; color: var(--e-global-color-secondary,#3b82f6); cursor: pointer; }
.hacom-cmt-form__submit { padding: 10px 24px; background: var(--e-global-color-secondary,#3b82f6); color: #fff; border: none; border-radius: 8px; font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.hacom-cmt-form__submit--sm { padding: 7px 16px; font-size: 13px; }
.hacom-cmt__count { font-size: 16px; font-weight: 700; color: #111; margin-bottom: 12px; }
.hacom-cmt__divider { border: none; border-top: 1px solid #e5e7eb; margin-bottom: 16px; }
.hacom-cmt__list { display: flex; flex-direction: column; gap: 12px; }

/* Comment items */
.hacom-cmt-item { border: 1px solid #e5e7eb; border-radius: 10px; padding: 14px 16px; background: #fff; }
.hacom-cmt-item--reply { border: none; border-left: 3px solid #e5e7eb; border-radius: 0; padding-left: 14px; background: transparent; }
.hacom-cmt-item__replies { margin-top: 12px; padding-left: 8px; display: flex; flex-direction: column; gap: 10px; }
.hacom-cmt-item__top { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 8px; }
.hacom-cmt-item__info { flex: 1; }
.hacom-cmt-item__name { font-weight: 600; font-size: 14px; color: #111; }
.hacom-cmt-item__date { font-size: 12px; color: #9ca3af; }
.hacom-cmt-item__content { font-size: 14px; color: #374151; line-height: 1.6; }
.hacom-cmt-item__reply-toggle { background: none; border: none; color: var(--e-global-color-secondary,#3b82f6); font-size: 13px; cursor: pointer; padding: 6px 0 0; font-family: inherit; }
.hacom-reply-form { margin-top: 10px; padding: 12px; background: #f9fafb; border-radius: 8px; }

/* ── Shortcode: product_meta_bar ── */
.woocommerce-product-gallery {
    display: flex !important;
    flex-direction: row !important;
    gap: 12px;
    align-items: flex-start;
}

.woocommerce-product-gallery .flex-viewport {
    flex: 1;
    border-radius: 8px;
    overflow: hidden;
    order: 2;
}

.woocommerce-product-gallery figure {
    margin: 0;
}

.flex-control-nav.flex-control-thumbs {
    order: 1;
    display: flex !important;
    flex-direction: column !important;
    gap: 8px;
    width: 100px;
    flex-shrink: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.woocommerce div.product div.images .flex-control-thumbs li{
    width: 100%;
}
.flex-control-nav.flex-control-thumbs li {
    margin: 0;
    padding: 0 !important;
}

.flex-control-nav.flex-control-thumbs li img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 2px solid #e5e7eb;
    border-radius: 6px !important;
    cursor: pointer;
    transition: border-color 0.2s;
    opacity: 0.7;
    padding: 10px;
}

.flex-control-nav.flex-control-thumbs li img.flex-active {
    border-color: var(--e-global-color-secondary, #3b82f6);
    opacity: 1;
}
.hacom-meta-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 10px;
    font-size: 13px;
    color: #444;
}

.hacom-meta-bar__item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.hacom-meta-bar__label {
    font-weight: 600;
    color: #333;
}

.hacom-meta-bar__sep {
    color: #d1d5db;
    font-weight: 300;
}

.hacom-meta-bar__stars {
    display: inline-flex;
    align-items: center;
    gap: 1px;
}

.hacom-meta-star {
    width: 15px;
    height: 15px;
}

.hacom-meta-star--full,
.hacom-meta-star--half {
    color: #f5a623;
}

.hacom-meta-star--empty {
    color: #d1d5db;
}

/* ── Shortcode: category_faq ── */
.hacom-faq {
    margin: 0;
}

.hacom-faq__title {
    font-size: 22px;
    font-weight: 700;
    color: #111;
    margin-bottom: 16px;
}

.hacom-faq__item {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    margin-bottom: 8px;
    overflow: hidden;
    background: #fff;
}

.hacom-faq .hacom-faq__item button.hacom-faq__toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
    background: none;
    border: none;
    box-shadow: none;
    border-radius: 0;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    line-height: 1.4;
    letter-spacing: normal;
    text-transform: none;
}

.hacom-faq__q {
    font-size: 15px;
    font-weight: 500;
    color: #111;
    line-height: 1.4;
    flex: 1;
}

.hacom-faq__chevron {
    flex-shrink: 0;
    color: #6b7280;
    transition: transform 0.2s;
}

.hacom-faq .hacom-faq__item.is-open .hacom-faq__chevron {
    transform: rotate(180deg);
}

.hacom-faq__body {
    padding: 0 18px 16px 18px;
}

.hacom-faq__answer {
    border-left: 3px solid var(--e-global-color-secondary, #3b82f6);
    padding-left: 14px;
    font-size: 14px;
    color: #4b5563;
    line-height: 1.7;
}

.hacom-faq__answer p {
    margin: 0;
}

/* ── Shortcode: child_product_categories ── */
.hacom-child-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hacom-child-cat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 8px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
    text-decoration: none;
    color: #222;
    width: 110px;
    text-align: center;
    transition: border-color 0.2s, background 0.2s;
}

.hacom-child-cat:hover {
    border-color: var(--e-global-color-secondary);
    background: color-mix(in srgb, var(--e-global-color-secondary) 10%, #fff);
    color: #222;
    text-decoration: none;
}

.hacom-child-cat--active {
    border-color: var(--e-global-color-secondary);
    background: color-mix(in srgb, var(--e-global-color-secondary) 10%, #fff);
}

.hacom-child-cat__img {
    align-items: center;
    justify-content: center;
}

.hacom-child-cat__img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.hacom-child-cat__name {
    font-size: 13px;
    font-weight: 500;
    line-height: 1.3;
}

/* ── Shortcode: product_filter ── */
.hacom-filter {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.hacom-filter a.hacom-filter-btn,
.hacom-filter button.hacom-filter-btn {
    display: inline-flex;
    gap: 5px;
    padding: 7px 13px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: #fff;
    color: #333;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    transition: border-color 0.15s, color 0.15s;
    font-family: inherit;
    line-height: 1;
    box-shadow: none;
    text-transform: none;
    letter-spacing: normal;
}

.hacom-filter a.hacom-filter-btn:hover,
.hacom-filter button.hacom-filter-btn:hover {
    border-color: var(--e-global-color-secondary, #3b82f6);
    color: var(--e-global-color-secondary, #3b82f6);
    text-decoration: none;
    background: #fff;
}

.hacom-filter a.hacom-filter-btn.is-active,
.hacom-filter button.hacom-filter-btn.is-active {
    border-color: var(--e-global-color-secondary, #3b82f6);
    color: var(--e-global-color-secondary, #3b82f6);
    background: color-mix(in srgb, var(--e-global-color-secondary, #3b82f6) 8%, #fff);
}

.hacom-filter-dropdown {
    position: relative;
}

.hacom-filter-dd-menu {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    min-width: 180px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,.1);
    z-index: 100;
    padding: 4px 0;
}

.hacom-filter-dd-item {
    display: block;
    padding: 8px 14px;
    font-size: 13px;
    color: #333;
    text-decoration: none;
    transition: background 0.1s;
}

.hacom-filter-dd-item:hover {
    background: #f3f4f6;
    color: #333;
    text-decoration: none;
}

.hacom-filter-dd-item.is-active {
    color: var(--e-global-color-secondary, #3b82f6);
    font-weight: 600;
    background: color-mix(in srgb, var(--e-global-color-secondary, #3b82f6) 8%, #fff);
}

/* ── Shortcode: product_stock ── */
.hacom-stock {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    font-weight: 500;
}

.hacom-stock svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.hacom-stock--in {
    color: #22c55e;
}

.hacom-stock--out {
    color: #3b82f6;
}

.hacom-stock-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hacom-stock-wrap .hacom-add-to-cart {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background-color: #e02020;
    color: #fff;
    text-decoration: none;
    flex-shrink: 0;
    transition: background-color 0.2s;
}

.hacom-add-to-cart:hover {
    background-color: #c01010;
    color: #fff;
}

.hacom-add-to-cart svg {
    width: 16px;
    height: 16px;
}

/* ── Shortcode: product_price_promo ── */
.hacom-price-promo {
    display: block;
}

.hacom-price-promo__label {
    display: block;
    font-size: 18px;
    color: #333;
    font-weight: 500;
    margin-bottom: 4px;
}

.hacom-price-promo__row {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px;
}

.hacom-price-promo__sale {
    font-size: 26px;
    font-weight: 700;
    color: #e02020;
    line-height: 1.2;
}

.hacom-price-promo__regular {
    font-size: 22px;
    font-weight: 400;
    color: #e02020;
    text-decoration: line-through;
}

.hacom-price-promo__saved {
    font-size: 18px;
    color: #222;
    white-space: nowrap;
    font-weight: 500;
}

.hacom-price-promo__saved-amount {
    color: #e02020;
    font-weight: 500;
}

.hacom-price-promo__vat {
    display: inline-block;
    margin-top: 8px;
    padding: 3px 10px;
    background: #fef08a;
    color: #713f12;
    font-size: 12px;
    font-weight: 500;
    border-radius: 4px;
}

/* ── Shortcode: product_price ── */
.hacom-price {
    display: flex;
    flex-direction: column;
    gap: 2px;
    line-height: 1.3;
}

.hacom-price-top {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.hacom-price-regular {
    font-size: 14px;
    color: #999;
    text-decoration: line-through;
}

.hacom-price-saving {
    font-size: 13px;
    color: #e02020;
}

.hacom-price-sale {
    font-size: 22px;
    font-weight: 700;
    color: #e02020;
}

/* ── Shortcode: product_star_sku ── */
.hacom-star-sku {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: space-between;
}

.hacom-stars {
    display: flex;
    align-items: center;
    gap: 2px;
}

.hacom-star {
    display: inline-flex;
    width: 18px;
    height: 18px;
    color: #f5a623;
}

.hacom-star.star-empty {
    color: #cccccc;
}

.hacom-star svg {
    width: 100%;
    height: 100%;
}

.hacom-sku {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: #555;
    background-color: #f3f4f6;
    padding: 0px 10px;
    border-radius: 4px;
}

.hacom-sku-label {
    font-weight: 600;
}

.hacom-sku-value {
    font-weight: 400;
}

/* ══════════════════════════════════════════════
   Cart page — Hacom custom layout
   ══════════════════════════════════════════════ */

/* ── Two-column layout ── */
.woocommerce-cart .woocommerce,
.woocommerce-cart .woocommerce-notices-wrapper ~ * {
    width: 100%;
}

.hacom-cart-layout {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.hacom-cart-layout .woocommerce-cart-form {
    flex: 1;
    min-width: 0;
}

.hacom-cart-layout .cart-collaterals {
    width: 320px;
    flex-shrink: 0;
}

/* ── Cart: form stacks cards với gap ── */
.woocommerce-cart-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* ── Cart header card ── */
.hacom-cart-head-card {
    background: #fff;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    overflow: hidden;
}

/* ── Cart items card ── */
.hacom-cart-items-card {
    background: #fff;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    overflow: hidden;
}

/* ── Cart header row (inside its own card — no bottom border needed) ── */
.hacom-cart-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: #fff;
    font-size: 13px;
    font-weight: 600;
    color: #000;
    border-bottom: none;
}

.hacom-cart-head__check {
    width: 28px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.hacom-cart-head__check input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #e02020;
}

.hacom-cart-head__thumb {
    width: 72px;
    flex-shrink: 0;
}

.hacom-cart-head__name {
    flex: 1;
    min-width: 0;
    color: #222;
    font-weight: 600;
    font-size: 13px;
}

.hacom-cart-head__count {
    color: #222;
}

.hacom-cart-head__price {
    width: 130px;
    flex-shrink: 0;
    text-align: center;
}

.hacom-cart-head__qty {
    width: 120px;
    flex-shrink: 0;
    text-align: center;
}

.hacom-cart-head__subtotal {
    width: 120px;
    flex-shrink: 0;
    text-align: center;
}

.hacom-cart-head__remove {
    width: 36px;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    color: #9ca3af;
}

/* ── Cart item row ── */
.hacom-cart-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border-bottom: 1px solid #f3f4f6;
    background: #fff;
    transition: background 0.15s;
}

.hacom-cart-item:last-child {
    border-bottom: none;
}

.hacom-cart-item:hover {
    background: #fafafa;
}

/* Checkbox */
.hacom-cart-item__check {
    width: 28px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.hacom-cart-item__check input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #e02020;
}

/* Thumbnail */
.hacom-cart-item__thumb {
    width: 72px;
    flex-shrink: 0;
}

.hacom-cart-item__thumb img {
    width: 72px;
    height: 72px;
    object-fit: contain;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
    display: block;
}

/* Product info */
.hacom-cart-item__info {
    flex: 1;
    min-width: 0;
}
.woocommerce-message, .woocommerce-info, .woocommerce-error {
    background-color: #fff;
}
.hacom-cart-item__name {
    font-size: 14px;
    font-weight: 500;
    color: #111;
    line-height: 1.4;
    margin-bottom: 4px;
}

.hacom-cart-item__name a {
    color: #111;
    text-decoration: none;
}

.hacom-cart-item__name a:hover {
    color: #e02020;
}

.hacom-cart-item__sku {
    font-size: 12px;
    color: #6b7280;
    margin-top: 2px;
}

.hacom-cart-item__sku span {
    color: #374151;
    font-weight: 500;
}

/* Unit price */
.hacom-cart-item__price {
    width: 130px;
    flex-shrink: 0;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: #e02020;
}

.hacom-cart-item__price ins {
    text-decoration: none;
    font-weight: 700;
    color: #e02020;
}

.hacom-cart-item__price del,
.hacom-cart-item__price .hacom-was-price {
    color: #9ca3af !important;
    font-size: 12px !important;
    font-weight: 400 !important;
    display: block !important;
    text-decoration: line-through !important;
}

.hacom-cart-item__price del .woocommerce-Price-amount,
.hacom-cart-item__price .hacom-was-price .woocommerce-Price-amount {
    color: #9ca3af !important;
    font-weight: 400 !important;
    font-size: 12px !important;
}

.hacom-cart-item__price .woocommerce-Price-amount {
    color: #e02020;
    font-weight: 700;
}

/* Quantity control */
.hacom-cart-item__qty {
    width: 120px;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
}

.hacom-qty-wrap {
    display: inline-flex;
    align-items: center;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    overflow: hidden;
}

.hacom-qty-wrap .hacom-qty-btn {
    width: 30px !important;
    height: 34px !important;
    background: #f9fafb !important;
    border: none !important;
    border-radius: 0 !important;
    font-size: 18px !important;
    font-weight: 300 !important;
    color: #374151 !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    transition: background 0.12s !important;
    box-shadow: none !important;
    padding: 0 !important;
    text-align: center !important;
    white-space: normal !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    min-height: unset !important;
}

.hacom-qty-wrap .hacom-qty-btn:hover,
.hacom-qty-wrap .hacom-qty-btn:focus {
    background: #e5e7eb !important;
    color: #111 !important;
    text-decoration: none !important;
}

.hacom-qty-wrap .quantity {
    display: flex;
    align-items: center;
}

.hacom-qty-wrap input.qty {
    width: 38px;
    height: 34px;
    border: none;
    border-left: 1px solid #d1d5db;
    border-right: 1px solid #d1d5db;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: #111;
    outline: none;
    box-shadow: none;
    -moz-appearance: textfield;
    background: #fff;
    padding: 0;
    border-radius: 0;
}

.hacom-qty-wrap input.qty::-webkit-outer-spin-button,
.hacom-qty-wrap input.qty::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Subtotal */
.hacom-cart-item__subtotal {
    width: 120px;
    flex-shrink: 0;
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    color: #e02020;
}

.hacom-cart-item__subtotal .woocommerce-Price-amount {
    color: #e02020;
    font-weight: 700;
}

/* Remove button */
.hacom-cart-item__remove {
    width: 36px;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
}

.hacom-remove-item {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.15s;
}

.hacom-remove-item:hover {
    color: #e02020;
}

/* ── Reset WooCommerce layout overrides on cart_totals ── */
.hacom-cart-layout .cart-collaterals .cart_totals {
    float: none !important;
    width: 100% !important;
    clear: none !important;
}

/* ── Totals outer wrapper — chỉ là flex container, không có card style ── */
.hacom-totals-wrap {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

/* ── Mỗi card trong sidebar ── */
.hacom-totals-card {
    background: #fff;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}

/* Voucher box — nằm trong hacom-voucher-card riêng */
.hacom-voucher-box {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 14px;
}

.hacom-voucher-box__icon {
    color: #e02020;
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.hacom-voucher-box__text {
    flex: 1;
    min-width: 0;
}

.hacom-voucher-box__title {
    font-size: 13px;
    font-weight: 600;
    color: #111;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hacom-voucher-box__desc {
    font-size: 11px;
    color: #6b7280;
    margin-top: 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hacom-voucher-box .hacom-voucher-box__btn {
    flex-shrink: 0 !important;
    padding: 6px 12px !important;
    background: #e02020 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 6px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    font-family: inherit !important;
    transition: opacity 0.15s !important;
    box-shadow: none !important;
    letter-spacing: normal !important;
    text-transform: none !important;
    display: inline-block !important;
    white-space: nowrap !important;
    text-align: center !important;
    text-decoration: none !important;
    line-height: 1.4 !important;
}

.hacom-voucher-box .hacom-voucher-box__btn:hover,
.hacom-voucher-box .hacom-voucher-box__btn:focus {
    opacity: 0.85 !important;
    color: #fff !important;
    background: #e02020 !important;
    text-decoration: none !important;
}

/* Coupon input form */
.hacom-coupon-form {
    padding: 10px 14px;
    border-bottom: 1px solid #f3f4f6;
    background: #fafafa;
}

.hacom-coupon-row {
    display: flex;
    gap: 6px;
}

.hacom-coupon-input {
    flex: 1;
    min-width: 0;
    border: 1px solid #d1d5db !important;
    border-radius: 6px !important;
    padding: 7px 10px !important;
    font-size: 13px !important;
    font-family: inherit !important;
    outline: none !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.hacom-coupon-input:focus {
    border-color: #e07b00 !important;
}

.hacom-coupon-row .hacom-coupon-apply {
    flex-shrink: 0 !important;
    padding: 7px 12px !important;
    background: #e02020 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 6px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    font-family: inherit !important;
    white-space: nowrap !important;
    box-shadow: none !important;
    letter-spacing: normal !important;
    text-transform: none !important;
    transition: opacity 0.15s !important;
    text-align: center !important;
    display: inline-block !important;
    line-height: 1.4 !important;
}

.hacom-coupon-row .hacom-coupon-apply:hover,
.hacom-coupon-row .hacom-coupon-apply:focus {
    opacity: 0.85 !important;
    background: #e02020 !important;
    color: #fff !important;
    text-decoration: none !important;
}

/* Applied coupon tag */
.hacom-coupon-tag {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 14px;
    border-bottom: 1px solid #f3f4f6;
    font-size: 13px;
    gap: 6px;
}

.hacom-coupon-tag__label {
    color: #374151;
    flex: 1;
    min-width: 0;
}

.hacom-coupon-tag__amount {
    color: #16a34a;
    font-weight: 600;
    text-align: right;
}

.hacom-coupon-tag__amount .woocommerce-remove-coupon {
    margin-left: 6px;
    color: #9ca3af;
    font-size: 12px;
    text-decoration: none;
}

/* Order info box — nằm trong hacom-order-card, border phân cách với checkout button */
.hacom-order-info-box {
    padding: 12px 14px;
    border-bottom: 1px solid #e5e7eb;
}

.hacom-order-info-box__title {
    font-size: 14px;
    font-weight: 700;
    color: #111;
    margin: 0 0 10px;
    padding: 0;
    line-height: 1.3;
}

.hacom-order-info-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    padding: 5px 0;
    font-size: 13px;
    color: #374151;
    border-bottom: 1px dashed #f3f4f6;
}

.hacom-order-info-row:last-of-type {
    border-bottom: none;
}

.hacom-order-info-row > span:last-child {
    text-align: right;
    flex-shrink: 0;
}

/* Shipping table — wc_cart_totals_shipping_html() outputs <tr> elements */
.hacom-shipping-table {
    width: 100%;
    border-collapse: collapse;
    border: none !important;
    background: none !important;
    margin: 0 !important;
    font-size: 13px;
}

.hacom-shipping-table tr {
    background: none !important;
}

.hacom-shipping-table tr:hover td,
.hacom-shipping-table tr:hover th {
    background: none !important;
}

.hacom-shipping-table th,
.hacom-shipping-table td {
    border: none !important;
    padding: 4px 0 !important;
    vertical-align: top !important;
    line-height: 1.5 !important;
    background: none !important;
    font-size: 13px !important;
    color: #374151 !important;
}

.hacom-shipping-table th {
    font-weight: 600 !important;
    width: 40% !important;
    padding-right: 8px !important;
}

.hacom-shipping-table ul.woocommerce-shipping-methods {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.hacom-shipping-table ul.woocommerce-shipping-methods li {
    margin: 0 0 4px !important;
    padding: 0 !important;
}

.hacom-shipping-table label {
    font-size: 12px !important;
    color: #374151 !important;
    cursor: pointer !important;
}

.hacom-shipping-table .woocommerce-Price-amount {
    font-weight: 600 !important;
    color: #374151 !important;
}

.hacom-shipping-table p.woocommerce-shipping-destination {
    font-size: 11px !important;
    color: #6b7280 !important;
    margin: 4px 0 0 !important;
}

.hacom-shipping-table a.shipping-calculator-button {
    font-size: 12px !important;
    color: #e07b00 !important;
}

/* Order total row */
.hacom-order-total-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 0 0;
    margin-top: 4px;
    border-top: 1px solid #e5e7eb;
}

.hacom-order-total-label {
    font-size: 14px;
    font-weight: 600;
    color: #111;
    padding-top: 4px;
    flex-shrink: 0;
}

.hacom-order-total-right {
    text-align: right;
}

.hacom-order-total-amount {
    font-size: 18px;
    font-weight: 700;
    color: #e02020;
    display: block;
    line-height: 1.2;
}

.hacom-order-total-amount .woocommerce-Price-amount {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #e02020 !important;
}

.hacom-order-vat {
    font-size: 11px;
    color: #6b7280;
    font-weight: 400;
    margin-top: 2px;
}

/* Checkout button */
.hacom-checkout-actions {
    padding: 12px 14px;
}

.hacom-checkout-actions .hacom-checkout-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    width: 100% !important;
    padding: 12px 16px !important;
    background: #e02020 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 8px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    cursor: pointer !important;
    transition: background 0.15s !important;
    box-sizing: border-box !important;
    font-family: inherit !important;
    letter-spacing: normal !important;
    text-transform: none !important;
    white-space: nowrap !important;
    line-height: 1.4 !important;
}

.hacom-checkout-actions .hacom-checkout-btn svg {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
}

.hacom-checkout-actions .hacom-checkout-btn:hover,
.hacom-checkout-actions .hacom-checkout-btn:focus {
    background: #c01010 !important;
    color: #fff !important;
    text-decoration: none !important;
}

/* ── Hide default WooCommerce table styles on cart ── */
.woocommerce-cart .woocommerce-cart-form table.shop_table {
    display: none;
}

/* ── Hide the cross-sells section ── */
.woocommerce-cart .cross-sells {
    display: none;
}

/* ── Responsive ── */
@media (max-width: 900px) {
    .hacom-cart-layout {
        flex-direction: column;
    }

    .hacom-cart-layout .cart-collaterals {
        width: 100%;
    }

    .hacom-cart-head__price,
    .hacom-cart-head__qty,
    .hacom-cart-head__subtotal,
    .hacom-cart-item__price,
    .hacom-cart-item__qty,
    .hacom-cart-item__subtotal {
        width: 90px;
    }
}

@media (max-width: 640px) {
    .hacom-cart-head {
        display: none;
    }

    .hacom-cart-item {
        flex-wrap: wrap;
        position: relative;
        padding: 12px;
    }

    .hacom-cart-item__info {
        width: calc(100% - 110px);
    }

    .hacom-cart-item__price,
    .hacom-cart-item__subtotal {
        width: auto;
        flex: 1;
        text-align: left;
    }

    .hacom-cart-item__qty {
        width: auto;
    }

    .hacom-cart-item__remove {
        position: absolute;
        top: 12px;
        right: 12px;
    }
}

/* ── Shortcode: product_qty_atc ── */
.hacom-qty-atc { display: flex; flex-direction: column; gap: 10px; }
.hacom-qty-atc__top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.hacom-qty-atc__qty-wrap { display: flex; align-items: center; gap: 10px; }
.hacom-qty-atc__label { font-size: 14px; font-weight: 600; color: #374151; white-space: nowrap; }
.hacom-qty-atc__qty { display: flex; align-items: center; border: 1px solid #d1d5db; border-radius: 6px; overflow: hidden; }
.hacom-qty-atc__btn { width: 36px; height: 36px; background: #f3f4f6; border: none; cursor: pointer; font-size: 18px; line-height: 1; display: flex; align-items: center; justify-content: center; color: #374151; transition: background .15s; flex-shrink: 0; }
.hacom-qty-atc__btn:hover { background: #e5e7eb; }
.hacom-qty-atc__input { width: 44px; height: 36px; border: none; border-left: 1px solid #d1d5db; border-right: 1px solid #d1d5db; text-align: center; font-size: 14px; font-weight: 600; color: #111827; -moz-appearance: textfield; }
.hacom-qty-atc__input::-webkit-inner-spin-button,
.hacom-qty-atc__input::-webkit-outer-spin-button { -webkit-appearance: none; }
.hacom-qty-atc__cart-btn { height: 36px; padding: 0 14px; background: #f3f4f6; border: 1px solid #d1d5db; border-radius: 6px; font-size: 13px; font-weight: 600; color: #374151; cursor: pointer; white-space: nowrap; transition: background .15s, color .15s, border-color .15s; }
.hacom-qty-atc__cart-btn:hover:not(:disabled) { background: #e5e7eb; }
.hacom-qty-atc__cart-btn.in-cart { background: #ecfdf5; border-color: #6ee7b7; color: #065f46; }
.hacom-qty-atc__cart-btn:disabled { opacity: .6; cursor: default; }
.hacom-qty-atc__buy-btn { display: flex; flex-direction: column; align-items: center; justify-content: center; background: #e31e24; border-radius: 8px; padding: 12px 20px; text-decoration: none; gap: 2px; }
.hacom-qty-atc__buy-main { font-size: 16px; font-weight: 700; color: #fff; letter-spacing: .5px; }
.hacom-qty-atc__buy-sub { font-size: 12px; color: rgba(255,255,255,.9); }
.hacom-qty-atc__buy-btn:hover { background: #c41a1f; }

/* ── product_filter: attribute row ── */
.hacom-filter--attrs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 8px; }
.hacom-filter-attrs__title { font-size: 13px; font-weight: 600; color: #374151; white-space: nowrap; width: 100%; }

/* ── Shortcode: product_attrs ── */
.hacom-pa { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.hacom-pa__item { display: inline-flex; align-items: center; gap: 3px; background: #f3f4f6; border-radius: 20px; padding: 5px 14px; font-size: 12px; color: #111827; line-height: 1.5; white-space: nowrap; }
.hacom-pa__label { font-weight: 600; }
.hacom-pa__value { font-weight: 400; }

/* ── Shortcode: child_categories ── */
.hacom-cat-chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.hacom-cat-chip { display: inline-block; padding: 5px 14px; background: #fff; border: 1px solid #d1d5db; border-radius: 10px; font-size: 13px; font-weight: 600; color: #111827; text-decoration: none; white-space: nowrap; line-height: 1.5; transition: background 0.15s, border-color 0.15s; }
.hacom-cat-chip:hover { background: #f3f4f6; border-color: #9ca3af; color: #111827; }
.hacom-cat-chip--all { background: #22c55e; border-color: #22c55e; color: #fff; }
.hacom-cat-chip--all:hover { background: #16a34a; border-color: #16a34a; color: #fff; }

/* ── Shortcode: order_lookup ── */
.hacom-ol__error { background: #fef2f2; border: 1px solid #fecaca; color: #dc2626; border-radius: 8px; padding: 12px 16px; font-size: 14px; margin-bottom: 20px; }

.hacom-ol__form { border: 1px solid #e5e7eb; border-radius: 12px; padding: 24px; }
.hacom-ol__fields { display: flex; gap: 16px; margin-bottom: 16px; }
.hacom-ol__field { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.hacom-ol__label { font-size: 13px; font-weight: 600; color: #374151; }
.hacom-ol__input { border: 1px solid #d1d5db; border-radius: 8px; padding: 10px 14px; font-size: 14px; font-family: inherit; outline: none; background: #fff; }
.hacom-ol__input:focus { border-color: #3b82f6; }
#hacom-ol-form .hacom-ol__btn { width: 100%; padding: 12px; background: #e02020; color: #fff; border: none; border-radius: 8px; font-size: 15px; font-weight: 700; cursor: pointer; font-family: inherit; transition: background 0.15s; }
#hacom-ol-form .hacom-ol__btn:hover { background: #c01a1a; }

.hacom-ol__result { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 20px; margin-bottom: 24px; }
.hacom-ol__header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid #f3f4f6; }
.hacom-ol__order-num { font-size: 17px; font-weight: 700; color: #111; }
.hacom-ol__date { font-size: 13px; color: #6b7280; margin-top: 3px; }
.hacom-ol__status { font-size: 13px; font-weight: 600; padding: 4px 12px; border-radius: 20px; border: 1px solid; white-space: nowrap; }

.hacom-ol__items { width: 100%; border-collapse: collapse; font-size: 14px; margin-bottom: 16px; }
.hacom-ol__items th { text-align: left; font-size: 12px; font-weight: 600; color: #6b7280; padding: 10px; border-bottom: 1px solid #e5e7eb; }
.hacom-ol__th-qty, .hacom-ol__td-qty { text-align: center; width: 40px; }
.hacom-ol__th-total, .hacom-ol__td-total { text-align: right; white-space: nowrap; }
.hacom-ol__items td { padding: 10px; border-bottom: 1px solid #f3f4f6; vertical-align: middle; color: #111; }
.hacom-ol__product-name { color: #111; text-decoration: none; font-weight: 500; }
.hacom-ol__product-name:hover { color: #3b82f6; }

.hacom-ol__totals { display: flex; flex-direction: column; gap: 6px; padding: 12px 0; border-top: 1px solid #e5e7eb; margin-bottom: 16px; }
.hacom-ol__total-row { display: flex; justify-content: space-between; font-size: 14px; color: #374151; }
.hacom-ol__total-row--grand { font-size: 16px; font-weight: 700; color: #e02020; padding-top: 8px; border-top: 1px dashed #e5e7eb; margin-top: 4px; }

.hacom-ol__address { background: #f9fafb; border-radius: 8px; padding: 14px 16px; font-size: 13px; color: #374151; line-height: 1.7; }
.hacom-ol__address-title { font-weight: 700; font-size: 13px; color: #111; margin-bottom: 6px; }

@media (max-width: 540px) {
    .hacom-ol__fields { flex-direction: column; }
}

/* ── Loyalty: widget thanh toán ── */
.hacom-loyalty-checkout { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #fffbeb; border: 1px solid #fde68a; border-radius: 10px; padding: 12px 16px; margin-bottom: 16px; flex-wrap: wrap; }
.hacom-loyalty-checkout__info { display: flex; align-items: center; gap: 8px; font-size: 14px; color: #374151; }
.hacom-loyalty-checkout__star { font-size: 18px; }
.hacom-loyalty-checkout__btn { padding: 7px 18px; border-radius: 20px; border: 2px solid #f59e0b; background: #fff; color: #b45309; font-size: 13px; font-weight: 600; cursor: pointer; transition: background .15s, color .15s; white-space: nowrap; }
.hacom-loyalty-checkout__btn:hover { background: #fef3c7; }
.hacom-loyalty-checkout__btn--active { background: #f59e0b; color: #fff; border-color: #f59e0b; }
.hacom-loyalty-checkout__btn--active:hover { background: #d97706; border-color: #d97706; }

/* ── Loyalty: dashboard My Account ── */
.hacom-loyalty-dashboard { background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 12px; padding: 20px 24px; margin-top: 24px; }
.hacom-loyalty-dashboard__title { font-size: 16px; font-weight: 700; color: #111; margin: 0 0 12px; }
.hacom-loyalty-dashboard__balance { display: flex; align-items: baseline; gap: 10px; margin: 0 0 6px; }
.hacom-loyalty-dashboard__pts { font-size: 28px; font-weight: 800; color: #f59e0b; }
.hacom-loyalty-dashboard__val { font-size: 14px; color: #6b7280; }
.hacom-loyalty-dashboard__rule { font-size: 13px; color: #6b7280; margin: 0 0 16px; }
.hacom-loyalty-dashboard__history { width: 100%; border-collapse: collapse; font-size: 13px; }
.hacom-loyalty-dashboard__history th { text-align: left; padding: 8px 10px; background: #f3f4f6; color: #374151; font-weight: 600; border-bottom: 1px solid #e5e7eb; }
.hacom-loyalty-dashboard__history td { padding: 8px 10px; border-bottom: 1px solid #f3f4f6; color: #374151; }
.hacom-loyalty-dashboard__delta { font-weight: 700; text-align: right; }
.hacom-loyalty-dashboard__delta--plus  { color: #16a34a; }
.hacom-loyalty-dashboard__delta--minus { color: #dc2626; }
