.product-detail-page {
    max-width: none;
    padding: 38px 0 74px;
}

.product-detail-container {
    width: min(100% - 48px, 1500px);
    margin: 0 auto;
}

.product-detail-layout {
    display: grid;
    grid-template-columns: minmax(340px, 1.05fr) minmax(420px, 1.28fr);
    gap: 52px;
    align-items: start;
}

.product-gallery-main {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background: #0a1411;
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.28);
}

.product-gallery-main img {
    display: block;
    width: 100%;
    aspect-ratio: 1.22;
    object-fit: cover;
}

.product-status-badge {
    position: absolute;
    top: 18px;
    left: 18px;
    z-index: 1;
    padding: 9px 13px;
    border-radius: 7px;
    background: #18b950;
    color: #fff;
    font-size: 14px;
    font-weight: 900;
}

.product-gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.product-gallery-thumbs img {
    width: 100%;
    aspect-ratio: 1.42;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 7px;
    opacity: 0.82;
}

.product-gallery-thumbs img.is-active {
    border-color: #18d47a;
    opacity: 1;
}

.product-detail-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 290px;
    gap: 42px;
}

.product-detail-main h1 {
    position: relative;
    margin: 0 0 34px;
    color: #fff;
    font-size: 48px;
    line-height: 1.04;
    text-align: left;
}

.product-detail-main h1::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -16px;
    width: 44px;
    height: 2px;
    background: #18d47a;
}

.product-detail-description {
    margin: 0 0 24px;
    max-width: 620px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 16px;
    line-height: 1.75;
}

.product-favorite-form {
    margin: -6px 0 24px;
}

.product-favorite-button {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 7px;
    padding: 0 16px;
    color: rgba(255, 255, 255, 0.88);
    background: rgba(255, 255, 255, 0.055);
    font: inherit;
    font-size: 15px;
    font-weight: 900;
    cursor: pointer;
}

.product-favorite-button:hover,
.product-favorite-button.is-favorite {
    border-color: rgba(24, 212, 122, 0.58);
    color: #18d47a;
    background: rgba(24, 212, 122, 0.1);
}

.product-favorite-button span {
    font-size: 18px;
    line-height: 1;
}

.product-detail-facts {
    display: grid;
    gap: 13px;
    margin: 0 0 26px;
    padding: 22px 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.product-detail-facts div {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 16px;
}

.product-detail-facts dt,
.product-detail-facts dd {
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 15px;
}

.product-detail-facts dt {
    color: #fff;
    font-weight: 900;
}

.product-buy-card {
    max-width: 520px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015));
}

.product-admin-preview-note {
    display: grid;
    gap: 6px;
    padding: 15px 17px;
    border: 1px solid rgba(36, 199, 107, 0.34);
    border-radius: 7px;
    background: rgba(36, 199, 107, 0.09);
}

.product-admin-preview-note strong {
    color: #24c76b;
}

.product-admin-preview-note span {
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.45;
}

.product-buy-head {
    display: flex;
    justify-content: space-between;
    gap: 22px;
    margin-bottom: 18px;
}

.product-buy-head span,
.product-buy-head small {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.product-buy-head strong {
    display: block;
    margin-top: 8px;
    color: #18d47a;
    font-size: 30px;
    line-height: 1;
}

.product-login-price {
    margin-top: 8px;
    color: #18d47a;
    font-size: 18px;
    font-weight: 900;
}

.product-packaging-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.product-packaging-option {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 11px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 7px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 14px;
    cursor: pointer;
}

.product-packaging-option:has(input:checked) {
    border-color: #18d47a;
    color: #fff;
}

.product-order-unit-options {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    margin: 0 0 18px;
    padding: 0;
    border: 0;
}

.product-order-unit-options legend {
    width: 100%;
    margin-bottom: 2px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 14px;
}

.product-order-unit-options label {
    display: inline-flex;
    flex: 1 1 0;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-width: 0;
    padding: 9px 8px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 7px;
    color: rgba(255, 255, 255, 0.82);
    cursor: pointer;
}

.product-order-unit-options label:has(input:checked) {
    border-color: #18d47a;
    background: rgba(24, 212, 122, 0.1);
    color: #fff;
}

.product-quantity-row {
    display: grid;
    gap: 8px;
    margin-bottom: 16px;
}

.product-quantity-row label {
    color: rgba(255, 255, 255, 0.72);
    font-size: 14px;
}

.product-quantity-control {
    display: inline-grid;
    grid-template-columns: 46px 96px 52px 46px;
    width: max-content;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 7px;
}

.product-quantity-control button,
.product-quantity-control input,
.product-quantity-control strong {
    height: 44px;
    border: 0;
    border-right: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.035);
    color: #fff;
    font-size: 18px;
    text-align: center;
}

