/* ===================== */
/* Custom CSS Variables & Global */
/* ===================== */
:root {
    --primary-color: #0169fa;
    --secondary-color: #ffb600;
    --success-color: #7a9c59;
    --alert-color: #e0052b;
    --base-color: #000000;
    --secondary-blue: #3385ff;
    --accent-blue: #0a58ca;
    --light-blue: #66b3ff;
    --dark-blue: #074092;
    --teal-accent: #2ecc71;
    --gradient-blue: linear-gradient(135deg, var(--primary-color), var(--light-blue));
    --gradient-dark-blue: linear-gradient(135deg, var(--dark-blue), var(--accent-blue));
    --box-shadow-light: 0 4px 8px rgba(0, 0, 0, 0.15);
    --box-shadow-card: rgb(60 64 67 / 10%) 0px 2px 8px 0px, rgb(60 64 67 / 25%) 0px 4px 16px 4px;
}

body {
    font-family: "Roboto", sans-serif;
    font-style: normal;
    line-height: 1.6;
    font-size: 14px;
    color: var(--base-color);
    background-color: #F5F5F5;
}

a {
    text-decoration: none;
}

h5, p {
    margin: 0;
}

.page-title {
    font-size: 1.5rem;
    font-weight: bold;
}

/* ===================== */
/* Header */
/* ===================== */
#header-overlay {
    top: 60px;
    left: 0;
    width: 100%;
    height: calc(100vh - 60px);
    opacity: 0.8;
    z-index: 1050;
}

@keyframes scroll-left {
    0% {
        transform: translateX(100%);
    }

    100% {
        transform: translateX(-100%);
    }
}

.logo {
    width: auto;
}

.header-logo {
    max-height: 60px;
    object-fit: contain;
    padding-top: 6px;
    padding-bottom: 6px;
}

/* Đảm bảo chiều cao các nút menu ngang là 35px */
.header-menu-btn {
    color: white;
    height: 35px !important;
    padding-top: 0;
    padding-bottom: 0;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.header-menu-btn:hover, .header-menu-btn:focus {
    color: rgba(255, 255, 255, 0.75);
}

.search-block {
    background-color: rgba(255, 255, 255, 0.1);
    flex: 1;
    max-width: 600px;
    min-width: 120px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.375rem;
    transition: all 0.3s ease;
}

.search-block:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

/* Đảm bảo chiều cao search block là 35px */
.search-block,
.search-block form,
.search-block input,
.search-block button {
    box-sizing: border-box;
    border-radius: 0.375rem;
}

#search-desktop {
    background-color: transparent;
    padding: 6px 12px;
    border: none;
}

#search-desktop::placeholder, .search-icon {
    color: rgba(255, 255, 255, 0.8);
}

#search-desktop:focus, #search-desktop:active {
    box-shadow: none;
    color: white;
}

/* Tạo nút xóa tùy chỉnh */
input[type="search"]::-webkit-search-cancel-button {
    -webkit-appearance: none;
    height: 20px;
    width: 20px;
    background-image: url("data:image/svg+xml;utf8,<svg fill='%23ffffff' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z'/></svg>");
    cursor: pointer;
}

/* Social Icons Styling */
.social-icons .btn {
    color: #fff;
    /* White icon color */
    display: inline-flex;
    /* To center the icon */
    align-items: center;
    justify-content: center;
    border: none;
    /* Remove default border */
}

.social-icons .btn:hover {
    opacity: 0.8;
    /* Slight opacity change for hover effect */
}

.social-icons .btn:last-child {
    margin-right: 0 !important;
    /* Remove margin from the last button */
}

.social-icons a {
    width: 31px;
    height: 31px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10;
}

.social-icons .facebook-btn {
    background-color: #3b5998;
    /* Facebook blue */
}

.social-icons .tiktok-btn {
    background-color: #000000;
    /* TikTok black */
}

.social-icons .youtube-btn {
    background-color: #ff0000;
    /* YouTube red */
}

.social-icons .map-btn {
    background-color: #34a853;
    /* Google Maps green */
}

.social-icons .phone-btn {
    background-color: #4285f4;
    /* Blue */
}

