.home-testimonials { padding-block: 55px 65px; }
.home-testimonials .home-section-heading h2 > span { box-shadow: inset 0 -12px var(--yellow); }
.testimonial-home-stats { display: flex; flex-wrap: wrap; gap: 15px 26px; margin-bottom: 26px; font-size: 11px; }
.testimonial-home-stats > span { display: inline-flex; align-items: center; gap: 7px; }
.testimonial-home-stats .icon { fill: var(--yellow); }
.testimonial-home-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 23px; }
.home-testimonials > .button { margin-top: 28px; }
.testimonial-card { padding: 23px; min-width: 0; display: flex; flex-direction: column; }
.testimonial-stars { display: flex; align-items: center; gap: 4px; color: black; }
.testimonial-stars .filled { fill: var(--yellow); }
.testimonial-card blockquote { margin: 18px 0 23px; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 12px; line-height: 1.85; }
.testimonial-author { display: flex; gap: 11px; align-items: center; margin-top: auto; }
.testimonial-avatar { width: 38px; height: 38px; flex-shrink: 0; display: grid; place-items: center; font-size: 15px; font-weight: 700; border: 2px solid black; border-radius: 5px; background: var(--main); }
.testimonial-author > div { min-width: 0; }
.testimonial-author strong { display: block; font-size: 11px; overflow-wrap: anywhere; }
.testimonial-author > div > span { font-size: 9px; color: #526079; display: block; margin-top: 4px; }
.testimonial-template { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 10px; padding-top: 15px; margin-top: 17px; border-top: 1px solid #d4dce8; }
.testimonial-template:hover { text-decoration: underline; }
.testimonial-empty { padding: 32px 24px; text-align: center; font-size: 12px; }
.testimonial-empty > .icon { fill: #ffb8d2; margin-bottom: 15px; }
.testimonial-empty h3 { font-size: 20px; margin-bottom: 12px; }
.testimonial-empty p { max-width: 430px; margin: auto; line-height: 1.8; color: #526079; }
.catalog-detail-nav { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.catalog-detail-nav a { font-size: 11px; background: var(--yellow); border: 2px solid black; border-radius: 5px; padding: 9px 14px; min-height: 40px; display: inline-flex; align-items: center; justify-content: center; box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s; }
.catalog-detail-nav a:hover { background: var(--yellow); }
.catalog-detail-nav a:hover { transform: translate(var(--box-shadow-x), var(--box-shadow-y)); box-shadow: none; }
@media (prefers-reduced-motion: reduce) { .catalog-detail-nav a { transition: none; } }
.catalog-detail-page .catalog-detail-lower { grid-template-columns: minmax(0, 1fr); gap: 25px; margin-top: 25px; }
.catalog-detail-page .catalog-description { max-width: 840px; }
.catalog-detail-page .catalog-specifications dl { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.catalog-detail-page .catalog-order-guide ol { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 25px; }
.catalog-detail-page section[id], .catalog-detail-page div[id], .catalog-detail-page details[id] { scroll-margin-top: 24px; }
.catalog-testimonials { margin-top: 40px; }
.catalog-testimonials .catalog-section-heading { align-items: center; }
.catalog-testimonials .catalog-section-heading h2 { font-size: 27px; display: block; margin-top: 9px; }
.testimonial-detail-grid { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 25px; align-items: start; }
.testimonial-summary { padding: 24px; position: sticky; top: 24px; background: #fff7db; }
.testimonial-summary > p { font-size: 11px; }
.testimonial-average { display: flex; align-items: baseline; gap: 8px; font-size: 47px; line-height: 1; margin: 21px 0 15px; letter-spacing: -1.5px; }
.testimonial-average small { font-size: 15px; font-weight: 500; letter-spacing: 0; }
.testimonial-distribution { display: grid; gap: 12px; margin: 25px 0; }
.testimonial-distribution > div { display: grid; grid-template-columns: 30px minmax(0, 1fr) 20px; gap: 8px; align-items: center; }
.testimonial-distribution > div > span { display: flex; align-items: center; gap: 5px; font-size: 10px; }
.testimonial-distribution > div > small { text-align: right; font-size: 10px; }
.testimonial-bar { height: 10px; border: 1px solid black; border-radius: 3px; background: white; overflow: hidden; }
.testimonial-bar > span { display: block; height: 100%; background: var(--main); }
.testimonial-summary > small { font-size: 9px; line-height: 1.8; color: #526079; display: block; }
.testimonial-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.testimonial-list > .testimonial-empty { grid-column: 1 / -1; }
.testimonial-list > .testimonial-card:only-child { grid-column: 1 / -1; }
.testimonial-form-panel { margin-top: 27px; background: white; }
.testimonial-form-panel > summary { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; font-size: 16px; font-weight: 700; cursor: pointer; }
.testimonial-form-panel > summary::-webkit-details-marker { display: none; }
.testimonial-form-panel[open] > summary { background: var(--main); border-bottom: 2px solid black; }
.testimonial-form-panel[open] > summary .icon { transform: rotate(180deg); }
.testimonial-form-content { padding: 24px; }
.testimonial-form-content > form { display: grid; gap: 20px; margin-top: 22px; }
.testimonial-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.testimonial-form-panel .form-actions { margin-top: 0; }
.testimonial-form-panel .form-actions > small { font-size: 10px; color: #526079; }
.testimonial-admin-note { margin-top: 20px; }
.testimonial-list-toggle { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin-top: 10px; padding: 8px 0; border: 0; background: transparent; color: black; font: inherit; font-size: 11px; font-weight: 700; cursor: pointer; }
.testimonial-list-toggle:hover { text-decoration: underline; }
.testimonial-list-toggle:disabled { cursor: wait; }
.testimonial-list-status { font-size: 10px; }
.testimonial-list-status:empty { display: none; }
.testimonial-admin-list { display: grid; gap: 22px; margin-top: 24px; }
.testimonial-admin-comment { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13px; line-height: 1.85; }
@media (max-width: 1000px) { .testimonial-home-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .testimonial-detail-grid { grid-template-columns: 220px minmax(0, 1fr); } .testimonial-list { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) { .catalog-detail-page .catalog-specifications dl { grid-template-columns: repeat(2, minmax(0, 1fr)); } .catalog-detail-page .catalog-order-guide ol { grid-template-columns: minmax(0, 1fr); } .testimonial-detail-grid { grid-template-columns: minmax(0, 1fr); } .testimonial-summary { position: static; } .catalog-testimonials .catalog-section-heading { flex-wrap: wrap; align-items: flex-start; } }
@media (max-width: 560px) { .testimonial-home-grid, .catalog-detail-page .catalog-specifications dl, .testimonial-form-grid { grid-template-columns: minmax(0, 1fr); } .testimonial-card, .testimonial-form-content, .testimonial-summary { padding: 21px; } .testimonial-form-panel > summary { padding: 18px 21px; font-size: 14px; } .catalog-testimonials .catalog-section-heading h2 { font-size: 24px; } .home-testimonials { padding-block: 35px 45px; } }
@media (max-width: 560px) {
    .catalog-detail-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
    .catalog-detail-nav a { min-height: 44px; padding: 9px 6px; text-align: center; font-size: 10px; }
}
@media (max-width: 600px) {
    .home-testimonials .testimonial-home-stats { display: none; }
    .testimonial-home-grid { grid-template-columns: minmax(0, 1fr); }
    .home-testimonials .testimonial-home-grid > .testimonial-card:nth-child(n + 4) { display: none; }
}
@media (min-width: 601px) and (max-width: 1024px) {
    .home-testimonials .testimonial-home-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .home-testimonials .testimonial-home-grid > .testimonial-card:nth-child(n + 5) { display: none; }
}
@media (max-width: 560px) {
    .catalog-detail-page .reviews-collapsed > .testimonial-card:nth-child(n + 3) { display: none; }
    .catalog-detail-page .testimonial-list-enhanced .testimonial-review-pagination { display: none; }
    .catalog-detail-page .testimonial-summary { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 7px 14px; align-items: center; padding: 18px; }
    .catalog-detail-page .testimonial-summary > p:first-child { grid-column: 1; grid-row: 1; font-size: 10px; }
    .catalog-detail-page .testimonial-average { grid-column: 1; grid-row: 2; font-size: 38px; gap: 5px; margin: 0; }
    .catalog-detail-page .testimonial-average small { font-size: 12px; }
    .catalog-detail-page .testimonial-summary > p:nth-of-type(2) { grid-column: 1; grid-row: 3; font-size: 9px; line-height: 1.6; }
    .catalog-detail-page .testimonial-distribution { grid-column: 2; grid-row: 1 / 4; gap: 9px; margin: 0; min-width: 0; }
    .catalog-detail-page .testimonial-distribution > div { grid-template-columns: 23px minmax(0, 1fr) 12px; gap: 5px; }
    .catalog-detail-page .testimonial-distribution > div > span, .catalog-detail-page .testimonial-distribution > div > small { font-size: 9px; }
    .catalog-detail-page .testimonial-distribution .icon { width: 10px; height: 10px; }
    .catalog-detail-page .testimonial-bar { height: 8px; }
    .catalog-detail-page .testimonial-summary > small { grid-column: 1 / -1; grid-row: 4; margin-top: 7px; font-size: 8px; }
}
