/*
|--------------------------------------------------------------------------
| ROOT
|--------------------------------------------------------------------------
*/

:root {
    --font-heading: 'Outfit', sans-serif;
    --dp-primary: #fecf0c;
    --dp-primary-dark: #e4b900;
    --dp-black: #000000;
    --dp-white: #ffffff;
    --dp-text: #141414;
    --dp-text-light: #6f6f6f;
    --dp-border: #ececec;
    --dp-bg: #f7f7f7;
    --dp-card: #ffffff;
    --dp-shadow: 0 15px 45px rgba(0,0,0,0.06);
    --dp-radius: 28px;
    --dp-transition: all .28s ease;
}

/*
|--------------------------------------------------------------------------
| BASE
|--------------------------------------------------------------------------
*/

* {
    box-sizing: border-box;
}

.dp-page {
    width: 100%;
    overflow: hidden;
    background: var(--dp-white);
    color: var(--dp-text);
}

/*
|--------------------------------------------------------------------------
| TOP
|--------------------------------------------------------------------------
*/

.dp-top {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 30px 16px;
    text-align: center;
}

.dp-brand {
    display: inline-flex;
    margin-bottom: 18px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    color: var(--dp-text-light);
    letter-spacing: .08em;
    text-transform: uppercase;
    transition: var(--dp-transition);
}

.dp-brand:hover {
    color: var(--dp-black);
}

.dp-title {
    font-size: clamp(42px, 6vw, 82px);
    line-height: .95;
    font-weight: 900;
    letter-spacing: -0.04em;
    color: var(--dp-black);
    max-width: 1000px;
    margin: 0 auto;
}

/*
|--------------------------------------------------------------------------
| CONTAINER
|--------------------------------------------------------------------------
*/

.dp-container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 30px;
    display: grid;
    grid-template-columns: minmax(400px, 1.1fr) 480px;
    gap: 50px;
    align-items: start;
}

/*
|--------------------------------------------------------------------------
| GALLERY
|--------------------------------------------------------------------------
*/

.dp-gallery {
    position: sticky;
    top: 110px;
}

.dp-gallery-main {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #f5f5f5;
    border-radius: 34px;
    overflow: hidden;
    box-shadow: var(--dp-shadow);
    position: relative;
}

.dp-gallery-main::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(255,255,255,.15), transparent);
    pointer-events: none;
}

.dp-gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: transform .45s ease;
}

.dp-gallery-main:hover img {
    transform: scale(1.04);
}

/*
|--------------------------------------------------------------------------
| THUMBS
|--------------------------------------------------------------------------
*/

.dp-thumbs {
    margin-top: 22px;
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scrollbar-width: none;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    padding: 4px 2px 8px;
    -webkit-overflow-scrolling: touch;
}

.dp-thumbs::-webkit-scrollbar {
    height: 0;
    display: none;
}

.dp-thumb {
    width: 90px;
    min-width: 90px;
    height: 90px;
    border-radius: 24px;
    overflow: hidden;
    border: 2px solid transparent;
    background: var(--dp-white);
    cursor: pointer;
    transition: var(--dp-transition);
    padding: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,.04);
    scroll-snap-align: start;
    flex-shrink: 0;
    position: relative;
}

.dp-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 18px;
    display: block;
}

.dp-thumb:hover {
    transform: translateY(-3px) scale(1.02);
    border-color: rgba(254,207,12,.45);
}

.dp-thumb.active {
    border-color: transparent;
    transform: scale(1.03);
    box-shadow: 0 8px 24px rgba(254,207,12,.18);
}

.dp-thumb.active::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    border: 2px solid var(--dp-primary);
    pointer-events: none;
}

/*
|--------------------------------------------------------------------------
| INFO PANEL
|--------------------------------------------------------------------------
*/

.dp-info {
    background: var(--dp-card);
    border: 1px solid var(--dp-border);
    border-radius: 34px;
    padding: 42px;
    box-shadow: var(--dp-shadow);
}

.dp-sku {
    font-size: 14px;
    color: var(--dp-text-light);
    margin-bottom: 25px;
    transition: opacity .2s ease;
}

