﻿/* ============================================================
   PRODUCTO.CSS — Elegant Black & White Clothing Store
   Premium minimalist design with sophisticated typography
   ============================================================ */

/* ══════════════════════════════════════════════
   DESIGN TOKENS
══════════════════════════════════════════════ */
:root {
    --ink: #0a0a0a;
    --white: #ffffff;
    --off-white: #fafafa;
    --card-bg: #f5f5f5;
    --border: #e0e0e0;
    --border-dark: #d0d0d0;
    --muted: #6b6b6b;
    --muted-light: #999999;
    --radius-card: 0;
    --radius-btn: 0;
    --radius-input: 0;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-dramatic: cubic-bezier(0.7, 0, 0.3, 1);
    --font-display: 'Cormorant Garamond', 'Times New Roman', serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ══════════════════════════════════════════════
   ANIMATIONS & KEYFRAMES
══════════════════════════════════════════════ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.02);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

@keyframes underlineExpand {
    from {
        transform: scaleX(0);
    }

    to {
        transform: scaleX(1);
    }
}

/* ══════════════════════════════════════════════
   BASE & RESET
══════════════════════════════════════════════ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--white);
    color: var(--ink);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Selection styling */
::selection {
    background: var(--ink);
    color: var(--white);
}

/* ══════════════════════════════════════════════
   SECTION 5 — Back Button & Breadcrumb
══════════════════════════════════════════════ */
.section-5 {
    display: flex;
    align-items: center;
    gap: 32px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px 48px;
    border-bottom: 1px solid var(--border);
}

.div-block-63 {
    flex: 1;
}

/* Back Button */
.button-3.w-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--muted);
    text-decoration: none;
    background: none;
    border: none;
    padding: 8px 0;
    cursor: pointer;
    transition: all 400ms var(--ease);
    white-space: nowrap;
    flex-shrink: 0;
    position: relative;
}

    .button-3.w-button::before {
        content: '←';
        font-size: 18px;
        transition: transform 400ms var(--ease-bounce);
    }

    .button-3.w-button::after {
        content: '';
        position: absolute;
        bottom: 4px;
        left: 28px;
        right: 0;
        height: 1px;
        background: var(--ink);
        transform: scaleX(0);
        transform-origin: right;
        transition: transform 400ms var(--ease);
    }

    .button-3.w-button:hover {
        color: var(--ink);
    }

        .button-3.w-button:hover::before {
            transform: translateX(-6px);
        }

        .button-3.w-button:hover::after {
            transform: scaleX(1);
            transform-origin: left;
        }

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    list-style: none;
    flex-wrap: wrap;
    gap: 0;
}

    .breadcrumb li,
    .breadcrumb a {
        font-family: var(--font-body);
        font-size: 11px;
        font-weight: 400;
        letter-spacing: 0.5px;
        color: var(--muted-light);
        text-decoration: none;
        transition: color 200ms ease;
    }

        .breadcrumb li:not(:last-child)::after {
            content: '/';
            margin: 0 12px;
            color: var(--border-dark);
        }

        .breadcrumb li:last-child,
        .breadcrumb li:last-child a {
            color: var(--ink);
            font-weight: 500;
        }

        .breadcrumb a:hover {
            color: var(--ink);
        }

/* ══════════════════════════════════════════════
   PRODUCT DETAIL — Main 2-Column Grid
══════════════════════════════════════════════ */
.section.cc-product-detail,
.cc-product-detail {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 80px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 64px 48px 96px;
    align-items: start;
}

/* ── Left Column: Images ── */
.div-block-57 {
    position: sticky;
    top: 32px;
}