.header-btn-zalo {
    color: white;
}

.header-btn-zalo:hover {
    background-color: white;
    color: var(--primary-color);
}

.header-btn-zalo:hover img {
    /* biến đổi hình trắng thành xanh */
    filter: brightness(0) saturate(100%) invert(32%) sepia(96%) saturate(1413%) hue-rotate(197deg) brightness(100%) contrast(101%);
}

.header-btn-zalo small {
    display: block;
    margin-top: 0;
}

.header-btn-zalo img {
    width: 20px;
    height: 20px;
    margin-right: 8px;
}

/* ===================== */
/* Banner Slider */
/* ===================== */
.banner-iframe-youtube {
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 0;
}

.main-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    background: #fff;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.main-menu-height {
    height: 545px;
    overflow-y: auto;
    overflow-x: visible;
}

.main-menu a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 10px 14px;
    color: var(--base-color);
    text-decoration: none;
    transition: background-color 0.2s;
    box-sizing: border-box;
    font-size: 15px;
}

.main-menu a:hover {
    background-color: #f8f9fa;
    color: var(--primary-color);
}

/* Item đầu tiên - chỉ có border-radius cho 2 góc trên (chỉ áp dụng cho menu cấp 1) */
.main-menu>li:first-child>a:hover {
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
}

/* Item cuối cùng - chỉ có border-radius cho 2 góc dưới (chỉ áp dụng cho menu cấp 1) */
.main-menu>li:last-child>a:hover {
    border-bottom-left-radius: 6px;
    border-bottom-right-radius: 6px;
}

/* Mega Indicator - Icon luôn nằm bên phải với Flexbox */
.menu-has-children>a::after {
    content: '\f054';
    /* Font Awesome chevron-down */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    display: inline-block;
    margin-left: auto;
    vertical-align: middle;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: transform 0.3s ease;
    color: inherit;
    font-size: 8px;
    line-height: 1;
}

/* --- SUBMENU --- */
.submenu {
    list-style: none;
    padding: 0;
    margin: 0;
    position: absolute;
    top: -1px;
    /* Do có border, Giữ cho submenu thẳng hàng với menu cha */
    bottom: -1px;
    left: calc(100% + 2px);
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 0.25rem;
    display: none;
    z-index: 2000;
    min-width: 220px;
}

/* thêm class grid-submenu vào các submenu có nhiều item*/
.submenu.grid-submenu {
    min-width: 440px;
}

/* Submenu cấp 1 — mở phía dưới */
.main-menu>li>.submenu {
    left: calc(100% - var(--bs-gutter-x) * .5);
}

/* Submenu cấp 2 trở lên — mở ngang bên phải */
.main-menu li li.menu-has-children>.submenu {
    left: 100%;
}

/* Hover để mở submenu */
.menu-has-children:hover>.submenu {
    display: block;
}

/* Grid item cho submenu */
.submenu li {
    min-width: 220px !important;
}

/* Style cho link trong submenu */
.submenu a {
    padding: 8px 14px;
    display: flex;
    align-items: center;
    color: #333;
    text-decoration: none;
    white-space: nowrap;
}

.submenu a:hover {
    background-color: #f1f3f5;
}

.menu-has-children:hover>a {
    background-color: #f1f3f5;
}

#mainSlider {
    height: 100%;
    overflow: hidden;
}

#mainSlider .swiper-slide {
    aspect-ratio: 16 / 9;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

#mainSlider .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

#mainSlider .carousel-control-prev,
#mainSlider .carousel-control-next {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

#mainSlider:hover .carousel-control-prev,
#mainSlider:hover .carousel-control-next {
    opacity: 1;
    pointer-events: auto;
}

/* Đưa nút điều hướng slider ra sát ngoài */
#mainSlider .carousel-control-prev,
#mainSlider .carousel-control-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 50%;
    z-index: 900;
}

#mainSlider .carousel-control-prev {
    left: 10px;
}

#mainSlider .carousel-control-next {
    right: 10px;
}

.carousel-item {
    min-height: 200px;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}