/*
|--------------------------------------------------------------------------
| PRICE
|--------------------------------------------------------------------------
*/

.dp-price {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 30px;
}

.dp-price-final,
.dp-price-offer {
    font-size: clamp(44px, 5vw, 64px);
    font-weight: 900;
    line-height: 1;
    color: var(--dp-black);
}

.dp-price-normal {
    font-size: 24px;
    color: #999;
    text-decoration: line-through;
}

.dp-price-wrapper {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
}

.dp-price-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(254,207,12,.18);
    color: #946200;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.dp-price-empty {
    font-size: 18px;
    font-weight: 700;
    color: var(--dp-text-light);
}

/*
|--------------------------------------------------------------------------
| STOCK
|--------------------------------------------------------------------------
*/

.dp-stock {
    margin-bottom: 35px;
}

.dp-stock span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 18px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
}

.in-stock {
    background: rgba(34,197,94,.14);
    color: #15803d;
}

.out-stock {
    background: rgba(239,68,68,.14);
    color: #dc2626;
}

.reserve-stock {
    background: rgba(254,207,12,.18);
    color: #a16207;
}

/*
|--------------------------------------------------------------------------
| ATTRIBUTES
|--------------------------------------------------------------------------
*/

.dp-attributes {
    display: flex;
    flex-direction: column;
    gap: 34px;
    margin-bottom: 40px;
}

.dp-attribute-title {
    font-size: 15px;
    font-weight: 800;
    margin-bottom: 15px;
}

.dp-attribute-options {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.dp-attribute-option {
    min-width: 58px;
    min-height: 52px;
    padding: 12px 22px;
    border: 1px solid var(--dp-border);
    background: var(--dp-white);
    border-radius: 18px;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    transition: var(--dp-transition);
}

.dp-attribute-option:hover {
    border-color: var(--dp-black);
    transform: translateY(-2px);
}

.dp-attribute-option.active {
    background: var(--dp-black);
    color: var(--dp-white);
    border-color: var(--dp-black);
    transform: scale(1.04);
}

/*
|--------------------------------------------------------------------------
| QUANTITY
|--------------------------------------------------------------------------
*/

.dp-quantity-wrapper {
    margin-bottom: 32px;
}

.dp-quantity-label {
    font-size: 14px;
    font-weight: 800;
    margin-bottom: 14px;
    color: var(--dp-text);
}

.dp-quantity {
    width: fit-content;
    display: flex;
    align-items: center;
    border: 1px solid var(--dp-border);
    border-radius: 22px;
    overflow: hidden;
    background: var(--dp-white);
    box-shadow: 0 4px 12px rgba(0,0,0,.03);
}

.dp-qty-btn {
    width: 58px;
    height: 58px;
    border: none;
    background: transparent;
    color: var(--dp-black);
    font-size: 24px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--dp-transition);
}

.dp-qty-btn:hover {
    background: rgba(0,0,0,.04);
}

.dp-qty-input {
    width: 74px;
    height: 58px;
    border: none;
    outline: none;
    text-align: center;
    font-size: 16px;
    font-weight: 800;
    color: var(--dp-black);
    background: transparent;
    appearance: textfield;
    -moz-appearance: textfield;
}

.dp-qty-input::-webkit-outer-spin-button,
.dp-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/*
|--------------------------------------------------------------------------
| BUTTONS
|--------------------------------------------------------------------------
*/

.dp-actions {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 40px;
}

.dp-add-cart,
.dp-whatsapp {
    width: 100%;
    min-height: 62px;
    border-radius: 22px;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    transition: var(--dp-transition);
    position: relative;
    overflow: hidden;
}

.dp-add-cart {
    background: var(--dp-primary);
    color: var(--dp-black);
}

.dp-add-cart:hover {
    background: var(--dp-primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 16px 35px rgba(254,207,12,.34);
}

.dp-add-cart:disabled {
    opacity: .55;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    background: #d7d7d7;
    color: #6a6a6a;
}

.dp-whatsapp {
    background: #25D366;
    color: #ffffff;
}

.dp-whatsapp:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 35px rgba(37,211,102,.28);
}

