:root {
    --pdp-wood-950: #2b1811;
    --pdp-wood-900: #331d14;
    --pdp-wood-800: #4d3022;
    --pdp-wood-700: #654230;
    --pdp-wood-600: #805b46;
    --pdp-wood-500: #9a725b;
    --pdp-wood-300: #d9c8bb;
    --pdp-wood-200: #e8ddd4;
    --pdp-wood-100: #f2ebe5;
    --pdp-wood-50: #faf8f5;
    --pdp-white: #ffffff;
    --pdp-whatsapp: #1e8e4a;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body.pdp-page {
    margin: 0;
    color: var(--pdp-wood-900);
    background: var(--pdp-wood-50);
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden;
}

.ui-icon {
    display: inline-block;
    width: 1.125rem;
    height: 1.125rem;
    flex: 0 0 1.125rem;
    max-width: 1.125rem;
    max-height: 1.125rem;
    vertical-align: -0.125em;
}

.ui-icon-button {
    width: 1.25rem;
    height: 1.25rem;
    flex-basis: 1.25rem;
    max-width: 1.25rem;
    max-height: 1.25rem;
}

.ui-icon-floating {
    width: 1.125rem;
    height: 1.125rem;
    flex-basis: 1.125rem;
    max-width: 1.125rem;
    max-height: 1.125rem;
}

.pdp-skip-link {
    position: fixed;
    top: 8px;
    left: 8px;
    z-index: 100;
    transform: translateY(-160%);
    padding: 10px 14px;
    color: #fff;
    background: var(--pdp-wood-900);
    border-radius: 6px;
}

.pdp-skip-link:focus {
    transform: translateY(0);
}

.pdp-shell {
    width: min(100% - 24px, 1280px);
    margin-inline: auto;
}

.pdp-breadcrumb {
    padding-block: 18px;
    border-bottom: 1px solid var(--pdp-wood-100);
    background: #fff;
}

.pdp-breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
    color: var(--pdp-wood-600);
    font-size: 13px;
}

.pdp-breadcrumb a {
    color: var(--pdp-wood-800);
    text-decoration: none;
}

.pdp-breadcrumb a:hover,
.pdp-breadcrumb a:focus-visible {
    color: var(--pdp-wood-600);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.pdp-breadcrumb-separator {
    color: var(--pdp-wood-300);
}

.pdp-main {
    padding-block: 34px 64px;
}

.pdp-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.22fr) minmax(360px, 1fr);
    gap: clamp(32px, 3.5vw, 48px);
    align-items: start;
}

.pdp-gallery {
    min-width: 0;
}

.pdp-main-image-wrap {
    position: relative;
    display: grid;
    height: clamp(420px, 34vw, 480px);
    place-items: center;
    overflow: hidden;
    border: 1px solid var(--pdp-wood-200);
    border-radius: 8px;
    background: #fff;
}

.pdp-main-image {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.pdp-zoom-trigger {
    position: absolute;
    top: 12px;
    right: 12px;
    display: inline-grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid var(--pdp-wood-200);
    border-radius: 50%;
    color: var(--pdp-wood-900);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 6px 20px rgba(51, 29, 20, 0.12);
    cursor: pointer;
}

.pdp-zoom-trigger:hover,
.pdp-zoom-trigger:focus-visible {
    color: #fff;
    background: var(--pdp-wood-800);
}

.pdp-gallery-controls {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) 40px;
    gap: 10px;
    align-items: center;
    margin-top: 14px;
}

.pdp-gallery-thumbnails {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 2px;
}

.pdp-gallery-thumbnail,
.pdp-gallery-arrow {
    border: 1px solid var(--pdp-wood-200);
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
}

.pdp-gallery-thumbnail {
    flex: 0 0 92px;
    padding: 3px;
}

.pdp-gallery-thumbnail.is-active,
.pdp-gallery-thumbnail:focus-visible,
.pdp-gallery-arrow:focus-visible {
    border-color: var(--pdp-wood-700);
    outline: 2px solid rgba(101, 66, 48, 0.18);
}

.pdp-gallery-thumbnail img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.pdp-gallery-arrow {
    width: 40px;
    height: 40px;
    color: var(--pdp-wood-800);
    font-size: 18px;
}

.pdp-product-info {
    min-width: 0;
    padding-top: 4px;
}