/* ===================== */
/* About */
/* ===================== */
.omas-banner {
    /* Sử dụng linear-gradient cho màu nền */
    background: radial-gradient(circle at center, #2e4a86 0%, #1a2747 60%, #0d1222 100%);
    color: white;
    padding: 25px 0;
    line-height: 1.2;
}

/* Logo và Dịch vụ */
.omas-logo .text-omas {
    color: var(--secondary-color);
    /* Màu vàng */
    font-size: 3rem;
    font-weight: bold;
}

.omas-logo .text-omas .text-white {
    font-weight: normal;
}

.omas-logo .text-omas .text-o-large {
    font-size: 3.5rem;
    /* Make 'O' larger */
    line-height: 1;
    /* Adjust line height to align 'O' better */
}

.omas-logo .divider {
    border-left: 2px solid white;
    height: 60px;
    margin: 0 15px;
}

.text-service {
    font-size: 1.6rem;
    font-weight: 500;
}

/* Thông tin Miễn phí công */
.text-omas-info {
    font-size: 1.45rem;
    font-weight: bold;
    text-align: center;
    color: var(--secondary-color) !important;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(1, 105, 250, 0.7);
    }

    70% {
        box-shadow: 0 0 0 20px rgba(1, 105, 250, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(1, 105, 250, 0);
    }
}

.banner-overlay-btn {
    border-radius: 10px;
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transition: background-color 0.3s, transform 0.3s;
    animation: pulse 1.5s infinite;
    padding: 16px;
}

.banner-overlay-btn:hover {
    background-color: #0056b3;
    transform: translateY(-4px) scale(1.05);
    animation-play-state: paused;
}

/* ===================== */
/* Flash Sale Banner */
/* ===================== */
.flash-sale-header {
    background: var(--gradient-blue);
    color: white;
    border-radius: 15px;
    padding: 20px 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 20px rgba(44, 90, 160, 0.2);
    position: relative;
    overflow: hidden;
}

.sale-title {
    font-weight: 800;
    font-size: 2.5rem;
    margin-bottom: 5px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.sale-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 20px;
}

.countdown-container {
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 15px;
    backdrop-filter: blur(5px);
}

.countdown-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 5px;
    min-width: 70px;
}

.countdown-value {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    color: white;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 8px 10px;
    min-width: 55px;
    text-align: center;
    margin-bottom: 5px;
}

.countdown-label {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.9);
}

.countdown-separator {
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    margin: 0 5px;
    align-self: flex-end;
    margin-bottom: 15px;
}

.progress-container {
    margin-top: 20px;
}

.progress {
    height: 10px;
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 0.2);
}

.progress-bar {
    background-color: white;
    border-radius: 5px;
}

.progress-text {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    margin-top: 5px;
    font-weight: 600;
}

.btn-remind {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.btn-remind:hover {
    background-color: rgba(255, 255, 255, 0.3);
    color: white;
}

.section-subtitle {
    color: var(--dark-blue);
    margin-bottom: 25px;
    text-align: center;
    position: relative;
    padding-bottom: 10px;
}

.section-subtitle::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: var(--gradient-blue);
    border-radius: 3px;
}

.product-price {
    display: flex;
    flex-direction: column;
    align-items: start;
    margin-bottom: 10px;
}

.current-price {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-right: 10px;
}

.original-price {
    font-size: 1rem;
    text-decoration: line-through;
    color: #888;
}

.discount-badge {
    background-color: var(--alert-color);
    color: white;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 5px;
    font-size: 0.8rem;
    margin-left: auto;
}

.product-title {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--dark-blue);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 50px;
}

.sold-count {
    font-weight: 700;
    color: var(--primary-color);
}

.progress {
    height: 10px;
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 0.2);
}

.progress-bar {
    background-color: white;
    border-radius: 5px;
}

.sold-progress {
    height: 6px;
    border-radius: 3px;
    margin-bottom: 15px;
}

.sold-progress .progress-bar {
    background: var(--gradient-blue);
}

.btn-buy {
    background: var(--gradient-blue);
    border: none;
    color: white;
    font-weight: 700;
    padding: 10px 0;
    border-radius: 8px;
    width: 100%;
    transition: all 0.3s ease;
}