/* Main Image Container */
.product-image-3 {
    position: relative;
    background: var(--off-white);
    overflow: hidden;
    aspect-ratio: 3 / 4;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: zoom-in;
    animation: fadeIn 800ms var(--ease) forwards;
}

    /* Elegant corner accents */
    .product-image-3::before,
    .product-image-3::after {
        content: '';
        position: absolute;
        width: 60px;
        height: 60px;
        border: 1px solid var(--ink);
        opacity: 0;
        transition: all 500ms var(--ease);
        pointer-events: none;
        z-index: 10;
    }

    .product-image-3::before {
        top: 20px;
        left: 20px;
        border-right: none;
        border-bottom: none;
    }

    .product-image-3::after {
        bottom: 20px;
        right: 20px;
        border-left: none;
        border-top: none;
    }

    .product-image-3:hover::before,
    .product-image-3:hover::after {
        opacity: 1;
        width: 80px;
        height: 80px;
    }

    .product-image-3 a#a_main_img {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 100%;
    }

.product-image-img3 {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 1200ms var(--ease-dramatic), filter 600ms var(--ease);
    filter: saturate(0.95);
}

.product-image-3:hover .product-image-img3 {
    transform: scale(1.08);
    filter: saturate(1) contrast(1.02);
}

/* Thumbnails Row */
.div-block-58 {
    display: flex;
    gap: 16px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.thumbnailproducto-2 {
    width: 72px;
    height: 90px;
    background-size: cover;
    background-position: center;
    background-color: var(--card-bg);
    cursor: pointer;
    border: none;
    transition: all 400ms var(--ease);
    flex-shrink: 0;
    opacity: 0.5;
    position: relative;
    animation: fadeInUp 600ms var(--ease) backwards;
    filter: grayscale(30%);
}

    /* Stagger animation for thumbnails */
    .thumbnailproducto-2:nth-child(1) {
        animation-delay: 100ms;
    }

    .thumbnailproducto-2:nth-child(2) {
        animation-delay: 200ms;
    }

    .thumbnailproducto-2:nth-child(3) {
        animation-delay: 300ms;
    }

    .thumbnailproducto-2:nth-child(4) {
        animation-delay: 400ms;
    }

    .thumbnailproducto-2:nth-child(5) {
        animation-delay: 500ms;
    }

    .thumbnailproducto-2::before {
        content: '';
        position: absolute;
        inset: 0;
        border: 2px solid var(--ink);
        opacity: 0;
        transition: all 400ms var(--ease);
        transform: scale(1.1);
    }

    .thumbnailproducto-2::after {
        content: '';
        position: absolute;
        bottom: -8px;
        left: 0;
        width: 100%;
        height: 2px;
        background: var(--ink);
        transition: all 400ms var(--ease);
        transform: scaleX(0);
        transform-origin: center;
    }

    .thumbnailproducto-2:hover,
    .thumbnailproducto-2.active {
        opacity: 1;
        filter: grayscale(0%);
        transform: translateY(-4px);
    }

        .thumbnailproducto-2:hover::before,
        .thumbnailproducto-2.active::before {
            opacity: 1;
            transform: scale(1);
        }

        .thumbnailproducto-2:hover::after,
        .thumbnailproducto-2.active::after {
            transform: scaleX(1);
        }

/* Single Image (fotos template) */
.single-image {
    width: 100%;
    height: 100%;
}

.img-prin {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

/* Sale / Stock Badge Overlays */
.div-block-161.div-discount-outofstock {
    position: absolute;
    top: 24px;
    left: 24px;
    z-index: 5;
    pointer-events: none;
}

.text-block-39.text-discount-outofstock {
    background: var(--ink);
    color: var(--white);
    font-family: var(--font-body);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 8px 16px;
}

/* Span-style sale/outofstock badges */
span[class*="onsale"],
span[class*="outofstock"] {
    position: absolute;
    top: 24px;
    left: 24px;
    background: var(--ink);
    color: var(--white);
    font-family: var(--font-body);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 8px 16px;
    z-index: 5;
    pointer-events: none;
}

/* ── Right Column: Product Details ── */
.product-details-wrap {
    padding-top: 0;
}

/* Product Name */
.product-detail-name {
    font-family: var(--font-display);
    font-size: clamp(32px, 4vw, 44px);
    font-weight: 500;
    color: var(--ink);
    margin: 0 0 20px;
    line-height: 1.15;
    letter-spacing: 2px;
    text-transform: uppercase;
    animation: fadeInUp 700ms var(--ease) 200ms backwards;
    position: relative;
    display: inline-block;
}

    .product-detail-name::after {
        content: '';
        position: absolute;
        bottom: -8px;
        left: 0;
        width: 60px;
        height: 2px;
        background: var(--ink);
        animation: underlineExpand 800ms var(--ease) 600ms backwards;
        transform-origin: left;
    }

.product-detail-main-details {
    margin-bottom: 36px;
    animation: fadeInUp 700ms var(--ease) 300ms backwards;
}

/* Price — Regular (crossed out) */
.product-detail-price-copy {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 400;
    color: var(--muted-light);
    text-decoration: line-through;
    margin: 0;
    line-height: 1.4;
}

/* Price — Current */
.product-detail-price {
    font-family: var(--font-body);
    font-size: 28px;
    font-weight: 300;
    color: var(--ink);
    margin: 8px 0 32px;
    line-height: 1.2;
    letter-spacing: 2px;
    animation: fadeInUp 700ms var(--ease) 400ms backwards;
    position: relative;
    display: inline-block;
    padding-left: 2px;
}

    /* Subtle currency styling */
    .product-detail-price::first-letter {
        font-weight: 400;
    }

/* Short Product Description */
.product-detail-main-details > .paragraph-light,
.paragraph-light {
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--muted);
    line-height: 1.8;
    margin: 0 0 8px;
}

/* Dividers */
.divider,
.cc-dark-divider {
    height: 1px;
    background: var(--ink);
    margin: 40px 0;
    border: none;
    opacity: 0.15;
}

/* ── Product Info List (SKU, availability, etc.) ── */
.product-informations {
    margin-bottom: 16px;
}

.list.w-list-unstyled {
    list-style: none;
    margin: 0;
    padding: 0;
}

.list-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 0;
    border-bottom: 1px solid var(--card-bg);
}

    .list-item:last-child {
        border-bottom: none;
    }

    .list-item .paragraph-light {
        font-family: var(--font-body);
        font-size: 13px;
        color: var(--muted);
        line-height: 1.6;
        margin: 0;
    }

