/* Public webshop content follows the same .content.page / .box-wr / .container
   structure as a normal Wijnberg page; only shop internals are scoped here. */
/* The parent .content.page uses the original Wijnberg header offset (styles.css).
   Do not measure the fixed header or override padding-top: the regular Visie
   page uses the same flow, and duplicated offsets create a huge blank band. */
/* Defensive cleanup for a legacy, empty webshop wrapper that can remain
   before the document in older deployments. It has no title or checkout data.
   Current templates never use .wbshop-wrap. */
.wbshop-page:has(> .box-wr.wbshop-wrap > .container > main.wbshop:empty) {
    display: none !important;
}
.wbshop-page > .wbshop-page-hero { margin-top: 0; }

.wbshop-page .wbshop-page-hero .box-img_text { min-height: 240px; }
.wbshop-page .wbshop-page-hero:not(.has-image) .box-img_text { width: 100%; max-width: 850px; }
.wbshop-page .wbshop-page-hero:not(.has-image) .box-img_text:before { display: none; }
.wbshop-page .wbshop-page-title { font-size: clamp(32px, 3.8vw, 53px); line-height: 1.15; margin: 0; color: #383838; overflow-wrap: break-word; }
.wbshop-page .wbshop-page-subtitle { font-size: 18px; line-height: 1.55; margin: 15px 0 0; padding: 0; color: #555; font-weight: 400; }
.wbshop-page .box-wr.wbshop { padding: 45px 0 65px; }
.wbshop-page .wbshop > .container { max-width: 1170px; width: 100%; margin-left: auto; margin-right: auto; padding: 0 15px; }
.wbshop-page .wbshop h2, .wbshop-page .wbshop h3, .wbshop-page .wbshop h4 { opacity: 1; color: #3c3c3c; font-weight: 700; }
.wbshop-page .wbshop h3 { font-size: 23px; line-height: 1.35; margin-bottom: 22px; }
.wbshop-page .wbshop h4 { font-size: 20px; line-height: 1.35; }
.wbshop-page .wbshop h5 { font-size: 17px; line-height: 1.4; }
.wbshop-page .wbshop p { padding: 0; font-size: 15px; line-height: 1.55; font-weight: 400; }
.wbshop-page .wbshop .row { min-width: 0; }
.wbshop-page .wbshop .card { border: 1px solid #e3e6e8; border-radius: 10px; box-shadow: 0 5px 18px rgba(0,0,0,.04); overflow: hidden; }
.wbshop-page .wbshop .card-body { padding: 22px; }
.wbshop-page .wbshop .card-img-top { aspect-ratio: 16 / 9; object-fit: cover; }
.wbshop-page .wbshop .btn-primary { background: #e7353c; border-color: #e7353c; color: white; }
.wbshop-page .wbshop .btn-primary:hover { background: #c52530; border-color: #c52530; color: white; }
.wbshop-page .wbshop .btn-outline-primary { color: #d42d35; border-color: #d42d35; }
.wbshop-page .wbshop .btn-outline-primary:hover { background: #d42d35; color: white; }
.wbshop-page .wbshop .form-control, .wbshop-page .wbshop .form-select { max-width: 100%; }
.wbshop-page .wbshop .wbshop-intro { max-width: 850px; }
.wbshop-page .wbshop .wbshop-intro p { font-size: 17px; line-height: 1.6; margin-bottom: 12px; }
.wbshop-page .wbshop .legal-page { max-width: 900px; margin: 0 auto; }
/* The legal documents contain several numbered sections. Keep headings and
   long paragraphs readable without inheriting oversized article headings. */
.wbshop-page .legal-content h2 { font-size: clamp(20px, 2.2vw, 26px); line-height: 1.3; margin: 34px 0 12px; }
.wbshop-page .legal-content h2:first-child { margin-top: 0; }
.wbshop-page .legal-content p { line-height: 1.75; margin: 0 0 16px; }
.wbshop-page .legal-content ul { padding-left: 23px; margin: 0 0 20px; }
.wbshop-page .legal-content li { margin-bottom: 8px; line-height: 1.7; }
.wbshop-page .legal-content a { color: #078b9b; text-decoration: underline; text-underline-offset: 2px; }

.wbshop-page .wbshop .wbshop-unsubscribe { max-width: 580px; margin: 0 auto; padding: 30px; background: #fff; border: 1px solid #e2e8ea; border-top: 4px solid #60bdc7; border-radius: 10px; }
.wbshop-page .wbshop .welcome-panel { background: #f9f9f9; padding: 35px 25px; border-radius: 10px; }
.wbshop-page .wbshop .welcome-panel p { margin-bottom: 0; }
.wbshop-page .wbshop .payment-methods-grid, .wbshop-page .wbshop .pickup-options-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 16px; }
.wbshop-page .wbshop .payment-method-card:has(input:checked), .wbshop-page .wbshop .pickup-option-card:has(input:checked) { border: 2px solid #60bdc7; }
.wbshop-page .wbshop .product-image-box { aspect-ratio: 1; display: flex; justify-content: center; align-items: center; background: #f8f8f8; }
.wbshop-page .wbshop .product-image-box img { max-width: 100%; max-height: 100%; object-fit: contain; }
.wbshop-page .wbshop .qty-group { display: flex; }
.wbshop-page .wbshop .qty-group input { width: 70px; min-width: 0; text-align: center; }
.wbshop-page .wbshop .checkout-bar-inner { display: flex; justify-content: flex-end; }
.wbshop-page .wbshop .checkout-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 9px; }
.wbshop-page .wbshop .checkout-total-amount { font-weight: 700; font-size: 1.4rem; }
@media (max-width: 991px) {
    .wbshop-page .wbshop-page-hero .box-img_text { min-height: 190px; padding-top: 35px; padding-bottom: 35px; }
}
@media (max-width: 767px) {
    .wbshop-page .box-wr.wbshop { padding: 28px 0 45px; }
    .wbshop-page .wbshop-page-title { font-size: 32px; }
    .wbshop-page .wbshop-page-subtitle { font-size: 16px; }
    .wbshop-page .wbshop .card-body { padding: 17px; }
    .wbshop-page .wbshop .payment-methods-grid, .wbshop-page .wbshop .pickup-options-grid { grid-template-columns: minmax(0, 1fr); }
    .wbshop-page .wbshop .checkout-actions { align-items: stretch; width: 100%; }
}
