/* ================================
   PCCC TB BAC NINH - Custom Styles
   v2.0 — Consolidated (inline + file)
   ================================ */

/* ===== GLOBAL FONT: Roboto (Exclude Icons) ===== */
body, p, h1, h2, h3, h4, h5, h6, a, li, div, input, textarea, select, button,
.nav > li > a, .header-nav, .product-title, .widget, .sidebar {
    font-family: "Roboto", sans-serif !important;
}
span:not([class*="icon"]):not(.icon-inner):not(.fl-icon), i:not([class*="icon"]):not(.icon-inner):not(.fl-icon) {
    font-family: "Roboto", sans-serif;
}

/* ===== HEADER: Elevated & Prominent ===== */
.header-wrapper {
    position: relative;
    z-index: 999;
}
.header-main {
    background: #ffffff !important;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1) !important;
    border-bottom: 2px solid #DC2626 !important;
    padding: 5px 0 !important;
}
/* ===== SITE WIDTH: 1340px Sync ===== */
.container, .row, .header-main .header-inner,
.header-top .header-inner,
.header-bottom .header-inner,
.page-wrapper, .shop-container {
    max-width: 1340px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}
/* Top bar content constrained */
.top-divider > .flex-row,
.header-top > div,
.absolute-footer > .container,
.header-top .flex-row {
    max-width: 1340px !important;
    margin: 0 auto !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
}
/* Header nav links */
.header-nav .nav > li > a {
    color: #1E3A5F !important;
    font-weight: 500 !important;
    font-size: 0.95rem !important;
    letter-spacing: 0.5px;
}
.header-nav .nav > li > a:hover,
.header-nav .nav > li.active > a,
.header-nav .nav > li.current-menu-item > a {
    color: #DC2626 !important;
}
/* Logo size */
.header-logo img { max-height: 60px !important; }

/* ===== QUICK VIEW: Hidden ===== */
.quick-view, .quick-view-added, .is-quick-view,
button.quick-view, .quick-view-button,
.has-quick-view .quick-view { display: none !important; }
.product-title { text-transform: none !important; }

/* ===== COMMENTS: Hidden ===== */
.comments-area, #comments, .comment-respond,
.woocommerce-Reviews, #review_form { display: none !important; }

/* ===== PRODUCT GRID UNIFORM SIZING ===== */
.product-small .box-image {
    height: 250px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #ffffff;
    overflow: hidden !important;
}
.product-small .box-image img {
    max-height: 100% !important;
    width: auto !important;
    object-fit: contain !important;
}
.product-small .name {
    height: 44px !important;
    line-height: 22px !important;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.product-small .category, .product-small .category a {
    color: #666 !important;
    font-weight: 500 !important;
}
/* Product Sidebar Widgets */
.widget_product_categories ul li a {
    color: #333 !important;
}
.widget_product_categories ul li a:hover {
    color: #DC2626 !important;
}

/* ===== TOP BAR ===== */
.top-bar {
    background-color: #1E3A5F !important;
    font-size: 0.85rem;
}

/* ===== FOOTER: Dark Navy ===== */
.footer-wrapper,
#footer,
footer.footer-wrapper {
    background-color: #1E3A5F !important;
    color: #ffffff !important;
    padding: 40px 0 !important;
}
.footer-wrapper h3,
.footer-wrapper h4,
#footer h3,
#footer h4 {
    color: #ffffff !important;
    font-size: 1rem;
    letter-spacing: 1px;
    margin-bottom: 15px;
    text-transform: uppercase;
}
.footer-wrapper p,
.footer-wrapper li,
.footer-wrapper a,
#footer p,
#footer li,
#footer a {
    color: rgba(255,255,255,0.85) !important;
}
.footer-wrapper a:hover,
#footer a:hover {
    color: #DC2626 !important;
}
.footer-wrapper ul,
#footer ul {
    list-style: none;
    padding-left: 0;
}
.footer-wrapper ul li,
#footer ul li {
    margin-bottom: 8px;
}

/* Absolute footer (copyright bar) */
.absolute-footer {
    background-color: #152d4a !important;
    color: rgba(255,255,255,0.8) !important;
    border-top: 1px solid rgba(255,255,255,0.1);
}
.absolute-footer a, .absolute-footer .copyright-footer {
    color: rgba(255,255,255,0.8) !important;
}