/* SKU2 — Label/Value Pairs */
.div-block-55 {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 8px 0;
}

.div-block-56 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid var(--card-bg);
}

    .div-block-56:last-child {
        border-bottom: none;
    }

.text-block-21 {
    font-family: var(--font-body);
    font-size: 12px;
    color: var(--muted);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
}

    .text-block-21._2 {
        font-weight: 500;
        color: var(--ink);
        text-align: right;
        text-transform: none;
        letter-spacing: 0;
    }

/* ══════════════════════════════════════════════
   ADD TO CART SECTION
══════════════════════════════════════════════ */
.add-to-cart {
    padding-top: 8px;
}

/* Variant Selector */
.product-selector {
    margin-bottom: 24px;
}

    .product-selector select,
    .product-cart select {
        display: block;
        width: 100%;
        height: 52px;
        padding: 0 44px 0 16px;
        border: 1px solid var(--border);
        font-family: var(--font-body);
        font-size: 13px;
        font-weight: 500;
        color: var(--ink);
        background: var(--white);
        -webkit-appearance: none;
        appearance: none;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 16px center;
        cursor: pointer;
        transition: border-color 300ms ease;
        margin-bottom: 16px;
    }

        .product-selector select:focus,
        .product-cart select:focus {
            outline: none;
            border-color: var(--ink);
        }

/* Options Container */
.containerListaSeleccionExtras {
    margin-bottom: 20px;
}

.product-cart.selector-producto {
    margin-bottom: 16px;
}

/* Quantity Label */
.label {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--ink);
    margin-bottom: 18px;
    position: relative;
    padding-bottom: 8px;
}

    .label::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 24px;
        height: 1px;
        background: var(--ink);
    }