.btn-buy:hover {
    background: var(--gradient-dark-blue);
    color: white;
    transform: scale(1.03);
}


/* ===================== */
/* Swiper Custom Styles */
/* ===================== */

#flashSaleSwiper {
    width: 100%;
    padding: 20px 0 60px 0;
}

.swiper-slide {
    display: flex;
    justify-content: center;
    height: auto;
}

.swiper-pagination-bullet {
    background: #ccc;
    opacity: 1;
    width: 12px;
    height: 12px;
    margin: 0 8px !important;
}

.swiper-pagination-bullet:hover {
    background: var(--light-blue);
}

.swiper-pagination-bullet-active {
    background: var(--primary-color);
    transform: scale(1.2);
}

.swiper-button-prev,
.swiper-button-next {
    color: var(--primary-color);
    background: rgba(255, 255, 255, 0.5);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    top: 50%;
    transform: translateY(-50%);
    transition: all .2s ease-out;
}

.swiper-button-prev {
    left: 15px;
}

.swiper-button-next {
    right: 15px;
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
    background: white;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.swiper-button-prev:after,
.swiper-button-next:after {
    font-size: 18px;
    font-weight: bold;
}

.swiper-slide .flash-sale-card {
    overflow: hidden;
    border: none;
    transition: all 0.3s ease;
    height: 100%;
    background-color: white;
    border: 1px solid var(--bs-border-color);
}

.swiper-slide .flash-sale-card .promotion {
    font-size: 12px;
    background-color: #fff3cd;
    color: #664d03;
}

.swiper-slide .flash-sale-card .fl_img {
    width: 16px;
    height: 16px;
}

.swiper-slide .card-img-top {
    border-radius: unset !important;
    height: 250px;
    overflow: hidden;
    position: relative;
}

.swiper-slide .card-img-top img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* ===================== */
/* Brand Logos */
/* ===================== */
.brand-logo {
    display: block;
    transition: all 0.3s ease;
}

.brand-logo:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(1, 105, 250, 0.2);
}

.brand-logo img {
    width: 100%;
    height: auto;
    object-fit: contain;
    max-height: 36px;
}

/* ===================== */
/* Products Section */
/* ===================== */
.product-card {
    border: none;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid var(--bs-border-color);
    height: 100%;
    border-radius: 8px;
    position: relative;
}

.product-card .card-img-top {
    height: 240px;
    width: 100%;
    border-radius: 8px 8px 0 0;
    overflow: hidden;
    position: relative;
}

.product-card .card-img-top img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.product-card:hover .card-img-top img {
    filter: brightness(0.8);
    transform: scale(1.05);
}

.product-card:hover {
    box-shadow: 0 12px 24px rgba(1, 105, 250, 0.15) !important;
    border-color: rgba(1, 105, 250, 0.3) !important;
}

/* Thêm icon con mắt */
.product-card .card-img-top::after {
    content: "\f06e";
    /* Unicode của icon eye trong Font Awesome */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    color: white;
    font-size: 2rem;
    z-index: 2;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.product-card:hover .card-img-top::after {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* Lớp phủ tối cho hình ảnh */
.product-card .card-img-top::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
    pointer-events: none;
}

.product-card:hover .card-img-top::before {
    opacity: 1;
}

.product-card .badge {
    z-index: 1;
}

.product-card .card-title {
    font-size: 14px;
    margin-top: 10px;
}

.product-card .card-title a {
    color: var(--base-color);
}

.product-card .card-body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 0;
}

.product-card .text-price {
    color: var(--alert-color);
    font-size: 16px;
}

/* ===================== */
/* Accessories Section */
/* ===================== */
.accessories-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 15px;
}

.accessories-grid a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.accessory-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
    position: relative;
}

