/**
 * Leviccons - Trang chủ CSS
 * Stylesheet cho trang chủ của website Leviccons
 */

/* Hero Slider */
.hero-slider {
    position: relative;
    padding: 30px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    overflow: hidden;
}

.hero-slider-wrapper {
    width: 100%;
    margin: 0 auto;
}

.hero-slide {
    padding: 20px 0;
}

.hero-content {
    padding: 30px 15px 30px 0;
}

.hero-badge {
    display: inline-block;
    padding: 5px 15px;
    background-color: #dc5e4f;
    color: #fff;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 15px;
}

.hero-title {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #212529;
}

.hero-subtitle {
    font-size: 16px;
    color: #6c757d;
    margin-bottom: 20px;
    line-height: 1.6;
}

.hero-price {
    font-size: 24px;
    font-weight: 700;
    color: #dc5e4f;
    margin-bottom: 25px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.hero-image-wrapper {
    position: relative;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

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

/* Slick Slider Custom Styles */
.hero-slider-wrapper .slick-dots {
    bottom: -10px;
}

.hero-slider-wrapper .slick-dots li button:before {
    font-size: 12px;
    color: #dc5e4f;
    opacity: 0.3;
}

.hero-slider-wrapper .slick-dots li.slick-active button:before {
    opacity: 1;
    color: #dc5e4f;
}

.hero-slider-wrapper .slick-prev,
.hero-slider-wrapper .slick-next {
    width: 40px;
    height: 40px;
    background-color: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.hero-slider-wrapper .slick-prev {
    left: 15px;
}

.hero-slider-wrapper .slick-next {
    right: 15px;
}

.hero-slider-wrapper .slick-prev:before,
.hero-slider-wrapper .slick-next:before {
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: #dc5e4f;
    opacity: 1;
}

.hero-slider-wrapper .slick-prev:before {
    content: '\f104';
}

.hero-slider-wrapper .slick-next:before {
    content: '\f105';
}

/* Features Section */
.features-section {
    padding: 60px 0;
    background-color: #fff;
}

.feature-card {
    display: flex;
    align-items: center;
    padding: 20px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(220, 94, 79, 0.1);
    border-radius: 50%;
    margin-right: 15px;
    color: #dc5e4f;
    font-size: 24px;
}

.feature-content h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
    color: #212529;
}

.feature-content p {
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 0;
}

/* Categories Section */
.categories-section {
    padding: 60px 0;
    background-color: #f8f9fa;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.section-title h2 {
    font-size: 28px;
    font-weight: 700;
    color: #212529;
    margin-bottom: 0;
}

.view-all {
    font-size: 16px;
    font-weight: 500;
    color: #dc5e4f;
    text-decoration: none;
    transition: all 0.3s ease;
}

.view-all:hover {
    color: #c04132;
}

.category-card {
    display: block;
    text-decoration: none;
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    text-align: center;
    padding: 20px;
    height: 100%;
}

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

.category-card img {
    max-width: 100%;
    height: auto;
    margin-bottom: 15px;
    border-radius: 8px;
}

.category-title {
    font-size: 16px;
    font-weight: 600;
    color: #212529;
    margin-bottom: 0;
    transition: all 0.3s ease;
}

.category-card:hover .category-title {
    color: #dc5e4f;
}

/* Products Section */
.products-section {
    padding: 60px 0;
    background-color: #fff;
}

/* Banner Section */
.banner-section {
    padding: 80px 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.banner-section:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(var(--primary-color-rgb, 243, 107, 62), 0.8) 0%, rgba(0, 0, 0, 0.6) 100%);
}

.banner-content {
    position: relative;
    color: #fff;
    max-width: 600px;
    z-index: 1;
}

.banner-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
}

.banner-text {
    font-size: 16px;
    margin-bottom: 30px;
    line-height: 1.6;
}

