/* Подарункові сертифікати.
   Використовуємо токени та класи теми; тут — лише те, чого в темі немає. */

/* ---------- Картка сертифіката ---------- */

.cert-page .cert-top {
    margin-bottom: 2.5rem;
}

.cert-page .cert-image {
    margin-bottom: 1.5rem;
}

.cert-page .cert-image img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: .5rem;
}

.cert-page .cert-title {
    padding-bottom: .75rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--primary-burgundy);
    text-align: left;
}

.cert-page .cert-description {
    margin-bottom: 1.5rem;
    color: var(--gray-60);
    font-size: .875rem;
}

.cert-page .cert-description p:last-child {
    margin-bottom: 0;
}

.cert-page .cert-price {
    display: flex;
    align-items: baseline;
    gap: .375rem;
    margin-bottom: 1.5rem;
}

.cert-page .cert-price-label {
    font-size: .875rem;
    color: var(--gray-60);
}

/* ---------- Номінал ---------- */

.cert-page .cert-nominal {
    background: var(--primary-light-gray);
    border: 1px solid var(--gray-20);
    border-radius: .375rem;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.cert-page .cert-nominal .form-group {
    margin-bottom: 0;
}

.cert-page .cert-nominal.product-options .option-volume {
    flex-direction: column;
    align-items: flex-start;
    gap: .75rem;
}

.cert-page .cert-nominal.product-options .option-volume [id^=input-option] {
    gap: .5rem;
}

.cert-page .cert-nominal.product-options .option-volume [id^=input-option] .radio label span {
    min-width: 4.25rem;
    text-align: center;
    font-size: .875rem;
}

/* ---------- Форма ---------- */

.cert-form .has-error .form-control {
    border-color: var(--primary-burgundy);
}

/* Підказки Нової Пошти малює спільний asp_novaposhta.js — стилі в asp_novaposhta.css.
   Тут лише те, чого той файл не покриває на цій сторінці. */
.cert-form .novaposhta-content {
    position: relative;
}


.cert-form .cert-pickup-address {
    display: none;
    margin-bottom: 1.5rem;
    color: var(--gray-60);
    font-size: .875rem;
}

.cert-form .cert-pickup-address p {
    margin: 0 0 .25rem;
}

.cert-form .cert-form-error {
    margin-bottom: 1rem;
    color: var(--primary-burgundy);
    font-size: .875rem;
}

.cert-form textarea.form-control {
    min-height: 6.25rem;
    height: auto;
}

/* ---------- Лістинг категорії ---------- */

.certs-page .certs-description {
    margin-bottom: 1.5rem;
}

.certs-page .certs-item {
    margin-bottom: 1.5rem;
}

.certs-page .cert-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid var(--gray-20);
    border-radius: .5rem;
    overflow: hidden;
}

.certs-page .cert-card-image {
    display: block;
}

.certs-page .cert-card-image img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    object-fit: cover;
}

.certs-page .cert-card-body {
    padding: 1.25rem;
}

.certs-page .cert-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.certs-page .cert-card-name {
    display: block;
    font-family: var(--second-family);
    font-size: 1.125rem;
    text-transform: uppercase;
    color: var(--primary-black);
}

.certs-page .cert-card-subtitle {
    margin-top: .25rem;
    font-size: .875rem;
    color: var(--gray-60);
}

.certs-page .cert-card-btn {
    flex-shrink: 0;
    padding: .625rem 1.5rem;
}

.certs-page .cert-card-text {
    font-size: .875rem;
}

.certs-page .cert-card-text p:last-child {
    margin-bottom: 0;
}

/* ---------- Як використати сертифікат ---------- */

.cert-howto {
    background: var(--primary-light-gray);
    padding: 2.5rem 0;
    margin-top: 1.5rem;
}

.cert-howto-title {
    font-family: var(--second-family);
    font-weight: 400;
    font-size: 1.125rem;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: .5rem;
}

.cert-howto-desc {
    text-align: center;
    color: var(--gray-60);
    font-size: .875rem;
    margin-bottom: 1.5rem;
}

.cert-howto-steps .col-12 {
    margin-bottom: 1rem;
}

.cert-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    background: var(--white);
    border-radius: .5rem;
    padding: 2rem 1.25rem;
    text-align: center;
}

.cert-step-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    margin-bottom: 1.25rem;
    border-radius: 50%;
    background: var(--primary-burgundy);
    color: var(--white);
    font-family: var(--second-family);
    font-size: 1.5rem;
}

.cert-step-text {
    font-size: .875rem;
    color: var(--gray-80);
}

/* Поширені запитання переїхали в модуль asp_faq — стилі в asp_faq.css */

@media (min-width: 992px) {
    .cert-howto {
        padding: 3rem 0;
    }

    .cert-howto-title {
        font-size: 1.5rem;
    }
}

/* Рядок «кількість + кнопка» — тема стилізує його лише всередині .product-info-block */
.cert-page .quantity-btns {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

.cert-page .quantity {
    height: 2.75rem;
}

.cert-page .btns-wrap {
    flex: 1;
}

.cert-page .btns-wrap .btn {
    width: 100%;
    padding: .75rem 1.5rem;
}

@media (min-width: 360px) {
    .cert-page .quantity-btns {
        flex-direction: row;
        align-items: center;
    }
}

@media (max-width: 575px) {
    .certs-page .cert-card-head {
        flex-direction: column;
        align-items: stretch;
    }

    .certs-page .cert-card-btn {
        width: 100%;
    }
}

/* ---------- Сторінка переходу на оплату ---------- */

.cert-pay-page .cert-payment {
    max-width: 30rem;
    margin: 0 auto 3rem;
    text-align: center;
}

.cert-pay-page .cert-payment-status {
    font-size: 1rem;
    margin-bottom: .5rem;
}

.cert-pay-page .cert-payment-manual {
    font-size: .875rem;
    color: var(--gray-60);
    margin-bottom: 1.5rem;
}

.cert-pay-page .cert-payment .buttons .pull-right {
    float: none;
}

.cert-pay-page .cert-payment .btn,
.cert-pay-page .cert-payment #button-confirm {
    width: 100%;
}
