/* Product pages */
.products-hero {
    height: 100vh;
    background: url('https://preventagames.shop/cdn/shop/files/Jason_and_Lucia_02_With_Logos_landscape.06dxl36hnr3_4.jpg') center center / cover no-repeat;
}

.products-hero__content {
    max-width: 760px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.55);
}

.products-hero__title {
    font-size: clamp(2rem, 4.4vw, 3.3rem);
    line-height: 1.1;
    letter-spacing: -0.03em;
    font-weight: 800;
    margin-bottom: 14px;
}

.products-hero__subtitle {
    color: rgba(226, 232, 240, 0.92);
    font-size: 1.06rem;
    max-width: 640px;
}

.products-listing {
    padding: 56px 0 90px;
    background: #f8fafc;
}

.products-listing .container,
.products-hero .container {
    /*max-width: 1600px;*/
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.product-card {
    background: #fff7f0;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 32px rgba(15, 23, 42, 0.08);
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.15);
}

.product-card__image-wrap {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #dbe7ff;
}

.product-card__image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.product-card__body {
    padding: 14px 14px 18px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card__badge {
    align-self: flex-start;
    display: inline-flex;
    padding: 6px 10px;
    border-radius: 999px;
    background: #fee2e2;
    color: #b91c1c;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.product-card__title {
    font-size: 0.8rem;
    /*font-weight: 700;*/
    color: #0f172a;
    margin-bottom: 6px;
}

.product-card__text {
    color: #64748b;
    font-size: 0.96rem;
    line-height: 1.6;
    margin-bottom: 14px;
}

.product-card__meta {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 16px;
}

.product-card__pricing {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}

.product-card__price {
    color: #be123c;
    font-size: 0.9rem;
    font-weight: 700;
}

.product-card__original-price {
    color: #94a3b8;
    font-size: 0.9rem;
    text-decoration: line-through;
}

.product-card__rating {
    /*color: #475569;*/
    color: #9A690F;
    font-size: 0.86rem;
}

/* ── Product page button overrides ── */
.product-card__cta,
.product-card__cta.btn--primary {
    margin-top: auto;
    width: 100%;
    background: #ffd700;
    /*background-image: none;*/
    border-color: #ddbc01;
    color: #1a0e00;
    box-shadow: #ddbc01;
}

.product-card__cta:hover,
.product-card__cta.btn--primary:hover {
    background: #cfaa2e;
    background-image: none;
    border-color: #cfaa2e;
    box-shadow: 0 4px 16px rgba(229, 184, 66, 0.50);
    color: #1a0e00;
}

.product-detail {
    padding: 56px 0 96px;
    background: #f8fafc;
}

.product-detail__back {
    display: inline-flex;
    margin-bottom: 20px;
    color: #334155;
    font-weight: 600;
}

.product-detail__back:hover {
    color: #9A690F;
}

.product-detail__layout {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 32px;
    align-items: stretch;
    margin-bottom: 52px;
}

.product-detail__image-wrap {
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 12px 36px rgba(15, 23, 42, 0.08);
    overflow: hidden;
}

.product-detail__image {
    width: 100%;
    /*height: 100%;*/
    min-height: 420px;
    object-fit: cover;
}

.product-detail__content {
    background: #f9f9f9;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 12px 36px rgba(15, 23, 42, 0.08);
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.product-detail__kicker {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #9A690F;
    font-weight: 700;
    margin-bottom: 10px;
}

.product-detail__title {
    font-size: 1.5rem;
    line-height: 1.15;
    margin-bottom: 10px;
    color: #020617;
}

.product-detail__rating {
    color: #9A690F;
    margin-bottom: 8px;
}

.product-detail__price {
    font-size: 1.6rem;
    font-weight: 800;
    color: #be123c;
}

.product-detail__pricing {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 12px;
}

.product-detail__original-price {
    color: #94a3b8;
    font-size: 1rem;
    text-decoration: line-through;
}

.product-detail__description {
    color: #334155;
    line-height: 1.75;
    margin-bottom: 26px;
}

.product-detail__purchase-note {
    color: #64748b;
    font-size: 0.95rem;
    margin-bottom: 22px;
}

.product-detail__buy-form {
    margin-top: 6px;
}

.product-detail__field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 14px;
}

.product-detail__label {
    font-size: 0.80rem;
    font-weight: 500;
    color: #1e293b;
}

.product-detail__input {
    width: 100%;
    height: 40px;
    padding: 0 16px;
    border: 1px solid #d6dbe6;
    border-radius: 14px;
    background: #ffffff;
    color: #0f172a;
    font-size: 0.98rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.product-detail__input::placeholder {
    color: #94a3b8;
}

.product-detail__input:hover {
    border-color: #c3cad8;
}

.product-detail__input:focus {
    outline: none;
    border-color: rgba(154, 105, 15, 0.65);
    box-shadow: 0 0 0 4px rgba(154, 105, 15, 0.12);
}

.product-detail__buy {
    align-self: flex-start;
    min-width: 170px;
    background: #ffd700;
    border-color: #ffd700;
    color: #000000;
}

.product-detail__buy:hover {
    background: #ffd700;
    border-color: #ffd700;
    color: #000000;
    box-shadow: 0 4px 16px rgba(154, 105, 15, 0.55);
}

.payment-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.payment-modal[hidden] {
    display: none;
}

.payment-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.62);
    backdrop-filter: blur(2px);
}

