﻿html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 0;
}
/* Màu xanh thương hiệu */
:root {
    --brand-green: #189a46; /* Màu xanh lá trong ảnh */
}

/* Dải xanh phía trên */
.top-bar {
    background-color: var(--brand-green);
}

    .top-bar a {
        font-size: 14px;
        transition: opacity 0.3s;
    }

        .top-bar a:hover {
            opacity: 0.8;
        }

/* Cấu trúc Logo */
.brand-name {
    color: var(--brand-green);
    font-size: 22px;
    line-height: 1;
    letter-spacing: 1px;
}

.brand-sub {
    color: #333;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Định dạng Menu Link */
.navbar-nav .nav-link {
    margin: 0 10px;
    font-size: 15px;
    transition: color 0.3s;
}

    .navbar-nav .nav-link:hover {
        color: var(--brand-green) !important;
    }

/* Nút Đăng ký ngay */
.btn-register {
    background-color: var(--brand-green);
    border: none;
    box-shadow: 0 4px 6px rgba(24, 154, 70, 0.2);
}

    .btn-register:hover {
        background-color: #14803a;
        transform: translateY(-1px);
    }


.no-padding {
    padding-top: 0;
    padding-bottom: 0;
}


/* FOOTER*/

/* Màu nền xanh nhạt của Footer */
.footer-section {
    background-color: #e8f5e9; /* Màu xanh mint cực nhạt */
    color: #333;
}

.footer-link-list li {
    margin-bottom: 10px;
    font-size: 14px;
}

/* Định dạng Icon mạng xã hội */
.social-icon {
    width: 35px;
    height: 35px;
    background-color: #189a46; /* Màu xanh thương hiệu */
    color: white !important;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    transition: transform 0.3s ease;
}

    .social-icon:hover {
        color: white;
        transform: translateY(-3px);
        background-color: #14803a;
    }

.footer-section h5 {
    font-size: 16px;
    letter-spacing: 1px;
}

/* Social button flex*/
/* Container chứa các nút */
.contact-buttons {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Style chung cho mỗi nút */
.contact-item {
    position: relative;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

    .contact-item:hover {
        transform: scale(1.1);
    }

/* Màu và Icon cho Zalo */
.zalo-btn {
    background-color: #fff; /* Nền trắng để nổi bật logo xanh */
    border: 1px solid #0068ff;
}

    .zalo-btn img {
        width: 35px;
        height: 35px;
    }

/* Màu và Icon cho Hotline */
.phone-btn {
    background-color: #ff9800; /* Màu cam như trong ảnh */
    color: white;
    font-size: 24px;
}

/* Hiệu ứng vòng tròn tỏa ra (Pulse) */
.pulse-ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    animation: pulse-animation 2s infinite;
}

.zalo-btn .pulse-ring {
    border: 2px solid #0068ff;
}

.phone-btn .pulse-ring {
    border: 2px solid #ff9800;
}

@keyframes pulse-animation {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

/* Home Page*/
.hero-section {
    position: relative;
    width: 100%;
    min-height: 500px; /* Độ cao của banner */
    /* Thay đường dẫn ảnh của bạn vào đây */
    background-image: linear-gradient(to right, rgba(232, 245, 233, 1) 30%, rgba(255, 255, 255, 0) 70%), url('https://res.cloudinary.com/driurkmfp/image/upload/v1777391147/TheReedChess/hero_banner_lsxzku.jpg');
    background-size: cover;
    background-position: center top;
    display: flex;
    align-items: center;
}

.hero-content h1 {
    line-height: 1.2;
    color: #189a46 !important; /* Màu xanh thương hiệu */
}

.hero-content h1 {
    line-height: 1.2;
    color: #189a46 !important; /* Màu xanh thương hiệu */
}

.hero-content .btn-success {
    background-color: #189a46;
    border: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

    .hero-content .btn-success:hover {
        background-color: #14803a;
        transform: translateY(-3px);
        box-shadow: 0 10px 20px rgba(24, 154, 70, 0.3);
    }

/* Tùy chỉnh cho mobile */
@media (max-width: 991.98px) {
    .hero-section {
        background-image: linear-gradient(to bottom, rgba(232, 245, 233, 0.9) 100%, rgba(232, 245, 233, 0.9) 100%), url('https://res.cloudinary.com/driurkmfp/image/upload/v1777391147/TheReedChess/hero_banner_lsxzku.jpg');
        text-align: center;
        min-height: 400px;
    }
}

/* About */
.about-mission-section {
    background-color: #fff;
    font-family: 'Lexend', sans-serif; /* Sử dụng font Lexend đã cài ở bước trước */
}

/* Định dạng tiêu đề nhỏ phía trên */
.intro-content h6 {
    letter-spacing: 2px;
    font-size: 0.9rem;
}

/* Định dạng tiêu đề chính */
.intro-content h2 {
    color: #111;
}

/* Icon Sứ mệnh */
.mission-icon {
    font-size: 3rem; /* Phóng to icon */
    color: #189a46; /* Màu xanh thương hiệu */
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mission-item h6 {
    font-size: 1rem;
    line-height: 1.5;
    color: #333;
    padding: 0 10px;
}

/* Responsive cho mobile */
@media (max-width: 767.98px) {
    .mission-item {
        margin-bottom: 2rem;
    }
}

/*Why choose us*/
.features-section {
    font-family: 'Lexend', sans-serif;
}

/* Định dạng thẻ card */
.feature-card {
    background-color: #fff;
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05) !important;
}

    /* Hiệu ứng hover cho thẻ */
    .feature-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 15px 30px rgba(24, 154, 70, 0.1) !important;
        border-color: #189a46 !important;
    }

/* Định dạng icon */
.feature-icon-wrap {
    font-size: 3.5rem;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-card h5 {
    color: #111;
    font-size: 1.2rem;
    line-height: 1.4;
}

/* Màu nền nhạt cho section để làm nổi bật thẻ trắng */
.bg-light {
    background-color: #f8fdf9 !important; /* Màu trắng xanh cực nhạt */
}

/* News*/

/* ====== SECTION TITLE ====== */
.section-title {
    text-align: center;
    color: #caa400;
    border-bottom: 2px solid #caa400;
    padding-bottom: 10px;
    margin-bottom: 20px;
    font-weight: 600;
}

/* ====== POST ITEM ====== */
.post-item {
    display: flex;
    gap: 12px;
    border-bottom: 1px solid #eee;
    padding-bottom: 12px;
    margin-bottom: 12px;
    min-height: 100px;
}

/* ====== THUMBNAIL ====== */
.thumb {
    width: 120px;
    height: 80px;
    object-fit: cover;
    flex-shrink: 0;
    border-radius: 4px;
}

/* ====== CONTENT WRAPPER ====== */
.post-item > div {
    flex: 1;
    overflow: hidden;
}

/* ====== TITLE ====== */
.title {
    font-weight: 600;
    color: #007bff;
    text-decoration: none;
    display: block;
    margin-bottom: 4px;
    /* clamp 2 dòng */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

    .title:hover {
        text-decoration: underline;
    }

/* ====== DATE ====== */
.date {
    font-size: 12px;
    color: #888;
    margin-bottom: 4px;
}

/* ====== DESCRIPTION ====== */
.desc {
    font-size: 14px;
    color: #333;
    line-height: 1.4;
    /* clamp 3 dòng */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ====== FALLBACK (Firefox) ====== */
@supports not (-webkit-line-clamp: 2) {
    .title {
        max-height: 2.8em;
        overflow: hidden;
    }

    .desc {
        max-height: 4.2em;
        overflow: hidden;
    }
}

/* ====== RESPONSIVE ====== */
@media (max-width: 768px) {
    .post-item {
        flex-direction: column;
    }

    .thumb {
        width: 100%;
        height: 180px;
    }
}

/* Card*/
/* Link bọc toàn card - bỏ gạch chân + reset màu */
.news-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* Card */
.news-card {
    border-radius: 18px;
    overflow: hidden;
    transition: all 0.25s ease;
    background: #fff;
}

    /* Hover card */
    .news-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 12px 30px rgba(0,0,0,0.12);
    }

        /* Hover đổi màu title */
        .news-card:hover .news-title {
            color: #198754; /* xanh lá */
        }

/* Ảnh */
.news-thumb {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.news-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.news-card:hover .news-img {
    transform: scale(1.05);
}

/* Badge */
.news-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: white;
    color: #111;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 999px;
}

/* Title - màu đen mặc định + giới hạn 2 dòng */
.news-title {
    font-weight: 700;
    font-size: 18px;
    line-height: 1.3;
    color: #000; /* 👈 fix màu đen */

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-decoration: none; /* phòng trường hợp bị inherit underline */
}

/* Description - giới hạn 3 dòng */
.news-desc {
    color: #6c757d;
    font-size: 14px;
    margin-top: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-decoration: none; /* tránh inherit underline */
}
.news-title-divider {
    width: 73%;
    height: 2px;
    background: #198754; /* xanh lá */
    margin: 0 auto;
    border-radius: 999px;
}



/* Index cua hang*/
.store-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 24px;
}

.store-title {
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 6px;
    color: #1a1a1a;
}

.store-subtitle {
    text-align: center;
    color: #6b7280;
    font-size: 15px;
    margin-bottom: 32px;
}

/* Layout */
.store-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 28px;
    align-items: start;
}

/* Sidebar */
.sidebar-filter {
    background: #fff;
    border: 0.5px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    position: sticky;
    top: 20px;
}

.filter-section-title {
    font-size: 12px;
    font-weight: 700;
    color: #16a34a;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 12px;
    margin-top: 20px;
}

    .filter-section-title:first-child {
        margin-top: 0;
    }

.filter-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #374151;
    padding: 5px 0;
    cursor: pointer;
}

    .filter-item input[type="checkbox"] {
        accent-color: #16a34a;
        width: 15px;
        height: 15px;
    }

.price-range-inputs {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-top: 8px;
}

    .price-range-inputs input {
        width: 100%;
        border: 0.5px solid #d1d5db;
        border-radius: 6px;
        padding: 6px 10px;
        font-size: 13px;
    }

.btn-filter {
    width: 100%;
    background: #16a34a;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 9px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 16px;
}

    .btn-filter:hover {
        background: #15803d;
    }

.btn-clear {
    width: 100%;
    background: transparent;
    color: #374151;
    border: 0.5px solid #d1d5db;
    border-radius: 8px;
    padding: 9px;
    font-size: 14px;
    cursor: pointer;
    margin-top: 8px;
}

    .btn-clear:hover {
        background: #f3f4f6;
    }

/* Main area */
.store-main {
}

.store-topbar {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    align-items: center;
}

.search-input {
    flex: 1;
    border: 0.5px solid #d1d5db;
    border-radius: 8px;
    padding: 10px 16px;
    font-size: 14px;
    outline: none;
    background: #fff;
}

    .search-input:focus {
        border-color: #16a34a;
    }

.sort-select {
    border: 0.5px solid #d1d5db;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 14px;
    background: #fff;
    cursor: pointer;
    min-width: 170px;
}

/* Product grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.product-card {
    background: #fff;
    border: 0.5px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    transition: box-shadow .2s, transform .2s;
    position: relative;
    text-decoration: none;
    color: inherit;
    display: block;
}

    .product-card:hover {
        box-shadow: 0 8px 24px rgba(0,0,0,.1);
        transform: translateY(-2px);
        text-decoration: none;
        color: inherit;
    }

.product-img-wrap {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    background: #f9fafb;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .product-img-wrap img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform .3s;
    }

.product-card:hover .product-img-wrap img {
    transform: scale(1.05);
}

.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.badge-new {
    background: #16a34a;
    color: #fff;
}

.badge-hot {
    background: #f97316;
    color: #fff;
}

.badge-inactive {
    background: #9ca3af;
    color: #fff;
}

.product-info {
    padding: 14px;
}

.product-name {
    font-size: 16px;
    font-weight: 700;
    color: #111827;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 8px;
    line-height: 1.4;
}

.product-price {
    font-size: 14px;
    font-weight: 600;
    color: #16a34a;
    margin-bottom: 12px;
}

.btn-add-cart {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    border: 1.5px solid #16a34a;
    color: #16a34a;
    background: transparent;
    border-radius: 7px;
    padding: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s, color .15s;
}

    .btn-add-cart:hover {
        background: #16a34a;
        color: #fff;
    }

.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #9ca3af;
}

@media (max-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .store-layout {
        grid-template-columns: 1fr;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Detail cua hang*/
.detail-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 24px 60px;
}

/* Breadcrumb */
.breadcrumb-custom {
    display: flex;
    gap: 8px;
    align-items: center;
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

    .breadcrumb-custom a {
        color: #6b7280;
        text-decoration: none;
    }

        .breadcrumb-custom a:hover {
            color: #16a34a;
        }

.breadcrumb-sep {
    color: #d1d5db;
}

/* Layout */
.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 280px;
    gap: 40px;
    align-items: start;
}

/* Image */
.product-img-main {
    border: 0.5px solid #e5e7eb;
    border-radius: 16px;
    overflow: hidden;
    background: #f9fafb;
    position: relative;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .product-img-main img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.new-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: #16a34a;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    letter-spacing: .04em;
}

/* Info */
.product-title {
    font-size: 26px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 16px;
    line-height: 1.3;
}

.product-price-big {
    font-size: 28px;
    font-weight: 700;
    color: #16a34a;
    margin-bottom: 24px;
}

.qty-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.qty-label {
    font-size: 14px;
    color: #374151;
    font-weight: 500;
}

.qty-control {
    display: flex;
    align-items: center;
    border: 0.5px solid #d1d5db;
    border-radius: 8px;
    overflow: hidden;
}

.qty-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f9fafb;
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: #374151;
    transition: background .15s;
}

    .qty-btn:hover {
        background: #f3f4f6;
    }

