/*
Theme Name: Độc quyền Wasin
Theme URI: https://wasin.vn
Author: BnV MEDIA
Author URI: https://wasin.vn
Description: Giao diện Độc quyền Wasin V7.0 Full, thiết kế bởi BnV MEDIA. Tích hợp Hệ thống Quản lý Báo giá Khách hàng (CRM), Header cố định thông minh khi cuộn, 3 Style Bố cục Hero Banner, Quản lý Link Chẩn đoán bệnh, Quản lý Footer động, Album Trình chiếu CEO, Tầm nhìn & Sứ mệnh, Trang Blog có Bộ lọc & Sidebar Danh mục/Đề xuất, chuẩn hóa ảnh bài viết chống vỡ bố cục.
Version: 7.0.0
Text Domain: wasin-theme
Requires at least: 6.0
Requires PHP: 7.4
WC requires at least: 7.0
WC tested up to: 9.5
*/

:root {
    --wasin-primary: #15803d;
    --wasin-primary-dark: #14532d;
    --wasin-accent: #f59e0b;
    --wasin-bg: #f8fafc;
}

html, body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--wasin-bg);
    color: #1e293b;
    overflow-x: hidden;
    max-width: 100vw;
}

h1, h2, h3, h4, h5, h6, .font-heading {
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.bg-wasin-primary { background-color: var(--wasin-primary) !important; }
.bg-wasin-dark { background-color: var(--wasin-primary-dark) !important; }
.text-wasin-primary { color: var(--wasin-primary) !important; }
.border-wasin-primary { border-color: var(--wasin-primary) !important; }
.bg-wasin-accent { background-color: var(--wasin-accent) !important; }
.text-wasin-accent { color: var(--wasin-accent) !important; }

/* HEADER CỐ ĐỊNH TRÔI THEO KHI CUỘN XUỐNG (FIXED STICKY HEADER) */
#wasin-fixed-header-wrap {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 999;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
body.admin-bar #wasin-fixed-header-wrap {
    top: 32px;
}
@media screen and (max-width: 782px) {
    body.admin-bar #wasin-fixed-header-wrap {
        top: 46px;
    }
}
#wasin-fixed-header-wrap.is-scrolled #wasin-topbar {
    height: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    overflow: hidden !important;
    border-bottom-width: 0 !important;
    opacity: 0;
}
#wasin-fixed-header-wrap.is-scrolled #wasin-main-header {
    background-color: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.12) !important;
}
#wasin-fixed-header-wrap.is-scrolled .wasin-header-inner {
    height: 64px !important;
}

/* KHÓA CỨNG KÍCH THƯỚC LOGO TRÊN HEADER (CHỐNG PHÓNG TO Ở TRANG SẢN PHẨM) */
.wasin-header-logo-link {
    display: inline-flex !important;
    align-items: center !important;
    max-height: 60px !important;
    flex-shrink: 0 !important;
}
.wasin-header-logo-img {
    height: 48px !important;
    max-height: 48px !important;
    width: auto !important;
    max-width: 160px !important;
    object-fit: contain !important;
    display: block !important;
    margin: 0 !important;
}
@media (max-width: 640px) {
    .wasin-header-logo-img {
        height: 40px !important;
        max-height: 40px !important;
        max-width: 130px !important;
    }
}