.payment-modal__panel {
    position: relative;
    z-index: 1;
    width: min(100%, 520px);
    max-height: 90vh;
    overflow-y: auto;
    background: #ffffff;
    border-radius: 22px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 30px 90px rgba(15, 23, 42, 0.28);
    padding: 28px;
}

.payment-modal__close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 999px;
    background: #f8fafc;
    color: #0f172a;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}

.payment-modal__header {
    margin-bottom: 18px;
    padding-right: 40px;
}

.payment-modal__eyebrow {
    color: #9A690F;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.payment-modal__header h2 {
    font-size: clamp(1.45rem, 2vw, 1.9rem);
    line-height: 1.2;
    color: #020617;
    margin-bottom: 10px;
}

.payment-modal__description {
    color: #64748b;
    line-height: 1.6;
}

.payment-modal__element {
    min-height: 56px;
    padding: 14px 16px;
    border: 1px solid #d6dbe6;
    border-radius: 14px;
    background: #ffffff;
}

.payment-modal__actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 20px;
}

body.payment-modal-open {
    overflow: hidden;
}

.reviews__title {
    font-size: 1.6rem;
    color: #0f172a;
    margin-bottom: 16px;
}

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

.review-card {
    background: #f9f9f9;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    padding: 18px;
}

.review-card__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    gap: 10px;
}

.review-card__author {
    font-size: 1rem;
    color: #0f172a;
}

.review-card__rating {
    color: #9A690F;
    font-size: 0.9rem;
    font-weight: 700;
}

.review-card__comment {
    color: #475569;
    line-height: 1.6;
}

@media (max-width: 1280px) {
    .products-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .product-detail__layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .product-detail__layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .products-hero {
        padding: 70px 0 36px;
    }

    .products-listing,
    .product-detail {
        padding: 46px 0 72px;
    }

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

    .product-card__image-wrap {
        aspect-ratio: 16 / 10;
    }

    .reviews__list {
        grid-template-columns: 1fr;
    }

    .product-detail__content {
        padding: 24px;
    }

    .product-card__meta,
    .product-detail__pricing {
        flex-direction: column;
        align-items: flex-start;
    }

    .payment-modal {
        padding: 14px;
    }

    .payment-modal__panel {
        padding: 22px 18px;
    }

    .payment-modal__actions {
        justify-content: stretch;
    }

    .payment-modal__actions .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .product-card__image-wrap {
        aspect-ratio: 16 / 10;
        max-height: 220px;
    }
}

