/* ======================================================
   FHC Automation Store — Frontend Styles
   Áp dụng cho WooCommerce shop, category, single product
   Tuân theo Fluent 2 Design + Pixwell-Vite Tailwind v4
   ====================================================== */

/* ── Product Loop Card ── */
.fhc-automation-shop .products.wc-col-3 > li,
.fhc-automation-shop .products.wc-col-4 > li {
    margin-bottom: 28px;
}

.fhc-automation-shop .content-product,
.fhc-automation-shop .woocommerce ul.products li.product {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
    border: 1px solid #e2e8f0;
    background: #fff;
}

.fhc-automation-shop .woocommerce ul.products li.product:hover {
    box-shadow: 0 8px 24px rgba(0, 120, 212, 0.12);
    transform: translateY(-3px);
}

/* Tech badge row on product card */
.fhc-automation-shop .fhc-card-tech-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    padding: 0 12px 12px;
}

/* Price highlight */
.fhc-automation-shop .woocommerce ul.products li.product .price {
    color: #0078d4;
    font-weight: 700;
    font-size: 1.1em;
}

/* ── Category Filter Bar ── */
.fhc-category-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 32px;
    padding: 16px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.fhc-category-filter-bar a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    border: 1.5px solid transparent;
    transition: all 0.2s ease;
    background: #fff;
    color: #475569;
    border-color: #cbd5e1;
}

.fhc-category-filter-bar a:hover,
.fhc-category-filter-bar a.active {
    background: #eff6ff;
    color: #1d4ed8;
    border-color: #bfdbfe;
}

/* ── Single Product Enhancement ── */
.single-product .fhc-product-meta {
    font-family: inherit;
}

.single-product .fhc-bacs-note {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 8px;
    padding: 12px 16px;
    margin-top: 10px;
    font-size: 13px;
    line-height: 1.7;
}

/* ── Add to Cart Button override for Automation products ── */
.single-product.product-cat-n8n-workflows .single_add_to_cart_button,
.single-product.product-cat-appsheet-apps .single_add_to_cart_button,
.single-product.product-cat-excel-google-sheets .single_add_to_cart_button,
.single-product.product-cat-telegram-bots .single_add_to_cart_button,
.single-product.product-cat-automation-bundles .single_add_to_cart_button {
    background: linear-gradient(135deg, #0078d4 0%, #0284c7 100%);
    border: none;
    border-radius: 10px;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.01em;
    box-shadow: 0 4px 14px rgba(0, 120, 212, 0.3);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.single-product .single_add_to_cart_button:hover {
    box-shadow: 0 6px 20px rgba(0, 120, 212, 0.4) !important;
    transform: translateY(-1px);
}

/* ── Shop page header ── */
.fhc-shop-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #0369a1 100%);
    color: #fff;
    padding: 60px 0 40px;
    text-align: center;
    margin-bottom: 40px;
}

.fhc-shop-hero h1 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    margin-bottom: 12px;
    color: #fff;
}

.fhc-shop-hero p {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .fhc-category-filter-bar {
        gap: 6px;
    }
    .fhc-category-filter-bar a {
        font-size: 12px;
        padding: 6px 12px;
    }
    .fhc-shop-hero {
        padding: 40px 16px 30px;
    }
}