.accessory-image {
    width: 100%;
    max-width: 120px;
    height: 120px;
    object-fit: contain;
    padding: 6px;
    background: #ffffff;
    border-radius: 6px;
    border: 1px dashed var(--bs-border-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: none;
}

.accessory-item:hover .accessory-image {
    transform: translateY(-10px) scale(1.05);
    border: 2px solid var(--primary-color);
    box-shadow: 0 12px 24px rgba(1, 105, 250, 0.25);
}

.accessory-name {
    margin-top: 15px;
    font-size: 12px;
    font-weight: 500;
    color: #333;
    min-height: 38px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 0 5px;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.accessory-item:hover .accessory-name {
    color: var(--primary-color);
    transform: translateY(-5px);
}

/* ===================== */
/* News Section */
/* ===================== */
.news-card {
    border: none;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid var(--bs-border-color);
    border-radius: 0;
}

.news-card .card-img-wrapper {
    overflow: hidden;
}

.news-card .card-img-top {
    height: 200px;
    object-fit: cover;
    border-radius: 0;
}

.news-card:hover {
    box-shadow: var(--box-shadow-card);
}

.news-card .card-title {
    font-size: 14px;
    line-height: 1.4;
}

.news-card .card-title a {
    color: var(--base-color);
}

.news-card .card-title a:hover {
    color: var(--primary-color);
}

/* ===================== */
/* Footer */
/* ===================== */
footer {
    font-size: 12px;
    box-shadow: rgb(60 64 67 / 10%) 0px 1px 2px 0px, rgb(60 64 67 / 15%) 0px 2px 6px 2px;
}

footer a {
    color: var(--base-color);
}

footer a:hover {
    color: var(--primary-color);
}

.footer-wrapper ul li {
    list-style: none;
    margin: 0;
    margin-left: 0;
}

.absolute-footer {
    background-color: #000;
    color: #fff;
    padding: 10px 0;
}

.copyright-footer {
    font-size: 13px;
    font-weight: 600;
}

/* ===================== */
/* Contact Buttons */
/* ===================== */
.contact-buttons {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 1000;
}

.contact-button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.contact-button:hover {
    transform: scale(1.1);
}

.phone-btn {
    background-color: var(--alert-color);
}

.zalo-btn {
    background-color: #0068ff;
}

.map-btn {
    background-color: #1e73be;
}

/* ===================== */
/* Back to Top Button */
/* ===================== */
#back-to-top {
    position: fixed;
    bottom: 10px;
    right: 25px;
    z-index: 1050;
    width: 35px;
    height: 35px;
    padding: 0;
    /* Căn giữa dọc cho icon */
    text-align: center;
    font-size: 1.2rem;
    /* Animation slide từ bên phải */
    transform: translateX(100px);
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.3s ease;
}

/* Hiển thị nút với animation slide in */
#back-to-top.visible {
    transform: translateX(0);
    opacity: 1;
}

#back-to-top:hover {
    filter: brightness(110%);
}

/* ===================== */
/* Utilities */
/* ===================== */
.section-title {
    font-size: 20px;
    font-weight: 700;
    text-transform: uppercase;
    color: #1a1a1a;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 70px;
    height: 4px;
    background: var(--primary-color);
}

.section-title-divider {
    margin-top: 0.5em;
    margin-bottom: 0.5em;
    max-width: 10%;
    height: 4px;
    background-color: rgb(238, 0, 51);
    opacity: 1;
    border: none;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #0056cc;
    border-color: #0056cc;
}

.bg-secondary {
    background-color: var(--secondary-color) !important;
    color: #fff !important;
}

.text-justify {
    text-align: justify;
}

.text-red {
    color: var(--alert-color) !important;
}

.text-truncate-2-lines {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    /* number of lines to show */
    -webkit-box-orient: vertical;
    font-size: 0.9em;
    /* Reduce font size relative to parent */
    line-height: 1.4;
}

/* Responsive button size for small screens */
.btn-filter {
    /* Default styles - no change */
}

/* ===================== */
/* Product List */
/* ===================== */
.breadcrumb-custom {
    background: transparent;
    padding: 0;
    margin: 0;
}

.breadcrumb-custom .breadcrumb-item+.breadcrumb-item::before {
    content: "›";
    color: #6c757d;
    font-weight: bold;
}

.breadcrumb-item a {
    color: #0d6efd;
    transition: color 0.15s ease-in-out;
}

.breadcrumb-item a:hover {
    color: var(--accent-blue);
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: #6c757d;
    font-weight: 500;
}

