﻿.ag-pd {
    background: #f4f5f6;
    padding: 22px 0 0;
}

.ag-pd__bc {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    color: #7b848c;
    font-size: 12px;
    margin-bottom: 18px;
}

    .ag-pd__bc a:hover {
        color: var(--ag-red);
    }

    .ag-pd__bc strong {
        color: #171c20;
        font-weight: 800;
    }

.ag-pd__top {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(390px, .85fr);
    gap: 34px;
    align-items: start;
}

.ag-pd__gallery {
    min-width: 0;
}

.ag-pd__mainbox {
    position: relative;
    min-height: unset;
    aspect-ratio: 1 / 1;
    background: #fff;
    border: 1px solid #e7eaee;
    border-radius: 9px;
    display: block;
    padding: 0;
    overflow: hidden;
}

    .ag-pd__mainbox img {
        display: block;
        width: 100%;
        height: 100%;
        max-width: none;
        max-height: none;
        object-fit: cover;
        object-position: center;
        transition: .18s ease;
    }

    .ag-pd__mainbox:hover img {
        transform: scale(1.025);
    }

.ag-pd__discount-badge {
    position: absolute;
    left: 14px;
    top: 14px;
    z-index: 2;
    background: var(--ag-red);
    color: #fff;
    border-radius: 4px;
    padding: 6px 10px;
    font-size: 11px;
    font-weight: 900;
}

.ag-pd__gbtn {
    position: absolute;
    top: 50%;
    z-index: 2;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 999px;
    background: #fff;
    color: #171c20;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .12);
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 28px;
    line-height: 1;
}

.ag-pd__gbtn--prev {
    left: 16px;
}

.ag-pd__gbtn--next {
    right: 16px;
}

.ag-pd__zoom {
    position: absolute;
    right: 18px;
    bottom: 18px;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 999px;
    background: #fff;
    color: #171c20;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .12);
    cursor: pointer;
}

    .ag-pd__zoom svg {
        width: 19px;
        height: 19px;
        fill: none;
        stroke: currentColor;
        stroke-width: 2;
        stroke-linecap: round;
    }

.ag-pd__thumbs {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    margin-top: 16px;
}

.ag-pd__thumb {
    height: 82px;
    border: 1px solid #e7eaee;
    background: #fff;
    border-radius: 7px;
    padding: 6px;
    cursor: pointer;
}

    .ag-pd__thumb.is-active {
        border-color: var(--ag-red);
        box-shadow: 0 0 0 1px var(--ag-red);
    }

    .ag-pd__thumb img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

.ag-pd__summary {
    background: #fff;
    border: 1px solid #e7eaee;
    border-radius: 9px;
    padding: 26px;
}

.ag-pd__brand {
    display: inline-flex;
    margin-bottom: 8px;
    color: #171c20;
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
}

.ag-pd__title {
    margin: 0;
    color: #171c20;
    font-family: Montserrat, Roboto, Arial, sans-serif;
    font-size: 28px;
    line-height: 1.18;
    font-weight: 900;
}

.ag-pd__rating {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: 12px;
    font-size: 13px;
}

.ag-stars {
    display: inline-flex;
    color: var(--ag-yellow);
    letter-spacing: 1px;
}

    .ag-stars .is-empty {
        color: #d2d7dc;
    }

.ag-pd__rating strong {
    color: #171c20;
}

.ag-pd__rating a {
    color: #6b7280;
}

.ag-pd__features {
    margin-top: 18px;
    color: #4b5563;
    font-size: 13px;
    line-height: 1.65;
}

    .ag-pd__features ul {
        margin: 0;
        padding-left: 18px;
    }

.ag-pd__pricebox {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid #edf0f2;
}

.ag-pd__oldprice {
    color: #9aa2a9;
    font-size: 13px;
    text-decoration: line-through;
    margin-bottom: 3px;
}

.ag-pd__price-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ag-pd__price {
    color: var(--ag-red);
    font-family: Montserrat, Roboto, Arial, sans-serif;
    font-size: 38px;
    font-weight: 900;
    line-height: 1;
}

.ag-pd__disc-pill {
    background: var(--ag-red);
    color: #fff;
    border-radius: 4px;
    padding: 5px 8px;
    font-size: 11px;
    font-weight: 900;
}

.ag-pd__installment {
    margin-top: 8px;
    color: #6b7280;
    font-size: 13px;
}

.ag-pd__option {
    margin-top: 20px;
}

.ag-pd__option-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 9px;
    color: #171c20;
    font-size: 13px;
}

    .ag-pd__option-head span {
        color: #6b7280;
        font-weight: 700;
    }

