/* Import các file CSS */
@import 'utils/variables.css?v=14082025';
@import 'utils/animations.css?v=14082025';
@import 'layouts/header.css?v=14082025';
@import 'layouts/footer.css?v=14082025';
@import 'components/buttons.css?v=14082025';
@import 'components/forms.css?v=14082025';

/* Reset CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family-base);
    line-height: var(--line-height-base);
    color: var(--gray-900);
}

/* Container styles */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header & Navigation */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo img {
    text-decoration: none;
    width: 180px;
    height: auto;
    object-fit: contain;
    display: block;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    color: #333;
}

.nav-container {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: #007bff;
}

.nav-icons {
    display: flex;
    gap: 1.5rem;
}

.nav-icons a {
    color: #333;
    text-decoration: none;
    font-size: 1.2rem;
}

/* Slide styles */
.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
}

.slide.active {
    opacity: 1;
}

/* Button styles */
.cta-button {
    padding: 15px 30px;
    font-size: 1.2rem;
    background-color: #e74c3c;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-decoration: none;
}

.cta-button:hover {
    background-color: #c0392b;
}

/* Category styles */
.category-card {
    text-align: center;
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    background: #fff;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.category-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 1rem;
}

.category-card h3 {
    margin-bottom: 1rem;
}

.category-link {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: #007bff;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    margin-top: auto;
}

.category-link:hover {
    background-color: #0056b3;
}

/* Features Section */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 4rem 5%;
    background-color: #f8f9fa;
}

.product-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
    font-weight: 500;
}

.feature {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-align: left;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.feature:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-color: #007bff;
}

.feature i {
    font-size: 2rem;
    color: #007bff;
    min-width: 2rem;
    text-align: center;
}

.feature span {
    font-size: 0.95rem;
    line-height: 1.4;
    color: #495057;
}

.view-detail {
    text-decoration: none;
    /*color: deeppink;*/
}
/*!* Products Section *!*/
/*.products-section {*/
/*    padding: 1rem;*/
/*}*/

/*.products-header {*/
/*    display: flex;*/
/*    justify-content: space-between;*/
/*    align-items: center;*/
/*    margin-bottom: 2rem;*/
/*}*/

/*.sort-options select {*/
/*    padding: 0.5rem;*/
/*    border: 1px solid #ddd;*/
/*    border-radius: 5px;*/
/*}*/

/*.products-grid {*/
/*    display: grid;*/
/*    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));*/
/*    gap: 2rem;*/
/*}*/

/*.product-card {*/
/*    background-color: #fff;*/
/*    border-radius: 10px;*/
/*    box-shadow: 0 2px 5px rgba(0,0,0,0.1);*/
/*    overflow: hidden;*/
/*    transition: transform 0.3s ease;*/
/*    display: flex;*/
/*    flex-direction: column;*/
/*    height: 100%;*/
/*}*/

/*.product-card:hover {*/
/*    transform: translateY(-5px);*/
/*}*/

/*.product-card img {*/
/*    width: 100%;*/
/*    height: 100%;*/
/*    object-fit: cover;*/
/*}*/

/*.product-info {*/
/*    padding: 1rem;*/
/*    display: flex;*/
/*    flex-direction: column;*/
/*    flex-grow: 1;*/
/*}*/

/*.product-title {*/
/*    margin-bottom: 0.5rem;*/
/*    height: 2.4em;*/
/*    line-height: 1.2rem;*/
/*    overflow: hidden;*/
/*    text-overflow: ellipsis;*/
/*    display: -webkit-box;*/
/*    -webkit-line-clamp: 2;*/
/*    -webkit-box-orient: vertical;*/
/*    word-break: break-word;*/
/*    max-width: 100%;*/
/*    white-space: normal;*/
/*}*/

/*.price {*/
/*    color: #007bff;*/
/*    font-weight: bold;*/
/*    font-size: 1.2rem;*/
/*    margin-bottom: 1rem;*/
/*}*/

/*.product-actions {*/
/*    display: flex;*/
/*    justify-content: space-between;*/
/*    align-items: center;*/
/*}*/

/*.add-to-cart {*/
/*    background-color: #007bff;*/
/*    color: #fff;*/
/*    border: none;*/
/*    padding: 0.5rem;*/
/*    border-radius: 5px;*/
/*    cursor: pointer;*/
/*    transition: background-color 0.3s ease;*/
/*}*/

/*.add-to-cart:hover {*/
/*    background-color: #0056b3;*/
/*}*/

/*!* Product Info Styles *!*/
/*.product-info h1 {*/
/*    margin-bottom: 1rem;*/
/*}*/

/*.product-rating {*/
/*    display: flex;*/
/*    align-items: center;*/
/*    gap: 1rem;*/
/*    margin-bottom: 1rem;*/
/*}*/

/*.stars {*/
/*    color: #ffc107;*/
/*}*/

/*.product-price {*/
/*    margin-bottom: 2rem;*/
/*}*/

/*.current-price {*/
/*    font-size: 2rem;*/
/*    font-weight: bold;*/
/*    color: #007bff;*/
/*}*/

