.product-shell {
    padding-bottom: 56px;
}

.product-breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 28px 0 20px;
    color: var(--muted);
    font-size: 13px;
}

.product-detail {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.9fr);
    gap: 34px;
    align-items: start;
    padding-bottom: 40px;
}

.product-detail-media {
    min-height: 620px;
    border-radius: 26px;
    overflow: hidden;
    background: var(--soft);
    box-shadow: var(--shadow);
}

.product-detail-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-carousel {
    display: grid;
    gap: 14px;
}

.product-carousel-stage {
    position: relative;
    aspect-ratio: 1 / 1.08;
    min-height: 620px;
    overflow: hidden;
    border-radius: 26px;
    background: var(--soft);
}

.product-carousel-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0;
    transition: opacity .22s ease;
}

.product-carousel-image.is-active {
    opacity: 1;
}

.product-carousel-control {
    position: absolute;
    top: 50%;
    z-index: 2;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    color: var(--ink);
    transform: translateY(-50%);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.product-carousel-control:hover {
    background: #fff;
}

.product-carousel-control--prev {
    left: 14px;
}

.product-carousel-control--next {
    right: 14px;
}

.product-carousel-control span {
    width: 10px;
    height: 10px;
    border-top: 2px solid currentColor;
    border-left: 2px solid currentColor;
}

.product-carousel-control--prev span {
    transform: translateX(2px) rotate(-45deg);
}

.product-carousel-control--next span {
    transform: translateX(-2px) rotate(135deg);
}

.product-carousel-thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(64px, 86px));
    gap: 10px;
}

.product-carousel-thumb {
    aspect-ratio: 1;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 14px;
    background: transparent;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.72;
    transition: opacity .2s ease, border-color .2s ease;
}

.product-carousel-thumb.is-active {
    border-color: var(--brand-color, #111);
    opacity: 1;
}

.product-carousel-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-detail-fallback {
    min-height: 620px;
    display: grid;
    place-items: center;
    padding: 30px;
    text-align: center;
    color: var(--muted);
    font-size: 34px;
    font-family: Georgia, "Times New Roman", serif;
}

.product-detail-panel {
    padding: 8px 0;
}

.product-detail-tag {
    display: inline-flex;
    padding: 8px 12px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--brand-color, #111) 10%, white);
    color: var(--brand-color, #111);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.product-detail-head {
    margin: 18px 0 16px;
}

.product-detail-label {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--muted);
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.product-detail-head h1 {
    margin: 0;
    font-size: clamp(36px, 4vw, 56px);
    line-height: 0.95;
    letter-spacing: -0.05em;
    font-family: Georgia, "Times New Roman", serif;
}

.product-detail-price {
    margin-bottom: 18px;
    font-size: 28px;
    font-weight: 700;
}

.product-stock-state,
.product-unavailable-message {
    width: 100%;
    padding: 12px 0;
    color: #166534;
    font-size: 14px;
    font-weight: 800;
}

.product-stock-state.is-sold-out,
.product-unavailable-message {
    color: #991b1b;
}

.product-detail-description p {
    margin: 0 0 18px;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.8;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.product-detail-description {
    padding: 22px 0 12px;
    border-top: 1px solid var(--line);
}

.product-detail-description h2 {
    margin: 0 0 10px;
    font-size: 18px;
}

.product-rich-content {
    color: var(--muted);
    font-size: 15px;
    line-height: 1.8;
}

.product-rich-content p,
.product-rich-content ul,
.product-rich-content ol {
    margin: 0 0 14px;
}

.product-rich-content ul,
.product-rich-content ol {
    padding-left: 22px;
}

.product-rich-content strong,
.product-rich-content b {
    color: var(--ink);
}

.product-share {
    display: grid;
    gap: 14px;
    padding: 20px 0 22px;
    border-top: 1px solid var(--line);
}

.product-share h2 {
    margin: 0 0 6px;
    font-size: 17px;
}

.product-share-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.product-share-button {
    width: 48px;
    height: 48px;
    min-height: 48px;
    flex: 0 0 48px;
    border: 1px solid var(--line);
    border-radius: 50%;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: var(--ink);
    cursor: pointer;
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.1;
    text-align: center;
    text-decoration: none;
}

.product-share-button img {
    width: 24px;
    height: 24px;
    display: block;
    object-fit: contain;
}

.product-share-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.product-share-button:hover,
.product-share-button:focus-visible {
    border-color: var(--brand-color, #111);
    outline: none;
}

.product-share-button--facebook {
    background: #1877f2;
    border-color: #1877f2;
    color: #fff;
}

.product-share-button--whatsapp {
    background: #25d366;
    border-color: #25d366;
    color: #063f21;
}

.product-share-button--x {
    background: #fff;
    border-color: #111;
    color: #111;
}

.product-share-button--copy {
    background: color-mix(in srgb, var(--brand-color, #111) 8%, white);
    color: var(--ink);
}

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

.product-options--detail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.product-quantity-block {
    display: grid;
    gap: 8px;
    margin-bottom: 16px;
}

.product-quantity-block label {
    font-size: 13px;
    font-weight: 700;
}

.product-quantity-input {
    width: 120px;
    height: 50px;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 0 14px;
    font-size: 16px;
}

.product-detail-primary,
.product-detail-secondary {
    width: 100%;
    min-height: 52px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.product-detail-primary {
    background: var(--brand-color, #111);
    color: var(--brand-contrast, #fff);
}

.product-detail-secondary {
    background: #fff;
    color: var(--ink);
    border: 1px solid var(--line);
}

.product-detail-whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #25d366;
    border-color: #25d366;
    color: #063f21;
}

.product-detail-whatsapp img {
    width: 22px;
    height: 22px;
    display: block;
    object-fit: contain;
}

.product-related {
    padding-top: 14px;
}

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

    .product-detail-media,
    .product-detail-fallback,
    .product-carousel-stage {
        min-height: 420px;
    }
}

@media (max-width: 720px) {
    .product-breadcrumb {
        padding-top: 20px;
        flex-wrap: wrap;
    }

    .product-detail {
        gap: 22px;
    }

    .product-detail-media,
    .product-detail-fallback,
    .product-carousel-stage {
        min-height: 300px;
        border-radius: 20px;
    }

    .product-carousel-control {
        width: 40px;
        height: 40px;
    }

    .product-carousel-thumbs {
        grid-template-columns: repeat(auto-fit, minmax(54px, 72px));
        gap: 8px;
    }

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

    .product-quantity-input {
        width: 100%;
        max-width: 140px;
    }

    .product-options--detail {
        grid-template-columns: 1fr;
    }

    .product-share-actions {
        gap: 8px;
    }
}
