/* Makeup Luxury Pro 2.5.2 — WooCommerce styles (clean rewrite).
   Replaces the layered 2.2–2.5 rules. Colors come from the variables in style.css. */

/* ---------- Page container (shop, category, single product) ---------- */
.ml-woo{padding:30px 0 64px;background:linear-gradient(180deg,#fdfbfe 0,#fff 380px)}
.ml-woo .woocommerce-notices-wrapper{margin-bottom:14px}
.woocommerce-breadcrumb{display:flex;flex-wrap:wrap;align-items:center;gap:4px 7px;width:fit-content;max-width:100%;margin:0 0 22px!important;padding:8px 16px;border:1px solid #efe6f2;border-radius:30px;background:#fff;color:#8a7c90;font-size:12px;line-height:1.8}
.woocommerce-breadcrumb a{color:var(--p2);font-weight:700}
.woocommerce-products-header{margin:0 0 6px}
.woocommerce-products-header__title,.woocommerce .page-title{margin:0 0 10px;color:#4e285e;font-size:28px;font-weight:800;line-height:1.7}
.term-description{color:#776b7d;font-size:13px}

/* ---------- Product grid (shop, homepage sections, related, upsells) ---------- */
.woocommerce ul.products{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px;margin:0 0 30px;padding:0;list-style:none;clear:both}
.woocommerce ul.products::before,.woocommerce ul.products::after{content:none!important;display:none!important}
.woocommerce ul.products.columns-1{grid-template-columns:minmax(0,1fr)}
.woocommerce ul.products.columns-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.woocommerce ul.products.columns-3{grid-template-columns:repeat(3,minmax(0,1fr))}
.woocommerce ul.products.columns-4{grid-template-columns:repeat(4,minmax(0,1fr))}
.woocommerce ul.products.columns-5{grid-template-columns:repeat(5,minmax(0,1fr))}
.woocommerce ul.products.columns-6{grid-template-columns:repeat(6,minmax(0,1fr))}
/* beats WooCommerce's float layout (width: 22.05%) that made the cards narrow */
.woocommerce ul.products li.product,
.woocommerce ul.products[class*="columns-"] li.product{float:none!important;width:auto!important;margin:0!important;clear:none!important}

.woocommerce ul.products li.product{position:relative;display:flex;flex-direction:column;min-width:0;padding:11px 11px 14px;border:1px solid #eee7f1;border-radius:20px;background:#fff;text-align:right;overflow:hidden;transition:transform .2s,box-shadow .2s,border-color .2s}
.woocommerce ul.products li.product:hover{transform:translateY(-5px);border-color:#dcc9e4;box-shadow:0 16px 36px rgba(68,37,81,.12)}
.woocommerce ul.products li.product a.woocommerce-LoopProduct-link{display:flex;flex:1;flex-direction:column;min-width:0}
.woocommerce ul.products li.product a img{display:block;width:100%;height:auto;aspect-ratio:1/1;object-fit:contain;margin:0 0 10px;padding:8px;border-radius:14px;background:linear-gradient(145deg,#fcf9fd,#f2e8f6);box-shadow:none}
.woocommerce ul.products li.product .woocommerce-loop-product__title{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;min-height:50px;margin:0;padding:6px 3px 2px;color:#4f2b5d;font-size:13px;font-weight:700;line-height:1.9}
.woocommerce ul.products li.product .price{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 8px;margin:4px 3px 12px;color:var(--p2);font-size:14px;font-weight:800;line-height:1.8}
.woocommerce ul.products li.product .price del{color:#a99eae;font-size:11px;font-weight:400;opacity:.85}
.woocommerce ul.products li.product .price ins{text-decoration:none;color:#a34c7a;background:none}
.woocommerce ul.products li.product .button{display:flex;align-items:center;justify-content:center;width:100%;min-height:42px;margin:auto 0 0;padding:9px 12px;border:0;border-radius:12px;background:linear-gradient(115deg,#704184,#4b2760);color:#fff;font-size:12px;font-weight:700;line-height:1.5;text-align:center}
.woocommerce ul.products li.product .button:hover{background:linear-gradient(115deg,#633a78,#382044);color:#fff;transform:translateY(-1px);box-shadow:0 9px 18px #54286630}
.woocommerce ul.products li.product .added_to_cart{display:block;margin:8px 0 0;text-align:center;color:var(--p2);font-size:11px;font-weight:700}
.woocommerce span.onsale,.woocommerce ul.products li.product .onsale{top:12px;right:12px;left:auto;z-index:3;min-width:0;min-height:0;margin:0;padding:6px 11px;border-radius:30px;background:#b45f8f;color:#fff;font-size:11px;font-weight:700;line-height:1.4}

/* demo badge: inside the card on listings, inside the summary on the product page */
.ml-demo-badge{display:inline-block;margin:0 0 8px;padding:5px 12px;border-radius:20px;background:#c7a56a;color:#fff;font-size:11px;font-weight:700;line-height:1.5}
.woocommerce ul.products li.product .ml-demo-badge{position:absolute;top:19px;left:19px;margin:0;z-index:3;padding:4px 9px;font-size:10px}

/* ---------- Category tiles ---------- */
.woocommerce ul.products li.product-category{padding:12px 12px 16px;background:linear-gradient(150deg,#fff,#fbf7fc);text-align:center}
.woocommerce ul.products li.product-category a{display:flex;flex-direction:column;align-items:stretch;height:100%}
.woocommerce ul.products li.product-category a img{height:190px;aspect-ratio:auto;object-fit:cover;padding:0;margin:0 0 12px;border-radius:14px}
.woocommerce ul.products li.product-category .woocommerce-loop-category__title{margin:auto 0 0;padding:10px 12px;border-radius:12px;background:#f8f2fa;color:var(--p);font-size:13px;font-weight:800}
.woocommerce ul.products li.product-category .woocommerce-loop-category__title mark{background:none;color:#9a7aa5;font-size:10px;font-weight:500}

/* ---------- Shop toolbar ---------- */
.ml-shop-cats{display:flex;flex-wrap:wrap;gap:9px;margin:0 0 10px;padding:4px 0 16px;border-bottom:1px solid #f2ebf4}
.ml-shop-cat{display:inline-flex;align-items:center;gap:8px;flex:0 0 auto;min-height:42px;padding:7px 14px;border:1px solid #eee5f1;border-radius:13px;background:#fff;color:#5d3b6b;font-size:12px;font-weight:700;box-shadow:0 3px 13px #54286608;transition:.2s}
.ml-shop-cat-icon{display:grid;place-items:center;width:25px;height:25px;border-radius:9px;background:#f7f0f9;color:#956da4;font-size:13px}
.ml-shop-cat:hover{border-color:#cbb1d6;color:var(--p)}
.ml-shop-cat.is-active{background:linear-gradient(120deg,#805095,#542866);border-color:#704184;color:#fff}
.ml-shop-cat.is-active .ml-shop-cat-icon{background:#ffffff26;color:#fff}
.ml-shop-toolbar{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:8px 0 16px;padding:11px 16px;border:1px solid #eee6f1;border-radius:16px;background:#fff}
.ml-shop-toolbar .woocommerce-result-count{float:none;margin:0;color:#8b7892;font-size:12px}
.ml-shop-toolbar .woocommerce-ordering{float:none;margin:0}
.woocommerce .woocommerce-ordering select{min-width:190px;max-width:100%;padding:8px 12px;border:1px solid #e6d9eb;border-radius:11px;background:#fff;color:var(--ink);font-size:12px}
.ml-shop-grid-label{display:flex;align-items:center;gap:12px;margin:20px 0 14px;color:#8b7892;font-size:11px;font-weight:700}
.ml-shop-grid-label:after{content:'';height:1px;flex:1;background:linear-gradient(270deg,#eee5f1,transparent)}
.ml-shop-grid-label i{display:block;width:7px;height:7px;border-radius:50%;background:#b58ac4;box-shadow:0 0 0 5px #f3eaf6}

/* ---------- Pagination ---------- */
.woocommerce nav.woocommerce-pagination{margin:10px 0 0}
.woocommerce nav.woocommerce-pagination ul{display:flex;flex-wrap:wrap;justify-content:center;gap:7px;margin:0;padding:0;border:0}
.woocommerce nav.woocommerce-pagination ul li{float:none;margin:0;border:0;overflow:visible}
.woocommerce nav.woocommerce-pagination ul li a,.woocommerce nav.woocommerce-pagination ul li span{display:grid;place-items:center;min-width:38px;height:38px;margin:0;padding:0 10px;border:1px solid var(--line);border-radius:11px;background:#fff;color:var(--p2);font-size:13px;line-height:1}
.woocommerce nav.woocommerce-pagination ul li a:hover{border-color:#cbb1d6;background:#faf5fc;color:var(--p)}
.woocommerce nav.woocommerce-pagination ul li span.current{border-color:var(--p2);background:var(--p2);color:#fff}

/* ---------- Single product ---------- */
body.single-product div.product{position:relative;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:34px;align-items:start;margin:0}
body.single-product div.product::before,body.single-product div.product::after{content:none!important;display:none!important}
body.single-product div.product div.images{grid-column:1;grid-row:1;float:none!important;width:100%!important;margin:0!important;padding:14px;border:1px solid #eee6f0;border-radius:24px;background:linear-gradient(145deg,#fbf8fc,#f3eaf6)}
body.single-product div.product div.images img{display:block;width:100%;height:auto;border-radius:16px}
body.single-product div.product div.images .woocommerce-product-gallery__trigger{top:22px;right:auto;left:22px;width:38px;height:38px;border:1px solid #eee6f0;border-radius:50%;background:#fff;box-shadow:0 4px 14px #5428661a}
body.single-product div.product div.images .flex-control-thumbs{display:flex;flex-wrap:wrap;gap:9px;margin:12px 0 0;padding:0;list-style:none}
body.single-product div.product div.images .flex-control-thumbs li{float:none;width:calc(25% - 7px);margin:0}
body.single-product div.product div.images .flex-control-thumbs img{padding:4px;border:1px solid #eee5f1;border-radius:11px;background:#fff;opacity:.72}
body.single-product div.product div.images .flex-control-thumbs img.flex-active{border-color:var(--l);opacity:1}
body.single-product div.product div.summary{grid-column:2;grid-row:1;float:none!important;width:100%!important;min-width:0;margin:0!important;padding:4px 2px;text-align:right}
body.single-product div.product span.onsale{top:24px;right:24px;left:auto;z-index:5}
/* tabs, related and upsells span the full width under the two columns */
body.single-product div.product>*:not(.images):not(.summary):not(.onsale){grid-column:1/-1;min-width:0}

body.single-product div.product .product_title{margin:0 0 10px;padding-bottom:12px;border-bottom:1px solid #f0e8f2;color:#4f285f;font-size:26px;font-weight:800;line-height:1.7}
body.single-product div.product p.price,body.single-product div.product span.price{display:block;margin:14px 0;padding:12px 16px;border:1px solid #eee5f1;border-radius:14px;background:linear-gradient(110deg,#fbf8fc,#f6eef9);color:#6a3e80;font-size:22px;font-weight:800;line-height:1.7}
body.single-product div.product p.price del,body.single-product div.product span.price del{color:#a99eae;font-size:14px;font-weight:400}
body.single-product div.product p.price ins,body.single-product div.product span.price ins{background:none;color:#a34c7a;text-decoration:none}
.woocommerce-Price-currencySymbol{margin-inline-start:.35em;font-size:.68em;font-weight:600}
body.single-product div.product .woocommerce-product-details__short-description{color:#776b7d;font-size:13px;line-height:2.2}
body.single-product div.product p.stock{margin:10px 0;color:#6a3e80;font-size:12px;font-weight:700}
body.single-product div.product form.cart{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:20px 0;padding:16px;border:1px solid #eee5f1;border-radius:16px;background:#fcfafd}
body.single-product div.product form.cart .quantity .qty{width:68px;height:44px;border:1px solid #e6d9eb;border-radius:10px;background:#fff;color:var(--p);text-align:center}
body.single-product div.product form.cart .single_add_to_cart_button{flex:1;min-height:44px;padding:10px 26px;border:0;border-radius:12px;background:linear-gradient(110deg,#704184,#542866);color:#fff;font-size:14px;font-weight:700}
body.single-product div.product form.cart .single_add_to_cart_button:hover{background:linear-gradient(110deg,#633a78,#382044)}
body.single-product div.product .product_meta{margin-top:6px;padding-top:14px;border-top:1px solid #eee7f1;color:#8a7c90;font-size:12px;line-height:2.2}
body.single-product div.product .product_meta>span{display:block}
body.single-product div.product .product_meta a{color:var(--p2)}

/* tabs */
body.single-product div.product .woocommerce-tabs{margin-top:14px;padding:22px 24px;border:1px solid #eee7f1;border-radius:20px;background:#fff;box-shadow:0 8px 28px #30203808}
body.single-product div.product .woocommerce-tabs ul.tabs{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 18px;padding:0 0 14px;overflow:visible;border-bottom:1px solid #eee5f1;list-style:none;text-align:right}
body.single-product div.product .woocommerce-tabs ul.tabs::before,body.single-product div.product .woocommerce-tabs ul.tabs::after,
body.single-product div.product .woocommerce-tabs ul.tabs li::before,body.single-product div.product .woocommerce-tabs ul.tabs li::after{content:none!important;display:none!important;border:0!important;box-shadow:none!important}
body.single-product div.product .woocommerce-tabs ul.tabs li{margin:0;padding:0;border:1px solid #eee5f1;border-radius:12px;background:#faf7fb}
body.single-product div.product .woocommerce-tabs ul.tabs li a{display:block;padding:9px 18px;color:#7a6a82;font-size:13px;font-weight:700}
body.single-product div.product .woocommerce-tabs ul.tabs li.active{border-color:#d9c5e1;background:#f4eaf8}
body.single-product div.product .woocommerce-tabs ul.tabs li.active a{color:var(--p)}
body.single-product div.product .woocommerce-tabs .panel{margin:0;padding:0;color:#6f6275;font-size:13px;line-height:2.2}
body.single-product div.product .woocommerce-tabs .panel>h2{margin:0 0 10px;color:var(--p);font-size:20px}

/* reviews */
body.single-product #reviews .woocommerce-Reviews-title{margin:0 0 14px;color:var(--p);font-size:18px}
body.single-product #reviews #comments ol.commentlist{margin:0;padding:0;list-style:none}
body.single-product #reviews #comments ol.commentlist li{margin:0 0 12px;padding:0;list-style:none}
body.single-product #reviews #comments ol.commentlist li .comment_container{padding:14px 16px;border:1px solid #eee5f1;border-radius:14px;background:#fcfafd}
body.single-product #reviews #comments ol.commentlist li img.avatar{position:static;float:right;width:44px;margin:0 0 0 12px;padding:0;border:0;border-radius:50%}
body.single-product #reviews #comments ol.commentlist li .comment-text{margin:0 56px 0 0;padding:0;border:0}
body.single-product #review_form #respond textarea,body.single-product #review_form #respond input[type=text],body.single-product #review_form #respond input[type=email]{width:100%;padding:10px 12px;border:1px solid #e6d9eb;border-radius:11px;background:#fff}

/* related and upsells */
body.single-product .related.products>h2,body.single-product .upsells.products>h2{margin:34px 0 18px;color:var(--p);font-size:21px;font-weight:800}

/* ---------- Buttons, notices, fields (cart, checkout, account) ---------- */
.woocommerce a.button,.woocommerce button.button,.woocommerce input.button,.woocommerce #respond input#submit{padding:10px 18px;border:0;border-radius:11px;background:#f1e6f6;color:var(--p);font-weight:700;line-height:1.5}
.woocommerce a.button:hover,.woocommerce button.button:hover,.woocommerce input.button:hover{background:#e6d3ee;color:var(--p)}
.woocommerce a.button.alt,.woocommerce button.button.alt,.woocommerce input.button.alt,.woocommerce #respond input#submit.alt{background:linear-gradient(110deg,#704184,#542866);color:#fff}
.woocommerce a.button.alt:hover,.woocommerce button.button.alt:hover,.woocommerce input.button.alt:hover{background:linear-gradient(110deg,#633a78,#382044);color:#fff}
.woocommerce .woocommerce-message,.woocommerce .woocommerce-info,.woocommerce .woocommerce-error{border-top-color:var(--p2);border-radius:12px;background:#faf5fc;color:var(--ink)}
.woocommerce .woocommerce-message::before,.woocommerce .woocommerce-info::before{color:var(--p2)}
.woocommerce form .form-row input.input-text,.woocommerce form .form-row textarea,.woocommerce form .form-row select{padding:10px 12px;border:1px solid #e6d9eb;border-radius:11px;background:#fff;font-family:inherit}

/* ---------- Responsive ---------- */
@media(max-width:1050px){
  .woocommerce ul.products.columns-4,.woocommerce ul.products.columns-5,.woocommerce ul.products.columns-6{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
}
@media(max-width:800px){
  body.single-product div.product{grid-template-columns:minmax(0,1fr);gap:20px}
  body.single-product div.product div.images,body.single-product div.product div.summary{grid-column:1;grid-row:auto}
  body.single-product div.product .product_title{font-size:21px}
  body.single-product div.product p.price,body.single-product div.product span.price{font-size:19px}
  body.single-product div.product .woocommerce-tabs{padding:16px 14px;border-radius:16px}
}
@media(max-width:700px){
  .ml-woo{padding:18px 0 40px}
  .woocommerce ul.products,.woocommerce ul.products[class*="columns-"]{grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}
  .woocommerce ul.products li.product{padding:8px 8px 10px;border-radius:15px}
  .woocommerce ul.products li.product a img{padding:5px;margin-bottom:6px;border-radius:10px}
  .woocommerce ul.products li.product .woocommerce-loop-product__title{min-height:44px;font-size:11px;line-height:1.8}
  .woocommerce ul.products li.product .price{margin:3px 2px 8px;font-size:12px}
  .woocommerce ul.products li.product .button{min-height:36px;padding:7px 6px;border-radius:10px;font-size:11px}
  .woocommerce ul.products li.product .onsale{top:9px;right:9px;padding:4px 8px;font-size:9px}
  .woocommerce ul.products li.product .ml-demo-badge{top:13px;left:13px;font-size:8px}
  .woocommerce ul.products li.product-category a img{height:120px}
  .woocommerce-products-header__title,.woocommerce .page-title{font-size:22px}
  .ml-shop-cats{flex-wrap:nowrap;overflow-x:auto;overflow-y:hidden;gap:7px;padding-bottom:12px;scroll-snap-type:x proximity}
  .ml-shop-cat{scroll-snap-align:start;min-height:38px;padding:5px 11px;font-size:11px}
  .ml-shop-toolbar{flex-direction:column;align-items:stretch;gap:8px;padding:10px}
  .woocommerce .woocommerce-ordering select{width:100%;min-width:0}
}
@media(max-width:360px){
  .woocommerce ul.products li.product .price{font-size:11px}
}
