@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

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

body {
    font-family: 'Poppins', sans-serif;
    background-color: #F8F9FA;
    overflow-x: hidden;
}

:root {
    --primary-color: #693EFF;
    --secondary-color: #DC422A;
    --accent-color: #FF6B35;
    --dark-color: #2c3e50;
    --light-color: #F8F9FA;
    --success-color: #27ae60;
    
    /* Transformaciones del carrusel */
    --item1-transform: translateX(-100%) translateY(-5%) scale(1.5);
    --item1-filter: blur(30px);
    --item1-zIndex: 11;
    --item1-opacity: 0;

    --item2-transform: translateX(0);
    --item2-filter: blur(0px);
    --item2-zIndex: 10;
    --item2-opacity: 1;

    --item3-transform: translate(50%,10%) scale(0.8);
    --item3-filter: blur(10px);
    --item3-zIndex: 9;
    --item3-opacity: 1;

    --item4-transform: translate(90%,20%) scale(0.5);
    --item4-filter: blur(30px);
    --item4-zIndex: 8;
    --item4-opacity: 1;
    
    --item5-transform: translate(120%,30%) scale(0.3);
    --item5-filter: blur(40px);
    --item5-zIndex: 7;
    --item5-opacity: 0;
}

/* ========== HEADER COMPACTO ========== */
header {
    width: 1140px;
    max-width: 90%;
    display: flex;
    justify-content: space-between;
    margin: auto;
    height: 65px;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(248, 249, 250, 0.95);
    backdrop-filter: blur(10px);
    padding: 0 20px;
    border-radius: 0 0 15px 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

header .logo {
    font-weight: 800;
    font-size: 24px;
    color: var(--primary-color);
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

header .logo svg {
    color: var(--primary-color);
}

header nav {
    display: flex;
    gap: 25px;
    align-items: center;
}

header nav a {
    text-decoration: none;
    color: #555;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
}

header nav a svg {
    transition: all 0.3s ease;
}

header nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    background: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

header nav a:hover::after {
    width: 100%;
}

header nav a:hover {
    color: var(--primary-color);
}

header nav a:hover svg {
    stroke: var(--primary-color);
    transform: translateY(-2px);
}

.btn-login {
    background: var(--primary-color);
    color: white !important;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-login svg {
    stroke: white !important;
}

.btn-login:hover {
    background: var(--dark-color);
    transform: translateY(-2px);
}

.btn-login::after {
    display: none;
}

.cart-icon {
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
}

.cart-icon svg {
    stroke: #555;
    transition: all 0.3s ease;
}

.cart-icon:hover {
    transform: scale(1.1);
}

.cart-icon:hover svg {
    stroke: var(--primary-color);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--secondary-color);
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
}

/* ========== CAROUSEL COMPACTO ========== */
.carousel {
    position: relative;
    height: 650px;
    overflow: hidden;
    margin-top: 10px;
}

.carousel::before {
    width: 450px;
    height: 250px;
    content: '';
    background-image: linear-gradient(70deg, var(--secondary-color), var(--primary-color));
    position: absolute;
    z-index: -1;
    border-radius: 20% 30% 80% 10%;
    filter: blur(150px);
    top: 50%;
    left: 50%;
    transform: translate(-10%, -50%);
    transition: 1s;
}

.carousel.showDetail::before {
    transform: translate(-100%, -50%) rotate(90deg);
    filter: blur(130px);
}

.carousel .list {
    position: absolute;
    width: 1140px;
    max-width: 90%;
    height: 80%;
    left: 50%;
    transform: translateX(-50%);
}

.carousel .list .item {
    position: absolute;
    left: 0%;
    width: 70%;
    height: 100%;
    font-size: 14px;
    transition: left 0.5s, opacity 0.5s, width 0.5s;
}

.carousel .list .item:nth-child(n + 6) {
    opacity: 0;
}

.carousel .list .item:nth-child(2) {
    z-index: 10;
    transform: translateX(0);
}

.carousel .list .item img {
    width: 50%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    transition: right 1.5s;
    border-radius: 20px;
    /*  box-shadow: 0 15px 35px rgba(0,0,0,0.2); */
}

/* Introduce (Vista previa) COMPACTA */
.carousel .list .item .introduce {
    opacity: 0;
    pointer-events: none;
}

.carousel .list .item:nth-child(2) .introduce {
    opacity: 1;
    pointer-events: auto;
    width: 380px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    transition: opacity 0.5s;
}

.carousel .list .item .introduce .title {
    font-size: 11px;
    font-weight: 600;
    line-height: 1em;
    color: var(--primary-color);
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.carousel .list .item .introduce .topic {
    font-size: 2.8em;
    font-weight: 700;
    line-height: 1em;
    color: var(--dark-color);
    margin-bottom: 12px;
}

.carousel .list .item .introduce .des {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 18px;
}

.carousel .list .item .introduce .seeMore {
    font-family: 'Poppins', sans-serif;
    padding: 10px 24px;
    border: none;
    border-radius: 20px;
    background: var(--primary-color);
    color: white;
    font-weight: 600;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 12px;
}

.carousel .list .item .introduce .seeMore:hover {
    background: var(--dark-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Posiciones de los items */
.carousel .list .item:nth-child(1) {
    transform: var(--item1-transform);
    filter: var(--item1-filter);
    z-index: var(--item1-zIndex);
    opacity: var(--item1-opacity);
    pointer-events: none;
}

.carousel .list .item:nth-child(3) {
    transform: var(--item3-transform);
    filter: var(--item3-filter);
    z-index: var(--item3-zIndex);
}

.carousel .list .item:nth-child(4) {
    transform: var(--item4-transform);
    filter: var(--item4-filter);
    z-index: var(--item4-zIndex);
}

.carousel .list .item:nth-child(5) {
    transform: var(--item5-transform);
    filter: var(--item5-filter);
    opacity: var(--item5-opacity);
    pointer-events: none;
}

/* Animación del contenido */
.carousel .list .item:nth-child(2) .introduce .title,
.carousel .list .item:nth-child(2) .introduce .topic,
.carousel .list .item:nth-child(2) .introduce .des,
.carousel .list .item:nth-child(2) .introduce .seeMore {
    opacity: 0;
    animation: showContent 0.5s 1s ease-in-out 1 forwards;
}

@keyframes showContent {
    from {
        transform: translateY(-30px);
        filter: blur(10px);
    }
    to {
        transform: translateY(0);
        opacity: 1;
        filter: blur(0px);
    }
}

.carousel .list .item:nth-child(2) .introduce .topic {
    animation-delay: 1.2s;
}

.carousel .list .item:nth-child(2) .introduce .des {
    animation-delay: 1.4s;
}

.carousel .list .item:nth-child(2) .introduce .seeMore {
    animation-delay: 1.6s;
}

/* Animaciones next */
.carousel.next .item:nth-child(1) {
    animation: transformFromPosition2 0.5s ease-in-out 1 forwards;
}

@keyframes transformFromPosition2 {
    from {
        transform: var(--item2-transform);
        filter: var(--item2-filter);
        opacity: var(--item2-opacity);
    }
}

.carousel.next .item:nth-child(2) {
    animation: transformFromPosition3 0.7s ease-in-out 1 forwards;
}

@keyframes transformFromPosition3 {
    from {
        transform: var(--item3-transform);
        filter: var(--item3-filter);
        opacity: var(--item3-opacity);
    }
}

.carousel.next .item:nth-child(3) {
    animation: transformFromPosition4 0.9s ease-in-out 1 forwards;
}

@keyframes transformFromPosition4 {
    from {
        transform: var(--item4-transform);
        filter: var(--item4-filter);
        opacity: var(--item4-opacity);
    }
}

.carousel.next .item:nth-child(4) {
    animation: transformFromPosition5 1.1s ease-in-out 1 forwards;
}

@keyframes transformFromPosition5 {
    from {
        transform: var(--item5-transform);
        filter: var(--item5-filter);
        opacity: var(--item5-opacity);
    }
}

/* Animaciones previous */
.carousel.prev .list .item:nth-child(5) {
    animation: transformFromPosition4 0.5s ease-in-out 1 forwards;
}

.carousel.prev .list .item:nth-child(4) {
    animation: transformFromPosition3 0.7s ease-in-out 1 forwards;
}

.carousel.prev .list .item:nth-child(3) {
    animation: transformFromPosition2 0.9s ease-in-out 1 forwards;
}

.carousel.prev .list .item:nth-child(2) {
    animation: transformFromPosition1 1.1s ease-in-out 1 forwards;
}

@keyframes transformFromPosition1 {
    from {
        transform: var(--item1-transform);
        filter: var(--item1-filter);
        opacity: var(--item1-opacity);
    }
}

/* Detail (Vista detallada) COMPACTA */
.carousel .list .item .detail {
    opacity: 0;
    pointer-events: none;
}

.carousel.showDetail .list .item:nth-child(3),
.carousel.showDetail .list .item:nth-child(4) {
    left: 100%;
    opacity: 0;
    pointer-events: none;
}

.carousel.showDetail .list .item:nth-child(2) {
    width: 100%;
}

.carousel.showDetail .list .item:nth-child(2) .introduce {
    opacity: 0;
    pointer-events: none;
}

.carousel.showDetail .list .item:nth-child(2) img {
    right: 50%;
}

.carousel.showDetail .list .item:nth-child(2) .detail {
    opacity: 1;
    width: 50%;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    text-align: right;
    pointer-events: auto;
}

.carousel.showDetail .list .item:nth-child(2) .detail .title {
    font-size: 2.8em;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 15px;
}

.carousel.showDetail .list .item:nth-child(2) .detail .des {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.carousel.showDetail .list .item:nth-child(2) .detail .specifications {
    display: flex;
    gap: 12px;
    width: 100%;
    border-top: 2px solid rgba(105, 62, 255, 0.2);
    margin-top: 20px;
    padding-top: 20px;
    justify-content: flex-end;
}

.carousel.showDetail .list .item:nth-child(2) .detail .specifications div {
    width: 85px;
    text-align: center;
    flex-shrink: 0;
}

.carousel.showDetail .list .item:nth-child(2) .detail .specifications div p:nth-child(1) {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 10px;
    margin-bottom: 4px;
}

.carousel.showDetail .list .item:nth-child(2) .detail .specifications div p:nth-child(2) {
    font-weight: 700;
    font-size: 13px;
    color: var(--dark-color);
}

.carousel.showDetail .list .item:nth-child(2) .checkout {
    margin-top: 25px;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.carousel.showDetail .list .item:nth-child(2) .checkout button {
    font-family: 'Poppins', sans-serif;
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 10px 20px;
    letter-spacing: 0.5px;
    font-weight: 600;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 12px;
}

.carousel.showDetail .list .item:nth-child(2) .checkout button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(105, 62, 255, 0.3);
}

.carousel.showDetail .list .item:nth-child(2) .checkout button:nth-child(2) {
    background-color: var(--primary-color);
    color: white;
}

.carousel.showDetail .list .item:nth-child(2) .checkout button:nth-child(2):hover {
    background-color: var(--dark-color);
}

.carousel.showDetail .list .item:nth-child(2) .detail .title,
.carousel.showDetail .list .item:nth-child(2) .detail .des,
.carousel.showDetail .list .item:nth-child(2) .detail .specifications,
.carousel.showDetail .list .item:nth-child(2) .detail .checkout {
    opacity: 0;
    animation: showContent 0.5s 1s ease-in-out 1 forwards;
}

.carousel.showDetail .list .item:nth-child(2) .detail .des {
    animation-delay: 1.2s;
}

.carousel.showDetail .list .item:nth-child(2) .detail .specifications {
    animation-delay: 1.4s;
}

.carousel.showDetail .list .item:nth-child(2) .detail .checkout {
    animation-delay: 1.6s;
}

/* Arrows COMPACTOS */
.arrows {
    position: absolute;
    bottom: 10px;
    width: 1140px;
    max-width: 90%;
    display: flex;
    justify-content: space-between;
    left: 50%;
    transform: translateX(-50%);
}

#prev,
#next {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-family: 'Poppins', sans-serif;
    border: 2px solid var(--primary-color);
    background: white;
    color: var(--primary-color);
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

#prev:hover,
#next:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

#back {
    position: absolute;
    z-index: 100;
    bottom: 0%;
    left: 50%;
    transform: translateX(-50%);
    border: none;
    border-bottom: 2px solid var(--primary-color);
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    letter-spacing: 1px;
    background-color: transparent;
    color: var(--primary-color);
    padding: 8px 18px;
    opacity: 0;
    transition: opacity 0.5s;
    cursor: pointer;
    font-size: 12px;
}

#back:hover {
    color: var(--dark-color);
    border-bottom-color: var(--dark-color);
}

.carousel.showDetail #back {
    opacity: 1;
}

.carousel.showDetail #prev,
.carousel.showDetail #next {
    opacity: 0;
    pointer-events: none;
}

/* ========== SECCIONES COMPACTAS ========== */
.categories-section.compact,
.products-section.compact {
    max-width: 1200px;
    margin: 50px auto 40px;
    padding: 0 20px;
}

.section-title {
    text-align: center;
    font-size: 2em;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 35px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.title-icon {
    font-size: 1.2em;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

/* ========== CATEGORÍAS COMPACTAS ========== */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 18px;
}

.category-card.compact {
    background: white;
    border-radius: 15px;
    padding: 25px 15px;
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0,0,0,0.06);
}

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

.category-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.category-card.compact h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--dark-color);
    margin: 0;
}

