.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);
    touch-action: pan-y;
    user-select: none;
}

.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 {
    display: flex;
    flex-direction: column;
    padding: 8px 0;
}

.product-detail-panel > .product-detail-tag {
    align-self: flex-start;
}

.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-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.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 {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 18px;
    font-size: 28px;
    font-weight: 700;
}

.product-detail-price-before {
    color: #8b8b8b;
    font-size: 18px;
    text-decoration: line-through;
}

.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-review-compact {
    display: grid;
    gap: 12px;
    margin-top: 4px;
    padding: 16px 0 18px;
    border-top: 1px solid var(--line);
}

.product-review-compact-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.product-review-compact-head h2 {
    margin: 0;
    font-size: 15px;
}

.product-review-compact-score {
    min-width: 76px;
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 1px solid color-mix(in srgb, var(--brand-color, #111) 18%, var(--line));
    border-radius: 999px;
    background: color-mix(in srgb, var(--brand-color, #111) 7%, #ffffff);
    color: var(--ink);
    font-size: 13px;
    font-weight: 900;
}

.product-review-compact-score span,
.product-review-compact-list span {
    color: #f6a800;
}

.product-review-compact-score strong {
    font-size: 16px;
    line-height: 1;
}

.product-review-compact-alert {
    border: 1px solid #d6f5df;
    border-radius: 10px;
    padding: 10px 12px;
    background: #f0fff4;
    color: #166534;
    font-size: 12px;
    font-weight: 800;
}

.product-review-compact-list {
    display: grid;
    gap: 8px;
}

.product-review-compact-list article {
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
}

.product-review-compact-list article > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.product-review-compact-list strong {
    min-width: 0;
    color: var(--ink);
    font-size: 13px;
}

.product-review-compact-list p {
    margin: 7px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
}

.product-review-write {
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
}

.product-review-write summary {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 14px;
    color: var(--ink);
    cursor: pointer;
    font-size: 13px;
    font-weight: 900;
    list-style: none;
}

.product-review-write summary::-webkit-details-marker {
    display: none;
}

.product-review-write summary::after {
    content: "+";
    width: 22px;
    height: 22px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    background: color-mix(in srgb, var(--brand-color, #111) 9%, #ffffff);
    color: var(--brand-color, #111);
}

.product-review-write[open] summary::after {
    content: "-";
}

.product-review-compact-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 130px;
    gap: 10px;
    padding: 0 14px 14px;
}

.product-review-compact-form label,
.product-review-compact-comment {
    display: grid;
    gap: 6px;
}

.product-review-compact-form label span {
    font-size: 12px;
    font-weight: 800;
}

.product-review-compact-form input,
.product-review-compact-form select,
.product-review-compact-form textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    color: var(--ink);
    font: inherit;
    font-size: 13px;
}

.product-review-compact-form input,
.product-review-compact-form select {
    height: 42px;
    padding: 0 11px;
}

.product-review-compact-form textarea {
    min-height: 82px;
    padding: 11px;
    resize: vertical;
}

.product-review-compact-form input:focus,
.product-review-compact-form select:focus,
.product-review-compact-form textarea:focus {
    border-color: var(--brand-color, #111);
    outline: none;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-color, #111) 10%, transparent);
}

.product-review-compact-comment,
.product-review-compact-form button {
    grid-column: 1 / -1;
}

.product-review-compact-form button {
    min-height: 44px;
    border: 0;
    border-radius: 999px;
    background: var(--brand-color, #111);
    color: var(--brand-contrast, #fff);
    cursor: pointer;
    font: inherit;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.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-stepper {
    width: max-content;
    min-width: 142px;
    height: 48px;
    display: inline-grid;
    grid-template-columns: 44px minmax(48px, 1fr) 44px;
    align-items: center;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
}

.product-quantity-button {
    width: 44px;
    height: 48px;
    display: grid;
    place-items: center;
    border: 0;
    background: transparent;
    color: var(--ink);
    cursor: pointer;
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
    transition: background 0.18s ease, color 0.18s ease;
}

.product-quantity-button:hover,
.product-quantity-button:focus-visible {
    background: color-mix(in srgb, var(--brand-color, #111) 9%, #ffffff);
    color: var(--brand-color, #111);
    outline: none;
}

.product-quantity-input {
    width: 54px;
    height: 48px;
    border: 0;
    border-inline: 1px solid var(--line);
    border-radius: 0;
    padding: 0 8px;
    color: var(--ink);
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    appearance: textfield;
    outline: none;
}

.product-quantity-input::-webkit-outer-spin-button,
.product-quantity-input::-webkit-inner-spin-button {
    margin: 0;
    appearance: none;
}

.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-panel .product-detail-description {
    margin-top: 6px;
    padding: 14px 0;
}

.product-detail-panel .product-detail-description h2 {
    margin-bottom: 8px;
    font-size: 14px;
}

.product-detail-panel .product-detail-description p {
    margin-bottom: 0;
    font-size: 14px;
    line-height: 1.55;
    white-space: normal;
}

.product-detail-panel .product-detail-description > p {
    display: inline;
}

.product-detail-more {
    display: inline;
    margin-left: 5px;
}

.product-detail-more summary {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--brand-color, #111);
    cursor: pointer;
    font-size: 12px;
    font-weight: 900;
    line-height: 1.45;
    list-style: none;
}

.product-detail-more summary::-webkit-details-marker {
    display: none;
}

.product-detail-more summary::after {
    content: "↓";
    font-size: 11px;
    line-height: 1;
}

.product-detail-more[open] summary::after {
    content: "↑";
}

.product-detail-more[open] {
    display: block;
    margin-top: 6px;
    margin-left: 0;
}

.product-detail-more p {
    display: block;
    margin-top: 6px;
}

.product-detail-panel .product-detail-description > p {
    display: block;
}

.product-detail-more-text:not([hidden]) {
    display: inline;
}

.product-detail-more-text:not([hidden])::before {
    content: " ";
}

.product-detail-more-toggle {
    width: max-content;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 6px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--brand-color, #111);
    cursor: pointer;
    font-size: 12px;
    font-weight: 900;
    line-height: 1.45;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.product-detail-more-toggle::after {
    content: "+";
    font-size: 11px;
    line-height: 1;
}

.product-detail-more-toggle.is-expanded::after {
    content: "-";
}

.product-detail-more-toggle:hover,
.product-detail-more-toggle:focus-visible {
    color: var(--ink);
    outline: none;
}

.product-detail-panel .product-detail-features .product-rich-content {
    max-height: 112px;
    overflow: hidden;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
}

.product-detail-panel .product-detail-features .product-rich-content ul,
.product-detail-panel .product-detail-features .product-rich-content ol {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.product-detail-panel .product-detail-features .product-rich-content li {
    min-width: 0;
    padding: 9px 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--ink);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
}

.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-review-compact-form,
    .product-detail-panel .product-detail-features .product-rich-content ul,
    .product-detail-panel .product-detail-features .product-rich-content ol {
        grid-template-columns: 1fr;
    }

    .product-review-compact-head {
        align-items: flex-start;
    }

    .product-review-compact-score {
        min-width: 64px;
        min-height: 40px;
    }

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