.at-detail-page {
    padding-bottom: 45px;
}

.at-detail-breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
    padding-block: 24px;
    color: #89937e;
    font-size: 10px;
}

.at-detail-breadcrumbs a:hover {
    color: #244f38;
}

.at-detail-layout {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    align-items: start;
    gap: 65px;
    padding-block: 15px 45px;
}

.at-detail-gallery,
.at-detail-summary {
    min-width: 0;
}

.at-detail-main-image {
    position: relative;
    display: grid;
    place-items: center;
    width: 100%;
    aspect-ratio: 1;
    padding: 30px;
    border: 1px solid #e8ecdf;
    border-radius: 3px;
    background: #fff;
    color: #8e9883;
    cursor: zoom-in;
}

.at-detail-main-image:disabled {
    cursor: default;
}

.at-detail-main-image > img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: contain;
}

.at-detail-main-image > img[hidden],
.at-detail-main-image > span[hidden] {
    display: none;
}

.at-detail-image-hint {
    position: absolute;
    right: 16px;
    bottom: 13px;
    color: #8b967f;
    font-size: 10px;
}

.at-detail-thumbnails {
    display: flex;
    gap: 11px;
    overflow-x: auto;
    margin-top: 14px;
    padding-bottom: 5px;
}

.at-detail-thumbnails button {
    width: 78px;
    height: 78px;
    flex-shrink: 0;
    padding: 5px;
    border: 1px solid #e5eadd;
    border-radius: 3px;
    background: white;
}

.at-detail-thumbnails button[aria-pressed="true"] {
    border-color: #6d8a5c;
}

.at-detail-thumbnails img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.at-detail-brand {
    display: block;
    margin-top: 7px;
    color: #8b967d;
    font-size: 10px;
    letter-spacing: .7px;
}

.at-detail-summary h1 {
    margin: 12px 0 15px;
    color: #2b412d;
    font-size: clamp(25px, 2.6vw, 37px);
    font-weight: 500;
    line-height: 1.25;
    letter-spacing: -.9px;
    overflow-wrap: anywhere;
}

.at-detail-identifiers {
    display: flex;
    flex-wrap: wrap;
    gap: 7px 20px;
    color: #929b87;
    font-size: 10px;
}

.at-detail-intro {
    margin-top: 22px;
    color: #7d8971;
    font-size: 12px;
    line-height: 1.9;
    white-space: pre-line;
}

.at-detail-pricing {
    padding-block: 23px;
    margin-block: 23px;
    border-block: 1px solid #e5eadd;
}

.at-detail-price-prefix {
    display: block;
    margin-bottom: 6px;
    color: #8b957f;
    font-size: 10px;
}

.at-detail-price-prefix[hidden],
.at-detail-pricing del[hidden] {
    display: none;
}

.at-detail-pricing strong {
    color: #244f38;
    font-size: 33px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -1px;
}

.at-detail-pricing del {
    margin-left: 12px;
    color: #a0a891;
    font-size: 13px;
}

.at-detail-pricing > small {
    display: block;
    margin-top: 6px;
    color: #909b83;
    font-size: 10px;
}

.at-detail-option {
    margin-bottom: 19px;
}

.at-detail-option label {
    display: block;
    margin-bottom: 8px;
    font-size: 11px;
    font-weight: 600;
}

.at-detail-option select {
    width: 100%;
    min-height: 47px;
    padding: 11px 13px;
    border: 1px solid #dfe6d5;
    border-radius: 3px;
    background: white;
    color: #354b30;
    font-size: 12px;
}

.at-detail-stock {
    min-height: 20px;
    margin-bottom: 13px;
    color: #668254;
    font-size: 11px;
}

.at-detail-stock.is-unavailable {
    color: #a17a63;
}

.at-detail-purchase-row {
    display: flex;
    align-items: stretch;
    gap: 14px;
}

.at-detail-quantity {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    width: 135px;
    min-height: 49px;
    border: 1px solid #dfe6d5;
    border-radius: 3px;
}

.at-detail-quantity button {
    width: 37px;
    height: 47px;
    flex-shrink: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: #496c3d;
    font-size: 20px;
}

.at-detail-quantity input {
    width: 100%;
    min-width: 0;
    height: 45px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #344b30;
    font-size: 13px;
    text-align: center;
    appearance: textfield;
    -moz-appearance: textfield;
}

.at-detail-quantity input::-webkit-inner-spin-button,
.at-detail-quantity input::-webkit-outer-spin-button {
    margin: 0;
    -webkit-appearance: none;
}

.at-detail-add-cart {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    gap: 15px;
    min-height: 49px;
    padding: 12px 20px;
    border: 1px solid #244f38;
    border-radius: 3px;
    background: #244f38;
    color: white;
    font-size: 12px;
    font-weight: 550;
}

