:root {
    --main-color: #F17B2A;
}

::selection {
    background: #39f;
    color: #fff;
    text-shadow: none;
}

@font-face {
    font-family: Averta;
    src: local(Averta Semi bold), url(../font/Averta/Averta-Semibold.woff2);
    src: url(../font/Averta/Averta-Semibold.woff2) format("truetype");
    font-weight: 600;
}

@font-face {
    font-family: Averta;
    src: local(Averta Regular), url(../font/Averta/Averta-Regular.woff2);
    src: url(../font/Averta/Averta-Regular.woff2) format("truetype");
    font-weight: 400;
}

@font-face {
    font-family: Averta Italic;
    src: local(Averta Regular Italic), url(../font/Averta/Averta-RegularItalic.woff2);
    src: url(../font/Averta/Averta-RegularItalic.woff2) format("truetype");
    font-weight: 400;
}

@font-face {
    font-family: Averta;
    src: local(Averta Bold), url(../font/Averta/Averta-Bold.woff2);
    src: url(../font/Averta/Averta-Bold.woff2) format("truetype");
    font-weight: 700;
}

@font-face {
    font-family: Averta Italic;
    src: local(Averta Bold Italic), url(../font/Averta/Averta-BoldItalic.woff2);
    src: url(../font/Averta/Averta-BoldItalic.woff2) format("truetype");
    font-weight: 700;
}

@font-face {
    font-family: Averta;
    src: local(Averta Extra Bold), url(../font/Averta/Averta-ExtraBold.woff2);
    src: url(../font/Averta/Averta-ExtraBold.woff2) format("truetype");
    font-weight: 800;
}

@font-face {
    font-family: Averta;
    src: local(Averta Black), url(../font/Averta/Averta-Black.woff2);
    src: url(../font/Averta/Averta-Black.woff2) format("truetype");
    font-weight: 900;
}

.blocker {
    z-index: 999 !important
}

.chiphi .btn-quotation {
    border: 0px;
    padding: 5px 40px;
}

.box,
.box-image,
.box-text {
    transition: opacity 0.3s, transform 0.3s, background-color 0.3s;
    margin: 0 auto;
    position: relative;
    width: 100%;
}

.box-image {
    height: auto;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
}

.has-format,
.image-cover,
.video-fit {
    background-position: 50% 50%;
    background-size: cover;
    height: auto;
    overflow: hidden;
    padding-top: 100%;
    position: relative;
}

.box-image img {
    margin: 0 auto;
    max-width: 100%;
    width: 100%;
}

.has-equal-box-heights .box-image img,
.has-format img,
.image-cover img,
.video-fit iframe,
.video-fit video,
img.back-image {
    bottom: 0;
    font-family: "object-fit: cover;";
    height: 100%;
    left: 0;
    -o-object-fit: cover;
    object-fit: cover;
    -o-object-position: 50% 50%;
    object-position: 50% 50%;
    position: absolute;
    right: 0;
    top: 0;
    width: 100%;
}

.has-hover .bg,
.has-hover [class*="image-"] img {
    transition: filter 0.6s, opacity 0.6s, transform 0.6s, box-shadow 0.3s;
}

/* File: public/css/product-cards.css */
/* Wrapper để tránh đụng style global */
/* .product-cards-wrapper{ display: none; } */

/* =========================
   OVERRIDE: Product cards — final polish
   Dán vào cuối style.css
   ========================= */

/* fallback biến màu (nếu chưa khai báo ở chỗ khác) */
:root {
    --pc-accent: #f36b21;
    /* primary cam */
    --pc-accent-dark: #d95318;
    --pc-blue: #0b5fa8;
    --pc-muted: #55616a;
}

/* --- Wrapper nhỏ gọn --- */
.product-cards-wrapper {
    max-width: 1180px;
    margin: 0 auto 48px;
    padding: 28px 20px;
}

/* --- Grid: giữ 4/2/1 cột --- */
.product-cards-wrapper .card-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
    align-items: stretch;
}

@media (max-width:1100px) {
    .product-cards-wrapper .card-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width:700px) {
    .product-cards-wrapper .card-row {
        grid-template-columns: 1fr;
    }
}

/* --- Card: equal height, nhẹ nhàng --- */
.product-cards-wrapper .card {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    border-radius: 12px;
    border: 1px solid rgba(11, 61, 102, 0.05);
    box-shadow: 0 12px 34px rgba(11, 61, 102, 0.06);
    overflow: hidden;
    transition: transform .16s ease, box-shadow .16s ease;
    height: 100%;
    /* để grid stretch */
    min-height: 640px;
    /* tuỳ chỉnh nếu cần (desktop) */
}