.ag-pd__variants {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.ag-pd__variant {
    min-width: 46px;
    height: 36px;
    border: 1px solid #e0e4e8;
    background: #fff;
    color: #4b5563;
    border-radius: 4px;
    padding: 0 14px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 800;
}

    .ag-pd__variant.is-active {
        border-color: var(--ag-red);
        color: var(--ag-red);
        box-shadow: 0 0 0 1px var(--ag-red);
    }

    .ag-pd__variant:disabled {
        opacity: .45;
        cursor: not-allowed;
    }

.ag-pd__stockline {
    margin-top: 14px;
    min-height: 20px;
}

.ag-pd__stock {
    font-size: 12px;
    font-weight: 900;
}

.ag-pd__stock--ok {
    color: #16a34a;
}

.ag-pd__stock--bad {
    color: var(--ag-red);
}

.ag-pd__qtyline {
    margin-top: 18px;
}

    .ag-pd__qtyline label {
        display: block;
        margin-bottom: 8px;
        color: #171c20;
        font-size: 13px;
        font-weight: 900;
    }

.ag-pd__qty {
    display: inline-grid;
    grid-template-columns: 44px 56px 44px;
    height: 38px;
    border: 1px solid #e0e4e8;
    border-radius: 4px;
    overflow: hidden;
}

    .ag-pd__qty button {
        border: 0;
        background: #f6f7f8;
        cursor: pointer;
        font-size: 18px;
    }

    .ag-pd__qty input {
        border: 0;
        border-left: 1px solid #e0e4e8;
        border-right: 1px solid #e0e4e8;
        text-align: center;
        outline: 0;
        font-weight: 900;
    }

.ag-pd__actions {
    margin-top: 18px;
    display: grid;
    gap: 10px;
}

.ag-pd__add {
    height: 52px;
    border: 0;
    background: var(--ag-red);
    color: #fff;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 900;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
}

    .ag-pd__add svg {
        width: 20px;
        height: 20px;
        fill: currentColor;
    }

    .ag-pd__add:disabled {
        opacity: .55;
        cursor: not-allowed;
    }

.ag-pd__quickbuy,
.ag-pd__fav {
    height: 42px;
    border: 0;
    background: #151a1e;
    color: #fff;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 900;
    text-transform: uppercase;
}

.ag-pd__actions {
    grid-template-columns: 1fr;
}

.ag-pd__quickbuy,
.ag-pd__fav {
    width: 100%;
}

.ag-pd__subactions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

    .ag-pd__subactions button {
        flex: 1;
        height: 36px;
        border: 1px solid #e0e4e8;
        background: #fff;
        border-radius: 4px;
        cursor: pointer;
        color: #4b5563;
        font-size: 12px;
        font-weight: 900;
    }

.ag-pd__trust {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 18px;
}

    .ag-pd__trust div {
        border: 1px solid #e7eaee;
        border-radius: 6px;
        padding: 10px;
    }

    .ag-pd__trust strong {
        display: block;
        color: #171c20;
        font-size: 11px;
        font-weight: 900;
    }

    .ag-pd__trust small {
        display: block;
        margin-top: 3px;
        color: #6b7280;
        font-size: 10px;
        line-height: 1.35;
    }

.ag-pd__servicebar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: #fff;
    border: 1px solid #e7eaee;
    border-radius: 9px;
    margin-top: 26px;
    overflow: hidden;
}

    .ag-pd__servicebar div {
        padding: 18px 20px;
        border-right: 1px solid #e7eaee;
    }

        .ag-pd__servicebar div:last-child {
            border-right: 0;
        }

    .ag-pd__servicebar strong {
        display: block;
        color: #171c20;
        font-size: 13px;
        font-weight: 900;
        text-transform: uppercase;
    }

    .ag-pd__servicebar small {
        display: block;
        color: #6b7280;
        margin-top: 4px;
        font-size: 11px;
    }

.ag-pd__tabs {
    margin-top: 28px;
    background: #fff;
    border: 1px solid #e7eaee;
    border-radius: 9px;
}

.ag-pd__tabnav {
    display: flex;
    border-bottom: 1px solid #e7eaee;
    overflow-x: auto;
}

.ag-pd__tabbtn {
    height: 52px;
    border: 0;
    background: transparent;
    padding: 0 24px;
    cursor: pointer;
    color: #4b5563;
    font-weight: 900;
    position: relative;
    white-space: nowrap;
}

    .ag-pd__tabbtn.is-active {
        color: #171c20;
    }

        .ag-pd__tabbtn.is-active::after {
            content: "";
            position: absolute;
            left: 20px;
            right: 20px;
            bottom: 0;
            height: 3px;
            background: var(--ag-red);
        }

.ag-pd__tabcontent {
    padding: 24px;
}

.ag-pd__pane {
    display: none;
}

    .ag-pd__pane.is-active {
        display: block;
    }

.ag-pd__descgrid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 28px;
}

.ag-pd__desc {
    color: #2f3740;
    font-size: 14px;
    line-height: 1.75;
}

