.nb-restored .nb-product-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    margin-bottom: 40px;
}

.nb-restored .nb-gallery-column,
.nb-restored .nb-summary-column {
    width: 50%;
    max-width: 50%;
    flex: 0 0 50%;
    box-sizing: border-box;
}

.nb-restored .nb-gallery-column {
    order: 2;
}

.nb-restored .nb-summary-column {
    order: 1;
}

.nb-restored .woocommerce-product-gallery,
.nb-restored .summary {
    float: none !important;
    width: 100% !important;
    margin-left: 0;
    margin-right: 0;
}

.nb-restored figure {
    margin: 0;
}

.nb-restored .woocommerce-product-gallery img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: auto;
}

.nb-restored .product_meta {
    margin-top: 24px;
}

.nb-restored .product_meta p {
    margin-bottom: 8px;
}

.nb-restored .nb-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 28px;
    list-style: none;
    margin: 30px 0;
    padding: 0;
}

.nb-restored .nb-grid::before,
.nb-restored .nb-grid::after {
    display: none !important;
    content: none !important;
}

.nb-restored .nb-grid > li {
    float: none !important;
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0;
    min-width: 0;
    text-align: center;
}

.nb-restored .nb-grid img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto 12px;
}

.nb-restored .nb-grid h2 {
    font-size: 1.1em;
    line-height: 1.4;
}

.nb-restored .nb-stars {
    position: relative;
    display: inline-block;
    white-space: nowrap;
    line-height: 1.3;
    color: #d5d5d5;
    letter-spacing: 2px;
}

.nb-restored .nb-stars-fill {
    position: absolute;
    top: 0;
    left: 0;
    overflow: hidden;
    white-space: nowrap;
    color: #a87932;
}

.nb-restored .nb-product-tabs {
    clear: both;
    margin-top: 40px;
}

.nb-restored .nb-tab-links {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 12px;
    margin-bottom: 24px;
}

.nb-restored .woocommerce-Tabs-panel,
.nb-restored .woocommerce-Reviews {
    margin: 24px 0 40px;
    scroll-margin-top: 100px;
}

.nb-restored .shop_attributes {
    width: 100%;
    border-collapse: collapse;
}

.nb-restored .shop_attributes th,
.nb-restored .shop_attributes td {
    text-align: left;
    border-bottom: 1px solid #ddd;
    padding: 12px;
}

.nb-restored .nb-review-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nb-restored .nb-review-list > li {
    border-bottom: 1px solid #ddd;
    padding: 20px 0;
}

.nb-restored .nb-catalog-banner {
    background-position: center;
    background-size: cover;
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nb-restored .nb-description {
    margin: 20px 0;
}

.nb-restored .nb-description summary {
    cursor: pointer;
}

@media (max-width: 767px) {
    .nb-restored .nb-gallery-column,
    .nb-restored .nb-summary-column {
        width: 100%;
        max-width: 100%;
        flex-basis: 100%;
    }

    .nb-restored .nb-gallery-column {
        order: 1;
        margin-bottom: 24px;
    }

    .nb-restored .nb-summary-column {
        order: 2;
    }

    .nb-restored .nb-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }
}

/* Original single-product layout compatibility. */

.singleproduct.nb-restored > .container {
    margin-left: auto;
    margin-right: auto;
}

.singleproduct.nb-restored .nb-product-row {
    margin-bottom: 0;
}

.singleproduct.nb-restored .summary {
    margin-top: 30px;
}

.singleproduct.nb-restored .product_meta {
    margin-top: 45px;
}

.singleproduct.nb-restored .product_meta > span {
    display: block;
}

.singleproduct.nb-restored .product_meta a {
    color: #a18f7a;
}

.singleproduct.nb-restored .nb-product-tabs {
    margin-top: 0;
}

.singleproduct.nb-restored .woocommerce-Tabs-panel {
    margin: -1px 0 0;
    padding: 20px;
}

.singleproduct.nb-restored .woocommerce-Tabs-panel[hidden] {
    display: none !important;
}

/* The old theme accidentally styles all tab links
   as review-rating stars. Restore ordinary links. */

.singleproduct .woocommerce-Tabs-panel a {
    position: static;
    width: auto;
    height: auto;
    text-indent: 0;
    display: inline;
    color: #a18f7a;
}

.singleproduct .woocommerce-Tabs-panel a::before {
    content: none;
    display: none;
}

.singleproduct.nb-restored .shop_attributes td {
    padding: 8px;
}