.at-detail-add-cart svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 1.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.at-detail-add-cart:disabled {
    border-color: #d3ddca;
    background: #e6ecdf;
    color: #89997b;
    cursor: not-allowed;
}

.at-detail-quantity button:disabled {
    color: #c5cebb;
    cursor: default;
}

.at-detail-help {
    margin-top: 11px;
    color: #929c86;
    font-size: 10px;
}

.at-detail-error {
    margin: 8px 0;
    color: #a46e56;
    font-size: 11px;
}

.at-detail-error:empty {
    display: none;
}

.at-detail-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 15px 0;
    margin-top: 15px;
    border-top: 1px solid #edf0e7;
}

.at-detail-total[hidden] {
    display: none;
}

.at-detail-total > span {
    color: #5e7850;
    font-size: 11px;
}

.at-detail-total small {
    display: block;
    margin-top: 4px;
    color: #99a18e;
    font-size: 9px;
}

.at-detail-total > strong {
    color: #244f38;
    font-size: 17px;
    font-weight: 600;
}

.at-detail-favorite {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 8px 0;
    margin: 10px 0 18px;
    border: 0;
    background: transparent;
    color: #819072;
    font-size: 11px;
}

.at-detail-favorite svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.at-detail-favorite[aria-pressed="true"] {
    color: #a45555;
}

.at-detail-favorite[aria-pressed="true"] svg {
    fill: currentColor;
}

.at-detail-favorite:disabled {
    opacity: .5;
}

.at-detail-facts {
    margin: 0;
}

.at-detail-facts > div {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding-block: 10px;
    border-bottom: 1px solid #edf0e7;
    font-size: 11px;
}

.at-detail-facts dt {
    color: #8a967d;
}

.at-detail-facts dd {
    margin: 0;
    color: #4b6740;
    text-align: right;
}

.at-detail-information {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 60px;
    padding-block: 35px;
    border-top: 1px solid #e5eadd;
}

.at-detail-information h2,
.at-detail-related-heading h2 {
    margin: 0 0 20px;
    color: #30472e;
    font-size: 22px;
    font-weight: 500;
    letter-spacing: -.5px;
}

.at-detail-description {
    color: #7f8b73;
    font-size: 12px;
    line-height: 1.9;
    white-space: pre-line;
    overflow-wrap: anywhere;
}

.at-detail-specifications {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 11px;
}

.at-detail-specifications th,
.at-detail-specifications td {
    padding: 12px 10px;
    border-bottom: 1px solid #e5eadd;
    overflow-wrap: anywhere;
}

.at-detail-specifications th {
    width: 45%;
    color: #8d9881;
    font-weight: 400;
}

.at-detail-related {
    padding-top: 30px;
}

.at-detail-related-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 25px;
}

.at-detail-related-heading h2 {
    margin-bottom: 0;
}

.at-detail-related-heading a {
    color: #55774a;
    font-size: 11px;
}

.at-detail-related-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}

.at-detail-image-dialog {
    width: min(1000px, calc(100vw - 30px));
    max-height: 92vh;
    padding: 50px 20px 20px;
    border: 0;
    background: white;
}

.at-detail-image-dialog::backdrop {
    background: rgb(20 35 21 / 65%);
}

.at-detail-image-dialog > img {
    display: block;
    width: 100%;
    max-height: 75vh;
    object-fit: contain;
}

.at-detail-image-dialog > button {
    position: absolute;
    top: 12px;
    right: 15px;
    padding: 6px 10px;
    border: 0;
    background: #f0f4e9;
    color: #48663c;
    font-size: 12px;
}

@media (max-width: 1050px) {
    .at-detail-layout {
        gap: 35px;
    }
}

@media (max-width: 760px) {
    .at-detail-layout,
    .at-detail-information {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
    }

    .at-detail-layout {
        padding-top: 0;
    }

    .at-detail-main-image {
        padding: 20px;
    }

    .at-detail-thumbnails button {
        width: 65px;
        height: 65px;
    }

    .at-detail-summary h1 {
        font-size: 28px;
    }

    .at-detail-pricing strong {
        font-size: 29px;
    }

    .at-detail-quantity {
        width: 120px;
    }

    .at-detail-purchase-row {
        gap: 10px;
    }

    .at-detail-add-cart {
        padding-inline: 12px;
    }

    .at-detail-related-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 26px 14px;
    }

    .at-detail-information {
        padding-block: 27px;
    }
}

.at-detail-server-errors {
    padding: 13px 16px;
    margin-bottom: 20px;
    border-left: 2px solid #b48065;
    background: #fbf2eb;
    color: #9b6d50;
    font-size: 11px;
    line-height: 1.8;
}

.at-detail-server-errors ul {
    margin: 0;
    padding-left: 15px;
}