.gold-gradient {
    background: linear-gradient(135deg, #fbbf24 0%, #d97706 50%, #fbbf24 100%);
}
.text-gold-gradient {
    background: linear-gradient(135deg, #fde68a 0%, #f59e0b 50%, #fbbf24 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.card-hover {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(21, 128, 61, 0.14), 0 8px 10px -6px rgba(21, 128, 61, 0.08);
}

/* Ẩn nút giỏ hàng mặc định của WooCommerce */
.add_to_cart_button, .single_add_to_cart_button, .woocommerce-variation-add-to-cart {
    display: none !important;
}

/* ==========================================================================
   CHUẨN HÓA TOÀN BỘ HÌNH ẢNH, VIDEO, BẢNG BIỂU TRONG BÀI VIẾT (CHỐNG VỠ BỐ CỤC)
   ========================================================================== */
.wasin-article-content {
    font-size: 1rem;
    line-height: 1.8;
    color: #334155;
    overflow-wrap: break-word;
    word-wrap: break-word;
}
.wasin-article-content p {
    margin-bottom: 1.25rem;
}
.wasin-article-content h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #0f172a;
    margin-top: 2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #dcfce7;
}
.wasin-article-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #15803d;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}
.wasin-article-content ul {
    list-style-type: disc;
    padding-left: 1.5rem;
    margin-bottom: 1.25rem;
}
.wasin-article-content ol {
    list-style-type: decimal;
    padding-left: 1.5rem;
    margin-bottom: 1.25rem;
}
.wasin-article-content li {
    margin-bottom: 0.5rem;
}
.wasin-article-content img,
.wasin-article-content figure,
.wasin-article-content .wp-caption,
.wasin-article-content .wp-block-image {
    max-width: 100% !important;
    height: auto !important;
    margin: 1.5rem auto !important;
    display: block !important;
    border-radius: 16px !important;
    overflow: hidden;
}
.wasin-article-content img {
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.08);
    border: 1px solid #e2e8f0;
    object-fit: contain;
    max-height: 620px;
    width: auto;
}
.wasin-article-content .alignleft,
.wasin-article-content .alignright,
.wasin-article-content .aligncenter {
    float: none !important;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
}
.wasin-article-content figcaption,
.wasin-article-content .wp-caption-text {
    text-align: center;
    font-size: 0.85rem;
    color: #64748b;
    font-style: italic;
    margin-top: 0.6rem;
    padding: 0 0.5rem;
}
.wasin-article-content iframe,
.wasin-article-content video,
.wasin-article-content embed {
    max-width: 100% !important;
    width: 100% !important;
    aspect-ratio: 16 / 9;
    height: auto !important;
    border-radius: 16px;
    margin: 1.5rem auto;
    display: block;
}
.wasin-article-content table {
    width: 100% !important;
    max-width: 100% !important;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.9rem;
    display: block;
    overflow-x: auto;
}
.wasin-article-content table th,
.wasin-article-content table td {
    border: 1px solid #cbd5e1;
    padding: 10px 14px;
    text-align: left;
}
.wasin-article-content table th {
    background-color: #f0fdf4;
    color: #14532d;
    font-weight: 700;
}

/* HIỆU ỨNG SINH ĐỘNG CHO CỤM NÚT LIÊN HỆ KÉO-THẢ & TOOLTIP */
#wasin-draggable-contact {
    touch-action: none;
    user-select: none;
    cursor: grab;
}
#wasin-draggable-contact:active {
    cursor: grabbing;
}

@keyframes wasinRipple {
    0% { box-shadow: 0 0 0 0 rgba(21, 128, 61, 0.55); }
    70% { box-shadow: 0 0 0 14px rgba(21, 128, 61, 0); }
    100% { box-shadow: 0 0 0 0 rgba(21, 128, 61, 0); }
}

@keyframes wasinPhoneShake {
    0%, 100% { transform: rotate(0deg) scale(1); }
    15% { transform: rotate(-14deg) scale(1.08); }
    30% { transform: rotate(14deg) scale(1.08); }
    45% { transform: rotate(-10deg) scale(1.05); }
    60% { transform: rotate(10deg) scale(1.05); }
    75% { transform: rotate(0deg) scale(1); }
}

.wasin-float-btn {
    position: relative;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.wasin-float-btn:hover {
    transform: scale(1.14) translateY(-2px);
}
.wasin-float-pulse {
    animation: wasinRipple 2s infinite;
}
.wasin-phone-ring svg, .wasin-phone-ring img {
    animation: wasinPhoneShake 2.2s infinite ease-in-out;
}

.wasin-tooltip {
    position: absolute;
    right: calc(100% + 12px);
    top: 50%;
    transform: translateY(-50%) translateX(8px);
    background: #0f172a;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 10px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(251, 191, 36, 0.4);
}
.wasin-tooltip::after {
    content: '';
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: transparent transparent transparent #0f172a;
}
.wasin-float-btn:hover .wasin-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
}

/* HIỆU ỨNG POPUP 3D */
@keyframes wasinPopupSpring {
    0% { opacity: 0; transform: scale(0.65) translateY(40px); }
    65% { opacity: 1; transform: scale(1.03) translateY(-6px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes wasinShimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
.wasin-popup-animate {
    animation: wasinPopupSpring 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.wasin-shimmer-border {
    background: linear-gradient(90deg, #15803d, #fbbf24, #22c55e, #f59e0b, #15803d);
    background-size: 300% 100%;
    animation: wasinShimmer 4s linear infinite;
}

.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }