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

body {
    font-family: "Helvetica Neue", Arial, sans-serif;
    background: #fafafa;
    color: #111;
}

/* =========================
   NAVBAR
========================= */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 60px;
    background: white;
    border-bottom: 1px solid #eee;
    position: relative;
}

/* LOGO */
.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 18px;
    width: auto;
    margin-right: 8px;
    object-fit: contain;
}

.logo h2 {
    letter-spacing: 2px;
    font-weight: 500;
    font-size: 18px;
    margin: 0;
}

/* NAV LINKS */
.navbar ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

.navbar a {
    text-decoration: none;
    color: #111;
    font-size: 13px;
    text-transform: uppercase;
    transition: 0.25s;
}

.navbar a:hover {
    opacity: 0.6;
}

/* =========================
   HERO
========================= */
.hero {
    position: relative;
    height: 85vh;
    background: url("modelo30.jpg") center/cover no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.35);
}

.hero-content {
    position: relative;
    text-align: center;
    color: white;
}

.hero-content h1 {
    font-size: 70px;
    letter-spacing: 4px;
}

.hero-content p {
    margin-top: 10px;
    font-size: 16px;
    opacity: 0.85;
}

.hero-content button {
    margin-top: 25px;
    padding: 12px 28px;
    border: 1px solid white;
    background: transparent;
    color: white;
    cursor: pointer;
    transition: 0.25s;
}

.hero-content button:hover {
    background: white;
    color: black;
}

/* =========================
   INTRO
========================= */
.intro {
    text-align: center;
    padding: 60px 20px;
    font-size: 15px;
    opacity: 0.7;
}

/* =========================
   BRAND LINE (UNIFICADO)
========================= */
.brand-line {
    text-align: center;
    margin: 50px 0 15px;
    font-size: 13px;
    letter-spacing: 3px;
    opacity: 0.5;
    text-transform: uppercase;
}

.brand-line::after {
    content: "";
    display: block;
    width: 40px;
    height: 1px;
    background: #000;
    margin: 10px auto 0;
    opacity: 0.2;
}

/* =========================
   SHOP HEADER
========================= */
.shop-header {
    text-align: center;
    margin: 60px 0 40px;
}

.shop-header h1 {
    font-size: 26px;
    letter-spacing: 3px;
    margin: 40px 0;
    text-align: center;
    position: relative;
}

/* LÍNEAS */
.shop-header h1::before,
.shop-header h1::after {
    content: "";
    display: block;
    width: 60px;
    height: 1px;
    background: #ddd;
    margin: 12px auto;
}

/* =========================
   CATEGORIES (UNIFICADO)
========================= */
.categories {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    padding: 30px 0;
    font-size: 14px;
    letter-spacing: 2px;
    margin-top: 10px;
    position: relative;
}

.categories::before,
.categories::after {
    content: "";
    position: absolute;
    width: 80px;
    height: 1px;
    background: #ddd;
    top: 50%;
}

.categories::before {
    left: 10%;
}

.categories::after {
    right: 10%;
}

.categories span {
    cursor: pointer;
    opacity: 0.5;
    transition: 0.25s;
}

.categories span:hover {
    opacity: 1;
}

.categories span.active {
    opacity: 1;
    border-bottom: 1px solid black;
}


/* =========================
   GRID
========================= */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 40px;
    padding: 60px 80px;
}

/* =========================
   PRODUCT
========================= */
.product {
    cursor: pointer;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.product:hover {
    transform: scale(1.015);
    opacity: 0.9;
}

/* =========================
   IMÁGENES
========================= */
.img {
    width: 100%;
    height: 380px;
    overflow: hidden;
    position: relative;
}

.img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

/* CAMBIO DE IMAGEN */
.img .img2 {
    opacity: 0;
}

.product:hover .img2 {
    opacity: 1;
}

.product:hover .img1 {
    opacity: 0;
}

/* ZOOM */
.product:hover img {
    transform: scale(1.02);
}

/* =========================
   TEXTO PRODUCTO
========================= */
.product h3 {
    margin-top: 12px;
    font-size: 15px;
    font-weight: 500;
}

.product p {
    font-size: 13px;
    opacity: 0.6;
}

/* =========================
   PRODUCT PAGE
========================= */
.product-page {
    display: flex;
    gap: 60px;
    padding: 80px;
    justify-content: center;
}

.product-img {
    width: 380px;
    height: 480px;
}

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

/* =========================
   INFO PRODUCTO
========================= */
.product-info h1 {
    font-size: 26px;
    letter-spacing: 1px;
}

/* PRECIO */
#price {
    margin: 12px 0;
    font-size: 17px;
    opacity: 0.8;
}

/* DESCRIPCIÓN */
.description {
    margin: 20px 0;
    opacity: 0.65;
    font-size: 14px;
    line-height: 1.6;
}

/* DIVIDER */
.divider {
    width: 40px;
    height: 2px;
    background: black;
    margin: 20px 0;
    opacity: 0.2;
}

/* =========================
   TALLAS
========================= */
.size-title {
    font-size: 12px;
    letter-spacing: 2px;
    margin-bottom: 10px;
    opacity: 0.6;
}

.sizes {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

/* TALLAS UNIFICADAS */
.sizes span {
    border: 1px solid #ddd;
    padding: 10px 16px;
    font-size: 13px;
    cursor: pointer;
    transition: 0.2s;
}

.sizes span:hover {
    border: 1px solid black;
}

.sizes span.active {
    background: black;
    color: white;
    border: 1px solid black;
}

/* =========================
   BOTÓN COMPRA
========================= */
.product-info button {
    width: 100%;
    padding: 16px;
    background: black;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 12px;
    letter-spacing: 2px;
    transition: 0.25s;
}

.product-info button:hover {
    background: #222;
}

/* =========================
   CARRITO
========================= */
.cart {
    padding: 80px;
    max-width: 900px;
    margin: auto;
}

.cart-title {
    margin: 40px 0;
    letter-spacing: 3px;
    font-size: 28px;
    text-align: center;
    position: relative;
}

.cart-title::before,
.cart-title::after {
    content: "";
    display: block;
    width: 60px;
    height: 1px;
    background: #ddd;
    margin: 12px auto;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 0;
    border-bottom: 1px solid #eee;
}

.cart-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.cart-left img {
    width: 90px;
    height: 110px;
    object-fit: cover;
    border-radius: 4px;
}

.cart-info h3 {
    font-size: 15px;
}

.cart-info p {
    font-size: 13px;
    opacity: 0.6;
}

/* REMOVE */
.cart-item button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 12px;
    opacity: 0.5;
    transition: 0.2s;
}

.cart-item button:hover {
    opacity: 1;
}

.cart-summary {
    margin-top: 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#total {
    font-size: 20px;
}

/* CHECKOUT */
.checkout-btn {
    padding: 16px 30px;
    background: black;
    color: white;
    border: none;
    cursor: pointer;
    letter-spacing: 2px;
    font-size: 12px;
    transition: 0.25s;
}

.checkout-btn:hover {
    background: #222;
}

.shipping-info {
    font-size: 13px;
    opacity: 0.6;
    margin-top: 5px;
}

/* =========================
   ABOUT
========================= */
.about-hero {
    position: relative;
    min-height: 100vh;
    background: url("playa.jpg") center/cover no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(8px);
    background: rgba(0,0,0,0.4);
}

.about-content {
    position: relative;
    max-width: 800px;
    padding: 40px;
    color: white;
    text-align: center;
}

.contact {
    margin-top: 50px;
}

/* =========================
   SEO TEXT
========================= */
.seo-text {
    max-width: 800px;
    margin: 60px auto;
    text-align: center;
    font-size: 14px;
    opacity: 0.7;
}

/* =========================
   MENU
========================= */
.menu-toggle {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    position: absolute;
    left: 20px;
    top: 25px;
    z-index: 1001;
}

.menu-toggle span {
    width: 22px;
    height: 2px;
    background: black;
    transition: 0.3s;
}

/* ANIMACIÓN */
.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* MENU DESPLEGABLE */
.mobile-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 260px;
    height: 100vh;
    background: rgba(255,255,255,0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
    padding: 80px 30px;
    gap: 25px;
    transition: 0.3s ease;
    z-index: 999;
}

.mobile-menu a {
    text-decoration: none;
    color: black;
    font-size: 16px;
    letter-spacing: 1px;
}

.mobile-menu.active {
    left: 0;
}

/* OVERLAY */
.menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(6px);
    opacity: 0;
    pointer-events: none;
    transition: 0.3s;
    z-index: 998;
}

.menu-overlay.active {
    opacity: 1;
    pointer-events: all;
}

/* =========================
   LOADER
========================= */
#loader {
    position: fixed;
    inset: 0;
    background: white;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

#loader img {
    width: 120px;
    animation: girar 4s linear infinite;
}

@keyframes girar {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* =========================
   BEST SELLER
========================= */
.best-seller {
    margin: 40px 0;
    text-align: center;
    letter-spacing: 3px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    position: relative;
}

.best-seller::before,
.best-seller::after {
    content: "";
    display: block;
    width: 60px;
    height: 1px;
    background: #ddd;
    margin: 12px auto;
}

/* =========================
   SLIDER
========================= */
.slider-container {
    overflow-x: auto;
    width: 100%;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.slider-container::-webkit-scrollbar {
    display: none;
}

.slider-container {
    scrollbar-width: none;
}

.slider {
    display: flex;
    flex-wrap: nowrap;
    gap: 15px;
    padding: 0 15px;
}

/* MOBILE */
.slide {
    flex: 0 0 85%;
    max-width: 85%;
    scroll-snap-align: start;
}

.slide img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    border-radius: 10px;
    display: block;
    transition: transform 0.4s ease;
}

.slide:hover img {
    transform: scale(1.05);
}

.slide p {
    margin-top: 10px;
    font-size: 14px;
}

/* DESKTOP */
@media (min-width: 768px) {

    .slide {
        flex: 0 0 300px;
        max-width: 300px;
    }

    .slide img {
        height: 360px;
    }
}

/* =========================
   CARRITO ICONO
========================= */
.cart-mobile {
    display: none;
}

@media (max-width: 768px) {
    .cart-mobile {
        display: block;
        position: absolute;
        top: 18px;
        right: 20px;
        font-size: 20px;
        z-index: 1001;
    }

    .cart-mobile a {
        text-decoration: none;
        color: black;
        font-weight: 600;
    }

    .cart-mobile span {
        position: absolute;
        top: -8px;
        right: -12px;
        background: black;
        color: white;
        border-radius: 50%;
        padding: 2px 6px;
        font-size: 11px;
    }
}

/* =========================
   CONTADOR
========================= */
#cart-count-desktop {
    font-weight: 600;
}