/* ========== PRODUCTOS COMPACTOS ========== */
.products-grid.compact {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

.product-card.compact {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0,0,0,0.06);
}

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

.product-image {
    height: 240px;
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
    position: relative;
    overflow: hidden;
}

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

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

.placeholder-img {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 70px;
}

.badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    z-index: 1;
}

.badge.new {
    background: var(--success-color);
    color: white;
}

.badge.featured {
    background: var(--accent-color);
    color: white;
}

.product-info {
    padding: 18px;
}

.product-info h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 6px;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-info .category {
    font-size: 12px;
    color: #999;
    margin-bottom: 12px;
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.product-info .price {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-color);
}

.btn-add-small {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: var(--primary-color);
    color: white;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-add-small:hover {
    background: var(--dark-color);
    transform: scale(1.1) rotate(15deg);
}

.btn-view-full {
    width: 100%;
    padding: 10px;
    border: 2px solid #e0e0e0;
    background: white;
    color: var(--dark-color);
    border-radius: 10px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.btn-view-full:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* ========== CTA SECTION ========== */
.cta-section {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
}

.cta-content {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-color) 100%);
    border-radius: 20px;
    padding: 50px 40px;
    text-align: center;
    color: white;
    box-shadow: 0 10px 30px rgba(105, 62, 255, 0.3);
}

