/* Header */

header {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    column-gap: var(--site-padding);
    padding-top: 1rem;
    margin-bottom: var(--space-3)
}


header .sale-sticker, header .extra-sticker {
    z-index: 20;
    top: -.5rem;
    left: -1rem;
    right: auto;
    bottom: auto;
    transform: rotate(-18deg);
    font-size: max(16px, calc(var(--h4) * .75));
    width: 6.5em;
}

header .sale-sticker {
    font-size: 1.25rem;
    width: 3.75em;
}


/* Product info */

.summary {
    flex-grow: 1;
    flex-basis: 400px;
    margin-top: var(--space-3);
}

.summary .stars {
    rotate: var(--tilt-min-2);
    font-size: 1.25rem;
    margin-bottom: 1em;
}

.summary h1 {
    margin-top: 0;
    margin-bottom: .5em;
    line-height: .9;
}

.summary .woocommerce-product-details__short-description {
    max-width: 28rem;
}

.summary .price-order {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: .75rem;
}

.summary .price-order>* {
    margin-block: 0;
}

.summary .price-order .price {
    position: relative;
    bottom: 0;
    right: 0;
    left: 0;
    top: 0;
    transform: rotate(-6deg);
    font-size: 1.125rem;
    width: 5em;
}

@media (min-width: 992px) {
    .summary .price-order {
        margin-left: calc(var(--site-padding) * -.25);
    }
}

.no-delivery-notice, .product-restriction-notices {
    padding: .75em .75em .55em;
    line-height: 1.375;
    background-color: var(--yellow);
    color: var(--green-dark);
    font-weight: var(--bold);
    font-size: var(--h6);
    width: fit-content;
}


/* Info */

.product-wrapper .order-info-wrapper {
    margin-bottom: var(--space-2);
}

@media(min-width: 1200px) {
    .product-wrapper .order-info-wrapper {
        background: none;
        margin-block: var(--space-3) 0;
    }
}

main {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: center;
    flex-direction: row-reverse;
    gap: calc(var(--site-padding) * 1.5);
    font-size: var(--h5);
}

main>* {
    flex-grow: 1;
    flex-basis: 400px;
    max-width: var(--container-sm);
}

main .stats {
    list-style: none;
    padding: 0;
    margin-block: var(--space-2) calc(var(--space-2) * 1.5);
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    line-height: 1.25;
}

main .stats li {
    display: flex;
    flex-direction: column;
}

main .stats strong {
    font-size: var(--h4);
    font-weight: var(--heavy);
}

main details.foldout {
    margin-bottom: 1rem;
}

main details:last-of-type {
    margin-bottom: var(--space-3);
}

main details.foldout summary {
    justify-content: space-between;
    font-weight: var(--heavy);
    font-size: var(--h4);
    padding-block: .5rem;
}

details.foldout[open] summary {
    padding-block: .5rem 1.25rem;
}

main details.foldout summary:before {
    content: none;
}

main details.foldout summary::after {
    content: '';
    display: inline-block;
    flex: none;
    width: .75em;
    height: .75em;
    margin-left: .5em;
    margin-top: .5em;
    background: var(--carrot-icon) no-repeat center;
    background-size: contain;
    transition: 200ms;
}

main details.foldout[open] summary::after {
    rotate: 90deg;
}

main details.foldout .text {
    margin-top: -.75rem;
    padding-bottom: .5rem;
    padding-left: 0;
}

main .common-info {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

main .info-box .text {
    max-width: 30rem;
}