:root{
  --buyit-purple: #0a84e3;
  --liquidglass-brand-accent: var(--buyit-purple);
  --header-h: 84px;
}

/* LIGHT Ä‚ËĂ˘â€šÂ¬Ă˘â‚¬Ĺ› tylko obraz */
:root[data-theme="light"] body{
  background: url("../img/buyit-tlo-jasne.webp") center/cover fixed no-repeat;
}

/* DARK Ä‚ËĂ˘â€šÂ¬Ă˘â‚¬Ĺ› tylko obraz */
:root[data-theme="dark"] body{
  background: url("../img/buyit-tlo-ciemne.webp") center/cover fixed no-repeat;
}

/* logo warianty Ä‚ËĂ˘â€šÂ¬Ă˘â‚¬Ĺ› wstaw dwie wersje i steruj klasÄ‚â€žĂ˘â‚¬Â¦ */
.site-branding .logo--light { display: inline-block; }
.site-branding .logo--dark  { display: none; }
:root[data-theme="dark"] .site-branding .logo--light { display: none; }
:root[data-theme="dark"] .site-branding .logo--dark  { display: inline-block; }

/* opcjonalnie: delikatny spacing kontentu od sticky headera */
:root { --header-h: 84px; }
.site-content { padding-top: var(--header-h); }

/* --- mini przeĂ„Ä…Ă˘â‚¬ĹˇÄ‚â€žĂ˘â‚¬Â¦cznik motywu (pills) --- */
.buyit-switch{
  --w: 48px; --h: 24px; --p: 2px; --knob: 20px;
  position: relative;
  width: var(--w); height: var(--h);
  border-radius: calc(var(--h) / 2);
  border: none; padding: 0; margin-right: .6rem;
  cursor: pointer;
  background: #f1f1f4;
  box-shadow: 0 1px 2px rgba(0,0,0,.15), inset 0 0 0 1px rgba(0,0,0,.06);
  transition: background .25s ease, box-shadow .25s ease;
}
:root[data-theme="dark"] .buyit-switch{
  background: #26262b;
  box-shadow: 0 1px 2px rgba(0,0,0,.35), inset 0 0 0 1px rgba(255,255,255,.06);
}

/* ikonka: w light sĂ„Ä…Ă˘â‚¬ĹˇoĂ„Ä…Ă˘â‚¬Ĺľce po PRAWEJ; w dark ksiÄ‚â€žĂ˘â€žËĂ„Ä…Ă„Ëťyc po LEWEJ */
.buyit-switch::before{
  content: 'Ä‚ËĂ‚ÂĂ˘â€šÂ¬Ă„ĹąĂ‚Â¸ÄąËť';
  position: absolute; right: 8px; top: 50%;
  transform: translateY(-50%);
  font-size: 13px; line-height: 1; color: #111; opacity: .95;
  pointer-events: none;
}
:root[data-theme="dark"] .buyit-switch::before{
  content: 'Ä‚ËÄąÄ…Ă„Äľ'; left: 8px; right: auto; color: #fff;
}

.buyit-switch::after{ /* gaĂ„Ä…Ă˘â‚¬Ĺˇka */
  content: '';
  position: absolute; top: var(--p); left: var(--p);
  width: var(--knob); height: var(--knob);
  border-radius: 999px;
  background: linear-gradient(#fff, #e9e9ee);
  box-shadow: 0 2px 6px rgba(0,0,0,.25), inset 0 0 0 1px rgba(0,0,0,.06);
  transition: left .25s ease, background .25s ease, box-shadow .25s ease;
}
:root[data-theme="dark"] .buyit-switch::after{
  background: linear-gradient(#2c2c33, #1f1f24);
  box-shadow: 0 2px 6px rgba(0,0,0,.45), inset 0 0 0 1px rgba(255,255,255,.08);
}

/* pozycja gaĂ„Ä…Ă˘â‚¬Ĺˇki wg aktualnego trybu (ustawia to JS data-mode) */
.buyit-switch[data-mode="light"]::after{ left: var(--p); }
.buyit-switch[data-mode="dark"]::after{ left: calc(var(--w) - var(--knob) - var(--p)); }

.site-header .buyit-switch { vertical-align: middle; }

/* GTranslate in desktop header: keep switcher fixed and open language list as overlay. */
@media (min-width: 981px) {
  #masthead .gtranslate_wrapper,
  #masthead .gt_float_switcher {
    position: relative !important;
    overflow: visible !important;
  }

  #masthead .gt_float_switcher .gt_options {
    position: absolute !important;
    top: calc(100% + 4px) !important;
    left: auto !important;
    right: 0 !important;
    float: none !important;
    z-index: 9999 !important;
  }

  #masthead .ast-builder-grid-row-container,
  #masthead .ast-builder-grid-row,
  #masthead .site-header-primary-section-right,
  #masthead .site-header-section {
    overflow: visible !important;
  }
}

/* Header zawsze transparentny */
.site-header,
.main-header-bar,
.ast-primary-header-bar,
.ast-above-header-bar,
.ast-below-header-bar {
  background: transparent !important;
  box-shadow: none !important;
}

/* sticky row teĂ„Ä…Ă„Ëť transparentny */
.ast-header-break-point .main-header-bar,
.ast-header-break-point .ast-mobile-header-wrap {
  background: transparent !important;
  box-shadow: none !important;
}

/* Astra mini-cart Ä‚ËĂ˘â‚¬Â Ă˘â‚¬â„˘ panel glass */
.ast-header-woo-cart .ast-mini-cart-wrapper,
.ast-site-header-cart .ast-mini-cart-wrapper,
.ast-woocommerce-mini-cart-wrapper {
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
}

.ast-header-woo-cart .ast-mini-cart .widget_shopping_cart_content,
.ast-site-header-cart .widget_shopping_cart .widget_shopping_cart_content,
.ast-woocommerce-mini-cart-wrapper .widget_shopping_cart_content {
  padding: 14px !important;
  border-radius: 18px;
  border: 1px solid transparent;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 12px 30px rgba(0,0,0,.30), inset 0 1px 0 rgba(255,255,255,.20);
  background:
    linear-gradient(var(--_tint), var(--_tint)) padding-box,
    linear-gradient(180deg, rgba(255,255,255,.22), rgba(255,255,255,.10)) padding-box,
    linear-gradient(135deg, var(--edge-light), var(--edge-fade) 35%, var(--edge-dark) 70%) border-box;
}