.cta-content h2 {
    font-size: 2em;
    font-weight: 700;
    margin-bottom: 15px;
}

.cta-content p {
    font-size: 1.1em;
    margin-bottom: 30px;
    opacity: 0.9;
}

.btn-cta {
    display: inline-block;
    padding: 15px 40px;
    background: white;
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 25px;
    font-weight: 700;
    font-size: 15px;
    transition: all 0.3s ease;
}

.btn-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

/* ========== FOOTER COMPACTO ========== */
.footer.compact {
    background: var(--dark-color);
    color: white;
    padding: 45px 20px 15px;
    margin-top: 60px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 35px;
    margin-bottom: 30px;
}

.footer-section h3 {
    margin-bottom: 15px;
    font-size: 17px;
    font-weight: 600;
}

.footer-contact p {
    margin-bottom: 8px;
}

.footer-section p,
.footer-section a {
    color: #bdc3c7;
    text-decoration: none;
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    transition: all 0.3s ease;
}

.footer-section a:hover {
    color: white;
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 25px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #95a5a6;
    font-size: 13px;
}

/* ========== CART SIDEBAR ========== */
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 999;
    backdrop-filter: blur(5px);
}

.overlay.active {
    display: block;
}

.cart-sidebar {
    position: fixed;
    right: -400px;
    top: 0;
    width: 400px;
    height: 100vh;
    background: white;
    box-shadow: -5px 0 25px rgba(0,0,0,0.2);
    transition: right 0.4s ease;
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

.cart-sidebar.active {
    right: 0;
}

.cart-header {
    padding: 22px;
    background: var(--primary-color);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h2 {
    font-size: 20px;
    font-weight: 600;
}

.cart-close {
    background: none;
    border: none;
    color: white;
    font-size: 26px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.cart-close:hover {
    transform: rotate(90deg);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.cart-footer {
    padding: 22px;
    border-top: 2px solid #f0f0f0;
    background: #fafafa;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 18px;
    color: var(--dark-color);
}

.btn-checkout,
.btn-continue {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    letter-spacing: 0.5px;
}

.btn-checkout {
    background: var(--primary-color);
    color: white;
    margin-bottom: 10px;
}

.btn-checkout:hover {
    background: var(--dark-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(105, 62, 255, 0.3);
}

.btn-continue {
    background: white;
    color: var(--dark-color);
    border: 2px solid #e0e0e0;
}

.btn-continue:hover {
    background: #f8f9fa;
}

.empty-message {
    text-align: center;
    padding: 30px 20px;
    color: #7f8c8d;
}

/* ========== RESPONSIVE COMPACTO ========== */
@media screen and (max-width: 991px) {
    .carousel {
        height: 550px;
    }
    
    .carousel .list .item {
        width: 90%;
    }
    
    .carousel .list .item:nth-child(2) .introduce {
        width: 320px;
    }
    
    .carousel.showDetail .list .item:nth-child(2) .detail .specifications {
        overflow: auto;
    }
    
    .carousel.showDetail .list .item:nth-child(2) .detail .title {
        font-size: 2em;
    }
    
    .cart-sidebar {
        width: 350px;
        right: -350px;
    }
    
    .cta-content {
        padding: 40px 30px;
    }
    
    .cta-content h2 {
        font-size: 1.6em;
    }
}

@media screen and (max-width: 767px) {
    header {
        height: 55px;
        padding: 0 15px;
    }
    
    header .logo {
        font-size: 20px;
    }
    
    header nav {
        gap: 15px;
    }
    
    header nav a {
        font-size: 12px;
    }
    
    .btn-login {
        padding: 6px 15px;
        font-size: 12px;
    }
    
    .carousel {
        height: 500px;
    }
    
    .carousel .list .item {
        width: 100%;
        font-size: 10px;
    }
    
    .carousel .list {
        height: 100%;
    }
    
    .carousel .list .item:nth-child(2) .introduce {
        width: 50%;
    }
    
    .carousel .list .item:nth-child(2) .introduce .topic {
        font-size: 1.8em;
    }
    
    .carousel .list .item img {
        width: 45%;
    }
    
    .carousel.showDetail .list .item:nth-child(2) .detail {
        backdrop-filter: blur(10px);
        font-size: small;
    }
    
    .carousel .list .item:nth-child(2) .introduce .des,
    .carousel.showDetail .list .item:nth-child(2) .detail .des {
        height: 90px;
        overflow: auto;
    }
    
    .carousel.showDetail .list .item:nth-child(2) .detail .checkout {
        flex-direction: column;
        width: 100%;
    }
    
    .section-title {
        font-size: 1.6em;
    }
    
    .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 15px;
    }
    
    .category-icon {
        font-size: 40px;
    }
    
    .products-grid.compact {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 15px;
    }
    
    .product-image {
        height: 180px;
    }
    
    .product-info {
        padding: 14px;
    }
    
    .product-info h3 {
        font-size: 13px;
    }
    
    .product-info .price {
        font-size: 18px;
    }
    
    .btn-add-small {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
    
    .cta-content {
        padding: 30px 20px;
    }
    
    .cta-content h2 {
        font-size: 1.4em;
    }
    
    .cta-content p {
        font-size: 0.95em;
    }
    
    .cart-sidebar {
        width: 100%;
        right: -100%;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 25px;
    }
}