h3 {
    padding: 0 0 10px 0;
}

.first-catalog {
    padding-top: 150px;
}

.item-header {
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: row;
    align-items: flex-end;
}

.item-header span,
.item-header a {
    padding: 15px 20px;
    display: flex;
    align-items: center;
    color: inherit;
    text-decoration: none;
    background: var(--darkened-bg);
    border-bottom: 1px solid var(--border-color);
    flex: 0;
    white-space: nowrap;
}

.item-header a:hover {
    background: var(--body-fg);
    color: var(--body-bg);
}

.item-header span {
    border: 1px solid var(--border-color);
    border-bottom-width: 0px;
    background: var(--body-bg);
}

.item-header-after {
    display: block;
    height: 100%;
    flex: 1;
    border-bottom: 1px solid var(--border-color);
}

@media screen and (max-width: 970px) {
    .item-header {
        flex-wrap: wrap;
    }

    .item-header span,
    .item-header a {
        word-wrap: normal;
        white-space: normal;
        height: 100%;
    }
}

#item-title {
    flex-grow: 1;
    padding: 10px 0 10px 0;
}

#item-title h1 {
    display: inline-block;
}

#item-title .item-tags {
    display: block;
}

#item-block {
    display: flex;
    flex-direction: row;
    align-items: start;
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 20px;
    padding-top: 20px;
    margin-bottom: 40px;
}

#item-block h1 {
    padding: 0;
    margin: 0;
}

.item-images {
    position: relative;
    width: 400px;
    display: flex;
    flex-direction: row;
    margin-top: 20px;
    overflow: hidden;
    flex-shrink: 0;
    gap: 10px;
}

.item-image {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
    height: fit-content;
    position: relative;
}

.item-image img {
    object-fit: contain;
    max-height: 100%;
    max-width: 100%;
    cursor: pointer;
}

.additional-images {
    display: flex;
    justify-content: flex-start;
    flex-direction: column;
    overflow: auto;
    gap: 10px;
    height: 100%;
    width: 50px;
}

@media screen and (max-width: 970px) {
    .additional-images {
        width: 70px;
    }
}

.additional-image {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    width: 100%;
    height: auto;
    opacity: 0.7;
    transition: all ease 0.2s;
}

.additional-image:hover {
    opacity: 1;
}

.additional-image.selected {
    border: 2px solid var(--border-color);
    padding: 2px;
    opacity: 1;
}

.additional-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.item-images #zoom-img {
    font-size: 35px;
    cursor: pointer;
    display: block;
    position: absolute;
    top: 0;
    padding: 5px;
    color: var(--body-fg);
    opacity: 0;
    transition: all ease 0.2s;
    z-index: 11;
}

.item-images #zoom-img {
    right: 0;
    transform-origin: top right;
}

.item-images:hover #zoom-img {
    opacity: 1;
}

.item-images #zoom-img:hover {
    transform: scale(1.1) translate(5%, -5%);
}

@media screen and (max-width: 970px) {
    .item-images #zoom-img {}
}

.item-arrow {
    position: absolute;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: var(--globalnav-background);
    backdrop-filter: var(--globalnav-backdrop-filter);
    -webkit-backdrop-filter: var(--globalnav-backdrop-filter);
    cursor: pointer;
    z-index: 10;
    user-select: none;
    opacity: 0;
    transition: opacity 0.2s;
}

.item-arrow span {
    font-size: 35px;
    padding: 5px;
    color: var(--body-fg);
}

.item-images:hover .item-arrow {
    opacity: 1;
}

.item-arrow-left {
    left: 0;
}

.item-arrow-right {
    right: 0;
}

.info-img {
    display: block;
    opacity: 0;
    pointer-events: none;
    position: absolute;
    left: 0;
    top: 0;
    padding: 10px;
    width: 100%;
    height: auto;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all ease 0.2s;
}

.info-img:hover {
    opacity: 1;
    pointer-events: all;
    transition: all ease 0.2s;
}

.item-images #info-img:hover~.info-img {
    opacity: 1;
    pointer-events: all;
    transition: all ease 0.2s;
}

.image-modal {
    display: none;
    justify-content: center;
    align-items: center;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    max-width: 90%;
    max-height: 90%;
}

#close-modal {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 35px;
    cursor: pointer;
    display: block;
    padding: 10px;
    color: #eeeeee;
    opacity: 1;
    transition: all ease 0.2s;
}

#close-modal:hover {
    transform: scale(1.1);
    transition: all ease 0.2s;
}

.item-info {
    height: auto;
    padding: 10px;
    margin-top: 10px;
    flex: 1;
}