.ag-pd__mini-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 24px;
}

    .ag-pd__mini-features div {
        border-top: 1px solid #edf0f2;
        padding-top: 13px;
    }

    .ag-pd__mini-features strong {
        display: block;
        color: #171c20;
        font-weight: 900;
        margin-bottom: 4px;
    }

    .ag-pd__mini-features small {
        color: #6b7280;
    }

.ag-pd__spec-card {
    border: 1px solid #e7eaee;
    border-radius: 8px;
    overflow: hidden;
    align-self: start;
}

.ag-pd__spec-card--full {
    max-width: 760px;
}

.ag-pd__spec-card h3 {
    margin: 0;
    padding: 16px 18px;
    color: #171c20;
    font-size: 16px;
    font-weight: 900;
    border-bottom: 1px solid #e7eaee;
}

.ag-pd__specs div {
    display: grid;
    grid-template-columns: 160px 1fr;
    border-bottom: 1px solid #edf0f2;
}

    .ag-pd__specs div:last-child {
        border-bottom: 0;
    }

.ag-pd__specs strong,
.ag-pd__specs span {
    padding: 12px 16px;
    font-size: 13px;
}

.ag-pd__specs strong {
    color: #171c20;
    background: #fafafa;
}

.ag-pd__specs span {
    color: #4b5563;
}

.ag-comments {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 26px;
}

.ag-comments__summary {
    border: 1px solid #e7eaee;
    border-radius: 8px;
    padding: 24px;
    align-self: start;
    text-align: center;
}

    .ag-comments__summary > strong {
        display: block;
        color: #171c20;
        font-size: 42px;
        line-height: 1;
        font-weight: 900;
    }

    .ag-comments__summary small {
        font-size: 18px;
    }

    .ag-comments__summary p {
        color: #6b7280;
        font-size: 13px;
    }

    .ag-comments__summary button {
        width: 100%;
        height: 40px;
        border: 0;
        border-radius: 4px;
        background: var(--ag-red);
        color: #fff;
        font-weight: 900;
        cursor: pointer;
    }

.ag-comments__list {
    display: grid;
    gap: 14px;
}

.ag-comment {
    border: 1px solid #e7eaee;
    border-radius: 8px;
    padding: 16px;
}

.ag-comment__top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

    .ag-comment__top strong {
        display: block;
        color: #171c20;
    }

    .ag-comment__top span {
        color: #16a34a;
        font-size: 11px;
        font-weight: 800;
    }

    .ag-comment__top time {
        color: #6b7280;
        font-size: 12px;
    }

.ag-comment__stars {
    color: var(--ag-yellow);
    letter-spacing: 1px;
    margin-bottom: 8px;
}

    .ag-comment__stars .is-empty {
        color: #d2d7dc;
    }

.ag-comment p {
    margin: 0;
    color: #4b5563;
    line-height: 1.55;
}

.ag-comments__empty {
    color: #6b7280;
    border: 1px dashed #d7dce1;
    border-radius: 8px;
    padding: 18px;
}

.ag-alert {
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 13px;
}

.ag-alert--success {
    background: #dcfce7;
    color: #166534;
}

.ag-alert--error {
    background: #fee2e2;
    color: #991b1b;
}

.ag-alert--warn {
    background: #fef3c7;
    color: #92400e;
}

.ag-installment h3 {
    margin-top: 0;
}

.ag-installment__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 16px;
}

    .ag-installment__grid div {
        border: 1px solid #e7eaee;
        border-radius: 8px;
        padding: 16px;
    }

    .ag-installment__grid strong,
    .ag-installment__grid span {
        display: block;
    }

    .ag-installment__grid span {
        color: var(--ag-red);
        margin-top: 6px;
        font-weight: 900;
    }

.ag-pd__rail {
    margin-top: 30px;
}

.ag-pd__rail-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

    .ag-pd__rail-head h2 {
        margin: 0;
        color: #171c20;
        font-family: Montserrat, Roboto, Arial, sans-serif;
        font-size: 20px;
        font-weight: 900;
    }

    .ag-pd__rail-head button {
        width: 34px;
        height: 34px;
        border: 1px solid #e0e4e8;
        border-radius: 999px;
        background: #fff;
        cursor: pointer;
        font-size: 23px;
    }

.ag-pd__rail-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 48px) / 4);
    gap: 16px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding-bottom: 4px;
}

    .ag-pd__rail-track::-webkit-scrollbar {
        height: 0;
    }

.ag-pd__rail-item {
    min-width: 0;
}