.product-quantity-control strong {
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 1px solid rgba(255, 255, 255, 0.18);
    color: #18d47a;
    font-size: 15px;
}

.product-quantity-control button:last-child {
    border-right: 0;
}

.product-quantity-control button {
    cursor: pointer;
}

.product-quantity-control input {
    appearance: textfield;
}

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

.product-quantity-row > small {
    min-height: 18px;
    color: #ffb4b4;
    font-size: 13px;
}

.product-form-actions {
    display: grid;
    gap: 12px;
    margin-top: 16px;
}

.product-form-actions .btn-primary,
.product-detail-login {
    display: inline-flex;
    align-items: center;
    min-height: 52px;
    padding: 13px 18px;
    border: 0;
    border-radius: 7px;
    width: 100%;
    justify-content: center;
    background: #18b950;
    color: #ffffff;
    cursor: pointer;
    font-size: 17px;
    font-weight: 900;
    line-height: 1;
    text-decoration: none;
}

.product-form-actions .btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 13px 18px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 7px;
    width: 100%;
    background: transparent;
    color: #fff;
    cursor: pointer;
    font-size: 17px;
    font-weight: 800;
    line-height: 1;
}

.product-detail-page .product-buy-card .price-tier-box {
    margin: 14px 0;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.035);
    color: rgba(255, 255, 255, 0.74);
}

.product-detail-page .product-buy-card .price-tier-box strong {
    display: block;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.86);
}

.product-detail-page .product-buy-card .price-tier-box div,
.product-detail-page .product-buy-card .price-tier-box td,
.product-detail-page .product-buy-card .price-tier-box th,
.product-detail-page .product-buy-card #info {
    color: rgba(255, 255, 255, 0.74);
    font-size: 14px;
}

.product-detail-page .product-buy-card .price-tier-offer {
    color: #18d47a;
}

.product-detail-page .product-buy-card .price-tier-table {
    color: rgba(255, 255, 255, 0.82);
}

.product-detail-page .product-buy-card .price-tier-table th,
.product-detail-page .product-buy-card .price-tier-table td {
    border-bottom-color: rgba(255, 255, 255, 0.12);
}

.product-detail-aside {
    display: grid;
    gap: 26px;
    padding-top: 158px;
}

.product-detail-aside div,
.product-detail-bottom div {
    position: relative;
    padding-left: 54px;
}

.product-benefit-icon {
    position: absolute;
    top: 0;
    left: 0;
    width: 34px;
    height: 34px;
    border: 2px solid #18d47a;
    border-radius: 9px;
}

.product-benefit-icon::after {
    content: "";
    position: absolute;
    top: 8px;
    left: 8px;
    width: 12px;
    height: 7px;
    border-left: 2px solid #18d47a;
    border-bottom: 2px solid #18d47a;
    transform: rotate(-45deg);
}

.product-detail-aside strong,
.product-detail-bottom strong {
    display: block;
    color: #fff;
    font-size: 15px;
}

.product-detail-aside p,
.product-detail-bottom p {
    margin: 8px 0 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    line-height: 1.65;
}

.product-detail-bottom {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 34px;
    margin: 36px 0 0 calc(50% + 26px);
}

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

    .product-detail-aside {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding-top: 0;
    }

    .product-detail-bottom {
        margin-left: 0;
    }
}

@media (max-width: 760px) {
    .product-detail-page {
        padding-top: 30px;
    }

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

    .product-detail-main h1 {
        font-size: 36px;
    }

    .product-detail-facts div,
    .product-detail-aside,
    .product-detail-bottom {
        grid-template-columns: 1fr;
    }
}