.item-description {
    word-wrap: normal;
    padding: 20px 0;
}

.item-badge {
    display: flex;
    flex-flow: row nowrap;
    gap: 10px;
    align-items: center;
    padding-bottom: 5px;
}

.item-badge object {
    height: 40px;
    width: auto;
}

.item-buy {
    min-width: 300px;
    max-width: 500px;
    margin: 20px auto;
    padding: 20px;
    background: var(--darkened-bg);
    height: auto;
}

@media screen and (max-width: 970px) {
    .item-buy {
        min-width: unset;
        max-width: 300px;
        margin: 0 auto;
    }
}

.item-buy .primary-button {
    width: 100%;
}

.item-price {
    font-size: 38px;
    padding: 10px 0 0 0;
    color: var(--body-fg);
    white-space: nowrap;
}

.item-price[data-discount]::after {
    content: attr(data-discount);
    color: red;
    font-size: 30px;
    font-weight: 300;
    padding-left: 10px;
}

.item-price span {
    font-size: 20px;
}

.item-promo {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
}

.item-price-initial {
    font-size: 26px;
    text-decoration: line-through;
    color: var(--body-fg);
}

.item-tag-promo-verbose {
    border-radius: 7px;
    padding: 5px;
    background: var(--primary);
    color: var(--primary-fg);
}

.item-stock {
    padding-bottom: 10px;
    width: 100%;
}

.stock-verbose {
    padding-bottom: 5px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    flex-direction: row;
}

.stock-indicator {
    width: 100%;
    height: 2px;
    display: flex;
    flex-direction: row;
    gap: 5px;
}

.stock-line {
    flex: 1;
    width: auto;
    height: 100%;
    background: var(--border-color);
}

.stock-line.active {
    background: var(--primary);
}

.item-price-note {
    font-size: 14px;
    padding-top: 10px;
    margin-bottom: -10px;
}

#order_form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#order_form .form-input {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
}

#order_form .form-input.error {
    border-color: red;
}

#order_form .submit-button {
    overflow: hidden;
    position: relative;
    border: none;
    cursor: pointer;
    transition: all ease 0.3s 0.35s;
    background-color: var(--body-fg);
    color: var(--body-bg);
}

#order_form .submit-button span {
    color: inherit;
}

#order_form .submit-button:hover {
    color: var(--primary-fg);
    background-color: var(--body-fg);
    transition: all ease 0.2s;
}

#order_form .submit-button::after {
    content: '';
    position: absolute;
    top: 0;
    left: -15px;
    width: 0;
    height: 100%;
    background: var(--primary);
    transform: skewX(-24deg);
    z-index: 2;
    transition: all 0.6s cubic-bezier(0.55, 0, 1, 0.45);
}

#order_form .submit-button:hover::after {
    width: calc(100% + 30px);
    transition: all 0.4s cubic-bezier(0.33, 1, 0.68, 1)
}

#order_form .submit-button span {
    position: relative;
    z-index: 3;
}

.policy {
    overflow-wrap: break-word;
    word-wrap: normal;
    font-size: 13px;
    line-height: 13px;
    padding-top: 5px;
    max-width: 250px;
}

.policy a {
    overflow-wrap: break-word;
    word-wrap: normal;
    color: var(--body-fg);
    line-height: 13px;
}

#order_form .submit-button.process {
    background: gray;
    pointer-events: none;
}

#order_form .submit-button.done {
    background: var(--body-bg);
    color: var(--body-fg);
    pointer-events: none;
    border: 1px solid var(--border-color);
}

#order_form .submit-button.error {
    background: var(--body-bg);
    pointer-events: none;
    border: 1px solid red;
}

@media screen and (max-width: 970px) {
    .item-info {
        padding-top: 0;
        margin-top: 0;
    }

    #item-block {
        flex-wrap: wrap;
        gap: 10px;
    }

    .item-images {
        margin: 0 auto;
        padding-bottom: 70px;
    }

    .item-images {
        width: 100%;
        max-width: 400px;
    }
}



#calculator {
    background: var(--darkened-bg);
    text-align: center;
    padding: 40px 0;
}

.calculator {
    max-width: 1200px;
    margin: 0 auto;
    text-align: left;
    display: grid;
    grid-template-columns: 1fr;
    width: fit-content;
    column-gap: 50px;
    row-gap: 10px;
    justify-items: start;
    align-items: center;
    padding-top: 40px;

    font-size: 18px;
}

.calculator.two-columns {
    grid-template-columns: 1fr 1fr;
}

