/* Base, mobile-first styles */
html {
    box-sizing: border-box;
    scroll-behavior: smooth;
}

*,
*::before,
*::after {
    box-sizing: inherit;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #222;
    background: #fff;
}

img,
video {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

.header .top-header {
    background: #f4b400;
}

/* Styling for top header contact info */
.header .top-header .right {
    color: #FFFFFF;
    /* Đặt màu chữ mặc định là trắng */
}

.header .top-header .right a {
    color: #FFFFFF;
    /* Đảm bảo các đường link cũng có màu trắng */
    text-decoration: none;
    /* Bỏ gạch chân của link nếu có */
}

.header .middle-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: #6fa445;
}

/* Logo styling */
.header .logo {
    display: flex;
    align-items: center;
}

.header .logo a {
    display: block;
    overflow: hidden;
    position: relative;
}

.header .logo img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    opacity: 1 !important;
    margin: 0 !important;
    position: relative;
    z-index: 2;
}

.header .logo canvas {
    display: none;
}

/* Desktop logo size */
.header .top-header .logo a {
    width: 117px !important;
    height: 98px !important;
    overflow: hidden;
}

.header .top-header .logo img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain;
}

.menu_main {
    list-style: none;
    margin: 0;
    padding: 8px 0;
    display: flex;
    gap: 12px;
    overflow-x: auto;
}

.menu_main a {
    text-decoration: none;
    color: inherit;
    padding: 8px 10px;
    border-radius: 6px;
}

.menu_main a.active,
.menu_main a:hover {
    background: #f3f4f6;
}

/* Grid helpers */
.clearfm::after {
    content: "";
    display: table;
    clear: both;
}

/* About section */
.about {
    display: block;
    position: relative;
    overflow: hidden;
    padding: 0;
    background-size: cover;
    background-repeat: no-repeat;
    background-image: url('../img/bg-abouts.png');
    background-position: center top;
}

.about .bottom-abouts {
    padding: 16px 0;
}

.about .right-gt .img-about img {
    border-radius: 8px;
}

/* Product list */
.product-default {
    overflow: hidden;
    background-image: url('../img/bg-pro.jpg');
    background-size: cover;
    background-position: top center;
    padding: 30px 0 70px;
    background-attachment: fixed;
}

.product-default .title-big {
    text-align: center;
    font-family: 'swib';
    text-transform: uppercase;
    font-size: 48px;
    color: #fff;
    margin-bottom: 25px;
    text-shadow: 2px 2px 3px #78d683db;
}

.product-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.product {
    border: 1px solid #eee;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}

.title-product a {
    display: block;
    padding: 8px 10px;
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
}

.des-product {
    padding: 0 10px 10px;
    color: #555;
    font-size: 14px;
}

/* Commit icons */
.commit ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    /* gap: 12px; */
}

.commit li {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Slideshow */
#slideshow {
    width: 100%;
    /* Đảm bảo slideshow chiếm toàn bộ chiều rộng */
    overflow: hidden;
    /* Ẩn các phần thừa của slide */
    /* aspect-ratio: 16 / 9; */
}

#slideshow img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Defaul-Botton */
.pnrate {
    overflow: hidden;
    background-size: cover;
    background-position: center center;
    padding: 60px 0;
    width: 38%;
    float: right;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    background-image: url('../img/bg-rate.png');
}

/* Footer */
footer {
    /* padding: 24px 0; */
    border-top: 1px solid #eee;
    color: #555;
}

footer .middle {
    padding: 25px 0 40px;
    color: #fff;
    background-position: center bottom;
    background-size: cover;
    background-image: url('../img/bg-footer.png');
    background-repeat: no-repeat;
}

/* Remove cart UI */
.cart,
.addcart,
.countcart,
.span-cart,
a[href*="gio-hang"] {
    display: none !important;
    pointer-events: none !important;
}

/* Larger screens */
@media (min-width: 768px) {
    .menu_main {
        gap: 16px;
    }

    .product-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .commit ul {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* Mobile logo - smaller size */
@media (max-width: 767px) {
    .header .top-header .logo a {
        width: 90px !important;
        height: 75px !important;
    }

    .header .top-header .logo img {
        width: 100% !important;
        height: 100% !important;
        object-fit: contain;
    }
}

@media (min-width: 1024px) {
    .product-list {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* Font Awesome Fix: Ensure icon font-family is correctly applied */
.fas,
.far,
.fab,
.fal {
    font-family: "Font Awesome 5 Free";
}