/*.original-price {*/
/*    text-decoration: line-through;*/
/*    color: #6c757d;*/
/*    margin-left: 1rem;*/
/*}*/

/*.discount {*/
/*    background-color: #dc3545;*/
/*    color: #fff;*/
/*    padding: 0.25rem 0.5rem;*/
/*    border-radius: 3px;*/
/*    margin-left: 1rem;*/
/*}*/

/*.product-variants {*/
/*    margin-bottom: 2rem;*/
/*}*/

/*.color-options {*/
/*    display: flex;*/
/*    gap: 1rem;*/
/*}*/

/*.color-option {*/
/*    width: 30px;*/
/*    height: 30px;*/
/*    border-radius: 50%;*/
/*    border: 2px solid transparent;*/
/*    cursor: pointer;*/
/*}*/

/*.color-option.active {*/
/*    border-color: #007bff;*/
/*}*/

/*.product-quantity {*/
/*    margin-bottom: 2rem;*/
/*}*/

/*.quantity-selector {*/
/*    display: flex;*/
/*    align-items: center;*/
/*    gap: 1rem;*/
/*}*/

/*.quantity-selector button {*/
/*    padding: 0.5rem 1rem;*/
/*    border: 1px solid #ddd;*/
/*    background-color: #fff;*/
/*    cursor: pointer;*/
/*}*/

/*.quantity-selector input {*/
/*    width: 60px;*/
/*    padding: 0.5rem;*/
/*    text-align: center;*/
/*    border: 1px solid #ddd;*/
/*}*/

/*.add-to-cart-btn,*/
/*.buy-now-btn {*/
/*    padding: 1rem 2rem;*/
/*    border: none;*/
/*    border-radius: 5px;*/
/*    cursor: pointer;*/
/*    font-weight: bold;*/
/*    transition: background-color 0.3s ease;*/
/*}*/

/*.add-to-cart-btn {*/
/*    background-color: #007bff;*/
/*    color: #fff;*/
/*    margin-right: 1rem;*/
/*}*/

/*.add-to-cart-btn:hover {*/
/*    background-color: #0056b3;*/
/*}*/

/*.buy-now-btn {*/
/*    background-color: #28a745;*/
/*    color: #fff;*/
/*}*/

/*.buy-now-btn:hover {*/
/*    background-color: #218838;*/
/*}*/



.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    font-size: 1.5rem;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.pagination a {
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    text-decoration: none;
    color: #333;
    border-radius: 3px;
}

.pagination a.active {
    background-color: #007bff;
    color: #fff;
    border-color: #007bff;
}

.pagination a.next {
    background-color: #f8f9fa;
}

/* Animations */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Media Queries */
/* Print styles */
@media print {
    .navbar,
    .product-actions,
    .related-products {
        display: none;
    }
}

/* Large devices (desktops) */
@media (min-width: 1025px) {
    .container {
        max-width: 1200px;
        margin: 0 auto;
    }

    .products-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Medium devices (tablets) */
@media (min-width: 769px) and (max-width: 1024px) {
    .products-page {
        grid-template-columns: 200px 1fr;
    }

    .product-features {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Small devices (tablets and mobile) */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    .navbar {
        flex-direction: row;
        padding: 1rem;
    }

    .menu-toggle {
        display: block;
    }

    .nav-container {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #fff;
        padding: 1rem;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        flex-direction: column;
        gap: 1rem;
    }

    .nav-container.active {
        display: flex;
        animation: slideDown 0.3s ease forwards;
    }

    .nav-links {
        flex-direction: column;
        width: 100%;
        text-align: center;
        gap: 1rem;
    }

    .nav-icons {
        width: 100%;
        justify-content: center;
        padding-top: 1rem;
        border-top: 1px solid #eee;
    }

    .logo img {
        width: 150px;
    }

    .cta-button {
        padding: 12px 24px;
        font-size: 1rem;
    }

    .category-card img {
        height: 180px;
    }

    .product-features {
        grid-template-columns: 1fr;
        gap: 0.8rem;
        margin-bottom: 1.5rem;
    }

    .feature {
        padding: 1rem;
        font-size: 0.9rem;
        border-radius: 8px;
    }

    .feature i {
        font-size: 1.5rem;
        min-width: 1.5rem;
    }

    .feature span {
        font-size: 0.85rem;
    }
}

/* Extra small devices (mobile) */
@media (max-width: 480px) {
    .container {
        padding: 0 0.5rem;
    }

    .product-features {
        grid-template-columns: 1fr;
        gap: 0.6rem;
        margin-bottom: 1rem;
    }

    .feature {
        padding: 0.8rem;
        font-size: 0.8rem;
        border-radius: 6px;
    }

    .feature i {
        font-size: 1.2rem;
        min-width: 1.2rem;
    }

    .feature span {
        font-size: 0.75rem;
    }

    .navbar {
        padding: 0.5rem;
    }

    .logo img {
        width: 120px;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .product-card img {
        height: 180px;
    }

    .main-image {
        height: 300px;
    }

    .info-item {
        flex-direction: column;
        text-align: center;
    }

    .info-item i {
        margin-bottom: 0.5rem;
    }

    .social-links {
        justify-content: center;
    }
}