.calc-line-row {
    display: flex;
    flex-direction: row;
    gap: 10px;
    align-items: center;
    justify-content: flex-start;
}

.calc-line-column {
    display: flex;
    flex-direction: column;
    gap: 5px;
    align-items: flex-start;
}

@media screen and (max-width: 970px) {
    .calculator {
        padding: 40px 10px;
        padding-bottom: 0;
    }

    .calculator.two-columns {
        grid-template-columns: 1fr;
    }

    .calc-line-row {
        flex-wrap: wrap;
    }
}

.calc-input {
    border: 1px solid var(--border-color);
    padding: 5px;
    background: var(--body-bg);
}

.calc-input[type="number"] {
    width: 70px;
}

.calc-input[type="checkbox"] {
    width: 15px;
    height: 15px;
}

.calc-title {
    position: relative;
}

.calc-title[data-tooltip]::after {
    content: 'help';
    display: block;
    position: absolute;
    top: 50%;
    right: 0;
    transform: translate(110%, -50%);
    font-size: 24px;
    line-height: 24px;
    font-family: 'Material Symbols Outlined';
    opacity: 0.5;
    cursor: pointer;
}

.calc-title[data-tooltip]::after:hover {
    opacity: 1;
}



.calc-summ {
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    width: fit-content;
    font-size: 20px;
    padding: 20px 10px;
}

.calc-summ-number {
    font-weight: 600;
}


#form-container {
    background: var(--darkened-bg);
}

#form-container #order_form {
    min-width: 300px;
    max-width: 350px;
    margin: 0 auto;
    padding: 40px 10px 20px 10px;
    height: auto;
    margin-left: auto;
}

.form-buttons-line {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
}

.form-buttons-line .primary-button {
    padding: 0;
    height: 50px;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.form-buttons-line a {
    display: flex;
    align-items: center;
    background: var(--body-bg);
    text-decoration: none;
    transition: all ease 0.2s;
    padding: 8px;
    border-radius: 6px;
    border: 1px solid var(--body-bg);
    height: 50px;
    width: 50px;
}

.form-buttons-line a:hover {
    transition: all ease 0.1s;
    border-color: var(--border-color);
}

.form-buttons-line img {
    height: 100%;
    width: auto;
}



#articles {
    padding-top: 40px;
    padding-bottom: 100px;
    text-align: center;
    position: relative;
}

#articles .small-button {
    background-color: var(--body-bg);
}


.item-content>p {
    padding-top: 50px;
    padding-bottom: 50px;
}


.item-specs {
    padding: 30px 40px;
    margin: 0 auto;

    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: center;
    column-gap: 40px;
    row-gap: 30px;

    list-style: none;
    border: solid var(--body-fg);
    border-width: 1px 0;
}

.item-specs li {
    display: flex;
    flex: 1;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: center;
    min-width: fit-content;
    max-width: 160px;
}

.spec {
    font-size: 24px;
    letter-spacing: -0.6px;
    font-weight: 500;
    -webkit-box-align: baseline;
    -webkit-box-orient: horizontal;
    -webkit-box-pack: center;
    align-items: baseline;
    flex-flow: row nowrap;
    justify-content: center;
    line-height: 1.07em;
    display: flex;
}

.spec-type {
    display: block;
    font-size: 20px;
    letter-spacing: -0.4px;
    line-height: 1em;
    padding: 0;
    padding-inline-start: 4px;
    padding-left: 4px;
}

.spec-text {
    font-size: 12px;
    line-height: 18px;
    font-weight: 500;
    padding-top: 8px;
    padding-block-start: 12px;

    max-inline-size: 75ch;
}



.item-features {
    padding: 30px 40px;
    margin: 0 auto;
    list-style: none;
}

.item-features li {
    display: flex;
    width: 100%;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    height: 300px;
}

.item-features li:nth-child(even) {
    flex-direction: row-reverse;
}

.feature {
    flex: 1;
    max-width: 50%;
    padding: 20px;
    height: auto;
}

.item-features li:nth-child(even) .feature {
    padding-left: 40px;
}

.feature-img {
    flex: 1;
    height: 100%;
    max-width: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.feature-img img {
    min-height: 100%;
    min-width: 100%;
    object-fit: cover;
}

@media screen and (max-width: 870px) {
    .item-specs {
        padding-left: 5px;
        padding-right: 5px;
    }

    .item-features {
        padding: 0;
        padding-top: 10px;
    }

    .item-features li {
        flex-direction: column !important;
        height: auto;
    }

    .feature,
    .feature-img {
        max-width: 100%;
    }

    .feature {
        padding: 40px 0 !important;
    }
}