/* Main Styles - Thư Viện Tranh */

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 4rem 0;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 3rem;
    position: relative;
    z-index: 2;
}

.hero-text {
    flex: 1;
}

.hero-text h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-text p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.6;
}

.hero-search {
    max-width: 500px;
}

.search-input-group {
    display: flex;
    background: white;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.search-input-group input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: none;
    outline: none;
    font-size: 1rem;
    color: #333;
}

.search-input-group button {
    padding: 1rem 1.5rem;
    background: #ff6b6b;
    color: white;
    border: none;
    cursor: pointer;
    transition: background 0.3s ease;
}

.search-input-group button:hover {
    background: #ff5252;
}

.hero-image {
    flex: 1;
    text-align: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}







/* Categories Navigation */
.categories-nav {
    background: white;
    padding: 1rem 0;
    border-bottom: 1px solid #e9ecef;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.categories-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
}

.menu-item {
    background: #f8f9fa;
    border-radius: 25px;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}

.menu-item:hover,
.menu-item.active {
    background: #007bff;
    color: white;
}

.menu-item a {
    color: #495057;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.menu-item:hover a,
.menu-item.active a {
    color: white;
}

.categories-submenu {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

.submenu-item {
    background: #f8f9fa;
    border-radius: 20px;
    padding: 0.3rem 0.8rem;
    transition: all 0.3s ease;
}

.submenu-item:hover {
    background: #e9ecef;
}

.submenu-item a {
    color: #6c757d;
    text-decoration: none;
    font-size: 0.8rem;
}

.submenu-item.more {
    background: #ff6b6b;
}

.submenu-item.more a {
    color: white;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1rem;
}

/* Trending Categories */
.trending-categories {
    padding: 4rem 0;
    background: #f8f9fa;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.category-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.category-image {
    height: 150px;
    overflow: hidden;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.category-card:hover .category-image img {
    transform: scale(1.1);
}

.category-info {
    padding: 1rem;
    text-align: center;
}

.category-info h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.category-card a {
    text-decoration: none;
    color: inherit;
}

/* Hot Products & New Products */
.hot-products,
.new-products {
    padding: 4rem 0;
}

.hot-products {
    background: white;
}

.new-products {
    background: #f8f9fa;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.product-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.product-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.product-price {
    background: #ff6b6b;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
}

.product-info {
    padding: 1rem;
    text-align: center;
}

.product-info h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin: 0;
    line-height: 1.4;
}

.product-card a {
    text-decoration: none;
    color: inherit;
}

/* Collection Showcase */
.collection-showcase {
    padding: 4rem 0;
    background: white;
}

.collection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.collection-item {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.collection-item.large {
    grid-column: span 2;
}

.collection-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.collection-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.collection-item.large img {
    height: 300px;
}

.collection-item:hover img {
    transform: scale(1.1);
}

.collection-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 2rem 1rem 1rem;
    text-align: center;
}

.collection-info h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
}

.collection-info p {
    font-size: 0.9rem;
    opacity: 0.9;
    margin: 0;
}

.collection-item a {
    text-decoration: none;
    color: inherit;
}

/* Video Section */
.video-section {
    padding: 4rem 0;
    background: #f8f9fa;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.video-item {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.video-thumbnail {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.video-item:hover .video-thumbnail img {
    transform: scale(1.1);
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.9);
    color: #ff6b6b;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.play-button:hover {
    background: white;
    transform: translate(-50%, -50%) scale(1.1);
}

.video-item h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin: 1rem 1rem 0.5rem;
    line-height: 1.4;
}

.video-item p {
    font-size: 0.9rem;
    color: #666;
    margin: 0 1rem 1rem;
    line-height: 1.4;
}

/* View All Button */
.view-all {
    text-align: center;
}