.banner-btn {
    background-color: var(--primary-color, #F36B3E);
    color: #fff;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
    margin-top: 20px;
}

.banner-btn:hover {
    background-color: #fff;
    color: var(--primary-color, #F36B3E);
    transform: translateY(-3px);
}

/* Brands Section */
.brands-section {
    padding: 60px 0;
    background-color: #f8f9fa;
}

.brands-slider {
    margin-top: 40px;
}

.brand-item {
    padding: 15px;
    text-align: center;
}

.brand-item img {
    max-width: 100%;
    height: auto;
    max-height: 80px;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.brand-item:hover img {
    filter: grayscale(0);
    opacity: 1;
}

/* Newsletter Section */
.newsletter-section {
    padding: 60px 0;
    background-color: #fff;
}

.newsletter-section h3 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #212529;
}

.newsletter-section p {
    font-size: 16px;
    color: #6c757d;
    margin-bottom: 0;
}

.newsletter-form {
    max-width: 500px;
    margin: 0 auto;
}

/* Responsive Styles */
@media (max-width: 991px) {
    .hero-title {
        font-size: 36px;
    }

    .banner-title {
        font-size: 32px;
    }
}

@media (max-width: 767px) {
    .hero-slider {
        padding: 20px 0;
    }

    .hero-content {
        padding: 20px 0;
        text-align: center;
    }

    .hero-title {
        font-size: 30px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-image-wrapper {
        margin-top: 20px;
    }

    .banner-content {
        text-align: center;
        margin: 0 auto;
    }

    .banner-title {
        font-size: 28px;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .view-all {
        margin-top: 10px;
    }
}

@media (max-width: 575px) {
    .hero-title {
        font-size: 24px;
    }

    .hero-price {
        font-size: 20px;
    }

    .banner-title {
        font-size: 24px;
    }

    .feature-card {
        flex-direction: column;
        text-align: center;
    }

    .feature-icon {
        margin-right: 0;
        margin-bottom: 15px;
    }
}

.consultation-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background-color: rgba(15, 23, 42, 0.75); */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    /* backdrop-filter: blur(8px); */
    /* -webkit-backdrop-filter: blur(8px); */
}

.consultation-popup.show {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background: #ffffff;
    border-radius: 24px;
    max-width: 600px;
    width: 92%;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: scale(0.95);
    opacity: 0;
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.5s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.consultation-popup.show .popup-content {
    transform: scale(1);
    opacity: 1;
}

.popup-header {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 10;
}

.popup-body {
    padding: 40px;
    flex: 1;
}

.close-btn {
    background: rgba(243, 107, 62, 0.1);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    color: #F36B3E;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(243, 107, 62, 0.15);
}

.close-btn:hover {
    /* background: #F36B3E; */
    color: white;
    transform: rotate(90deg);
    box-shadow: 0 4px 12px rgba(243, 107, 62, 0.25);
}

/* Step indicators */
.step-indicators {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
}

.step-dot {
    width: 10px;
    height: 10px;
    background: rgba(var(--primary-color-rgb, 243, 107, 62), 0.2);
    border: 1px solid var(--primary-color, #F36B3E);
    border-radius: 50%;
    margin: 0 6px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.step-dot.active {
    background: var(--primary-color, #F36B3E) !important;
    width: 24px;
    border-radius: 10px;
}

/* Step content */
.popup-step {
    min-height: 400px;
    max-height: 70vh;
    display: flex;
    flex-direction: column;
}

.popup-title {
    color: #1E293B;
    font-weight: 700;
    font-size: 1.45rem;
    line-height: 1.3;
    margin-bottom: 1.25rem;
    letter-spacing: -0.01em;
    position: relative;
    display: inline-block;
}

.popup-title:after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--primary-color, #F36B3E) !important;
    border-radius: 2px;
}

.popup-title span {
    color: var(--primary-color, #F36B3E);
    margin-right: 6px;
}

.popup-body p {
    color: #475569;
    line-height: 1.6;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.section-heading {
    display: flex;
    align-items: center;
    font-weight: 600;
    color: #1E293B;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.section-heading i {
    background: rgba(243, 107, 62, 0.1);
    color: #F36B3E;
    margin-right: 12px;
    font-size: 0.9rem;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup-body ul {
    padding-left: 0;
    list-style: none;
    margin-bottom: 1.5rem;
}

.popup-body .features-list li {
    margin-bottom: 12px;
    opacity: 0;
    transform: translateX(10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    position: relative;
    padding-left: 32px;
    color: #475569;
    font-size: 0.95rem;
}

.popup-body .features-list li:last-child {
    margin-bottom: 0;
}

.popup-body .features-list li:before {
    content: "";
    position: absolute;
    left: 0;
    top: 2px;
    width: 22px;
    height: 22px;
    background-color: rgba(var(--primary-color-rgb, 243, 107, 62), 0.1);
    border-radius: 50%;
}

.popup-body .features-list li:after {
    content: "✓";
    position: absolute;
    left: 7px;
    top: 1px;
    color: var(--primary-color, #F36B3E);
    font-weight: bold;
}

.consultation-popup.show .popup-body li {
    opacity: 1;
    transform: translateX(0);
}

.consultation-popup.show .popup-body li:nth-child(1) { transition-delay: 0.15s; }
.consultation-popup.show .popup-body li:nth-child(2) { transition-delay: 0.25s; }
.consultation-popup.show .popup-body li:nth-child(3) { transition-delay: 0.35s; }
.consultation-popup.show .popup-body li:nth-child(4) { transition-delay: 0.45s; }

.contact-list {
    background: #f8fafc;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.04);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px dashed rgba(203, 213, 225, 0.8);
}

.contact-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.contact-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    background: #F36B3E;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 14px;
    font-size: 12px;
}

.contact-text {
    flex-grow: 1;
    color: #475569;
    line-height: 1.4;
    font-size: 0.9rem;
}

.commitment {
    background: rgba(var(--primary-color-rgb, 243, 107, 62), 0.05);
    border-radius: 16px;
    padding: 24px;
    margin: 20px 0 30px;
    position: relative;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.5s ease 0.5s, transform 0.5s ease 0.5s;
    font-size: 1.05rem;
    line-height: 1.6;
    color: #334155;
    font-weight: 500;
    text-align: center;
    border-left: 3px solid var(--primary-color, #F36B3E);
}

.commitment:before {
    content: '"';
    position: absolute;
    top: 10px;
    left: 15px;
    font-size: 40px;
    color: rgba(var(--primary-color-rgb, 243, 107, 62), 0.2);
    font-family: Georgia, serif;
}

.consultation-popup.show .commitment {
    opacity: 1;
    transform: translateY(0);
}

/* Step navigation buttons */
.step-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 20px;
}

.btn-back, .btn-next {
    background: transparent;
    border: 1px solid var(--primary-color, #F36B3E);
    /* color: var(--primary-color, #F36B3E) !important; */
    border-radius: 50px;
    padding: 10px 20px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-back {
    padding-left: 15px;
}

.btn-next {
    padding-right: 15px;
    margin-left: auto;
}

.btn-back i, .btn-next i {
    font-size: 0.8rem;
}

.btn-back:hover, .btn-next:hover {
    background: rgba(var(--primary-color-rgb, 243, 107, 62), 0.1);
    transform: translateY(-2px);
}

#acceptPopup {
    background: linear-gradient(135deg, var(--primary-color, #F36B3E), rgba(var(--primary-color-rgb, 243, 107, 62), 0.8));
    border: none;
    padding: 12px 36px;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    color: white;
    letter-spacing: 0.5px;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(var(--primary-color-rgb, 243, 107, 62), 0.25), 0 1px 2px rgba(var(--primary-color-rgb, 243, 107, 62), 0.1);
    position: relative;
    overflow: hidden;
    margin-left: auto;
}

#acceptPopup:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0));
    opacity: 0;
    transition: opacity 0.3s ease;
}

#acceptPopup:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(var(--primary-color-rgb, 243, 107, 62), 0.4), 0 2px 4px rgba(var(--primary-color-rgb, 243, 107, 62), 0.2);
}

/* Step transitions */
.popup-step {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.popup-step.fade-out {
    opacity: 0;
    transform: translateX(-20px);
}

.popup-step.fade-in {
    opacity: 0;
    transform: translateX(20px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .popup-content {
        width: 92%;
        height: auto;
    }

    .popup-body {
        padding: 30px 25px;
    }

    .popup-title {
        font-size: 1.3rem;
    }

    .popup-step {
        min-height: 350px;
    }

    .contact-list {
        padding: 15px;
    }

    .commitment {
        padding: 20px;
        font-size: 1rem;
    }

    .btn-back, .btn-next, #acceptPopup {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .popup-content {
        width: 90%;
        border-radius: 20px;
    }

    .popup-body {
        padding: 25px 20px;
    }

    .popup-title {
        font-size: 1.2rem;
    }

    .popup-step {
        min-height: 320px;
    }

    .popup-header {
        top: 10px;
        right: 10px;
    }

    .close-btn {
        width: 36px;
        height: 36px;
    }

    .section-heading i {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }

    .section-heading {
        font-size: 0.95rem;
    }

    .contact-list {
        padding: 15px;
        margin-bottom: 1rem;
    }

    .commitment {
        padding: 15px;
        font-size: 0.95rem;
        margin: 15px 0 25px;
    }

    .popup-body .features-list li {
        font-size: 0.9rem;
        padding-left: 30px;
        margin-bottom: 10px;
    }

    .popup-body .features-list li:before {
        width: 20px;
        height: 20px;
    }

    .popup-body .features-list li:after {
        left: 6px;
    }

    .step-navigation {
        padding-top: 15px;
    }

    .btn-back, .btn-next {
        padding: 8px 16px;
        font-size: 0.85rem;
    }

    #acceptPopup {
        padding: 10px 24px;
        font-size: 0.9rem;
    }
}