/* Custom Pagination Styles */
.pagination .page-link {
    color: #0d6efd;
    border: 1px solid #dee2e6;
    padding: 0.5rem 0.75rem;
    text-decoration: none;
    transition: all 0.15s ease-in-out;
}

.pagination .page-link:hover {
    color: var(--accent-blue);
    background-color: #e9ecef;
    border-color: #dee2e6;
}

.pagination .page-item.active .page-link {
    background-color: #0d6efd;
    border-color: #0d6efd;
    color: white;
}

.pagination .page-item.disabled .page-link {
    color: #6c757d;
    background-color: #fff;
    border-color: #dee2e6;
    cursor: not-allowed;
}

/* ===================== */
/* New List */
/* ===================== */
.news-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    border: none;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.news-card .card-img-top {
    height: 200px;
    object-fit: cover;
}

.news-card .card-body {
    display: flex;
    flex-direction: column;
}

.news-card .card-text {
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sidebar-title {
    border-bottom: 2px solid #0d6efd;
    padding-bottom: 10px;
    margin-bottom: 20px;
    font-weight: bold;
    color: #0d6efd;
    font-size: 18px;
}

.latest-news-item {
    display: flex;
    margin-bottom: 15px;
    align-items: center;
}

.latest-news-item img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 5px;
    margin-right: 10px;
}

.latest-news-item a {
    text-decoration: none;
    color: #333;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
}

.latest-news-item a:hover {
    color: #0d6efd;
}

.latest-news-item-title {
    font-size: 14px;
}

/* ===================== */
/* News detail */
/* ===================== */
.article-content {
    position: relative;
}

.article-content.collapsed {
    max-height: 400px;
    overflow: hidden;
}

.article-content.collapsed::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(transparent, white);
    pointer-events: none;
}

#read-more-btn {
    background: linear-gradient(45deg, #007bff, #0056b3);
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
    margin-top: 20px;
}

#read-more-btn:hover {
    background: linear-gradient(45deg, #0056b3, #003d82);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
    color: white;
}

#read-more-btn .fas {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

#read-more-btn.expanded .fas {
    transform: rotate(180deg);
}

.latest-news-item {
    display: flex;
    margin-bottom: 15px;
    align-items: center;
}

.latest-news-item img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 5px;
    margin-right: 10px;
}

.latest-news-item a {
    text-decoration: none;
    color: #333;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
}

.latest-news-item a:hover {
    color: #0d6efd;
}

/* ===================== */
/* Product detail */
/* ===================== */
.product-image-container {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.product-title {
    font-weight: 700;
    color: #333;
}

.product-price {
    font-size: 1.5rem;
    color: #d32f2f;
    font-weight: bold;
}

/* ===================== */
/* Quay thưởng */
/* ===================== */
/* Special button style for "Quay nhận thưởng" */
.btn-quay-nhan-thuong {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 50%, #ffb347 100%);
    border: none;
    color: white;
    font-weight: bold;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-quay-nhan-thuong:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-quay-nhan-thuong:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.6);
    background: linear-gradient(135deg, #ff5722 0%, #ff9800 50%, #ffa726 100%);
}

.btn-quay-nhan-thuong:hover:before {
    left: 100%;
}

.btn-quay-nhan-thuong:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(255, 107, 53, 0.4);
}

.related-product-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.related-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.related-product-img {
    height: 200px;
    object-fit: cover;
}

/* Modal Styles */
#quayNhanThuongModal .modal-content {
    background: linear-gradient(135deg, #ffd700 0%, #ffb347 100%);
    border: none;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

#quayNhanThuongModal .modal-header {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

#quayNhanThuongModal .modal-title {
    color: #333;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
}

#quayNhanThuongModal .btn-close {
    filter: none;
}

#quayNhanThuongModal .modal-body {
    padding: 0 2rem;
    position: relative;
}

/* Winwheel Styles */
.wheel-container {
    position: relative;
    display: inline-block;
    padding: 0;
    background: url('../spin/spin-bg.png') center center / cover no-repeat;
    /*Hình nền bàn quay thưởng*/
    /* Container sẽ được resize bằng JavaScript để match canvas size */
    min-height: 300px;
}

