/* E.N. Formwell: WooCommerce parts styled to match the original design (site.css holds the main design). */

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.card.is-hidden, .is-hidden { display: none !important; }
.price del { color: var(--muted); font-weight: 500; font-size: .85em; margin-right: .3rem; }
.price ins { text-decoration: none; }
.price-ask { color: var(--navy-900); font-weight: 600; }
.woocommerce-Price-currencySymbol { margin-right: 1px; }

/* ---------- shop sidebar ---------- */
.filter-tree, .filter-tree ul { list-style: none; margin: 0; padding: 0; }
.filter-tree ul { padding-left: .9rem; margin: .2rem 0 .4rem; border-left: 2px solid var(--line); }
.filter-tree a { display: flex; align-items: center; gap: .5rem; padding: .3rem 0; font-size: .92rem; color: var(--ink); }
.filter-tree > li > a { font-weight: 600; color: var(--navy-900); }
.filter-tree a:hover, .filter-tree a.is-active { color: var(--red-600); }
.filter-tree a.is-active { font-weight: 700; }
.check-scroll { max-height: 290px; overflow-y: auto; padding-right: .3rem; scrollbar-width: thin; }
a.check { color: var(--ink); }
a.check:hover { color: var(--red-600); }
.check__box { width: 17px; height: 17px; flex: none; border: 2px solid var(--line); border-radius: 4px; background: var(--white); display: grid; place-items: center; transition: .15s; }
.check.is-on .check__box { background: var(--red-600); border-color: var(--red-600); }
.check.is-on .check__box::after { content: ""; width: 5px; height: 9px; border: solid var(--white); border-width: 0 2px 2px 0; transform: translateY(-1px) rotate(45deg); }
.check.is-on { font-weight: 600; color: var(--navy-900); }
.price-range { display: flex; align-items: center; gap: .5rem; }
.price-range input { width: 100%; min-width: 0; padding: .55rem .7rem; border: 1px solid var(--line); border-radius: var(--radius); font: 500 .9rem var(--font-body); }
.price-quick { display: flex; flex-wrap: wrap; gap: .4rem; margin: .7rem 0 0; }
.price-quick a { font-size: .8rem; border: 1px solid var(--line); border-radius: 999px; padding: .25rem .7rem; color: var(--navy-900); }
.price-quick a:hover { border-color: var(--navy-900); }
.filter-group .btn--block { margin-top: .8rem; }
.filters__head { display: flex; justify-content: space-between; align-items: center; }
.filters__close { display: none; }
@media (max-width: 960px) { .filters__close { display: inline-flex; } }

/* sorting */
.woocommerce-ordering { margin: 0; }
.woocommerce-ordering select { padding: .55rem 2rem .55rem .9rem; border: 1px solid var(--line); border-radius: 999px; font: 500 .9rem var(--font-body); color: var(--navy-900); background: var(--white); }
.woocommerce-result-count { display: none; }

/* pagination */
.woocommerce-pagination { margin: 2.5rem 0 1rem; text-align: center; }
.woocommerce-pagination ul.page-numbers { display: inline-flex; gap: .4rem; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; justify-content: center; }
.woocommerce-pagination .page-numbers a, .woocommerce-pagination .page-numbers span { display: grid; place-items: center; min-width: 42px; height: 42px; padding: 0 .7rem; border: 1px solid var(--line); border-radius: 999px; font-weight: 600; color: var(--navy-900); background: var(--white); }
.woocommerce-pagination .page-numbers a:hover { border-color: var(--navy-900); }
.woocommerce-pagination .page-numbers .current { background: var(--navy-900); border-color: var(--navy-900); color: var(--white); }

/* card add button states */
.card__add.loading { opacity: .6; pointer-events: none; }
.card__foot .added_to_cart { display: none; }
.product-grid > .card { min-width: 0; }

/* ---------- notices ---------- */
.woocommerce-notices-wrapper:empty { display: none; }
.woocommerce-message, .woocommerce-info, .woocommerce-error, .wc-block-components-notice-banner {
  list-style: none; margin: 1rem 0 1.5rem; padding: 1rem 1.2rem; border-radius: var(--radius); border: 1px solid var(--line); border-left: 4px solid var(--success);
  background: var(--white); color: var(--ink); display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; justify-content: space-between;
}
.woocommerce-info { border-left-color: var(--navy-700); }
.woocommerce-error { border-left-color: var(--red-600); display: block; }
.woocommerce-error li { margin: .2rem 0; }
.woocommerce-message .button, .woocommerce-info .button { order: 2; }

