/* ===== Sanitayaki phone layer (v28): bigger text/taps, simple checkout + payment cards ===== */
@media (max-width:767px){
	body{font-size:16px}
	html{scroll-padding-top:110px}

	/* ---- product cards: readable text, 44px buttons ---- */
	.sanitayaki-product-card .product-card-category{font-size:11px}
	.sanitayaki-product-card .product-card-title,
	.sanitayaki-shop-grid .product-card-title{font-size:14px;line-height:1.35;min-height:38px;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
	.sanitayaki-product-card .product-card-price,
	.sanitayaki-shop-grid .product-card-price{font-size:16px;font-weight:800}
	.sanitayaki-product-card .btn-add-cart,
	.sanitayaki-shop-grid .btn-add-cart{min-height:44px;font-size:13px;padding:0 8px}
	.sanitayaki-shop-grid{gap:12px}
	.sanitayaki-shop-grid .product-card-body{padding:10px 10px 12px}

	/* ---- floating WhatsApp: smaller, above the bottom bar, never on cart/checkout ---- */
	.sy-wa-fab{width:48px;height:48px;right:12px;bottom:76px}
	.sy-wa-fab svg{width:22px;height:22px}
	.woocommerce-cart .sy-wa-fab,.woocommerce-checkout .sy-wa-fab{display:none}
	.single-product .sy-wa-fab{bottom:86px}

	/* ---- cart page: simple cards ---- */
	.woocommerce-cart .site-page,.woocommerce-checkout .site-page{padding-top:8px}
	.woocommerce-cart-form .shop_table{border:0;background:transparent}
	.woocommerce-cart-form .cart_item{display:grid;grid-template-columns:72px 1fr;gap:4px 12px;position:relative;margin:0 0 12px;padding:12px;border:1px solid var(--line);border-radius:14px;background:#fff}
	.woocommerce-cart-form .cart_item td{display:block;padding:0;border:0;text-align:left!important}
	.woocommerce-cart-form .cart_item td::before{display:none!important}
	.woocommerce-cart-form .cart_item .product-thumbnail{grid-row:1/4}
	.woocommerce-cart-form .cart_item .product-thumbnail img{width:72px;height:72px;object-fit:contain;border-radius:8px}
	.woocommerce-cart-form .cart_item .product-name{font-size:14px;font-weight:700;line-height:1.35;padding-right:30px}
	.woocommerce-cart-form .cart_item .product-price{display:none}
	.woocommerce-cart-form .cart_item .product-subtotal{font-weight:800;color:var(--brand);font-size:16px}
	.woocommerce-cart-form .cart_item .product-remove{position:absolute;top:8px;right:8px}
	.woocommerce-cart-form .cart_item .product-remove a{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:#f1f5f9;font-size:20px}
	.woocommerce-cart-form .quantity input.qty{width:64px;min-height:44px;border:1.5px solid var(--line);border-radius:10px;text-align:center;font-size:16px}
	.woocommerce-cart-form .actions{display:block;padding:0;border:0}
	.woocommerce-cart-form .coupon{display:grid;grid-template-columns:1fr auto;gap:8px;margin-bottom:10px}
	.woocommerce-cart-form .coupon input{min-height:46px;border:1.5px solid var(--line);border-radius:10px;padding:0 12px;font-size:16px;width:100%}
	.woocommerce-cart-form .coupon .button,.woocommerce-cart-form button[name=update_cart]{min-height:46px;border-radius:10px;border:1.5px solid var(--line);background:#fff;font-weight:700}
	.woocommerce-cart-form button[name=update_cart]{width:100%;margin-top:6px}
	.cart-collaterals .cart_totals{float:none;width:100%;padding:16px;border:1px solid var(--line);border-radius:14px;background:#fff}
	.cart-collaterals .cart_totals h2{font-size:18px;margin:0 0 8px}

	/* ---- checkout: less text, clear steps ---- */
	.sy-checkout-head{margin:8px 0 14px}
	.sy-checkout-head p{display:none}
	.sy-checkout-head h1{font-size:22px;margin:8px 0 0}
	.sy-steps li{padding:5px 10px;font-size:11px}
	.woocommerce form .form-row{margin:0 0 10px}
	.woocommerce form .form-row label{font-size:14px}
	.woocommerce-billing-fields h3{font-size:18px}
	.woocommerce-additional-fields{margin-top:6px}
	.woocommerce-additional-fields textarea{min-height:70px}
	.woocommerce-checkout .mobile-bottom-nav{display:none}
	.woocommerce-checkout .sanitayaki-footer{padding-bottom:24px}

	/* order summary: compact */
	.woocommerce-checkout-review-order-table{font-size:14px}
	.woocommerce-checkout-review-order-table thead{display:none}
	.woocommerce-checkout-review-order-table .product-name{font-weight:600;line-height:1.35}
	.woocommerce-checkout-review-order-table .product-name strong{font-weight:700;color:var(--muted)}
	.woocommerce-checkout-review-order-table td.product-total,
	.woocommerce-checkout-review-order-table tfoot td{text-align:right;white-space:nowrap}
	.woocommerce-checkout-review-order-table tr.shipping th,
	.woocommerce-checkout-review-order-table tr.shipping td{display:block;width:100%;text-align:left;white-space:normal;border-bottom:0}
	.woocommerce-checkout-review-order-table tr.shipping th{padding-bottom:0}
	.woocommerce-checkout-review-order-table tr.shipping td{padding-bottom:12px;border-bottom:1px solid var(--line)}
	ul#shipping_method{list-style:none;margin:6px 0 0;padding:0;display:grid;gap:8px}
	ul#shipping_method li{display:flex;align-items:center;gap:10px;min-height:48px;padding:10px 12px;border:1.5px solid var(--line);border-radius:12px;margin:0}
	ul#shipping_method li:has(input:checked){border-color:var(--brand);background:var(--soft)}
	ul#shipping_method li label{flex:1;margin:0;font-size:14px;font-weight:700;cursor:pointer}
	ul#shipping_method input{width:20px;height:20px;accent-color:var(--brand);flex:none}

	/* ---- PAYMENT METHODS: big tappable cards, radio on the left ---- */
	#payment{background:transparent;border-radius:0}
	#payment ul.payment_methods{gap:10px;margin:12px 0}
	#payment ul.payment_methods li{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;padding:0;border-radius:14px;overflow:hidden}
	#payment ul.payment_methods li>input.input-radio{flex:none;width:22px;height:22px;margin:16px 0 16px 14px;accent-color:var(--brand)}
	#payment ul.payment_methods li>label{flex:1;display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:56px;margin:0;padding:12px 14px 12px 0;font-size:16px;font-weight:800;line-height:1.25}
	#payment ul.payment_methods li>label img{float:none;order:2;max-height:22px;width:auto;margin:0 0 0 auto;display:inline-block}
	#payment ul.payment_methods li>label a.about_paypal{display:none}
	#payment ul.payment_methods li .payment_box{flex:1 1 100%;margin:0;padding:0 14px 14px 14px;background:transparent;font-size:13px;line-height:1.45;color:var(--muted)}
	#payment ul.payment_methods li .payment_box::before{display:none}
	#payment ul.payment_methods li .payment_box p{margin:0}
	#payment ul.payment_methods li .payment_box:empty{display:none}
	#payment .woocommerce-privacy-policy-text,#payment .woocommerce-terms-and-conditions-wrapper{font-size:12px;line-height:1.45;color:var(--muted);margin:8px 0}
	#payment .woocommerce-terms-and-conditions-checkbox-text{font-size:13px}
	#payment .form-row.place-order{padding:0;margin:0}
	#place_order{min-height:58px!important;font-size:18px!important}
	.sy-pay-assure{justify-content:space-around;margin:12px 0 10px;font-size:11.5px}
}

@media (max-width:380px){
	.sanitayaki-shop-grid{gap:8px}
	.sanitayaki-shop-grid .product-card-title{font-size:13px}
	#payment ul.payment_methods li>label{font-size:15px}
	.sy-pay-assure li:nth-child(3){display:none}
}

/* ===== v28.1: checkout order on phone + tablet = 1 Date livrare, 2 Sumar, 3 Plată, 4 Buton =====
   main.css had order:-1 on #order_review, which pushed the payment box ABOVE the address form. */
@media (max-width:1023px){
	.woocommerce-checkout form.checkout #order_review_heading,
	.woocommerce-checkout form.checkout #order_review{order:0;margin-bottom:0}
	.woocommerce-checkout form.checkout #customer_details{order:0}
	/* one clean sheet instead of stacked boxes */
	.woocommerce-checkout form.checkout{display:block;padding:16px;border:1px solid var(--line);border-radius:14px;background:#fff}
	.woocommerce-checkout form.checkout #customer_details,
	.woocommerce-checkout form.checkout #order_review{padding:0;border:0;border-radius:0;background:transparent;box-shadow:none}
	.woocommerce-checkout form.checkout #order_review{margin-top:18px;padding-top:16px;border-top:1px solid var(--line)}
	.woocommerce-checkout form.checkout #order_review::before{content:"Comanda ta";display:block;margin:0 0 6px;font-family:"Sora",sans-serif;font-size:18px;font-weight:800}
	.woocommerce-checkout form.checkout table.shop_table{border:0;border-radius:0;table-layout:auto}
	.woocommerce-checkout form.checkout table.shop_table th,
	.woocommerce-checkout form.checkout table.shop_table td{padding:10px 0;width:auto}
	.woocommerce-checkout #payment{margin-top:8px;border:0;background:transparent}
	.woocommerce-checkout #payment .form-row.place-order{padding:0}
}
@media (max-width:767px){
	.hero-title{font-size:26px!important;line-height:1.15}
	.header-search-form .search-submit-btn{display:none}
	.header-search-form .search-input-wrapper{padding-right:12px}
}

/* ===== v30: compact, desktop-like proportions on phones (homepage + product page) ===== */
@media (max-width:767px){
	/* hero: short banner, no wall of text */
	.hero-section{margin-top:10px;border-radius:12px}
	.hero-content{padding:18px 0 16px;max-width:100%}
	.hero-eyebrow{font-size:10px;margin-bottom:6px}
	.hero-title{font-size:22px!important;line-height:1.18;margin-top:6px}
	.hero-subtitle{font-size:13px;line-height:1.4;margin:6px 0 12px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
	.hero-buttons{display:flex;gap:8px;margin-top:10px}
	.hero-buttons a{width:auto;flex:1;min-height:42px;font-size:13px;padding:0 12px}

	/* sections */
	.home .home-section{padding-top:20px}
	.home .section-title{font-size:19px}
	.section-eyebrow{font-size:10px;margin-bottom:3px}

	/* product rails: ~2.3 cards visible */
	.home .products-rail .sanitayaki-product-card{width:150px;min-width:150px;border-radius:12px}
	.home .products-rail .product-card-body{padding:9px}
	.home .products-rail .product-card-title{font-size:13px;min-height:34px}
	.home .products-rail .product-card-price{font-size:14px}
	.home .products-rail .btn-add-cart{min-height:40px;font-size:12px}

	/* categories: small swipeable tiles */
	.home .category-card{flex:0 0 118px;padding:10px;border-radius:12px}
	.home .cat-icon{width:32px;height:32px}
	.home .cat-icon i,.home .cat-icon svg{width:16px;height:16px}
	.home .cat-card-name{margin-top:8px;font-size:12px}

	/* collection (creme) section: short picture, tight text */
	.cosmetics-spotlight{margin-top:0;border-radius:12px}
	.spotlight-content{padding:16px}
	.spotlight-title{font-size:18px;line-height:1.2}
	.spotlight-desc{font-size:13px;margin:6px 0 10px}
	.spotlight-visual{aspect-ratio:auto;height:170px}
	.spotlight-img{height:170px}
	.spotlight-row{padding:10px 12px}
	.offers-banner{margin-top:20px}

	/* product page: compact photo */
	.pd-main{height:min(70vw,280px)}
	.pd-title{font-size:20px}
	.pd-price{font-size:22px}
	.pd-rest{padding:14px}

	/* shop grid: tighter cards */
	.sanitayaki-shop-grid .product-card-body{padding:8px 8px 10px}
	.sanitayaki-shop-grid .product-card-title{font-size:13px}
	.sanitayaki-shop-grid .product-card-price{font-size:15px}
}

/* ===== v31: lighter header + smaller category pills on phones ===== */
@media (max-width:767px){
	/* Favorite + Coș are already in the bottom bar, "Toate categoriile" = "Categorii" there */
	.header-action-btn[data-open-drawer="wishlist-drawer"]{display:none}
	.header-top-row{padding:8px 0 6px}
	.search-input-wrapper{min-height:42px}
	.category-ribbon{gap:6px;min-height:0;padding:2px 0 8px}
	.cat-pill{min-height:34px;padding:0 12px;font-size:13px;white-space:nowrap}
	.cat-pill i,.cat-pill svg{width:14px;height:14px}
	.cat-pill-promo{max-width:none}
}

/* ===== v32: phone = same blocks as desktop, just fitted =====
   1) Hero: picture on top, text under it  2) HERBIX card  3) creams section  4) category pills */
@media (max-width:767px){
	.hero-section{background:#fff!important;color:var(--ink);min-height:0!important;border:1px solid var(--line);box-shadow:var(--shadow-xs)}
	.hero-section::before{content:"";display:block;width:100%;height:200px;background:var(--hero-m) center 30%/cover no-repeat}
	.hero-container{min-height:0!important;padding:0 16px;display:block}
	.hero-content{padding:14px 0 16px}
	.hero-eyebrow{color:var(--brand);border-color:#fecdd3;background:#fff1f2;backdrop-filter:none}
	.hero-title{color:var(--ink);font-size:22px!important;margin-top:8px}
	.hero-subtitle{color:var(--muted);-webkit-line-clamp:3}
	.hero-buttons .btn-light{background:var(--brand);color:#fff;border-color:var(--brand)}
	.hero-buttons .btn-glass{background:#fff;color:var(--ink);border:1px solid var(--ink);backdrop-filter:none}

	/* HERBIX card: slightly shorter picture */
	.hx-home-img img{height:auto;aspect-ratio:5/4;object-fit:cover;object-position:50% 40%}

	/* creams section: products picture on top (cropped to the product shelf), text under it */
	.cosmetics-spotlight{display:flex;flex-direction:column}
	.spotlight-visual{order:-1;height:auto;aspect-ratio:1158/973}
	.spotlight-img{height:100%;object-fit:cover;object-position:center}
	.spotlight-row p{display:block;margin:2px 0 0;font-size:12px;color:var(--muted)}
	.spotlight-row strong{font-size:14px}

	/* category pills: like desktop (All categories first), one swipeable line */
	.category-ribbon{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none}
	.category-ribbon::-webkit-scrollbar{display:none}
	.cat-pill{flex:none}
}