/* Canvas sẽ được responsive hoàn toàn bằng JavaScript */
#wheelCanvas {
    /* Không cần CSS responsive */
}

.spin-button-absolute {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    background-color: #ff0000;
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    animation: spinButtonPulse 2s infinite;
}

.spin-button-absolute:disabled {
    background-color: white !important;
    color: black !important;
    border: 1px solid #ccc !important;
    opacity: 1 !important;
    animation: none !important;
    cursor: not-allowed;
}

#spinButton:disabled {
    background-color: white !important;
    color: black !important;
    border: 1px solid #ccc !important;
    opacity: 1 !important;
    animation: none !important;
}

#spinButton:disabled i {
    color: black !important;
}

@keyframes spinButtonPulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        transform: translate(-50%, -50%) scale(1.1);
    }

    100% {
        transform: translate(-50%, -50%) scale(1);
    }
}

.prize-info {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    z-index: 10;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 5;
}

.prize-info .fa-trophy {
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 4px rgba(255, 215, 0, 0.3));
    animation: trophyGlow 2s ease-in-out infinite alternate;
}

@keyframes trophyGlow {
    0% {
        filter: drop-shadow(0 2px 4px rgba(255, 215, 0, 0.3));
    }

    100% {
        filter: drop-shadow(0 4px 8px rgba(255, 215, 0, 0.6));
    }
}

.prize-info h6 {
    color: #333;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.prize-info p {
    color: #666;
    font-weight: 500;
}

/* ===================== */
/* Responsive Design */
/* ===================== */
@media (max-width: 1200px) {

    /* ===================== */
    /* Header */
    /* ===================== */
    .offcanvas.offcanvas-end {
        border: none;
    }

    /* ===================== */
    /* Banner Slider */
    /* ===================== */
    #mainSlider .carousel-control-prev,
    #mainSlider .carousel-control-next {
        opacity: 1;
        pointer-events: auto;
    }

    /* ===================== */
    /* Flash Sale Banner */
    /* ===================== */
    .flash-sale-card .card-img-top {
        height: 180px;
    }

    .product-title {
        font-size: 1rem;
    }

    .current-price {
        font-size: 1rem;
    }

    /* ===================== */
    /* Swiper Custom Styles */
    /* ===================== */
    .swiper-button-prev,
    .swiper-button-next {
        display: none;
    }


    /* ===================== */
    /* Brand Logos */
    /* ===================== */

    /* ===================== */
    /* Products Section */
    /* ===================== */

    /* ===================== */
    /* Accessories Section */
    /* ===================== */
    .accessories-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .accessory-image {
        max-width: 200px;
        height: 200px;
    }

    .accessory-name {
        font-size: 13px;
    }

    /* ===================== */
    /* News Section */
    /* ===================== */
    .news-card .card-img-top {
        height: 150px;
    }

    /* ===================== */
    /* Footer */
    /* ===================== */

    /* ===================== */
    /* Contact Buttons */
    /* ===================== */

    /* ===================== */
    /* Back to Top Button */
    /* ===================== */

    /* ===================== */
    /* Utilities */
    /* ===================== */


    /* ===================== */
    /* Product List */
    /* ===================== */

    /* ===================== */
    /* News detail */
    /* ===================== */

    /* ===================== */
    /* Quay thưởng */
    /* ===================== */
}