/* Quantity + Button Row */
.product-detail-cta-wrap {
    display: flex;
    gap: 0;
    align-items: stretch;
    margin-bottom: 16px;
}

/* Quantity Container - Wrapper for +/- and input */
.quantity-container,
.qty-container,
[class*="quantity"] {
    display: flex;
    align-items: stretch;
    border: 1px solid var(--ink);
    background: var(--white);
    flex-shrink: 0;
}

    /* Quantity +/- Buttons */
    .quantity-container button,
    .qty-btn,
    .qty-container button,
    [class*="quantity"] button,
    button.qty-minus,
    button.qty-plus,
    .btn-qty,
    .quantity-btn {
        width: 52px;
        height: 60px;
        background: var(--ink);
        color: var(--white);
        border: none;
        font-family: var(--font-body);
        font-size: 20px;
        font-weight: 300;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 300ms var(--ease);
        position: relative;
        overflow: hidden;
    }

        .quantity-container button::before,
        .qty-btn::before,
        .qty-container button::before,
        [class*="quantity"] button::before,
        button.qty-minus::before,
        button.qty-plus::before,
        .btn-qty::before,
        .quantity-btn::before {
            content: '';
            position: absolute;
            inset: 0;
            background: var(--white);
            transform: translateY(100%);
            transition: transform 300ms var(--ease);
        }

        .quantity-container button:hover,
        .qty-btn:hover,
        .qty-container button:hover,
        [class*="quantity"] button:hover,
        button.qty-minus:hover,
        button.qty-plus:hover,
        .btn-qty:hover,
        .quantity-btn:hover {
            color: var(--ink);
        }

            .quantity-container button:hover::before,
            .qty-btn:hover::before,
            .qty-container button:hover::before,
            [class*="quantity"] button:hover::before,
            button.qty-minus:hover::before,
            button.qty-plus:hover::before,
            .btn-qty:hover::before,
            .quantity-btn:hover::before {
                transform: translateY(0);
            }

        /* Keep text above the animated background */
        .quantity-container button span,
        .qty-btn span,
        button.qty-minus span,
        button.qty-plus span {
            position: relative;
            z-index: 1;
        }

/* Quantity Input */
.text-field.cc-quantity-field,
.w-commerce-commerceaddtocartquantityinput {
    width: 72px;
    height: 56px;
    border: none;
    border-left: 1px solid var(--ink);
    border-right: 1px solid var(--ink);
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 500;
    color: var(--ink);
    text-align: center;
    background: var(--white);
    flex-shrink: 0;
    transition: background 300ms ease;
    -moz-appearance: textfield;
}

    .text-field.cc-quantity-field:focus,
    .w-commerce-commerceaddtocartquantityinput:focus {
        background: var(--off-white);
        outline: none;
    }

    .text-field.cc-quantity-field::-webkit-outer-spin-button,
    .text-field.cc-quantity-field::-webkit-inner-spin-button,
    .w-commerce-commerceaddtocartquantityinput::-webkit-outer-spin-button,
    .w-commerce-commerceaddtocartquantityinput::-webkit-inner-spin-button {
        -webkit-appearance: none;
        margin: 0;
    }