.btn-view-all {
    display: inline-block;
    padding: 1rem 2rem;
    background: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.btn-view-all:hover {
    background: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
    color: white;
    text-decoration: none;
}

/* Header */
.header {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.logo img {
    height: 50px;
    width: auto;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.search-box {
    display: flex;
    align-items: center;
    position: relative;
}

.search-box input {
    width: 300px;
    padding: 0.75rem 1rem;
    border: 2px solid #e9ecef;
    border-radius: 25px;
    font-size: 0.875rem;
    transition: border-color 0.3s ease;
}

.search-box input:focus {
    border-color: #007bff;
    box-shadow: none;
}

.search-box button {
    background: none;
    border: none;
    position: absolute;
    right: 10px;
    color: #6c757d;
    cursor: pointer;
    font-size: 1rem;
}

.search-box button:hover {
    color: #007bff;
}

.user-actions {
    display: flex;
    gap: 0.5rem;
}

/* Navigation */
.navigation {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    margin-right: 2rem;
}

.nav-menu a {
    display: block;
    padding: 1rem 0;
    color: #495057;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: #007bff;
}

/* Main Content */
.main-content {
    padding: 0;
    min-height: 60vh;
}

/* Footer */
.footer {
    background: #f8f9fa;
    padding: 0;
    margin-top: 4rem;
}

.footer-middle-area {
    padding: 60px 0;
    color: #000;
    background: #fff;
}

.footer-middle-area .footer-top {
    margin-bottom: 40px;
}

.footer-middle-area .tz-why-choose-title {
    font-size: 16px;
    text-align: left;
    border-bottom: 1px solid #ddd;
    margin-bottom: 15px;
    font-weight: bold;
    padding-bottom: 10px;
}

.footer-middle-area .footer-mid-menu.contuct {
    border-bottom: 1px solid #ddd;
    margin-bottom: 20px;
    padding-bottom: 20px;
}

.footer-middle-area .footer-mid-menu.contuct ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-middle-area .footer-mid-menu.contuct ul li {
    margin-bottom: 10px;
}

.footer-middle-area .footer-mid-menu.contuct ul li i {
    margin-right: 8px;
    color: #007bff;
}

.footer-middle-area .footer-mid-menu.contuct ul li a {
    color: #333;
    text-decoration: none;
}

.footer-middle-area .footer-mid-menu.contuct ul li a:hover {
    color: #007bff;
}

.footer-middle-area .footer-mid-menu h4 {
    color: #000;
    font-size: 14px;
    padding-bottom: 20px;
    text-transform: uppercase;
    line-height: 23px;
    white-space: nowrap;
    float: left;
    width: 100%;
    border-bottom: 1px solid #ddd;
    margin-bottom: 15px;
    font-weight: bold;
}

.footer-middle-area .footer-mid-menu h4 span {
    float: left;
}

.footer-middle-area .footer-mid-menu ul.menu_ft {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-middle-area .footer-mid-menu ul.menu_ft li {
    margin-bottom: 8px;
}

.footer-middle-area .footer-mid-menu ul.menu_ft li a {
    color: #666;
    text-decoration: none;
    font-size: 13px;
    line-height: 1.5;
}

.footer-middle-area .footer-mid-menu ul.menu_ft li a:hover {
    color: #007bff;
}

.footer-middle-area .footer-mid-menu.contact .fa {
    width: 20px;
    margin-right: 5px;
    color: #706f6d;
}

.footer-middle-area .footer-mid-menu.contact .tx {
    line-height: 23px;
    float: left;
    margin-left: 10px;
}

.footer-middle-area .footer-mid-menu.contact .tx:hover {
    color: #74fe46;
    padding-left: 10px;
    text-decoration: none;
}

.footer-middle-area .footer-mid-menu.contact .fa:hover {
    color: #74fe46;
}

.footer-bottum-area {
    background: #333;
    padding: 20px 0;
    color: #ccc;
}

.footer-bottum-area .copyright-info {
    font-size: 12px;
}

.footer-bottum-area .copyright-info a {
    color: #ccc;
    text-decoration: none;
}

.footer-bottum-area .copyright-info a:hover {
    color: #fff;
}

.footer-bottum-area .company-links ul.links {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: right;
}

.footer-bottum-area .company-links ul.links li {
    display: inline-block;
    margin-left: 15px;
}

.footer-bottum-area .company-links ul.links li a {
    color: #ccc;
    text-decoration: none;
    font-size: 12px;
}

.footer-bottum-area .company-links ul.links li a:hover {
    color: #fff;
}

/* Contact Buttons */
.btn-call-now {
    position: fixed;
    right: 20px;
    bottom: 20px;
    background: #25d366;
    color: white;
    padding: 12px 15px;
    border-radius: 50px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.btn-call-now:hover {
    background: #128c7e;
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.btn-call-now.btn-call-now-2 {
    bottom: 80px;
    background: #0084ff;
}

.btn-call-now.btn-call-now-2:hover {
    background: #006bb3;
}

.btn-call-now.btn-call-now-3 {
    bottom: 140px;
    background: #0068ff;
}

.btn-call-now.btn-call-now-3:hover {
    background: #0052cc;
}

.btn-call-now img {
    width: 24px;
    height: 24px;
}

.btn-call-now span {
    font-size: 14px;
    font-weight: 500;
}

/* Video Section - Legacy Layout (for backward compatibility) */
.list-video {
    margin-bottom: 60px;
}

.list-video .title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 20px;
    text-align: center;
}

.list-video .title a {
    color: #333;
    text-decoration: none;
}

.list-video .title a:hover {
    color: #007bff;
}

/* Legacy video layout - only used if not using masonry */
.list-video .row .item {
    display: flex;
    margin-bottom: 20px;
    gap: 15px;
}

.list-video .row .item .image {
    flex: 0 0 50%;
    max-width: 50%;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
}

.list-video .row .item .image a {
    display: block;
    position: relative;
    padding-bottom: 56.25%;
    z-index: 9;
}

.list-video .row .item .image a img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.list-video .row .item .image a:hover img {
    transform: scale(1.05);
}

.list-video .row .item .image .video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.list-video .row .item .image .video-container.active {
    z-index: 10;
    opacity: 1;
    visibility: visible;
}

.list-video .row .item .image .video-container iframe,
.list-video .row .item .image .video-container object,
.list-video .row .item .image .video-container embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.list-video .row .item .info {
    padding-left: 15px;
    flex: 0 0 50%;
    max-width: 50%;
}

.list-video .row .item .info h3 {
    font-size: 16px;
    font-weight: initial;
}

.list-video .row .item .info h3 a {
    color: #000;
}

.list-video .row .item .info p.view {
    color: #666;
    font-size: 12px;
    margin-bottom: 5px;
}

.list-video .row .item .info p.user {
    color: #666;
    font-size: 12px;
    margin-bottom: 10px;
}

.list-video .row .item .info p.user i {
    margin-right: 5px;
}

.list-video .row .item .info p.content {
    color: #999;
    font-size: 12px;
    line-height: 1.4;
}

/* List Blog (Materials) styles */
.list-blog {
    margin-bottom: 60px;
}

.list-blog .title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 20px;
    text-align: center;
}

.list-blog .title a {
    color: #333;
    text-decoration: none;
}

.list-blog .title a:hover {
    color: #007bff;
}

.list-blog .item {
    text-align: center;
    margin-bottom: 30px;
}

.list-blog .item a {
    text-decoration: none;
}

.list-blog .item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.list-blog .item:hover img {
    transform: scale(1.05);
}

.list-blog .item h3 {
    margin-top: 15px;
    font-size: 16px;
    font-weight: 600;
}

.list-blog .item h3 a {
    color: #333;
    text-decoration: none;
}

.list-blog .item h3 a:hover {
    color: #007bff;
}

/* List Category styles */
.list-cate {
    margin-bottom: 60px;
    text-align: center;
}

.list-cate .title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 30px;
}

.list-cate .title a {
    color: #333;
    text-decoration: none;
}

.list-cate .title a:hover {
    color: #007bff;
}

.list-cate ul {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.list-cate ul li {
    margin: 5px;
}

.list-cate ul li a {
    display: inline-block;
    padding: 8px 16px;
    background: #f8f9fa;
    color: #333;
    text-decoration: none;
    border-radius: 20px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.list-cate ul li a:hover {
    background: #007bff;
    color: white;
}

.list-cate .more {
    display: inline-block;
    padding: 10px 30px;
    background: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    transition: background 0.3s ease;
}

.list-cate .more:hover {
    background: #0056b3;
    color: white;
    text-decoration: none;
}

/* CSS cho các nút more-2 trong các section khác */
.list-product .more,
.list-product .more-2 {
    display: inline-block;
    padding: 12px 35px;
    background: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    margin-top: 20px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.2);
}

.list-product .more:hover,
.list-product .more-2:hover {
    background: #0056b3;
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

/* Responsive design for mobile */
@media (max-width: 768px) {
    /* Legacy video layout responsive */
    .list-video .row .item {
        flex-direction: column;
    }
    
    .list-video .row .item .image,
    .list-video .row .item .info {
        flex: none;
        max-width: 100%;
    }
    
    .list-video .row .item .info {
        padding-left: 0;
        padding-top: 15px;
    }
    
    .footer-bottum-area .company-links ul.links {
        text-align: center;
        margin-top: 15px;
    }
    
    .footer-bottum-area .company-links ul.links li {
        display: block;
        margin: 5px 0;
    }
    
    .btn-call-now {
        right: 15px;
        bottom: 15px;
        padding: 10px 12px;
    }
    
    .btn-call-now.btn-call-now-2 {
        bottom: 70px;
    }
    
    .btn-call-now.btn-call-now-3 {
        bottom: 125px;
    }
    
    .list-cate ul {
        gap: 5px;
    }
    
    .list-cate ul li a {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .list-product .more,
    .list-product .more-2 {
        padding: 10px 25px;
        font-size: 13px;
        margin-top: 15px;
    }
}

/* Chat Widget */
.chat-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.chat-button {
    width: 60px;
    height: 60px;
    background-color: #007bff;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
    transition: all 0.3s ease;
}

.chat-button:hover {
    background-color: #0056b3;
    transform: scale(1.1);
}

.chat-button i {
    font-size: 1.5rem;
}

.chat-box {
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 300px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.chat-header {
    background-color: #007bff;
    color: #fff;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header h5 {
    margin: 0;
    font-size: 1rem;
}

.close-chat {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.chat-content {
    padding: 1rem;
}

.chat-content p {
    margin-bottom: 1rem;
    color: #495057;
    font-size: 0.875rem;
}

.chat-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .search-box input {
        width: 250px;
    }
    
    .user-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .nav-menu {
        flex-direction: column;
    }
    
    .nav-menu li {
        margin-right: 0;
    }

    /* Hero Section Mobile */
    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .hero-text p {
        font-size: 1rem;
    }

    .search-input-group {
        flex-direction: column;
    }

    .search-input-group input {
        border-radius: 25px;
        margin-bottom: 0.5rem;
    }

    .search-input-group button {
        border-radius: 25px;
    }

    /* Categories Navigation Mobile */
    .categories-menu {
        justify-content: center;
    }

    .categories-submenu {
        justify-content: center;
    }

    /* Grid adjustments */
    .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1rem;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        gap: 1rem;
    }

    .collection-grid {
        grid-template-columns: 1fr;
    }

    .collection-item.large {
        grid-column: span 1;
    }

    .video-grid {
        grid-template-columns: 1fr;
    }

    /* Section headers */
    .section-header h2 {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .search-box input {
        width: 200px;
    }
    
    .chat-box {
        width: 280px;
        right: -10px;
    }

    /* Hero Section Small Mobile */
    .hero-text h1 {
        font-size: 1.5rem;
    }

    .hero-text p {
        font-size: 0.9rem;
    }

    /* Categories Navigation Small Mobile */
    .menu-item {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }

    .submenu-item {
        font-size: 0.7rem;
        padding: 0.25rem 0.6rem;
    }

    /* Grid adjustments */
    .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }

    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    }

    .product-image {
        height: 140px;
    }

    .category-image {
        height: 120px;
    }

    /* Section headers */
    .section-header h2 {
        font-size: 1.5rem;
    }
    
    .list-product .more,
    .list-product .more-2 {
        padding: 8px 18px;
        font-size: 11px;
        margin-top: 8px;
    }
    
    .footer-section {
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
}

/* Category Description Styles */
.category-description {
    margin: 5px 0 40px 0 !important;
    padding: 15px !important;
    background: #f8f9fa !important;
    border-left: 4px solid #007bff !important;
    border-radius: 5px !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
    position: relative !important;
    z-index: 1 !important;
}

.category-description p {
    margin: 0;
    line-height: 1.6;
    color: #555;
    font-size: 14px;
}

.category-description p:last-child {
    margin-bottom: 0;
}

/* Đảm bảo khoảng cách với masonry container */
.masonry-container {
    margin-top: 20px !important;
}

.collection-page h1 + .category-description + .masonry-container {
    margin-top: 0 !important;
}

/* Video page specific styles */
.video-page .video-masonry-container {
    margin-top: 20px;
    margin-bottom: 30px;
}

.video-page .list-video {
    margin-bottom: 40px;
}

@media (max-width: 768px) {
    .category-description {
        margin: 5px 0 30px 0 !important;
        padding: 12px !important;
    }
    
    .category-description p {
        font-size: 13px !important;
    }
    
    .video-page .video-masonry-container {
        margin-top: 15px;
        margin-bottom: 25px;
    }
}

@media (max-width: 576px) {
    .category-description {
        margin: 3px 0 25px 0 !important;
        padding: 10px !important;
    }
    
    .category-description p {
        font-size: 12px !important;
    }
    
    .video-page .video-masonry-container {
        margin-top: 10px;
        margin-bottom: 20px;
    }
} 