.ag-pd__banner {
    margin: 34px 0 34px;
    min-height: 185px;
    border-radius: 9px;
    background: linear-gradient(90deg, rgba(12,15,18,.94), rgba(12,15,18,.70), rgba(12,15,18,.25)), linear-gradient(120deg, #151a1e, #4b5563);
    color: #fff;
    display: flex;
    align-items: center;
    padding: 34px 46px;
}

    .ag-pd__banner h2 {
        margin: 0;
        font-family: Montserrat, Roboto, Arial, sans-serif;
        font-size: 30px;
        line-height: 1.15;
        text-transform: uppercase;
        font-weight: 900;
    }

        .ag-pd__banner h2 span {
            display: block;
            color: var(--ag-red);
        }

    .ag-pd__banner p {
        color: #d8dde2;
    }

    .ag-pd__banner a {
        display: inline-flex;
        height: 40px;
        align-items: center;
        padding: 0 18px;
        border-radius: 4px;
        background: var(--ag-red);
        color: #fff;
        font-size: 12px;
        font-weight: 900;
        text-transform: uppercase;
    }

.ag-pd__lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
}

    .ag-pd__lightbox.is-open {
        display: block;
    }

.ag-pd__lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.76);
}

.ag-pd__lightbox-dialog {
    position: relative;
    width: min(820px, 92vw);
    height: min(820px, 86vh);
    margin: 6vh auto 0;
    background: transparent;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    overflow: hidden;
}

    .ag-pd__lightbox-dialog img {
        display: block;
        width: 100%;
        height: 100%;
        max-width: none;
        max-height: none;
        object-fit: cover;
        object-position: center;
        border-radius: 12px;
    }

.ag-pd__lightbox-close,
.ag-pd__lightbox-nav {
    position: absolute;
    border: 0;
    background: #151a1e;
    color: #fff;
    cursor: pointer;
}

.ag-pd__lightbox-close {
    right: 14px;
    top: 14px;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    font-size: 25px;
}

.ag-pd__lightbox-nav {
    top: 50%;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    transform: translateY(-50%);
    font-size: 30px;
}

.ag-pd__lightbox-nav--prev {
    left: 18px;
}

.ag-pd__lightbox-nav--next {
    right: 18px;
}

.ag-compare {
    padding: 28px 0 46px;
    background: #f4f5f6;
}

.ag-compare__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
}

    .ag-compare__head h1 {
        margin: 0;
        color: #171c20;
        font-family: Montserrat, Roboto, Arial, sans-serif;
        font-size: 26px;
        font-weight: 900;
    }

.ag-compare__actions {
    display: flex;
    gap: 8px;
}

    .ag-compare__actions button {
        height: 38px;
        border: 1px solid #e0e4e8;
        background: #fff;
        border-radius: 6px;
        padding: 0 14px;
        cursor: pointer;
        font-weight: 900;
    }

.ag-compare__root {
    background: #fff;
    border: 1px solid #e7eaee;
    border-radius: 9px;
    padding: 16px;
}

@media (max-width: 1080px) {
    .ag-pd__top {
        grid-template-columns: 1fr;
    }

    .ag-pd__summary {
        order: 2;
    }

    .ag-pd__gallery {
        order: 1;
    }

    .ag-pd__descgrid {
        grid-template-columns: 1fr;
    }

    .ag-comments {
        grid-template-columns: 1fr;
    }

    .ag-pd__servicebar {
        grid-template-columns: repeat(2, 1fr);
    }

    .ag-pd__rail-track {
        grid-auto-columns: calc((100% - 32px) / 3);
    }
}

@media (max-width: 760px) {
    .ag-pd__mainbox {
        min-height: unset;
        padding: 0;
    }

        .ag-pd__mainbox img {
            max-height: none;
        }

    .ag-pd__summary {
        padding: 20px;
    }

    .ag-pd__title {
        font-size: 23px;
    }

    .ag-pd__price {
        font-size: 31px;
    }

    .ag-pd__thumbs {
        grid-template-columns: repeat(4, 1fr);
    }

    .ag-pd__trust,
    .ag-pd__servicebar,
    .ag-installment__grid {
        grid-template-columns: 1fr;
    }

        .ag-pd__servicebar div {
            border-right: 0;
            border-bottom: 1px solid #e7eaee;
        }

            .ag-pd__servicebar div:last-child {
                border-bottom: 0;
            }

    .ag-pd__mini-features {
        grid-template-columns: 1fr;
    }

    .ag-pd__rail-track {
        grid-auto-columns: calc((100% - 16px) / 2);
    }

    .ag-pd__banner {
        padding: 26px;
    }

        .ag-pd__banner h2 {
            font-size: 24px;
        }

    .ag-compare__head {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 520px) {
    .ag-pd__rail-track {
        grid-auto-columns: 82%;
    }

    .ag-pd__tabcontent {
        padding: 18px;
    }

    .ag-pd__specs div {
        grid-template-columns: 1fr;
    }

    .ag-pd__specs strong,
    .ag-pd__specs span {
        padding: 10px 14px;
    }
}