/* odczyt trybu dla tintu */
:root[data-theme="light"] .ast-header-woo-cart .widget_shopping_cart_content{ --_tint: rgba(255,255,255,.40); color:#111; }
:root[data-theme="dark"]  .ast-header-woo-cart .widget_shopping_cart_content{ --_tint: rgba(20,20,20,.40);   color:#fff; }
:root[data-theme="light"] .ast-woocommerce-mini-cart-wrapper .widget_shopping_cart_content{ --_tint: rgba(255,255,255,.40); color:#111; }
:root[data-theme="dark"]  .ast-woocommerce-mini-cart-wrapper .widget_shopping_cart_content{ --_tint: rgba(20,20,20,.40);   color:#fff; }

/* przyciski w mini-carcie */
.ast-header-woo-cart .widget_shopping_cart .buttons a,
.ast-woocommerce-mini-cart-wrapper .widget_shopping_cart .buttons a{
  display: inline-flex; align-items:center; justify-content:center;
  border-radius: 999px; padding: .6rem 1rem; font-weight: 600;
  background: transparent !important;
  box-shadow: inset 0 0 0 1.5px color-mix(in oklab, currentColor 45%, transparent);
}

/* zero linii pod headerem Ä‚ËĂ˘â€šÂ¬Ă˘â‚¬Ĺ› globalnie */
.main-header-bar,
.ast-primary-header-bar,
.ast-above-header-bar,
.ast-below-header-bar {
  border: none !important;
  box-shadow: none !important;
}
.main-header-bar:after,
.ast-primary-header-bar:after,
.ast-above-header-bar:after,
.ast-below-header-bar:after {
  content: none !important;
}

/* bazowy kolor linii */
:root[data-theme="light"] { --sep: rgba(0,0,0,.10); }
:root[data-theme="dark"]  { --sep: rgba(255,255,255,.16); }

/* Woocommerce: tabele w koszyku/kasie */
.woocommerce table.shop_table,
.woocommerce table.shop_table th,
.woocommerce table.shop_table td,
.woocommerce-cart .cart_totals .shop_table,
.woocommerce-checkout-review-order-table,
.woocommerce-checkout-review-order-table th,
.woocommerce-checkout-review-order-table td {
  border-color: var(--sep) !important;
}

/* hr i kreski pomiÄ‚â€žĂ˘â€žËdzy sekcjami */
hr, .wp-block-separator { border-color: var(--sep) !important; color: var(--sep) !important; }

/* Light Ä‚ËĂ˘â€šÂ¬Ă˘â‚¬Ĺ› zostawiamy domyĂ„Ä…Ă˘â‚¬Ĺźlne, tylko lekko zaokrÄ‚â€žĂ˘â‚¬Â¦glamy */
:root[data-theme="light"] input[type="text"],
:root[data-theme="light"] input[type="email"],
:root[data-theme="light"] input[type="tel"],
:root[data-theme="light"] input[type="number"],
:root[data-theme="light"] input[type="password"],
:root[data-theme="light"] textarea,
:root[data-theme="light"] select {
  border-radius: 12px;
}

/* Dark Ä‚ËĂ˘â€šÂ¬Ă˘â‚¬Ĺ› wyraĂ„Ä…ÄąĹşny styl */
:root[data-theme="dark"] input[type="text"],
:root[data-theme="dark"] input[type="email"],
:root[data-theme="dark"] input[type="tel"],
:root[data-theme="dark"] input[type="number"],
:root[data-theme="dark"] input[type="password"],
:root[data-theme="dark"] textarea,
:root[data-theme="dark"] select {
  background: rgba(255,255,255,.06) !important;
  color: #fff !important;
  border: 1px solid rgba(255,255,255,.22) !important;
  border-radius: 12px !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}
:root[data-theme="dark"] input::placeholder,
:root[data-theme="dark"] textarea::placeholder { color: rgba(255,255,255,.65); }

/* przy fokusie + :invalid */
:root[data-theme="dark"] input:focus,
:root[data-theme="dark"] textarea:focus,
:root[data-theme="dark"] select:focus {
  outline: none !important;
  border-color: rgba(10,132,227,.55) !important;  /* akcent fioletu */
  box-shadow: 0 0 0 3px rgba(10,132,227,.25);
}

/* Select2 (Woo uĂ„Ä…Ă„Ëťywa select2) */
:root[data-theme="dark"] .select2-container--default .select2-selection--single{
  background: rgba(255,255,255,.06) !important;
  color:#fff !important; border-radius:12px !important;
  border: 1px solid rgba(255,255,255,.22) !important;
}
:root[data-theme="dark"] .select2-container--default .select2-selection--single .select2-selection__rendered{ color:#fff !important; }
:root[data-theme="dark"] .select2-dropdown{
  background: rgba(20,20,24,.98) !important;
  border: 1px solid rgba(255,255,255,.18) !important;
  backdrop-filter: blur(4px);
}

/* --- FORM FIELDS (Light & Dark) --- */
:root[data-theme="light"] .woocommerce form .form-row .input-text,
:root[data-theme="light"] .woocommerce form .form-row textarea,
:root[data-theme="light"] .woocommerce form .form-row select {
  background: rgba(255,255,255,.85) !important;
  color: #111 !important;
  border: 1px solid rgba(0,0,0,.18) !important;
  border-radius: 12px !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.85), 0 0 0 0 transparent !important;
}

/* Dark Ä‚ËĂ˘â€šÂ¬Ă˘â‚¬Ĺ› jak u Ciebie, ale precyzyjniej (obejmuje teĂ„Ä…Ă„Ëť Woo blocks / Astra) */
:root[data-theme="dark"] .woocommerce form .form-row .input-text,
:root[data-theme="dark"] .woocommerce form .form-row textarea,
:root[data-theme="dark"] .woocommerce form .form-row select {
  background: rgba(255,255,255,.06) !important;
  color: #fff !important;
  border: 1px solid rgba(255,255,255,.22) !important;
  border-radius: 12px !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 0 0 0 transparent !important;
}

/* Placeholdery */
:root[data-theme="dark"] .woocommerce ::placeholder { color: rgba(255,255,255,.65) !important; }
:root[data-theme="light"] .woocommerce ::placeholder { color: rgba(0,0,0,.45) !important; }

/* Focus ring */
:root[data-theme="dark"] .woocommerce form .form-row :is(input,textarea,select):focus{
  outline: none !important;
  border-color: rgba(10,132,227,.55) !important;
  box-shadow: 0 0 0 3px rgba(10,132,227,.25) !important;
}
:root[data-theme="light"] .woocommerce form .form-row :is(input,textarea,select):focus{
  outline: none !important;
  border-color: rgba(10,132,227,.45) !important;
  box-shadow: 0 0 0 3px rgba(10,132,227,.18) !important;
}

/* --- SELECT2 (kraj/region itd.) Ä‚ËĂ˘â€šÂ¬Ă˘â‚¬ĹĄ usuwa biaĂ„Ä…Ă˘â‚¬ĹˇÄ‚â€žĂ˘â‚¬Â¦ nakĂ„Ä…Ă˘â‚¬ĹˇadkÄ‚â€žĂ˘â€žË --- */
.select2-container--default .select2-selection--single{
  height: auto !important; min-height: 46px; padding: 8px 40px 8px 12px;
  border-radius: 12px !important; border-width: 1px !important;
}

:root[data-theme="light"] .select2-container--default .select2-selection--single{
  background: rgba(255,255,255,.85) !important;
  border-color: rgba(0,0,0,.18) !important;
  color:#111 !important;
}
:root[data-theme="dark"] .select2-container--default .select2-selection--single{
  background: rgba(255,255,255,.06) !important;
  border-color: rgba(255,255,255,.22) !important;
  color:#fff !important;
}

/* tekst w renderze */
.select2-container--default .select2-selection--single .select2-selection__rendered{
  line-height: 1.3 !important; padding-left: 0 !important;
}
:root[data-theme="dark"] .select2-container--default .select2-selection__rendered{ color:#fff !important; }
:root[data-theme="light"] .select2-container--default .select2-selection__rendered{ color:#111 !important; }

/* strzaĂ„Ä…Ă˘â‚¬Ĺˇka */
.select2-container--default .select2-selection--single .select2-selection__arrow{
  height: 100% !important; right: 8px !important;
}

/* dropdown */
:root[data-theme="dark"] .select2-dropdown{
  background: rgba(20,20,24,.98) !important;
  border: 1px solid rgba(255,255,255,.18) !important;
  color:#fff !important; backdrop-filter: blur(4px);
}
:root[data-theme="light"] .select2-dropdown{
  background: rgba(255,255,255,.98) !important;
  border: 1px solid rgba(0,0,0,.12) !important;
  color:#111 !important;
}
/* kolory separatorĂ„â€šÄąâ€šw */
:root[data-theme="light"] { --sep: rgba(0,0,0,.10); }
:root[data-theme="dark"]  { --sep: rgba(255,255,255,.18); }

/* OGĂ„â€šĂ˘â‚¬Ĺ›LNE */
hr, .wp-block-separator { border-color: var(--sep) !important; color: var(--sep) !important; }

/* Tabele Woo classic */
.woocommerce table.shop_table,
.woocommerce table.shop_table th,
.woocommerce table.shop_table td { border-color: var(--sep) !important; }

/* Checkout review (klasyczne) */
.woocommerce-checkout-review-order-table,
.woocommerce-checkout-review-order-table th,
.woocommerce-checkout-review-order-table td,
.woocommerce-checkout-review-order-table tfoot th,
.woocommerce-checkout-review-order-table tfoot td,
.woocommerce-checkout #order_review .shop_table tfoot th,
.woocommerce-checkout #order_review .shop_table tfoot td {
  border-color: var(--sep) !important;
}

/* Woo Blocks (gdybyĂ„Ä…Ă˘â‚¬Ĺź uĂ„Ä…Ă„ËťyĂ„Ä…Ă˘â‚¬Ĺˇ blokowego checkoutu) */
.wc-block-components-totals-item,
.wc-block-components-panel__content,
.wc-block-components-totals-wrapper,
.wc-block-components-order-summary-item__quantity {
  border-color: var(--sep) !important;
}
/* zewnÄ‚â€žĂ˘â€žËtrzny wrapper (ten z trĂ„â€šÄąâ€šjkÄ‚â€žĂ˘â‚¬Â¦tem) */
.ast-header-woo-cart .ast-mini-cart {
  background: transparent !important; border: none !important;
}

/* GLASS na najwyĂ„Ä…Ă„Ëťszym kontenerze, rĂ„â€šÄąâ€šwne rogi + ukryj overflow */
.ast-header-woo-cart .ast-mini-cart .widget_shopping_cart {
  border-radius: 18px !important; overflow: hidden;
  border: 1px solid transparent;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 12px 30px rgba(0,0,0,.30), inset 0 1px 0 rgba(255,255,255,.20);
  background:
    linear-gradient(var(--_tint), var(--_tint)) padding-box,
    linear-gradient(180deg, rgba(255,255,255,.22), rgba(255,255,255,.10)) padding-box,
    linear-gradient(135deg, var(--edge-light), var(--edge-fade) 35%, var(--edge-dark) 70%) border-box !important;
}

/* wnÄ‚â€žĂ˘â€žËtrze bez biaĂ„Ä…Ă˘â‚¬Ĺˇych teĂ„Ä…Ă˘â‚¬Ĺˇ */
.ast-header-woo-cart .widget_shopping_cart_content,
.ast-header-woo-cart .widget_shopping_cart .cart_list,
.ast-header-woo-cart .widget_shopping_cart .product_list_widget {
  background: transparent !important; border: none !important; box-shadow: none !important;
}

/* paddingi wewnÄ‚â€žĂ˘â‚¬Â¦trz */
.ast-header-woo-cart .widget_shopping_cart_content { padding: 14px 14px 12px !important; }

/* tryb tintu */
:root[data-theme="light"] .ast-header-woo-cart .widget_shopping_cart{ --_tint: rgba(255,255,255,.30); color:#111; }
:root[data-theme="dark"]  .ast-header-woo-cart .widget_shopping_cart{ --_tint: rgba(20,20,20,.50);   color:#fff; }

/* przyciski */
.ast-header-woo-cart .widget_shopping_cart .buttons a{
  display:inline-flex; align-items:center; justify-content:center;
  border-radius: 999px; padding:.6rem 1rem; font-weight:600;
  background: transparent !important;
  box-shadow: inset 0 0 0 1.5px color-mix(in oklab, currentColor 45%, transparent);
}
.ast-header-woo-cart .ast-mini-cart:before,
.ast-header-woo-cart .ast-mini-cart:after { display:none !important; }

/* 1) Mini-cart: wyczyĂ„Ä…Ă˘â‚¬ĹźÄ‚â€žĂ˘â‚¬Ë‡ wszystkie biaĂ„Ä…Ă˘â‚¬Ĺˇe tĂ„Ä…Ă˘â‚¬Ĺˇa wewnÄ‚â€žĂ˘â‚¬Â¦trz */
.ast-header-woo-cart .widget_shopping_cart,
.ast-header-woo-cart .widget_shopping_cart *,
.ast-site-header-cart .widget_shopping_cart,
.ast-site-header-cart .widget_shopping_cart * {
  background-color: transparent !important;
}

/* elementy, ktĂ„â€šÄąâ€šre Astra barwi na #fff */
.ast-header-woo-cart .woocommerce-mini-cart,
.ast-header-woo-cart .woocommerce-mini-cart li,
.ast-header-woo-cart .woocommerce-mini-cart__total,
.ast-header-woo-cart .woocommerce-mini-cart__buttons,
.ast-site-header-cart  .woocommerce-mini-cart,
.ast-site-header-cart  .woocommerce-mini-cart li,
.ast-site-header-cart  .woocommerce-mini-cart__total,
.ast-site-header-cart  .woocommerce-mini-cart__buttons {
  background: transparent !important;
  border-color: var(--sep) !important;
}

/* sam panel (szkĂ„Ä…Ă˘â‚¬Ĺˇo) Ä‚ËĂ˘â€šÂ¬Ă˘â‚¬Ĺ› zostaje jak ustawiĂ„Ä…Ă˘â‚¬ĹˇeĂ„Ä…Ă˘â‚¬Ĺź, dokĂ„Ä…Ă˘â‚¬Ĺˇadamy dziedziczenie koloru */
.ast-header-woo-cart .widget_shopping_cart { color: inherit; }
.ast-header-woo-cart .widget_shopping_cart * { color: inherit; }

/* 2) Zmienna obramowaĂ„Ä…Ă˘â‚¬Ĺľ Astry Ä‚ËĂ˘â€šÂ¬Ă˘â‚¬Ĺ› podbij w DARK (linie w checkout/review) */
:root[data-theme="dark"]{
  --ast-border-color: rgba(255,255,255,.18);
  --ast-global-border-color: rgba(255,255,255,.18);
}

/* 3) Jeszcze raz najczÄ‚â€žĂ˘â€žËstsze kreski w podsumowaniu zamĂ„â€šÄąâ€šwienia (rĂ„â€šÄąâ€šwnieĂ„Ä…Ă„Ëť Astra) */
.woocommerce #order_review .shop_table,
.woocommerce #order_review .shop_table td,
.woocommerce #order_review .shop_table th,
.woocommerce #order_review .shop_table tfoot th,
.woocommerce #order_review .shop_table tfoot td,
.woocommerce .woocommerce-checkout-review-order-table,
.woocommerce .woocommerce-checkout-review-order-table * {
  border-color: var(--sep) !important;
}

/* 4) Select2 Ä‚ËĂ˘â€šÂ¬Ă˘â‚¬Ĺ› usuĂ„Ä…Ă˘â‚¬Ĺľ domyĂ„Ä…Ă˘â‚¬Ĺźlny biaĂ„Ä…Ă˘â‚¬Ĺˇy Ä‚ËĂ˘â€šÂ¬ÄąÄľoverlayÄ‚ËĂ˘â€šÂ¬ÄąÄ„ na liĂ„Ä…Ă˘â‚¬Ĺźcie opcji */
.select2-results__options,
.select2-results__option {
  background: transparent !important;
  color: inherit !important;
}

/* 5) Dla pewnoĂ„Ä…Ă˘â‚¬Ĺźci: Ă„Ä…Ă„Ëťadnych Ä‚ËĂ˘â€šÂ¬ÄąÄľdziĂ„â€šÄąâ€šbkĂ„â€šÄąâ€šwÄ‚ËĂ˘â€šÂ¬ÄąÄ„ ani cieni wokĂ„â€šÄąâ€šĂ„Ä…Ă˘â‚¬Ĺˇ koszyka */
.ast-header-woo-cart .ast-mini-cart:before,
.ast-header-woo-cart .ast-mini-cart:after { display:none !important; }
.ast-header-woo-cart .ast-mini-cart { box-shadow:none !important; }

/* Mini-cart Ä‚ËĂ˘â€šÂ¬Ă˘â‚¬Ĺ› wariant bez ramki (jak kafelki) */
.ast-header-woo-cart .ast-mini-cart .widget_shopping_cart{
  border: 0 !important;
  background: linear-gradient(var(--_tint), var(--_tint)) !important; /* bez gradientu border-box */
  box-shadow: 0 18px 50px rgba(0,0,0,.38), inset 0 1px 0 rgba(255,255,255,.14) !important;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-radius: 18px !important; overflow: hidden;
}

/* wyczyĂ„Ä…Ă˘â‚¬ĹźÄ‚â€žĂ˘â‚¬Ë‡ biaĂ„Ä…Ă˘â‚¬Ĺˇe tĂ„Ä…Ă˘â‚¬Ĺˇa i obramowania wewnÄ‚â€žĂ˘â‚¬Â¦trz */
.ast-header-woo-cart .widget_shopping_cart_content,
.ast-header-woo-cart .woocommerce-mini-cart,
.ast-header-woo-cart .woocommerce-mini-cart li,
.ast-header-woo-cart .woocommerce-mini-cart__total,
.ast-header-woo-cart .woocommerce-mini-cart__buttons{
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

/* przyciski w mini-carcie Ä‚ËĂ˘â€šÂ¬Ă˘â‚¬Ĺ› outline fiolet jak w kafelkach */
.ast-header-woo-cart .widget_shopping_cart .buttons a{
  display:inline-flex; align-items:center; justify-content:center;
  border-radius: 999px; padding:.6rem 1rem; font-weight:600;
  background: transparent !important;
  box-shadow: inset 0 0 0 1.5px color-mix(in oklab, currentColor 45%, transparent) !important;
}

/* usuĂ„Ä…Ă˘â‚¬Ĺľ Ä‚ËĂ˘â€šÂ¬ÄąÄľdziĂ„â€šÄąâ€šbekÄ‚ËĂ˘â€šÂ¬ÄąÄ„ i wszystkie kanciaste obrysy wokĂ„â€šÄąâ€šĂ„Ä…Ă˘â‚¬Ĺˇ */
.ast-header-woo-cart .ast-mini-cart:before,
.ast-header-woo-cart .ast-mini-cart:after { display:none !important; }
.ast-header-woo-cart .ast-mini-cart,
.ast-header-woo-cart .ast-mini-cart * { box-shadow: none !important; }

/* MINI-CART: kolory tekstĂ„â€šÄąâ€šw i przyciskĂ„â€šÄąâ€šw per tryb */
:root[data-theme="dark"] .ast-header-woo-cart .widget_shopping_cart,
:root[data-theme="dark"] .ast-header-woo-cart .widget_shopping_cart * {
  color: #fff !important;
}
:root[data-theme="light"] .ast-header-woo-cart .widget_shopping_cart,
:root[data-theme="light"] .ast-header-woo-cart .widget_shopping_cart * {
  color: #111 !important;
}

/* upewnij siÄ‚â€žĂ˘â€žË, Ă„Ä…Ă„Ëťe tytuĂ„Ä…Ă˘â‚¬Ĺˇ i ceny nie Ă„Ä…Ă˘â‚¬ĹˇapiÄ‚â€žĂ˘â‚¬Â¦ fioletu z motywu */
.ast-header-woo-cart .widget_shopping_cart .woocommerce-mini-cart-item a,
.ast-header-woo-cart .widget_shopping_cart .woocommerce-Price-amount,
.ast-header-woo-cart .widget_shopping_cart .amount,
.ast-header-woo-cart .widget_shopping_cart .total,
.ast-header-woo-cart .widget_shopping_cart .woocommerce-mini-cart__total {
  color: inherit !important;
}

/* przyciski w mini-carcie Ä‚ËĂ˘â€šÂ¬Ă˘â‚¬ĹĄ tekst teĂ„Ä…Ă„Ëť bierz z currentColor */
.ast-header-woo-cart .widget_shopping_cart .buttons a {
  color: inherit !important;                 /* biaĂ„Ä…Ă˘â‚¬Ĺˇe w dark, czarne w light */
  background: transparent !important;
  box-shadow: inset 0 0 0 1.5px color-mix(in oklab, currentColor 45%, transparent) !important;
}

/* (opcjonalnie) hover/focus Ä‚ËĂ˘â€šÂ¬Ă˘â‚¬Ĺ› delikatne rozjaĂ„Ä…Ă˘â‚¬Ĺźnienie obrysu */
.ast-header-woo-cart .widget_shopping_cart .buttons a:hover,
.ast-header-woo-cart .widget_shopping_cart .buttons a:focus {
  box-shadow: inset 0 0 0 2px color-mix(in oklab, currentColor 65%, transparent) !important;
}

/* === GLOBAL BUTTON LOOK (outline + glass, jak checkout) === */
:root{
  --buyit-accent: #0a84e3;                /* fiolet obrysu */
  --btn-radius: 13px;
  --btn-pad-y: .9rem;
  --btn-pad-x: 1.4rem;
}

/* Reset i wspĂ„â€šÄąâ€šlny wyglÄ‚â€žĂ˘â‚¬Â¦d */
button,
input[type="submit"],
input[type="button"],
input[type="reset"],
.ast-button,
.wp-element-button,
.wp-block-button__link,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce .checkout-button {
  -webkit-appearance: none;
  appearance: none;
  border: 0;
  border-radius: var(--btn-radius) !important;
  padding: var(--btn-pad-y) var(--btn-pad-x) !important;
  font-weight: 700;
  line-height: 1.1;
  cursor: pointer;
  text-align: center;
  text-decoration: none !important;
  position: relative;
  overflow: hidden;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  /* szkĂ„Ä…Ă˘â‚¬Ĺˇo + obrys */
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  background:
    linear-gradient(var(--btn-bg-tint), var(--btn-bg-tint));
  box-shadow:
    inset 0 0 0 2px var(--btn-outline),
    0 2px 10px rgba(0,0,0,.18);
  color: var(--btn-fg) !important;
}

/* Kolory per tryb */
:root[data-theme="light"] {
  --btn-bg-tint: rgba(255,255,255,.65);
  --btn-outline: color-mix(in oklab, var(--buyit-accent) 90%, #6a58ff 10%);
  --btn-fg: #111;
}
:root[data-theme="dark"] {
  --btn-bg-tint: rgba(0,0,0,.28);
  --btn-outline: color-mix(in oklab, var(--buyit-accent) 90%, #a58bff 10%);
  --btn-fg: #fff;
}

/* Hover/focus: jaĂ„Ä…Ă˘â‚¬Ĺźniejszy obrys i subtelny glow */
button:hover,
input[type="submit"]:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
.ast-button:hover,
.wp-element-button:hover,
.wp-block-button__link:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover,
.woocommerce .checkout-button:hover {
  box-shadow:
    inset 0 0 0 2.5px color-mix(in oklab, var(--btn-outline) 85%, white 15%),
    0 4px 18px rgba(10,132,227,.25);
}

button:focus,
input[type="submit"]:focus,
input[type="button"]:focus,
input[type="reset"]:focus,
.ast-button:focus,
.wp-element-button:focus,
.wp-block-button__link:focus,
.woocommerce a.button:focus,
.woocommerce button.button:focus,
.woocommerce input.button:focus,
.woocommerce #respond input#submit:focus,
.woocommerce .checkout-button:focus {
  outline: none !important;
  box-shadow:
    inset 0 0 0 3px color-mix(in oklab, var(--btn-outline) 70%, white 30%),
    0 0 0 3px rgba(10,132,227,.22);
}

/* Active: lekkie Ä‚ËĂ˘â€šÂ¬ÄąÄľwciĂ„Ä…Ă˘â‚¬ĹźniÄ‚â€žĂ˘â€žËcieÄ‚ËĂ˘â€šÂ¬ÄąÄ„ */
button:active,
input[type="submit"]:active,
input[type="button"]:active,
input[type="reset"]:active,
.ast-button:active,
.wp-element-button:active,
.wp-block-button__link:active,
.woocommerce a.button:active,
.woocommerce button.button:active,
.woocommerce input.button:active,
.woocommerce #respond input#submit:active,
.woocommerce .checkout-button:active {
  transform: translateY(1px);
}

/* Disabled */
button[disabled],
input[type="submit"][disabled],
input[type="button"][disabled],
input[type="reset"][disabled],
.ast-button[disabled],
.wp-element-button[disabled],
.wp-block-button__link[disabled],
.woocommerce a.button.disabled,
.woocommerce button.button.disabled,
.woocommerce input.button.disabled {
  opacity: .55;
  cursor: not-allowed;
  box-shadow: inset 0 0 0 2px color-mix(in oklab, var(--btn-outline) 35%, transparent);
}

/* Guziki Woo w mini-carcie / koszyku / kasie teĂ„Ä…Ă„Ëť pod tÄ‚â€žĂ˘â€žË samÄ‚â€žĂ˘â‚¬Â¦ ramÄ‚â€žĂ˘â€žË */
.ast-header-woo-cart .widget_shopping_cart .buttons a,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt,
.woocommerce .cart .button,
.woocommerce .cart input.button,
.woocommerce .checkout-button {
  color: var(--btn-fg) !important;
  background: linear-gradient(var(--btn-bg-tint), var(--btn-bg-tint)) !important;
  box-shadow:
    inset 0 0 0 2px var(--btn-outline) !important,
    0 2px 10px rgba(0,0,0,.18) !important;
}

/* (opcjonalnie) Klasa .btn-primary (wypeĂ„Ä…Ă˘â‚¬Ĺˇniony) Ä‚ËĂ˘â€šÂ¬Ă˘â‚¬Ĺ› gdy kiedyĂ„Ä…Ă˘â‚¬Ĺź potrzebujesz peĂ„Ä…Ă˘â‚¬Ĺˇnego wypeĂ„Ä…Ă˘â‚¬Ĺˇnienia */
.btn-primary,
.wp-block-button.is-style-fill .wp-block-button__link {
  background: color-mix(in oklab, var(--buyit-accent) 30%, transparent) !important;
  box-shadow:
    inset 0 0 0 2px var(--btn-outline),
    0 6px 20px rgba(10,132,227,.25) !important;
}
/* === FIX 1: Quantity (Gutenberg/Woo Blocks) Ä‚ËĂ˘â€šÂ¬Ă˘â‚¬Ĺ› usuĂ„Ä…Ă˘â‚¬Ĺľ dodatkowÄ‚â€žĂ˘â‚¬Â¦ ramkÄ‚â€žĂ˘â€žË === */
.wc-block-components-quantity-selector {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  outline: none !important;
}
.wc-block-components-quantity-selector__input,
.wc-block-components-quantity-selector__button {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  outline: none !important;
}

/* === FIX 2: My Account (DARK) Ä‚ËĂ˘â€šÂ¬Ă˘â‚¬Ĺ› usuĂ„Ä…Ă˘â‚¬Ĺľ biaĂ„Ä…Ă˘â‚¬Ĺˇe zaznaczenie w nawigacji === */
:root[data-theme="dark"] .woocommerce-MyAccount-navigation,
:root[data-theme="dark"] .woocommerce-MyAccount-navigation * {
  background: transparent !important;
  box-shadow: none !important;
}
:root[data-theme="dark"] .woocommerce-MyAccount-navigation ul li a,
:root[data-theme="dark"] .woocommerce-MyAccount-navigation ul li.is-active a,
:root[data-theme="dark"] .woocommerce-MyAccount-navigation ul li a:focus,
:root[data-theme="dark"] .woocommerce-MyAccount-navigation ul li a:hover {
  background: transparent !important;
  color: inherit !important;
  box-shadow: none !important;
  border: 0 !important;
}

/* === FIX 3: Adresy (DARK) Ä‚ËĂ˘â€šÂ¬Ă˘â‚¬Ĺ› usuĂ„Ä…Ă˘â‚¬Ĺľ biaĂ„Ä…Ă˘â‚¬Ĺˇe kafle/poĂ„Ä…Ă˘â‚¬ĹźwiatÄ‚â€žĂ˘â€žË === */
:root[data-theme="dark"] .u-columns.woocommerce-Addresses.col2-set.addresses,
:root[data-theme="dark"] .u-columns.woocommerce-Addresses.col2-set.addresses * {
  background: transparent !important;
  box-shadow: none !important;
}
:root[data-theme="dark"] .u-columns.woocommerce-Addresses.col2-set.addresses .woocommerce-Address,
:root[data-theme="dark"] .u-columns.woocommerce-Addresses.col2-set.addresses .woocommerce-column,
:root[data-theme="dark"] .u-columns.woocommerce-Addresses.col2-set.addresses .woocommerce-column__title {
  border: 0 !important;
  color: inherit !important;
}
/* Footer copyright Ä‚ËĂ˘â€šÂ¬Ă˘â‚¬Ĺ› czarny tekst w trybie jasnym */
:root[data-theme="light"] .ast-footer-copyright {
  color: #000 !important;
}
:root[data-theme="light"] .ast-footer-copyright a {
  color: #000 !important;
}
/* Woo Blocks: Quantity Ä‚ËĂ˘â€šÂ¬Ă˘â‚¬Ĺ› bez ramek */
.wc-block-components-quantity-selector {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  outline: none !important;
}
.wc-block-components-quantity-selector::before,
.wc-block-components-quantity-selector::after { display: none !important; }

.wc-block-components-quantity-selector__input,
.wc-block-components-quantity-selector__button {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  outline: none !important;
}

/* brak obrysu przy focus/focus-within */
.wc-block-components-quantity-selector:focus,
.wc-block-components-quantity-selector:focus-within,
.wc-block-components-quantity-selector__input:focus,
.wc-block-components-quantity-selector__button:focus {
  outline: none !important;
  box-shadow: none !important;
}
/* Woo Blocks: Quantity Ä‚ËĂ˘â€šÂ¬Ă˘â‚¬Ĺ› ramka na polu liczby */
.wc-block-components-quantity-selector__input {
    background: transparent !important;
    color: inherit !important;
    border: 1.5px solid color-mix(in oklab, currentColor 40%, transparent) !important;
    border-radius: 12px !important;
    height: 40px !important;
    width: 56px !important;
    text-align: center !important;
    box-shadow: none !important;
    outline: none !important;
}

/* focus/hover */
.wc-block-components-quantity-selector__input:hover {
    border-color: color-mix(in oklab, currentColor 55%, transparent) !important;
}

.wc-block-components-quantity-selector__input:focus-visible {
    box-shadow: 0 0 0 2px color-mix(in oklab, currentColor 28%, transparent) !important;
}

.wc-block-components-quantity-selector__input[type=number] {
    -moz-appearance: textfield;
}

/* BUYIT switch: bez niebieskiego podĂ„Ä…Ă˘â‚¬Ĺźwietlania + delikatny resize kapsuĂ„Ä…Ă˘â‚¬Ĺˇy */
.buyit-switch {
    /* dopasuj TYLKO kapsuĂ„Ä…Ă˘â‚¬ĹˇÄ‚â€žĂ˘â€žË do istniejÄ‚â€žĂ˘â‚¬Â¦cej gaĂ„Ä…Ă˘â‚¬Ĺˇki */
    --knob: 20px;
    /* jeĂ„Ä…Ă˘â‚¬Ĺźli Twoja gaĂ„Ä…Ă˘â‚¬Ĺˇka ma inny rozmiar, zmieĂ„Ä…Ă˘â‚¬Ĺľ tu (np. 18px / 22px) */
    width: calc(var(--knob) * 2.3) !important;
    /* odrobinÄ‚â€žĂ˘â€žË szerszy */
    height: calc(var(--knob) + 4px) !important;
    /* odrobinÄ‚â€žĂ˘â€žË niĂ„Ä…Ă„Ëťszy */
    border-radius: 999px !important;
    padding: 0 !important;
    line-height: 1 !important;
    box-sizing: border-box !important;

    /* wyĂ„Ä…Ă˘â‚¬ĹˇÄ‚â€žĂ˘â‚¬Â¦cz niebieskie podĂ„Ä…Ă˘â‚¬Ĺźwietlanie */
    outline: none !important;
    box-shadow: none !important;
    -webkit-tap-highlight-color: transparent;
}

.buyit-switch:hover,
.buyit-switch:active,
.buyit-switch:focus,
.buyit-switch:focus-visible {
    outline: none !important;
    box-shadow: none !important;
    filter: none !important;
}
/* BUYIT switch Ä‚ËĂ˘â€šÂ¬Ă˘â‚¬Ĺ› bez niebieskiego/Ă„Ä…Ă„Ëťadnego glow na hover/focus */
button.buyit-switch,
.buyit-switch {
    -webkit-appearance: none;
    appearance: none;
    outline: none !important;
    box-shadow: none !important;
    background-image: none !important;
}

/* zbij hover/active/focus (Chrome, Safari, Edge) */
.buyit-switch:hover,
.buyit-switch:active,
.buyit-switch:focus,
.buyit-switch:focus-visible {
    outline: none !important;
    box-shadow: none !important;
    filter: none !important;
    background-image: none !important;
}

/* Firefoxowe ringi */
.buyit-switch::-moz-focus-inner {
    border: 0 !important;
}

.buyit-switch:-moz-focusring {
    outline: none !important;
}

/* (opcjonalnie) jeĂ„Ä…Ă„Ëťeli Astra nadaje efekt przez klasÄ‚â€žĂ˘â€žË .ast-button:hover */
.ast-button .buyit-switch:hover,
.ast-button .buyit-switch:focus {
    box-shadow: none !important;
}

/* Ikona koszyka: podmiana na wĂ„Ä…Ă˘â‚¬Ĺˇasne SVG per tryb motywu */
.ast-header-woo-cart .ast-icon.icon-cart {
  /* twardy rozmiar jak w Astrze (dopasuj w razie potrzeby) */
  width: 22px !important;
  height: 22px !important;
  display: inline-block;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

/* ukryj oryginalne SVG/font ikony, zostawiamy tylko nasze tĂ„Ä…Ă˘â‚¬Ĺˇo */
.ast-header-woo-cart .ast-icon.icon-cart svg,
.ast-header-woo-cart .ast-icon.icon-cart::before,
.ast-header-woo-cart .ast-icon.icon-cart::after {
  display: none !important;
  content: none !important;
}

/* Ă„Ä…Ă˘â‚¬ĹźcieĂ„Ä…Ă„Ëťki do Twoich plikĂ„â€šÄąâ€šw */
:root[data-theme="light"] .ast-header-woo-cart .ast-icon.icon-cart {
  background-image: url("../img/shopping-cart-black.svg");
}
:root[data-theme="dark"]  .ast-header-woo-cart .ast-icon.icon-cart {
  background-image: url("../img/shopping-cart-white.svg");
}

/* (opcjonalnie) lekki efekt przy hoverze */
.ast-header-woo-cart .ast-icon.icon-cart:hover {
  filter: brightness(1.05);
}
/* Ikona "Moje konto": podmiana na wĂ„Ä…Ă˘â‚¬Ĺˇasne SVG per tryb motywu */
.ast-header-account-link.ast-account-action-link.ast-header-account-type-icon {
  /* twardy rozmiar jak w Astrze (dopasuj w razie potrzeby) */
  width: 22px !important;
  height: 22px !important;
  display: inline-block;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

/* ukryj oryginalne SVG/font ikony, zostawiamy tylko nasze tĂ„Ä…Ă˘â‚¬Ĺˇo */
.ast-header-account-link.ast-account-action-link.ast-header-account-type-icon svg,
.ast-header-account-link.ast-account-action-link.ast-header-account-type-icon::before,
.ast-header-account-link.ast-account-action-link.ast-header-account-type-icon::after {
  display: none !important;
  content: none !important;
}

/* Ă„Ä…Ă˘â‚¬ĹźcieĂ„Ä…Ă„Ëťki do Twoich plikĂ„â€šÄąâ€šw (liquid-glass-template-for-astra) */
:root[data-theme="light"] .ast-header-account-link.ast-account-action-link.ast-header-account-type-icon {
  background-image: url("../img/my-account-black.svg");
}
:root[data-theme="dark"]  .ast-header-account-link.ast-account-action-link.ast-header-account-type-icon {
  background-image: url("../img/my-account-white.svg");
}

/* (opcjonalnie) lekki efekt przy hoverze */
.ast-header-account-link.ast-account-action-link.ast-header-account-type-icon:hover {
  filter: brightness(1.05);
}
/* === BuyIT: separatory w koszyku (WooCommerce Blocks) === */
/* Kolor linii per tryb */
:root[data-theme="light"] { --cart-sep: rgba(0,0,0,.26); }   /* ciemnoszare na jasnym */
:root[data-theme="dark"]  { --cart-sep: rgba(255,255,255,.28); } /* jasnoszare na ciemnym */

/* Dodaj dĂ„â€šÄąâ€šĂ„Ä…Ă˘â‚¬Ĺˇ-bordery pod wskazanymi sekcjami */
.wc-block-cart-items__header,
.wc-block-cart-items__row,
.wp-block-woocommerce-cart-order-summary-heading-block.wc-block-cart__totals-title,
.wp-block-woocommerce-cart-order-summary-coupon-form-block.wc-block-components-totals-wrapper,
.wc-block-components-totals-wrapper {
  border-bottom: 1px solid var(--cart-sep) !important;
}

/* Dla wierszy: uniknij podwĂ„â€šÄąâ€šjnych linii, zostaw jednÄ‚â€žĂ˘â‚¬Â¦ pod kaĂ„Ä…Ă„Ëťdym */
.wc-block-cart-items__row + .wc-block-cart-items__row {
  border-top: 0 !important;
}

/* JeĂ„Ä…Ă„Ëťeli ktĂ„â€šÄąâ€šreĂ„Ä…Ă˘â‚¬Ĺź z tych blokĂ„â€šÄąâ€šw majÄ‚â€žĂ˘â‚¬Â¦ wĂ„Ä…Ă˘â‚¬Ĺˇasne obramowania z bokĂ„â€šÄąâ€šw/gĂ„â€šÄąâ€šry Ä‚ËĂ˘â€šÂ¬Ă˘â‚¬Ĺ› wygaszamy je */
.wc-block-cart-items__header,
.wc-block-cart-items__row,
.wp-block-woocommerce-cart-order-summary-heading-block.wc-block-cart__totals-title,
.wp-block-woocommerce-cart-order-summary-coupon-form-block.wc-block-components-totals-wrapper,
.wc-block-components-totals-wrapper {
  border-left: 0 !important;
  border-right: 0 !important;
  /* gĂ„â€šÄąâ€šrne zostawiamy 0, bo chcemy tylko liniÄ‚â€žĂ˘â€žË na dole */
  border-top: 0 !important;
}
/* === BuyIT: fioletowy hover dla przyciskĂ„â€šÄąâ€šw w koszyku i mini-carcie === */
:root {
    --buyit-purple: #0a84e3;
}

/* KOSZYK (classic Woo) */
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover,
.woocommerce-cart a.button:hover,
.woocommerce-cart button.button:hover {
    background: color-mix(in oklab, var(--buyit-purple) 24%, transparent) !important;
    box-shadow:
        inset 0 0 0 2px var(--buyit-purple) !important,
        0 2px 12px color-mix(in oklab, var(--buyit-purple) 35%, transparent) !important;
    filter: none !important;
    transition: box-shadow .15s ease, background-color .15s ease;
}

/* KOSZYK (Woo Blocks) */
.wc-block-cart__submit-button:hover,
.wc-block-components-button:not([disabled]):hover {
    background: color-mix(in oklab, var(--buyit-purple) 24%, transparent) !important;
    box-shadow:
        inset 0 0 0 2px var(--buyit-purple) !important,
        0 2px 12px color-mix(in oklab, var(--buyit-purple) 35%, transparent) !important;
    transition: box-shadow .15s ease, background-color .15s ease;
}

/* MINI-CART (Astra / Woo) */
.ast-header-woo-cart .widget_shopping_cart .woocommerce-mini-cart__buttons.buttons a:hover,
.ast-header-woo-cart .widget_shopping_cart .woocommerce-mini-cart__buttons.buttons .button:hover,
.ast-header-woo-cart .widget_shopping_cart .woocommerce-mini-cart__buttons.buttons .wc-forward:hover,
.ast-header-woo-cart .widget_shopping_cart .woocommerce-mini-cart__buttons.buttons .checkout:hover {
    background: color-mix(in oklab, var(--buyit-purple) 24%, transparent) !important;
    box-shadow:
        inset 0 0 0 2px var(--buyit-purple) !important,
        0 2px 12px color-mix(in oklab, var(--buyit-purple) 35%, transparent) !important;
    transition: box-shadow .15s ease, background-color .15s ease;
}

/* DomyĂ„Ä…Ă˘â‚¬Ĺźlnie schowaj obie (na wszelki wypadek) */
.buyit-cat-thumb-img--light,
.buyit-cat-thumb-img--dark {
  display: none;
}

/* Tryb jasny */
:root[data-theme="light"] .buyit-cat-thumb-img--light {
  display: block;
}

:root[data-theme="light"] .buyit-cat-thumb-img--dark {
  display: none;
}

/* Tryb ciemny */
:root[data-theme="dark"] .buyit-cat-thumb-img--light {
  display: none;
}

:root[data-theme="dark"] .buyit-cat-thumb-img--dark {
  display: block;
}
/* =========================================================
   LIQUID GLASS SCROLLBARS (BEZ psucia krawÄ‚â€žĂ˘â€žËdzi kafelkĂ„â€šÄąâ€šw)
   - NIE globalnie na wszystko
   - track jest przezroczysty (nie robi paska przy krawÄ‚â€žĂ˘â€žËdzi)
   - stylujesz thumb, a Ä‚ËĂ˘â€šÂ¬Äąâ€şodstÄ‚â€žĂ˘â€žËpÄ‚ËĂ˘â€šÂ¬ÄąÄ„ robi border transparent
   ========================================================= */

:root {
    --lg-sb-size: 10px;
    --lg-sb-radius: 999px;
}

:root[data-theme="light"] {
    --lg-sb-thumb: rgba(0, 0, 0, .28);
    --lg-sb-thumb-hover: rgba(0, 0, 0, .38);
}

:root[data-theme="dark"] {
    --lg-sb-thumb: rgba(255, 255, 255, .26);
    --lg-sb-thumb-hover: rgba(255, 255, 255, .38);
}

/* Lista kontenerĂ„â€šÄąâ€šw, ktĂ„â€šÄąâ€šre faktycznie scrollujÄ‚â€žĂ˘â‚¬Â¦ (Astra/Woo) + opcjonalna klasa */
:where(.lg-scroll,
    .ast-header-woo-cart .widget_shopping_cart_content,
    .ast-header-woo-cart .woocommerce-mini-cart,
    .ast-mobile-popup-drawer,
    .ast-mobile-popup-content,
    .ast-off-canvas-menu,
    .ast-off-canvas-sidebar,
    .wc-block-mini-cart__items,
    .wc-block-components-sidebar,
    .woocommerce-mini-cart) {
    /* Firefox */
    scrollbar-width: thin;
    scrollbar-color: var(--lg-sb-thumb) transparent;
    /* waĂ„Ä…Ă„Ëťne: NIE uĂ„Ä…Ă„Ëťywamy scrollbar-gutter: stable (to robi Ä‚ËĂ˘â€šÂ¬Äąâ€şuciÄ‚â€žĂ˘â€žËtÄ‚â€žĂ˘â‚¬Â¦Ä‚ËĂ˘â€šÂ¬ÄąÄ„ krawÄ‚â€žĂ˘â€žËdĂ„Ä…ÄąĹş) */
}

/* WebKit: tylko na tych kontenerach */
:where(.lg-scroll,
    .ast-header-woo-cart .widget_shopping_cart_content,
    .ast-header-woo-cart .woocommerce-mini-cart,
    .ast-mobile-popup-drawer,
    .ast-mobile-popup-content,
    .ast-off-canvas-menu,
    .ast-off-canvas-sidebar,
    .wc-block-mini-cart__items,
    .wc-block-components-sidebar,
    .woocommerce-mini-cart)::-webkit-scrollbar {
    width: var(--lg-sb-size);
    height: var(--lg-sb-size);
}

:where(.lg-scroll,
    .ast-header-woo-cart .widget_shopping_cart_content,
    .ast-header-woo-cart .woocommerce-mini-cart,
    .ast-mobile-popup-drawer,
    .ast-mobile-popup-content,
    .ast-off-canvas-menu,
    .ast-off-canvas-sidebar,
    .wc-block-mini-cart__items,
    .wc-block-components-sidebar,
    .woocommerce-mini-cart)::-webkit-scrollbar-button {
    display: none;
    width: 0;
    height: 0;
}

/* Track ZAWSZE przezroczysty Ä‚ËĂ˘â€šÂ¬Ă˘â‚¬Ĺ› nie psuje prawej krawÄ‚â€žĂ˘â€žËdzi kafelka */
:where(.lg-scroll,
    .ast-header-woo-cart .widget_shopping_cart_content,
    .ast-header-woo-cart .woocommerce-mini-cart,
    .ast-mobile-popup-drawer,
    .ast-mobile-popup-content,
    .ast-off-canvas-menu,
    .ast-off-canvas-sidebar,
    .wc-block-mini-cart__items,
    .wc-block-components-sidebar,
    .woocommerce-mini-cart)::-webkit-scrollbar-track {
    background: transparent;
    border: 0;
}

/* Thumb Ä‚ËĂ˘â€šÂ¬Äąâ€şglassÄ‚ËĂ˘â€šÂ¬ÄąÄ„ */
:where(.lg-scroll,
    .ast-header-woo-cart .widget_shopping_cart_content,
    .ast-header-woo-cart .woocommerce-mini-cart,
    .ast-mobile-popup-drawer,
    .ast-mobile-popup-content,
    .ast-off-canvas-menu,
    .ast-off-canvas-sidebar,
    .wc-block-mini-cart__items,
    .wc-block-components-sidebar,
    .woocommerce-mini-cart)::-webkit-scrollbar-thumb {
    border-radius: var(--lg-sb-radius);

    /* Ä‚ËĂ˘â€šÂ¬Äąâ€şodstÄ‚â€žĂ˘â€žËpÄ‚ËĂ˘â€šÂ¬ÄąÄ„ od krawÄ‚â€žĂ˘â€žËdzi bez tracka */
    border: 3px solid transparent;
    background-clip: padding-box;

    background:
        radial-gradient(circle at 30% 25%, rgba(255, 255, 255, .22), rgba(255, 255, 255, 0) 55%),
        linear-gradient(180deg, rgba(255, 255, 255, .18), rgba(255, 255, 255, .06)),
        var(--lg-sb-thumb);

    box-shadow: 0 10px 22px rgba(0, 0, 0, .22);
}

:where(.lg-scroll,
    .ast-header-woo-cart .widget_shopping_cart_content,
    .ast-header-woo-cart .woocommerce-mini-cart,
    .ast-mobile-popup-drawer,
    .ast-mobile-popup-content,
    .ast-off-canvas-menu,
    .ast-off-canvas-sidebar,
    .wc-block-mini-cart__items,
    .wc-block-components-sidebar,
    .woocommerce-mini-cart)::-webkit-scrollbar-thumb:hover {
    background:
        radial-gradient(circle at 30% 25%, rgba(255, 255, 255, .28), rgba(255, 255, 255, 0) 55%),
        linear-gradient(180deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, .08)),
        var(--lg-sb-thumb-hover);
}

/* naroĂ„Ä…Ă„Ëťnik (gdy jest i pion + poziom) */
:where(.lg-scroll,
    .ast-header-woo-cart .widget_shopping_cart_content,
    .ast-header-woo-cart .woocommerce-mini-cart,
    .ast-mobile-popup-drawer,
    .ast-mobile-popup-content,
    .ast-off-canvas-menu,
    .ast-off-canvas-sidebar,
    .wc-block-mini-cart__items,
    .wc-block-components-sidebar,
    .woocommerce-mini-cart)::-webkit-scrollbar-corner {
    background: transparent;
}

/* === BUYIT SHOP LAYOUT (filters left, list right) === */
:root[data-theme="light"] body.buyit-shop-layout-page {
    --buyit-shop-text: #1a1f2b;
    --buyit-shop-text-strong: #0f172a;
    --buyit-shop-text-muted: rgba(26, 31, 43, .78);
    --buyit-shop-control-bg: rgba(255, 255, 255, .62);
    --buyit-shop-control-border: rgba(15, 23, 42, .16);
    --buyit-shop-control-hover: rgba(15, 23, 42, .08);
    --buyit-shop-control-active: rgba(10, 132, 227, .22);
    --buyit-shop-control-active-border: rgba(10, 132, 227, .5);
}

:root[data-theme="dark"] body.buyit-shop-layout-page {
    --buyit-shop-text: #e6ebf7;
    --buyit-shop-text-strong: #f7f9ff;
    --buyit-shop-text-muted: rgba(230, 235, 247, .78);
    --buyit-shop-control-bg: rgba(255, 255, 255, .08);
    --buyit-shop-control-border: rgba(255, 255, 255, .22);
    --buyit-shop-control-hover: rgba(255, 255, 255, .12);
    --buyit-shop-control-active: rgba(10, 132, 227, .3);
    --buyit-shop-control-active-border: rgba(64, 164, 243, .62);
}

body.buyit-shop-layout-page .site-content {
    padding-top: var(--header-h);
}

body.buyit-shop-layout-page .woocommerce-breadcrumb,
body.buyit-shop-layout-page .woocommerce-breadcrumb a {
    color: var(--buyit-shop-text-muted) !important;
}

body.buyit-shop-layout-page .woocommerce-products-header__title.page-title,
body.buyit-shop-layout-page h1.entry-title,
body.buyit-shop-layout-page .ast-archive-title {
    color: var(--buyit-shop-text-strong) !important;
}

body.buyit-shop-layout-page .buyit-shop-shell {
    display: grid;
    grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
}

body.buyit-shop-layout-page .buyit-shop-filters {
    position: sticky;
    top: calc(var(--header-h) + 8px);
}

body.buyit-shop-layout-page .buyit-shop-filters__card {
    border-radius: 18px;
    padding: .7rem;
}

body.buyit-shop-layout-page .buyit-shop-filters__head {
    font-weight: 700;
    font-size: .98rem;
    margin-bottom: .65rem;
    padding: .3rem .35rem;
}

body.buyit-shop-layout-page .buyit-shop-filters__toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 0;
    background: transparent;
    color: inherit;
    text-align: left;
    cursor: pointer;
}

body.buyit-shop-layout-page .buyit-shop-filters__head-label {
    display: inline-block;
}

body.buyit-shop-layout-page .buyit-shop-filters__chevron {
    display: none;
    font-size: .92rem;
    line-height: 1;
    opacity: .82;
    transition: transform .18s ease;
}

body.buyit-shop-layout-page .buyit-shop-filters__body {
    display: grid;
    gap: .7rem;
}

body.buyit-shop-layout-page .buyit-filter-widget {
    border-radius: 14px;
    padding: .65rem .7rem;
    background: rgba(255,255,255,.08);
}

:root[data-theme="dark"] body.buyit-shop-layout-page .buyit-filter-widget {
    background: rgba(255,255,255,.04);
}

:root[data-theme="light"] body.buyit-shop-layout-page .buyit-filter-widget {
    background: rgba(0,0,0,.03);
}

body.buyit-shop-layout-page .buyit-filter-title {
    margin: 0 0 .5rem;
    font-size: .88rem;
    font-weight: 700;
}

body.buyit-shop-layout-page .buyit-filter-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: .25rem;
}

body.buyit-shop-layout-page .buyit-filter-list li {
    margin: 0;
}

body.buyit-shop-layout-page .buyit-filter-list a {
    display: flex;
    justify-content: space-between;
    gap: .5rem;
    text-decoration: none;
    color: inherit;
    font-size: .85rem;
    padding: .26rem .1rem;
}

body.buyit-shop-layout-page .buyit-filter-list a.is-active {
    font-weight: 700;
    color: var(--buyit-shop-text-strong);
}

body.buyit-shop-layout-page .buyit-filter-reset {
    width: 100%;
    text-align: center;
}

body.buyit-shop-layout-page .buyit-shop-results {
    min-width: 0;
}

body.buyit-shop-layout-page .buyit-shop-results-head {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: .7rem;
    margin-bottom: .75rem;
    color: var(--buyit-shop-text-muted);
}

body.buyit-shop-layout-page .buyit-shop-results-head .woocommerce-result-count,
body.buyit-shop-layout-page .buyit-shop-results-head .woocommerce-ordering {
    margin: 0 !important;
}

body.buyit-shop-layout-page .buyit-shop-results-head .woocommerce-result-count {
    margin-right: auto !important;
    color: var(--buyit-shop-text-muted);
}

body.buyit-shop-layout-page .buyit-view-switch {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .2rem;
    border-radius: 10px;
    background: var(--buyit-shop-control-bg);
    border: 1px solid var(--buyit-shop-control-border);
}

body.buyit-shop-layout-page .buyit-view-btn {
    width: 36px;
    height: 32px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--buyit-shop-text-muted);
    font-size: 16px;
    line-height: 1;
    transition: background-color .18s ease, color .18s ease, box-shadow .18s ease;
}

body.buyit-shop-layout-page .buyit-view-btn:hover,
body.buyit-shop-layout-page .buyit-view-btn:focus-visible {
    background: var(--buyit-shop-control-hover);
    color: var(--buyit-shop-text-strong);
    outline: none;
}

body.buyit-shop-layout-page .buyit-view-btn.is-active {
    background: var(--buyit-shop-control-active);
    box-shadow: inset 0 0 0 1px var(--buyit-shop-control-active-border);
    color: var(--buyit-shop-text-strong);
}

body.buyit-shop-layout-page .buyit-shop-results-head .woocommerce-ordering .orderby,
body.buyit-shop-layout-page .buyit-shop-footer-bar .woocommerce-ordering .orderby {
    border: 1px solid var(--buyit-shop-control-border) !important;
    background: var(--buyit-shop-control-bg) !important;
    color: var(--buyit-shop-text-strong) !important;
    border-radius: 12px !important;
}

body.buyit-shop-layout-page .buyit-shop-results-head .woocommerce-ordering .orderby:focus,
body.buyit-shop-layout-page .buyit-shop-footer-bar .woocommerce-ordering .orderby:focus {
    outline: none !important;
    border-color: var(--buyit-shop-control-active-border) !important;
    box-shadow: 0 0 0 3px rgba(10, 132, 227, .2) !important;
}

body.buyit-shop-layout-page .buyit-shop-results-head .woocommerce-ordering .orderby option,
body.buyit-shop-layout-page .buyit-shop-footer-bar .woocommerce-ordering .orderby option {
    color: #111;
}

:root[data-theme="dark"] body.buyit-shop-layout-page .buyit-shop-results-head .woocommerce-ordering .orderby option,
:root[data-theme="dark"] body.buyit-shop-layout-page .buyit-shop-footer-bar .woocommerce-ordering .orderby option {
    color: #fff;
    background: #1f232d;
}

body.buyit-shop-layout-page .buyit-shop-footer-bar {
    display: flex;
    align-items: center;
    gap: .85rem;
    margin-top: .95rem;
    padding-top: .85rem;
    border-top: 1px solid var(--sep);
}

body.buyit-shop-layout-page .buyit-shop-footer-bar .woocommerce-ordering,
body.buyit-shop-layout-page .buyit-shop-footer-bar .woocommerce-result-count {
    margin: 0 !important;
}

body.buyit-shop-layout-page .buyit-shop-footer-bar .woocommerce-result-count {
    color: var(--buyit-shop-text-muted);
    white-space: nowrap;
}

body.buyit-shop-layout-page .buyit-shop-footer-bar .woocommerce-ordering {
    flex: 0 0 auto;
}

body.buyit-shop-layout-page .buyit-shop-footer-bar .woocommerce-ordering .orderby {
    min-width: 240px;
}

body.buyit-shop-layout-page .buyit-shop-footer-bar :where(.woocommerce nav.woocommerce-pagination, nav.navigation.pagination) {
    margin: 0 0 0 auto;
    width: auto;
    flex: 0 0 auto;
}

body.buyit-shop-layout-page .buyit-shop-category-desc {
    margin-top: 1rem;
    padding: .95rem 1rem;
    border-radius: 18px;
}

body.buyit-shop-layout-page .buyit-shop-category-desc > :first-child {
    margin-top: 0;
}

body.buyit-shop-layout-page .buyit-shop-category-desc > :last-child {
    margin-bottom: 0;
}

body.buyit-shop-layout-page .buyit-shop-empty-category {
    margin: 0;
    padding: 1.25rem;
    border-radius: 20px;
    border: 1px solid rgba(28, 78, 139, .2);
    background: rgba(255, 255, 255, .64);
    box-shadow: 0 16px 34px rgba(10, 25, 47, .08);
    display: grid;
    gap: .72rem;
}

:root[data-theme="dark"] body.buyit-shop-layout-page .buyit-shop-empty-category {
    border-color: rgba(166, 212, 255, .28);
    background: rgba(20, 28, 44, .56);
    box-shadow: 0 16px 34px rgba(0, 0, 0, .28);
}

body.buyit-shop-layout-page .buyit-shop-empty-category__title {
    margin: 0;
    font-size: clamp(1.15rem, 2.2vw, 1.5rem);
    line-height: 1.2;
}

body.buyit-shop-layout-page .buyit-shop-empty-category__text {
    margin: 0;
    max-width: 64ch;
    color: var(--buyit-shop-text-muted);
}

body.buyit-shop-layout-page .buyit-shop-empty-category__cta {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 .95rem;
    border-radius: 12px;
    border: 1px solid rgba(28, 78, 139, .26);
    background: rgba(166, 212, 255, .48);
    color: var(--buyit-shop-text-strong);
    text-decoration: none !important;
    font-weight: 700;
}

body.buyit-shop-layout-page .buyit-shop-empty-category__cta:hover,
body.buyit-shop-layout-page .buyit-shop-empty-category__cta:focus-visible {
    background: rgba(166, 212, 255, .66);
}

@media (max-width: 640px) {
    body.buyit-shop-layout-page .buyit-shop-empty-category {
        padding: 1rem;
    }

    body.buyit-shop-layout-page .buyit-shop-empty-category__cta {
        width: 100%;
    }
}

body.buyit-shop-layout-page .buyit-shop-results .woocommerce ul.products,
body.buyit-shop-layout-page .buyit-shop-results ul.products {
    display: grid;
    grid-template-columns: 1fr;
    gap: .75rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

body.buyit-shop-layout-page .buyit-shop-results li.product.buyit-product-row {
    position: relative;
    float: none;
    width: auto;
    margin: 0 !important;
    padding: .8rem;
    border-radius: 18px;
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr) 210px;
    gap: .85rem;
    align-items: stretch;
}

body.buyit-shop-layout-page .buyit-shop-results li.product.buyit-product-row .buyit-product-media {
    grid-column: 1;
    position: relative;
    width: 180px;
    min-width: 180px;
}

body.buyit-shop-layout-page .buyit-shop-results li.product.buyit-product-row .buyit-product-thumb {
    display: block;
    width: 100%;
    text-decoration: none;
}

body.buyit-shop-layout-page .buyit-shop-results li.product.buyit-product-row img {
    width: 180px !important;
    height: 180px !important;
    margin: 0 !important;
    border-radius: 12px;
    object-fit: contain !important;
    object-position: center center !important;
    background: transparent;
}

body.buyit-shop-layout-page .buyit-shop-results li.product.buyit-product-row .buyit-product-main {
    grid-column: 2;
    min-width: 0;
    display: grid;
    gap: .38rem;
    align-content: start;
}

body.buyit-shop-layout-page .buyit-shop-results li.product.buyit-product-row .buyit-product-cats {
    opacity: .78;
    font-size: .78rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

body.buyit-shop-layout-page .buyit-shop-results li.product.buyit-product-row .buyit-product-cats a {
    color: inherit !important;
    text-decoration: none;
}

body.buyit-shop-layout-page .buyit-shop-results li.product.buyit-product-row h2.woocommerce-loop-product__title {
    margin: 0 !important;
    padding: 0 !important;
    font-size: clamp(1rem, 1.2vw, 1.12rem);
    line-height: 1.35;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

body.buyit-shop-layout-page .buyit-shop-results li.product.buyit-product-row .buyit-product-title a {
    color: inherit !important;
    text-decoration: none;
}

body.buyit-shop-layout-page .buyit-shop-results li.product.buyit-product-row .buyit-product-brand {
    display: none;
}

body.buyit-shop-layout-page .buyit-shop-results li.product.buyit-product-row .buyit-product-rating {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-size: .92rem;
}

body.buyit-shop-layout-page .buyit-shop-results li.product.buyit-product-row .buyit-product-rating .star-rating {
    display: inline-block !important;
    margin: 0 !important;
    float: none !important;
}

body.buyit-shop-layout-page .buyit-shop-results li.product.buyit-product-row .buyit-product-rating-count {
    opacity: .78;
    font-size: .86rem;
}

body.buyit-shop-layout-page .buyit-shop-results li.product.buyit-product-row ul.buyit-product-specs {
    margin: .2rem 0 0;
    padding-left: 1.05rem;
    display: grid;
    gap: .22rem;
    opacity: .9;
    font-size: .83rem;
}

body.buyit-shop-layout-page .buyit-shop-results li.product.buyit-product-row ul.buyit-product-specs li {
    margin: 0;
}

/* Price is rendered in buybox, hide default price in main column */
body.buyit-shop-layout-page .buyit-shop-results li.product.buyit-product-row .buyit-product-main .price {
    display: none !important;
}

body.buyit-shop-layout-page .buyit-shop-results li.product.buyit-product-row .buyit-product-buybox {
    grid-column: 3;
    border-left: 1px solid var(--sep);
    padding-left: .85rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    gap: .7rem;
    text-align: right;
    min-width: 0;
}

body.buyit-shop-layout-page .buyit-shop-results li.product.buyit-product-row .buyit-product-buybox__price {
    font-size: clamp(1.15rem, 1.6vw, 1.95rem);
    font-weight: 800;
    line-height: 1.1;
}

body.buyit-shop-layout-page .buyit-shop-results li.product.buyit-product-row .buyit-product-buybox__price .price {
    display: inline !important;
}

body.buyit-shop-layout-page .buyit-shop-results li.product.buyit-product-row .buyit-product-buybox .button {
    width: min(190px, 100%);
    text-align: center;
    text-decoration: none !important;
}

body.buyit-shop-layout-page .buyit-shop-results li.product.buyit-product-row .buyit-product-delivery {
    display: none;
}

body.buyit-shop-layout-page .buyit-shop-results li.product.buyit-product-row .added_to_cart {
    display: none !important;
}

body.buyit-shop-layout-page .buyit-shop-results li.product.buyit-product-row > .onsale {
    top: 10px;
    left: 10px;
    margin: 0 !important;
    z-index: 2;
}

@media (max-width: 1200px) {
    body.buyit-shop-layout-page .buyit-shop-shell {
        grid-template-columns: minmax(220px, 270px) minmax(0, 1fr);
    }

    body.buyit-shop-layout-page .buyit-shop-results li.product.buyit-product-row {
        grid-template-columns: 160px minmax(0, 1fr) 180px;
    }

    body.buyit-shop-layout-page .buyit-shop-results li.product.buyit-product-row .buyit-product-media {
        width: 160px;
        min-width: 160px;
    }

    body.buyit-shop-layout-page .buyit-shop-results li.product.buyit-product-row img {
        width: 160px !important;
        height: 160px !important;
    }
}

@media (max-width: 980px) {
    body.buyit-shop-layout-page .buyit-shop-shell {
        grid-template-columns: 1fr;
    }

    body.buyit-shop-layout-page .buyit-shop-filters {
        position: static;
    }

    body.buyit-shop-layout-page .buyit-shop-filters__card {
        padding: .6rem .7rem;
    }

    body.buyit-shop-layout-page .buyit-shop-filters__toggle {
        margin: 0;
    }

    body.buyit-shop-layout-page .buyit-shop-filters__chevron {
        display: inline-flex;
    }

    body.buyit-shop-layout-page .buyit-shop-filters__head {
        margin-bottom: 0;
    }

    body.buyit-shop-layout-page .buyit-shop-filters__body {
        display: none;
        padding-top: .62rem;
    }

    body.buyit-shop-layout-page .buyit-shop-filters__card.is-expanded .buyit-shop-filters__body {
        display: grid;
    }

    body.buyit-shop-layout-page .buyit-shop-filters__card.is-expanded .buyit-shop-filters__head {
        margin-bottom: .35rem;
    }

    body.buyit-shop-layout-page .buyit-shop-filters__card.is-expanded .buyit-shop-filters__chevron {
        transform: rotate(180deg);
    }

    body.buyit-shop-layout-page .buyit-shop-footer-bar {
        flex-wrap: wrap;
        gap: .6rem;
    }

    body.buyit-shop-layout-page .buyit-shop-footer-bar .woocommerce-ordering {
        width: 100%;
    }

    body.buyit-shop-layout-page .buyit-shop-footer-bar .woocommerce-ordering .orderby {
        width: 100%;
        min-width: 0;
    }

    body.buyit-shop-layout-page .buyit-shop-footer-bar :where(.woocommerce nav.woocommerce-pagination, nav.navigation.pagination) {
        margin-left: 0;
        width: 100%;
    }
}

@media (max-width: 800px) {
    body.buyit-shop-layout-page .buyit-shop-results li.product.buyit-product-row {
        grid-template-columns: 120px minmax(0, 1fr);
        gap: .7rem;
    }

    body.buyit-shop-layout-page .buyit-shop-results li.product.buyit-product-row img {
        width: 120px !important;
        height: 120px !important;
    }

    body.buyit-shop-layout-page .buyit-shop-results li.product.buyit-product-row .buyit-product-media {
        width: 120px;
        min-width: 120px;
    }

    body.buyit-shop-layout-page .buyit-shop-results li.product.buyit-product-row .buyit-product-buybox {
        grid-column: 1 / -1;
        border-left: 0;
        border-top: 1px solid var(--sep);
        padding-left: 0;
        padding-top: .65rem;
        align-items: flex-start;
        text-align: left;
    }

    body.buyit-shop-layout-page .buyit-shop-results li.product.buyit-product-row .buyit-product-buybox .button {
        width: 100%;
    }
}

/* Grid view switch: square tiles in 4 columns */
body.buyit-shop-layout-page.buyit-shop-view-grid .buyit-shop-results .woocommerce ul.products,
body.buyit-shop-layout-page.buyit-shop-view-grid .buyit-shop-results ul.products {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

body.buyit-shop-layout-page.buyit-shop-view-grid .buyit-shop-results li.product.buyit-product-row {
    display: flex;
    flex-direction: column;
    gap: .55rem;
    padding: .75rem;
    border-radius: 18px;
    min-height: 100%;
    height: 100%;
}

body.buyit-shop-layout-page.buyit-shop-view-grid .buyit-shop-results li.product.buyit-product-row .buyit-product-media {
    width: 100%;
    min-width: 0;
}

body.buyit-shop-layout-page.buyit-shop-view-grid .buyit-shop-results li.product.buyit-product-row img {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1 / 1;
    object-fit: contain !important;
    object-position: center center !important;
}

body.buyit-shop-layout-page.buyit-shop-view-grid .buyit-shop-results li.product.buyit-product-row .buyit-product-main {
    grid-column: auto;
    gap: .32rem;
}

body.buyit-shop-layout-page.buyit-shop-view-grid .buyit-shop-results li.product.buyit-product-row .buyit-product-cats {
    font-size: .75rem;
}

body.buyit-shop-layout-page.buyit-shop-view-grid .buyit-shop-results li.product.buyit-product-row h2.woocommerce-loop-product__title {
    min-height: calc(1.35em * 2);
}

body.buyit-shop-layout-page.buyit-shop-view-grid .buyit-shop-results li.product.buyit-product-row ul.buyit-product-specs {
    display: none;
}

body.buyit-shop-layout-page.buyit-shop-view-grid .buyit-shop-results li.product.buyit-product-row .buyit-product-buybox {
    grid-column: auto;
    border-left: 0;
    border-top: 0;
    padding: 0;
    margin-top: auto;
    align-items: flex-start;
    text-align: left;
    gap: .55rem;
}

body.buyit-shop-layout-page.buyit-shop-view-grid .buyit-shop-results li.product.buyit-product-row .buyit-product-buybox .button {
    width: 100%;
}

@media (max-width: 1200px) {
    body.buyit-shop-layout-page.buyit-shop-view-grid .buyit-shop-results .woocommerce ul.products,
    body.buyit-shop-layout-page.buyit-shop-view-grid .buyit-shop-results ul.products {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    body.buyit-shop-layout-page.buyit-shop-view-grid .buyit-shop-results .woocommerce ul.products,
    body.buyit-shop-layout-page.buyit-shop-view-grid .buyit-shop-results ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    body.buyit-shop-layout-page.buyit-shop-view-grid .buyit-shop-results .woocommerce ul.products,
    body.buyit-shop-layout-page.buyit-shop-view-grid .buyit-shop-results ul.products {
        grid-template-columns: 1fr;
    }
}

/* Mobile shop/category/search: always tiles + compact promo-like card */
@media (max-width: 980px) {
    body.buyit-shop-layout-page .buyit-view-switch {
        display: none !important;
    }

    body.buyit-shop-layout-page .buyit-shop-results .woocommerce ul.products,
    body.buyit-shop-layout-page .buyit-shop-results ul.products {
        grid-template-columns: 1fr !important;
        gap: .85rem;
    }

    body.buyit-shop-layout-page .buyit-shop-results li.product.buyit-product-row {
        display: flex !important;
        flex-direction: column;
        gap: .6rem;
        padding: .8rem;
        border-radius: 20px;
    }

    body.buyit-shop-layout-page .buyit-shop-results li.product.buyit-product-row .buyit-product-media {
        width: 100%;
        min-width: 0;
    }

    body.buyit-shop-layout-page .buyit-shop-results li.product.buyit-product-row img {
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 1 / 1;
        border-radius: 14px;
    }

    body.buyit-shop-layout-page .buyit-shop-results li.product.buyit-product-row .buyit-product-main {
        gap: .35rem;
    }

    body.buyit-shop-layout-page .buyit-shop-results li.product.buyit-product-row .buyit-product-brand {
        display: block;
        margin: 0;
        font-size: .96rem;
        line-height: 1.2;
        font-weight: 700;
        color: var(--buyit-shop-text-strong);
    }

    body.buyit-shop-layout-page .buyit-shop-results li.product.buyit-product-row .buyit-product-cats,
    body.buyit-shop-layout-page .buyit-shop-results li.product.buyit-product-row .buyit-product-rating,
    body.buyit-shop-layout-page .buyit-shop-results li.product.buyit-product-row ul.buyit-product-specs {
        display: none !important;
    }

    body.buyit-shop-layout-page .buyit-shop-results li.product.buyit-product-row h2.woocommerce-loop-product__title {
        min-height: 0;
        font-size: clamp(1.06rem, 4.4vw, 1.3rem);
        line-height: 1.28;
    }

    body.buyit-shop-layout-page .buyit-shop-results li.product.buyit-product-row .buyit-product-buybox {
        border-left: 0;
        border-top: 1px solid var(--sep);
        padding-left: 0;
        padding-top: .62rem;
        align-items: flex-start;
        text-align: left;
        gap: .52rem;
    }

    body.buyit-shop-layout-page .buyit-shop-results li.product.buyit-product-row .buyit-product-buybox__price {
        width: 100%;
        line-height: 1.05;
    }

    body.buyit-shop-layout-page .buyit-shop-results li.product.buyit-product-row .buyit-product-buybox__price .price {
        display: flex !important;
        flex-wrap: wrap;
        align-items: baseline;
        gap: .42rem;
        margin: 0 !important;
    }

    body.buyit-shop-layout-page .buyit-shop-results li.product.buyit-product-row .buyit-product-buybox__price.is-regular .price,
    body.buyit-shop-layout-page .buyit-shop-results li.product.buyit-product-row .buyit-product-buybox__price.is-regular .price .amount {
        font-size: clamp(1.62rem, 8vw, 2.18rem);
        font-weight: 900;
        line-height: 1.04;
        color: #111 !important;
    }

    :root[data-theme="dark"] body.buyit-shop-layout-page .buyit-shop-results li.product.buyit-product-row .buyit-product-buybox__price.is-regular .price,
    :root[data-theme="dark"] body.buyit-shop-layout-page .buyit-shop-results li.product.buyit-product-row .buyit-product-buybox__price.is-regular .price .amount {
        color: #f6f9ff !important;
    }

    body.buyit-shop-layout-page .buyit-shop-results li.product.buyit-product-row .buyit-product-buybox__price.is-sale .price del,
    body.buyit-shop-layout-page .buyit-shop-results li.product.buyit-product-row .buyit-product-buybox__price.is-sale .price del .amount {
        color: rgba(35, 51, 76, .65) !important;
        font-size: clamp(1.05rem, 5vw, 1.28rem);
        font-weight: 700;
        text-decoration-thickness: 2px;
        opacity: 1;
    }

    :root[data-theme="dark"] body.buyit-shop-layout-page .buyit-shop-results li.product.buyit-product-row .buyit-product-buybox__price.is-sale .price del,
    :root[data-theme="dark"] body.buyit-shop-layout-page .buyit-shop-results li.product.buyit-product-row .buyit-product-buybox__price.is-sale .price del .amount {
        color: rgba(226, 236, 255, .74) !important;
    }

    body.buyit-shop-layout-page .buyit-shop-results li.product.buyit-product-row .buyit-product-buybox__price.is-sale .price ins,
    body.buyit-shop-layout-page .buyit-shop-results li.product.buyit-product-row .buyit-product-buybox__price.is-sale .price ins .amount {
        font-size: clamp(1.72rem, 8.2vw, 2.22rem);
        font-weight: 900;
        line-height: 1.04;
        color: var(--buyit-shop-text-strong) !important;
        text-decoration: none !important;
        background: transparent !important;
    }

    body.buyit-shop-layout-page .buyit-shop-results li.product.buyit-product-row .buyit-product-delivery {
        display: flex;
        align-items: baseline;
        gap: .34rem;
        margin: 0;
        font-size: clamp(.96rem, 3.8vw, 1.08rem);
        line-height: 1.25;
        color: var(--buyit-shop-text);
    }

    body.buyit-shop-layout-page .buyit-shop-results li.product.buyit-product-row .buyit-product-delivery .buyit-product-delivery__label {
        color: var(--buyit-shop-text-muted);
        font-weight: 500;
    }

    body.buyit-shop-layout-page .buyit-shop-results li.product.buyit-product-row .buyit-product-delivery strong {
        color: var(--buyit-shop-text-strong);
        font-weight: 800;
    }

    body.buyit-shop-layout-page .buyit-shop-results li.product.buyit-product-row .buyit-product-buybox .button {
        width: 100%;
        min-height: 48px;
    }

    body.buyit-shop-layout-page .buyit-shop-results li.product.buyit-product-row > .onsale {
        left: auto;
        right: 10px;
    }
}

/* Shop/category/search: unified tile layout (desktop + mobile) */
body.buyit-shop-layout-page .buyit-view-switch {
    display: none !important;
}

body.buyit-shop-layout-page .buyit-shop-results .woocommerce ul.products,
body.buyit-shop-layout-page .buyit-shop-results ul.products {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: .95rem;
}

body.buyit-shop-layout-page .buyit-shop-results li.product.buyit-product-row {
    display: flex !important;
    flex-direction: column;
    gap: .6rem;
    padding: .8rem;
    border-radius: 20px;
    min-height: 100%;
    height: 100%;
}

body.buyit-shop-layout-page .buyit-shop-results li.product.buyit-product-row .buyit-product-media {
    width: 100%;
    min-width: 0;
    position: relative;
}

body.buyit-shop-layout-page .buyit-shop-results li.product.buyit-product-row .buyit-product-thumb {
    display: block;
    width: 100%;
}

body.buyit-shop-layout-page .buyit-shop-results li.product.buyit-product-row img {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1 / 1;
    object-fit: contain !important;
    object-position: center center !important;
    border-radius: 14px;
}

body.buyit-shop-layout-page .buyit-shop-results li.product.buyit-product-row .buyit-product-main {
    display: grid;
    gap: .35rem;
    min-width: 0;
}

body.buyit-shop-layout-page .buyit-shop-results li.product.buyit-product-row .buyit-product-brand {
    display: block;
    margin: 0;
    font-size: .96rem;
    line-height: 1.2;
    font-weight: 700;
    color: var(--buyit-shop-text-strong);
}

body.buyit-shop-layout-page .buyit-shop-results li.product.buyit-product-row .buyit-product-brand-logo {
    display: inline-flex;
    align-items: center;
    gap: .54rem;
}

body.buyit-shop-layout-page .buyit-shop-results li.product.buyit-product-row .buyit-product-brand-logo__mark {
    width: 18px;
    height: 18px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 1.5px;
}

body.buyit-shop-layout-page .buyit-shop-results li.product.buyit-product-row .buyit-product-brand-logo__mark span:nth-child(1) { background: #f25022; }
body.buyit-shop-layout-page .buyit-shop-results li.product.buyit-product-row .buyit-product-brand-logo__mark span:nth-child(2) { background: #7fba00; }
body.buyit-shop-layout-page .buyit-shop-results li.product.buyit-product-row .buyit-product-brand-logo__mark span:nth-child(3) { background: #00a4ef; }
body.buyit-shop-layout-page .buyit-shop-results li.product.buyit-product-row .buyit-product-brand-logo__mark span:nth-child(4) { background: #ffb900; }

body.buyit-shop-layout-page .buyit-shop-results li.product.buyit-product-row .buyit-product-brand-logo__text {
    font-size: 1rem;
    line-height: 1.05;
    font-weight: 700;
    color: var(--buyit-shop-text-strong);
}

body.buyit-shop-layout-page .buyit-shop-results li.product.buyit-product-row .buyit-product-cats,
body.buyit-shop-layout-page .buyit-shop-results li.product.buyit-product-row .buyit-product-rating,
body.buyit-shop-layout-page .buyit-shop-results li.product.buyit-product-row ul.buyit-product-specs {
    display: none !important;
}

body.buyit-shop-layout-page .buyit-shop-results li.product.buyit-product-row h2.woocommerce-loop-product__title {
    margin: 0 !important;
    min-height: 0 !important;
    font-size: clamp(1.02rem, 1.18vw, 1.26rem);
    line-height: 1.3;
}

body.buyit-shop-layout-page .buyit-shop-results li.product.buyit-product-row .buyit-product-buybox {
    margin-top: auto;
    border-left: 0 !important;
    border-top: 1px solid var(--sep);
    padding-left: 0 !important;
    padding-top: .62rem;
    align-items: flex-start;
    text-align: left;
    gap: .52rem;
}

body.buyit-shop-layout-page .buyit-shop-results li.product.buyit-product-row .buyit-product-buybox__price {
    width: 100%;
    line-height: 1.05;
}

body.buyit-shop-layout-page .buyit-shop-results li.product.buyit-product-row .buyit-product-buybox__price .buyit-product-price {
    display: flex !important;
    flex-wrap: wrap;
    align-items: baseline;
    gap: .42rem;
    margin: 0 !important;
}

body.buyit-shop-layout-page .buyit-shop-results li.product.buyit-product-row .buyit-product-buybox__price.is-regular .buyit-product-price,
body.buyit-shop-layout-page .buyit-shop-results li.product.buyit-product-row .buyit-product-buybox__price.is-regular .buyit-product-price .amount,
body.buyit-shop-layout-page .buyit-shop-results li.product.buyit-product-row .buyit-product-buybox__price.is-regular .buyit-product-price ins,
body.buyit-shop-layout-page .buyit-shop-results li.product.buyit-product-row .buyit-product-buybox__price.is-regular .buyit-product-price ins .amount {
    font-size: clamp(1.58rem, 2.05vw, 2.2rem);
    font-weight: 900;
    line-height: 1.04;
    color: #111 !important;
    text-decoration: none !important;
    background: transparent !important;
}

:root[data-theme="dark"] body.buyit-shop-layout-page .buyit-shop-results li.product.buyit-product-row .buyit-product-buybox__price.is-regular .buyit-product-price,
:root[data-theme="dark"] body.buyit-shop-layout-page .buyit-shop-results li.product.buyit-product-row .buyit-product-buybox__price.is-regular .buyit-product-price .amount,
:root[data-theme="dark"] body.buyit-shop-layout-page .buyit-shop-results li.product.buyit-product-row .buyit-product-buybox__price.is-regular .buyit-product-price ins,
:root[data-theme="dark"] body.buyit-shop-layout-page .buyit-shop-results li.product.buyit-product-row .buyit-product-buybox__price.is-regular .buyit-product-price ins .amount {
    color: #f6f9ff !important;
}

body.buyit-shop-layout-page .buyit-shop-results li.product.buyit-product-row .buyit-product-buybox__price.is-sale .buyit-product-price del,
body.buyit-shop-layout-page .buyit-shop-results li.product.buyit-product-row .buyit-product-buybox__price.is-sale .buyit-product-price del .amount {
    color: rgba(35, 51, 76, .65) !important;
    font-size: clamp(1.01rem, 1.25vw, 1.28rem);
    font-weight: 700;
    text-decoration-thickness: 2px;
    opacity: 1;
}

:root[data-theme="dark"] body.buyit-shop-layout-page .buyit-shop-results li.product.buyit-product-row .buyit-product-buybox__price.is-sale .buyit-product-price del,
:root[data-theme="dark"] body.buyit-shop-layout-page .buyit-shop-results li.product.buyit-product-row .buyit-product-buybox__price.is-sale .buyit-product-price del .amount {
    color: rgba(226, 236, 255, .74) !important;
}

body.buyit-shop-layout-page .buyit-shop-results li.product.buyit-product-row .buyit-product-buybox__price.is-sale .buyit-product-price ins,
body.buyit-shop-layout-page .buyit-shop-results li.product.buyit-product-row .buyit-product-buybox__price.is-sale .buyit-product-price ins .amount {
    font-size: clamp(1.68rem, 2.18vw, 2.24rem);
    font-weight: 900;
    line-height: 1.04;
    color: var(--buyit-shop-text-strong) !important;
    text-decoration: none !important;
    background: transparent !important;
}

body.buyit-shop-layout-page .buyit-shop-results li.product.buyit-product-row .buyit-product-delivery {
    display: flex !important;
    align-items: baseline;
    gap: .34rem;
    margin: 0;
    font-size: clamp(.94rem, .95vw, 1.08rem);
    line-height: 1.25;
    color: var(--buyit-shop-text);
}

body.buyit-shop-layout-page .buyit-shop-results li.product.buyit-product-row .buyit-product-delivery .buyit-product-delivery__label {
    color: var(--buyit-shop-text-muted);
    font-weight: 500;
}

body.buyit-shop-layout-page .buyit-shop-results li.product.buyit-product-row .buyit-product-delivery strong {
    color: var(--buyit-shop-text-strong);
    font-weight: 800;
}

body.buyit-shop-layout-page .buyit-shop-results li.product.buyit-product-row .buyit-product-buybox .button {
    width: 100% !important;
    min-height: 48px;
}

body.buyit-shop-layout-page .buyit-shop-results li.product.buyit-product-row > .onsale {
    left: auto;
    right: 10px;
}

@media (max-width: 1200px) {
    body.buyit-shop-layout-page .buyit-shop-results .woocommerce ul.products,
    body.buyit-shop-layout-page .buyit-shop-results ul.products {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 900px) {
    body.buyit-shop-layout-page .buyit-shop-results .woocommerce ul.products,
    body.buyit-shop-layout-page .buyit-shop-results ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 560px) {
    body.buyit-shop-layout-page .buyit-shop-results .woocommerce ul.products,
    body.buyit-shop-layout-page .buyit-shop-results ul.products {
        grid-template-columns: 1fr !important;
    }

    body.buyit-shop-layout-page .buyit-shop-results li.product.buyit-product-row {
        padding: .75rem;
    }

    body.buyit-shop-layout-page .buyit-shop-results li.product.buyit-product-row h2.woocommerce-loop-product__title {
        font-size: clamp(1.06rem, 4.4vw, 1.3rem);
    }
}

/* === GLOBAL MINIMAL GLASS PAGINATION === */
:root[data-theme="light"] {
    --buyit-page-btn-bg: rgba(255, 255, 255, .62);
    --buyit-page-btn-bg-hover: rgba(255, 255, 255, .9);
    --buyit-page-btn-border: rgba(15, 23, 42, .2);
    --buyit-page-btn-border-strong: rgba(15, 23, 42, .34);
    --buyit-page-btn-text: #1b2434;
    --buyit-page-btn-muted: rgba(27, 36, 52, .58);
}

:root[data-theme="dark"] {
    --buyit-page-btn-bg: rgba(255, 255, 255, .08);
    --buyit-page-btn-bg-hover: rgba(255, 255, 255, .14);
    --buyit-page-btn-border: rgba(255, 255, 255, .24);
    --buyit-page-btn-border-strong: rgba(255, 255, 255, .46);
    --buyit-page-btn-text: #eaf0ff;
    --buyit-page-btn-muted: rgba(234, 240, 255, .62);
}

:where(.woocommerce nav.woocommerce-pagination, nav.navigation.pagination) {
    width: 100%;
    margin: 1.25rem 0 0;
    display: flex;
    justify-content: center;
}

:where(.woocommerce nav.woocommerce-pagination ul.page-numbers, nav.navigation.pagination .nav-links) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .42rem;
    margin: 0 auto;
    padding: 0;
    background: transparent;
    border: 0 !important;
    list-style: none;
}

.woocommerce nav.woocommerce-pagination ul.page-numbers li {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    list-style: none !important;
}

:where(
    .woocommerce nav.woocommerce-pagination a.page-numbers,
    .woocommerce nav.woocommerce-pagination span.page-numbers,
    nav.navigation.pagination a.page-numbers,
    nav.navigation.pagination span.page-numbers
) {
    min-width: 40px;
    height: 40px;
    padding: 0 .82rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    border: 1px solid var(--buyit-page-btn-border);
    background: var(--buyit-page-btn-bg);
    color: var(--buyit-page-btn-text) !important;
    font-size: .97rem;
    font-weight: 500;
    line-height: 1;
    text-decoration: none !important;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease;
}

:where(.woocommerce nav.woocommerce-pagination a.page-numbers, nav.navigation.pagination a.page-numbers):hover,
:where(.woocommerce nav.woocommerce-pagination a.page-numbers, nav.navigation.pagination a.page-numbers):focus-visible {
    outline: none;
    border-color: var(--buyit-page-btn-border-strong);
    background: var(--buyit-page-btn-bg-hover);
    box-shadow: 0 6px 16px rgba(0, 0, 0, .14);
}

:where(.woocommerce nav.woocommerce-pagination span.current, nav.navigation.pagination span.current) {
    border-color: var(--buyit-page-btn-border-strong);
    background: color-mix(in oklab, var(--buyit-page-btn-bg-hover) 88%, var(--buyit-purple) 12%);
    color: var(--buyit-page-btn-text) !important;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .14);
}

:where(
    .woocommerce nav.woocommerce-pagination a.page-numbers.prev,
    .woocommerce nav.woocommerce-pagination a.page-numbers.next,
    nav.navigation.pagination a.page-numbers.prev,
    nav.navigation.pagination a.page-numbers.next
) {
    min-width: 40px;
    padding: 0 1rem;
}

:where(.woocommerce nav.woocommerce-pagination span.page-numbers.dots, nav.navigation.pagination span.page-numbers.dots) {
    min-width: auto;
    padding: 0 .3rem;
    border: 0;
    background: transparent;
    color: var(--buyit-page-btn-muted) !important;
    box-shadow: none;
}

body.buyit-shop-layout-page :where(.woocommerce nav.woocommerce-pagination, nav.navigation.pagination) {
    justify-content: flex-end;
}

@media (max-width: 900px) {
    body.buyit-shop-layout-page :where(.woocommerce nav.woocommerce-pagination, nav.navigation.pagination) {
        justify-content: center;
    }
}

/* === CONTROL CONSISTENCY LAYER === */
:root[data-theme="light"] {
    --buyit-ctrl-fg: #161e2d;
    --buyit-ctrl-bg: color-mix(in oklab, #ffffff 90%, var(--buyit-purple) 10%);
    --buyit-ctrl-bg-hover: color-mix(in oklab, #ffffff 68%, var(--buyit-purple) 32%);
    --buyit-ctrl-bg-active: color-mix(in oklab, #ffffff 46%, var(--buyit-purple) 54%);
    --buyit-ctrl-border: color-mix(in oklab, rgba(22, 30, 45, .3) 52%, var(--buyit-purple) 48%);
    --buyit-ctrl-border-strong: color-mix(in oklab, rgba(22, 30, 45, .42) 24%, var(--buyit-purple) 76%);
    --buyit-ctrl-shadow: 0 8px 18px rgba(0, 0, 0, .1), 0 2px 10px rgba(10, 132, 227, .1);
    --buyit-ctrl-focus: 0 0 0 3px rgba(10, 132, 227, .34);
    --buyit-ctrl-hover-glow: 0 0 0 1px rgba(10, 132, 227, .26), 0 8px 20px rgba(10, 132, 227, .22);
    --buyit-ctrl-active-glow: 0 0 0 1px rgba(10, 132, 227, .38), 0 10px 24px rgba(10, 132, 227, .32);
}

:root[data-theme="dark"] {
    --buyit-ctrl-fg: #f1f5ff;
    --buyit-ctrl-bg: color-mix(in oklab, rgba(255, 255, 255, .1) 72%, var(--buyit-purple) 28%);
    --buyit-ctrl-bg-hover: color-mix(in oklab, rgba(255, 255, 255, .16) 48%, var(--buyit-purple) 52%);
    --buyit-ctrl-bg-active: color-mix(in oklab, rgba(255, 255, 255, .16) 30%, var(--buyit-purple) 70%);
    --buyit-ctrl-border: color-mix(in oklab, rgba(255, 255, 255, .28) 52%, var(--buyit-purple) 48%);
    --buyit-ctrl-border-strong: color-mix(in oklab, rgba(255, 255, 255, .44) 24%, var(--buyit-purple) 76%);
    --buyit-ctrl-shadow: 0 10px 22px rgba(0, 0, 0, .26), 0 2px 14px rgba(10, 132, 227, .2);
    --buyit-ctrl-focus: 0 0 0 3px rgba(64, 164, 243, .42);
    --buyit-ctrl-hover-glow: 0 0 0 1px rgba(64, 164, 243, .34), 0 10px 24px rgba(10, 132, 227, .3);
    --buyit-ctrl-active-glow: 0 0 0 1px rgba(102, 184, 246, .46), 0 12px 28px rgba(10, 132, 227, .4);
}

:where(
    button:not(.buyit-switch),
    input[type="submit"],
    input[type="button"],
    input[type="reset"],
    .ast-button,
    .wp-element-button,
    .wp-block-button__link,
    .woocommerce a.button,
    .woocommerce button.button,
    .woocommerce input.button,
    .woocommerce #respond input#submit,
    .woocommerce .checkout-button,
    .wc-block-components-button:not(.buyit-switch),
    .buyit-view-btn
) {
    color: var(--buyit-ctrl-fg) !important;
    border: 1px solid var(--buyit-ctrl-border) !important;
    background: var(--buyit-ctrl-bg) !important;
    box-shadow: var(--buyit-ctrl-shadow) !important;
    text-decoration: none !important;
}

:where(
    button:not(.buyit-switch):hover,
    input[type="submit"]:hover,
    input[type="button"]:hover,
    input[type="reset"]:hover,
    .ast-button:hover,
    .wp-element-button:hover,
    .wp-block-button__link:hover,
    .woocommerce a.button:hover,
    .woocommerce button.button:hover,
    .woocommerce input.button:hover,
    .woocommerce #respond input#submit:hover,
    .woocommerce .checkout-button:hover,
    .wc-block-components-button:not(.buyit-switch):hover,
    .buyit-view-btn:hover
) {
    color: var(--buyit-ctrl-fg) !important;
    border-color: var(--buyit-ctrl-border-strong) !important;
    background: var(--buyit-ctrl-bg-hover) !important;
    box-shadow: var(--buyit-ctrl-shadow), var(--buyit-ctrl-hover-glow) !important;
}

:where(
    button:not(.buyit-switch):focus-visible,
    input[type="submit"]:focus-visible,
    input[type="button"]:focus-visible,
    input[type="reset"]:focus-visible,
    .ast-button:focus-visible,
    .wp-element-button:focus-visible,
    .wp-block-button__link:focus-visible,
    .woocommerce a.button:focus-visible,
    .woocommerce button.button:focus-visible,
    .woocommerce input.button:focus-visible,
    .woocommerce #respond input#submit:focus-visible,
    .woocommerce .checkout-button:focus-visible,
    .wc-block-components-button:not(.buyit-switch):focus-visible,
    .buyit-view-btn:focus-visible
) {
    outline: none !important;
    box-shadow: var(--buyit-ctrl-shadow), var(--buyit-ctrl-focus) !important;
}

/* Keep current-state controls visually consistent */
:where(.buyit-view-btn.is-active, .woocommerce nav.woocommerce-pagination span.current, nav.navigation.pagination span.current) {
    color: #ffffff !important;
    border-color: var(--buyit-ctrl-border-strong) !important;
    background: var(--buyit-ctrl-bg-active) !important;
    box-shadow: var(--buyit-ctrl-shadow), var(--buyit-ctrl-active-glow) !important;
}

/* Pagination inherits the same control language */
:where(
    .woocommerce nav.woocommerce-pagination a.page-numbers,
    .woocommerce nav.woocommerce-pagination span.page-numbers,
    nav.navigation.pagination a.page-numbers,
    nav.navigation.pagination span.page-numbers
) {
    color: var(--buyit-ctrl-fg) !important;
    border: 1px solid var(--buyit-ctrl-border) !important;
    background: var(--buyit-ctrl-bg) !important;
    box-shadow: none !important;
}

:where(.woocommerce nav.woocommerce-pagination a.page-numbers, nav.navigation.pagination a.page-numbers):hover,
:where(.woocommerce nav.woocommerce-pagination a.page-numbers, nav.navigation.pagination a.page-numbers):focus-visible {
    border-color: var(--buyit-ctrl-border-strong) !important;
    background: var(--buyit-ctrl-bg-hover) !important;
    color: var(--buyit-ctrl-fg) !important;
    box-shadow: var(--buyit-ctrl-hover-glow), var(--buyit-ctrl-focus) !important;
}

:where(.woocommerce nav.woocommerce-pagination span.current, nav.navigation.pagination span.current) {
    border-color: var(--buyit-ctrl-border-strong) !important;
    background: color-mix(in oklab, var(--buyit-purple) 78%, var(--buyit-ctrl-bg-active) 22%) !important;
    color: #fff !important;
    box-shadow: var(--buyit-ctrl-active-glow) !important;
}

/* Unified toggle: readable in both themes and states */
button.buyit-switch,
.buyit-switch {
    appearance: none;
    -webkit-appearance: none;
    width: 46px !important;
    height: 26px !important;
    border-radius: 999px !important;
    border: 1px solid var(--buyit-ctrl-border) !important;
    background: var(--buyit-ctrl-bg) !important;
    box-shadow: var(--buyit-ctrl-shadow) !important;
    outline: none !important;
}

.buyit-switch::before {
    content: "Ä‚ËĂ‚ÂĂ˘â€šÂ¬" !important;
    position: absolute;
    top: 50%;
    right: 7px;
    left: auto;
    transform: translateY(-50%);
    font-size: 16px !important;
    line-height: 1;
    font-weight: 700;
    color: var(--buyit-ctrl-fg) !important;
    opacity: 1 !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .18);
}

:root[data-theme="dark"] .buyit-switch::before,
.buyit-switch[data-mode="dark"]::before {
    content: "Ä‚ËĂ‚ÂĂ„Äľ" !important;
    left: 7px;
    right: auto;
    color: var(--buyit-ctrl-fg) !important;
}

.buyit-switch[data-mode="light"]::before {
    content: "Ä‚ËĂ‚ÂĂ˘â€šÂ¬" !important;
    right: 7px;
    left: auto;
}

.buyit-switch::after {
    width: 20px !important;
    height: 20px !important;
    top: 2px !important;
    left: 2px !important;
    border-radius: 999px !important;
    background: #ffffff !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .28) !important;
}

:root[data-theme="dark"] .buyit-switch::after {
    background: #f4f6ff !important;
}

.buyit-switch[data-mode="dark"] {
    background: var(--buyit-ctrl-bg-active) !important;
    border-color: var(--buyit-ctrl-border-strong) !important;
}

.buyit-switch[data-mode="dark"]::after {
    left: 24px !important;
}

.buyit-switch:hover,
.buyit-switch:focus,
.buyit-switch:focus-visible,
.buyit-switch:active {
    border-color: var(--buyit-ctrl-border-strong) !important;
    background: var(--buyit-ctrl-bg-hover) !important;
    box-shadow: var(--buyit-ctrl-shadow) !important;
    outline: none !important;
}

/* Header cart control uses the same visual language */
:where(.ast-header-woo-cart .ast-site-header-cart-li .ast-cart-menu-wrap) {
    color: var(--buyit-ctrl-fg) !important;
    border: 1px solid var(--buyit-ctrl-border) !important;
    background: var(--buyit-ctrl-bg) !important;
    border-radius: 999px !important;
    min-height: 36px;
    padding: 0 .6rem !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--buyit-ctrl-shadow) !important;
}

:where(
    .ast-header-woo-cart .ast-site-header-cart-li .ast-cart-menu-wrap:hover,
    .ast-header-woo-cart .ast-site-header-cart-li .ast-cart-menu-wrap:focus-visible
) {
    color: var(--buyit-ctrl-fg) !important;
    border-color: var(--buyit-ctrl-border-strong) !important;
    background: var(--buyit-ctrl-bg-hover) !important;
    outline: none !important;
    box-shadow: var(--buyit-ctrl-shadow), var(--buyit-ctrl-focus) !important;
}

/* Keep account SVG icon visible (avoid later background overrides). */
.ast-header-account-link.ast-account-action-link.ast-header-account-type-icon {
    background-color: transparent !important;
}

/* Mini-cart preview buttons: force same style as global controls */
:where(.ast-header-woo-cart, .ast-site-header-cart, .ast-woocommerce-mini-cart-wrapper)
    .widget_shopping_cart
    .woocommerce-mini-cart__buttons.buttons
    a,
:where(.ast-header-woo-cart, .ast-site-header-cart, .ast-woocommerce-mini-cart-wrapper)
    .widget_shopping_cart
    .buttons
    a {
    color: var(--buyit-ctrl-fg) !important;
    background: var(--buyit-ctrl-bg) !important;
    border: 1px solid var(--buyit-ctrl-border) !important;
    box-shadow: var(--buyit-ctrl-shadow) !important;
    text-decoration: none !important;
}

:where(.ast-header-woo-cart, .ast-site-header-cart, .ast-woocommerce-mini-cart-wrapper)
    .widget_shopping_cart
    .woocommerce-mini-cart__buttons.buttons
    a:hover,
:where(.ast-header-woo-cart, .ast-site-header-cart, .ast-woocommerce-mini-cart-wrapper)
    .widget_shopping_cart
    .woocommerce-mini-cart__buttons.buttons
    a:focus-visible,
:where(.ast-header-woo-cart, .ast-site-header-cart, .ast-woocommerce-mini-cart-wrapper)
    .widget_shopping_cart
    .woocommerce-mini-cart__buttons.buttons
    a:active,
:where(.ast-header-woo-cart, .ast-site-header-cart, .ast-woocommerce-mini-cart-wrapper)
    .widget_shopping_cart
    .buttons
    a:hover,
:where(.ast-header-woo-cart, .ast-site-header-cart, .ast-woocommerce-mini-cart-wrapper)
    .widget_shopping_cart
    .buttons
    a:focus-visible,
:where(.ast-header-woo-cart, .ast-site-header-cart, .ast-woocommerce-mini-cart-wrapper)
    .widget_shopping_cart
    .buttons
    a:active {
    color: var(--buyit-ctrl-fg) !important;
    background: var(--buyit-ctrl-bg-hover) !important;
    border: 1px solid var(--buyit-ctrl-border-strong) !important;
    box-shadow: var(--buyit-ctrl-shadow) !important;
    outline: none !important;
}

/* Mini-cart buttons anti-flicker: override legacy hover rules with higher specificity */
.ast-header-woo-cart .widget_shopping_cart .woocommerce-mini-cart__buttons.buttons a,
.ast-header-woo-cart .widget_shopping_cart .woocommerce-mini-cart__buttons.buttons .button,
.ast-header-woo-cart .widget_shopping_cart .woocommerce-mini-cart__buttons.buttons .wc-forward,
.ast-header-woo-cart .widget_shopping_cart .woocommerce-mini-cart__buttons.buttons .checkout,
.ast-site-header-cart .widget_shopping_cart .woocommerce-mini-cart__buttons.buttons a,
.ast-woocommerce-mini-cart-wrapper .widget_shopping_cart .woocommerce-mini-cart__buttons.buttons a {
    color: var(--buyit-ctrl-fg) !important;
    border: 1px solid var(--buyit-ctrl-border) !important;
    background: var(--buyit-ctrl-bg) !important;
    box-shadow: var(--buyit-ctrl-shadow) !important;
    transform: none !important;
    transition: border-color .16s ease, background-color .16s ease, box-shadow .16s ease !important;
}

.ast-header-woo-cart .widget_shopping_cart .woocommerce-mini-cart__buttons.buttons a:hover,
.ast-header-woo-cart .widget_shopping_cart .woocommerce-mini-cart__buttons.buttons .button:hover,
.ast-header-woo-cart .widget_shopping_cart .woocommerce-mini-cart__buttons.buttons .wc-forward:hover,
.ast-header-woo-cart .widget_shopping_cart .woocommerce-mini-cart__buttons.buttons .checkout:hover,
.ast-header-woo-cart .widget_shopping_cart .woocommerce-mini-cart__buttons.buttons a:focus,
.ast-header-woo-cart .widget_shopping_cart .woocommerce-mini-cart__buttons.buttons .button:focus,
.ast-header-woo-cart .widget_shopping_cart .woocommerce-mini-cart__buttons.buttons .wc-forward:focus,
.ast-header-woo-cart .widget_shopping_cart .woocommerce-mini-cart__buttons.buttons .checkout:focus,
.ast-header-woo-cart .widget_shopping_cart .woocommerce-mini-cart__buttons.buttons a:focus-visible,
.ast-header-woo-cart .widget_shopping_cart .woocommerce-mini-cart__buttons.buttons .button:focus-visible,
.ast-header-woo-cart .widget_shopping_cart .woocommerce-mini-cart__buttons.buttons .wc-forward:focus-visible,
.ast-header-woo-cart .widget_shopping_cart .woocommerce-mini-cart__buttons.buttons .checkout:focus-visible,
.ast-header-woo-cart .widget_shopping_cart .woocommerce-mini-cart__buttons.buttons a:active,
.ast-header-woo-cart .widget_shopping_cart .woocommerce-mini-cart__buttons.buttons .button:active,
.ast-header-woo-cart .widget_shopping_cart .woocommerce-mini-cart__buttons.buttons .wc-forward:active,
.ast-header-woo-cart .widget_shopping_cart .woocommerce-mini-cart__buttons.buttons .checkout:active,
.ast-site-header-cart .widget_shopping_cart .woocommerce-mini-cart__buttons.buttons a:hover,
.ast-site-header-cart .widget_shopping_cart .woocommerce-mini-cart__buttons.buttons a:focus-visible,
.ast-site-header-cart .widget_shopping_cart .woocommerce-mini-cart__buttons.buttons a:active,
.ast-woocommerce-mini-cart-wrapper .widget_shopping_cart .woocommerce-mini-cart__buttons.buttons a:hover,
.ast-woocommerce-mini-cart-wrapper .widget_shopping_cart .woocommerce-mini-cart__buttons.buttons a:focus-visible,
.ast-woocommerce-mini-cart-wrapper .widget_shopping_cart .woocommerce-mini-cart__buttons.buttons a:active {
    color: var(--buyit-ctrl-fg) !important;
    border: 1px solid var(--buyit-ctrl-border-strong) !important;
    background: var(--buyit-ctrl-bg-hover) !important;
    box-shadow: var(--buyit-ctrl-shadow) !important;
    transform: none !important;
    outline: none !important;
}

/* FINAL LOCK: mini-cart CTA buttons (eliminates style flicker from legacy overlaps) */
.ast-header-woo-cart .widget_shopping_cart .woocommerce-mini-cart__buttons.buttons,
.ast-site-header-cart .widget_shopping_cart .woocommerce-mini-cart__buttons.buttons,
.ast-woocommerce-mini-cart-wrapper .widget_shopping_cart .woocommerce-mini-cart__buttons.buttons {
    display: grid !important;
    gap: .55rem !important;
}

.ast-header-woo-cart .widget_shopping_cart .woocommerce-mini-cart__buttons.buttons a,
.ast-header-woo-cart .widget_shopping_cart .woocommerce-mini-cart__buttons.buttons a.button,
.ast-header-woo-cart .widget_shopping_cart .woocommerce-mini-cart__buttons.buttons a.wc-forward,
.ast-header-woo-cart .widget_shopping_cart .woocommerce-mini-cart__buttons.buttons a.checkout,
.ast-site-header-cart .widget_shopping_cart .woocommerce-mini-cart__buttons.buttons a,
.ast-woocommerce-mini-cart-wrapper .widget_shopping_cart .woocommerce-mini-cart__buttons.buttons a {
    all: unset;
    box-sizing: border-box;
    width: 100%;
    min-height: 52px;
    padding: .78rem 1rem !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    border-radius: 999px !important;
    border: 1.5px solid var(--buyit-ctrl-border-strong) !important;
    background: color-mix(in oklab, var(--buyit-purple) 8%, transparent) !important;
    color: var(--buyit-ctrl-fg) !important;
    font-size: 1.02rem;
    font-weight: 700;
    line-height: 1.1;
    text-align: center;
    text-decoration: none !important;
    cursor: pointer;
    transform: none !important;
    box-shadow: none !important;
    outline: none !important;
    transition: border-color .16s ease, background-color .16s ease, color .16s ease !important;
}

.ast-header-woo-cart .widget_shopping_cart .woocommerce-mini-cart__buttons.buttons a:visited,
.ast-header-woo-cart .widget_shopping_cart .woocommerce-mini-cart__buttons.buttons a.button:visited,
.ast-header-woo-cart .widget_shopping_cart .woocommerce-mini-cart__buttons.buttons a.wc-forward:visited,
.ast-header-woo-cart .widget_shopping_cart .woocommerce-mini-cart__buttons.buttons a.checkout:visited,
.ast-site-header-cart .widget_shopping_cart .woocommerce-mini-cart__buttons.buttons a:visited,
.ast-woocommerce-mini-cart-wrapper .widget_shopping_cart .woocommerce-mini-cart__buttons.buttons a:visited {
    color: var(--buyit-ctrl-fg) !important;
}

.ast-header-woo-cart .widget_shopping_cart .woocommerce-mini-cart__buttons.buttons a:hover,
.ast-header-woo-cart .widget_shopping_cart .woocommerce-mini-cart__buttons.buttons a.button:hover,
.ast-header-woo-cart .widget_shopping_cart .woocommerce-mini-cart__buttons.buttons a.wc-forward:hover,
.ast-header-woo-cart .widget_shopping_cart .woocommerce-mini-cart__buttons.buttons a.checkout:hover,
.ast-header-woo-cart .widget_shopping_cart .woocommerce-mini-cart__buttons.buttons a:focus,
.ast-header-woo-cart .widget_shopping_cart .woocommerce-mini-cart__buttons.buttons a.button:focus,
.ast-header-woo-cart .widget_shopping_cart .woocommerce-mini-cart__buttons.buttons a.wc-forward:focus,
.ast-header-woo-cart .widget_shopping_cart .woocommerce-mini-cart__buttons.buttons a.checkout:focus,
.ast-header-woo-cart .widget_shopping_cart .woocommerce-mini-cart__buttons.buttons a:focus-visible,
.ast-header-woo-cart .widget_shopping_cart .woocommerce-mini-cart__buttons.buttons a.button:focus-visible,
.ast-header-woo-cart .widget_shopping_cart .woocommerce-mini-cart__buttons.buttons a.wc-forward:focus-visible,
.ast-header-woo-cart .widget_shopping_cart .woocommerce-mini-cart__buttons.buttons a.checkout:focus-visible,
.ast-header-woo-cart .widget_shopping_cart .woocommerce-mini-cart__buttons.buttons a:active,
.ast-header-woo-cart .widget_shopping_cart .woocommerce-mini-cart__buttons.buttons a.button:active,
.ast-header-woo-cart .widget_shopping_cart .woocommerce-mini-cart__buttons.buttons a.wc-forward:active,
.ast-header-woo-cart .widget_shopping_cart .woocommerce-mini-cart__buttons.buttons a.checkout:active,
.ast-site-header-cart .widget_shopping_cart .woocommerce-mini-cart__buttons.buttons a:hover,
.ast-site-header-cart .widget_shopping_cart .woocommerce-mini-cart__buttons.buttons a:focus-visible,
.ast-site-header-cart .widget_shopping_cart .woocommerce-mini-cart__buttons.buttons a:active,
.ast-woocommerce-mini-cart-wrapper .widget_shopping_cart .woocommerce-mini-cart__buttons.buttons a:hover,
.ast-woocommerce-mini-cart-wrapper .widget_shopping_cart .woocommerce-mini-cart__buttons.buttons a:focus-visible,
.ast-woocommerce-mini-cart-wrapper .widget_shopping_cart .woocommerce-mini-cart__buttons.buttons a:active {
    border-color: var(--buyit-ctrl-border-strong) !important;
    background: color-mix(in oklab, var(--buyit-purple) 26%, transparent) !important;
    color: var(--buyit-ctrl-fg) !important;
    transform: none !important;
    box-shadow: none !important;
    outline: none !important;
}

/* PAGINATION FINAL LOCK: stable rounded hover + stronger current visibility */
.woocommerce nav.woocommerce-pagination ul.page-numbers,
nav.navigation.pagination .nav-links {
    background: transparent !important;
    box-shadow: none !important;
    border: 0 !important;
    filter: none !important;
}

.woocommerce nav.woocommerce-pagination ul.page-numbers li,
nav.navigation.pagination .nav-links > * {
    background: transparent !important;
    box-shadow: none !important;
    outline: none !important;
    border-radius: 12px !important;
    border: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    filter: none !important;
    transform: none !important;
}

.woocommerce nav.woocommerce-pagination ul.page-numbers li:hover,
.woocommerce nav.woocommerce-pagination ul.page-numbers li:focus-within,
nav.navigation.pagination .nav-links > *:hover,
nav.navigation.pagination .nav-links > *:focus-within {
    background: transparent !important;
    box-shadow: none !important;
    border: 0 !important;
    filter: none !important;
}

.woocommerce nav.woocommerce-pagination ul.page-numbers li > a.page-numbers,
.woocommerce nav.woocommerce-pagination ul.page-numbers li > span.page-numbers,
nav.navigation.pagination .nav-links > a.page-numbers,
nav.navigation.pagination .nav-links > span.page-numbers {
    border-radius: 12px !important;
    overflow: hidden;
    box-shadow: none !important;
    background-clip: padding-box !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    filter: none !important;
    transform: none !important;
    transition: border-color .16s ease, background-color .16s ease, box-shadow .16s ease, color .16s ease !important;
}

.woocommerce nav.woocommerce-pagination ul.page-numbers li > a.page-numbers::before,
.woocommerce nav.woocommerce-pagination ul.page-numbers li > a.page-numbers::after,
.woocommerce nav.woocommerce-pagination ul.page-numbers li > span.page-numbers::before,
.woocommerce nav.woocommerce-pagination ul.page-numbers li > span.page-numbers::after,
.woocommerce nav.woocommerce-pagination ul.page-numbers li::before,
.woocommerce nav.woocommerce-pagination ul.page-numbers li::after,
nav.navigation.pagination .nav-links > a.page-numbers::before,
nav.navigation.pagination .nav-links > a.page-numbers::after,
nav.navigation.pagination .nav-links > span.page-numbers::before,
nav.navigation.pagination .nav-links > span.page-numbers::after {
    content: none !important;
    display: none !important;
}

.woocommerce nav.woocommerce-pagination ul.page-numbers li > a.page-numbers:hover,
nav.navigation.pagination .nav-links > a.page-numbers:hover {
    border-radius: 12px !important;
    border-color: var(--buyit-ctrl-border-strong) !important;
    background: var(--buyit-ctrl-bg-hover) !important;
    color: var(--buyit-ctrl-fg) !important;
    box-shadow: none !important;
    outline: none !important;
}

.woocommerce nav.woocommerce-pagination ul.page-numbers li > a.page-numbers:focus,
.woocommerce nav.woocommerce-pagination ul.page-numbers li > a.page-numbers:focus-visible,
nav.navigation.pagination .nav-links > a.page-numbers:focus,
nav.navigation.pagination .nav-links > a.page-numbers:focus-visible {
    border-radius: 12px !important;
    border-color: var(--buyit-ctrl-border-strong) !important;
    background: var(--buyit-ctrl-bg-hover) !important;
    color: var(--buyit-ctrl-fg) !important;
    box-shadow: none !important;
    outline: none !important;
}

.woocommerce nav.woocommerce-pagination ul.page-numbers li > span.current,
nav.navigation.pagination .nav-links > a.current,
nav.navigation.pagination .nav-links > a.page-numbers.current,
nav.navigation.pagination .nav-links > span.current,
.woocommerce nav.woocommerce-pagination ul.page-numbers li > a.current,
.woocommerce nav.woocommerce-pagination ul.page-numbers li > a.page-numbers.current,
nav.navigation.pagination .nav-links > span.current {
    border-radius: 12px !important;
    box-shadow: none !important;
    outline: none !important;
}

:root[data-theme="light"] .woocommerce nav.woocommerce-pagination ul.page-numbers li > span.current,
:root[data-theme="light"] nav.navigation.pagination .nav-links > a.current,
:root[data-theme="light"] nav.navigation.pagination .nav-links > a.page-numbers.current,
:root[data-theme="light"] nav.navigation.pagination .nav-links > span.current,
:root[data-theme="light"] .woocommerce nav.woocommerce-pagination ul.page-numbers li > a.current,
:root[data-theme="light"] .woocommerce nav.woocommerce-pagination ul.page-numbers li > a.page-numbers.current {
    background: color-mix(in oklab, #ffffff 36%, var(--buyit-purple) 64%) !important;
    border-color: color-mix(in oklab, rgba(22, 30, 45, .24) 18%, var(--buyit-purple) 82%) !important;
    color: #ffffff !important;
    box-shadow: none !important;
}

:root[data-theme="dark"] .woocommerce nav.woocommerce-pagination ul.page-numbers li > span.current,
:root[data-theme="dark"] nav.navigation.pagination .nav-links > a.current,
:root[data-theme="dark"] nav.navigation.pagination .nav-links > a.page-numbers.current,
:root[data-theme="dark"] nav.navigation.pagination .nav-links > span.current,
:root[data-theme="dark"] .woocommerce nav.woocommerce-pagination ul.page-numbers li > a.current,
:root[data-theme="dark"] .woocommerce nav.woocommerce-pagination ul.page-numbers li > a.page-numbers.current {
    border-color: color-mix(in oklab, #ffffff 34%, var(--buyit-purple) 66%) !important;
    background: linear-gradient(
        180deg,
        color-mix(in oklab, #9bdcff 30%, var(--buyit-purple) 70%),
        color-mix(in oklab, #0a84e3 90%, #1e4fb7 10%)
    ) !important;
    color: #ffffff !important;
    box-shadow: none !important;
}

/* Content tiles: pages, blog, archives, search */
:root[data-theme="light"] body.buyit-content-tiles {
    --buyit-content-text: #1b2537;
    --buyit-content-text-strong: #0f172a;
    --buyit-content-text-muted: rgba(27, 37, 55, .72);
    --buyit-content-sep: rgba(15, 23, 42, .12);
}

:root[data-theme="dark"] body.buyit-content-tiles {
    --buyit-content-text: #e9efff;
    --buyit-content-text-strong: #f6f9ff;
    --buyit-content-text-muted: rgba(233, 239, 255, .72);
    --buyit-content-sep: rgba(255, 255, 255, .14);
}

body.buyit-content-tiles .site-content {
    color: var(--buyit-content-text);
}

body.buyit-content-tiles h1.entry-title,
body.buyit-content-tiles .entry-title,
body.buyit-content-tiles .page-title {
    color: var(--buyit-content-text-strong) !important;
}

body.buyit-content-tiles .entry-meta,
body.buyit-content-tiles .entry-meta * {
    color: var(--buyit-content-text-muted) !important;
}

body.buyit-content-tiles .site-main > article,
body.buyit-content-tiles article.ast-article-single,
body.buyit-content-tiles .search .site-main article,
body.buyit-content-tiles .ast-author-box,
body.buyit-content-tiles .comments-area,
body.buyit-content-tiles .widget-area .widget {
    border-radius: 24px;
    border: 1px solid var(--buyit-content-sep);
    background: linear-gradient(var(--_tint, rgba(255, 255, 255, .30)), var(--_tint, rgba(255, 255, 255, .30)));
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    box-shadow: 0 14px 32px rgba(0, 0, 0, .18);
}

:root[data-theme="light"] body.buyit-content-tiles .site-main > article,
:root[data-theme="light"] body.buyit-content-tiles article.ast-article-single,
:root[data-theme="light"] body.buyit-content-tiles .search .site-main article,
:root[data-theme="light"] body.buyit-content-tiles .ast-author-box,
:root[data-theme="light"] body.buyit-content-tiles .comments-area,
:root[data-theme="light"] body.buyit-content-tiles .widget-area .widget {
    --_tint: rgba(255, 255, 255, .45);
}

:root[data-theme="dark"] body.buyit-content-tiles .site-main > article,
:root[data-theme="dark"] body.buyit-content-tiles article.ast-article-single,
:root[data-theme="dark"] body.buyit-content-tiles .search .site-main article,
:root[data-theme="dark"] body.buyit-content-tiles .ast-author-box,
:root[data-theme="dark"] body.buyit-content-tiles .comments-area,
:root[data-theme="dark"] body.buyit-content-tiles .widget-area .widget {
    --_tint: rgba(22, 26, 36, .55);
}

body.buyit-content-tiles .site-main > article,
body.buyit-content-tiles article.ast-article-single,
body.buyit-content-tiles .search .site-main article {
    padding: clamp(1rem, 1.4vw, 1.4rem);
    margin-bottom: 1rem;
}

body.buyit-content-tiles .entry-content > :last-child,
body.buyit-content-tiles .entry-summary > :last-child {
    margin-bottom: 0;
}

body.buyit-content-tiles .widget-area .widget {
    padding: 1rem;
    margin-bottom: .9rem;
}

body.buyit-content-tiles .comments-area {
    padding: 1rem 1.1rem;
    margin-top: 1rem;
}

body.buyit-content-tiles .read-more,
body.buyit-content-tiles .read-more a {
    color: var(--buyit-content-text-strong) !important;
}

@media (max-width: 921px) {
    body.buyit-content-tiles .site-main > article,
    body.buyit-content-tiles article.ast-article-single,
    body.buyit-content-tiles .search .site-main article {
        border-radius: 20px;
        padding: .95rem;
        margin-bottom: .85rem;
    }

    body.buyit-content-tiles .widget-area .widget,
    body.buyit-content-tiles .comments-area {
        border-radius: 20px;
        padding: .9rem;
    }
}

/* Single product layout (clean, tile-based) */
:root[data-theme="light"] body.buyit-single-product {
    --buyit-sp-text: #1a2436;
    --buyit-sp-text-strong: #0f172a;
    --buyit-sp-text-muted: rgba(26, 36, 54, .74);
    --buyit-sp-sep: rgba(15, 23, 42, .15);
    --buyit-sp-panel: rgba(255, 255, 255, .42);
    --buyit-sp-card: rgba(255, 255, 255, .52);
}

:root[data-theme="dark"] body.buyit-single-product {
    --buyit-sp-text: #e8eeff;
    --buyit-sp-text-strong: #f6f9ff;
    --buyit-sp-text-muted: rgba(232, 238, 255, .76);
    --buyit-sp-sep: rgba(255, 255, 255, .18);
    --buyit-sp-panel: rgba(16, 22, 34, .56);
    --buyit-sp-card: rgba(22, 28, 42, .62);
}

body.buyit-single-product {
    --buyit-sp-gap: .72rem;
}

body.buyit-single-product .site-content {
    color: var(--buyit-sp-text);
}

body.buyit-single-product .site-main div.product {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto 1fr;
    gap: var(--buyit-sp-gap);
    align-items: stretch;
    max-width: min(1540px, 100%);
    margin: 0 auto 1rem;
    padding: clamp(.85rem, 1.2vw, 1.25rem);
    border-radius: 28px;
    border: 1px solid var(--buyit-sp-sep);
    background: linear-gradient(var(--buyit-sp-panel), var(--buyit-sp-panel));
    -webkit-backdrop-filter: blur(9px);
    backdrop-filter: blur(9px);
    box-shadow: 0 16px 38px rgba(0, 0, 0, .2);
}

body.buyit-single-product .site-main div.product > .woocommerce-breadcrumb {
    grid-column: 1;
    grid-row: 1;
    margin: 0 !important;
    padding: .65rem .8rem;
    border-radius: 14px;
    border: 1px solid var(--buyit-sp-sep);
    background: linear-gradient(var(--buyit-sp-card), var(--buyit-sp-card));
    color: var(--buyit-sp-text-muted) !important;
    font-size: .88rem;
    line-height: 1.35;
}

body.buyit-single-product .site-main div.product > .woocommerce-breadcrumb a {
    color: var(--buyit-sp-text-muted) !important;
}

body.buyit-single-product .site-main div.product > :is(.woocommerce-product-gallery, .images),
body.buyit-single-product .site-main div.product > :is(.summary, div.summary) {
    float: none !important;
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    min-width: 0;
}

body.buyit-single-product .site-main div.product > :is(.woocommerce-product-gallery, .images) {
    grid-column: 1;
    grid-row: 2;
    align-self: start;
    width: 100%;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}

body.buyit-single-product .woocommerce-product-gallery__wrapper {
    display: grid;
    grid-template-columns: minmax(0, .85fr) minmax(140px, .30fr);
    grid-template-rows: auto auto;
    gap: .72rem;
    align-items: start;
    align-content: start;
    margin: 0;
    padding: 0;
}

body.buyit-single-product .woocommerce-product-gallery__image {
    margin: 0 !important;
    display: grid;
    justify-items: start;
}

body.buyit-single-product .woocommerce-product-gallery__wrapper > .woocommerce-product-gallery__image:first-child {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
    aspect-ratio: 1 / 1;
    padding: 0;
    border-radius: 16px;
    border: 0;
    background: linear-gradient(var(--buyit-sp-card), var(--buyit-sp-card));
    box-shadow: 0 8px 22px rgba(0, 0, 0, .14);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    overflow: hidden;
}

body.buyit-single-product .woocommerce-product-gallery__wrapper > .woocommerce-product-gallery__image:not(:first-child) {
    display: none !important;
}

body.buyit-single-product .woocommerce-product-gallery__image a {
    display: block;
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    border-radius: 16px;
    border: 0;
    overflow: hidden;
    cursor: pointer;
}

body.buyit-single-product .woocommerce-product-gallery__trigger {
    display: none !important;
}

body.buyit-single-product .woocommerce-product-gallery__image .zoomImg {
    display: none !important;
}

body.buyit-single-product .woocommerce-product-gallery__image img {
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: cover;
    border-radius: 16px;
    border: 0;
    transform: none !important;
    display: block;
}

body.buyit-single-product .flex-control-thumbs {
    display: none !important;
}

body.buyit-single-product .flex-control-thumbs li {
    width: auto !important;
    margin: 0 !important;
}

body.buyit-single-product .flex-control-thumbs img {
    border-radius: 10px;
    border: 1px solid var(--buyit-sp-sep);
    background: color-mix(in oklab, var(--buyit-sp-card) 84%, white 16%);
}

body.buyit-single-product .buyit-sp-left-facts {
    grid-column: 1;
    grid-row: 2;
    margin-top: 0;
    padding: .85rem .95rem;
    border-radius: 16px;
    border: 1px solid var(--buyit-sp-sep) !important;
    background: linear-gradient(var(--buyit-sp-card), var(--buyit-sp-card)) !important;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .14) !important;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

body.buyit-single-product .buyit-sp-left-facts p {
    margin: 0 0 .35rem;
    line-height: 1.35;
    color: var(--buyit-sp-text);
}

body.buyit-single-product .buyit-sp-left-facts p:last-child {
    margin-bottom: 0;
}

body.buyit-single-product .buyit-sp-left-facts--mobile {
    display: none;
}

body.buyit-single-product .buyit-sp-side-tiles {
    grid-column: 2;
    grid-row: 1;
    display: grid;
    grid-template-rows: repeat(3, minmax(0, 1fr));
    gap: var(--buyit-sp-gap);
    align-self: stretch;
    height: 100%;
}

body.buyit-single-product .buyit-sp-side-tile,
body.buyit-single-product .buyit-sp-bottom-tile {
    display: block;
    width: 100%;
    border-radius: 16px;
    border: 1px solid var(--buyit-sp-sep);
    background: linear-gradient(var(--buyit-sp-card), var(--buyit-sp-card));
    box-shadow: 0 8px 22px rgba(0, 0, 0, .14);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

body.buyit-single-product .buyit-sp-feature-tile {
    box-sizing: border-box;
    height: 100%;
    padding: 0 .42rem;
    text-align: center;
    color: var(--buyit-sp-text-strong);
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto auto minmax(0, 1fr);
    align-items: center;
    justify-items: center;
    gap: 6px;
}

body.buyit-single-product .buyit-sp-feature-tile__icon {
    grid-row: 2;
    justify-self: center;
    align-self: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    color: #0a84e3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, rgba(170, 224, 255, .78), rgba(129, 186, 255, .74));
    box-shadow: 0 4px 12px rgba(28, 101, 196, .22);
}

body.buyit-single-product .buyit-sp-feature-tile__icon svg {
    width: 20px;
    height: 20px;
    display: block;
}

body.buyit-single-product .buyit-sp-feature-tile__copy {
    grid-row: 3;
    width: 100%;
    display: grid;
    grid-template-rows: 2.15em 2.05em 2.35em;
    align-content: end;
    gap: 1px;
    min-width: 0;
}

body.buyit-single-product .buyit-sp-feature-tile__title {
    margin: 0;
    font-size: clamp(.82rem, .74vw, .95rem);
    line-height: 1.12;
    font-weight: 800;
    color: var(--buyit-sp-text-strong);
    display: flex;
    align-items: center;
    justify-content: center;
}

body.buyit-single-product .buyit-sp-feature-tile__text {
    margin: 0;
    font-size: clamp(.72rem, .62vw, .82rem);
    line-height: 1.14;
    color: color-mix(in oklab, var(--buyit-sp-text) 82%, #4a5c78 18%);
    display: flex;
    align-items: center;
    justify-content: center;
}

body.buyit-single-product .buyit-sp-feature-tile__hint {
    margin: 0;
    width: 100%;
    padding-top: 4px;
    border-top: 1px solid color-mix(in oklab, var(--buyit-sp-sep) 72%, #8cb8f2 28%);
    font-size: clamp(.64rem, .52vw, .72rem);
    line-height: 1.15;
    color: color-mix(in oklab, var(--buyit-sp-text-muted) 86%, #4a5c78 14%);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    text-align: center;
}

body.buyit-single-product .buyit-sp-side-tile {
    min-height: 0;
}

body.buyit-single-product .buyit-sp-mobile-tiles {
    display: none;
}

body.buyit-single-product .buyit-sp-bottom-tile {
    grid-column: 2;
    grid-row: 2;
    align-self: stretch;
    min-height: 0;
    height: 100%;
}

body.buyit-single-product .site-main div.product > :is(.summary, div.summary) {
    grid-column: 2;
    grid-row: 1 / span 2;
    display: flex;
    flex-direction: column;
    gap: var(--buyit-sp-gap);
    align-self: stretch;
    height: 100%;
    min-height: 0;
    overflow: visible;
}

body.buyit-single-product .site-main div.product > :is(.summary, div.summary) > * {
    margin: 0 !important;
}

body.buyit-single-product .site-main div.product > :is(.summary, div.summary) > .buyit-sp-brand-logo {
    order: 5;
    padding: .1rem .1rem 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

body.buyit-single-product .site-main div.product > :is(.summary, div.summary) > :is(.woocommerce-breadcrumb, .single-product-category) {
    display: none !important;
}

body.buyit-single-product .buyit-sp-left-facts,
body.buyit-single-product .site-main div.product > :is(.summary, div.summary) > .buyit-sp-primary-card,
body.buyit-single-product .site-main div.product > :is(.summary, div.summary) > .winkey-paytrust-box--product,
body.buyit-single-product .site-main div.product > :is(.summary, div.summary) > .buyit-sp-shortdesc-card {
    padding: .82rem .95rem;
    border-radius: 16px;
    border: 1px solid var(--buyit-sp-sep) !important;
    background: linear-gradient(var(--buyit-sp-card), var(--buyit-sp-card)) !important;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .14) !important;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

body.buyit-single-product .buyit-sp-primary-card {
    order: 10 !important;
    display: grid;
    gap: .52rem;
    align-content: start;
    margin-top: 0 !important;
}

body.buyit-single-product .site-main div.product > :is(.summary, div.summary) > .buyit-sp-primary-card {
    order: 10 !important;
}

body.buyit-single-product .buyit-sp-primary-card > * {
    margin: 0 !important;
}

body.buyit-single-product .buyit-sp-shortdesc-card {
    order: 20 !important;
    color: var(--buyit-sp-text);
    line-height: 1.45;
    flex: 1 1 0;
    min-height: 0;
    align-self: stretch;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: .42rem;
}

body.buyit-single-product .site-main div.product > :is(.summary, div.summary) > .buyit-sp-shortdesc-card {
    order: 20 !important;
}

body.buyit-single-product .buyit-sp-shortdesc-card > * {
    width: 100%;
}

body.buyit-single-product .buyit-sp-shortdesc-card > :first-child {
    margin-top: 0;
}

body.buyit-single-product .buyit-sp-shortdesc-card > :last-child {
    margin-bottom: 0;
}

body.buyit-single-product .buyit-sp-shortdesc-card p {
    margin: 0;
}

body.buyit-single-product .buyit-sp-shortdesc-card :is(ul, ol) {
    display: block !important;
    margin: 0;
    padding-left: 1.1rem;
}

body.buyit-single-product .buyit-sp-shortdesc-card :is(ul, ol) li {
    display: list-item !important;
    margin: 0 0 .26rem;
}

body.buyit-single-product .buyit-sp-shortdesc-card :is(ul, ol) li:last-child {
    margin-bottom: 0;
}

body.buyit-single-product .buyit-sp-primary-card .product_title {
    order: 10;
}

body.buyit-single-product .buyit-sp-primary-card .price {
    order: 20;
}

body.buyit-single-product .buyit-sp-primary-card .buyit-sp-price {
    display: flex;
    align-items: baseline;
    gap: .45rem;
    flex-wrap: wrap;
}

body.buyit-single-product .buyit-sp-primary-card .buyit-sp-omnibus {
    order: 25;
    margin: .04rem 0 0 !important;
    font-size: .9rem;
    line-height: 1.35;
    color: var(--buyit-sp-text-muted);
}

body.buyit-single-product .buyit-sp-primary-card .buyit-sp-omnibus strong {
    color: var(--buyit-sp-text-strong);
}

body.buyit-single-product .buyit-sp-primary-card form.cart {
    order: 30;
}

body.buyit-single-product .buyit-sp-primary-card .stock {
    order: 40;
}

body.buyit-single-product .buyit-sp-primary-card .winkey-digital-delivery-note {
    order: 50;
}

body.buyit-single-product .buyit-sp-primary-card > .ppcp-messages {
    order: 35;
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

body.buyit-single-product .buyit-sp-primary-card > .ppc-button-wrapper {
    order: 36;
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

body.buyit-single-product .buyit-sp-primary-card > .ppc-button-wrapper [id^="ppc-button-"] {
    width: 100%;
}

body.buyit-single-product .site-main div.product > :is(.summary, div.summary) > .ppcp-messages {
    order: 60;
    width: 100%;
    align-self: stretch;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

body.buyit-single-product .site-main div.product > :is(.summary, div.summary) > .ppc-button-wrapper {
    order: 70;
    width: 100%;
    align-self: stretch;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

body.buyit-single-product .site-main div.product > :is(.summary, div.summary) > .ppc-button-wrapper [id^="ppc-button-"] {
    width: 100%;
}

body.buyit-single-product .site-main div.product > :is(.summary, div.summary) > :is(
    .woocommerce-paypal-payments-button-container,
    .woocommerce-paypal-payments-buttons,
    .paypal-buttons,
    .ppcp-hosted-fields,
    #ppcp-hosted-fields,
    #ppcp-recaptcha-v2-container
) {
    order: 75;
    width: 100%;
    align-self: stretch;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

/* Single product: collapse empty PayPal placeholders so tiles stay aligned. */
body.buyit-single-product :is(
    .buyit-sp-primary-card > .ppcp-messages:empty,
    .buyit-sp-primary-card > .woocommerce-paypal-payments-button-container:empty,
    .buyit-sp-primary-card > .woocommerce-paypal-payments-buttons:empty,
    .buyit-sp-primary-card > .paypal-buttons:empty,
    .site-main div.product > :is(.summary, div.summary) > .ppcp-messages:empty,
    .site-main div.product > :is(.summary, div.summary) > .woocommerce-paypal-payments-button-container:empty,
    .site-main div.product > :is(.summary, div.summary) > .woocommerce-paypal-payments-buttons:empty,
    .site-main div.product > :is(.summary, div.summary) > .paypal-buttons:empty
) {
    display: none !important;
}

body.buyit-single-product :is(
    .buyit-sp-primary-card > .ppc-button-wrapper,
    .site-main div.product > :is(.summary, div.summary) > .ppc-button-wrapper
):has(> [id^="ppc-button-"]:empty):not(:has(.paypal-buttons, .ppcp-button-apm, .ppcp-hosted-fields, #ppcp-hosted-fields, [class^="item-"], iframe, apple-pay-button, .gpay-button)) {
    display: none !important;
}

body.buyit-single-product :is(
    .buyit-sp-primary-card > .ppc-button-wrapper,
    .site-main div.product > :is(.summary, div.summary) > .ppc-button-wrapper
):not(:has(iframe, .paypal-buttons, .ppcp-button-apm, .ppcp-hosted-fields, #ppcp-hosted-fields, apple-pay-button, .gpay-button)) {
    display: none !important;
}

body.buyit-single-product :is(
    .buyit-sp-primary-card #ppc-button-ppcp-gateway,
    .site-main div.product > :is(.summary, div.summary) #ppc-button-ppcp-gateway
):not(:has(iframe, .paypal-buttons, .ppcp-button-apm, apple-pay-button, .gpay-button)) {
    display: none !important;
}

body.buyit-single-product :is(
    .buyit-sp-primary-card #ppc-button-ppcp-gateway > [class^="item-"],
    .site-main div.product > :is(.summary, div.summary) #ppc-button-ppcp-gateway > [class^="item-"]
):not(:has(iframe, .paypal-buttons, .ppcp-button-apm, apple-pay-button, .gpay-button)) {
    display: none !important;
    margin-top: 0 !important;
    min-height: 0 !important;
    height: 0 !important;
    padding: 0 !important;
    border: 0 !important;
}

body.buyit-single-product .buyit-sp-brand-logo {
    display: inline-flex;
    align-items: center;
    gap: .7rem;
}

body.buyit-single-product .buyit-sp-brand-logo__mark {
    width: 28px;
    height: 28px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 2px;
}

body.buyit-single-product .buyit-sp-brand-logo__mark span:nth-child(1) { background: #f25022; }
body.buyit-single-product .buyit-sp-brand-logo__mark span:nth-child(2) { background: #7fba00; }
body.buyit-single-product .buyit-sp-brand-logo__mark span:nth-child(3) { background: #00a4ef; }
body.buyit-single-product .buyit-sp-brand-logo__mark span:nth-child(4) { background: #ffb900; }

body.buyit-single-product .buyit-sp-brand-logo__text {
    font-size: clamp(1.2rem, 1.6vw, 1.9rem);
    line-height: 1;
    font-weight: 600;
    letter-spacing: .01em;
    color: var(--buyit-sp-text-muted);
}

body.buyit-single-product .site-main div.product .product_title {
    margin: 0;
    font-size: clamp(1.38rem, 2vw, 2.04rem);
    line-height: 1.14;
    color: var(--buyit-sp-text-strong) !important;
    font-weight: 850;
}

body.buyit-single-product .site-main div.product p.price,
body.buyit-single-product .site-main div.product span.price {
    color: var(--buyit-sp-text-strong) !important;
    font-weight: 850;
    font-size: clamp(1.4rem, 2vw, 2.16rem);
    line-height: 1.04;
}

body.buyit-single-product .buyit-sp-primary-card .price del {
    color: color-mix(in oklab, var(--buyit-sp-text-muted) 84%, #6a788f 16%) !important;
    opacity: 1;
    margin-right: .45rem;
    font-size: .86em;
    text-decoration-thickness: 2px;
}

body.buyit-single-product .buyit-sp-primary-card .price del .amount {
    color: inherit !important;
}

body.buyit-single-product .buyit-sp-primary-card .price ins {
    color: #0a9e47 !important;
    background: transparent !important;
    text-decoration: none !important;
    font-weight: 900;
}

body.buyit-single-product .buyit-sp-primary-card .price ins .amount {
    color: inherit !important;
}

body.buyit-single-product .site-main div.product .woocommerce-product-rating {
    display: flex;
    align-items: center;
    gap: .6rem;
}

body.buyit-single-product .site-main div.product .woocommerce-product-rating .star-rating {
    margin: 0 !important;
}

body.buyit-single-product .site-main div.product .stock {
    color: #0d9a56 !important;
    font-weight: 700;
}

body.buyit-single-product .buyit-sp-primary-card form.cart {
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr);
    gap: .62rem;
    align-items: center;
    justify-content: flex-start;
    margin-top: .08rem !important;
    margin-left: 0 !important;
    padding-left: 0 !important;
    justify-items: stretch;
}

body.buyit-single-product .buyit-sp-primary-card form.cart .quantity {
    grid-column: 1;
    grid-row: 1;
    margin: 0 !important;
    margin-left: 0 !important;
    width: 82px;
    min-width: 82px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    align-self: center;
}

body.buyit-single-product .buyit-sp-primary-card form.cart .qty {
    width: 100% !important;
    min-width: 0;
    min-height: 46px;
    border-radius: 12px;
    border: 1px solid var(--buyit-sp-sep);
    text-align: center;
    background: color-mix(in oklab, var(--buyit-sp-card) 88%, white 12%);
    color: var(--buyit-sp-text-strong);
}

body.buyit-single-product .buyit-sp-primary-card form.cart .single_add_to_cart_button {
    grid-column: 2;
    grid-row: 1;
    width: 100%;
    min-height: 46px;
    border-radius: 13px !important;
    border: 1px solid color-mix(in oklab, #4f8df0 70%, #8ec8ff 30%) !important;
    background: linear-gradient(90deg, #8ac9f5, #77a5f2) !important;
    color: #101a2d !important;
    box-shadow: none !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 850 !important;
    font-size: 1.02rem !important;
    white-space: nowrap;
    margin: 0 !important;
    margin-left: 0 !important;
    align-self: center;
}

body.buyit-single-product .buyit-sp-primary-card form.cart input[type="hidden"] {
    display: none !important;
}

body.buyit-single-product .buyit-sp-primary-card form.cart > :not(.quantity):not(.single_add_to_cart_button):not(input[type="hidden"]):not(.ppc-button-wrapper):not(.ppcp-messages):not(#ppcp-hosted-fields):not([id^="ppc-button-"]) {
    display: none !important;
}

body.buyit-single-product .buyit-sp-primary-card form.cart .single_add_to_cart_button:hover,
body.buyit-single-product .buyit-sp-primary-card form.cart .single_add_to_cart_button:focus-visible {
    border-color: color-mix(in oklab, #4f8df0 82%, #b8dcff 18%) !important;
    background: linear-gradient(90deg, #99d4fb, #84b2fa) !important;
    box-shadow: none !important;
}

body.buyit-single-product .buyit-sp-primary-card .winkey-digital-delivery-note {
    font-size: .95rem;
    line-height: 1.4;
    color: var(--buyit-sp-text);
    margin-top: .05rem !important;
}

body.buyit-single-product .buyit-sp-primary-card .winkey-digital-delivery-note strong {
    color: var(--buyit-sp-text-strong);
}

body.buyit-single-product .buyit-sp-primary-card .stock {
    margin-top: .02rem !important;
}

body.buyit-single-product .site-main div.product .winkey-paytrust-box--product {
    order: 30 !important;
    max-width: none !important;
    margin: 0 !important;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
        "title powered"
        "visual visual";
    align-items: center;
    column-gap: .7rem;
    row-gap: .58rem;
    border: 1px solid var(--buyit-sp-sep) !important;
    background: linear-gradient(var(--buyit-sp-card), var(--buyit-sp-card)) !important;
    background-image: linear-gradient(var(--buyit-sp-card), var(--buyit-sp-card)) !important;
    background-clip: padding-box !important;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .14) !important;
}

body.buyit-single-product .site-main div.product > :is(.summary, div.summary) > .winkey-paytrust-box--product {
    order: 30 !important;
}

body.buyit-single-product .site-main div.product .winkey-paytrust-box--product.glass-dynamic::before,
body.buyit-single-product .site-main div.product .winkey-paytrust-box--product.glass-dynamic::after {
    content: none !important;
    display: none !important;
}

body.buyit-single-product .site-main div.product .winkey-paytrust-box--product .winkey-paytrust__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .55rem;
}

body.buyit-single-product .site-main div.product .winkey-paytrust-box--product .winkey-paytrust__badge {
    min-height: 46px;
    padding: 7px 8px;
}

/* Taki sam reset jak dla logo hero w opisie produktu (bez poświaty/tła wokół bitmapy) */
body.buyit-single-product .site-main div.product .winkey-paytrust-box--product .winkey-paytrust__badge img {
    background: transparent !important;
    box-shadow: none !important;
    filter: none !important;
    border: 0 !important;
    border-radius: 0 !important;
}

body.buyit-single-product .site-main div.product .winkey-paytrust-box--product .winkey-paytrust-box__title {
    grid-area: title;
    margin: 0 !important;
}

body.buyit-single-product .site-main div.product .winkey-paytrust-box--product .winkey-paytrust-box__powered {
    grid-area: powered;
    justify-self: end;
    align-self: center;
    margin: 0 !important;
}

body.buyit-single-product .site-main div.product .winkey-paytrust-box--product .winkey-paytrust-box__powered img {
    height: 33px;
}

body.buyit-single-product .site-main div.product .winkey-paytrust-box--product .winkey-paytrust-box__visual {
    grid-area: visual;
}

body.buyit-single-product .site-main div.product .winkey-paytrust-box--product .winkey-paytrust-box__text {
    display: none !important;
}

body.buyit-single-product .woocommerce-tabs,
body.buyit-single-product .related,
body.buyit-single-product .up-sells {
    margin-top: 0;
    border-radius: 22px;
    border: 1px solid var(--buyit-sp-sep);
    background: linear-gradient(var(--buyit-sp-panel), var(--buyit-sp-panel));
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    box-shadow: 0 14px 34px rgba(0, 0, 0, .18);
}

body.buyit-single-product .woocommerce-tabs {
    margin-bottom: 0 !important;
    padding: .82rem .95rem .95rem;
}

body.buyit-single-product .woocommerce-tabs + :is(.related, .up-sells),
body.buyit-single-product .related + .up-sells {
    margin-top: .55rem !important;
}

/* Single product description content: unified cards/tables/image style */
body.buyit-single-product .woocommerce-Tabs-panel--description .buyit-desc {
    display: grid;
    gap: 1rem;
}

body.buyit-single-product .woocommerce-Tabs-panel--description .buyit-desc-hero {
    margin: 0;
}

body.buyit-single-product .woocommerce-Tabs-panel--description .buyit-desc-hero__img {
    display: block;
    width: 100%;
    max-width: 600px;
    height: auto;
    margin: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none !important;
    filter: none !important;
}

body.buyit-single-product .woocommerce-Tabs-panel--description .buyit-desc h2,
body.buyit-single-product .woocommerce-Tabs-panel--description .buyit-desc h3 {
    margin: 0 0 .5rem;
    color: var(--buyit-sp-text-strong);
    line-height: 1.24;
}

body.buyit-single-product .woocommerce-Tabs-panel--description .buyit-desc p {
    margin: 0;
    color: var(--buyit-sp-text);
    line-height: 1.6;
}

body.buyit-single-product .woocommerce-Tabs-panel--description .buyit-desc :is(ul, ol) {
    margin: .2rem 0 0;
    padding-left: 1.15rem;
    display: grid;
    gap: .45rem;
}

body.buyit-single-product .woocommerce-Tabs-panel--description .buyit-desc-card {
    padding: .9rem 1rem;
    border-radius: 14px;
    border: 1px solid var(--buyit-sp-sep);
    background: color-mix(in oklab, var(--buyit-sp-card) 90%, transparent 10%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22);
    display: grid;
    gap: .55rem;
}

body.buyit-single-product .woocommerce-Tabs-panel--description .buyit-desc-table-wrap {
    padding: .2rem 0;
}

body.buyit-single-product .woocommerce-Tabs-panel--description table.buyit-desc-table {
    width: 100%;
    margin: 0;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid var(--buyit-sp-sep);
    border-radius: 12px;
    overflow: hidden;
    background: color-mix(in oklab, var(--buyit-sp-card) 86%, transparent 14%);
}

body.buyit-single-product .woocommerce-Tabs-panel--description table.buyit-desc-table th,
body.buyit-single-product .woocommerce-Tabs-panel--description table.buyit-desc-table td {
    border-bottom: 1px solid var(--buyit-sp-sep);
    padding: .62rem .72rem;
    text-align: left;
    vertical-align: top;
}

body.buyit-single-product .woocommerce-Tabs-panel--description table.buyit-desc-table tr:last-child th,
body.buyit-single-product .woocommerce-Tabs-panel--description table.buyit-desc-table tr:last-child td {
    border-bottom: 0;
}

body.buyit-single-product .woocommerce-Tabs-panel--description table.buyit-desc-table th {
    width: 35%;
    color: var(--buyit-sp-text-strong);
    font-weight: 700;
}

body.buyit-single-product .related,
body.buyit-single-product .up-sells {
    padding: .95rem;
    align-self: start;
    height: auto;
    min-height: 0;
}

/* Normalize section heading spacing so "Podobne produkty" aligns with other tiles. */
body.buyit-single-product :is(.related, .up-sells) > :is(h2, h3) {
    margin: 0 0 .85rem !important;
    line-height: 1.12;
}

/* Final lock: remove inherited Woo top spacing above related/upsell headings. */
body.buyit-single-product :is(.related.products, .up-sells.upsells.products) {
    margin-top: 0 !important;
    padding-top: .82rem !important;
}

body.buyit-single-product :is(.related.products, .up-sells.upsells.products) > :first-child {
    margin-top: 0 !important;
}

body.buyit-single-product :is(.related.products, .up-sells.upsells.products) > ul.products {
    margin-top: 0 !important;
}

/* Single product: related/upsell cards use the same BuyIT tile structure as shop */
body.buyit-single-product :is(.related, .up-sells) ul.products {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .8rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

body.buyit-single-product :is(.related, .up-sells) li.product.buyit-product-row {
    float: none;
    width: auto;
    margin: 0 !important;
    padding: .72rem;
    border-radius: 16px;
    border: 1px solid var(--buyit-sp-sep);
    background: linear-gradient(var(--buyit-sp-card), var(--buyit-sp-card));
    box-shadow: 0 8px 22px rgba(0, 0, 0, .14);
    display: flex;
    flex-direction: column;
    gap: .55rem;
    min-height: 100%;
}

body.buyit-single-product :is(.related, .up-sells) li.product.buyit-product-row .buyit-product-media {
    width: 100%;
}

body.buyit-single-product :is(.related, .up-sells) li.product.buyit-product-row .buyit-product-thumb {
    display: block;
    width: 100%;
    text-decoration: none;
}

body.buyit-single-product :is(.related, .up-sells) li.product.buyit-product-row img {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1 / 1;
    object-fit: contain !important;
    object-position: center center !important;
    margin: 0 !important;
    border-radius: 12px;
}

body.buyit-single-product :is(.related, .up-sells) li.product.buyit-product-row .buyit-product-main {
    display: grid;
    gap: .32rem;
    min-width: 0;
}

body.buyit-single-product :is(.related, .up-sells) li.product.buyit-product-row .buyit-product-cats {
    font-size: .75rem;
    opacity: .82;
}

body.buyit-single-product :is(.related, .up-sells) li.product.buyit-product-row h2.woocommerce-loop-product__title {
    margin: 0 !important;
    font-size: clamp(.95rem, 1.15vw, 1.08rem);
    line-height: 1.35;
    min-height: calc(1.35em * 2);
}

body.buyit-single-product :is(.related, .up-sells) li.product.buyit-product-row .buyit-product-title a {
    color: inherit !important;
    text-decoration: none;
}

body.buyit-single-product :is(.related, .up-sells) li.product.buyit-product-row .buyit-product-rating {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-size: .9rem;
}

body.buyit-single-product :is(.related, .up-sells) li.product.buyit-product-row ul.buyit-product-specs {
    display: none;
}

body.buyit-single-product :is(.related, .up-sells) li.product.buyit-product-row .buyit-product-main .price {
    display: none !important;
}

body.buyit-single-product :is(.related, .up-sells) li.product.buyit-product-row .buyit-product-buybox {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: .5rem;
}

body.buyit-single-product :is(.related, .up-sells) li.product.buyit-product-row .buyit-product-buybox__price {
    font-size: clamp(1.04rem, 1.35vw, 1.35rem);
    font-weight: 800;
    line-height: 1.1;
}

body.buyit-single-product :is(.related, .up-sells) li.product.buyit-product-row .buyit-product-buybox__price .price {
    display: inline !important;
}

body.buyit-single-product :is(.related, .up-sells) li.product.buyit-product-row .buyit-product-buybox .button {
    width: 100%;
    text-align: center;
}

body.buyit-single-product :is(.related, .up-sells) li.product.buyit-product-row .added_to_cart {
    display: none !important;
}

/* Global button radius lock (matches single product add-to-cart) */
:where(
    button:not(.buyit-switch),
    input[type="submit"],
    input[type="button"],
    input[type="reset"],
    .ast-button,
    .wp-element-button,
    .wp-block-button__link,
    .woocommerce a.button,
    .woocommerce button.button,
    .woocommerce input.button,
    .woocommerce #respond input#submit,
    .woocommerce .checkout-button,
    .wc-block-components-button:not(.buyit-switch),
    .ast-header-woo-cart .widget_shopping_cart .buttons a,
    .ast-site-header-cart .widget_shopping_cart .buttons a,
    .ast-woocommerce-mini-cart-wrapper .widget_shopping_cart .buttons a
) {
    border-radius: 13px !important;
}

/* Notices / alerts / info boxes */
:where(
    .woocommerce-message,
    .woocommerce-info,
    .woocommerce-error,
    .woocommerce-notices-wrapper > .woocommerce-message,
    .woocommerce-notices-wrapper > .woocommerce-info,
    .woocommerce-notices-wrapper > .woocommerce-error,
    .woocommerce-NoticeGroup,
    .woocommerce form .form-row.woocommerce-invalid .select2-container,
    .woocommerce-store-notice,
    .wc-block-components-notice-banner,
    .wc-block-components-notice-banner.is-info,
    .wc-block-components-notice-banner.is-warning,
    .wc-block-components-notice-banner.is-error
) {
    border-radius: 16px !important;
    overflow: hidden;
}

.woocommerce-notices-wrapper :where(.woocommerce-message, .woocommerce-info, .woocommerce-error) .button {
    border-radius: 13px !important;
}

/* 404 page search form fix */
body.error404 .error-404,
body.error404 .page-content {
    border-radius: 18px;
}

body.error404 :where(.error-404, .page-content) .search-form {
    display: flex;
    align-items: center;
    gap: .55rem;
    max-width: 640px;
    margin: 0 auto;
}

body.error404 :where(.error-404, .page-content) .search-form label {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0 !important;
}

body.error404 :where(.error-404, .page-content) .search-form .search-field {
    display: block;
    width: 100% !important;
    min-width: 0;
    border-radius: 13px !important;
}

body.error404 :where(.error-404, .page-content) .search-form .search-submit {
    position: static !important;
    inset: auto !important;
    right: auto !important;
    top: auto !important;
    width: auto !important;
    min-width: 140px;
    min-height: 46px;
    padding: .72rem 1rem !important;
    border-radius: 13px !important;
    line-height: 1.1;
    flex: 0 0 auto;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

@media (max-width: 1320px) {
    body.buyit-single-product .site-main div.product {
        grid-template-columns: minmax(0, 1fr) minmax(340px, .96fr);
    }

    body.buyit-single-product .woocommerce-product-gallery__wrapper {
        grid-template-columns: minmax(0, .86fr) 126px;
    }

}

@media (max-width: 1024px) {
    body.buyit-single-product .site-main div.product {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        padding: .82rem;
        gap: .55rem;
    }

    body.buyit-single-product .site-main div.product > .woocommerce-breadcrumb {
        grid-column: 1;
        grid-row: 1;
    }

    body.buyit-single-product .site-main div.product > :is(.woocommerce-product-gallery, .images) {
        grid-column: 1;
        grid-row: 2;
        margin-bottom: 0 !important;
    }

    body.buyit-single-product .woocommerce-product-gallery__wrapper {
        grid-template-columns: 1fr;
    }

    body.buyit-single-product .buyit-sp-side-tiles,
    body.buyit-single-product .buyit-sp-bottom-tile {
        display: none;
    }

    body.buyit-single-product .site-main div.product > :is(.summary, div.summary) {
        grid-column: 1;
        grid-row: 3;
        height: auto;
        min-height: 0;
        margin-top: 0 !important;
        gap: .55rem;
    }

    /* Mobile order: image -> CTA card -> facts card -> short description -> paytrust -> feature tiles */
    body.buyit-single-product .buyit-sp-left-facts--gallery {
        display: none !important;
    }

    body.buyit-single-product .site-main div.product > :is(.summary, div.summary) > .buyit-sp-primary-card {
        order: 10 !important;
    }

    body.buyit-single-product .site-main div.product > :is(.summary, div.summary) > .buyit-sp-left-facts--mobile {
        display: block !important;
        order: 20 !important;
    }

    body.buyit-single-product .site-main div.product > :is(.summary, div.summary) > .buyit-sp-mobile-tiles {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: .55rem;
        order: 50 !important;
    }

    body.buyit-single-product .site-main div.product > :is(.summary, div.summary) > .buyit-sp-mobile-tiles .buyit-sp-mobile-feature-tile {
        min-height: 0;
    }

    body.buyit-single-product .site-main div.product > :is(.summary, div.summary) > .buyit-sp-mobile-tiles .buyit-sp-feature-tile {
        min-height: 148px;
        padding: .2rem .36rem;
    }

    body.buyit-single-product .site-main div.product > :is(.summary, div.summary) > .buyit-sp-mobile-tiles .buyit-sp-feature-tile__icon {
        width: 30px;
        height: 30px;
    }

    body.buyit-single-product .site-main div.product > :is(.summary, div.summary) > .buyit-sp-mobile-tiles .buyit-sp-feature-tile__icon svg {
        width: 18px;
        height: 18px;
    }

    body.buyit-single-product .site-main div.product > :is(.summary, div.summary) > .buyit-sp-mobile-tiles .buyit-sp-feature-tile__title {
        font-size: clamp(.75rem, 2.8vw, .9rem);
    }

    body.buyit-single-product .site-main div.product > :is(.summary, div.summary) > .buyit-sp-mobile-tiles .buyit-sp-feature-tile__text {
        font-size: clamp(.66rem, 2.4vw, .8rem);
    }

    body.buyit-single-product .site-main div.product > :is(.summary, div.summary) > .buyit-sp-mobile-tiles .buyit-sp-feature-tile__hint {
        font-size: clamp(.6rem, 2.15vw, .7rem);
    }

    body.buyit-single-product .site-main div.product > :is(.summary, div.summary) > .buyit-sp-shortdesc-card {
        order: 30 !important;
        flex: 0 0 auto !important;
        min-height: auto !important;
        height: auto !important;
        align-self: auto !important;
        display: block !important;
        overflow: visible !important;
    }

    body.buyit-single-product .site-main div.product > :is(.summary, div.summary) > .winkey-paytrust-box--product {
        order: 40 !important;
    }

    body.buyit-single-product .site-main div.product > :is(.summary, div.summary) > .ppcp-messages {
        order: 45 !important;
    }

    body.buyit-single-product .site-main div.product > :is(.summary, div.summary) > .ppc-button-wrapper {
        order: 46 !important;
    }
}

@media (max-width: 640px) {
    body.buyit-single-product :is(.related, .up-sells) ul.products {
        grid-template-columns: 1fr;
    }

    body.buyit-single-product .site-main div.product {
        border-radius: 20px;
        padding: .7rem;
    }

    body.buyit-single-product .site-main div.product > :is(.woocommerce-product-gallery, .images),
    body.buyit-single-product .site-main div.product > :is(.summary, div.summary) > *,
    body.buyit-single-product .site-main div.product > .woocommerce-breadcrumb,
    body.buyit-single-product .buyit-sp-left-facts {
        border-radius: 14px;
    }

    body.buyit-single-product .buyit-sp-primary-card form.cart {
        grid-template-columns: 72px minmax(0, 1fr);
        gap: .55rem;
    }

    body.buyit-single-product .buyit-sp-primary-card form.cart .quantity {
        grid-column: 1;
        width: 72px;
        min-width: 72px;
    }

    body.buyit-single-product .site-main div.product .winkey-paytrust-box--product .winkey-paytrust__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    body.buyit-single-product .site-main div.product > :is(.summary, div.summary) > .buyit-sp-mobile-tiles .buyit-sp-feature-tile {
        min-height: 138px;
    }
}

/* Single product: hard desktop layout lock. */
@media (min-width: 1025px) {
    body.buyit-single-product .site-main div.product > :is(.summary, div.summary) {
        display: grid;
        grid-template-rows: auto minmax(0, 1fr) auto;
        row-gap: var(--buyit-sp-gap);
        align-content: stretch;
        align-self: stretch !important;
        min-height: 0;
        height: 100%;
    }

    body.buyit-single-product .site-main div.product > :is(.woocommerce-product-gallery, .images) {
        align-self: stretch;
        height: 100%;
    }

    body.buyit-single-product .site-main div.product > :is(.woocommerce-product-gallery, .images) .woocommerce-product-gallery__wrapper {
        height: 100%;
        grid-template-rows: auto minmax(0, 1fr);
        align-content: stretch;
    }

    body.buyit-single-product .buyit-sp-left-facts--gallery,
    body.buyit-single-product .buyit-sp-left-facts {
        grid-column: 1;
        grid-row: 2;
        align-self: stretch;
        min-height: 0;
        height: 100%;
    }

    body.buyit-single-product .buyit-sp-bottom-tile {
        grid-column: 2;
        grid-row: 2;
        align-self: stretch;
        min-height: 0;
        height: 100%;
    }

    body.buyit-single-product .site-main div.product > :is(.summary, div.summary) > .buyit-sp-primary-card {
        grid-row: 1;
        order: 0 !important;
        align-self: start;
    }

    body.buyit-single-product .site-main div.product > :is(.summary, div.summary) > .buyit-sp-shortdesc-card {
        grid-row: 2;
        order: 0 !important;
        align-self: stretch;
        min-height: 0;
        height: auto;
    }

    body.buyit-single-product .site-main div.product > :is(.summary, div.summary) > .winkey-paytrust-box--product {
        grid-row: 3;
        order: 0 !important;
        align-self: end;
    }

    body.buyit-single-product .site-main div.product > :is(.summary, div.summary) > :is(
        .buyit-sp-brand-logo,
        .ppcp-messages,
        .ppc-button-wrapper,
        .woocommerce-paypal-payments-button-container,
        .woocommerce-paypal-payments-buttons,
        .paypal-buttons,
        .ppcp-hosted-fields,
        #ppcp-hosted-fields,
        #ppcp-recaptcha-v2-container,
        .ppc-button-wrapper:empty
    ) {
        display: none !important;
    }
}

@media (max-width: 1024px) {
    body.buyit-single-product .site-main div.product > :is(.summary, div.summary) {
        margin-top: 0 !important;
        padding-top: 0 !important;
        gap: .55rem !important;
    }

    body.buyit-single-product .site-main div.product > :is(.summary, div.summary) > .buyit-sp-primary-card,
    body.buyit-single-product .site-main div.product .buyit-sp-brand-logo {
        margin-top: 0 !important;
    }

    body.buyit-single-product .site-main div.product > :is(.summary, div.summary) > .buyit-sp-primary-card > :first-child {
        margin-top: 0 !important;
    }

    body.buyit-single-product .site-main div.product > :is(.summary, div.summary)::before,
    body.buyit-single-product .site-main div.product > :is(.summary, div.summary)::after {
        content: none !important;
        display: none !important;
    }
}

/* Cart page: normalize qty +/- and remove controls alignment */
.woocommerce-cart :is(table.shop_table, table.shop_table_responsive) td.product-quantity {
    white-space: nowrap;
}

.woocommerce-cart :is(table.shop_table, table.shop_table_responsive) td.product-quantity .quantity {
    display: inline-flex !important;
    align-items: center !important;
    gap: .36rem !important;
    margin: 0 !important;
    vertical-align: middle !important;
}

.woocommerce-cart :is(table.shop_table, table.shop_table_responsive) td.product-quantity .quantity :is(.minus, .plus, button.minus, button.plus, input.minus, input.plus) {
    width: 40px !important;
    min-width: 40px !important;
    height: 40px !important;
    padding: 0 !important;
    line-height: 1 !important;
    border-radius: 14px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.woocommerce-cart :is(table.shop_table, table.shop_table_responsive) td.product-quantity .quantity input.qty {
    width: 40px !important;
    min-width: 40px !important;
    height: 40px !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1 !important;
    text-align: center !important;
}

.woocommerce-cart :is(table.shop_table, table.shop_table_responsive) :is(td.product-quantity, td.product-remove) :is(a.remove, .remove, a.button.remove, button.remove, .buyit-cart-remove) {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 40px !important;
    height: 40px !important;
    margin: 0 0 0 .4rem !important;
    padding: 0 .9rem !important;
    border-radius: 14px !important;
    line-height: 1 !important;
    vertical-align: middle !important;
}

.woocommerce-cart :is(table.shop_table, table.shop_table_responsive) :is(td.product-quantity, td.product-remove) :is(a.remove, .remove, a.button.remove, button.remove, .buyit-cart-remove) :is(i, svg, span) {
    margin: 0 !important;
    line-height: 1 !important;
    vertical-align: middle !important;
}

.woocommerce-cart :is(table.shop_table, table.shop_table_responsive) :is(td.product-quantity, td.product-remove) :is(a.remove, .remove, a.button.remove, button.remove, .buyit-cart-remove)::before {
    line-height: 1 !important;
    margin: 0 !important;
}

.woocommerce-cart .wc-block-cart-items .wc-block-cart-item__quantity {
    display: flex !important;
    align-items: center !important;
    gap: .4rem !important;
    flex-wrap: nowrap !important;
}

.woocommerce-cart .wc-block-cart-items .wc-block-components-quantity-selector__button {
    width: 40px !important;
    min-width: 40px !important;
    height: 40px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
}

.woocommerce-cart .wc-block-cart-items .wc-block-cart-item__quantity .wc-block-cart-item__remove-link {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 40px !important;
    height: 40px !important;
    margin: 0 !important;
    padding: 0 .9rem !important;
    border-radius: 14px !important;
    line-height: 1 !important;
}

@media (max-width: 921px) {
    .woocommerce-cart table.shop_table_responsive tr.cart_item td.product-quantity,
    .woocommerce-cart table.shop_table_responsive tr.cart_item td.product-remove {
        display: inline-flex !important;
        align-items: center !important;
        width: auto !important;
        border-top: 0 !important;
        padding-top: .45rem !important;
        padding-bottom: .45rem !important;
        vertical-align: middle !important;
    }

    .woocommerce-cart table.shop_table_responsive tr.cart_item td.product-quantity::before,
    .woocommerce-cart table.shop_table_responsive tr.cart_item td.product-remove::before {
        display: none !important;
    }

    .woocommerce-cart table.shop_table_responsive tr.cart_item td.product-remove :is(a.remove, .remove, a.button.remove, button.remove, .buyit-cart-remove) {
        margin-left: 0 !important;
    }
}

/* Cart controls final lock (handles both icon and text remove buttons) */
.woocommerce-cart :is(table.shop_table, table.shop_table_responsive) td.product-quantity {
    display: flex !important;
    align-items: center !important;
    gap: .42rem !important;
    flex-wrap: nowrap !important;
}

.woocommerce-cart :is(table.shop_table, table.shop_table_responsive) td.product-quantity .quantity {
    display: inline-flex !important;
    align-items: center !important;
    gap: .36rem !important;
    flex-wrap: nowrap !important;
}

.woocommerce-cart :is(table.shop_table, table.shop_table_responsive) td.product-quantity .quantity > :not(input.qty):not(.qty):not(label):not(.screen-reader-text) {
    width: 40px !important;
    min-width: 40px !important;
    height: 40px !important;
    margin: 0 !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 14px !important;
    border: 1px solid var(--buyit-ctrl-border) !important;
    background: var(--buyit-ctrl-bg) !important;
    color: var(--buyit-ctrl-fg) !important;
    box-shadow: none !important;
    line-height: 1 !important;
    font-size: 1.05rem !important;
}

.woocommerce-cart :is(table.shop_table, table.shop_table_responsive) td.product-quantity .quantity input.qty {
    border: 1px solid var(--buyit-ctrl-border) !important;
    background: var(--buyit-ctrl-bg) !important;
    color: var(--buyit-ctrl-fg) !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
}

.woocommerce-cart :is(table.shop_table, table.shop_table_responsive) :is(td.product-quantity > :is(a.remove, .remove, a.button.remove, button.remove, .buyit-cart-remove), td.product-remove :is(a.remove, .remove, a.button.remove, button.remove, .buyit-cart-remove)) {
    margin: 0 !important;
    min-width: 40px !important;
    height: 40px !important;
    padding: 0 .78rem !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 14px !important;
    border: 1px solid var(--buyit-ctrl-border-strong) !important;
    background: var(--buyit-ctrl-bg) !important;
    color: var(--buyit-ctrl-fg) !important;
    font-size: .95rem !important;
    line-height: 1 !important;
    box-shadow: none !important;
    vertical-align: middle !important;
}

.woocommerce-cart :is(table.shop_table, table.shop_table_responsive) :is(td.product-quantity > :is(a.remove, .remove, a.button.remove, button.remove, .buyit-cart-remove), td.product-remove :is(a.remove, .remove, a.button.remove, button.remove, .buyit-cart-remove)) :is(i, svg, span) {
    width: 14px;
    height: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 !important;
    line-height: 1 !important;
}

/* Cart controls hard reset: remove plugin/theme absolute/float collisions */
.woocommerce-cart :is(table.shop_table, table.shop_table_responsive) :is(td.product-quantity, td.product-remove) :is(.quantity, a.remove, .remove, .plus, .minus, button.plus, button.minus, input.plus, input.minus, input.qty, .qty) {
    position: static !important;
    inset: auto !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    float: none !important;
    clear: none !important;
    transform: none !important;
}

.woocommerce-cart :is(table.shop_table, table.shop_table_responsive) :is(td.product-quantity, td.product-remove) :is(a.remove, .remove, a.button.remove, button.remove, .buyit-cart-remove)::before {
    position: static !important;
    inset: auto !important;
    transform: none !important;
    margin: 0 !important;
    line-height: 1 !important;
}

.woocommerce-cart :is(table.shop_table, table.shop_table_responsive) td.product-quantity .quantity :is(.plus, .minus, button.plus, button.minus, input.plus, input.minus) {
    font-size: 1.05rem !important;
    font-weight: 500 !important;
}

@media (max-width: 921px) {
    .woocommerce-cart table.shop_table_responsive tr.cart_item td.product-quantity,
    .woocommerce-cart table.shop_table_responsive tr.cart_item td.product-remove {
        clear: none !important;
        float: none !important;
        white-space: nowrap !important;
    }

    .woocommerce-cart table.shop_table_responsive tr.cart_item td.product-remove {
        margin-left: .42rem !important;
        padding-left: 0 !important;
    }
}

/* Cart item visual tuning */
.woocommerce-cart :is(table.shop_table, table.shop_table_responsive) td.product-thumbnail {
    width: 176px;
    min-width: 176px;
}

.woocommerce-cart :is(table.shop_table, table.shop_table_responsive) td.product-thumbnail img {
    width: 152px !important;
    max-width: 152px !important;
    height: auto !important;
    border-radius: 14px;
    object-fit: cover;
}

.woocommerce-cart :is(table.shop_table, table.shop_table_responsive) td.product-name > a {
    display: block;
    margin: 0 0 .44rem 0;
    font-size: clamp(1.2rem, 2vw, 1.52rem) !important;
    font-weight: 800 !important;
    line-height: 1.24 !important;
    color: inherit !important;
}

.woocommerce-cart :is(table.shop_table, table.shop_table_responsive) :is(td.product-price, td.product-subtotal, td.product-name) .amount {
    font-size: clamp(1.1rem, 1.55vw, 1.34rem) !important;
    font-weight: 800 !important;
    line-height: 1.15 !important;
}

.woocommerce-cart :is(table.shop_table, table.shop_table_responsive) td.product-name :is(
    p:not(.backorder_notification),
    .short-description,
    .product-short-description,
    .buyit-short-description,
    .woocommerce-product-details__short-description
) {
    display: none !important;
}

.woocommerce-cart :is(table.shop_table, table.shop_table_responsive) td.product-name :is(.backorder_notification, .stock) {
    display: block !important;
    margin: .28rem 0 0;
    font-size: .9rem;
    font-weight: 600;
}

/* Cart controls: remove button alignment and readability */
.woocommerce-cart :is(table.shop_table, table.shop_table_responsive) td.product-quantity {
    gap: .56rem !important;
}

.woocommerce-cart :is(table.shop_table, table.shop_table_responsive) td.product-quantity .quantity > *,
.woocommerce-cart :is(table.shop_table, table.shop_table_responsive) :is(
    td.product-quantity > :is(a.remove, .remove, a.button.remove, button.remove, .buyit-cart-remove),
    td.product-remove :is(a.remove, .remove, a.button.remove, button.remove, .buyit-cart-remove)
) {
    flex: 0 0 auto !important;
}

.woocommerce-cart :is(table.shop_table, table.shop_table_responsive) :is(
    td.product-quantity > :is(a.remove, .remove, a.button.remove, button.remove, .buyit-cart-remove),
    td.product-remove :is(a.remove, .remove, a.button.remove, button.remove, .buyit-cart-remove)
) {
    min-width: 48px !important;
    width: 48px !important;
    height: 48px !important;
    padding: 0 !important;
    margin-left: .32rem !important;
    border-radius: 15px !important;
    font-size: 1.15rem !important;
}

.woocommerce-cart :is(table.shop_table, table.shop_table_responsive) :is(
    td.product-quantity > :is(a.remove, .remove, a.button.remove, button.remove, .buyit-cart-remove),
    td.product-remove :is(a.remove, .remove, a.button.remove, button.remove, .buyit-cart-remove)
) :is(i, svg, span) {
    width: 20px !important;
    height: 20px !important;
}

.woocommerce-cart :is(table.shop_table, table.shop_table_responsive) :is(
    td.product-quantity > :is(a.remove, .remove, a.button.remove, button.remove, .buyit-cart-remove),
    td.product-remove :is(a.remove, .remove, a.button.remove, button.remove, .buyit-cart-remove)
)::before {
    font-size: 1rem !important;
}

@media (max-width: 921px) {
    .woocommerce-cart table.shop_table_responsive tr.cart_item td.product-thumbnail {
        width: 138px;
        min-width: 138px;
    }

    .woocommerce-cart table.shop_table_responsive tr.cart_item td.product-thumbnail img {
        width: 126px !important;
        max-width: 126px !important;
    }
}

/* Cart blocks (Astra/Woo Blocks) final lock */
.wp-block-woocommerce-cart .wc-block-cart-items .wc-block-cart-item__image {
    width: 140px !important;
    min-width: 140px !important;
}

.wp-block-woocommerce-cart .wc-block-cart-items .wc-block-cart-item__image img {
    width: 124px !important;
    max-width: 124px !important;
    height: auto !important;
    border-radius: 14px !important;
    object-fit: cover !important;
}

.wp-block-woocommerce-cart .wc-block-cart-item__product .wc-block-components-product-name {
    display: block;
    margin: 0 0 .42rem 0 !important;
    font-size: clamp(1.2rem, 1.8vw, 1.5rem) !important;
    font-weight: 800 !important;
    line-height: 1.24 !important;
    color: inherit !important;
}

.wp-block-woocommerce-cart .wc-block-cart-item__product :is(
    .wc-block-components-product-price,
    .wc-block-components-product-price__value,
    .wc-block-formatted-money-amount,
    .amount
) {
    font-size: clamp(1.08rem, 1.45vw, 1.3rem) !important;
    font-weight: 800 !important;
    line-height: 1.14 !important;
}

.wp-block-woocommerce-cart .wc-block-cart-item__product :is(
    .wc-block-components-product-details,
    .wc-block-components-product-details__description,
    .wc-block-components-product-metadata,
    .wc-block-cart-item__description
) {
    display: none !important;
}

.wp-block-woocommerce-cart .wc-block-cart-item__quantity {
    display: grid !important;
    grid-template-columns: auto auto !important;
    align-items: center !important;
    gap: .5rem !important;
    justify-content: start !important;
}

.wp-block-woocommerce-cart .wc-block-cart-item__quantity :is(
    .wc-block-components-quantity-selector,
    .wc-block-components-quantity-selector__button,
    .wc-block-components-quantity-selector__input,
    .wc-block-cart-item__remove-link
) {
    position: static !important;
    inset: auto !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    float: none !important;
    transform: none !important;
}

.wp-block-woocommerce-cart .wc-block-cart-item__quantity .wc-block-components-quantity-selector {
    margin: 0 !important;
    display: grid !important;
    grid-template-columns: 48px 48px 48px !important;
    align-items: center !important;
    gap: .36rem !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    overflow: visible !important;
}

.wp-block-woocommerce-cart .wc-block-cart-item__quantity .wc-block-components-quantity-selector__button,
.wp-block-woocommerce-cart .wc-block-cart-item__quantity .wc-block-components-quantity-selector__input {
    width: 48px !important;
    min-width: 48px !important;
    height: 48px !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 14px !important;
    line-height: 1 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.wp-block-woocommerce-cart .wc-block-cart-item__quantity .wc-block-components-quantity-selector__button--plus {
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.wp-block-woocommerce-cart .wc-block-cart-item__quantity .wc-block-components-quantity-selector__input {
    font-size: 1rem !important;
    font-weight: 700 !important;
    text-align: center !important;
}

.wp-block-woocommerce-cart .wc-block-cart-item__quantity .wc-block-cart-item__remove-link {
    min-width: 48px !important;
    width: 48px !important;
    height: 48px !important;
    margin: 0 0 0 .16rem !important;
    padding: 0 !important;
    border-radius: 14px !important;
    border: 1px solid var(--buyit-ctrl-border-strong) !important;
    background: var(--buyit-ctrl-bg) !important;
    color: var(--buyit-ctrl-fg) !important;
    line-height: 1 !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: none !important;
    position: relative !important;
    z-index: 1 !important;
}

.wp-block-woocommerce-cart .wc-block-cart-item__quantity .wc-block-cart-item__remove-link :is(svg, i, .ast-icon) {
    width: 18px !important;
    height: 18px !important;
    font-size: 18px !important;
    line-height: 1 !important;
}

@media (max-width: 921px) {
    .wp-block-woocommerce-cart .wc-block-cart-items .wc-block-cart-item__image {
        width: 118px !important;
        min-width: 118px !important;
    }

    .wp-block-woocommerce-cart .wc-block-cart-items .wc-block-cart-item__image img {
        width: 104px !important;
        max-width: 104px !important;
    }
}

@media (max-width: 640px) {
    .wp-block-woocommerce-cart .wc-block-cart-items .wc-block-cart-items__row {
        display: grid !important;
        grid-template-columns: 86px minmax(0, 1fr) !important;
        column-gap: .62rem !important;
        align-items: start !important;
    }

    .wp-block-woocommerce-cart .wc-block-cart-items .wc-block-cart-item__image {
        grid-column: 1 !important;
        width: 86px !important;
        min-width: 86px !important;
        margin: 0 !important;
        align-self: start !important;
        position: static !important;
    }

    .wp-block-woocommerce-cart .wc-block-cart-items .wc-block-cart-item__image img {
        width: 86px !important;
        max-width: 86px !important;
        border-radius: 10px !important;
        display: block !important;
    }

    .wp-block-woocommerce-cart .wc-block-cart-item__product {
        grid-column: 2 !important;
        min-width: 0 !important;
        position: static !important;
    }

    .wp-block-woocommerce-cart .wc-block-cart-item__product .wc-block-components-product-name {
        font-size: clamp(1rem, 4.7vw, 1.16rem) !important;
        line-height: 1.2 !important;
        margin: 0 0 .28rem 0 !important;
    }

    .wp-block-woocommerce-cart .wc-block-cart-item__product :is(
        .wc-block-components-product-price,
        .wc-block-components-product-price__value,
        .wc-block-formatted-money-amount,
        .amount
    ) {
        font-size: clamp(.96rem, 4.1vw, 1.08rem) !important;
        line-height: 1.12 !important;
    }

    .wp-block-woocommerce-cart .wc-block-cart-item__quantity {
        margin-top: .34rem !important;
        gap: .34rem !important;
        grid-template-columns: auto auto !important;
    }

    .wp-block-woocommerce-cart .wc-block-cart-item__quantity .wc-block-components-quantity-selector {
        grid-template-columns: 36px 42px 36px !important;
        gap: .22rem !important;
    }

    .wp-block-woocommerce-cart .wc-block-cart-item__quantity .wc-block-components-quantity-selector__button,
    .wp-block-woocommerce-cart .wc-block-cart-item__quantity .wc-block-components-quantity-selector__input {
        width: 36px !important;
        min-width: 36px !important;
        height: 36px !important;
        border-radius: 11px !important;
        font-size: .95rem !important;
    }

    .wp-block-woocommerce-cart .wc-block-cart-item__quantity .wc-block-components-quantity-selector__input {
        width: 42px !important;
        min-width: 42px !important;
        font-size: .94rem !important;
    }

    .wp-block-woocommerce-cart .wc-block-cart-item__quantity .wc-block-cart-item__remove-link {
        width: 38px !important;
        min-width: 38px !important;
        height: 38px !important;
        border-radius: 11px !important;
        margin-left: 0 !important;
    }

    .wp-block-woocommerce-cart .wc-block-cart-item__quantity .wc-block-cart-item__remove-link :is(svg, i, .ast-icon) {
        width: 15px !important;
        height: 15px !important;
        font-size: 15px !important;
    }
}

/* Global focus ring off (remove dotted browser outline after click). */
:where(
    a,
    button,
    input,
    textarea,
    select,
    summary,
    [role="button"],
    [tabindex]
):focus,
:where(
    a,
    button,
    input,
    textarea,
    select,
    summary,
    [role="button"],
    [tabindex]
):focus-visible {
    outline: none !important;
}

/* My Account/Login: password preview control = icon only (no frame/background). */
.woocommerce form .form-row .password-input {
    position: relative;
    display: block;
    width: 100%;
}

.woocommerce form .form-row .password-input .input-text {
    padding-right: 2rem !important;
}

.woocommerce form .form-row .password-input .show-password-input,
.woocommerce form .form-row .password-input button.show-password-input,
.woocommerce form .form-row .password-input .show-password-input.button {
    all: unset !important;
    position: absolute !important;
    top: 50% !important;
    right: .7rem !important;
    transform: translateY(-50%) !important;
    width: 18px !important;
    height: 18px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: var(--buyit-ctrl-fg) !important;
    line-height: 1 !important;
    cursor: pointer;
    z-index: 3;
}

.woocommerce form .form-row .password-input .show-password-input::before,
.woocommerce form .form-row .password-input .show-password-input::after {
    background: transparent !important;
    box-shadow: none !important;
}

.woocommerce form .form-row .password-input .show-password-input::after {
    margin: 0 !important;
    line-height: 1 !important;
    font-size: 18px !important;
}

.woocommerce form .form-row .password-input .show-password-input:hover,
.woocommerce form .form-row .password-input .show-password-input:focus,
.woocommerce form .form-row .password-input .show-password-input:focus-visible,
.woocommerce form .form-row .password-input .show-password-input:active {
    background: transparent !important;
    box-shadow: none !important;
    outline: none !important;
}

/* Woo Blocks cart mobile: cross-site final alignment lock (WinKey/WinKeyPro/BuyIT). */
@media (max-width: 921px) {
    .woocommerce-cart :is(.wp-block-woocommerce-cart, .wc-block-cart) {
        overflow-x: clip;
    }

    .woocommerce-cart :is(
        .wp-block-woocommerce-cart .wc-block-components-sidebar-layout,
        .wp-block-woocommerce-cart .wc-block-components-main,
        .wp-block-woocommerce-cart .wc-block-components-sidebar,
        .wp-block-woocommerce-cart .wc-block-cart-items,
        .wp-block-woocommerce-cart .wc-block-components-totals-wrapper,
        .wp-block-woocommerce-cart .wc-block-cart__totals-title,
        .wp-block-woocommerce-cart .wp-block-woocommerce-cart-order-summary-heading-block,
        .wp-block-woocommerce-cart .wp-block-woocommerce-cart-order-summary-coupon-form-block,
        .wp-block-woocommerce-cart .wp-block-woocommerce-cart-order-summary-totals-block,
        .wp-block-woocommerce-cart .wc-block-cart__submit-container
    ) {
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        max-width: 100% !important;
        box-sizing: border-box;
    }

    .woocommerce-cart .wp-block-woocommerce-cart .wc-block-cart-items__row {
        padding-left: .1rem !important;
        padding-right: .1rem !important;
    }

    .woocommerce-cart .wp-block-woocommerce-cart .wc-block-cart-item__quantity .wc-block-cart-item__remove-link:not(:has(svg, i, .ast-icon)) {
        font-size: 0 !important;
        letter-spacing: 0 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
    }

    .woocommerce-cart .wp-block-woocommerce-cart .wc-block-cart-item__quantity .wc-block-cart-item__remove-link:not(:has(svg, i, .ast-icon))::before {
        content: "\00d7";
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 100%;
        font-size: 1.28rem !important;
        font-weight: 500;
        line-height: 1 !important;
    }
}

/* Woo Blocks cart mobile: compatibility layer for site-specific block markup differences. */
@media (max-width: 921px) {
    .woocommerce-cart .wp-block-woocommerce-cart :is(.alignwide, .alignfull) {
        margin-left: 0 !important;
        margin-right: 0 !important;
        max-width: 100% !important;
        width: 100% !important;
    }

    .woocommerce-cart .wp-block-woocommerce-cart :is(.wc-block-components-main, .wc-block-components-sidebar) {
        padding-left: .55rem !important;
        padding-right: .55rem !important;
    }

    .woocommerce-cart .wp-block-woocommerce-cart :is(
        .wc-block-components-totals-wrapper,
        .wc-block-cart__totals-title,
        .wp-block-woocommerce-cart-order-summary-heading-block,
        .wp-block-woocommerce-cart-order-summary-coupon-form-block,
        .wp-block-woocommerce-cart-order-summary-totals-block,
        .wc-block-cart__submit-container
    ) {
        padding-left: .55rem !important;
        padding-right: .55rem !important;
    }

    .woocommerce-cart .wp-block-woocommerce-cart .wc-block-cart-item__quantity .wc-block-cart-item__remove-link {
        font-size: 0 !important;
        color: transparent !important;
        text-indent: 0 !important;
        position: relative !important;
    }

    .woocommerce-cart .wp-block-woocommerce-cart .wc-block-cart-item__quantity .wc-block-cart-item__remove-link :is(svg, i, .ast-icon, span) {
        display: none !important;
    }

    .woocommerce-cart .wp-block-woocommerce-cart .wc-block-cart-item__quantity .wc-block-cart-item__remove-link::before {
        content: "\00d7";
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 100%;
        font-size: 1.28rem !important;
        font-weight: 500;
        line-height: 1 !important;
        color: var(--buyit-ctrl-fg) !important;
    }
}

/* Blog listing: tile cards like homepage section */
:root[data-theme="light"] {
    --buyit-blog-tile-bg: rgba(246, 251, 255, .76);
    --buyit-blog-tile-border: rgba(69, 138, 231, .24);
    --buyit-blog-tile-media-bg: rgba(255, 255, 255, .58);
    --buyit-blog-tile-media-border: rgba(118, 162, 230, .22);
    --buyit-blog-tile-title: #122f5e;
    --buyit-blog-tile-text: #274576;
    --buyit-blog-tile-meta: #1d3e71;
}

:root[data-theme="dark"] {
    --buyit-blog-tile-bg: rgba(22, 28, 42, .62);
    --buyit-blog-tile-border: rgba(120, 169, 255, .3);
    --buyit-blog-tile-media-bg: rgba(29, 38, 56, .76);
    --buyit-blog-tile-media-border: rgba(146, 184, 255, .24);
    --buyit-blog-tile-title: #eaf2ff;
    --buyit-blog-tile-text: rgba(226, 236, 255, .9);
    --buyit-blog-tile-meta: rgba(194, 212, 244, .82);
}

body:is(.home.blog, .blog, .category, .tag, .author, .date):not(.single):not(.woocommerce):not(.post-type-archive-product):not(.tax-product_cat) .site-main {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
    gap: 1.05rem;
    align-items: stretch;
}

body:is(.home.blog, .blog, .category, .tag, .author, .date):not(.single):not(.woocommerce):not(.post-type-archive-product):not(.tax-product_cat) .site-main > :is(
    .page-header,
    header.page-header,
    .archive-description,
    .ast-archive-description,
    nav.navigation,
    nav.pagination,
    .navigation,
    .ast-pagination,
    .not-found
) {
    grid-column: 1 / -1;
}

body:is(.home.blog, .blog, .category, .tag, .author, .date):not(.single):not(.woocommerce):not(.post-type-archive-product):not(.tax-product_cat) .site-main > article.post {
    float: none !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    min-width: 0;
    border-radius: 24px;
    border: 1px solid var(--buyit-blog-tile-border);
    background: var(--buyit-blog-tile-bg);
    box-shadow: none !important;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: clamp(380px, 32vw, 520px);
}

body:is(.home.blog, .blog, .category, .tag, .author, .date):not(.single):not(.woocommerce):not(.post-type-archive-product):not(.tax-product_cat) .site-main > article.post :is(.post-thumb-img-content, .entry-media) {
    margin: 10px 12px 0 !important;
    border-radius: 16px;
    border: 1px solid var(--buyit-blog-tile-media-border);
    background: var(--buyit-blog-tile-media-bg);
    overflow: hidden;
}

body:is(.home.blog, .blog, .category, .tag, .author, .date):not(.single):not(.woocommerce):not(.post-type-archive-product):not(.tax-product_cat) .site-main > article.post .post-thumb {
    margin: 0 !important;
}

body:is(.home.blog, .blog, .category, .tag, .author, .date):not(.single):not(.woocommerce):not(.post-type-archive-product):not(.tax-product_cat) .site-main > article.post :is(.post-thumb-img-content a, .entry-media a) {
    display: block;
    aspect-ratio: 16 / 10;
}

body:is(.home.blog, .blog, .category, .tag, .author, .date):not(.single):not(.woocommerce):not(.post-type-archive-product):not(.tax-product_cat) .site-main > article.post :is(.post-thumb-img-content img, .entry-media img) {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    margin: 0 !important;
}

body:is(.home.blog, .blog, .category, .tag, .author, .date):not(.single):not(.woocommerce):not(.post-type-archive-product):not(.tax-product_cat) .site-main > article.post :is(.entry-header, .entry-content, .entry-summary, .entry-footer, .ast-read-more-container) {
    padding-left: 14px;
    padding-right: 14px;
    min-width: 0;
}

body:is(.home.blog, .blog, .category, .tag, .author, .date):not(.single):not(.woocommerce):not(.post-type-archive-product):not(.tax-product_cat) .site-main > article.post .cat-links {
    display: none !important;
}

body:is(.home.blog, .blog, .category, .tag, .author, .date):not(.single):not(.woocommerce):not(.post-type-archive-product):not(.tax-product_cat) .site-main > article.post .entry-header {
    margin: 0 !important;
    padding-top: 12px;
    display: grid;
    gap: .45rem;
}

body:is(.home.blog, .blog, .category, .tag, .author, .date):not(.single):not(.woocommerce):not(.post-type-archive-product):not(.tax-product_cat) .site-main > article.post .entry-title {
    margin: 0 !important;
    font-size: clamp(1.04rem, 1.08vw, 1.16rem);
    line-height: 1.28;
}

body:is(.home.blog, .blog, .category, .tag, .author, .date):not(.single):not(.woocommerce):not(.post-type-archive-product):not(.tax-product_cat) .site-main > article.post .entry-title a {
    color: var(--buyit-blog-tile-title) !important;
    text-decoration: none !important;
    font-weight: 800;
}

body:is(.home.blog, .blog, .category, .tag, .author, .date):not(.single):not(.woocommerce):not(.post-type-archive-product):not(.tax-product_cat) .site-main > article.post .entry-meta,
body:is(.home.blog, .blog, .category, .tag, .author, .date):not(.single):not(.woocommerce):not(.post-type-archive-product):not(.tax-product_cat) .site-main > article.post .entry-meta * {
    display: none !important;
}

body:is(.home.blog, .blog, .category, .tag, .author, .date):not(.single):not(.woocommerce):not(.post-type-archive-product):not(.tax-product_cat) .site-main > article.post :is(.entry-content, .entry-summary) {
    margin: 0 !important;
    padding-top: .45rem;
    padding-bottom: 14px;
    color: var(--buyit-blog-tile-text) !important;
}

body:is(.home.blog, .blog, .category, .tag, .author, .date):not(.single):not(.woocommerce):not(.post-type-archive-product):not(.tax-product_cat) .site-main > article.post :is(.entry-content p, .entry-summary p) {
    margin: 0 !important;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.45;
}

body:is(.home.blog, .blog, .category, .tag, .author, .date):not(.single):not(.woocommerce):not(.post-type-archive-product):not(.tax-product_cat) .site-main > article.post :is(.entry-footer, .ast-read-more-container) {
    margin-top: auto;
    padding-bottom: 14px;
}

body:is(.home.blog, .blog, .category, .tag, .author, .date):not(.single):not(.woocommerce):not(.post-type-archive-product):not(.tax-product_cat) .site-main > article.post :is(.read-more, .more-link) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

body:is(.home.blog, .blog, .category, .tag, .author, .date):not(.single):not(.woocommerce):not(.post-type-archive-product):not(.tax-product_cat) .site-main > article.post :is(.read-more a, a.more-link) {
    width: 100%;
    text-align: center;
    min-height: 50px;
    border-radius: 14px !important;
    border: 1px solid rgba(13, 80, 169, .18) !important;
    background: linear-gradient(135deg, rgba(146, 214, 255, .92), rgba(116, 167, 255, .92)) !important;
    color: #0b305f !important;
    font-weight: 900;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    padding: 0 14px !important;
    line-height: 1 !important;
}

:root[data-theme="dark"] body:is(.home.blog, .blog, .category, .tag, .author, .date):not(.single):not(.woocommerce):not(.post-type-archive-product):not(.tax-product_cat) .site-main > article.post :is(.read-more a, a.more-link) {
    color: #f3f7ff !important;
    border-color: rgba(146, 184, 255, .28) !important;
    background: linear-gradient(135deg, rgba(46, 93, 188, .78), rgba(75, 130, 230, .78)) !important;
}

@media (max-width: 1200px) {
    body:is(.home.blog, .blog, .category, .tag, .author, .date):not(.single):not(.woocommerce):not(.post-type-archive-product):not(.tax-product_cat) .site-main {
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    }
}

@media (max-width: 680px) {
    body:is(.home.blog, .blog, .category, .tag, .author, .date):not(.single):not(.woocommerce):not(.post-type-archive-product):not(.tax-product_cat) .site-main {
        grid-template-columns: 1fr;
        gap: .85rem;
    }

    body:is(.home.blog, .blog, .category, .tag, .author, .date):not(.single):not(.woocommerce):not(.post-type-archive-product):not(.tax-product_cat) .site-main > article.post {
        border-radius: 20px;
    }
}

/* Checkout: order review/payment as one rounded glass tile (classic checkout). */
:root[data-theme="light"] {
    --buyit-checkout-tile-bg: rgba(255, 255, 255, .42);
    --buyit-checkout-tile-border: rgba(15, 23, 42, .14);
}

:root[data-theme="dark"] {
    --buyit-checkout-tile-bg: rgba(22, 28, 42, .56);
    --buyit-checkout-tile-border: rgba(255, 255, 255, .18);
}

body.woocommerce-checkout :is(.woocommerce-checkout-review-order, #order_review) {
    border: 1px solid var(--buyit-checkout-tile-border) !important;
    border-radius: 24px !important;
    padding: .95rem 1.05rem 1.05rem !important;
    background: linear-gradient(var(--buyit-checkout-tile-bg), var(--buyit-checkout-tile-bg)) !important;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    box-shadow: 0 14px 34px rgba(0, 0, 0, .18) !important;
    overflow: hidden;
}

body.woocommerce-checkout #order_review_heading {
    margin: 0 0 .7rem !important;
    padding: 0 !important;
}

body.woocommerce-checkout :is(.woocommerce-checkout-review-order, #order_review) :is(
    table.shop_table,
    .woocommerce-checkout-review-order-table,
    #payment
) {
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

body.woocommerce-checkout :is(.woocommerce-checkout-review-order, #order_review) #payment {
    margin-top: .5rem;
    padding-top: .62rem !important;
    border-top: 1px solid var(--sep) !important;
}

body.woocommerce-checkout :is(.woocommerce-checkout-review-order, #order_review) #payment .place-order {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

@media (max-width: 921px) {
    body.woocommerce-checkout :is(.woocommerce-checkout-review-order, #order_review) {
        border-radius: 20px !important;
        padding: .82rem .88rem .9rem !important;
    }
}
