.product-detail-section,
body {
    color: #111827;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Navbar Ultracomp: mismo estilo visual del catálogo */
header {
    min-height: auto;
    padding: 0;
    border-bottom: 0 !important;
    background: #0E39B0;
    box-shadow: 0 10px 28px rgba(14, 57, 176, .14);
}

header .container {
    width: min(1280px, calc(100% - 40px));
    padding: 0;
}

header nav:has(.nav-brand) {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 24px;
    min-height: 82px;
}

.nav-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-size: clamp(22px, 3vw, 34px);
    font-weight: 900;
    letter-spacing: .035em;
    text-decoration: none;
    white-space: nowrap;
}

.nav-brand .ultrasoft-logo {
    display: block;
    width: 42px;
    height: 42px;
    margin: 0;
    object-fit: contain;
}

header .nav-links {
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 28px;
}

header .nav-links a {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    color: #fff !important;
    border-radius: 999px;
    font-size: 17px;
    font-weight: 800;
    text-decoration: none;
    transition: transform .2s ease, opacity .2s ease, background .2s ease, box-shadow .2s ease, color .2s ease;
}

header .nav-links a:hover {
    opacity: .82;
}

header .quote-cart-button {
    padding: 0 18px;
    border: 1px solid rgba(255, 255, 255, .28);
    background: rgba(255, 255, 255, .1);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .04);
}

.mobile-menu-toggle {
    display: none;
}

.product-detail-section {
    min-height: 100vh;
    padding: 28px 20px 72px;
    background: #f4f5f7;
}

.product-detail {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(390px, .65fr);
    gap: 14px;
    padding: 14px;
    overflow: visible;
    border: 0;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 16px 48px rgba(17, 24, 39, .08);
}

.product-detail-image {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 680px;
    align-items: center;
    justify-content: center;
    padding: clamp(32px, 6vw, 82px);
    overflow: hidden;
    border: 0;
    border-radius: 14px;
    background: #f5f5f5;
    box-shadow: none;
}

.product-detail-image img {
    width: 100%;
    height: 100%;
    max-width: 720px;
    max-height: 620px;
    object-fit: contain;
    mix-blend-mode: multiply;
}

.product-image-badge {
    position: absolute;
    z-index: 1;
    top: 18px;
    left: 18px;
    padding: 7px 11px;
    color: #151515;
    border: 1px solid #dedede;
    border-radius: 999px;
    background: rgba(255, 255, 255, .92);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.product-detail-info {
    position: sticky;
    top: 18px;
    align-self: start;
    display: flex;
    min-width: 0;
    min-height: 680px;
    flex-direction: column;
    padding: clamp(26px, 3.4vw, 48px);
    border-radius: 14px;
    background: #fff;
}

.product-detail-kicker {
    margin: 0 0 10px;
    color: #8a8a8a;
    font-size: 12px;
    font-weight: 600;
}

.product-detail-info h1 {
    max-width: 17ch;
    margin: 0 0 14px;
    color: #111;
    font-size: clamp(34px, 3.2vw, 54px);
    line-height: 1;
    letter-spacing: -.045em;
    overflow-wrap: anywhere;
}

.product-detail-description {
    margin: 0 0 18px;
    color: #777;
    font-size: 14px;
    line-height: 1.55;
}

.product-detail-specs {
    margin: 0 0 20px;
}

.specs-list {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.spec-item {
    padding: 7px 10px;
    color: #424242;
    border: 1px solid #e3e3e3;
    border-radius: 999px;
    background: #fff;
    font-size: 12px;
}

.product-purchase-row {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 14px;
    padding: 20px 0;
    border-top: 1px solid #e8e8e8;
    border-bottom: 1px solid #e8e8e8;
}

.product-price-label {
    display: block;
    color: #888;
    font-size: 11px;
}

.product-detail-price {
    margin: 2px 0 0;
    color: #111;
    font-size: clamp(34px, 3vw, 48px);
    line-height: 1;
    letter-spacing: -.035em;
}

.product-stock-pill {
    display: inline-flex;
    gap: 7px;
    align-items: center;
    padding: 8px 10px;
    color: #16794b;
    border-radius: 999px;
    background: #edf9f2;
    font-size: 11px;
    font-weight: 700;
}

.product-stock-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #21a366;
}

.product-stock-pill.is-out {
    color: #b42318;
    background: #fff0ef;
}

.product-stock-pill.is-out .product-stock-dot {
    background: #e5484d;
}

.product-detail-features {
    margin: 20px 0 14px;
}

.product-detail-features h3 {
    margin: 0 0 7px;
    color: #1d1d1d;
    font-size: 14px;
}

.product-detail-features ul {
    margin: 0;
    padding: 0;
}

.product-detail-features ul li {
    padding: 5px 0 5px 22px;
    color: #777;
    font-size: 12px;
}

.product-detail-features ul li::before {
    top: 7px;
    color: #111;
    font-size: 12px;
}

.product-payment-note {
    display: flex;
    flex-direction: column;
    margin: 4px 0 16px;
    color: #8a8a8a;
    font-size: 11px;
}

.product-payment-note strong {
    color: #333;
}

.product-detail-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: auto;
}

.product-detail-actions > .cta-button {
    width: 100%;
    min-height: 52px;
    flex: none;
    margin: 0;
    padding: 13px 18px;
    color: #fff;
    border: 1px solid #111;
    border-radius: 10px;
    background: #111;
    font-size: 14px;
}

