/* Common product section styles */
.product-section {
    max-width: 1440px;
    margin: 0 auto;
    padding: 50px 30px 50px 30px !important;
}

.item-content:has(.product-section) {
    z-index: 90;
    position: relative;
    background-color: white;
    box-shadow: 0 5px 5px rgba(0, 0, 0, 0.3);
}

.product-section h2 {
    font-size: 1.86rem;
}

.product-section h3 {
    font-size: 1.14rem;
    font-weight: bold;
    margin: 0 0 15px 0;
}

.product-section h3:not(:first-child) {
    margin-top: 35px;
}

.product-section h3.product-series-heading {
    padding-bottom: 8px;
    border-bottom: 1px solid grey;
}

.product-section div:not(:first-child)>h3 {
    margin-top: 35px;
}

.product-section p {
    margin: 0 0 10px 0;
}

.product-section .product-name {
    font-weight: bold;
}

@media (max-width: 639px) { 
    .product-section .product-name {
        height: auto !important;
    }
}

.product-section .colour-options {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.product-section .colour-option {
    display: flex;
    align-items: center;
    gap: 12px;
}

.product-section .colour-swatch {
    width: 35px;
    height: 35px;
    border: 1px solid grey;
    object-fit: cover;
}

.product-section .colour-name {
    font-size: 1rem;
}

.product-section .product-image {
    width: 80%;
    max-width: 250px;
    margin: 0 auto;
}

.product-section .product-info {
    padding-top: 0;
    padding-bottom: 0;
}

.product-section .product-price {
    margin-top: 10px;
    font-size: 0.93rem;
} 

@media (max-width: 639px) { 
    .product-section .product-price {
        height: auto !important;
    }
}

.product-section .product-variant {
    height: 36px;
}

@media (max-width: 639px) { 
    .product-section .product-variant {
        height: auto !important;
    }

    .product-section .product-variant:empty {
        display: none;
    }
}

.product-section .product-variant-price {
    font-size: 0.93rem;
}

.product-section .product-variant-name {
    font-size: 0.93rem;
}

.product-section .product-variant-name::before {
    content: "(";
}

.product-section .product-variant-name::after {
    content: ")";
}

.product-section .product-colours {
    margin-top: 10px;
    font-size: 0.86rem;
}

@media (max-width: 639px) { 
    .product-section .product-colours {
        height: auto !important;
    }

    .product-section .product-colours:empty {
        display: none;
    }
}

.product-section .cta-buttons {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    width: max-content;
    margin: 45px 0 0 0;
}

.product-section .cta-button {
    max-width: 180px;
    width: 100%;
}

/* Grey blocks section */
.item-content:has(#section-grey-blocks.product-section) {
    z-index: 80;
}

/* Coloured blocks section */
.item-content:has(#section-coloured-blocks.product-section) {
    z-index: 70;
}

.product-section .finish-options {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.product-section .finish-options h3 {
    padding-bottom: 8px;
    border-bottom: 1px solid grey;
}

.product-section .finish-option {
    display: flex;
    align-items: left;
    gap: 12px;
}

.product-section .finish-image {
    padding: 10px 20px;
    width: 80%;
}

.product-section .finish-name {
    font-weight: bold;
    font-size: 1rem;
    margin-bottom: 15px;
}

.product-section .finish-description {
    font-size: 1rem;
}

.product-section .colour-options-table table {
    margin-top: 30px;
}

.product-section .colour-options-table h3 {
    padding-bottom: 8px;
    border-bottom: 1px solid grey;
}

.product-section .colour-options-table th {
    padding: 0 0 10px 0;
    text-transform: none;
    text-align: center;
    vertical-align: bottom;
    font-size: 1rem;
}

@media (max-width: 639px) { 
    .product-section .colour-options-table th {
        font-size: 0.71rem;
    }
}

.product-section .colour-options-table td:first-child {
    padding: 0 10px 0 0;
    text-align: right;
    vertical-align: middle;
    white-space: nowrap;
    width: 1%;
    font-size: 1rem;
}

@media (max-width: 639px) { 
    .product-section .colour-options-table td:first-child {
        font-size: 0.71rem;
        white-space: unset;
    }
}

.product-section .colour-options-table td:not(:first-child) {
    padding: 5px;
    width: 20%;
    text-align: center;
}

.product-section .colour-options-table .colour-table-swatch {
    border: 1px solid transparent;
}

.product-section .colour-options-table .colour-table-swatch img {
    width: 100%;
}

/* Grey bricks section */
.item-content:has(#section-grey-bricks.product-section) {
    z-index: 60;
}

/* Coloured bricks section */
.item-content:has(#section-coloured-bricks.product-section) {
    z-index: 50;
}

.product-section .colour-options-table {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.product-section .colour-options-table h3 {
    padding-bottom: 8px;
    border-bottom: 1px solid grey;
}

.product-section .colour-options-table .product-info {
    width: 100%;
}

.product-section .colour-options-table .colour-option {
    display: flex;
    align-items: center;
    gap: 5px;
}

.product-section .colour-options-table .colour-image {
    padding: 10px 20px;
    width: 60%;
    text-align: center;
}

.product-section .colour-options-table .colour-name {
    font-weight: bold;
    font-size: 1rem;
    text-align: center;
}

.product-section .colour-options-table .colour-range {
    font-size: 0.86rem;
    margin-bottom: 10px;
    text-align: center;
}

/* Pavers section */
.item-content:has(#section-pavers.product-section) {
    z-index: 40;
}

/* Retaining wall section */
.item-content:has(#section-retaining-wall.product-section) {
    z-index: 30;
}