/* Add to Cart Button */
.w-commerce-commerceaddtocartbutton.button,
input.w-commerce-commerceaddtocartbutton {
    flex: 1;
    height: 60px;
    margin-left: 16px;
    background: var(--ink);
    color: var(--white);
    border: 2px solid var(--ink);
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 500ms var(--ease-dramatic);
    -webkit-appearance: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

    .w-commerce-commerceaddtocartbutton.button::before,
    input.w-commerce-commerceaddtocartbutton::before {
        content: '';
        position: absolute;
        inset: 0;
        background: var(--white);
        transform: scaleX(0);
        transform-origin: right;
        transition: transform 500ms var(--ease-dramatic);
        z-index: -1;
    }

    .w-commerce-commerceaddtocartbutton.button:hover,
    input.w-commerce-commerceaddtocartbutton:hover {
        color: var(--ink);
        letter-spacing: 5px;
    }

        .w-commerce-commerceaddtocartbutton.button:hover::before,
        input.w-commerce-commerceaddtocartbutton:hover::before {
            transform: scaleX(1);
            transform-origin: left;
        }

    /* Button press effect */
    .w-commerce-commerceaddtocartbutton.button:active,
    input.w-commerce-commerceaddtocartbutton:active {
        transform: scale(0.98);
    }

/* Out of Stock Message */
.w-commerce-commerceaddtocartoutofstock.status-message {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 56px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 16px;
}

/* Wishlist Button */
.button_wishlist_custom {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    height: 56px;
    background: transparent;
    color: var(--ink);
    border: 2px solid var(--ink);
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 500ms var(--ease-dramatic);
    -webkit-appearance: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

    .button_wishlist_custom::before {
        content: '';
        position: absolute;
        inset: 0;
        background: var(--ink);
        transform: scaleY(0);
        transform-origin: bottom;
        transition: transform 500ms var(--ease-dramatic);
        z-index: -1;
    }

    /* Heart icon animation */
    .button_wishlist_custom::after {
        content: '\2665';
        font-size: 14px;
        transition: transform 400ms var(--ease-bounce);
    }

    .button_wishlist_custom:hover {
        color: var(--white);
        letter-spacing: 4px;
    }

        .button_wishlist_custom:hover::before {
            transform: scaleY(1);
            transform-origin: top;
        }

        .button_wishlist_custom:hover::after {
            transform: scale(1.3);
        }

    .button_wishlist_custom:active {
        transform: scale(0.98);
    }

/* ── Variant Description (Descripcion3) ── */
.product-description {
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--muted);
    line-height: 1.8;
    padding: 16px 0;
}

/* Delivery Highlight */
[class*="resaltarEnvio"],
[id*="entrega_"] {
    background: var(--card-bg);
    border-left: 2px solid var(--ink);
    padding: 14px 18px;
    margin-top: 12px;
}

/* Contact Box Input */
.contacto_box {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    border: 1px solid var(--border);
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--ink);
    background: var(--white);
    transition: border-color 300ms ease;
}

    .contacto_box:focus {
        outline: none;
        border-color: var(--ink);
    }

/* ══════════════════════════════════════════════
   DESCRIPTIONS SECTION (section-6)
══════════════════════════════════════════════ */
.section-6 {
    background: var(--off-white);
    border-top: 1px solid var(--ink);
    position: relative;
}

    /* Decorative top accent */
    .section-6::before {
        content: '';
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 1px;
        height: 40px;
        background: var(--ink);
    }

/* Inner Grid — Two Description Columns */
#desc_prod_principal2,
[id^="desc_prod_variante"] {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 80px 48px;
}

    #desc_prod_principal2:empty,
    [id^="desc_prod_variante"]:empty {
        display: none;
    }

.columna-derecha,
.columna-izq {
    /* Content containers */
}

.prod_desc_tit {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 400;
    font-style: italic;
    color: var(--ink);
    margin: 0 0 24px;
    line-height: 1.3;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

/* Rich Text Injected by iPOS */
.columna-derecha p,
.columna-izq p {
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--muted);
    line-height: 1.9;
    margin: 0 0 16px;
}

.columna-derecha ul,
.columna-izq ul {
    padding-left: 20px;
    margin: 0 0 16px;
}

.columna-derecha li,
.columna-izq li {
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--muted);
    line-height: 1.9;
    margin-bottom: 8px;
}

/* ══════════════════════════════════════════════
   RELATED PRODUCTS (section-3)
══════════════════════════════════════════════ */
.section-3 {
    background: var(--white);
    border-top: 1px solid var(--border);
    padding: 80px 0 100px;
}

    .section-3 .container {
        max-width: 1400px;
        margin: 0 auto;
        padding: 0 48px;
    }