@media (max-width: 992px) {

    /* ===================== */
    /* Header */
    /* ===================== */
    .search-block {
        flex: 1;
        max-width: none;
    }

    .offcanvas .social-icons a {
        width: 40px;
        height: 40px;
    }

    .offcanvas {
        width: 100% !important;
    }

    .header-btn-zalo {
        background-color: #ffffff;
        color: var(--primary-color);
        border-color: var(--primary-color);
        padding-inline: 16px;
        line-height: 1.2;
    }

    .header-btn-zalo:hover, .header-btn-zalo:active {
        background-color: #ffffff !important;
        color: var(--alert-color) !important;
    }

    .header-btn-zalo small {
        display: block;
        margin-top: 0;
    }

    /* ===================== */
    /* Banner Slider */
    /* ===================== */
    .carousel-item {
        /* height: 177px; */
        min-height: unset;
    }

    #mainSlider {
        min-height: fit-content;
    }

    #mainSlider .carousel-control-prev,
    #mainSlider .carousel-control-next {
        opacity: .4;
    }

    /* Move pagination below content */
    #mainSlider {
        padding-bottom: 50px;
    }

    /* ===================== */
    /* About */
    /* ===================== */
    .col-service {
        justify-content: center;
    }

    .omas-logo .text-omas {
        font-size: 2rem;
    }

    .text-service {
        font-size: 1.2rem;
    }

    .text-omas-info {
        font-size: 1.2rem;
    }

    .text-omas-info {
        text-align: center;
        margin-top: 10px;
    }

    .col-button {
        order: 3;
        margin-top: 15px;
        text-align: center;
    }

    .col-service .d-flex {
        flex-wrap: nowrap;
    }

    /* ===================== */
    /* Flash Sale Banner */
    /* ===================== */

    /* ===================== */
    /* Swiper Custom Styles */
    /* ===================== */
    .swiper-pagination-bullet {
        width: 16px;
        height: 16px;
        margin: 0 12px !important;
    }

    /* ===================== */
    /* Brand Logos */
    /* ===================== */

    /* ===================== */
    /* Products Section */
    /* ===================== */

    /* ===================== */
    /* Accessories Section */
    /* ===================== */

    /* ===================== */
    /* News Section */
    /* ===================== */

    /* ===================== */
    /* Footer */
    /* ===================== */

    /* ===================== */
    /* Contact Buttons */
    /* ===================== */

    /* ===================== */
    /* Back to Top Button */
    /* ===================== */
    #back-to-top {
        right: unset;
        left: 25px;
        bottom: 25px;
        transform: translateX(-100px);
    }

    /* ===================== */
    /* Utilities */
    /* ===================== */
    .btn-filter {
        font-size: 0.875rem !important;
        padding: 0.25rem 0.5rem !important;
    }

    /* ===================== */
    /* Product List */
    /* ===================== */

    /* ===================== */
    /* News detail */
    /* ===================== */

    /* ===================== */
    /* Quay thưởng */
    /* ===================== */
    .modal-dialog {
        max-width: 800px;
    }

    .spin-button-absolute {
        bottom: 10px;
    }
}

@media (max-width: 768px) {

    /* ===================== */
    /* Header */
    /* ===================== */
    .offcanvas {
        width: 80% !important;
    }

    .header-logo {
        width: 100px;
    }

    .offcanvas .header-btn-zalo {
        padding-left: 62px;
        padding-right: 62px;
    }


    /* ===================== */
    /* Banner Slider */
    /* ===================== */

    /* ===================== */
    /* Flash Sale Banner */
    /* ===================== */

    /* ===================== */
    /* Swiper Custom Styles */
    /* ===================== */

    /* ===================== */
    /* Brand Logos */
    /* ===================== */
    .brand-logo img {
        max-height: 34px;
    }

    /* ===================== */
    /* Products Section */
    /* ===================== */

    /* ===================== */
    /* Accessories Section */
    /* ===================== */
    .accessories-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .accessory-image {
        max-width: 200px;
        height: auto;
    }

    .accessory-name {
        font-size: 13px;
    }

    /* ===================== */
    /* News Section */
    /* ===================== */
    .news-card .card-img-top {
        height: 200px;
    }

    /* ===================== */
    /* Footer */
    /* ===================== */

    /* ===================== */
    /* Contact Buttons */
    /* ===================== */

    /* ===================== */
    /* Back to Top Button */
    /* ===================== */

    /* ===================== */
    /* Utilities */
    /* ===================== */

    /* ===================== */
    /* Product List */
    /* ===================== */

    /* ===================== */
    /* News detail */
    /* ===================== */

    /* ===================== */
    /* Quay thưởng */
    /* ===================== */
    #quayNhanThuongModal .modal-content {
        border-radius: unset;
    }

    .spin-button-absolute {
        bottom: unset;
        top: 0;
    }
}