/*
|--------------------------------------------------------------------------
| TABS (Descripción / Especificaciones)
|--------------------------------------------------------------------------
*/

.dp-tabs {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 30px 60px;
}

.dp-tabs-nav {
    display: flex;
    gap: 4px;
    border-bottom: 2px solid var(--dp-border);
    margin-bottom: 40px;
}

.dp-tab-btn {
    padding: 14px 32px;
    border: none;
    background: transparent;
    font-size: 15px;
    font-weight: 800;
    color: var(--dp-text-light);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: var(--dp-transition);
    font-family: var(--font-heading);
}

.dp-tab-btn:hover {
    color: var(--dp-black);
}

.dp-tab-btn.active {
    color: var(--dp-black);
    border-bottom-color: var(--dp-primary);
}

.dp-tab-content {
    display: block;
    animation: dpTabFadeIn .35s ease;
}

.dp-tab-content--alone {
}

.dp-tab-hidden {
    display: none;
}

.dp-tab-heading {
    font-size: 28px;
    font-weight: 900;
    margin-bottom: 20px;
    color: var(--dp-black);
    font-family: var(--font-heading);
}

.dp-tab-body p,
.dp-tab-body div {
    font-size: 17px;
    line-height: 1.9;
    color: var(--dp-text-light);
}

@keyframes dpTabFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/*
|--------------------------------------------------------------------------
| RELATED PRODUCTS
|--------------------------------------------------------------------------
*/

.dp-related {
    width: 100%;
    padding: 80px 30px 110px;
    overflow: hidden;
}

.dp-related-header {
    text-align: center;
    margin-bottom: 42px;
}

.dp-related-header h2 {
    font-size: clamp(40px, 5vw, 70px);
    line-height: .95;
    font-weight: 900;
    letter-spacing: -.04em;
    margin-bottom: 14px;
    color: var(--dp-black);
}

.dp-related-header p {
    font-size: 17px;
    color: var(--dp-text-light);
}

.dp-related-slider {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.dp-related-track {
    width: 100%;
    display: flex;
    align-items: stretch;
    gap: 24px;
    padding-bottom: 6px;
    transition: transform .65s cubic-bezier(.22,.61,.36,1);
    will-change: transform;
}

.dp-related-card {
    flex: 0 0 calc((100% - 72px) / 4);
    min-width: calc((100% - 72px) / 4);
    background: linear-gradient(to bottom, #ffffff, #fffdf6);
    border-radius: 32px;
    overflow: hidden;
    text-decoration: none;
    border: 1px solid rgba(254,207,12,.20);
    transition: all .35s ease;
    box-shadow: 0 6px 20px rgba(0,0,0,.04);
    position: relative;
}

.dp-related-card:hover {
    transform: translateY(-8px);
    border-color: rgba(254,207,12,.45);
    box-shadow: 0 18px 42px rgba(0,0,0,.08);
}

.dp-related-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: linear-gradient(to bottom, #fafafa, #f3f3f3);
    overflow: hidden;
    padding: 16px;
}

.dp-related-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform .45s ease;
}

.dp-related-card:hover img {
    transform: scale(1.05);
}

.dp-related-body {
    padding: 26px;
}

.dp-related-body span {
    display: inline-block;
    margin-bottom: 12px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--dp-text-light);
}

.dp-related-body h3 {
    font-size: 22px;
    line-height: 1.28;
    font-weight: 800;
    margin-bottom: 14px;
    color: var(--dp-black);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.dp-related-body strong {
    display: block;
    font-size: 24px;
    line-height: 1.15;
    font-weight: 900;
    color: var(--dp-black);
}

/*
|--------------------------------------------------------------------------
| RELATED DOTS
|--------------------------------------------------------------------------
*/

.dp-related-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 11px;
    margin-top: 34px;
}

.dp-related-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    border: none;
    background: rgba(0,0,0,.10);
    cursor: pointer;
    transition: all .35s ease;
    padding: 0;
}

.dp-related-dot:hover {
    transform: scale(1.15);
}