.products-heading {
    margin-bottom: 64px;
    text-align: center;
    position: relative;
    animation: fadeInUp 700ms var(--ease) forwards;
}

    .products-heading h3 {
        font-family: var(--font-display);
        font-size: 36px;
        font-weight: 400;
        font-style: italic;
        color: var(--ink);
        margin: 0;
        display: inline-block;
        position: relative;
        padding: 0 48px;
        background: var(--white);
        z-index: 1;
    }

    /* Horizontal line behind title with animation */
    .products-heading::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        right: 50%;
        height: 1px;
        background: var(--ink);
        z-index: 0;
        animation: expandLine 1000ms var(--ease) 300ms forwards;
    }

@keyframes expandLine {
    to {
        left: 0;
        right: 0;
    }
}

/* Related Grid */
.section-3 .w-dyn-list {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 48px;
}

.collection-wrap.w-dyn-items {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

/* Related Card */
.collection-item.w-dyn-item {
    overflow: hidden;
    background: var(--white);
    transition: all 600ms var(--ease);
    animation: fadeInUp 700ms var(--ease) backwards;
    position: relative;
}

    /* Staggered animation for related products */
    .collection-item.w-dyn-item:nth-child(1) {
        animation-delay: 100ms;
    }

    .collection-item.w-dyn-item:nth-child(2) {
        animation-delay: 200ms;
    }

    .collection-item.w-dyn-item:nth-child(3) {
        animation-delay: 300ms;
    }

    .collection-item.w-dyn-item:nth-child(4) {
        animation-delay: 400ms;
    }

    .collection-item.w-dyn-item:hover {
        transform: translateY(-12px);
    }

    /* Subtle shadow on hover */
    .collection-item.w-dyn-item::after {
        content: '';
        position: absolute;
        bottom: -20px;
        left: 10%;
        right: 10%;
        height: 20px;
        background: radial-gradient(ellipse, rgba(0,0,0,0.15) 0%, transparent 70%);
        opacity: 0;
        transition: opacity 600ms var(--ease);
        pointer-events: none;
    }

    .collection-item.w-dyn-item:hover::after {
        opacity: 1;
    }

.product-image-wrap.w-inline-block {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    background-size: cover;
    background-position: center;
    aspect-ratio: 3 / 4;
    position: relative;
    overflow: hidden;
}

    /* Image inside related card */
    .product-image-wrap.w-inline-block img {
        transition: transform 800ms var(--ease-dramatic), filter 500ms var(--ease);
        filter: grayscale(10%);
    }

.collection-item.w-dyn-item:hover .product-image-wrap.w-inline-block img {
    transform: scale(1.1);
    filter: grayscale(0%);
}

/* Hover Overlay on Related Card Image */
.product-image-wrap.w-inline-block::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.3) 50%, transparent 100%);
    opacity: 0;
    transition: opacity 600ms var(--ease);
    z-index: 1;
}

.collection-item.w-dyn-item:hover .product-image-wrap.w-inline-block::before {
    opacity: 1;
}

/* Related Card Info - Hidden by default, shown on hover */
.collection-item .product-description {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px 20px;
    text-align: left;
    transform: translateY(20px);
    opacity: 0;
    transition: transform 500ms var(--ease), opacity 500ms var(--ease);
    z-index: 2;
}

.collection-item.w-dyn-item:hover .product-description {
    transform: translateY(0);
    opacity: 1;
}

