/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

a {
    text-decoration: none !important;
    color: inherit !important;
}

ul {
    list-style: none;
}

.btn-primary {
    background-color: #DB4444;
    color: #fff;
}

.btn-primary:hover {
    background-color: #2c2b2b;
    color: #fff;
}

.btn {
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s;
}

button {
    cursor: pointer;
    border: none;
    outline: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* mess icon */
.messenger-wrapper {
    position: fixed;
    bottom: 25px;
    right: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 9999;
    animation: fadeIn 0.6s ease;
}

/* Bong bóng "Chat với chúng tôi!" */
.messenger-bubble {
    background: #fff;
    color: #000;
    padding: 8px 14px;
    border-radius: 18px;
    font-size: 15px;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    position: relative;
    white-space: nowrap;
    font-family: 'Poppins', sans-serif;
    animation: bounceIn 1s ease;
}

.messenger-bubble::after {
    content: "";
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: transparent transparent transparent white;
}

/* Icon Messenger */
.messenger-float {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.messenger-float img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.messenger-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

/* Animation */
@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }

    60% {
        opacity: 1;
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


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

.hero-slideshow {
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
}

.slides-wrapper {
    display: flex;
    transition: transform 0.8s ease-in-out;
    width: 100%;
}

.slide {
    min-width: 100%;
    box-sizing: border-box;
}

.prev,
.next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.4);
    color: white;
    border: none;
    font-size: 24px;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 50%;
    z-index: 10;
}

.prev:hover,
.next:hover {
    background-color: rgba(0, 0, 0, 0.7);
}

.prev {
    left: 20px;
}

.next {
    right: 20px;
}

.shop-now-btn {
    background: #ff5722;
    color: #fff;
    padding: 10px 18px;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.3s;
}

.shop-now-btn:hover {
    background: #e64a19;
}

.top-bar {
    background-color: #000;
    color: #fff;
    padding: 10px 0;
    text-align: center;
    font-size: 14px;
}

.top-bar p {
    margin: 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #000;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #DB4444;
}

.nav-icons {
    display: flex;
    gap: 20px;
    align-items: center;
}

.search-container {
    position: relative;
    width: 300px;
}

.search-bar {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 30px;
    padding: 6px 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.search-bar input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 14px;
    padding: 8px 10px;
}

.search-bar button {
    background: #007bff;
    color: white;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.search-item {
    display: flex;
    align-items: center;
    padding: 8px;
    gap: 10px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
}

.search-item img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 6px;
}

.search-item:hover {
    background-color: #f5f5f5;
}


.results-list {
    position: absolute;
    top: 45px;
    left: 0;
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    max-height: 250px;
    overflow-y: auto;
    list-style: none;
    padding: 0;
    margin: 5px 0 0 0;
    display: none;
    z-index: 10;
}

.results-list li {
    padding: 10px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
}

.results-list li:hover {
    background: #f2f2f2;
}

.category-nav {
    background-color: #fff;
    border-top: 1px solid #eee;
    padding: 15px 0;
}

.category-list {
    display: flex;
    justify-content: space-between;
}

.category-list a {
    font-weight: 500;
    transition: color 0.3s;
}

.category-list a:hover {
    color: #DB4444;
}

/* 404 Error Section */
.error-section {
    text-align: center;
    padding: 80px 0;
}

.error-code {
    font-size: 120px;
    font-weight: bold;
    color: #000000;
    margin-bottom: 20px;
}

.error-title {
    font-size: 36px;
    margin-bottom: 20px;
}