/* ---------- WooCommerce buttons look like theme buttons ---------- */
.woocommerce .button, .wc-page .button, button.button, a.button, input.button, .single_add_to_cart_button, .checkout-button, #place_order {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .85rem 1.5rem; border-radius: 999px; border: 2px solid var(--navy-900);
  background: var(--navy-900); color: var(--white); font: 600 .95rem var(--font-body); cursor: pointer; text-decoration: none; transition: .2s; line-height: 1.2;
}
.woocommerce .button:hover, .wc-page .button:hover, a.button:hover, button.button:hover { background: var(--navy-700); border-color: var(--navy-700); color: var(--white); }
.single_add_to_cart_button, .checkout-button, #place_order, .button.alt, .button.checkout { background: var(--red-600); border-color: var(--red-600); }
.single_add_to_cart_button:hover, .checkout-button:hover, #place_order:hover, .button.alt:hover, .button.checkout:hover { background: var(--red-700); border-color: var(--red-700); }
.button.disabled, .button:disabled, .single_add_to_cart_button.disabled { opacity: .5; cursor: not-allowed; }
.button.loading, .single_add_to_cart_button.loading { opacity: .7; pointer-events: none; }
.button.wc-forward:not(.checkout) { background: transparent; color: var(--navy-900); }
.button.wc-forward:not(.checkout):hover { background: var(--navy-900); color: var(--white); }

/* ---------- product page ---------- */
.buybox__cart { display: flex; gap: .8rem; align-items: flex-start; margin: 1.2rem 0 .8rem; }
.buybox__cart form.cart { flex: 1; margin: 0; }
.buybox__cart form.cart:not(.variations_form), .buybox__cart .woocommerce-variation-add-to-cart { display: flex; gap: .8rem; align-items: stretch; flex-wrap: wrap; }
.buybox__cart .single_add_to_cart_button { flex: 1; min-height: 50px; font-size: 1rem; }
.buybox__cart .wish-btn { flex: none; margin-top: 0; }
.buybox__cart .variations_form .wish-btn { align-self: flex-end; }
.buybox .quantity.qty { display: inline-flex; flex: none; }
.buybox .quantity.qty input { width: 52px; }
.buybox .quantity:not(.qty) input.qty { width: 70px; padding: .7rem; border: 2px solid var(--line); border-radius: 999px; text-align: center; font: 600 1rem var(--font-body); }
#askQty { width: 46px; border: 0; text-align: center; font: 600 1rem var(--font-body); }
table.variations { display: none; }
.variations_form .variants { margin-top: 0; }
.variant:disabled { opacity: .35; text-decoration: line-through; cursor: not-allowed; }
.single_variation_wrap { width: 100%; }
.woocommerce-variation { margin: 0 0 .8rem; }
.woocommerce-variation-price { display: none; } /* price shows in the big price box */
.woocommerce-variation-description p { margin: 0 0 .6rem; color: var(--muted); font-size: .9rem; }
.woocommerce-variation-availability p { margin: 0 0 .6rem; font-size: .9rem; color: var(--success); }
.woocommerce-variation-availability .out-of-stock { color: var(--red-600); }
.reset_variations { display: none !important; }
.buybox__price .price { font-size: 2rem; font-weight: 700; color: var(--red-600); }
.buybox__price--ask .price { font-size: 1.5rem; color: var(--navy-900); }
.buybox .stock.in-stock, .buybox__meta .stock { color: var(--success); }
.sku_wrapper[hidden] { display: none; }
.buybox > form.cart { margin-top: 1rem; }