/* Flatsome UX Block footer override */
.footer-block .row {
    background-color: #1E3A5F !important;
    padding: 30px !important;
}
.footer-block h3 { color: #fff !important; }
.footer-block p, .footer-block a, .footer-block li {
    color: rgba(255,255,255,0.85) !important;
}

/* ===== FEATURED BOX ICONS ===== */
.icon-box .icon-inner {
    color: #DC2626 !important;
}

/* ===== PRICING TABLE ===== */
.ux-price-table.featured {
    border-color: #DC2626 !important;
}

/* ===== BUTTONS ===== */
.button.alert, a.button.alert {
    background-color: #DC2626 !important;
}
.button.alert:hover {
    background-color: #b91c1c !important;
}

/* ===== CONTACT FORM 7 STYLING ===== */
.pccc-form-grid { width: 100%; }
.pccc-form-row { display: flex; gap: 15px; margin-bottom: 15px; }
.pccc-form-col { flex: 1; }
.pccc-form-col-full { width: 100%; }
.pccc-form-grid label {
    display: block; color: #1E3A5F; font-weight: 500;
    margin-bottom: 6px; font-size: 0.9rem;
}
.pccc-form-grid label .required { color: #DC2626; }
.pccc-form-grid input[type="text"],
.pccc-form-grid input[type="email"],
.pccc-form-grid input[type="tel"],
.pccc-form-grid select,
.pccc-form-grid textarea {
    width: 100% !important; padding: 12px 15px !important;
    border: 1px solid #d1d5db !important; border-radius: 8px !important;
    font-size: 0.95rem !important; outline: none !important;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: "Roboto", sans-serif !important;
    background: #f8fafc !important; color: #333 !important;
    height: auto !important; min-height: 48px !important;
    line-height: normal !important;
}
.pccc-form-grid input:focus,
.pccc-form-grid select:focus,
.pccc-form-grid textarea:focus {
    border-color: #DC2626 !important;
    box-shadow: 0 0 0 3px rgba(220,38,38,0.1) !important;
}
.pccc-form-grid textarea { min-height: 120px; resize: vertical; }
.pccc-form-submit { text-align: center; margin-top: 10px; }
.wpcf7 form input[type="submit"].pccc-submit-btn,
.wpcf7 form input[type="submit"].wpcf7-submit,
.wpcf7 form .pccc-submit-btn {
    background-color: #DC2626 !important; color: #ffffff !important;
    border: none !important; padding: 14px 50px !important;
    border-radius: 99px !important; font-size: 1rem !important;
    font-weight: 700 !important; cursor: pointer !important;
    transition: background 0.3s !important; letter-spacing: 0.5px !important;
    height: auto !important; width: auto !important;
    display: inline-block !important; text-transform: uppercase !important;
}
.wpcf7 form input[type="submit"].pccc-submit-btn:hover,
.wpcf7 form input[type="submit"].wpcf7-submit:hover,
.wpcf7 form .pccc-submit-btn:hover {
    background-color: #b91c1c !important; color: #ffffff !important;
}
.pccc-form-note {
    color: #888; font-size: 0.8rem; margin-top: 10px;
}
.wpcf7-response-output {
    border-radius: 8px !important; padding: 12px 20px !important;
    margin: 15px 0 0 !important; font-size: 0.9rem;
}
.wpcf7 form.sent .wpcf7-response-output {
    border-color: #22c55e !important; background: #f0fdf4 !important; color: #166534 !important;
}
.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.invalid .wpcf7-response-output {
    border-color: #DC2626 !important; background: #fef2f2 !important; color: #991b1b !important;
}
.wpcf7-not-valid-tip {
    color: #DC2626 !important; font-size: 0.85rem !important; margin-top: 5px;
    background: transparent !important; border: none !important;
    display: block !important; padding-left: 2px !important;
}
.wpcf7-spinner { display: none; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .pccc-form-row { flex-direction: column; gap: 10px; }
}

/* Ẩn danh mục Chua phan loai (ID: 15) */
.cat-item-15 { display: none !important; }

/* ===== GIAI ĐOẠN 2 FIXES ===== */
.banner h1, .banner h2 { font-size: 2.2rem !important; line-height: 1.2; }
@media (min-width: 850px) {
  .banner h1, .banner h2 { font-size: 2.8rem !important; white-space: nowrap; }
}
@media (max-width: 549px) {
  .banner .flex-row { flex-direction: column !important; gap: 10px; }
  .banner .button { width: 100%; margin-bottom: 10px; }
}
/* Floating Zalo */
.zalo-floating {
    position: fixed; bottom: 20px; right: 20px; z-index: 9999;
    width: 60px; height: 60px; background: #0068ff; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2); animation: pulse 2s infinite;
}
.zalo-floating img { width: 35px; height: 35px; }
@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0, 104, 255, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 15px rgba(0, 104, 255, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0, 104, 255, 0); }
}

/* Ẩn icon thanh toán */
.payment-icons { display: none !important; }
