/* Product cards, quantity controls, and direct-order modal summary. */
.jp-shop {
    padding: 76px 0;
    background: #fff;
}

.jp-shop-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    margin-bottom: 30px;
}

.jp-shop-eyebrow {
    display: block;
    margin-bottom: 8px;
    color: #ff3b3b;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.jp-shop-heading h2 {
    margin: 0 0 8px;
    color: #17283a;
    font-size: 34px;
}

.jp-shop-heading p {
    margin: 0;
    color: #626b75;
    line-height: 1.6;
}

.jp-shop-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.jp-product-card {
    min-width: 0;
    overflow: hidden;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(10, 25, 40, .09);
    transition: transform .2s ease, box-shadow .2s ease;
}

.jp-product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 34px rgba(10, 25, 40, .14);
}

.jp-product-card-image {
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #eef1f4;
}

.jp-product-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.jp-product-card:hover .jp-product-card-image img { transform: scale(1.035); }

.jp-product-image-placeholder,
.jp-product-detail-placeholder {
    display: flex;
    width: 100%;
    height: 100%;
    min-height: 220px;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #10263d, #315070);
    color: #fff;
    font-size: 20px;
    font-weight: 700;
}

.jp-product-card-content { padding: 20px; }

.jp-product-card h3 {
    margin: 0 0 8px;
    font-size: 20px;
    line-height: 1.3;
}

.jp-product-card h3 a {
    color: #17283a;
    text-decoration: none;
}

.jp-product-card h3 a:hover { color: #ff3b3b; }

.jp-product-short-description {
    min-height: 48px;
    margin: 0 0 14px;
    color: #626b75;
    font-size: 14px;
    line-height: 1.55;
}

.jp-product-price {
    margin: 0;
    color: #17283a;
    font-size: 17px;
    font-weight: 700;
}

.jp-product-live-total {
    margin: 5px 0 0;
    color: #364554;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.45;
}

.jp-product-card-actions,
.jp-product-purchase-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
}

.jp-quantity-control {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    height: 42px;
    border: 1px solid #d9dee4;
    border-radius: 6px;
    background: #fff;
}

.jp-quantity-control button,
.jp-quantity-step {
    display: inline-flex;
    width: 34px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border: 0;
    background: transparent;
    color: #23384d;
    cursor: pointer;
    font: inherit;
    font-size: 19px;
}

.jp-quantity-control button:hover,
.jp-quantity-step:hover { color: #ff3b3b; }

.jp-quantity-control input {
    width: 42px;
    height: 38px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #17283a;
    font: inherit;
    text-align: center;
    appearance: textfield;
    -moz-appearance: textfield;
}

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

.jp-order-product {
    min-height: 42px;
    flex: 1 1 auto;
    padding: 9px 13px;
    border: 0;
    border-radius: 6px;
    background: #ff3b3b;
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    transition: background .15s ease;
}

.jp-order-product:hover { background: #d82f2f; }
.jp-order-product:disabled { background: #aaa; cursor: not-allowed; }

.jp-product-feedback {
    min-height: 18px;
    margin: 8px 0 0;
    color: #177245;
    font-size: 13px;
}

@media (max-width: 1000px) {
    .jp-shop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
    .jp-shop { padding: 56px 0; }
    .jp-shop-heading h2 { font-size: 28px; }
    .jp-shop-grid { grid-template-columns: 1fr; gap: 20px; }
    .jp-product-card { width: 100%; max-width: 440px; margin: 0 auto; }
    .jp-product-short-description { min-height: 0; }
}

.jp-order-summary {
    margin: 22px 0 18px;
    padding: 16px 18px;
    border: 1px solid #e5e8ec;
    border-radius: 8px;
    background: #f8f9fa;
}
.jp-order-summary h3 { margin: 0 0 10px; color: #17283a; font-size: 16px; }
.jp-order-summary p { margin: 6px 0 0; color: #526170; font-size: 13px; }
.jp-order-summary .jp-order-summary-name,
.jp-order-summary .jp-order-summary-price { color: #17283a; font-weight: 700; }
.jp-order-summary .jp-order-summary-details { white-space: pre-line; }