.product-detail-actions > .cta-button:hover {
    color: #fff;
    background: #0e39b0;
    border-color: #0e39b0;
}

.product-detail-actions > .cta-button:disabled {
    cursor: not-allowed;
    opacity: .45;
}

.product-secondary-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.product-secondary-actions .secondary-button {
    display: inline-flex;
    min-width: 0;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 10px 8px;
    color: #222;
    border: 1px solid #dedede;
    border-radius: 10px;
    background: #fff;
    font-size: 11px;
    line-height: 1.2;
    text-align: center;
    transition: color .2s ease, background-color .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.product-secondary-actions .secondary-button:hover,
.product-secondary-actions .secondary-button:focus-visible {
    color: #fff;
    border-color: #0e39b0;
    background: #0e39b0;
    box-shadow: 0 8px 20px rgba(14, 57, 176, .2);
    transform: translateY(-2px);
    outline: none;
}

.related-products-section {
    margin-top: 62px;
}

.related-products-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

.related-products-heading span {
    color: #858585;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.related-products-heading h2 {
    margin: 4px 0 0;
    color: #111;
    font-size: clamp(30px, 4vw, 50px);
    line-height: .95;
    letter-spacing: -.045em;
    text-transform: uppercase;
}

.related-products-heading > a {
    color: #111;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.related-products-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.related-product-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 9px;
    padding: 0 0 15px;
    overflow: hidden;
    color: #111;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    background: #fff;
    box-shadow: none;
    text-decoration: none;
}

.related-product-card img {
    width: 100%;
    aspect-ratio: 1 / .88;
    object-fit: contain;
    border-radius: 0;
    background: #f4f4f4;
    mix-blend-mode: multiply;
}

.related-product-card strong,
.related-product-card span {
    margin-right: 14px;
    margin-left: 14px;
}

.related-product-card strong {
    font-size: 14px;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.related-product-card span {
    margin-top: auto;
    color: #0e39b0;
    font-size: 14px;
    font-weight: 800;
}

@media (max-width: 980px) {
    .product-detail {
        grid-template-columns: 1fr;
    }

    .product-detail-image {
        min-height: 500px;
    }

    .product-detail-info {
        position: static;
        min-height: 0;
    }

    .product-detail-info h1 {
        max-width: none;
    }
}

@media (max-width: 640px) {
    header .container {
        width: calc(100% - 28px);
    }

    header nav:has(.nav-brand) {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) 46px;
        min-height: 64px;
        gap: 12px;
        padding: 8px 0;
    }

    .nav-brand {
        min-width: 0;
        gap: 8px;
        font-size: 21px;
    }

    .nav-brand .ultrasoft-logo {
        width: 36px;
        height: 36px;
    }

    .mobile-menu-toggle {
        display: grid;
        width: 46px;
        height: 46px;
        place-content: center;
        gap: 5px;
        padding: 0;
        border: 1px solid rgba(255, 255, 255, .28);
        border-radius: 12px;
        background: rgba(255, 255, 255, .1);
        cursor: pointer;
    }

    .mobile-menu-toggle span {
        display: block;
        width: 22px;
        height: 2px;
        border-radius: 2px;
        background: #fff;
        transition: transform .2s ease, opacity .2s ease;
    }

    .mobile-menu-toggle.is-open span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

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

    .mobile-menu-toggle.is-open span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    header nav:has(.nav-brand) .nav-links {
        position: absolute;
        z-index: 20;
        top: calc(100% + 4px);
        right: 0;
        left: 0;
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
        padding: 10px;
        overflow: visible;
        border: 1px solid rgba(255, 255, 255, .2);
        border-radius: 14px;
        background: #0E39B0;
        box-shadow: 0 18px 38px rgba(2, 12, 40, .3);
    }

    header nav:has(.nav-brand) .nav-links.is-open {
        display: flex;
    }

    header nav:has(.nav-brand) .nav-links a {
        width: 100%;
        justify-content: flex-start;
        padding: 10px 12px;
        border-radius: 10px;
    }

    .product-detail-section {
        padding: 18px 0 48px;
        overflow: hidden;
    }

    .product-detail-section > .container {
        width: 100%;
        padding: 0 14px;
    }

    .product-detail {
        display: block;
        padding: 8px 8px 92px;
        border-radius: 16px;
    }

    .product-detail-image {
        min-height: 360px;
        padding: 46px 24px 28px;
        border-radius: 12px;
    }

    .product-detail-info {
        padding: 26px 14px 16px;
    }

    .product-detail-info h1 {
        font-size: 34px;
    }

    .product-purchase-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .product-detail-price {
        font-size: 38px;
    }

    .product-secondary-actions {
        grid-template-columns: 1fr;
    }

    .related-products-section {
        margin-top: 46px;
    }

    .related-products-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .related-products-heading h2 {
        max-width: 9ch;
        font-size: 36px;
    }

    .related-products-grid {
        width: calc(100vw - 14px);
        display: flex;
        gap: 10px;
        padding-right: 14px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
    }

    .related-products-grid::-webkit-scrollbar {
        display: none;
    }

    .related-product-card {
        min-width: 76vw;
        scroll-snap-align: start;
    }
}