/* tabs (WooCommerce markup, same look as the original) */
.woocommerce-tabs ul.tabs { list-style: none; margin: 0 0 2rem; padding: 0; display: flex; gap: 2rem; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.woocommerce-tabs ul.tabs li { flex: none; margin: 0; }
.woocommerce-tabs ul.tabs li a { display: block; padding: 1rem 0; border-bottom: 3px solid transparent; font: 600 1rem var(--font-body); color: var(--muted); }
.woocommerce-tabs ul.tabs li.active a, .woocommerce-tabs ul.tabs li a:hover { color: var(--navy-900); border-bottom-color: var(--red-600); }
.woocommerce-Tabs-panel { max-width: 820px; }
.woocommerce-Tabs-panel > h2:first-child { display: none; }
.woocommerce-Tabs-panel p { color: #3B3E4A; }
.woocommerce-Tabs-panel ul.ticks { margin: 1rem 0; }
.woocommerce-Tabs-panel h3 { margin-top: 1.6rem; }
table.woocommerce-product-attributes, table.shop_attributes { width: 100%; border-collapse: collapse; font-size: .95rem; }
.woocommerce-product-attributes th, .woocommerce-product-attributes td { text-align: left; padding: .85rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.woocommerce-product-attributes th { width: 35%; color: var(--muted); font-weight: 500; background: var(--ivory); }
.woocommerce-product-attributes td { color: var(--navy-900); font-weight: 500; }
.woocommerce-product-attributes td p { margin: 0; color: inherit; }
.woocommerce-product-attributes a { color: var(--red-600); }

/* related products */
.related-wrap .related.products > h2 { font-size: 1.8rem; margin-bottom: 1.4rem; }
.related-wrap__more { text-align: center; margin: 1.6rem 0 0; }

/* ---------- mini cart drawer ---------- */
.minicart .widget_shopping_cart_content { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.minicart .woocommerce-mini-cart { list-style: none; margin: 0; padding: 0 1.4rem; flex: 1; overflow-y: auto; }
.minicart .woocommerce-mini-cart-item { position: relative; display: block; padding: 1rem 2rem 1rem 84px; min-height: 104px; border-bottom: 1px solid var(--line); font-size: .9rem; }
.minicart .woocommerce-mini-cart-item a:not(.remove) { display: block; color: var(--navy-900); font-weight: 600; line-height: 1.3; }
.minicart .woocommerce-mini-cart-item img { position: absolute; left: 0; top: 1rem; width: 72px; height: 72px; object-fit: contain; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.minicart .woocommerce-mini-cart-item .quantity { display: block; margin-top: .4rem; color: var(--muted); }
.minicart .woocommerce-mini-cart-item .quantity .amount { color: var(--red-600); font-weight: 700; }
.minicart .woocommerce-mini-cart-item dl.variation { margin: .2rem 0 0; font-size: .8rem; color: var(--muted); display: flex; gap: .3rem; flex-wrap: wrap; }
.minicart .woocommerce-mini-cart-item dl.variation dd, .minicart .woocommerce-mini-cart-item dl.variation p { margin: 0; }
.minicart a.remove { position: absolute; right: 0; top: 1rem; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; color: var(--muted); font-size: 1.3rem; line-height: 1; }
.minicart a.remove:hover { background: var(--ivory); color: var(--red-600); }
.minicart .woocommerce-mini-cart__total { display: flex; justify-content: space-between; margin: 0; padding: 1.2rem 1.4rem .6rem; border-top: 1px solid var(--line); font-size: 1.05rem; }
.minicart .woocommerce-mini-cart__total .amount { color: var(--navy-900); font-size: 1.2rem; font-weight: 700; }
.minicart .woocommerce-mini-cart__buttons { display: grid; gap: .6rem; margin: 0; padding: .4rem 1.4rem 1.4rem; }
.minicart .woocommerce-mini-cart__buttons .button { width: 100%; }
.minicart .woocommerce-mini-cart__empty-message { padding: 3rem 1.4rem; text-align: center; color: var(--muted); }
.minicart .blockUI.blockOverlay { background: rgba(255,255,255,.6) !important; }

/* ---------- cart, checkout, account pages ---------- */
.wc-page { padding-bottom: 4rem; }
.wc-page__title { margin: .5rem 0 1.5rem; }
.wc-page input[type="text"], .wc-page input[type="email"], .wc-page input[type="tel"], .wc-page input[type="password"], .wc-page input[type="number"], .wc-page textarea, .wc-page select {
  width: 100%; padding: .75rem .9rem; border: 1px solid var(--line); border-radius: var(--radius); font: 400 .95rem var(--font-body); background: var(--white); color: var(--ink);
}
.wc-page input:focus, .wc-page textarea:focus, .wc-page select:focus { outline: 2px solid var(--navy-700); outline-offset: 1px; }
.wc-page label { font-size: .9rem; font-weight: 600; color: var(--navy-900); display: block; margin-bottom: .3rem; }
.wc-page .form-row { margin: 0 0 1rem; }
.wc-page .required { color: var(--red-600); text-decoration: none; border: 0; }
.wc-page table.shop_table { width: 100%; border-collapse: collapse; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.wc-page table.shop_table th, .wc-page table.shop_table td { padding: .9rem 1rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.wc-page table.shop_table thead th { background: var(--ivory); color: var(--navy-900); font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; }
.wc-page table.shop_table img { width: 64px; height: 64px; object-fit: contain; border: 1px solid var(--line); border-radius: var(--radius); }
.wc-page .product-name a { color: var(--navy-900); font-weight: 600; }
.wc-page .product-remove a.remove { font-size: 1.4rem; color: var(--muted); }
.wc-page .product-remove a.remove:hover { color: var(--red-600); }
.wc-page .quantity input.qty { width: 80px; text-align: center; }
.wc-page .actions .coupon { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.wc-page .actions .coupon input { width: auto; flex: 1; min-width: 160px; }
.wc-page .actions { text-align: right; }
.wc-page .actions .coupon { float: left; }
.wc-page .cart-collaterals { margin-top: 2rem; display: flex; justify-content: flex-end; }
.wc-page .cart_totals { width: 100%; max-width: 440px; }
.wc-page .cart_totals h2 { font-size: 1.4rem; }
.wc-page .wc-proceed-to-checkout .checkout-button { width: 100%; margin-top: 1rem; }
.wc-page ul#shipping_method { list-style: none; margin: 0; padding: 0; }
.wc-page ul#shipping_method li { margin: .3rem 0; }
.wc-page ul#shipping_method label { display: inline; font-weight: 500; }
.wc-page .woocommerce-shipping-destination, .wc-page .shipping-calculator-button { font-size: .85rem; color: var(--muted); }

.wc-page form.checkout { display: grid; grid-template-columns: 1.3fr 1fr; gap: 2.5rem; align-items: start; }
.wc-page form.checkout > .woocommerce-NoticeGroup { grid-column: 1 / -1; }
.wc-page #customer_details .col-1, .wc-page #customer_details .col-2 { width: 100%; float: none; }
.wc-page #order_review_heading { display: none; }
.wc-page #order_review { grid-column: 2; grid-row: 1 / span 3; background: var(--ivory); border-radius: var(--radius-lg); padding: 1.5rem; position: sticky; top: 140px; }
.wc-page #order_review::before { content: "Your order"; display: block; font: 600 1.4rem var(--font-display); color: var(--navy-900); margin-bottom: 1rem; }
.wc-page .woocommerce-billing-fields__field-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.wc-page .form-row-wide, .wc-page #billing_address_1_field, .wc-page #billing_address_2_field { grid-column: 1 / -1; }
.wc-page #payment { margin-top: 1.2rem; }
.wc-page #payment ul.payment_methods { list-style: none; margin: 0 0 1rem; padding: 0; }
.wc-page #payment ul.payment_methods li { background: var(--white); border: 2px solid var(--red-600); border-radius: var(--radius); padding: .9rem 1rem; }
.wc-page #payment ul.payment_methods li label { display: inline; }
.wc-page #payment .payment_box p { margin: .5rem 0 0; font-size: .88rem; color: var(--muted); }
.wc-page #place_order { width: 100%; min-height: 54px; font-size: 1.05rem; }
.wc-page .woocommerce-terms-and-conditions-wrapper { font-size: .85rem; color: var(--muted); margin-bottom: 1rem; }
.wc-page .woocommerce-form-login-toggle, .wc-page .woocommerce-form-coupon-toggle { margin-bottom: 1rem; }

/* thank-you page */
.wc-page ul.order_details { list-style: none; padding: 1.2rem; margin: 1rem 0 2rem; display: flex; flex-wrap: wrap; gap: 1.5rem; background: var(--ivory); border-radius: var(--radius-lg); }
.wc-page ul.order_details li { font-size: .85rem; color: var(--muted); }
.wc-page ul.order_details li strong { display: block; color: var(--navy-900); font-size: 1rem; }
.wc-page .woocommerce-thankyou-order-received { font: 600 1.4rem var(--font-display); color: var(--success); }

/* my account */
.wc-page .woocommerce-MyAccount-navigation ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; }
.wc-page .woocommerce-MyAccount-navigation a { display: block; padding: .5rem 1rem; border: 1px solid var(--line); border-radius: 999px; color: var(--navy-900); font-weight: 600; font-size: .9rem; }
.wc-page .woocommerce-MyAccount-navigation .is-active a { background: var(--navy-900); color: var(--white); border-color: var(--navy-900); }
.wc-page .u-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.wc-page .woocommerce-form-login, .wc-page .woocommerce-form-register { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.5rem; }

/* block-based cart / checkout (WooCommerce 8+ default pages) */
.wc-page .wp-block-woocommerce-cart, .wc-page .wp-block-woocommerce-checkout { font-family: var(--font-body); }
.wc-page .wc-block-components-button:not(.is-link) { border-radius: 999px; background: var(--red-600); color: var(--white); font-weight: 600; min-height: 50px; }
.wc-page .wc-block-components-button:not(.is-link):hover { background: var(--red-700); }
.wc-page .wc-block-components-title, .wc-page .wc-block-components-checkout-step__title { font-family: var(--font-display); color: var(--navy-900); }
.wc-page .wc-block-components-product-name { color: var(--navy-900); font-weight: 600; }
.wc-page .wc-block-cart-item__image img { border: 1px solid var(--line); border-radius: var(--radius); }
.wc-page .wc-block-components-text-input input, .wc-page .wc-block-components-combobox input { border-radius: var(--radius) !important; }

@media (max-width: 900px) {
  .wc-page form.checkout { grid-template-columns: 1fr; }
  .wc-page #order_review { grid-column: 1; grid-row: auto; position: static; }
  .wc-page .u-columns { grid-template-columns: 1fr; }
  .wc-page .woocommerce-billing-fields__field-wrapper { grid-template-columns: 1fr; }
  .wc-page table.shop_table_responsive thead { display: none; }
  .wc-page table.shop_table_responsive tr { display: block; border-bottom: 1px solid var(--line); }
  .wc-page table.shop_table_responsive td { display: flex; justify-content: space-between; gap: 1rem; border: 0; padding: .5rem 1rem; }
  .wc-page table.shop_table_responsive td::before { content: attr(data-title); font-weight: 600; color: var(--navy-900); }
  .wc-page table.shop_table_responsive td.product-remove::before, .wc-page table.shop_table_responsive td.product-thumbnail::before, .wc-page table.shop_table_responsive td.actions::before { content: none; }
  .wc-page .actions .coupon { float: none; margin-bottom: 1rem; }
  .buybox__cart { flex-wrap: wrap; }
}

/* 404 / plain pages */
.page-404 { text-align: center; padding: 5rem 1rem; }
.prose img { max-width: 100%; height: auto; border-radius: var(--radius); }
.alignleft { float: left; margin: 0 1.5rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 1.5rem; }
.aligncenter { display: block; margin: 1rem auto; }

/* mobile: long thumbnail rows must scroll, not widen the page */
.pdp > *, .gallery > *, .shop-layout > *, .two-col > * { min-width: 0; }
.gallery__thumbs .thumb { flex: none; }
@media (max-width: 520px) {
  .topbar__links { font-size: .74rem; gap: .35rem; overflow: hidden; }
  .topbar__links a:last-child, .topbar__links span:last-of-type { display: none; }
}

@media (max-width: 640px) {
  /* add to cart row: quantity + full-width button, heart on the same row */
  .buybox__cart { position: relative; display: block; }
  .buybox__cart > .wish-btn { position: absolute; right: 0; bottom: 0; }
  .buybox__cart form.cart:not(.variations_form), .buybox__cart .woocommerce-variation-add-to-cart { flex-wrap: nowrap; padding-right: 56px; }
  .buybox__cart .single_add_to_cart_button { white-space: nowrap; padding: .8rem 1rem; }
  .buybox__actions { flex-wrap: wrap; }
  .buybox__actions .btn--wa-main { flex: 1 1 100%; order: 3; white-space: normal; }
  .variants__list { gap: .45rem; }
  .variant { padding: .5rem .8rem; font-size: .85rem; }
  /* product tabs: one scrollable row */
  .woocommerce-tabs ul.tabs { flex-wrap: nowrap; gap: 1.4rem; margin-bottom: 1.2rem; }
  .woocommerce-tabs ul.tabs li a { font-size: .92rem; white-space: nowrap; }
  .woocommerce-product-attributes th, .woocommerce-product-attributes td { padding: .6rem .7rem; font-size: .88rem; }
  .woocommerce-product-attributes th { width: 40%; }
}

/* ================= Sticky add-to-cart bar (product pages, all screens) ================= */
.buybar {
  display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: .7rem 0;
  background: rgba(255, 255, 255, .97); backdrop-filter: blur(8px); border-top: 1px solid var(--line);
  box-shadow: 0 -10px 30px rgba(15, 27, 76, .1);
  transform: translateY(115%); opacity: 0; visibility: hidden;
  /* leaving: quick dip down and fade */
  transition: transform .35s cubic-bezier(.5, 0, .75, 0), opacity .3s ease, visibility 0s linear .35s;
}
.buybar.is-visible {
  transform: none; opacity: 1; visibility: visible;
  /* arriving: springy bounce up */
  transition: transform .55s cubic-bezier(.34, 1.56, .64, 1), opacity .25s ease, visibility 0s;
}
.buybar.is-visible .buybar__btn { animation: barPop .6s .25s cubic-bezier(.34, 1.56, .64, 1) both; }
@keyframes barPop { from { transform: scale(.85); } to { transform: none; } }
.buybar .buybar__inner { display: flex; flex-direction: row; align-items: center; gap: 1rem; }
.buybar__img { width: 48px; height: 48px; object-fit: contain; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); flex: none; }
.buybar .buybar__info { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.buybar__info b { color: var(--navy-900); font-size: .92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.buybar__price, .buybar__price .price { color: var(--red-600); font-weight: 700; font-size: 1.05rem; }
.buybar__price .screen-reader-text { display: none; }
.buybar__opt select { padding: .6rem 2rem .6rem .9rem; border: 2px solid var(--line); border-radius: 999px; font: 600 .88rem var(--font-body); color: var(--navy-900); background: var(--white); max-width: 190px; }
.buybar__opt[hidden] { display: none; }
.buybar__btn { flex: none; white-space: nowrap; padding: .75rem 1.4rem; }
.buybar__btn svg { width: 18px; height: 18px; }
body.has-buybar .wa-float { transform: translateY(-74px); }
.wa-float { transition: transform .4s cubic-bezier(.34, 1.56, .64, 1); }
body.has-buybar .footer { padding-bottom: 80px; }
@media (max-width: 640px) {
  .buybar { padding: .55rem 0 calc(.55rem + env(safe-area-inset-bottom)); }
  .buybar .buybar__inner { gap: .6rem; flex-wrap: wrap; }
  .buybar__img { width: 40px; height: 40px; }
  .buybar__info b { font-size: .8rem; }
  .buybar__price, .buybar__price .price { font-size: .95rem; }
  .buybar__opt { order: 3; flex: 1 1 100%; }
  .buybar__opt select { max-width: none; width: 100%; padding: .45rem 2rem .45rem .8rem; font-size: .82rem; }
  .buybar__btn { padding: .65rem 1rem; font-size: .85rem; }
  body.has-buybar .wa-float { transform: translateY(-120px); }
}
@media (prefers-reduced-motion: reduce) { .buybar, .buybar.is-visible { transition: opacity .2s; } .buybar.is-visible .buybar__btn { animation: none; } }

/* ================= Cart drawer after adding ================= */
.minicart__head { flex-wrap: wrap; row-gap: .4rem; }
.minicart__added { order: 3; flex: 1 1 100%; margin: 0; display: flex; align-items: center; gap: .45rem; color: var(--success); font-weight: 700; font-size: .92rem; animation: addedIn .45s cubic-bezier(.34, 1.56, .64, 1); }
.minicart__added svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2.8; background: #E3F2EA; border-radius: 50%; padding: 3px; }
.minicart__added[hidden] { display: none; }
@keyframes addedIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.minicart .woocommerce-mini-cart__buttons .js-shop-more { width: 100%; }
.minicart__viewcart { text-align: center; font-size: .85rem; color: var(--muted); text-decoration: underline; padding-top: .2rem; }
.minicart.is-added .woocommerce-mini-cart-item:last-child { animation: addedIn .5s .1s both; background: linear-gradient(90deg, #F2FAF5, transparent); }