.qty-input {
    width: 48px;
    text-align: center;
    border: none;
    border-left: 0.5px solid #e5e7eb;
    border-right: 0.5px solid #e5e7eb;
    font-size: 14px;
    font-weight: 600;
    padding: 0;
    height: 36px;
    outline: none;
}

.btn-contact-phone {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    background: #16a34a;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 14px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    margin-bottom: 12px;
    text-decoration: none;
    transition: background .15s;
}

    .btn-contact-phone:hover {
        background: #15803d;
        color: #fff;
    }

.btn-contact-zalo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    background: #fff;
    color: #374151;
    border: 1.5px solid #16a34a;
    border-radius: 10px;
    padding: 13px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: background .15s;
}

    .btn-contact-zalo:hover {
        background: #f0fdf4;
        color: #374151;
    }

.mini-trust {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.mini-trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #374151;
}

    .mini-trust-item i {
        color: #16a34a;
        font-size: 18px;
    }

/* Sidebar trust */
.trust-box {
    border: 0.5px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    background: #fff;
}

.trust-box-title {
    font-size: 13px;
    font-weight: 700;
    color: #16a34a;
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: 16px;
}

.trust-item {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    align-items: flex-start;
}

.trust-icon {
    width: 36px;
    height: 36px;
    background: #f0fdf4;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

    .trust-icon i {
        color: #16a34a;
        font-size: 16px;
    }

.trust-text strong {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #111;
}

.trust-text span {
    font-size: 12px;
    color: #6b7280;
}

.related-title {
    font-size: 13px;
    font-weight: 700;
    color: #16a34a;
    text-transform: uppercase;
    letter-spacing: .05em;
    margin: 24px 0 16px;
}

.related-item {
    display: flex;
    gap: 12px;
    padding: 10px 0;
    border-top: 0.5px solid #f3f4f6;
    text-decoration: none;
    color: inherit;
}

    .related-item:hover {
        opacity: .8;
    }

.related-img {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    object-fit: cover;
    border: 0.5px solid #e5e7eb;
    background: #f9fafb;
    flex-shrink: 0;
}

.related-info strong {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #111;
    line-height: 1.3;
    margin-bottom: 4px;
}

.related-info span {
    font-size: 13px;
    font-weight: 700;
    color: #16a34a;
}

/* Description */
.desc-section {
    margin-top: 48px;
    border-top: 0.5px solid #e5e7eb;
    padding-top: 32px;
}

.desc-section-title {
    font-size: 16px;
    font-weight: 700;
    color: #16a34a;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.desc-content {
    font-size: 14px;
    color: #374151;
    line-height: 1.8;
}

    .desc-content ul {
        padding-left: 20px;
    }

    .desc-content li {
        margin-bottom: 4px;
    }

        .desc-content li::marker {
            color: #16a34a;
        }

@media (max-width: 1024px) {
    .detail-grid {
        grid-template-columns: 1fr 1fr;
    }

    .trust-box:has(.related-title) {
        display: none;
    }
}

@media (max-width: 768px) {
    .detail-grid {
        grid-template-columns: 1fr;
    }
}

/*Dashboard post index*/