.singleproduct.nb-restored .related.products .nb-grid {
    margin-top: 0;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    column-gap: 30px;
}

.singleproduct.nb-restored .related.products .nb-grid > li {
    text-align: left;
}

.singleproduct.nb-restored .related.products .nb-grid h2 {
    text-align: left;
    font-size: 1.1em;
}

.singleproduct.nb-restored .woocommerce-product-gallery {
    opacity: 1;
}

.singleproduct.nb-restored .woocommerce-product-gallery img {
    width: 100%;
    height: auto;
}

@media (max-width: 767px) {
    .singleproduct.nb-restored .related.products .nb-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }

    .singleproduct.nb-restored .wc-tabs {
        padding-top: 35px;
    }

    .singleproduct.nb-restored .wc-tabs li {
        padding-left: 10px;
        padding-right: 10px;
        margin: 0;
    }
}

/* Historical catalog prices and stock availability. */

.singleproduct.nb-restored .summary p.price {
    display: block;
    color: #000;
    font-size: 24px;
    font-weight: 700;
    margin-top: 40px;
    margin-bottom: 40px;
}

.singleproduct.nb-restored .summary .stock {
    color: #333;
    font-size: 14px;
    margin-top: 0;
    margin-bottom: 30px;
}

.nb-restored .nb-grid .price {
    display: block;
    color: #000;
    font-size: 14px;
    font-weight: 700;
    margin-top: 6px;
}

.nb-restored .price del {
    opacity: .65;
    font-weight: 400;
}

.nb-restored .price ins {
    text-decoration: none;
    font-weight: 700;
}

/* Reuse the original theme's archive spacing and category columns. */
.nb-shop-archive .nb-catalog-banner h1 {
    color: #eaeaea;
    text-transform: uppercase;
    font-size: 25px;
    font-weight: 600;
}

.nb-shop-grid > li {
    break-inside: avoid;
    text-align: left;
}

.nb-taxonomy-archive .nb-grid {
    column-gap: 30px;
}

.nb-taxonomy-archive .nb-grid > li {
    border: 1px solid #d6d6d6;
    border-radius: 5px;
    padding: 15px;
    min-height: 21em;
    text-align: left;
}

.nb-taxonomy-archive .nb-grid img {
    width: 100%;
    margin-bottom: 1.4em;
}

.nb-taxonomy-archive .nb-grid .woocommerce-loop-product__title {
    color: #a18f7a;
    font-size: 15px;
    line-height: 1.3;
    padding: .5em 0;
    margin-bottom: 0;
}

.nb-taxonomy-archive .nb-grid .price {
    font-size: 25px;
    font-weight: 600;
}

.nb-taxonomy-archive .woocommerce-ordering {
    text-align: right;
}

.nb-taxonomy-archive .orderby {
    max-width: 100%;
    min-height: 47px;
    background: #fafafa;
    border: 1px solid #ced4da;
    color: #666;
    font: 17px "Open Sans", sans-serif;
    padding: 0 18px;
}

.nb-taxonomy-archive .nb-description summary {
    color: #a18f7a;
    font-weight: 600;
}

@media (min-width: 768px) {
    .nb-shop-archive .nb-catalog-banner h1 {
        font-size: 30px;
    }

    .nb-taxonomy-archive .nb-grid > li {
        padding: 30px;
        min-height: 25em;
    }

    .nb-taxonomy-archive .nb-grid .woocommerce-loop-product__title {
        font-size: 20px;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .nb-taxonomy-archive .nb-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 992px) {
    .nb-taxonomy-archive .nb-grid > li {
        min-height: 30em;
    }
}

.nb-shop-archive .product-section > .container {
    padding-inline: 0;
}

.nb-taxonomy-archive .nb-catalog-banner > .title-box {
    width: 100%;
}

.nb-taxonomy-archive .nb-catalog-banner .term-description {
    font-size: 32px;
    line-height: 1.2;
    font-weight: 500;
}

.nb-taxonomy-archive .nb-catalog-banner h1:has(+ .term-description) {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.singleproduct.nb-restored .summary {
    margin-top: 0;
}

@media (min-width: 768px) {
    .singleproduct.nb-restored .nb-product-row {
        max-width: 900px;
        margin-inline: auto;
    }

    .singleproduct.nb-restored .nb-summary-column {
        padding-right: 50px;
    }

    .singleproduct.nb-restored .nb-gallery-column {
        padding-right: 0;
    }
}

@media (max-width: 767px) {
    .singleproduct.nb-restored .nb-gallery-column {
        margin-bottom: 30px;
    }
}