.pdp-eyebrow {
    margin: 0 0 8px;
    color: var(--pdp-wood-600);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.pdp-title {
    margin: 0;
    color: var(--pdp-wood-950);
    font-size: clamp(30px, 3.1vw, 46px);
    line-height: 1.12;
    letter-spacing: 0;
}

.pdp-code {
    margin: 14px 0 10px;
    color: var(--pdp-wood-700);
    font-size: 15px;
}

.pdp-category {
    display: inline-flex;
    margin-bottom: 20px;
    padding: 7px 10px;
    border: 1px solid var(--pdp-wood-200);
    border-radius: 6px;
    color: var(--pdp-wood-800);
    background: #fff;
    font-size: 13px;
    font-weight: 700;
}

.pdp-status-badge {
    display: inline-flex;
    margin: 0 0 20px 8px;
    padding: 6px 9px;
    border: 1px solid var(--pdp-wood-200);
    border-radius: 6px;
    color: var(--pdp-wood-700);
    background: var(--pdp-wood-50);
    font-size: 12px;
    font-weight: 800;
}

.pdp-specs {
    margin: 0 0 20px;
    border-top: 1px solid var(--pdp-wood-200);
}

.pdp-spec-row {
    display: grid;
    grid-template-columns: 116px minmax(0, 1fr);
    gap: 16px;
    padding: 13px 0;
    border-bottom: 1px solid var(--pdp-wood-200);
    font-size: 14px;
    line-height: 1.5;
}

.pdp-spec-row dt {
    font-weight: 800;
}

.pdp-spec-row dd {
    margin: 0;
    color: var(--pdp-wood-700);
}

.pdp-moq {
    margin: 0 0 22px;
    color: var(--pdp-wood-700);
    font-size: 14px;
    line-height: 1.65;
}

.pdp-actions {
    display: grid;
    gap: 12px;
}

.pdp-button {
    display: inline-flex;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 18px;
    border: 1px solid var(--pdp-wood-800);
    border-radius: 6px;
    font: inherit;
    font-weight: 800;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

.pdp-button-primary {
    color: #fff;
    background: var(--pdp-wood-800);
}

.pdp-button-primary:hover,
.pdp-button-primary:focus-visible {
    background: var(--pdp-wood-700);
}

.pdp-button-whatsapp {
    color: var(--pdp-whatsapp);
    border-color: var(--pdp-whatsapp);
    background: #fff;
}

.pdp-button-whatsapp:hover,
.pdp-button-whatsapp:focus-visible {
    color: #fff;
    background: var(--pdp-whatsapp);
}

.pdp-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    color: var(--pdp-wood-700);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.pdp-back-link:hover,
.pdp-back-link:focus-visible {
    color: var(--pdp-wood-900);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.pdp-detail-band {
    margin-top: 52px;
    padding: 32px;
    border-top: 1px solid var(--pdp-wood-200);
    border-bottom: 1px solid var(--pdp-wood-200);
    background: #fff;
}

.pdp-detail-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.pdp-detail-section {
    padding: 0 28px;
    border-right: 1px solid var(--pdp-wood-200);
}

.pdp-detail-section:first-child {
    padding-left: 0;
}

.pdp-detail-section:last-child {
    padding-right: 0;
    border-right: 0;
}

.pdp-detail-section h2 {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 16px;
    color: var(--pdp-wood-950);
    font-size: 18px;
    line-height: 1.3;
}

.pdp-detail-icon {
    display: inline-grid;
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: var(--pdp-wood-800);
    font-size: 13px;
}

.pdp-detail-section p,
.pdp-detail-section li {
    color: var(--pdp-wood-700);
    font-size: 14px;
    line-height: 1.68;
}

.pdp-detail-section p {
    margin: 0;
}

.pdp-overview-content {
    display: grid;
    gap: 16px;
}

.pdp-overview-intro {
    color: var(--pdp-wood-700);
}

.pdp-overview-details {
    display: grid;
    gap: 12px;
    margin: 0;
}

.pdp-overview-details > div {
    padding-top: 10px;
    border-top: 1px solid var(--pdp-wood-200);
}

.pdp-overview-details dt {
    margin: 0 0 3px;
    color: var(--pdp-wood-950);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
}

.pdp-overview-details dd {
    margin: 0;
    color: var(--pdp-wood-700);
    font-size: 14px;
    line-height: 1.62;
    overflow-wrap: anywhere;
}

.pdp-detail-section ul {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.pdp-detail-section li {
    position: relative;
    padding-left: 18px;
}

.pdp-detail-section li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: var(--pdp-wood-700);
    font-weight: 900;
}

.pdp-detail-note {
    display: block;
    margin-top: 12px;
    color: var(--pdp-wood-500);
    font-size: 13px;
    line-height: 1.6;
}

.pdp-related {
    margin-top: 44px;
}

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

.pdp-related-card {
    overflow: hidden;
    border: 1px solid var(--pdp-wood-200);
    border-radius: 8px;
    background: #fff;
}

.related-product-image {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #fff;
}

.related-product-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.pdp-related-content {
    padding: 14px;
}

.pdp-modal[hidden] {
    display: none;
}

.pdp-modal {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: grid;
    place-items: center;
    padding: 18px;
    background: rgba(20, 12, 9, 0.76);
}

.pdp-modal-panel {
    position: relative;
    width: min(100%, 680px);
    max-height: min(88vh, 820px);
    overflow: auto;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 24px 80px rgba(20, 12, 9, 0.32);
}

.pdp-modal-header {
    padding: 20px 58px 20px 22px;
    color: #fff;
    background: var(--pdp-wood-900);
}

.pdp-modal-header h2 {
    margin: 0;
    font-size: 18px;
}

.pdp-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 0;
    border-radius: 50%;
    color: var(--pdp-wood-900);
    background: #fff;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.pdp-modal-body {
    padding: 22px;
}

.pdp-form {
    display: grid;
    gap: 16px;
}

.pdp-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.pdp-form-field {
    display: grid;
    gap: 6px;
}

.pdp-form label {
    color: var(--pdp-wood-800);
    font-size: 12px;
    font-weight: 800;
}

.pdp-form input,
.pdp-form select,
.pdp-form textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 11px;
    border: 1px solid var(--pdp-wood-300);
    border-radius: 6px;
    color: var(--pdp-wood-900);
    background: var(--pdp-wood-50);
    font: inherit;
    font-size: 14px;
}

.pdp-form input:focus,
.pdp-form select:focus,
.pdp-form textarea:focus {
    outline: 2px solid var(--pdp-wood-600);
    outline-offset: 1px;
}

.pdp-form-help {
    margin: 0;
    color: var(--pdp-wood-600);
    font-size: 12px;
    line-height: 1.5;
}

.pdp-botcheck {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

.pdp-zoom-panel {
    position: relative;
    display: grid;
    width: min(94vw, 1200px);
    height: min(88vh, 820px);
    place-items: center;
}

.pdp-zoom-panel img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
    background: #fff;
}

.pdp-no-scroll {
    overflow: hidden;
}

@media (max-width: 1279px) {
    .pdp-detail-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pdp-detail-section {
        padding: 26px 28px;
        border-bottom: 1px solid var(--pdp-wood-200);
    }

    .pdp-detail-section:first-child,
    .pdp-detail-section:nth-child(3) {
        padding-left: 0;
    }

    .pdp-detail-section:nth-child(2),
    .pdp-detail-section:last-child {
        padding-right: 0;
        border-right: 0;
    }

    .pdp-detail-section:first-child,
    .pdp-detail-section:nth-child(2) {
        padding-top: 0;
    }

    .pdp-detail-section:nth-child(3),
    .pdp-detail-section:last-child {
        padding-bottom: 0;
        border-bottom: 0;
    }
}

@media (max-width: 1023px) {
    .pdp-hero {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .pdp-main-image-wrap {
        height: auto;
        aspect-ratio: 1145 / 635;
    }

    .pdp-product-info {
        padding-top: 0;
    }

    .pdp-related-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .pdp-shell {
        width: min(100% - 24px, 1280px);
    }

    .pdp-main {
        padding-block: 22px 44px;
    }

    .pdp-main-image-wrap {
        aspect-ratio: 4 / 3;
    }

    .pdp-title {
        font-size: 30px;
    }

    .pdp-spec-row {
        grid-template-columns: 92px minmax(0, 1fr);
        gap: 10px;
    }

    .pdp-detail-band {
        margin-top: 38px;
        padding: 22px 18px;
    }

    .pdp-detail-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .pdp-detail-section,
    .pdp-detail-section:first-child,
    .pdp-detail-section:nth-child(2),
    .pdp-detail-section:nth-child(3),
    .pdp-detail-section:last-child {
        padding: 22px 0;
        border-right: 0;
        border-bottom: 1px solid var(--pdp-wood-200);
    }

    .pdp-detail-section:first-child {
        padding-top: 0;
    }

    .pdp-detail-section:last-child {
        padding-bottom: 0;
        border-bottom: 0;
    }

    .pdp-related-grid,
    .pdp-form-grid {
        grid-template-columns: 1fr;
    }

    .pdp-modal {
        padding: 10px;
    }

    .pdp-modal-body {
        padding: 18px;
    }
}

@media (max-width: 639px) {
    .pdp-breadcrumb li:nth-last-child(-n + 2) {
        display: none;
    }

    .pdp-title {
        font-size: 30px;
        line-height: 1.15;
    }

    body.pdp-page .keren-floating-contact {
        right: max(14px, env(safe-area-inset-right));
        bottom: max(22px, env(safe-area-inset-bottom));
    }

    body.pdp-page .keren-floating-contact__trigger {
        width: 44px;
        height: 44px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
