/* Product page, continued: buy notes, sections, reviews, related row. Then 404 and plain pages. */
.product-icon {
    width: 20px;
    height: 20px;
}
.buy-notes {
    margin: 20px 0 0;
    padding: 0;
    list-style: none;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);
}
.buy-notes li {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
}
.buy-notes li + li {
    border-top: 1px solid var(--border);
}
.buy-notes .product-icon {
    box-sizing: content-box;
    padding: 9px;
    border-radius: var(--radius-pill);
    background: var(--primary-soft);
    color: var(--ink);
}
.buy-notes strong {
    display: block;
    font-size: 14px;
    color: var(--ink);
}
.buy-notes span {
    font-size: 13px;
    color: var(--muted);
}
.buy-notes a {
    color: var(--accent);
    font-weight: 650;
}
.product-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 10px;
    margin: 16px 0 0;
    font-size: 12px;
    color: var(--muted);
}
.product-meta span:not([aria-hidden]) {
    color: var(--text);
}
.product-meta a {
    color: var(--accent);
}

/* Under the buy box: description and specifications side by side, then reviews (woocommerce/single-product/tabs). */
.product-sections {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    margin-top: 56px;
}
.product-sections.has-pair {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
}
.product-sections.has-pair > :not(.product-section--description):not(.product-section--additional_information) {
    grid-column: 1 / -1;
}
.product-section {
    min-width: 0;
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);
    color: var(--text);
    font-size: 15px;
    line-height: 1.7;
}
.product-section h2,
.woocommerce-Reviews-title {
    margin: 0 0 16px;
    font-family: var(--font-display);
    font-size: 21px;
    letter-spacing: -0.02em;
    color: var(--ink);
}
.product-section p {
    margin: 0 0 12px;
}
.woocommerce-product-attributes {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
    line-height: 1.5;
}
.woocommerce-product-attributes th,
.woocommerce-product-attributes td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    text-align: left;
    vertical-align: top;
}
.woocommerce-product-attributes tr:last-child > * {
    border-bottom: 0;
}
.woocommerce-product-attributes th {
    width: 42%;
    background: var(--page);
    color: var(--muted);
    font-weight: 600;
}
.woocommerce-product-attributes td {
    color: var(--ink);
    font-weight: 600;
}
.woocommerce-product-attributes td p {
    margin: 0;
}

/* Reviews: the list beside the form on a computer. */
.woocommerce-Reviews {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 32px;
}
.woocommerce-Reviews .clear {
    display: none;
}
.commentlist {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.commentlist .comment_container {
    display: flex;
    gap: 12px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.commentlist .avatar {
    flex: none;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-pill);
}
.commentlist .comment-text {
    flex: 1;
    min-width: 0;
    font-size: 14px;
}
.commentlist .meta {
    margin: 4px 0;
    font-size: 13px;
    color: var(--muted);
}
.woocommerce-review__author {
    color: var(--ink);
}
.star-rating {
    position: relative;
    width: 84px;
    height: 18px;
    overflow: hidden;
    font-size: 0;
}
.star-rating::before,
.star-rating > span::before {
    content: "★★★★★";
    position: absolute;
    left: 0;
    color: var(--border);
    font-size: 15px;
    letter-spacing: 2px;
    line-height: 18px;
}
.star-rating > span {
    position: absolute;
    inset: 0 auto 0 0;
    overflow: hidden;
}
.star-rating > span::before {
    color: var(--accent);
}
#review_form_wrapper {
    align-self: start;
    padding: 20px;
    border-radius: var(--radius);
    background: var(--page);
}
.comment-reply-title {
    display: block;
    margin-bottom: 10px;
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 750;
    color: var(--ink);
}
.comment-form label {
    display: block;
    margin-bottom: 4px;
    font-size: 13px;
    font-weight: 600;
}
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form textarea {
    width: 100%;
}
.comment-form textarea {
    height: 120px;
    min-height: 0;
}
p.stars a {
    margin-right: 2px;
    font-size: 0;
    text-decoration: none;
}
p.stars a::before {
    content: "★";
    font-size: 26px;
    color: var(--border);
}
p.stars:hover a::before,
p.stars.selected a::before {
    color: var(--accent);
}
p.stars a:hover ~ a::before,
p.stars.selected a.active ~ a::before {
    color: var(--border);
}
.comment-form .submit {
    min-height: 44px;
    padding: 10px 22px;
    border: 0;
    border-radius: var(--radius);
    background: var(--primary);
    color: var(--on-fill);
    font-weight: 800;
}
.comment-form .submit:hover {
    background: var(--primary-strong);
    color: var(--hover-ink);
}
.woocommerce-noreviews,
.woocommerce-verification-required {
    color: var(--muted);
}

/* Related products and up-sells: one row of the shared card, sliding sideways on smaller screens. */
.product-row-section {
    margin-top: 56px;
}
.product-row-section .section-heading {
    margin-bottom: 16px;
}
.product-row-section .section-heading h2 {
    font-family: var(--font-display);
    font-size: 24px;
    letter-spacing: -0.02em;
}
.product-row-section .section-heading a {
    font-size: 14px;
    font-weight: 700;
    color: var(--accent);
}
.product-row-track {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 16px;
}
@media (max-width: 1200px) {
    .product-row-track {
        grid-template-columns: none;
        grid-auto-flow: column;
        grid-auto-columns: minmax(210px, 31%);
        overflow-x: auto;
        padding-bottom: 6px;
        scroll-snap-type: x mandatory;
    }
    .product-row-track > * {
        scroll-snap-align: start;
    }
}

/* The product page on a tablet or phone: one column, gallery first. */
@media (max-width: 900px) {
    .product-top {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
    }
    .product-media {
        position: relative;
        top: auto;
    }
    .product-page .woocommerce-product-gallery__wrapper {
        max-height: 70vh;
    }
    .product-sections,
    .product-sections.has-pair,
    .woocommerce-Reviews {
        grid-template-columns: minmax(0, 1fr);
    }
    .product-sections {
        margin-top: 32px;
        gap: 16px;
    }
    .product-row-section {
        margin-top: 40px;
    }
}
@media (max-width: 640px) {
    .product-section {
        padding: 20px 16px;
    }
    .price-now,
    .buy-price.price .amount {
        font-size: 30px;
    }
    .product-row-track {
        grid-auto-columns: 46%;
        gap: 12px;
    }
    .gallery-thumb {
        width: 64px;
        height: 64px;
    }
    .gallery-step {
        width: 36px;
        height: 36px;
    }
}