.error-message {
    font-size: 18px;
    color: #666;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.back-home {
    display: inline-block;
    background-color: #DB4444;
    color: rgb(255, 255, 255) !important;
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.back-home:hover {
    background-color: #0056b3;
}

.hero-wrapper {
    background: linear-gradient(135deg, #010101 0%, #858585 50%, #4d4d4d 100%);
    border-radius: 0 0 30px 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.hero-slideshow {
    position: relative;
    height: 500px;
    overflow: hidden;
}

.hero-slideshow .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease;
    z-index: 1;
}

.hero-slideshow .slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.slides-wrapper {
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    display: flex;
    align-items: center;
}

.slide.active {
    opacity: 1;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.hero-text {
    flex: 1;
    color: white;
    padding-right: 40px;
    margin-left: 50px;
    animation: fadeInLeft 1s ease;
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.banner-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.price-container {
    display: flex;
    align-items: center;
    margin: 20px 0;
    gap: 15px;
}

.original-price {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: line-through;
}

.final-price {
    font-size: 2.2rem;
    font-weight: 700;
    color: #dd3d3d;
    text-shadow: 0 0 3px #fff;
}

.discount-badge {
    display: inline-block;
    background: linear-gradient(45deg, #ff416c, #ff4b2b);
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    padding: 8px 20px;
    border-radius: 50px;
    margin: 15px 0;
    box-shadow: 0 5px 15px rgba(255, 65, 108, 0.4);
}

.product-description {
    font-size: 1.1rem;
    margin: 15px 0;
    line-height: 1.6;
    opacity: 0.9;
}

.shop-now-btn {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(45deg, #ff8a00, #e52e71);
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    margin-top: 20px;
    box-shadow: 0 8px 20px rgba(229, 46, 113, 0.3);
    transition: all 0.3s ease;
}

.shop-now-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(229, 46, 113, 0.4);
}

.shop-now-btn i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.shop-now-btn:hover i {
    transform: translateX(5px);
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInRight 1s ease;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-image img {
    width: 350px;
    height: 350px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.5s ease;
}

.hero-image img:hover {
    transform: scale(1.05) rotate(2deg);
}

.prev,
.next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.prev:hover,
.next:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: translateY(-50%) scale(1.1);
}

.prev {
    left: 20px;
}

.next {
    right: 20px;
}

.slide-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: white;
    transform: scale(1.3);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
        padding: 0 20px;
    }

    .hero-text {
        padding-right: 0;
        margin-bottom: 30px;
    }

    .banner-title {
        font-size: 2.2rem;
    }

    .hero-slideshow {
        height: 600px;
    }

    .hero-image img {
        width: 280px;
        height: 280px;
    }
}

/* Categories Section */
.section-title {
    font-size: 36px;
    margin-bottom: 30px;
    text-align: center;
}

.categories {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

.category-card {
    background-color: #fff;
    border-radius: 4px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

.category-card:hover {
    transform: translateY(-5px);
}

.category-icon {
    font-size: 40px;
    margin-bottom: 15px;
    color: #DB4444;
}

.category-card h3 {
    margin-bottom: 10px;
}

/* Products Section */
.products-section {
    margin-bottom: 60px;
}

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

.product-card {
    background-color: #fff;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
    cursor: pointer;
}

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

.product-image {
    height: auto;
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.product-image img {
    max-width: 100%;
    max-height: 100%;
}

.product-image .img-hover {
    position: absolute;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.product-image:hover .img-hover {
    opacity: 1;
}

.product-image:hover .img-main {
    opacity: 0;
}

.discount-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #DB4444;
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 19px;
    z-index: 1;
}

.product-info {
    padding: 15px;
}

.product-title {
    font-weight: 500;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.current-price {
    color: #DB4444;
    font-weight: bold;
}

.original-price {
    text-decoration: line-through;
    color: #999;
    font-size: 19px;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #FFAD33;
    font-size: 14px;
}

/* New Arrival Section */
.new-arrival {
    display: flex;
    background-color: #000;
    color: #fff;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 60px;
}

.new-arrival-content {
    padding: 40px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.new-arrival-content h2 {
    font-size: 48px;
    margin-bottom: 20px;
}

.new-arrival-content p {
    margin-bottom: 30px;
    opacity: 0.8;
}

.new-arrival-image {
    flex: 1;
    background-color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-title-adminPage {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    max-width: 400px;
}

/* Features Section */
.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

.feature-card {
    background-color: #fff;
    padding: 30px;
    border-radius: 4px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.feature-icon {
    font-size: 40px;
    margin-bottom: 15px;
    color: #DB4444;
}

.feature-card h3 {
    margin-bottom: 10px;
}

/* Footer */
footer {
    background-color: #000;
    color: #fff;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h3 {
    margin-bottom: 20px;
    font-size: 18px;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a:hover {
    color: #DB4444;
}

.subscribe-form {
    display: flex;
    margin-top: 15px;
}

.subscribe-form input {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 4px 0 0 4px;
}

.subscribe-form button {
    background-color: #DB4444;
    color: #fff;
    padding: 0 15px;
    border-radius: 0 4px 4px 0;
}

.app-download {
    margin-top: 20px;
}

.app-download img {
    height: 40px;
    margin-right: 10px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #333;
    font-size: 14px;
}

/* Responsive Styles */
@media (max-width: 992px) {

    .categories,
    .products-grid,
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }

    .new-arrival {
        flex-direction: column;
    }

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

@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 15px;
    }

    header {
        position: sticky;
    }

    .search-bar {
        width: 100%;
        margin-top: 15px;
    }

    .category-list {
        flex-wrap: wrap;
        gap: 15px;
        justify-content: center;
    }

    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-text {
        max-width: 100%;
        margin-bottom: 30px;
    }

    .features,
    .footer-content {
        grid-template-columns: 1fr;
    }

    .footer-content {
        gap: 30px;
    }
}


@media (max-width: 576px) {

    .categories,
    .products-grid,
    .footer-content {
        grid-template-columns: 1fr;
    }

    .timer {
        justify-content: center;
    }
}