/* hover nhẹ */
.product-cards-wrapper .card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 48px rgba(11, 61, 102, 0.10);
}

/* --- Card top: badges + thumb + price --- */
.product-cards-wrapper .card-top {
    padding: 18px;
    display: block;
}

.product-cards-wrapper .badges {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}

/* badges nhỏ, bo tròn */
.product-cards-wrapper .badge {
    font-size: 12px;
    padding: 5px 8px;
    border-radius: 12px;
    font-weight: 700;
    line-height: 1;
}

.product-cards-wrapper .badge.red {
    background: var(--pc-accent);
    box-shadow: none;
}

/* .product-cards-wrapper .badge.blue {
    background: var(--pc-blue);
} */

/* thumbnail giữ tỷ lệ, căn giữa, bo góc */
.product-cards-wrapper .thumb {
    border-radius: 10px;
    padding: 10px;
    background: linear-gradient(180deg, rgba(243, 107, 33, 0.04), rgba(11, 61, 102, 0.02));
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.product-cards-wrapper .thumb img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    /* giữ crop giống design */
    border-radius: 8px;
    display: block;
}

/* price box: to, rõ ràng, đặt dưới thumb */
.product-cards-wrapper .pricebox {
    margin-top: 12px;
    margin-left: 6px;
    margin-right: 6px;
    background: rgba(11, 61, 102, 0.03);
    border-radius: 10px;
    padding: 14px 12px;
    text-align: center;
}

.product-cards-wrapper .pricebox .small {
    color: var(--pc-muted);
    font-size: 13px;
    margin-bottom: 6px;
    display: block;
}

.product-cards-wrapper .pricebox .price {
    font-size: 20px;
    font-weight: 800;
    color: var(--pc-accent-dark);
}

/* --- Card body: thông tin + buttons --- */
/* cho card-body chiếm phần còn lại, để actions dính dưới */
.product-cards-wrapper .card-body {
    padding: 14px 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1 1 auto;
}

