.star{
    color:#d7d7d7;
    font-size:22px;
    letter-spacing:2px;
}

.star.active{
    color:#f6b01e;
}
.product-page {
    width: 100%;
    padding: 60px clamp(20px, 5vw, 80px);
    background: var(--surface-muted);
}

.product-container,
.product-tabs {
    width: min(100%, 1280px);
    margin-inline: auto;
}

.product-container {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    gap: clamp(32px, 4vw, 55px);
    align-items: start;
    padding: clamp(26px, 3vw, 42px);
    border-radius: 25px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

/* Galeria */
.product-page .product-gallery {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 20px;
}

.product-page .main-image-box {
    position: relative;
    display: flex;
    width: 100%;
    height: clamp(380px, 42vw, 540px);
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 20px;
    background: #fafafa;
}

.product-page .main-image-box > img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    cursor: zoom-in;
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.product-page .main-image-box > img.fade-out {
    opacity: 0;
    transform: translateX(-30px);
}

.product-page .main-image-box > img.fade-in {
    opacity: 0;
    transform: translateX(30px);
}

.product-page .gallery-navigation {
    display: grid;
    grid-template-columns: 45px minmax(0, 1fr) 45px;
    gap: 12px;
    align-items: center;
}

.product-page .thumbnails {
    display: flex;
    min-width: 0;
    gap: 12px;
    padding: 5px 2px 8px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: thin;
    scroll-snap-type: inline proximity;
}

.product-page .thumbnail {
    width: 82px;
    height: 82px;
    flex: 0 0 82px;
    border: 3px solid transparent;
    border-radius: 12px;
    object-fit: cover;
    cursor: pointer;
    scroll-snap-align: start;
    transition: border-color 0.25s ease, transform 0.25s ease;
}

.product-page .thumbnail:hover {
    transform: translateY(-4px);
}

.product-page .thumbnail.active {
    border-color: var(--green-700);
}

.product-page .gallery-arrow {
    display: inline-flex;
    width: 45px;
    height: 45px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: var(--green-700);
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.25s ease;
}

.product-page .gallery-arrow:hover {
    background: var(--green-800);
    transform: scale(1.08);
}

/* Informacje */
.product-page .product-info {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.product-page .product-category {
    position: static;
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    max-width: 100%;
    margin-bottom: 15px;
    padding: 0;
    overflow-wrap: anywhere;
    background: none;
    box-shadow: none;
    color: var(--green-900);
    font-size: 15px;
    font-weight: 700;
}

.product-page .product-info h1 {
    margin-bottom: 15px;
    overflow-wrap: anywhere;
    color: #333;
    font-size: clamp(32px, 4vw, 46px);
    line-height: 1.12;
}

.product-page .rating {
    margin-bottom: 20px;
    color: #ffc107;
    font-size: 22px;
    line-height: 1.3;
}

.product-page .rating span {
    color: #777;
    font-size: 14px;
}

.product-page .product-price {
    margin-bottom: 25px;
    color: var(--green-800);
    font-size: clamp(32px, 4vw, 40px);
    font-weight: 700;
    line-height: 1.2;
}

.product-page .product-details {
    margin-bottom: 25px;
    padding: 20px;
    border-radius: 15px;
    background: var(--surface-muted);
}

.product-page .product-details p {
    margin: 10px 0;
    color: #444;
    line-height: 1.45;
}

.product-page .short-description {
    margin-bottom: 30px;
    overflow-wrap: anywhere;
    color: #555;
    line-height: 1.7;
}

/* Ilość + koszyk */
.product-page .buy-section {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: stretch;
    margin-top: auto;
}

/* Obsługuje też wersję koszyka, w której przycisk jest wewnątrz formularza. */
.product-page .buy-section form {
    display: flex;
    min-width: 0;
    flex: 1 1 220px;
    gap: 16px;
    align-items: stretch;
}

.product-page .quantity-box {
    display: inline-grid;
    flex: 0 0 auto;
    grid-template-columns: 45px 64px 45px;
    overflow: hidden;
    border: 2px solid var(--green-700);
    border-radius: 12px;
}

.product-page .quantity-box button {
    display: inline-flex;
    width: 45px;
    height: 45px;
    align-items: center;
    justify-content: center;
    border: 0;
    background: var(--green-700);
    color: #fff;
    font-size: 24px;
    cursor: pointer;
}

.product-page .quantity-box input {
    width: 64px;
    height: 45px;
    padding: 0 4px;
    border: 0;
    outline: none;
    text-align: center;
    font-size: 18px;
    -moz-appearance: textfield;
}

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

.product-page .add-cart {
    display: inline-flex;
    min-width: 190px;
    min-height: 49px;
    flex: 1 1 220px;
    align-items: center;
    justify-content: center;
    padding: 0 28px;
    border: 0;
    border-radius: 12px;
    background: var(--green-800);
    color: #fff;
    font: inherit;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.25s ease;
}

.product-page .add-cart:hover {
    background: var(--green-700);
    transform: translateY(-3px);
}

.product-page .add-cart:disabled {
    background: #9aa59a;
    cursor: not-allowed;
    transform: none;
}

/* Zakładki */
.product-tabs {
    margin-top: 50px;
    padding: 30px;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.product-page .tabs-buttons {
    display: flex;
    gap: 8px;
    margin-bottom: 25px;
    overflow-x: auto;
    border-bottom: 1px solid #ddd;
    overscroll-behavior-inline: contain;
    scrollbar-width: thin;
}

.product-page .tabs-buttons button {
    flex: 0 0 auto;
    padding: 15px 22px;
    border: 0;
    border-bottom: 3px solid transparent;
    background: none;
    color: #555;
    font: inherit;
    font-size: 17px;
    white-space: nowrap;
    cursor: pointer;
}

.product-page .tabs-buttons button:hover,
.product-page .tabs-buttons .tab-active {
    border-bottom-color: var(--green-700) !important;
    color: var(--green-800);
}

.product-page .tab-content {
    overflow-wrap: anywhere;
    color: #555;
    line-height: 1.7;
}

.product-page .tab-content h2 {
    margin-bottom: 14px;
    color: #333;
    line-height: 1.25;
}

/* Powiększenie zdjęcia */
.product-page .image-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 70px 90px;
    visibility: hidden;
    background: rgba(0, 0, 0, 0.85);
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.product-page .image-modal.active {
    visibility: visible;
    opacity: 1;
}

.product-page .image-modal img {
    display: block;
    max-width: min(100%, 1200px);
    max-height: calc(100vh - 120px);
    border-radius: 20px;
    object-fit: contain;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.product-page .image-modal.active img {
    transform: scale(1);
}

.product-page .close-image,
.product-page .modal-prev,
.product-page .modal-next {
    position: absolute;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: var(--green-800);
    cursor: pointer;
    transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.product-page .close-image {
    top: 24px;
    right: 28px;
    width: 45px;
    height: 45px;
    font-size: 24px;
    font-weight: 700;
}

.product-page .close-image:hover {
    background: var(--green-700);
    color: #fff;
    transform: rotate(90deg);
}

.product-page .modal-prev,
.product-page .modal-next {
    top: 50%;
    width: 55px;
    height: 55px;
    font-size: 30px;
    transform: translateY(-50%);
}

.product-page .modal-prev {
    left: 24px;
}

.product-page .modal-next {
    right: 24px;
}

.product-page .modal-prev:hover,
.product-page .modal-next:hover {
    background: var(--green-700);
    color: #fff;
    transform: translateY(-50%) scale(1.08);
}

/* Tablet */
@media (max-width: 950px) {
    .product-page {
        padding-top: 42px;
        padding-bottom: 50px;
    }

    .product-container {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .product-page .main-image-box {
        height: clamp(340px, 65vw, 520px);
    }

    .product-page .product-info h1 {
        font-size: clamp(31px, 6vw, 40px);
    }
}

/* Telefon */
@media (max-width: 620px) {
    .product-page {
        padding: 28px 14px 42px;
    }

    .product-container {
        gap: 26px;
        padding: 16px;
        border-radius: 18px;
    }

    .product-page .main-image-box {
        height: auto;
        min-height: 0;
        aspect-ratio: 1 / 1;
        border-radius: 15px;
    }

    .product-page .gallery-navigation {
        grid-template-columns: 40px minmax(0, 1fr) 40px;
        gap: 8px;
    }

    .product-page .gallery-arrow {
        width: 40px;
        height: 40px;
        font-size: 19px;
    }

    .product-page .thumbnails {
        gap: 8px;
        overflow-x: hidden;
    }

    .product-page .thumbnail {
        width: calc((100% - 24px) / 4);
        height: auto;
        aspect-ratio: 1 / 1;
        flex: 0 0 calc((100% - 24px) / 4);
        border-radius: 10px;
    }

    .product-page .product-info h1 {
        font-size: 31px;
    }

    .product-page .product-details {
        padding: 16px;
    }

    .product-page .buy-section,
    .product-page .buy-section form {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .product-page .quantity-box {
        width: 100%;
        grid-template-columns: 50px minmax(0, 1fr) 50px;
    }

    .product-page .quantity-box button {
        width: 50px;
    }

    .product-page .quantity-box input {
        width: 100%;
    }

    .product-page .add-cart {
        width: 100%;
        min-width: 0;
        flex-basis: auto;
        padding: 14px 18px;
    }

    .product-tabs {
        margin-top: 26px;
        padding: 20px 16px;
        border-radius: 18px;
    }

    .product-page .tabs-buttons button {
        padding: 13px 16px;
        font-size: 16px;
    }

    .product-page .image-modal {
        padding: 65px 12px 80px;
    }

    .product-page .image-modal img {
        max-height: calc(100vh - 150px);
        border-radius: 12px;
    }

    .product-page .close-image {
        top: 14px;
        right: 14px;
        width: 42px;
        height: 42px;
    }

    .product-page .modal-prev,
    .product-page .modal-next {
        top: auto;
        bottom: 18px;
        width: 46px;
        height: 46px;
        font-size: 24px;
        transform: none;
    }

    .product-page .modal-prev {
        left: calc(50% - 58px);
    }

    .product-page .modal-next {
        right: calc(50% - 58px);
    }

    .product-page .modal-prev:hover,
    .product-page .modal-next:hover {
        transform: none;
    }
}

@media (max-width: 380px) {
    .product-page {
        padding-inline: 10px;
    }

    .product-container {
        padding: 12px;
    }

    .product-page .product-info h1 {
        font-size: 28px;
    }

    .product-page .product-price {
        font-size: 30px;
    }
}

@media (hover: none) {
    .product-page .thumbnail:hover,
    .product-page .gallery-arrow:hover,
    .product-page .add-cart:hover {
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .product-page .main-image-box > img,
    .product-page .thumbnail,
    .product-page .gallery-arrow,
    .product-page .add-cart,
    .product-page .image-modal,
    .product-page .image-modal img,
    .product-page .close-image,
    .product-page .modal-prev,
    .product-page .modal-next {
        transition: none;
    }
}

/* =====================================
   OPIS, SPECYFIKACJA, OPINIE, DOSTAWA I FAQ
===================================== */

.product-page .product-no-image {
    display: flex;
    width: 100%;
    height: 100%;
    min-height: 280px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #718071;
    text-align: center;
}

.product-page .product-no-image span {
    font-size: 56px;
}

.product-page .short-description-wrapper {
    margin-bottom: 30px;
}

.product-page .short-description {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    color: #555;
    line-height: 1.7;
}

.product-page .read-more-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 10px;
    color: var(--green-800);
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
}

.product-page .read-more-link span {
    transition: transform 0.2s ease;
}

.product-page .read-more-link:hover {
    color: #1b5e20;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.product-page .read-more-link:hover span {
    transform: translateY(3px);
}

.product-page .rating-stars {
    color: #c7cec7;
    font-size: 22px;
    letter-spacing: 1px;
}

.product-page .tab-content[hidden] {
    display: none !important;
}

.product-page .tab-content {
    animation: productTabFade 0.22s ease;
}

.product-page .tab-content h2 {
    margin-bottom: 20px;
}

.product-page .tab-content h3 {
    color: #2f3b31;
    line-height: 1.35;
}

.product-page .product-full-description {
    color: #505a52;
    font-size: 16px;
    line-height: 1.85;
    white-space: normal;
}

.product-page .tab-empty-state {
    display: flex;
    min-height: 170px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 28px;
    border: 1px dashed #c9d8c9;
    border-radius: 16px;
    background: var(--surface-muted);
    color: #667067;
    text-align: center;
}

.product-page .tab-empty-state span {
    font-size: 38px;
}

/* Specyfikacja */
.product-page .specification-table {
    overflow: hidden;
    border: 1px solid #e1e8e1;
    border-radius: 16px;
    background: #fff;
}

.product-page .specification-row {
    display: grid;
    grid-template-columns: minmax(180px, 0.38fr) minmax(0, 0.62fr);
    border-bottom: 1px solid #e8ede8;
}

.product-page .specification-row:last-child {
    border-bottom: 0;
}

.product-page .specification-label,
.product-page .specification-value {
    padding: 15px 18px;
    overflow-wrap: anywhere;
}

.product-page .specification-label {
    background: #f3f7f2;
    color: #334436;
    font-weight: 700;
}

.product-page .specification-value {
    color: #59625a;
}

.product-page .specification-note {
    position: relative;
    padding: 14px 18px 14px 44px;
    border-bottom: 1px solid #e8ede8;
    color: #59625a;
}

.product-page .specification-note::before {
    position: absolute;
    top: 14px;
    left: 20px;
    color: var(--green-700);
    content: "✓";
    font-weight: 800;
}

.product-page .specification-note:last-child {
    border-bottom: 0;
}

/* Opinie */
.product-page .reviews-empty-state {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 28px;
    align-items: center;
    padding: clamp(22px, 4vw, 38px);
    border: 1px solid #e2e9e2;
    border-radius: 18px;
    background: linear-gradient(135deg, #f7faf6, #fff);
}

.product-page .reviews-score {
    display: flex;
    min-height: 120px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: #edf6eb;
    text-align: center;
}

.product-page .reviews-score strong {
    color: var(--green-800);
    font-size: 36px;
    line-height: 1;
}

.product-page .reviews-score span {
    margin-top: 10px;
    color: #b8c0b8;
    font-size: 22px;
    letter-spacing: 2px;
}

.product-page .reviews-empty-state h3 {
    margin-bottom: 8px;
    font-size: 20px;
}

.product-page .reviews-empty-state p {
    color: #687069;
}

/* Dostawa */
.product-page .delivery-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.product-page .delivery-card {
    display: flex;
    gap: 16px;
    min-width: 0;
    padding: 20px;
    border: 1px solid #e1e9e1;
    border-radius: 16px;
    background: #fbfcfa;
}

.product-page .delivery-icon {
    display: inline-flex;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: var(--green-100);
    font-size: 23px;
}

.product-page .delivery-card h3 {
    margin-bottom: 7px;
    font-size: 17px;
}

.product-page .delivery-card p {
    color: #697169;
    font-size: 15px;
    line-height: 1.65;
}

/* FAQ */
.product-page .faq-list {
    display: grid;
    gap: 12px;
}

.product-page .faq-item {
    overflow: hidden;
    border: 1px solid #dfe8df;
    border-radius: 14px;
    background: #fff;
}

.product-page .faq-item summary {
    position: relative;
    display: flex;
    min-height: 58px;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 16px 54px 16px 18px;
    color: #344036;
    font-weight: 700;
    line-height: 1.45;
    list-style: none;
    cursor: pointer;
}

.product-page .faq-item summary::-webkit-details-marker {
    display: none;
}

.product-page .faq-item[open] summary {
    background: #f2f8f1;
    color: var(--green-800);
}

.product-page .faq-toggle,
.product-page .faq-toggle::after {
    position: absolute;
    width: 14px;
    height: 2px;
    border-radius: 2px;
    background: var(--green-700);
    content: "";
}

.product-page .faq-toggle {
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
}

.product-page .faq-toggle::after {
    transform: rotate(90deg);
    transition: transform 0.2s ease;
}

.product-page .faq-item[open] .faq-toggle::after {
    transform: rotate(0deg);
}

.product-page .faq-answer {
    padding: 0 18px 18px;
    color: #606a61;
    line-height: 1.75;
}

@keyframes productTabFade {
    from {
        opacity: 0;
        transform: translateY(5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 760px) {
    .product-page .delivery-grid {
        grid-template-columns: 1fr;
    }

    .product-page .reviews-empty-state {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .product-page .reviews-score {
        width: min(100%, 220px);
        margin-inline: auto;
    }
}

@media (max-width: 620px) {
    .product-page .short-description-wrapper {
        margin-bottom: 24px;
    }

    .product-page .specification-row {
        grid-template-columns: 1fr;
    }

    .product-page .specification-label {
        padding-bottom: 7px;
    }

    .product-page .specification-value {
        padding-top: 7px;
    }

    .product-page .delivery-card {
        padding: 16px;
    }

    .product-page .faq-item summary {
        padding-left: 15px;
        font-size: 15px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .product-page .tab-content,
    .product-page .read-more-link span,
    .product-page .faq-toggle::after {
        animation: none;
        transition: none;
    }
}

/* ===== Opinie i udostępnianie produktu ===== */
.product-page .product-rating-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    color: #667066;
    text-decoration: none;
}

.product-page .product-rating-link:hover {
    color: var(--green-800);
}

.product-page .rating-stars,
.product-page .reviews-score-stars,
.product-page .review-stars {
    display: inline-flex;
    gap: 2px;
    color: #d7ddd7;
    letter-spacing: 0;
}

.product-page .star-filled {
    color: #f3b61f;
}

.product-page .product-share {
    display: grid;
    gap: 10px;
    margin: 0 0 24px;
}

.product-page .product-share-label {
    color: #687269;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
}

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

.product-page .share-button {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 13px;
    border: 1px solid #dbe5db;
    border-radius: 999px;
    background: #fff;
    color: #315c38;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.product-page .share-button:hover {
    border-color: #7cb780;
    background: #f3f8f3;
    transform: translateY(-1px);
}

.product-page .share-button.is-copied {
    border-color: var(--green-700);
    background: #eaf6eb;
    color: #23652a;
}

.product-page .reviews-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 26px;
}

.product-page .reviews-heading h2 {
    margin-bottom: 5px;
}

.product-page .reviews-heading p {
    margin: 0;
    color: #6b756d;
}

.product-page .review-jump-button,
.product-page .review-submit-button,
.product-page .review-login-prompt a {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border: 0;
    border-radius: 12px;
    background: #3f853e;
    color: #fff;
    font: inherit;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease;
}

.product-page .review-jump-button:hover,
.product-page .review-submit-button:hover,
.product-page .review-login-prompt a:hover {
    background: #2f6e31;
    transform: translateY(-1px);
}

.product-page .review-alert {
    margin-bottom: 22px;
    padding: 13px 16px;
    border-radius: 12px;
    font-weight: 600;
}

.product-page .review-alert-success {
    border: 1px solid #b9dfbd;
    background: #edf8ee;
    color: #27652c;
}

.product-page .review-alert-error {
    border: 1px solid #efc2c2;
    background: #fff2f2;
    color: #9b2c2c;
}

.product-page .reviews-overview {
    display: grid;
    grid-template-columns: minmax(180px, .7fr) minmax(260px, 1.3fr);
    gap: 28px;
    margin-bottom: 30px;
    padding: 24px;
    border: 1px solid #e3eae3;
    border-radius: 18px;
    background: #fbfdfb;
}

.product-page .reviews-score {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 150px;
    border-radius: 15px;
    background: #eef6ee;
    color: #3d5140;
}

.product-page .reviews-score strong {
    font-size: clamp(40px, 5vw, 58px);
    line-height: 1;
}

.product-page .reviews-score-stars {
    font-size: 21px;
}

.product-page .reviews-score > span:last-child {
    color: #687269;
    font-size: 14px;
}

.product-page .rating-distribution {
    display: grid;
    align-content: center;
    gap: 10px;
}

.product-page .rating-distribution-row {
    display: grid;
    grid-template-columns: 38px 1fr 28px;
    align-items: center;
    gap: 10px;
    color: #657067;
    font-size: 14px;
}

.product-page .rating-distribution-row strong {
    text-align: right;
}

.product-page .rating-distribution-track {
    height: 9px;
    overflow: hidden;
    border-radius: 999px;
    background: #e6ebe6;
}

.product-page .rating-distribution-track span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: #f3b61f;
}

.product-page .reviews-list {
    display: grid;
    gap: 16px;
    margin-bottom: 30px;
}

.product-page .review-card {
    padding: 20px;
    border: 1px solid #e1e8e1;
    border-radius: 16px;
    background: #fff;
}

.product-page .review-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 14px;
}

.product-page .review-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.product-page .review-avatar {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 50%;
    background: #e7f2e7;
    color: #327137;
    font-weight: 800;
}

.product-page .review-author div {
    display: grid;
    gap: 2px;
}

.product-page .review-author span:last-child,
.product-page .review-card time {
    color: #788178;
    font-size: 12px;
}

.product-page .review-stars {
    margin-bottom: 9px;
    font-size: 17px;
}

.product-page .review-card h3 {
    margin: 0 0 8px;
    color: #2f3931;
    font-size: 17px;
}

.product-page .review-card p {
    margin: 0;
    color: #5c665e;
    line-height: 1.7;
}

.product-page .review-delete-form {
    margin-top: 14px;
}

.product-page .review-delete-button {
    padding: 0;
    border: 0;
    background: transparent;
    color: #a13c3c;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.product-page .review-form-card {
    margin-top: 30px;
    padding: 24px;
    border: 1px solid #dce6dc;
    border-radius: 18px;
    background: #f8fbf8;
}

.product-page .review-form-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
}

.product-page .review-form-heading h3 {
    margin: 4px 0 0;
}

.product-page .review-form-kicker,
.product-page .review-form-note {
    color: #56805b;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.product-page .review-form {
    display: grid;
    gap: 18px;
}

.product-page .rating-input {
    margin: 0;
    padding: 0;
    border: 0;
}

.product-page .rating-input legend,
.product-page .review-field > span {
    display: block;
    margin-bottom: 8px;
    color: #39463b;
    font-weight: 700;
}

.product-page .star-rating-input {
    display: inline-flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 4px;
}

.product-page .star-rating-input input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
}

.product-page .star-rating-input label {
    color: #d3d9d3;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    transition: color .15s ease, transform .15s ease;
}

.product-page .star-rating-input label:hover,
.product-page .star-rating-input label:hover ~ label,
.product-page .star-rating-input input:checked ~ label {
    color: #f3b61f;
}

.product-page .star-rating-input label:hover {
    transform: scale(1.08);
}

.product-page .review-field input,
.product-page .review-field textarea {
    width: 100%;
    border: 1px solid #d7e0d7;
    border-radius: 12px;
    background: #fff;
    color: #2d372f;
    font: inherit;
    outline: none;
}

.product-page .review-field input {
    min-height: 46px;
    padding: 10px 13px;
}

.product-page .review-field textarea {
    min-height: 130px;
    padding: 12px 13px;
    resize: vertical;
}

.product-page .review-field input:focus,
.product-page .review-field textarea:focus {
    border-color: #63a768;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, .12);
}

.product-page .review-field small {
    display: block;
    margin-top: 6px;
    color: #788078;
}

.product-page .review-submit-button {
    width: fit-content;
}

.product-page .review-login-prompt {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 18px;
}

.product-page .review-login-prompt > span {
    font-size: 34px;
}

.product-page .review-login-prompt h3 {
    margin: 0 0 5px;
}

.product-page .review-login-prompt p {
    margin: 0;
    color: #69736b;
}

@media (max-width: 760px) {
    .product-page .reviews-heading,
    .product-page .review-form-heading {
        flex-direction: column;
    }

    .product-page .reviews-overview {
        grid-template-columns: 1fr;
        padding: 18px;
    }

    .product-page .review-login-prompt {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .product-page .review-login-prompt > span {
        margin-inline: auto;
    }

    .product-page .review-login-prompt a,
    .product-page .review-jump-button,
    .product-page .review-submit-button {
        width: 100%;
    }
}

@media (max-width: 520px) {
    .product-page .product-share-actions {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .product-page .share-button {
        min-width: 0;
        padding-inline: 8px;
    }

    .product-page .share-native,
    .product-page .share-copy {
        grid-column: span 2;
    }

    .product-page .review-card-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .product-page .review-form-card,
    .product-page .review-card {
        padding: 16px;
    }
}
.rating-stars {
    --rating-percent: 0%;

    position: relative;
    display: inline-block;
    width: max-content;
    font-size: 1.25rem;
    line-height: 1;
    letter-spacing: 0.12em;
    white-space: nowrap;
}

.rating-stars-background {
    display: block;
    color: #c9cec8;
}

.rating-stars-fill {
    position: absolute;
    inset: 0 auto 0 0;
    display: block;
    width: var(--rating-percent);
    overflow: hidden;
    color: #f2b233;
    white-space: nowrap;
    pointer-events: none;
}



/* GreenGarden: niezależny komponent średniej oceny.
   Osobne nazwy klas eliminują konflikt ze starszymi regułami .rating-stars/.star. */
.product-page .gg-rating-stars {
    --gg-rating-width: 0%;
    position: relative !important;
    display: inline-block !important;
    width: max-content;
    overflow: hidden;
    color: inherit;
    font-family: Arial, "Helvetica Neue", sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.12em;
    white-space: nowrap;
    vertical-align: middle;
}

.product-page .gg-rating-stars-base,
.product-page .gg-rating-stars-value {
    display: block !important;
    line-height: 1;
    letter-spacing: inherit;
    white-space: nowrap;
}

.product-page .gg-rating-stars-base {
    color: #c8cec8 !important;
}

.product-page .gg-rating-stars-value {
    position: absolute !important;
    inset: 0 auto auto 0 !important;
    width: var(--gg-rating-width) !important;
    max-width: 100%;
    overflow: hidden !important;
    color: #f2b233 !important;
    pointer-events: none;
}

.product-page .gg-rating-stars-large {
    font-size: 1.85rem;
}