/* MGCC shop (WooCommerce). Routed by mgcc-css-manifest.php (handle mgcc-shop, when 'shop'). Production file is the source.
   Scoped to .mgshop. Tokens come from the theme :root. Spacing: --sec-y 40px, 24px at <=640px. */
.mgshop{--sec-y:40px;color:var(--ink);font-family:var(--font);font-size:17px;line-height:1.55}
@media(max-width:640px){.mgshop{--sec-y:24px}}
main.mgshop{margin-top:24px;margin-bottom:var(--sec-y);background:var(--cream);border:1px solid var(--cream2);border-top:4px solid var(--brg);border-radius:16px;box-shadow:0 6px 28px rgba(12,41,18,.12);padding:clamp(20px,3vw,40px)}
@media(max-width:640px){main.mgshop{padding:18px 16px;border-radius:12px}}
.mgshop *,.mgshop *::before,.mgshop *::after{box-sizing:border-box}
.mgshop .clear{display:none}
.mgshop a{color:var(--brg3)}
.mgshop h1,.mgshop .page-title,.mgshop .product_title{font-size:clamp(26px,4vw,40px);line-height:1.12;font-weight:850;color:var(--brg);margin:0 0 14px}
.mgshop .page-title{text-align:center}
.mgshop h2,.mgshop h3{color:var(--brg);line-height:1.2;margin:0 0 12px}
.mgshop .page-description{margin:0 0 var(--sec-y)}
.mgshop .mgshop-intro{max-width:640px;margin:0 auto;text-align:center;color:var(--muted)}
.mgshop .mgshop-intro p{margin:0 0 8px}
/* pills */
.mgshop .button,.mgshop button.button,.mgshop a.button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:44px;padding:11px 24px;border:1.5px solid var(--gold);border-radius:999px;background:var(--gold);color:var(--brg2);font:700 17px/1.2 var(--font);text-decoration:none;cursor:pointer;transition:background .2s,color .2s}
.mgshop .button:hover{background:var(--gold-strong);border-color:var(--gold-strong);color:var(--brg2)}
.mgshop button[name=update_cart],.mgshop button[name=apply_coupon]{background:transparent;border-color:rgba(18,58,29,.35);color:var(--brg)}
.mgshop button[name=update_cart]:hover,.mgshop button[name=apply_coupon]:hover{background:var(--brg);border-color:var(--brg);color:var(--cream)}
.mgshop button[name=update_cart][disabled]{opacity:.5;cursor:default}
/* notices */
.mgshop .woocommerce-notices-wrapper:empty{display:none}
.mgshop .woocommerce-message,.mgshop .woocommerce-info,.mgshop .woocommerce-error{list-style:none;margin:0 0 20px;padding:14px 16px;border:1px solid #c9b98a;border-left:6px solid var(--brg3);border-radius:10px;background:#fff;display:flex;flex-wrap:wrap;gap:8px 16px;align-items:center;justify-content:space-between}
.mgshop .woocommerce-error{border-left-color:var(--red);display:block}
.mgshop .woocommerce-error li{margin:4px 0}
/* shop grid: wrapping flex row, short last row stays centered */
.mgshop ul.products{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;justify-content:center;gap:24px}
.mgshop ul.products li.product{flex:0 1 340px;display:flex;flex-direction:column;background:#fff;border:1px solid var(--cream2);border-top:4px solid var(--brg);border-radius:16px;overflow:hidden;box-shadow:0 6px 28px rgba(12,41,18,.12);margin:0;padding:0}
.mgshop li.product a.woocommerce-LoopProduct-link{display:block;color:inherit;text-decoration:none}
.mgshop li.product img{display:block;width:100%;height:auto;margin:0}
.mgshop li.product .woocommerce-loop-product__title{font-size:20px;margin:16px 18px 4px}
.mgshop li.product .price{display:block;margin:0 18px 14px;font-weight:700;color:var(--ink)}
.mgshop li.product .button{margin:auto 18px 18px;align-self:flex-start}
.mgshop li.product .added_to_cart{display:none}
/* single product */
.mgshop div.product{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:32px;align-items:center}
@media(max-width:760px){.mgshop div.product{grid-template-columns:1fr;gap:20px}}
.mgshop .woocommerce-product-gallery{margin:0;border:1px solid var(--cream2);border-radius:16px;overflow:hidden;background:#fff;box-shadow:0 6px 28px rgba(12,41,18,.12)}
.mgshop .woocommerce-product-gallery__wrapper{margin:0}
.mgshop .woocommerce-product-gallery img{display:block;width:100%;height:auto}
.mgshop .woocommerce-product-gallery__trigger,.mgshop .flex-control-thumbs{display:none}
.mgshop div.product .price{display:block;font-size:30px;font-weight:800;color:var(--brg);margin:0 0 12px}
.mgshop .woocommerce-product-details__short-description{margin:0 0 12px}
.mgshop .woocommerce-product-details__short-description p{margin:0}
.mgshop .mgshop-note{margin:0 0 4px;color:var(--muted);font-size:15px}
.mgshop form.cart{display:flex;flex-wrap:wrap;gap:12px;align-items:center;margin:16px 0 0}
.mgshop .quantity{margin:0}
/* forms */
.mgshop label{display:block;font-weight:700;margin:0 0 4px}
.mgshop abbr.required{color:var(--red);text-decoration:none;border:0}
.mgshop input.input-text,.mgshop textarea,.mgshop select,.mgshop .select2-selection{display:block;width:100%;min-height:46px;padding:10px 12px;border:1px solid #c9b98a;border-radius:10px;background:#fff;color:var(--ink);font:400 16px/1.3 var(--font)}
.mgshop .select2-container{width:100%!important}
.mgshop .select2-selection--single{display:flex;align-items:center;height:46px}
.mgshop .select2-selection__rendered{padding:0!important;line-height:1.3!important;color:var(--ink)!important}
.mgshop .select2-selection__arrow{height:44px!important}
.mgshop .quantity input.qty{width:76px;text-align:center}
.mgshop .woocommerce-invalid input.input-text,.mgshop .woocommerce-invalid select,.mgshop .woocommerce-invalid .select2-selection{border-color:var(--red);box-shadow:inset 0 0 0 1px var(--red)}
.mgshop .woocommerce-invalid label{color:var(--red)}
.mgshop .form-row{margin:0}
.mgshop #mailpoet_woocommerce_checkout_optin_present_field{display:none}
.mgshop .woocommerce-billing-fields__field-wrapper,.mgshop .woocommerce-shipping-fields__field-wrapper{display:grid;grid-template-columns:1fr 1fr;gap:14px 16px}
.mgshop .form-row-wide{grid-column:1/-1}
@media(max-width:560px){.mgshop .woocommerce-billing-fields__field-wrapper,.mgshop .woocommerce-shipping-fields__field-wrapper{grid-template-columns:1fr}}
/* tables */
.mgshop table.shop_table{width:100%;border-collapse:separate;border-spacing:0;background:#fff;border:1px solid #c9b98a;border-radius:12px;overflow:hidden;margin:0 0 20px}
.mgshop table.shop_table th,.mgshop table.shop_table td{padding:12px 14px;text-align:left;border-bottom:1px solid var(--cream2);vertical-align:middle}
.mgshop table.shop_table thead th{background:var(--brg);color:var(--cream);border-bottom:0}
.mgshop table.shop_table tr:last-child>th,.mgshop table.shop_table tr:last-child>td{border-bottom:0}
.mgshop td.product-thumbnail{width:108px}
.mgshop .product-thumbnail img{display:block;width:84px;max-width:none;height:auto;border-radius:8px}
.mgshop .product-remove a.remove{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:50%;border:1.5px solid var(--red);color:var(--red);font-size:20px;line-height:1;text-decoration:none}
.mgshop .product-remove a.remove:hover{background:var(--red);color:#fff}
.mgshop td.actions::after{content:'';display:block;clear:both}
.mgshop td.actions .coupon{float:left;display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.mgshop td.actions>button[name=update_cart]{float:right}
.mgshop td.actions .coupon label{display:none}
.mgshop td.actions .coupon input.input-text{width:200px}
.mgshop .cart-collaterals{display:flex;justify-content:flex-end}
.mgshop .cart_totals{width:100%;max-width:420px}
.mgshop .wc-proceed-to-checkout .button{width:100%}
.mgshop ul#shipping_method{list-style:none;margin:0;padding:0}
.mgshop ul#shipping_method label{display:inline;font-weight:400}
@media(max-width:640px){
 .mgshop table.shop_table_responsive,.mgshop table.shop_table_responsive tbody{display:block;width:100%}
 .mgshop table.shop_table_responsive thead{display:none}
 .mgshop table.shop_table_responsive tr{display:block;border-bottom:1px solid var(--cream2)}
 .mgshop table.shop_table_responsive td{display:flex;justify-content:space-between;gap:12px;align-items:center;text-align:right;border-bottom:0;padding:8px 14px}
 .mgshop table.shop_table_responsive td::before{content:attr(data-title);font-weight:700;color:var(--brg);text-align:left}
 .mgshop table.shop_table_responsive td.product-remove::before,.mgshop table.shop_table_responsive td.product-thumbnail::before,.mgshop table.shop_table_responsive td.actions::before{content:none}
 .mgshop td.actions{display:block}.mgshop td.actions .coupon{float:none;margin-bottom:12px}.mgshop td.actions>button[name=update_cart]{float:none;width:100%}.mgshop td.actions .coupon input.input-text{flex:1;width:auto}
}
/* checkout */
.mgshop form.checkout{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:0 32px;align-items:start}
.mgshop #customer_details{grid-column:1;grid-row:1/span 2}
.mgshop #order_review_heading{grid-column:2;grid-row:1;margin-bottom:12px}
.mgshop #order_review{grid-column:2;grid-row:2;position:sticky;top:16px}
@media(max-width:900px){.mgshop form.checkout{display:block}.mgshop #order_review{position:static}}
.mgshop .woocommerce-checkout-review-order-table{margin-bottom:16px}
.mgshop #payment{background:#fff;border:1px solid #c9b98a;border-radius:12px;padding:16px}
.mgshop #payment ul.payment_methods{list-style:none;margin:0 0 12px;padding:0}
.mgshop #payment .payment_box{background:var(--cream2);border-radius:8px;padding:10px 12px;margin:8px 0 0}
.mgshop #payment .payment_box p{margin:0}
.mgshop #place_order{width:100%;margin-top:12px}
.mgshop .woocommerce-privacy-policy-text{font-size:14px;color:var(--muted)}
/* order received */
.mgshop ul.woocommerce-order-overview{list-style:none;margin:0 0 24px;padding:0;display:flex;flex-wrap:wrap;justify-content:center;gap:12px}
.mgshop ul.woocommerce-order-overview li{flex:0 1 200px;background:#fff;border:1px solid var(--cream2);border-radius:12px;padding:12px 14px;font-size:14px;color:var(--muted)}
.mgshop ul.woocommerce-order-overview li strong{display:block;font-size:17px;color:var(--ink)}
.mgshop .woocommerce-notice--success{text-align:center;font-weight:700;color:var(--brg);margin:0 0 20px}
.mgshop .mgshop-demo{margin:0 0 20px;padding:10px 16px;border-radius:10px;background:var(--gold);color:var(--brg2);font-weight:800;font-size:17px;letter-spacing:.02em;text-align:center}
.mgshop .mgshop-about{grid-column:1/-1;max-width:720px;margin:0 auto;padding-top:var(--sec-y);border-top:1px solid var(--cream2)}
.mgshop .mgshop-about h2{font-size:clamp(22px,3vw,30px);margin:0 0 12px}
.mgshop .mgshop-about p{margin:0 0 14px}
.mgshop .mgshop-about p:last-child{margin-bottom:0;font-weight:700;color:var(--brg)}
.mgshop .mgshop-about h3{font-size:18px;margin:0 0 6px}
.mgshop .mgshop-about ul{margin:0 0 14px;padding-left:20px}
.mgshop .mgshop-about li{margin:0 0 4px}