/* specs: gọn, dễ đọc */
.product-cards-wrapper .specs {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.product-cards-wrapper .spec {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 8px 0;
    border-bottom: 1px solid rgba(11, 61, 102, 0.03);
}

.product-cards-wrapper .spec dt {
    font-weight: 600;
    color: #0f172a;
    font-size: 14px;
}

.product-cards-wrapper .spec dd {
    margin: 0;
    color: #23343f;
    font-weight: 700;
    font-size: 14px;
}

/* nếu dd quá dài xuống 2 dòng, cho wrap đẹp */
.product-cards-wrapper .spec dd,
.product-cards-wrapper .spec dt {
    word-break: break-word;
}

/* File: public/css/product-cards.css
   Replace only the .actions / .btn block with this for polished buttons
*/

/* Buttons container: cân bằng, padding hợp lý */
.product-cards-wrapper .card-body .actions {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    padding-bottom: 6px;
    box-sizing: border-box;
    width: 100%;
}

/* Reset dangerous inherited sizes */
.product-cards-wrapper .card-body .actions .btn {
    box-sizing: border-box;
    min-width: 0;
    white-space: nowrap;
    line-height: 1;
    transition: transform .14s ease, box-shadow .14s ease, background-color .14s ease;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Outline button - left: nhẹ nhàng, chiếm phần còn lại */
.product-cards-wrapper .card-body .actions .btn.outline {
    flex: 1 1 auto;
    /* chiếm không gian còn lại */
    padding: 10px 14px;
    border-radius: 10px;
    border: 2px solid rgba(11, 61, 102, 0.10);
    background: #ffffff;
    color: var(--pc-blue, #0b5fa8);
    box-shadow: 0 4px 10px rgba(11, 61, 102, 0.03);
    text-decoration: none;
    text-align: center;
}

/* outline hover */
.product-cards-wrapper .card-body .actions .btn.outline:hover,
.product-cards-wrapper .card-body .actions .btn.outline:focus {
    background: rgba(11, 61, 102, 0.03);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(11, 61, 102, 0.06);
}

/* Primary button - right: nổi bật, kích thước cố định */
.product-cards-wrapper .card-body .actions .btn.primary {
    /* flex: 0 0 120px; */
    /* cố định để không tràn */
    padding: 10px 16px;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(180deg, var(--pc-accent, #f36b21), var(--pc-accent-dark, #d95318));
    border: none;
    box-shadow: 0 8px 20px rgba(243, 107, 33, 0.14);
    text-decoration: none;
}

/* Primary hover */
.product-cards-wrapper .card-body .actions .btn.primary:hover,
.product-cards-wrapper .card-body .actions .btn.primary:focus {
    transform: translateY(-2px);
    box-shadow: 0 14px 36px rgba(243, 107, 33, 0.18);
}

/* Nếu bạn muốn icon nhỏ ở bên phải/ trái của nút (tùy chọn) */
.product-cards-wrapper .card-body .actions .btn .btn-icon {
    display: inline-flex;
    margin-left: 8px;
    align-items: center;
    justify-content: center;
}

/* Responsive: khi không đủ ngang, stack 2 nút dạng column */
@media (max-width:480px) {
    .product-cards-wrapper .card-body .actions {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }

    .product-cards-wrapper .card-body .actions .btn.outline {
        flex: 1 1 auto;
        width: 100%;
        text-align: center;
    }

    .product-cards-wrapper .card-body .actions .btn.primary {
        flex: 1 1 auto;
        width: 100%;
    }
}

/* High-specificity safety rules (override theme if still needed) */
.product-cards-wrapper .card-body .actions .btn.outline,
.product-cards-wrapper .card-body .actions .btn.primary {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- Tinh chỉnh typography / spacing --- */
.product-pc-header .pc-title {
    font-size: 26px;
    color: var(--pc-blue);
    margin-bottom: 6px;
    text-align: center;
}

.product-pc-header .pc-desc {
    color: var(--pc-muted);
    max-width: 860px;
    margin: 0 auto 6px;
    line-height: 1.6;
    font-size: 15px;
}

/* --- Price currency nhỏ gọn --- */
.product-cards-wrapper .pricebox .vnd {
    font-size: 14px;
    font-weight: 700;
    color: var(--pc-accent-dark);
    margin-left: 4px;
}

/* --- Nếu cần, chỉnh badge offset để không dính content --- */
.product-cards-wrapper .card-top .badges {
    margin-bottom: 10px;
}

/* --- Optional: thu nhỏ shadow nếu thấy nặng --- */
/* .product-cards-wrapper .card{ box-shadow: 0 6px 18px rgba(11,61,102,0.05); } */

/* --- Debug: nếu theme vẫn ghi đè, bật 2 rule này tạm để override --- */
/* .product-cards-wrapper { max-width:1180px !important; margin: 0 auto 48px !important; } */
/* .product-cards-wrapper .card{ min-height:640px !important; } */



/* Container chính chứa các phần tử */
.container-gpdn {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px;
}


/* Phần tử chứa tất cả các giải pháp */
.solutions {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
}

/* Phần tử con trong giải pháp (2 cột) */
.solution {
    background-color: #fff;
    width: 48%;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    color: #333;
    margin-bottom: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    /* Prevents content from overflowing */
    border: 2px solid transparent;
    position: relative;
}

/* Màu nền của phần tử "orange" */
.solution.orange {
    background-color: #FF6A13;
    color: white;
}

/* Tiêu đề nhỏ trong mỗi giải pháp */
h2 {
    font-size: 2em;
    margin-bottom: 20px;
    font-weight: 700;
    color: inherit;
}

/* Thông tin chi tiết của mỗi giải pháp */
.info p {
    font-size: 1.1em;
    margin-bottom: 15px;
}

/* Nút bấm nhận báo giá */
.btn {
    background-color: #007BFF;
    color: white;
    border: none;
    padding: 16px 30px;
    font-size: 1.1em;
    cursor: pointer;
    border-radius: 5px;
    /* margin-top: 20px; */
    text-align: center;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
    position: relative;
}

.btn:hover {
    background-color: #0056b3;
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* Hiệu ứng hover cho các phần tử giải pháp */
.solution:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Hiệu ứng hình nền cho các phần tử */
.solution::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    z-index: -1;
    border-radius: 12px;
}

/* Media Query cho màn hình di động (Tablet và nhỏ hơn) */
@media (max-width: 768px) {
    .title {
        font-size: 2.2em;
        margin-bottom: 40px;
    }

    .solutions {
        flex-direction: column;
        gap: 20px;
    }

    .solution {
        width: 100%;
        padding: 20px;
    }

    .btn {
        font-size: 1em;
        padding: 12px 20px;
    }
}

/* Media Query cho màn hình nhỏ hơn (di động) */
@media (max-width: 480px) {
    .title {
        font-size: 1.6em;
    }

    .info p {
        font-size: 1em;
    }
}

/* CSS Zalo button */
@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 rgba(1, 128, 239, 0.3);
    }

    50% {
        transform: scale(1.15);
        box-shadow: 0 0 20px rgba(1, 128, 239, 0.6);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 rgba(1, 128, 239, 0.3);
    }
}

.zalo-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 150px;
    right: 20px;
    z-index: 9999;
    background-color: #0180ef;
    border-radius: 50%;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    animation: pulse 2.2s infinite ease-in-out;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.zalo-float img {
    width: 34px;
    height: 34px;
    pointer-events: none;
}

.zalo-float:hover {
    transform: scale(1.2);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.5);
    animation: none;
}

/* Responsive nhỏ hơn 480px */
@media (max-width: 480px) {
    .zalo-float {
        width: 50px;
        height: 50px;
        bottom: 125px;
        right: 15px;
    }

    .zalo-float img {
        width: 28px;
        height: 28px;
    }
}
/* Nút Messenger: giống Zalo nhưng thấp hơn (ngay dưới) */
@keyframes pulse-messenger {
  0%   { transform: scale(1);    box-shadow: 0 0 0 rgba(0,132,255,0.30); }
  50%  { transform: scale(1.15); box-shadow: 0 0 20px rgba(0,132,255,0.60); }
  100% { transform: scale(1);    box-shadow: 0 0 0 rgba(0,132,255,0.30); }
}

.messenger-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 75px;           /* đặt ngay dưới Zalo (Zalo đang bottom:80px) */
  right: 20px;
  z-index: 9998;          /* thấp hơn Zalo 1 chút để xếp lớp */
  background-color: #0084FF; /* màu Messenger */
  border-radius: 50%;
  box-shadow: 0 6px 12px rgba(0,0,0,0.3);
  display: flex;
  justify-content: center;
  align-items: center;
  animation: pulse-messenger 2.2s infinite ease-in-out;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.messenger-float svg {
  width: 34px;
  height: 34px;
  pointer-events: none; /* click trúng cả vùng tròn */
}

.messenger-float:hover {
  transform: scale(1.2);
  box-shadow: 0 8px 18px rgba(0,0,0,0.5);
  animation: none;
}

/* Tôn trọng người dùng hạn chế chuyển động */
@media (prefers-reduced-motion: reduce) {
  .zalo-float, .messenger-float { animation: none !important; }
}

/* Mobile < 480px: thu nhỏ + canh khoảng cách hợp lý */
@media (max-width: 480px) {
  .messenger-float {
    width: 50px;
    height: 50px;
    bottom: 70px;  /* Zalo đang 65px => Messenger ngay dưới */
    right: 15px;
  }

  .messenger-float svg {
    width: 28px;
    height: 28px;
  }
}
/* Nút liên hệ riêng, không lệ thuộc theme */
.gp-cta-btn {
  all: unset;                         /* reset sạch mọi style thừa */
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--gp-primary, #0e599d);
  color: #fff;
  font: inherit;
  line-height: 1.2;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  box-shadow: 0 1px 2px rgba(0,0,0,.08);
}

.gp-cta-btn:hover { filter: brightness(0.95); color: #fff; }
.gp-cta-btn:active { transform: translateY(0.5px); }
.gp-cta-btn:focus-visible { outline: 2px solid rgba(14,89,157,.45); outline-offset: 2px; }

.gp-cta-btn .gp-cta-label { font-weight: 600; font-size: 14px; }
.gp-cta-btn .gp-cta-ic { display: inline-flex; line-height: 1; }
.gp-cta-btn .gp-cta-ic em { font-size: 16px; }

/* Tuỳ chọn: phiên bản “ghost” nếu bạn cần dạng viền mảnh, không nền
.gp-cta-btn.gp-ghost { background: transparent; color: #0e599d; border: 1px solid rgba(0,0,0,.15); }
.gp-cta-btn.gp-ghost:hover { background: rgba(14,89,157,.06); color:#0e599d; }
*/

.form-receive-quotation-modal .wrap-form .form-group input[type="email"] {
    border: 0;
    border-radius: 25px;
    background: #f6f6f6;
    padding-left: 50px;
    width: 100%;
    height: 50px;
    font-size: 15px;

}

.form-receive-quotation-modal .wrap-form .form-group input[type="tel"] {
    border: 0;
    border-radius: 25px;
    background: #f6f6f6;
    padding-left: 50px;
    width: 100%;
    height: 50px;
    font-size: 15px;
}

/* Ảnh trong nội dung: KHÔNG ép 100% */
.post-content img {
  width: auto;
  max-width: 100%;
  height: auto;
  display: inline-block;
}

/* Nếu có caption dùng <figure class="image"> */
.post-content figure.image { display: inline-block; margin: 0 0 1rem; width: auto; }
.post-content figure.image img { width: auto; max-width: 100%; height: auto; }

/* Khi ảnh có style width inline (từ TinyMCE) => luôn giữ tỷ lệ */
.post-content img[style*="width"] { height: auto !important; }

/* Nếu theme cũ có rule mạnh như .content img { width:100% !important; } */
.post-content img:not([class*="is-full"]):not(.img-full) {
  width: auto !important; /* dùng !important chỉ khi thực sự cần để thắng rule cũ */
}

iframe {
    max-width: 100%;
}