/* Product detail layout */
.product-detail {
    padding: 28px 0 48px;
    background: #faf9f5;
    color: #25282b;
    font-size: 17px;
    line-height: 1.6;
}

.product-detail .product-detail-container {
    width: calc(100% - 48px);
    max-width: 1220px;
    padding: 0;
}

.product-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.35fr);
    align-items: start;
    gap: 32px;
}

.product-detail-media,
.product-detail-purchase {
    min-width: 0;
}

.product-detail-media {
    padding-top: 20px;
}

.product-image-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0;
    padding: 16px 16px 28px;
    border: 1px solid #e3e2df;
    border-radius: 11px;
    background: #fff;
    box-shadow: 0 5px 14px rgb(45 37 22 / 6%);
}

.product-image-card picture {
    display: block;
    width: 100%;
    aspect-ratio: 1;
}

.product-image-card img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-catalog-number {
    max-width: 100%;
    margin-top: 24px;
    padding: 7px 16px;
    border: 1px solid #b78b39;
    border-radius: 6px;
    color: #3c4043;
    font-size: 16px;
    overflow-wrap: anywhere;
}

.product-detail-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.product-detail-heading {
    min-width: 0;
}

.product-stock {
    display: inline-block;
    margin-bottom: 8px;
    padding: 6px 15px;
    border-radius: 5px;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
}

.product-stock-available {
    background: #078847;
}

.product-stock-pending {
    background: #8b6c35;
}

.product-detail .product-detail-heading h1 {
    margin: 0;
    padding: 0;
    color: #25282b;
    font-family: "Raleway", sans-serif;
    font-size: clamp(25px, 2.2vw, 33px);
    font-weight: 700;
    line-height: 1.2;
}

.product-detail-description {
    margin-top: 6px;
    color: #41464a;
    font-size: 17px;
    line-height: 1.6;
}

.product-detail-description p {
    margin: 0 0 6px;
}

.product-detail-price {
    flex-shrink: 0;
    padding-left: 22px;
    border-left: 1px solid #d6c7a8;
    text-align: right;
}

.product-detail .product-unit-price {
    margin: 0;
    color: #ac7c21;
    font-family: "Poppins", sans-serif;
    font-size: 36px;
    font-weight: 600;
    line-height: 1.3;
}

.product-unit-price span {
    color: #25282b;
    font-family: "Raleway", sans-serif;
    font-size: 21px;
    font-weight: 500;
}

.product-detail-price small {
    color: #41464a;
    font-size: 16px;
}
/* end of Product detail layout */

/* Product calculator card */
.product-detail-purchase .card,
.product-detail .recalc-panel {
    overflow: hidden;
    border: 1px solid #e2dfd8;
    border-radius: 11px;
    background: #fff;
    box-shadow: 0 5px 14px rgb(45 37 22 / 8%);
}

