.mp-product-gallery,
.mp-product-summary,
.mp-product-tabs,
.three-related-carousel{
    border: 1px solid var(--mp-border);
    border-radius: var(--mp-radius);
    background: var(--mp-card);
    box-shadow: var(--mp-shadow-sm);
}
.three-product-spec-group{ overflow: hidden; border: 1px solid var(--mp-border); border-radius: var(--mp-radius); }
.three-product-spec-group h3{ margin: 0; padding: 13px 16px; border-bottom: 1px solid var(--mp-border); background: var(--mp-soft); color: var(--mp-text); font-size: 13px; }
.three-product-spec-group dl{ margin: 0; }
.three-product-spec-group dl > div{ min-height: 44px; display: grid; grid-template-columns: minmax(150px, .7fr) minmax(0, 1.3fr); align-items: center; gap: 14px; padding: 8px 16px; border-bottom: 1px solid var(--mp-border); }
.three-product-spec-group dl > div:last-child{ border-bottom: 0; }
.three-product-spec-group dl > div:nth-child(even){ background: color-mix(in srgb, var(--mp-soft) 55%, var(--mp-card)); }
.three-product-spec-group dt{ color: var(--mp-muted); font-size: 11px; }
.three-product-spec-group dd{ margin: 0; color: var(--mp-text); font-size: 11.5px; font-weight: 700; }
.three-review-list{ display: grid; gap: 10px; }
.three-review-card{ padding: 16px; border: 1px solid var(--mp-border); border-radius: var(--mp-radius); background: var(--mp-card); }
.three-review-card > div:first-child{ display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.three-review-card > div:first-child strong{ color: var(--mp-text); font-size: 12px; }
.three-review-card > div:first-child span,
.three-review-star-display{ color: #eaaa08; letter-spacing: .05em; }
.three-review-card h4{ margin: 10px 0 0; color: var(--mp-text); font-size: 13px; }
.three-review-card p{ margin: 7px 0 0; color: var(--mp-muted); font-size: 12px; line-height: 1.65; }
.three-review-form-card{ margin-top: 20px; padding: 20px; border: 1px solid var(--mp-border); border-radius: var(--mp-radius); background: var(--mp-soft); }
.three-review-form-card h3{ margin: 0; color: var(--mp-text); font-size: 18px; }
.three-review-form-card > p{ margin: 6px 0 0; color: var(--mp-muted); font-size: 11px; }
.three-review-form{ display: grid; gap: 13px; margin-top: 16px; }
.three-review-grid{ display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.three-review-form label{ display: grid; gap: 6px; color: var(--mp-text); font-size: 11px; font-weight: 750; }
.three-review-form :is(input, select, textarea){ width: 100%; border: 1px solid var(--mp-border); border-radius: var(--mp-button-radius); background: var(--mp-card); color: var(--mp-text); font-size: 12px; }
.three-review-form :is(input, select){ min-height: 42px; padding: 0 10px; }
.three-review-form textarea{ min-height: 120px; padding: 10px; resize: vertical; }
.three-review-form small{ color: var(--mp-muted); font-size: 9.5px; font-weight: 500; }
.three-review-submit,
.three-review-login-btn,
.three-review-popup-trigger{ min-height: 42px; display: inline-flex; align-items: center; justify-content: center; justify-self: start; padding: 0 16px; border: 1px solid var(--mp-primary); border-radius: var(--mp-button-radius); background: var(--mp-primary); color: var(--mp-header-button-text); font-size: 11.5px; font-weight: 800; text-decoration: none; cursor: pointer; }
.three-review-blocked{ padding: 12px; border: 1px solid var(--mp-border); border-radius: var(--mp-button-radius); background: var(--mp-card); color: var(--mp-muted); font-size: 11px; }
.three-review-popup-ready > .three-review-form-card{ display: none; }
.three-review-popup-trigger-wrap{ display: flex; justify-content: flex-end; margin-top: 18px; }
.three-review-popup-overlay{ position: fixed; z-index: 2300; inset: 0; display: none; align-items: center; justify-content: center; padding: 18px; }
.three-review-popup-overlay.is-open{ display: flex; }
.three-review-popup-backdrop{ position: absolute; inset: 0; background: rgba(16, 24, 40, .68); }
.three-review-popup-dialog{ position: relative; z-index: 1; width: min(680px, 100%); max-height: min(88vh, 820px); overflow: auto; border: 1px solid var(--mp-border); border-radius: var(--mp-radius); background: var(--mp-card); box-shadow: var(--mp-shadow-md); }
.three-review-popup-content .three-review-form-card{ display: block; margin: 0; border: 0; background: var(--mp-card); }
.three-review-popup-close{ position: sticky; z-index: 2; top: 10px; float: right; width: 38px; height: 38px; margin: 10px 10px -48px 0; display: grid; place-items: center; border: 1px solid var(--mp-border); border-radius: 50%; background: var(--mp-card); color: var(--mp-text); font-size: 21px; cursor: pointer; }
.three-review-star-picker{ display: flex; gap: 4px; }
.three-review-star-picker button{ padding: 0; border: 0; background: transparent; color: var(--mp-border); font-size: 26px; cursor: pointer; }
.three-review-star-picker button.is-active,
.three-review-star-picker button:hover{ color: #eaaa08; }
.three-review-rating-native-hidden{ position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; }
.three-review-rating-value{ color: var(--mp-muted); font-size: 10px; }
.three-review-rating-summary{ display: grid; grid-template-columns: minmax(130px, .35fr) minmax(220px, 1fr); align-items: center; gap: 24px; margin-bottom: 18px; padding: 18px; border: 1px solid var(--mp-border); border-radius: var(--mp-radius); background: var(--mp-soft); }
.three-review-rating-score{ display: grid; place-items: center; gap: 4px; padding-right: 20px; border-right: 1px solid var(--mp-border); text-align: center; }
.three-review-rating-score strong{ color: var(--mp-text); font-size: 38px; line-height: 1; }
.three-review-rating-score span{ color: #eaaa08; }
.three-review-rating-score small{ color: var(--mp-muted); font-size: 10px; }
.three-review-rating-bars{ display: grid; gap: 6px; }
.three-review-rating-bar-row{ display: grid; grid-template-columns: 44px minmax(0, 1fr) 28px; align-items: center; gap: 8px; color: var(--mp-muted); font-size: 10px; }
.three-review-rating-bar-row > div{ height: 6px; overflow: hidden; border-radius: 6px; background: var(--mp-border); }
.three-review-rating-bar-row i{ height: 100%; display: block; border-radius: inherit; background: #eaaa08; }
.three-review-rating-bar-row em{ font-style: normal; text-align: right; }
.three-review-image-upload{ padding: 12px; border: 1px dashed var(--mp-border); border-radius: var(--mp-button-radius); background: var(--mp-card); }
.three-review-image-upload-title{ color: var(--mp-text); font-size: 11px; font-weight: 800; }
.three-review-image-upload input[type="file"]{ padding: 8px !important; }
.three-review-file-ui{ display: flex; align-items: center; gap: 9px; }
.three-review-file-button{ padding: 8px 10px; border-radius: 4px; background: var(--mp-primary); color: var(--mp-header-button-text); font-size: 10px; }
.three-review-file-name{ overflow: hidden; color: var(--mp-muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.three-review-photo-carousel{ display: flex; gap: 8px; overflow-x: auto; margin-top: 12px; padding-bottom: 4px; }
.three-review-photo-thumb{ width: 74px; height: 74px; flex: 0 0 74px; overflow: hidden; padding: 0; border: 1px solid var(--mp-border); border-radius: var(--mp-button-radius); background: var(--mp-card); cursor: pointer; }
.three-review-photo-thumb img{ width: 100%; height: 100%; object-fit: cover; }
.three-review-photo-lightbox{ position: fixed; z-index: 2600; inset: 0; display: none; align-items: center; justify-content: center; padding: 30px; background: rgba(5, 10, 18, .92); }
.three-review-photo-lightbox.is-open{ display: flex; }
.three-review-photo-lightbox img{ max-width: min(1100px, 90vw); max-height: 88vh; object-fit: contain; }
.three-review-photo-lightbox-close,
.three-review-photo-lightbox-prev,
.three-review-photo-lightbox-next{ position: absolute; width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .32); border-radius: 50%; background: rgba(16, 24, 40, .7); color: #fff; font-size: 25px; cursor: pointer; }
.three-review-photo-lightbox-close{ top: 18px; right: 18px; }
.three-review-photo-lightbox-prev{ left: 18px; }
.three-review-photo-lightbox-next{ right: 18px; }
.three-related-products{ margin-top: 24px; }
.three-related-carousel{ overflow: hidden; padding: 20px; }
.three-related-head{ display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 16px; }
.three-related-head > div:first-child > span{ display: block; color: var(--mp-primary); font-size: 10px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.three-related-head h2{ margin: 4px 0 0; color: var(--mp-text); font-size: 24px; letter-spacing: -.03em; }
.three-related-controls{ display: flex; gap: 6px; }
.three-related-nav{ width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--mp-border); border-radius: var(--mp-button-radius); background: var(--mp-card); color: var(--mp-text); font-size: 22px; cursor: pointer; }
.three-related-nav:hover:not(:disabled){ border-color: var(--mp-primary); color: var(--mp-primary); }
.three-related-nav:disabled{ opacity: .35; cursor: not-allowed; }
.three-related-viewport{ width: 100%; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; }
.three-related-viewport::-webkit-scrollbar{ display: none; }
.three-related-track{ display: flex; align-items: stretch; gap: 12px; }
.three-related-card{ min-width: calc((100% - 36px) / 4); max-width: calc((100% - 36px) / 4); display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--mp-border); border-radius: var(--mp-radius); background: var(--mp-card); scroll-snap-align: start; transition: border-color .18s ease, transform .18s ease; }
.three-related-card:hover{ border-color: var(--mp-primary); transform: translateY(-2px); }
.three-related-image{ height: 190px; display: grid; place-items: center; overflow: hidden; padding: 12px; border-bottom: 1px solid var(--mp-border); background: var(--mp-card); }
.three-related-image img{ width: 100%; height: 100%; object-fit: contain; transition: transform .2s ease; }
.three-related-card:hover .three-related-image img{ transform: scale(1.035); }
.three-related-image img.three-product-fallback-image{ padding: 25%; opacity: .55; }
.three-related-info{ flex: 1; display: flex; flex-direction: column; gap: 8px; padding: 12px; }
.three-related-title{ display: -webkit-box; overflow: hidden; min-height: 36px; color: var(--mp-text); font-size: 12.5px; line-height: 1.4; font-weight: 700; text-decoration: none; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.three-related-meta{ display: flex; flex-wrap: wrap; gap: 4px 9px; color: var(--mp-muted); font-size: 9px; }
.three-related-bottom{ display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px; margin-top: auto; }
.three-related-bottom strong{ color: var(--mp-primary); font-size: 15px; }
.three-related-button{ min-height: 34px; padding: 0 10px; border: 1px solid var(--mp-add-border); border-radius: var(--mp-button-radius); background: var(--mp-add-bg); color: var(--mp-add-text); font-size: 9.5px; font-weight: 800; cursor: pointer; }
.three-image-lightbox{ position: fixed; z-index: 2500; inset: 0; display: none; align-items: center; justify-content: center; padding: 32px; background: rgba(5, 10, 18, .94); }
.three-image-lightbox.active{ display: flex; }
.three-image-lightbox img{ max-width: min(1200px, 92vw); max-height: 90vh; object-fit: contain; }
.three-image-lightbox-close{ position: absolute; top: 18px; right: 18px; width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .35); border-radius: 50%; background: rgba(16, 24, 40, .7); color: #fff; font-size: 27px; cursor: pointer; }
@media (max-width: 900px){.three-related-card{ min-width: calc((100% - 24px) / 3); max-width: calc((100% - 24px) / 3); }}
@media (max-width: 680px){.three-product-spec-group dl > div{ grid-template-columns: minmax(105px, .75fr) minmax(0, 1.25fr); padding-inline: 11px; }
.three-review-grid{ grid-template-columns: 1fr; }
.three-review-rating-summary{ grid-template-columns: 1fr; gap: 14px; }
.three-review-rating-score{ padding: 0 0 14px; border-right: 0; border-bottom: 1px solid var(--mp-border); }
.three-related-carousel{ padding: 13px; }
.three-related-head h2{ font-size: 20px; }
.three-related-card{ min-width: calc((100% - 12px) / 2); max-width: calc((100% - 12px) / 2); }
.three-related-image{ height: 150px; }
.three-related-bottom{ grid-template-columns: 1fr; }
.three-related-button{ width: 100%; }
.three-image-lightbox{ padding: 12px; }}
@media (max-width: 420px){.three-related-card{ min-width: 82%; max-width: 82%; }}
@media (prefers-reduced-motion: reduce){.mp-product-main-image img,
    .three-related-card,
    .three-related-image img{ transition: none; }}
.pera-store-theme .mp-product-gallery,
.pera-store-theme .mp-product-summary,
.pera-store-theme .mp-product-tabs,
.pera-store-theme .three-related-carousel{
    border: 1px solid var(--three-border-color, #e2e0dc);
    border-radius: var(--three-card-radius, 6px) !important;
    background: var(--three-surface-card, #fff);
    box-shadow: none;
}
.pera-store-theme .three-related-carousel{ margin-top: 14px; padding: 18px; }
.pera-store-theme .three-related-head{ display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 14px; }
.pera-store-theme .three-related-head > div > span{ color: var(--three-secondary-color, #f97316); font-size: 8px; font-weight: 850; letter-spacing: .11em; text-transform: uppercase; }
.pera-store-theme .three-related-head h2{ margin: 3px 0 0; font-size: 24px; letter-spacing: -.035em; }
.pera-store-theme .three-related-controls{ display: flex; gap: 5px; }
.pera-store-theme .three-related-nav{ width: 36px; height: 36px; border: 1px solid var(--three-border-color, #e2e0dc); border-radius: 4px !important; background: #fff; color: var(--three-text-color, #111827); cursor: pointer; }
.pera-store-theme .three-related-viewport{ overflow: hidden; }
.pera-store-theme .three-related-track{ display: flex; gap: 10px; }
.pera-store-theme .three-related-card{
    min-width: calc((100% - 40px) / 5);
    max-width: calc((100% - 40px) / 5);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--three-border-color, #e2e0dc);
    border-radius: var(--three-card-radius, 6px) !important;
    background: #fff;
    box-shadow: none;
}
.pera-store-theme .three-related-image{ height: 195px; display: grid; place-items: center; padding: 12px; border-bottom: 1px solid var(--three-border-color, #e2e0dc); background: #fff; }
.pera-store-theme .three-related-image img{ width: 100%; height: 100%; object-fit: contain; }
.pera-store-theme .three-related-info{ flex: 1; display: flex; flex-direction: column; gap: 7px; padding: 11px; }
.pera-store-theme .three-related-title{ min-height: 36px; color: var(--three-text-color, #111827); font-size: 11px; font-weight: 700; line-height: 1.45; }
.pera-store-theme .three-related-meta{ color: var(--three-muted-color, #6b7280); font-size: 8px; }
.pera-store-theme .three-related-bottom{ margin-top: auto; }
.pera-store-theme .three-related-bottom strong{ color: var(--three-text-color, #111827) !important; font-size: 15px; }
.pera-store-theme .three-related-button{ min-height: 34px; border-radius: var(--three-button-radius, 5px) !important; font-size: 8.5px; }
@media (max-width: 1180px){.pera-store-theme .three-related-card{ min-width: calc((100% - 30px) / 4); max-width: calc((100% - 30px) / 4); }}
@media (max-width: 900px){.pera-store-theme .three-related-card{ min-width: calc((100% - 20px) / 3); max-width: calc((100% - 20px) / 3); }}
@media (max-width: 640px){.pera-store-theme .three-related-carousel{ padding: 11px; }
.pera-store-theme .three-related-head h2{ font-size: 20px; }
.pera-store-theme .three-related-card{ min-width: calc((100% - 8px) / 2); max-width: calc((100% - 8px) / 2); }
.pera-store-theme .three-related-track{ gap: 8px; }
.pera-store-theme .three-related-image{ height: 145px; }
.pera-store-theme .three-related-bottom{ grid-template-columns: 1fr; }
.pera-store-theme .three-related-button{ width: 100%; }}
@media (max-width: 390px){.pera-store-theme .three-related-card{ min-width: 82%; max-width: 82%; }}
body.pera-store-theme .three-product-spec-group dl > div{
    border-color: var(--ps-border, #dce5ee);
}
body.pera-store-theme :is(.three-review-card, .three-review-form-card, .three-empty-reviews){
    border-color: var(--ps-border, #dce5ee);
    border-radius: var(--ps-radius, 8px);
    box-shadow: none;
}
body.pera-store-theme .three-related-carousel{
    margin-top: 18px;
    padding: 18px;
    border: 1px solid var(--ps-border, #dce5ee);
    border-radius: var(--ps-radius, 8px) !important;
    background: #fff;
    box-shadow: none;
}
body.pera-store-theme .three-related-head{
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 14px;
}
body.pera-store-theme .three-related-head h2{
    margin: 0;
    color: var(--ps-text, #142b46);
    font-size: 23px;
    letter-spacing: -.035em;
}
body.pera-store-theme .three-related-nav{
    width: 34px;
    height: 34px;
    border: 1px solid var(--ps-border, #dce5ee);
    border-radius: 5px !important;
    background: #fff;
    color: var(--ps-primary, #003b70);
}
body.pera-store-theme .three-related-track{ gap: 9px; }
body.pera-store-theme .three-related-card{
    min-width: calc((100% - 36px) / 5);
    max-width: calc((100% - 36px) / 5);
    border-color: var(--ps-border, #dce5ee);
    border-radius: var(--ps-radius, 8px) !important;
    box-shadow: none;
}
body.pera-store-theme .three-related-image{
    height: 185px;
    border-bottom-color: var(--ps-border, #dce5ee);
}
body.pera-store-theme .three-related-image img{ object-fit: contain !important; }
body.pera-store-theme .three-related-bottom strong{
    color: var(--ps-primary, #003b70) !important;
}
body.pera-store-theme .three-related-button{
    border-color: var(--ps-accent, #f9c900) !important;
    border-radius: var(--ps-button-radius, 7px) !important;
    background: var(--ps-accent, #f9c900) !important;
    color: var(--ps-text, #142b46) !important;
}
@media (max-width: 1180px){body.pera-store-theme .three-related-card{
        min-width: calc((100% - 27px) / 4);
        max-width: calc((100% - 27px) / 4);
    }}
@media (max-width: 880px){body.pera-store-theme .three-related-card{
        min-width: calc((100% - 18px) / 3);
        max-width: calc((100% - 18px) / 3);
    }}
@media (max-width: 640px){body.pera-store-theme .three-related-carousel{ padding: 11px; }
body.pera-store-theme .three-related-head h2{ font-size: 20px; }
body.pera-store-theme .three-related-card{
        min-width: calc((100% - 7px) / 2);
        max-width: calc((100% - 7px) / 2);
    }
body.pera-store-theme .three-related-track{ gap: 7px; }
body.pera-store-theme .three-related-image{ height: 145px; }}
@media (max-width: 380px){body.pera-store-theme .three-related-card{
        min-width: 82%;
        max-width: 82%;
    }}