.product-name-text {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 500;
    color: var(--white);
    margin: 0 0 8px;
    line-height: 1.3;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.div-block-11 {
    display: flex;
    align-items: baseline;
    justify-content: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}

.precio-a-comparar {
    font-family: var(--font-body);
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: line-through;
    font-weight: 400;
}

.precio-final {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    color: var(--white);
}

/* View button on hover */
.product-image-wrap.w-inline-block::after {
    content: 'DISCOVER';
    position: absolute;
    bottom: 28px;
    right: 24px;
    background: var(--white);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 3px;
    padding: 14px 24px;
    opacity: 0;
    transform: translateY(20px) scale(0.9);
    transition: all 500ms var(--ease-bounce);
    z-index: 3;
    border: 1px solid var(--ink);
}

.collection-item.w-dyn-item:hover .product-image-wrap.w-inline-block::after {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Button hover effect on related cards */
.product-image-wrap.w-inline-block:hover::after {
    background: var(--ink);
    color: var(--white);
}

/* ══════════════════════════════════════════════
   LOADING INDICATOR
══════════════════════════════════════════════ */
.loading {
    width: 32px;
    height: 32px;
    margin: 16px auto;
    display: block;
}

/* Hidden by default */
.addProd[style*="display:none"],
[style*="display:none"] {
    display: none !important;
}

/* ══════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════ */
@media screen and (max-width: 1200px) {
    .collection-wrap.w-dyn-items {
        grid-template-columns: repeat(3, 1fr);
    }

    .products-heading h3::before,
    .products-heading h3::after {
        width: 40px;
    }
}

@media screen and (max-width: 1024px) {
    .section.cc-product-detail,
    .cc-product-detail {
        grid-template-columns: 1fr;
        gap: 48px;
        padding: 48px 32px 72px;
    }

    .div-block-57 {
        position: static;
    }

    .product-image-3 {
        aspect-ratio: 4 / 5;
        max-width: 600px;
        margin: 0 auto;
    }

    #desc_prod_principal2,
    [id^="desc_prod_variante"] {
        grid-template-columns: 1fr;
        gap: 48px;
        padding: 56px 32px;
    }

    .section-5 {
        padding: 20px 32px;
    }

    .collection-wrap.w-dyn-items {
        grid-template-columns: repeat(2, 1fr);
    }

    .section-3 .container,
    .section-3 .w-dyn-list {
        padding: 0 32px;
    }

    .products-heading h3::before,
    .products-heading h3::after {
        display: none;
    }
}

@media screen and (max-width: 767px) {
    .section.cc-product-detail,
    .cc-product-detail {
        padding: 32px 20px 56px;
    }

    .product-detail-name {
        font-size: 28px;
    }

    .product-detail-price {
        font-size: 20px;
    }

    .product-detail-cta-wrap {
        flex-direction: column;
    }

    .text-field.cc-quantity-field,
    .w-commerce-commerceaddtocartquantityinput {
        width: 100%;
    }

    .w-commerce-commerceaddtocartbutton.button,
    input.w-commerce-commerceaddtocartbutton {
        width: 100%;
    }

    .section-5 {
        padding: 16px 20px;
        gap: 16px;
        flex-wrap: wrap;
    }

    #desc_prod_principal2,
    [id^="desc_prod_variante"] {
        padding: 40px 20px;
    }

    .prod_desc_tit {
        font-size: 24px;
    }

    .section-3 {
        padding: 56px 0 72px;
    }

        .section-3 .container,
        .section-3 .w-dyn-list {
            padding: 0 20px;
        }

    .products-heading {
        margin-bottom: 32px;
    }

        .products-heading h3 {
            font-size: 26px;
        }

    .collection-wrap.w-dyn-items {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .thumbnailproducto-2 {
        width: 60px;
        height: 75px;
    }
}

@media screen and (max-width: 479px) {
    .collection-wrap.w-dyn-items {
        gap: 16px;
    }

    .product-detail-name {
        font-size: 24px;
    }

    .section-5 {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .product-image-3 {
        aspect-ratio: 3 / 4;
    }
}

/* ══════════════════════════════════════════════
   UTILITY CLASSES
══════════════════════════════════════════════ */
.force-background-none {
    background: none !important;
}

.w-button {
    /* Webflow button reset */
}

.w-inline-block {
    display: inline-block;
}
