/* Mad Alice theme: WooCommerce layout basics (child theme adds the Wonderland look). */
.ma-shop-wrap{display:block}
.ma-shop-wrap.has-sidebar{display:grid;grid-template-columns:260px minmax(0,1fr);gap:40px}
.ma-shop-wrap.has-sidebar #secondary{grid-row:1;grid-column:1}
.ma-shop-wrap.has-sidebar #primary{grid-column:2}
.ma-filter-toggle{display:none}
.shoptimizer-category-banner{padding:34px 0;background:var(--cream)}
.shoptimizer-category-banner h1{margin:0 0 8px}
.shoptimizer-category-banner .taxonomy-description>*:last-child{margin-bottom:0}
.shoptimizer-sorting{display:flex;align-items:center;flex-wrap:wrap;gap:12px 22px;margin:0 0 24px}
.shoptimizer-sorting .woocommerce-ordering{margin:0}
.shoptimizer-sorting .woocommerce-result-count{margin:0;color:#6d6478;font-size:14px}
.shoptimizer-sorting .woocommerce-pagination{margin-left:auto}
.shoptimizer-sorting .woocommerce-pagination ul{margin:0}
.woocommerce-ordering select{width:auto;padding:6px 12px;font-size:14px}
ul.products+.shoptimizer-sorting .woocommerce-ordering,ul.products+.shoptimizer-sorting .woocommerce-result-count{display:none}
ul.products{list-style:none;margin:0 0 30px;padding:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:28px;clear:both}
ul.products.columns-3{grid-template-columns:repeat(3,minmax(0,1fr))}
ul.products.columns-2{grid-template-columns:repeat(2,minmax(0,1fr))}
ul.products::before,ul.products::after{display:none!important}
ul.products li.product{width:auto!important;margin:0!important;float:none!important;position:relative;display:flex;flex-direction:column}
ul.products li.product a{text-decoration:none}
ul.products li.product .woocommerce-image__wrapper img{display:block;width:100%;height:auto}
ul.products li.product .woocommerce-loop-product__title{font-weight:600;color:var(--ink);margin:0 0 4px;line-height:1.3}
ul.products li.product .woocommerce-loop-product__title a{color:inherit}
ul.products li.product .price{display:block;color:var(--berry);font-weight:700;margin-bottom:10px}
ul.products li.product .price del{color:#999;font-weight:400;margin-right:6px}
ul.products li.product .button{margin-top:auto;align-self:flex-start;font-size:14px;padding:9px 18px}
ul.products li.product .onsale,.onsale{position:absolute;top:10px;left:10px;z-index:2;background:var(--pink);color:#fff;border-radius:999px;padding:4px 12px;font-size:13px;font-weight:700;text-transform:uppercase}
ul.products li.product-category h2{font-size:20px;text-align:center}
ul.products li.product-category mark{background:none;color:#888}
.woocommerce-pagination ul{list-style:none;display:flex;gap:8px;justify-content:center;padding:0}
.woocommerce-pagination .page-numbers{display:inline-block;min-width:30px;text-align:center;padding:2px 8px;font-size:14px;border:2px solid var(--ink);border-radius:999px;text-decoration:none;color:var(--ink)}
.woocommerce-pagination .current{background:var(--ink);color:var(--cream)}
.star-rating{color:#f5a623}

/* Single product */
.single-product div.product{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);gap:48px;align-items:start;position:relative}
.single-product div.product .woocommerce-product-gallery{width:auto!important;float:none!important;margin:0!important;position:relative}
.single-product div.product .summary{width:auto!important;float:none!important;margin:0!important}
.single-product div.product .woocommerce-tabs,.single-product div.product .related,.single-product div.product .upsells,.single-product div.product>section,.single-product div.product .ma-full{grid-column:1/-1}
.woocommerce-product-gallery__image img{border-radius:18px}
.woocommerce-product-gallery .flex-control-thumbs{list-style:none;padding:0;margin:12px 0 0;display:grid;grid-template-columns:repeat(5,1fr);gap:10px}
.woocommerce-product-gallery .flex-control-thumbs img{border-radius:10px;cursor:pointer;opacity:.6}
.woocommerce-product-gallery .flex-control-thumbs img.flex-active,.woocommerce-product-gallery .flex-control-thumbs img:hover{opacity:1}
.woocommerce-product-gallery__trigger{position:absolute;top:12px;right:12px;z-index:3}
.product_title{font-size:38px}
.summary .price{font-size:26px;color:var(--berry);font-weight:700}
form.cart{margin:20px 0}
form.cart .quantity{display:inline-block;margin-right:10px}
form.cart .quantity input{width:80px}
form.cart .single_add_to_cart_button{font-size:18px;padding:14px 34px}
table.variations{width:100%;border:0}
table.variations th,table.variations td{display:block;padding:0;text-align:left;border:0}
table.variations th{padding-top:12px}
table.variations td{padding-bottom:6px}
.reset_variations{font-size:14px}
.product_meta{font-size:14px;color:#6d6478}
.product_meta>span{display:block}
.woocommerce-tabs ul.tabs{list-style:none;padding:0;margin:40px 0 0;display:flex;flex-wrap:wrap;gap:8px;border-bottom:3px solid var(--ink)}
.woocommerce-tabs ul.tabs::before,.woocommerce-tabs ul.tabs::after{display:none}
.woocommerce-tabs ul.tabs li{margin:0;border:0;background:none;padding:0}
.woocommerce-tabs ul.tabs li a{display:block;padding:10px 20px;border-radius:14px 14px 0 0;text-decoration:none;font-family:Oswald,sans-serif;text-transform:uppercase;color:var(--ink);background:#f3eef9}
.woocommerce-tabs ul.tabs li.active a{background:var(--ink);color:var(--cream)}
.woocommerce-tabs .panel{padding:26px 0}
.related>h2,.upsells>h2{margin-top:40px}

/* Notices */
.woocommerce-message,.woocommerce-info,.woocommerce-error,.woocommerce-noreviews{list-style:none;background:#fff;border:3px solid var(--ink);border-radius:16px;padding:14px 20px;margin:0 0 24px;box-shadow:4px 4px 0 var(--mint)}
.woocommerce-error{box-shadow:4px 4px 0 var(--pink)}
.woocommerce-message .button,.woocommerce-info .button{float:right;margin-left:14px;padding:8px 18px;font-size:14px}

/* Cart & checkout */
table.shop_table{width:100%;border-collapse:collapse;border:2px solid var(--ink);border-radius:16px;overflow:hidden}
table.shop_table th,table.shop_table td{padding:12px 14px;border-bottom:1px solid #eee;text-align:left;vertical-align:middle}
table.shop_table th{background:#f6f2fb;font-family:Oswald,sans-serif;text-transform:uppercase;font-size:14px;letter-spacing:.04em}
table.shop_table img{width:70px;border-radius:10px}
.woocommerce-cart-form .coupon{display:flex;gap:8px;align-items:center;float:left}
.woocommerce-cart-form .coupon input{width:200px}
.woocommerce-cart-form .actions{text-align:right}
.cart-collaterals{margin-top:30px;display:flex;justify-content:flex-end}
.cart_totals{width:100%;max-width:460px}
.wc-proceed-to-checkout .checkout-button{display:block;text-align:center;font-size:18px;padding:16px}
.woocommerce form .form-row{margin:0 0 14px;padding:0}
.woocommerce form .form-row label{display:block;font-weight:600;margin-bottom:4px;font-size:15px}
.woocommerce form .form-row-first,.woocommerce form .form-row-last{width:48%;display:inline-block;vertical-align:top}
.woocommerce form .form-row-first{margin-right:4%}
.woocommerce .col2-set{display:grid;grid-template-columns:1fr 1fr;gap:40px}
.woocommerce .col2-set .col-1,.woocommerce .col2-set .col-2{width:auto;float:none}
form.checkout{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:40px;align-items:start}
form.checkout .col2-set{display:block;grid-column:1;grid-row:1/span 2}
form.checkout #order_review_heading,form.checkout #order_review{grid-column:2}
form.checkout #order_review_heading{grid-row:1;margin:0}
form.checkout #order_review{grid-row:2}
#payment{background:#f6f2fb;border-radius:16px;padding:18px}
#payment ul.payment_methods{list-style:none;padding:0;margin:0 0 14px}
#payment ul.payment_methods li{padding:8px 0}
#payment .payment_box{background:#fff;border-radius:10px;padding:12px;margin-top:8px;font-size:15px}
#place_order{width:100%;font-size:18px;padding:16px}
.select2-container .select2-selection--single{height:46px;border:2px solid var(--ink);border-radius:12px}
.select2-container--default .select2-selection--single .select2-selection__rendered{line-height:42px;padding-left:14px}
.select2-container--default .select2-selection--single .select2-selection__arrow{height:42px}

/* My account */
.woocommerce-account .woocommerce{display:grid;grid-template-columns:230px minmax(0,1fr);gap:40px}
.woocommerce-account:not(.logged-in) .woocommerce{display:block}
.woocommerce-MyAccount-navigation ul{list-style:none;padding:0;margin:0}
.woocommerce-MyAccount-navigation a{display:block;padding:10px 14px;border-radius:12px;text-decoration:none;color:var(--ink);font-weight:600}
.woocommerce-MyAccount-navigation .is-active a{background:var(--ink);color:var(--cream)}
.woocommerce-account .woocommerce-MyAccount-navigation,.woocommerce-account .woocommerce-MyAccount-content{width:auto;float:none}
.woocommerce-order-overview{list-style:none;padding:0;display:flex;flex-wrap:wrap;gap:12px 30px}

@media (max-width:992px){
  .ma-shop-wrap.has-sidebar{display:block}
  .ma-filter-toggle{display:inline-block;margin-bottom:16px;background:#fff;border:2px solid var(--ink);border-radius:999px;padding:8px 22px;font-family:Oswald,sans-serif;text-transform:uppercase;cursor:pointer}
  .ma-shop-sidebar{margin-bottom:10px}
  .ma-filter-body{display:none}
  .ma-shop-sidebar.ma-open .ma-filter-body{display:block}
  ul.products,ul.products.columns-3{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
  .single-product div.product{display:block}
  .single-product div.product .summary{margin-top:24px!important}
  .product_title{font-size:30px}
  form.checkout{display:block}
  .woocommerce .col2-set{display:block}
  .woocommerce-account .woocommerce{display:block}
  .woocommerce-MyAccount-navigation{margin-bottom:24px}
  table.shop_table_responsive thead{display:none}
  table.shop_table_responsive tr{display:block;border-bottom:2px solid #eee}
  table.shop_table_responsive td{display:block;text-align:right;border:0}
  table.shop_table_responsive td::before{content:attr(data-title) ": ";float:left;font-weight:600}
  table.shop_table_responsive td.product-remove::before,table.shop_table_responsive td.product-thumbnail::before{content:none}
  .woocommerce-cart-form .coupon{float:none;margin-bottom:10px}
}
@media (max-width:600px){
  .woocommerce form .form-row-first,.woocommerce form .form-row-last{width:100%;margin-right:0}
}