.cart-mobile span,
#cart-count-desktop {
    transition: transform 0.2s ease;
}

.bump {
    transform: scale(1.3);
}

/* =========================
   POPUP
========================= */
.cart-popup {
    border-radius: 6px;
    letter-spacing: 0.5px;
}

/* =========================
   RESPONSIVE FINAL
========================= */
@media (max-width: 768px) {

    .navbar ul {
        display: none !important;
    }

    .navbar {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        padding: 15px 20px;
        gap: 12px;
    }

    .menu-toggle {
        position: static;
    }

    .logo {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .logo img {
        height: 14px;
    }

    .logo h2 {
        font-size: 16px;
        white-space: nowrap;
    }

    .hero {
        height: 75vh;
    }

    .hero-content h1 {
        font-size: 42px;
        letter-spacing: 2px;
    }

    .hero-content p {
        font-size: 14px;
    }

    .grid {
        padding: 30px 15px;
        gap: 25px;
    }

    .img {
        height: 300px;
    }

    .product-page {
        flex-direction: column;
        padding: 30px 20px;
        gap: 30px;
    }

    .cart {
        padding: 30px 20px;
    }

    .cart-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .cart-summary {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }
}

    /* ===== FIX PRODUCT CARD ===== */
    .product {
        display: flex;
        flex-direction: column;
    }

    /* CONTENEDOR IMAGEN */
    .product-img {
        position: relative;
        width: 100%;
        height: 380px;
        overflow: hidden;
    }

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

    /* TAG NEW IN */
    .tag {
        position: absolute;
        top: 10px;
        left: 10px;
        background: white;
        color: black;
        font-size: 10px;
        padding: 5px 8px;
        letter-spacing: 1px;
        z-index: 2;
    }

    /* INFO */
    .product-info {
        margin-top: 10px;
    }

    /* PRECIO + BOTÓN */
    .price-cart {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    /* BOTÓN + */
    .price-cart button {
        background: black;
        color: white;
        border: none;
        padding: 8px 12px;
        cursor: pointer;
        font-size: 16px;
        transition: 0.2s;
    }

    .price-cart button:hover {
        background: #222;
    }

    
        /* ===== PRODUCT PREMIUM ===== */

    .product {
        cursor: pointer;
        transition: 0.3s ease;
    }

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

    /* IMAGEN */
    .product-img {
        position: relative;
        width: 100%;
        height: 380px;
        overflow: hidden;
    }

    /* IMÁGENES */
    .product-img img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: opacity 0.4s ease, transform 0.4s ease;
    }

    /* SEGUNDA IMAGEN */
    .product-img .img2 {
        opacity: 0;
    }

    /* HOVER */
    .product:hover .img2 {
        opacity: 1;
    }

    .product:hover .img1 {
        opacity: 0;
    }

    /* ZOOM SUAVE */
    .product:hover img {
        transform: scale(1.03);
    }

    /* TAG */
    .tag {
        position: absolute;
        top: 12px;
        left: 12px;
        background: white;
        padding: 5px 10px;
        font-size: 10px;
        letter-spacing: 1px;
        z-index: 3;
    }

    /* BOTÓN FLOTANTE */
    .quick-add {
        position: absolute;
        bottom: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
        background: black;
        color: white;
        border: none;
        font-size: 18px;
        cursor: pointer;
        opacity: 0;
        transform: translateY(10px);
        transition: 0.3s;
    }

    /* APARECE EN HOVER */
    .product:hover .quick-add {
        opacity: 1;
        transform: translateY(0);
    }

    /* INFO */
    .product-info {
        margin-top: 12px;
    }

    .product-info h3 {
        font-size: 14px;
        font-weight: 400;
    }

    .product-info p {
        font-size: 13px;
        opacity: 0.6;
    }
    
    .brand-line {
    margin-bottom: 10px;
}

@media (max-width: 768px) {

    .categories::before,
    .categories::after {
        display: none;
    }

    .categories {
        gap: 20px;
        flex-wrap: nowrap;
    }

    .categories span {
        font-size: 13px;
        white-space: nowrap;
    }
}

/* ===== FIX CATEGORÍAS MÓVIL (CRÍTICO) ===== */
@media (max-width: 768px) {

    .categories {
        flex-wrap: wrap;
        gap: 15px;
    }

    .categories::before,
    .categories::after {
        display: none; /* 🔥 elimina las líneas que tapan */
    }

    .categories span {
        font-size: 13px;
        padding: 5px 0;
    }
}