.product-detail-purchase .card-header,
.product-detail .product-calculator .panel-header {
    padding: 13px 20px;
    border: 0;
    background: linear-gradient(110deg, #886321, #94702d);
    color: #fff;
}

.product-detail .product-calculator-title {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 0;
    padding: 0;
    color: #fff;
    font-family: "Raleway", sans-serif;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.4;
}

.product-detail-purchase .card-body,
.product-detail .product-calculator .panel-body {
    padding: 20px;
}

.product-calculator-form fieldset {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.product-calculator-form .product-calculator-legend {
    display: flex;
    align-items: center;
    float: none;
    gap: 12px;
    width: auto;
    margin: 0 0 12px;
    padding: 0;
    color: #25282b;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.4;
}

.product-calculator-legend i {
    width: 23px;
    color: #8a6a32;
    font-size: 21px;
    text-align: center;
}

.product-dimensions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
    gap: 20px;
}

.product-dimension,
.product-quantity {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
}

.product-dimension-input {
    display: flex;
    align-items: center;
    width: 116px;
    height: 48px;
    border: 1px solid #9d814f;
    border-radius: 6px;
    background: #fff;
}

.product-dimension-input input {
    min-width: 0;
    width: 100%;
    height: 100%;
    padding: 3px 5px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #25282b;
    font-size: 19px;
    text-align: center;
}

.product-dimension-input span {
    padding-right: 7px;
    color: #4b5054;
    font-size: 16px;
}

.product-dimension-input:focus-within,
.product-quantity-control:focus-within {
    border-color: #b68b36;
    box-shadow: 0 0 0 3px rgb(182 139 54 / 16%);
}

.product-dimension-input input:focus,
.product-quantity-control input:focus {
    outline: none;
}

.product-quantity {
    padding-left: 0;
}

.product-quantity-control {
    display: flex;
    overflow: hidden;
    height: 48px;
    border: 1px solid #979da1;
    border-radius: 5px;
}

.product-quantity-control button {
    width: 46px;
    padding: 0;
    border: 0;
    background: #fafafa;
    color: #30383d;
    font-size: 27px;
    line-height: 1;
}

.product-quantity-control button:disabled {
    color: #777d80;
    background: #e7e8e9;
}

.product-quantity-control input {
    width: 50px;
    padding: 0 3px;
    border: 0;
    border-right: 1px solid #dedede;
    border-left: 1px solid #dedede;
    border-radius: 0;
    appearance: textfield;
    color: #25282b;
    font-size: 19px;
    text-align: center;
}

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

.product-arms {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 48px;
    margin-left: 0;
    font-size: 16px;
    cursor: pointer;
}

.product-arms input {
    position: relative;
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    margin: 0;
    border: 2px solid #886321;
    border-radius: 4px;
    appearance: none;
    background: #fff;
}

.product-arms input:checked {
    background: #886321;
}

.product-arms input:checked::after {
    position: absolute;
    inset: 0;
    color: #fff;
    content: "✓";
    font-size: 18px;
    line-height: 20px;
    text-align: center;
}

.product-arms input:focus-visible {
    outline: 3px solid #175a7a;
    outline-offset: 3px;
}
/* end of Product calculator card */

/* Product calculator choices */
.product-materials {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    margin-top: 24px;
    padding-top: 22px;
    border-top: 1px solid #e8e3d9;
}

.product-materials .product-material + .product-material {
    padding-left: 0;
}

.product-material-choices {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.product-detail .product-material-choice {
    min-width: 0;
}

.product-detail .product-material-choice input[type="radio"] {
    position: absolute;
    z-index: 1;
    inset: 50% auto auto 12px;
    width: 22px;
    height: 22px;
    margin: 0;
    accent-color: #886321;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(-50%);
}

.product-detail .product-material-choice .sklo-body,
.product-detail .product-material-choice .podklad-body {
    height: 100%;
    min-height: 86px;
    padding: 12px 10px 12px 38px;
    border: 2px solid #a8adb0;
    border-radius: 7px;
    background: linear-gradient(#fff, #fafafa);
    box-shadow: 0 1px 2px rgb(0 0 0 / 4%);
}

.product-detail .product-material-choice .title {
    margin-bottom: 6px;
    color: #25282b;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
}

.product-detail .product-material-choice .subtitle {
    color: #30363a;
    font-size: 14px;
    line-height: 1.5;
    white-space: normal;
}

.product-detail .product-material-choice input[type="radio"]:checked + span,
.product-detail .product-option input:checked + .option-content {
    border-color: #886321;
    background: #f5e7c8;
    box-shadow: inset 0 0 0 1px #886321;
}

.product-detail .product-material-choice input:focus-visible + span,
.product-detail .product-option input:focus-visible + .option-content {
    outline: 3px solid #175a7a;
    outline-offset: 3px;
}

.product-calculator-form .product-options {
    margin-top: 24px;
    padding-top: 22px;
    border-top: 1px solid #e8e3d9;
}

.product-options-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.product-detail .product-option {
    position: relative;
    min-width: 0;
    margin: 0;
}

.product-detail .product-option input[type="checkbox"],
.product-detail .product-option input[type="radio"] {
    position: absolute;
    z-index: 1;
    display: block;
    top: 50%;
    left: 14px;
    width: 22px;
    height: 22px;
    margin: 0;
    accent-color: #886321;
    opacity: 1;
    transform: translateY(-50%);
}

.product-detail .product-option .option-content {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 9px;
    min-height: 56px;
    padding: 12px 12px 12px 48px;
    border: 2px solid #a8adb0;
    border-radius: 7px;
    background: linear-gradient(#fff, #fafafa);
    box-shadow: 0 1px 2px rgb(0 0 0 / 4%);
}

.product-detail .product-option .option-content i {
    display: none;
}

.product-detail .product-option .option-content span {
    flex: initial;
    color: #25282b;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
}

.product-configuration {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 7px 12px;
    margin-top: 19px;
    padding: 12px 14px;
    border-radius: 7px;
    background: #f7f1e5;
    color: #30363a;
    font-size: 16px;
    line-height: 1.6;
}

.product-configuration i {
    align-self: center;
    color: #b18330;
    font-size: 18px;
}

.product-configuration strong {
    font-weight: 700;
}

.product-configuration [data-product-summary] {
    flex: 1 1 230px;
}

.product-detail .product-calculate-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    width: 100%;
    margin-top: 15px;
    min-height: 56px;
    padding: 12px 16px;
    border: 1px solid #1b2d35;
    border-radius: 7px;
    background: #233740;
    color: #fff;
    font-size: 21px;
    font-weight: 700;
}

.product-detail .product-calculate-button:hover {
    background: #172a33;
    color: #fff;
}

.product-detail .cart-info-box {
    padding: 0;
    border: 0;
    background: transparent;
}

.product-detail .calc-result {
    margin-top: 0;
    border-radius: 10px;
}

.product-detail .recalc-panel {
    margin-top: 0;
}

.product-detail .form-control {
    min-height: 48px;
    font-size: 18px;
}

.product-detail .calc-result-eyebrow,
.product-detail .calc-result-item span {
    color: #4b5054;
    font-size: 14px;
    line-height: 1.5;
}

.product-detail .calc-result-item strong {
    color: #25282b;
    font-size: 17px;
}

.product-detail .calc-result-main-price {
    color: #805c1c;
    font-size: 34px;
    line-height: 1.3;
}

.product-detail .calc-result-head small {
    color: #41464a;
    font-size: 16px;
}

.product-detail .calc-result-options span {
    padding: 7px 10px;
    font-size: 16px;
    line-height: 1.5;
}

.product-detail .calc-result-options i {
    color: #805c1c;
    font-size: 14px;
}

.product-detail .calc-result-prices {
    grid-template-columns: minmax(0, 1fr);
}

.product-detail .calc-result-prices > div {
    margin-right: 0;
    padding: 10px 0;
    border-right: 0;
    border-bottom: 1px solid #e8e3d9;
    font-size: 17px;
}

.product-detail .calc-result-prices strong {
    color: #805c1c;
    font-size: 18px;
}

.product-detail .calc-result-actions .btn {
    min-height: 52px;
    padding: 12px 15px;
    font-size: 18px;
}

.product-detail .calc-result-actions .btn-gold {
    border-color: #886321;
    background: #886321;
    color: #fff;
}

.product-detail .calc-result-actions .btn-gold:hover {
    background: #73521a;
}
/* end of Product calculator choices */

/* Product detail responsive layout */
@media (max-width: 1199.98px) {
    .product-detail-layout {
        gap: 24px;
    }

    .product-detail-header {
        flex-wrap: wrap;
        gap: 14px;
    }

    .product-detail-price {
        padding-left: 0;
        border-left: 0;
        text-align: left;
    }

    .product-detail .product-unit-price {
        font-size: 30px;
    }

    .product-quantity {
        padding-left: 0;
        border-left: 0;
    }

    .product-arms {
        margin-left: 0;
    }

    .product-materials {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }

    .product-materials .product-material + .product-material {
        padding-left: 0;
        border-left: 0;
    }

    .product-options-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    .product-detail-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .product-detail-media {
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
        padding-top: 0;
    }

    .product-detail-header {
        justify-content: space-between;
    }

    .product-detail-price {
        text-align: right;
    }
}

@media (max-width: 575.98px) {
    .product-detail {
        padding-top: 20px;
    }

    .product-detail .product-detail-container {
        width: calc(100% - 28px);
    }

    .product-image-card {
        padding: 12px 12px 22px;
    }

    .product-catalog-number {
        margin-top: 18px;
        font-size: 16px;
    }

    .product-detail-header {
        align-items: flex-start;
    }

    .product-detail-price {
        text-align: left;
    }

    .product-detail .product-calculator-title {
        gap: 10px;
        font-size: 22px;
    }

    .product-detail-purchase .card-body,
    .product-detail .product-calculator .panel-body {
        padding: 16px 13px;
    }

    .product-dimensions {
        gap: 18px 12px;
    }

    .product-dimension {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        gap: 8px;
    }

    .product-dimension-input {
        width: 100%;
    }

    .product-quantity {
        grid-column: 1 / -1;
        justify-content: space-between;
        width: 100%;
    }

    .product-arms {
        grid-column: 1 / -1;
    }

    .product-material-choices,
    .product-options-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .product-detail .product-material-choice .sklo-body,
    .product-detail .product-material-choice .podklad-body {
        flex-direction: row;
        justify-content: space-between;
        gap: 12px;
        min-height: 64px;
        padding: 12px 12px 12px 44px;
        text-align: left;
    }

    .product-detail .product-material-choice .title {
        margin-bottom: 0;
    }

    .product-detail .product-material-choice .subtitle {
        flex-shrink: 0;
        max-width: 50%;
        text-align: right;
    }

    .product-configuration {
        padding: 10px;
    }

    .product-configuration [data-product-summary] {
        flex-basis: 100%;
    }

    .product-detail .calc-result-head {
        flex-wrap: wrap;
    }

    .product-detail .calc-result-actions {
        grid-template-columns: minmax(0, 1fr);
    }
}
/* end of Product detail responsive layout */