.dp-related-dot.active {
    width: 30px;
    background: var(--dp-primary);
    box-shadow: 0 3px 10px rgba(254,207,12,.28);
}

/*
|--------------------------------------------------------------------------
| ANIMATIONS
|--------------------------------------------------------------------------
*/

.dp-reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity .8s ease, transform .8s ease;
}

.dp-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/*
|--------------------------------------------------------------------------
| RESPONSIVE
|--------------------------------------------------------------------------
*/

@media (max-width: 1200px) {

    .dp-container {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .dp-gallery {
        position: relative;
        top: auto;
    }

    .dp-info {
        max-width: 900px;
        width: 100%;
        margin: 0 auto;
    }

    .dp-related-card {
        flex: 0 0 calc((100% - 48px) / 3);
        min-width: calc((100% - 48px) / 3);
    }
}

@media (max-width: 768px) {

    .dp-top {
        padding: 45px 18px 10px;
    }

    .dp-title {
        font-size: clamp(34px, 10vw, 52px);
        line-height: 1.02;
    }

    .dp-container {
        padding: 20px 18px;
        gap: 34px;
    }

    .dp-gallery-main {
        aspect-ratio: 4 / 3;
        max-height: 65vh;
        border-radius: 26px;
    }

    .dp-thumbs {
        gap: 12px;
        margin-top: 18px;
        padding: 4px 2px 8px;
    }

    .dp-thumb {
        width: 68px;
        min-width: 68px;
        height: 68px;
        border-radius: 18px;
    }

    .dp-thumb img {
        border-radius: 14px;
    }

    .dp-thumb.active::after {
        border-radius: 18px;
    }

    .dp-info {
        padding: 28px;
        border-radius: 28px;
    }

    .dp-quantity {
        width: 100%;
    }

    .dp-qty-btn {
        width: 54px;
        height: 54px;
    }

    .dp-qty-input {
        flex: 1;
        width: auto;
        height: 54px;
    }

    .dp-price-final,
    .dp-price-offer {
        font-size: 42px;
    }

    .dp-tabs {
        padding: 0 18px 40px;
    }

    .dp-tab-btn {
        padding: 12px 20px;
        font-size: 14px;
    }

    .dp-tab-heading {
        font-size: 22px;
    }

    .dp-tab-body p,
    .dp-tab-body div {
        font-size: 15px;
        line-height: 1.75;
    }

    .dp-related {
        padding: 56px 14px 78px;
    }

    .dp-related-header {
        margin-bottom: 34px;
    }

    .dp-related-header h2 {
        font-size: clamp(32px, 9vw, 42px);
        line-height: 1;
        letter-spacing: -.035em;
    }

    .dp-related-header p {
        font-size: 15px;
    }

    .dp-related-track {
        gap: 16px;
    }

    .dp-related-card {
        flex: 0 0 calc((100% - 16px) / 2);
        min-width: calc((100% - 16px) / 2);
        border-radius: 24px;
    }

    .dp-related-image {
        padding: 12px;
    }

    .dp-related-body {
        padding: 18px;
    }

    .dp-related-body h3 {
        font-size: 16px;
        line-height: 1.3;
        margin-bottom: 10px;
        -webkit-line-clamp: 2;
    }

    .dp-related-body strong {
        font-size: 17px;
        line-height: 1.15;
    }

    .dp-related-dots {
        margin-top: 30px;
        gap: 10px;
    }

    .dp-related-dot {
        width: 9px;
        height: 9px;
    }

    .dp-related-dot.active {
        width: 28px;
    }
}

@media (max-width: 480px) {

    .dp-container {
        padding: 18px 14px;
    }

    .dp-info {
        padding: 24px;
    }

    .dp-tabs {
        padding: 0 14px 34px;
    }

    .dp-related {
        padding: 52px 14px 74px;
    }

    .dp-related-header h2 {
        font-size: 32px;
    }

    .dp-related-body {
        padding: 16px;
    }

    .dp-related-body h3 {
        font-size: 15px;
    }

    .dp-related-body strong {
        font-size: 16px;
    }
}