@import url('https://fonts.cdnfonts.com/css/long-shot');
/* source-sans-3-latin-500-normal */
@font-face {
    font-family: 'Source Sans 3';
    font-style: normal;
    font-display: swap;
    font-weight: 500;
    src: url(https://cdn.jsdelivr.net/fontsource/fonts/source-sans-3@latest/latin-500-normal.woff2) format('woff2'), url(https://cdn.jsdelivr.net/fontsource/fonts/source-sans-3@latest/latin-500-normal.woff) format('woff');
    unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

body {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: 'Source Sans 3','san serif';
    background-color: #000 !important;
    color: #fff;
}

header {
    width: 100%;
    position: relative;
    background-color: #000;
    background-repeat: no-repeat;
    background-size: 100% auto;
    background-position: top center;
    background-attachment: scroll;
    margin: 0 !important;
    padding: 0 !important;
}

.hero-section {
    background: url('/image/resource\ hero.webp') center/cover no-repeat;
    color: #fff;
    text-align: center;
    padding: 80px 20px;
    position: relative;
    margin-bottom: 80px;
}

.hero-section::after {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-family: 'Long Shot', sans-serif;
    font-size: 64px;
    margin-bottom: 20px;
    letter-spacing: 2px;
    transform: scaleX(1.1);
}

.hero-description {
    font-size: 15px;
    margin-bottom: 40px;
    line-height: 1.6;
    letter-spacing: 0.5px;
}

.hero-btn {
    background-color: #D9A91C;
    color: #000;
    padding: 15px 40px;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.3s;
}

.hero-btn:hover {
    background-color: #ffcc00;
    color: #000;
}

.container {
    padding: 0 30px;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 50px;
}

.product-link {
    display: block;
    text-decoration: none;
    color: inherit;
    background: rgb(39, 39, 39);
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    padding: 20px;
    flex: 1 1 calc(33.333% - 20px);
    max-width: calc(33.333% - 20px);
    display: flex;
    flex-direction: column;
    text-align: left;
    margin-bottom: 10px;
    position: relative;
}

.tag img{
    position: absolute;
    top: 0;
    left: 0;
    width: 110px;
    height: auto;
    border-top-left-radius: 10px;
}

.product-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    margin-bottom: 15px;
    object-fit: cover;
    max-height: 200px;
}

.product-info h2 {
    font-size: 1.5rem;
    color: #D9A91C;
    margin-bottom: 15px;
    font-family: 'Long Shot', 'san serif';
    letter-spacing: 1px;
}

.product-info p {
    font-size: 0.9rem;
    margin: 8px 0;
}

.price {
    font-size: 1.2rem !important;
    font-weight: 700;
}

.product-stats i {
    margin-top: 20px;
    margin-right: 12px; 
}

.product-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.view-more-btn {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
}

/* Nút Buy Now */
.view-more-btn {
    background-color: #D9A91C;
    border: 1px solid  #D9A91C;
    color: rgb(0, 0, 0);
    transition: background-color 0.3s;
}

.view-more-btn:hover {
    background: #facc15;
}

@media (max-width: 1200px) {
    .container, .product-link { 
        display: flex;
        max-width: 900px;
        justify-content: center; /* căn giữa */
        margin: 0 auto;
        flex-wrap: wrap;
    }

    .product-link {  
        flex: 1 1 calc(50% - 20px);
        max-width: calc(50% - 20px);
    }
}

@media (max-width: 900px) {
    .product-link { 
        display: flex;
        justify-content: center; /* căn giữa */
        margin: 0 auto;
        flex-wrap: wrap;
    }
}

@media (max-width: 820px) {
    .product-link { 
        display: flex;
        justify-content: center; /* căn giữa */
        margin: 0 auto;
        flex-wrap: wrap;
    }

}

@media (max-width: 690px) {
    .container, .product-link {
        max-width: 600px;
        flex-direction: column;
        align-items: center;
        gap: 15px;
        margin-bottom: 15px;
    }

    .product-link {
        max-width: 600px;
        padding: 20px 5px;
        border-radius: 6px;
        width: 80%;
        box-sizing: border-box;
    }

    .product-card {
        width: 100%;
        max-width: 93%;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        box-sizing: border-box;
    }
}

@media (max-width: 450px) {
    .product-link {
        max-width: 600px;
        padding: 20px 5px;
        border-radius: 6px;
        width: 100%;
        box-sizing: border-box;
    }

    .product-card {
        width: 100%;
        max-width: 93%;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        box-sizing: border-box;
    }
}

/* thêm */
@media (max-width: 980px) {
    .navbar {
        padding: 6px 40px;
    }
}
