/*
Theme Name: Serava
Theme URI: https://serava.casethemes.net/
Author: Case-Themes
Author URI: https://casethemes.net/
Description: Serava is a Premium WordPress theme that has built-in support for popular Page Builders, slider with swipe gestures, and is SEO- and Retina-ready. The unique system of inheritance and override options allows setting up individual parameters for different sections of your site and supported plugins.
Version: 1.0.1
License: GPL-2.0+
Requires PHP: 7.4
Tested up to: 6.4 or Higher
License URI: https://themeforest.net/licenses
Text Domain: serava
Tags: Blog, E-Commerce, Portfolio, Grid Layout, One Column, Two Columns, Three Columns, Four Columns, Left Sidebar, Right Sidebar, Custom Background, Custom Colors, Custom Header, Custom Logo, custom-menu, Editor Style, Featured Image Header, Featured Images, flexible-header, Footer Widgets, Full Width Template, microformats, Post Formats, Sticky Post, Theme Options, threaded-comments, translation-ready, Block Editor Styles, Wide Blocks
Copyright (c) 2026 Case-Themes. All rights reserved.
This theme is licensed under the GPL-2.0+ license.
*/

.pxl-item--price {
    font-size: 15px;
    font-weight: 600;
    color: var(--primary-color);
    margin: 6px 0 10px;
    letter-spacing: 0.03em;
}
.pxl-service-layout1 .pxl-item--price {
    font-size: clamp(18px, 1.5vw, 30px);
    font-weight: 600;
    color: inherit;
    margin: 16px 0 4px;
    line-height: 1.2;
}
.pxl-service-layout1 .pxl-item--price-original {
    font-size: clamp(12px, 1vw, 18px);
    font-weight: 400;
    opacity: 0.5;
    margin-bottom: 2px;
}
.pxl-service-layout1 .pxl-item--price-member {
    font-size: clamp(20px, 1.6vw, 34px);
    font-weight: 700;
    color: var(--primary-color);
    margin-top: 2px;
    margin-bottom: 6px;
}

.pxl-service-carousel2 .pxl-swiper-slide {
    position: relative;
}
.service-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background-color: var(--secondary-color);
    color: #fff;
    font-size: 30px;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    z-index: 10;
}
.must-try-content .pxl-item--content-left {
    background-color: var(--secondary-color);
}
.pxl-scroll-top {
    background-color: var(--secondary-color);
}
.must-try-content .pxl-item--content-left .pxl-item--title a,
.must-try-content .pxl-item--content-left .pxl-item--excerpt {
    color: #fff;
}

/* === Language Switcher === */
.trp_language_switcher_shortcode {
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
}
.trp_language_switcher_shortcode .trp-language-switcher {
    height: auto !important;
    width: fit-content !important;
    position: relative;
    padding-bottom: 0;
}
/* Bridge hover gap giữa cờ và dropdown bằng pseudo-element (không ảnh hưởng alignment) */
.trp_language_switcher_shortcode .trp-language-switcher::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 8px;
}
/* Reset div — xoá default style TranslatePress */
.trp_language_switcher_shortcode .trp-language-switcher > div {
    width: auto !important;
    max-width: none !important;
    background: transparent !important;
    background-image: none !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    position: static !important;
    box-sizing: border-box;
}
/* Chỉ reset background cho nút hiện tại, KHÔNG cho dropdown */
.trp_language_switcher_shortcode .trp-ls-shortcode-current-language:hover {
    background-image: none !important;
}
/* Giữ nền trắng cho dropdown dù chuột đang ở đâu trong đó */
.trp_language_switcher_shortcode .trp-language-switcher:hover .trp-ls-shortcode-language,
.trp_language_switcher_shortcode .trp-language-switcher:focus-within .trp-ls-shortcode-language,
.trp_language_switcher_shortcode .trp-ls-shortcode-language:hover {
    background: #fff !important;
    background-image: none !important;
}
/* Nút hiện tại: không border, không shadow, trong suốt */
.trp_language_switcher_shortcode .trp-ls-shortcode-current-language {
    display: inline-flex !important;
    align-items: center;
    width: auto !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    cursor: pointer;
    transition: opacity 0.2s;
}
.trp_language_switcher_shortcode .trp-ls-shortcode-current-language:hover {
    background: transparent !important;
    opacity: 0.8;
}
/* Giữ nút hiện tại khi hover container */
.trp_language_switcher_shortcode .trp-language-switcher:hover .trp-ls-shortcode-current-language,
.trp_language_switcher_shortcode .trp-language-switcher:focus-within .trp-ls-shortcode-current-language {
    visibility: visible !important;
}
/* Dropdown: ẩn, fade-in + slide xuống, căn giữa theo cờ */
.trp_language_switcher_shortcode .trp-language-switcher .trp-ls-shortcode-language {
    position: absolute !important;
    top: 100% !important;
    left: 50% !important;
    transform: translateX(-50%) translateY(-6px);
    width: max-content !important;
    height: auto !important;
    overflow: visible !important;
    opacity: 0;
    pointer-events: none;
    visibility: hidden !important;
    background: #fff !important;
    border: 1.5px solid #e8ddd0 !important;
    border-radius: 10px !important;
    box-shadow: 0 8px 24px rgba(0,0,0,0.11) !important;
    padding: 5px !important;
    transition: opacity 0.18s ease, transform 0.18s ease;
    z-index: 200;
}
/* Dropdown hiện khi hover */
.trp_language_switcher_shortcode .trp-language-switcher:hover .trp-ls-shortcode-language,
.trp_language_switcher_shortcode .trp-language-switcher:focus-within .trp-ls-shortcode-language {
    opacity: 1 !important;
    transform: translateX(-50%) translateY(0) !important;
    pointer-events: auto !important;
    visibility: visible !important;
    display: block !important;
    width: max-content !important;
}
/* Ngôn ngữ hiện tại trong dropdown: mờ */
.trp_language_switcher_shortcode .trp-ls-shortcode-language .trp-ls-shortcode-disabled-language {
    opacity: 0.38;
    pointer-events: none;
}
/* Tất cả links */
.trp_language_switcher_shortcode .trp-language-switcher > div > a {
    display: flex !important;
    align-items: center;
    gap: 9px;
    text-decoration: none;
    border-radius: 6px;
    color: #3a2e28 !important;
    white-space: nowrap;
    transition: background 0.15s;
}
/* Link trong pill */
.trp_language_switcher_shortcode .trp-ls-shortcode-current-language > a {
    padding: 4px !important;
}
/* Link trong dropdown */
.trp_language_switcher_shortcode .trp-ls-shortcode-language > a {
    padding: 8px 12px !important;
    font-size: 12px !important;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.trp_language_switcher_shortcode .trp-ls-shortcode-language > a:not(.trp-ls-shortcode-disabled-language):hover {
    background: rgba(160, 115, 75, 0.12) !important;
}
/* Flags */
.trp_language_switcher_shortcode .trp-language-switcher > div > a > img {
    width: 36px !important;
    height: 24px !important;
    border-radius: 4px !important;
    object-fit: cover;
    box-shadow: none !important;
    display: inline !important;
    margin: 0 !important;
}
