/*! Rozhika theme · woo.css — product grid & card, prices, ratings, notices, mini-cart, quantity. */

/* ---------------------------------------------------------------- grid */
:root{--rz-cols-m:2;--rz-cols-t:3;--rz-cols-d:4;--rz-card-ratio:1/1;--rz-grid-gap:clamp(.5rem,.3rem + 1vw,1.25rem)}
ul.products,.products.rz-grid{display:grid;grid-template-columns:repeat(var(--rz-cols-m),minmax(0,1fr));gap:var(--rz-grid-gap);margin:0;padding:0;list-style:none}
@media (min-width:640px){ul.products,.products.rz-grid{grid-template-columns:repeat(var(--rz-cols-t),minmax(0,1fr))}}
@media (min-width:1024px){ul.products,.products.rz-grid{grid-template-columns:repeat(var(--rz-cols-d),minmax(0,1fr))}}
ul.products::before,ul.products::after{display:none}

/* ---------------------------------------------------------------- card */
.rz-pc{position:relative;display:flex;min-width:0;margin:0;padding:0;list-style:none;contain:layout style}
.rz-pc__in{position:relative;display:flex;flex-direction:column;width:100%;background:var(--rz-surface);border:1px solid var(--rz-line);border-radius:var(--rz-r-lg);overflow:hidden;transition:box-shadow .22s var(--rz-ease),border-color .22s var(--rz-ease),transform .22s var(--rz-ease)}
@media (hover:hover){.rz-pc__in:hover{border-color:var(--rz-brand-100);box-shadow:var(--rz-sh-2);transform:translateY(-2px)}}
.rz-pc .woocommerce-LoopProduct-link{display:flex;flex-direction:column;flex:1;color:inherit;text-decoration:none;-webkit-tap-highlight-color:transparent}
.rz-pc__media{position:relative;aspect-ratio:var(--rz-card-ratio);background:var(--rz-surface-2);overflow:hidden;isolation:isolate}
.rz-pc__media img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:transform .5s var(--rz-ease)}
@media (hover:hover){.rz-pc__in:hover .rz-pc__media img{transform:scale(1.04)}}
.rz-pc__badges{position:absolute;top:var(--rz-s2);inset-inline-start:var(--rz-s2);z-index:2;display:flex;align-items:center;gap:.3rem}
.rz-pc__badge{display:inline-flex;align-items:center;gap:.2rem;height:1.45rem;padding:0 .5rem;border-radius:var(--rz-r-pill);font-size:var(--rz-fs-2xs);font-weight:800;line-height:1;color:#fff;box-shadow:0 3px 8px -5px rgba(var(--rzv-1b1530-c,27,21,48),.35)}
.rz-pc__badge svg{width:.8rem;height:.8rem;fill:currentColor;stroke:none}
.rz-pc__badge--sale{background:var(--rz-sale)}
/* R122: «رژیکاف» is a soft chip in the same berry; with a percent both share one pill, so a card has one solid spot */
.rz-pc__badge--hot{background:color-mix(in srgb,var(--rz-surface) 94%,transparent);color:var(--rz-sale-fg)}
.rz-pc__badges:has(.rz-pc__badge--sale):has(.rz-pc__badge--hot){gap:0;padding:2px;border-radius:var(--rz-r-pill);background:color-mix(in srgb,var(--rz-surface) 94%,transparent);box-shadow:0 3px 8px -5px rgba(var(--rzv-1b1530-c,27,21,48),.35)}
.rz-pc__badges:has(.rz-pc__badge--sale) .rz-pc__badge{height:calc(1.45rem - 4px);box-shadow:none}
.rz-pc__badges:has(.rz-pc__badge--sale) .rz-pc__badge--hot{background:none;padding-inline:.35rem .45rem}
.rz-pc__body{display:flex;flex-direction:column;gap:.3rem;flex:1;padding:var(--rz-s3) var(--rz-s3) var(--rz-s2)}
.rz-pc__brand{font-size:var(--rz-fs-2xs);font-weight:700;color:var(--rz-link);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:1.6}
html[data-rzk-theme=dark] .rz-pc__brand{color:var(--rzk-accent,var(--rzv-c4a1ff,#c4a1ff))}
.rz-pc .rz-pc__title{margin:0;font-size:var(--rz-fs-sm);font-weight:700;line-height:1.75;color:var(--rz-text);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;height:3.5em}
.rz-pc__rating{display:inline-flex;align-items:center;gap:.25rem;font-size:var(--rz-fs-2xs);color:var(--rz-text-3);line-height:1}
.rz-pc__rating svg{width:.85rem;height:.85rem;color:#f59e0b;stroke:none}
.rz-pc__rating b{color:var(--rz-text);font-weight:800}
.rz-pc .rz-pc__price{display:flex;flex-wrap:wrap;align-items:baseline;gap:0 .4rem;margin:auto 0 0;padding-top:.2rem;font-size:var(--rz-fs-md);line-height:1.6}
.rz-pc__from{font-size:var(--rz-fs-2xs);font-weight:600;color:var(--rz-text-3)}
.rz-pc__now .woocommerce-Price-amount{font-weight:800;color:var(--rz-price)}
.rz-pc__was{font-size:var(--rz-fs-2xs);color:var(--rz-text-3);flex-basis:100%;order:3;line-height:1.3}
.rz-pc__was .woocommerce-Price-amount{color:inherit;font-weight:500}
.rz-pc__was .woocommerce-Price-currencySymbol{display:none}
.rz-pc__na{font-size:var(--rz-fs-xs);color:var(--rz-text-3)}

/* loop add to cart */
.rz-pc .rz-pc__atc,.rz-pc a.button{margin:0 var(--rz-s3) var(--rz-s3);min-height:var(--rz-ctl-h-sm);padding:0 .6em;font-size:var(--rz-fs-xs);border-radius:var(--rz-r-sm);--b-bg:var(--rz-brand-50);--b-fg:var(--rz-brand-700);--b-sh:none;--b-bd:transparent}
.rz-pc .rz-pc__atc:hover,.rz-pc a.button:hover{--b-bg:var(--rz-brand);--b-fg:#fff}
html[data-rzk-theme=dark] .rz-pc .rz-pc__atc{--b-fg:var(--rzk-accent,var(--rzv-c4a1ff,#c4a1ff))}
html[data-rzk-theme=dark] .rz-pc .rz-pc__atc:hover{--b-fg:#fff}
.rz-pc .added_to_cart{display:block;margin:-.35rem var(--rz-s3) var(--rz-s3);font-size:var(--rz-fs-2xs);text-align:center;font-weight:700}
.rz-pc .rz-pc__atc.added{--b-bg:var(--rz-success-bg);--b-fg:var(--rz-success)}
.rz-pc .rz-pc__atc.added::before{content:"";width:1em;height:1em;background:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") center/contain no-repeat}

/* out of stock */
.rz-pc.outofstock .rz-pc__media img{filter:grayscale(.8);opacity:.65}
.rz-pc.outofstock .rz-pc__media::after{content:"ناموجود";position:absolute;bottom:var(--rz-s2);inset-inline-start:var(--rz-s2);z-index:2;padding:.25rem .6rem;border-radius:var(--rz-r-pill);background:rgba(var(--rzv-1b1530-c,27,21,48),.78);color:#fff;font-size:var(--rz-fs-2xs);font-weight:700}

/* sale flash (single product etc.) */
.onsale,.rz-onsale{position:absolute;top:var(--rz-s2);inset-inline-start:var(--rz-s2);z-index:2;display:inline-flex;align-items:center;min-height:1.6rem;padding:0 .55rem;border-radius:var(--rz-r-pill);background:var(--rz-sale);color:#fff;font-size:var(--rz-fs-2xs);font-weight:800;line-height:1}

/* price (generic) */
.price,.woocommerce-Price-amount{color:var(--rz-price);font-weight:800}
.price del{color:var(--rz-text-3);font-size:.8em;font-weight:500}
.price del .woocommerce-Price-amount{color:var(--rz-text-3);font-weight:500}
.price ins{text-decoration:none}
.woocommerce-Price-currencySymbol{font-size:max(.625rem,.72em);font-weight:600;color:var(--rz-text-3);margin-inline-start:.15em}

/* stars (single product, reviews) */
.star-rating{position:relative;display:inline-block;width:5.4em;height:1em;font-size:.85rem;line-height:1;overflow:hidden;vertical-align:middle;color:transparent}
.star-rating::before{content:"";position:absolute;inset:0;background:var(--rz-line-2);-webkit-mask:var(--rz-stars) 0 0/100% 100% no-repeat;mask:var(--rz-stars) 0 0/100% 100% no-repeat}
.star-rating span{position:absolute;top:0;inset-inline-start:0;height:1em;padding-top:1.5em;overflow:hidden}
.star-rating span::before{content:"";position:absolute;top:0;inset-inline-start:0;width:5.4em;height:1em;background:#f59e0b;-webkit-mask:var(--rz-stars) 0 0/5.4em 100% no-repeat;mask:var(--rz-stars) 0 0/5.4em 100% no-repeat}
:root{--rz-stars:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 108 20'%3E%3Cpath d='m10 1 2.6 5.6 6 .8-4.4 4.1 1.1 6L10 14.6 4.7 17.5l1.1-6L1.4 7.4l6-.8zm22 0 2.6 5.6 6 .8-4.4 4.1 1.1 6L32 14.6l-5.3 2.9 1.1-6-4.4-4.1 6-.8zm22 0 2.6 5.6 6 .8-4.4 4.1 1.1 6L54 14.6l-5.3 2.9 1.1-6-4.4-4.1 6-.8zm22 0 2.6 5.6 6 .8-4.4 4.1 1.1 6L76 14.6l-5.3 2.9 1.1-6-4.4-4.1 6-.8zm22 0 2.6 5.6 6 .8-4.4 4.1 1.1 6L98 14.6l-5.3 2.9 1.1-6-4.4-4.1 6-.8z'/%3E%3C/svg%3E")}

/* -------------------------------------------------------------- notices */
.woocommerce-notices-wrapper:empty{display:none}
.woocommerce-message,.woocommerce-info,.woocommerce-error,.woocommerce-notice,.wc-block-components-notice-banner{position:relative;display:flex;flex-wrap:wrap;align-items:center;gap:.5rem 1rem;margin:0 0 var(--rz-s4);padding:var(--rz-s4) var(--rz-s5);border:1px solid var(--rz-line);border-inline-start:4px solid var(--rz-info);border-radius:var(--rz-r);background:var(--rz-surface);color:var(--rz-text);font-size:var(--rz-fs-sm);line-height:1.8;list-style:none;box-shadow:var(--rz-sh-1)}
.woocommerce-message{border-inline-start-color:var(--rz-success);background:var(--rz-success-bg)}
.woocommerce-error{border-inline-start-color:var(--rz-danger);background:var(--rz-danger-bg)}
.woocommerce-error li{margin:0}
.woocommerce-message .button,.woocommerce-info .button{order:2;margin-inline-start:auto;min-height:var(--rz-ctl-h-sm);font-size:var(--rz-fs-xs)}

/* ------------------------------------------------------------- quantity */
.quantity{display:inline-flex;align-items:center;height:var(--rz-ctl-h);border:1px solid var(--rz-line-2);border-radius:var(--rz-r);background:var(--rz-surface);overflow:hidden}
.quantity .qty{width:3.2em;min-height:0;height:100%;padding:0;border:0;border-radius:0;background:none;text-align:center;font-weight:800;box-shadow:none;-moz-appearance:textfield}
.quantity .qty::-webkit-outer-spin-button,.quantity .qty::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
.rz-qty__btn{display:grid;place-items:center;width:2.4em;height:100%;border:0;border-radius:var(--rz-r-pill);background:none;color:var(--rz-text-2);cursor:pointer;transition:background-color var(--rz-dur),color var(--rz-dur)}
.rz-qty__btn:hover{background:var(--rz-brand-50);color:var(--rz-brand-700)}
.rz-qty__btn svg{width:1rem;height:1rem}
.quantity input[type=hidden]+.rz-qty__btn,.quantity .rz-qty__btn:has(+input[type=hidden]){display:none}

/* ------------------------------------------------------------- mini cart
   Markup: themes/rozhika/woocommerce/cart/mini-cart.php. The drawer body is one column:
   summary (count + free-shipping meter) · scrolling list · footer that never scrolls
   (saving, subtotal, packaging fee, buttons). Each line is a card-less row:
   [image] name / variation / unit price (regular struck through) / stepper · line total. */
.rz-mc{display:flex;flex-direction:column;flex:1 1 auto;min-height:0}
.rz-mc__top{flex:none;padding:var(--rz-s3) var(--rz-s5) 0}
.rz-mc__count{margin:0 0 var(--rz-s2);font-size:var(--rz-fs-xs);font-weight:700;color:var(--rz-text-3)}
.rz-mc__top .rz-ship-meter{margin-bottom:var(--rz-s2)}
.rz-mc__list{flex:1 1 auto;min-height:0;margin:0;padding:0 var(--rz-s5);list-style:none;overflow:auto;overscroll-behavior:contain}
.rz-mc__item{position:relative;display:grid;grid-template-columns:clamp(4rem,3.6rem + 1.6vw,4.75rem) minmax(0,1fr);gap:var(--rz-s3);padding-block:var(--rz-s4);border-bottom:1px solid var(--rz-line);transition:opacity .2s var(--rz-ease)}
.rz-mc__item:last-child{border-bottom:0}
.rz-mc__item.is-removing{opacity:.45}
.rz-mc__media{display:block;align-self:start;aspect-ratio:1;border-radius:var(--rz-r);overflow:hidden;background:var(--rz-surface-2);border:1px solid var(--rz-line)}
.rz-mc__media img{width:100%;height:100%;object-fit:cover;margin:0}
.rz-mc__body{display:flex;flex-direction:column;gap:.3rem;min-width:0;padding-inline-end:1.9rem}
.rz-mc__name{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:var(--rz-fs-sm);font-weight:700;line-height:1.7;color:var(--rz-text)}
a.rz-mc__name:hover{color:var(--rz-brand-700)}
.rz-mc__body dl.variation{display:flex;flex-wrap:wrap;gap:.25rem;margin:0}
.rz-mc__body dl.variation dt{display:none}
.rz-mc__body dl.variation dd{margin:0;padding:.05rem .5rem;border-radius:var(--rz-r-pill);background:var(--rz-surface-2);color:var(--rz-text-2);font-size:var(--rz-fs-2xs);font-weight:600}
.rz-mc__body dl.variation dd p{margin:0}
.rz-mc__unit{display:flex;flex-wrap:wrap;align-items:baseline;gap:0 .4rem;margin:0;font-size:var(--rz-fs-2xs);color:var(--rz-text-3)}
.rz-mc__unit>del{order:2;color:var(--rz-text-3);text-decoration-color:currentColor}
.rz-mc__unit del .woocommerce-Price-amount{font-weight:500}
.rz-mc__unit ins,.rz-mc__unit-now{text-decoration:none;font-weight:700;color:var(--rz-text-2)}
/* the charged price and the struck regular price side by side with clear air between them
   (flex items: no stray spaces inside <del> for its line to run over) */
.rz-mc__unit-now{display:inline-flex;flex-wrap:wrap;align-items:baseline;gap:0 .55rem}
.rz-mc__unit-now del{order:2;font-weight:500;color:var(--rz-text-3);text-decoration-color:currentColor}
.rz-mc__unit-now del .woocommerce-Price-amount{font-weight:500}
/* discount badge on the thumbnail («٪۲۰»), when the line costs less than the regular price */
.rz-mc__media{position:relative}
.rz-mc__off{position:absolute;top:.25rem;inset-inline-start:.25rem;padding:.05rem .4rem;border-radius:var(--rz-r-pill);background:var(--rz-sale);color:#fff;font-size:var(--rz-fs-2xs);font-weight:800;line-height:1.6;box-shadow:0 2px 6px -3px rgba(var(--rzv-1b1530-c,27,21,48),.35);pointer-events:none} /* R125: every percentage is a solid sale pill, white number */
.rz-mc__row{display:flex;align-items:center;justify-content:space-between;gap:.5rem;margin-top:.2rem}
.rz-mc__qty{display:inline-flex;align-items:center;height:var(--rz-ctl-h-sm);border:1px solid var(--rz-line-2);border-radius:var(--rz-r-pill);background:var(--rz-surface)}
.rz-mc__qbtn{display:grid;place-items:center;width:var(--rz-ctl-h-sm);height:100%;padding:0;border:0;border-radius:var(--rz-r-pill);background:none;color:var(--rz-brand-700);cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent;transition:background-color var(--rz-dur),transform .12s var(--rz-ease)}
.rz-mc__qbtn:hover{background:var(--rz-brand-50)}
.rz-mc__qbtn:active{transform:scale(.88)}
.rz-mc__qbtn:disabled{color:var(--rz-text-3);opacity:.5;cursor:not-allowed}
.rz-mc__qbtn[data-rz-mcq="-1"]:has(.rz-i-trash){color:var(--rz-text-3)} /* R122: grey at rest, red only when aimed at */
.rz-mc__qbtn[data-rz-mcq="-1"]:has(.rz-i-trash):hover{background:var(--rz-danger-bg);color:var(--rz-danger)}
.rz-mc__qbtn svg{width:1rem;height:1rem}
.rz-mc__qval{min-width:1.6rem;text-align:center;font-size:var(--rz-fs-sm);font-weight:800;color:var(--rz-text)}
.rz-mc__qty-fixed{font-size:var(--rz-fs-xs);color:var(--rz-text-3)}
.rz-mc__line{display:flex;flex-direction:column;align-items:flex-end;font-size:var(--rz-fs-sm);font-weight:800;color:var(--rz-price);white-space:nowrap;line-height:1.35}
.rz-mc__line del{font-size:var(--rz-fs-2xs);font-weight:500;color:var(--rz-text-3);text-decoration-color:currentColor}
.rz-mc__line ins{text-decoration:none}
.rz-mc__line .woocommerce-Price-currencySymbol,.rz-mc__unit .woocommerce-Price-currencySymbol{font-size:max(.625rem,.8em);font-weight:500;color:var(--rz-text-3)}
/* busy: the line's total dims and the overlay sheen sweeps the row while its quantity is saved (transform only) */
.rz-mc__item.is-busy{overflow:hidden}
/* r36: while the drawer waits for the server (.rz-mc.is-calc, theme.js mcPaint), its badges that
   depend on the figures (the line's «٪», the packaging fee «رایگان» / price) are skeleton pills
   too, and the meter and the footer get the same sweep as the busy line - transform only */
.rz-mc__item.is-busy .rz-mc__off,.rz-mc.is-calc .rz-mc__foot .rzk-pkg-badge,.cart_totals:has(>.blockUI.blockOverlay) .rzk-pkg-badge{background:var(--rz-surface-3);color:transparent;box-shadow:none}
.rz-mc.is-calc .rz-ship-meter__bar i{opacity:.35}
.rz-mc.is-calc :is(.rz-ship-meter,.rz-mc__foot){position:relative;overflow:hidden}
.rz-mc.is-calc :is(.rz-ship-meter,.rz-mc__foot)::after{content:"";position:absolute;inset:0;pointer-events:none;background-image:linear-gradient(100deg,transparent 25%,color-mix(in srgb,var(--rz-brand) 11%,transparent) 50%,transparent 75%);transform:none;background-size:50% 100%;background-repeat:no-repeat;background-position:300% 0;animation:rz-sheen 1.25s ease-in-out infinite}
.rz-mc.is-calc .rz-mc__foot .checkout{cursor:progress}
.rz-mc__item.is-busy::after{content:"";position:absolute;inset:0;pointer-events:none;background-image:linear-gradient(100deg,transparent 25%,color-mix(in srgb,var(--rz-brand) 11%,transparent) 50%,transparent 75%);transform:none;background-size:50% 100%;background-repeat:no-repeat;background-position:300% 0;animation:rz-sheen 1.25s ease-in-out infinite}
.rz-mc__remove{position:absolute;top:var(--rz-s4);inset-inline-end:0;display:grid;place-items:center;width:1.9rem;height:1.9rem;border-radius:var(--rz-r-sm);color:var(--rz-text-3)!important;font-size:1.1rem;line-height:1;text-decoration:none;transition:background-color var(--rz-dur),color var(--rz-dur),transform .12s var(--rz-ease)}
.rz-mc__remove svg{width:1rem;height:1rem}
.rz-mc__remove:hover{background:var(--rz-danger-bg);color:var(--rz-danger)!important}
.rz-mc__remove:active{transform:scale(.9)}
/* footer — always visible under the scrolling list */
.rz-mc__foot{flex:none;display:flex;flex-direction:column;gap:var(--rz-s2);padding:var(--rz-s4) var(--rz-s5) calc(var(--rz-s4) + max(env(safe-area-inset-bottom),var(--rz-tb-pad-end,0px)));border-top:1px solid var(--rz-line);background:var(--rz-surface);box-shadow:0 -10px 24px -18px rgba(var(--rzv-1b1530-c,27,21,48),.35)}
.rz-mc__saving{display:flex;align-items:center;gap:.45rem;margin:0;padding:.45rem .7rem;border-radius:var(--rz-r);background:var(--rz-save-bg);color:var(--rz-save-fg);font-size:var(--rz-fs-xs);font-weight:700}
.rz-mc__saving svg{width:1rem;height:1rem}
.rz-mc__saving strong{margin-inline-start:auto;font-weight:800}
.rz-mc__foot .woocommerce-mini-cart__total{display:flex;justify-content:space-between;align-items:center;margin:0;font-size:var(--rz-fs-md);font-weight:800;color:var(--rz-text)}
.rz-mc__foot .woocommerce-mini-cart__total strong{font-weight:700;color:var(--rz-text-2)}
.rz-mc__foot .rzk-pkg-mini{padding:0}
.rz-mc__foot .rzk-pkg-mini__row{display:flex;align-items:center;justify-content:space-between;gap:.75rem;margin:0;font-size:var(--rz-fs-xs);font-weight:600;color:var(--rz-text-2)}
.rz-mc__foot .rzk-pkg-mini__value .woocommerce-Price-amount{font-weight:800;color:var(--rz-text)}
.rz-mc__foot .rzk-pkg-mini .rzk-pkg-progress{margin-top:.35rem}
.rz-mc__foot .woocommerce-mini-cart__buttons{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:.5rem;margin:var(--rz-s1) 0 0}
.rz-mc__foot .woocommerce-mini-cart__buttons .rz-btn--ghost{padding-inline:1em}
/* short screens (a 640px-tall phone): the footer gives the list room - tighter rhythm, smaller saving pill */
@media (max-height:720px){
  .rz-mc__foot{gap:.35rem;padding-block:var(--rz-s3) calc(var(--rz-s3) + max(env(safe-area-inset-bottom),var(--rz-tb-pad-end,0px)))}
  .rz-mc__saving{padding:.3rem .6rem}
  .rz-mc__foot .woocommerce-mini-cart__total{font-size:var(--rz-fs-sm)}
  .rz-mc__foot .woocommerce-mini-cart__buttons{margin-top:0}
  .rz-mc__foot .woocommerce-mini-cart__buttons .button,.rz-mc__foot .woocommerce-mini-cart__buttons .rz-btn{min-height:var(--rz-ctl-h-sm)}
  .rz-mc__item{padding-block:var(--rz-s3)}
}
/* empty */
.rz-mc-empty{display:flex;flex-direction:column;justify-content:center;flex:1;padding:var(--rz-s6) var(--rz-s4)}
.rz-mc-empty .rz-void__acts{display:grid;gap:.5rem;width:min(100%,18rem)}
/* free-shipping meter (cart totals and the mini-cart) */
.rz-ship-meter{padding:var(--rz-s3) var(--rz-s4);border-radius:var(--rz-r-lg);background:var(--rz-brand-50);font-size:var(--rz-fs-xs);font-weight:700;color:var(--rz-brand-700)}
.rz-ship-meter__bar{height:.4rem;margin-top:.5rem;border-radius:var(--rz-r-pill);background:var(--rz-brand-100);overflow:hidden}
.rz-ship-meter__bar i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,var(--rz-brand),var(--rz-accent))}
.rz-ship-meter.is-done{background:var(--rz-success-bg);color:var(--rz-success)}

/* ---------------------------------------------------------- archive head */
.woocommerce-products-header{margin-bottom:var(--rz-s4)}
.woocommerce-products-header__title,.page-title{font-size:var(--rz-fs-2xl);margin:0 0 var(--rz-s2)}
.term-description{color:var(--rz-text-2);font-size:var(--rz-fs-sm)}
.woocommerce-result-count{margin:0;color:var(--rz-text-3);font-size:var(--rz-fs-xs)}
.woocommerce-ordering{margin:0}
.woocommerce-ordering select{min-height:var(--rz-ctl-h-sm);font-size:var(--rz-fs-sm)!important;width:auto}
.woocommerce-no-products-found .woocommerce-info{justify-content:center}

/* tables used by account / cart plugins */
/* the bordered table card (cart totals, order details…). r37: not the checkout's order review - that
   one is laid out as cards (checkout.css), and this clip cut their focus rings and selection outlines */
.shop_table:not(.woocommerce-checkout-review-order-table){overflow:hidden}
.shop_table{width:100%;border:1px solid var(--rz-line);border-radius:var(--rz-r-lg);background:var(--rz-surface);font-size:var(--rz-fs-sm);border-collapse:separate;border-spacing:0}
.shop_table th,.shop_table td{padding:.8em 1em;border-bottom:1px solid var(--rz-line);text-align:start;vertical-align:middle}
.shop_table thead th{background:var(--rz-surface-2);color:var(--rz-text-2);font-weight:700;font-size:var(--rz-fs-xs)}
.shop_table tr:last-child>*{border-bottom:0}
.shop_table tfoot th{color:var(--rz-text-2)}
.rz-pc__tier{display:flex;align-items:center;gap:.3rem;margin-top:.15rem;padding:.25rem .45rem;border-radius:var(--rz-r-sm);background:var(--rz-brand-50);color:var(--rz-brand-700);font-size:var(--rz-fs-2xs);font-weight:700;line-height:1.5}
.rz-pc__tier svg{width:.85rem;height:.85rem;flex-shrink:0}
.rz-pc__tier .woocommerce-Price-amount{color:inherit;font-weight:800}
.rz-pc__tier .woocommerce-Price-currencySymbol{color:inherit}
html[data-rzk-theme=dark] .rz-pc__tier{color:var(--rzk-accent,var(--rzv-c4a1ff,#c4a1ff))}

/* Photo reviews: the average-rating tile in the brand colours (plugin default: charcoal) */
.rz-theme .wcpr-overall-rating-left{background:linear-gradient(135deg,var(--rz-brand),var(--rz-brand-deep));color:var(--rz-on-brand)}

/* WooCommerce "updating" overlay (jQuery BlockUI: checkout totals and shipping, the whole
   form while an order is placed, cart totals, quantity changes). The content stays fully
   readable under a faint veil, and a soft brand-tinted sheen sweeps across it - the motion of
   the theme's skeletons. (Until 2026-11 a slim bar ran along the top edge of the blocked box;
   but WooCommerce blocks wrappers, not the cards inside them - the cart form, the payment
   box - so that straight line crossed the cards' rounded corners. The sheen has no edge to
   misplace. Before that, a 62% veil made the checkout look blank while a request ran.)
   Only transform animates: compositor work, no INP cost. */
.woocommerce .blockUI.blockOverlay,.blockUI.blockOverlay{background:color-mix(in srgb,var(--rz-surface) 30%,transparent)!important;opacity:1!important;border-radius:inherit;overflow:hidden;cursor:progress!important}
.woocommerce .blockUI.blockOverlay::before,.blockUI.blockOverlay::before{content:""!important;position:absolute;inset:0;width:auto!important;height:auto!important;margin:0!important;border-radius:0;background-image:linear-gradient(100deg,transparent 25%,color-mix(in srgb,var(--rz-brand) 11%,transparent) 50%,transparent 75%)!important;-webkit-mask:none!important;mask:none!important;transform:none;background-size:50% 100%!important;background-repeat:no-repeat!important;background-position:300% 0;animation:rz-sheen 1.25s ease-in-out infinite!important}
@media (prefers-reduced-motion:reduce){.blockUI.blockOverlay::before{animation:none!important}.rz-mc__item.is-busy::after,.rz-mc.is-calc :is(.rz-ship-meter,.rz-mc__foot)::after,.woocommerce-cart-form__cart-item.rz-changing::after{animation:none;opacity:0}}
/* the amounts a running request will change (any blocked box: cart lines and totals, checkout
   summary and shipping, mini-cart) turn into skeleton pills of their own width - the sheen
   above sweeps over them; nothing moves when the new figures arrive .
   r36: on the cart page only the line being changed (.rz-changing, set by theme.js on the
   quantity / «حذف» of that line) and the totals box; the other lines do not change, so they
   stay readable. In the mini-cart: the changed line's unit and line price, and every figure of
   the drawer the request recomputes (free-shipping meter, saving, subtotal, packaging fee).
   r38: not the checkout (its summary, payment box and form) - checkout.css skeletons there only
   what the running refresh can change.
   R103: scoped to the pages that have these boxes (body classes). Unscoped, every style recalculation on any
   page walked each price's ancestors for this :has() - ~90 ms of a bottom-bar tap on a 4×-slowed phone. */
:is(.woocommerce-cart,.woocommerce-checkout,.woocommerce-account) :is(.processing,.cart_totals,.shop_table,form#order_review):not(.woocommerce-cart-form,.woocommerce-checkout-review-order-table,form.checkout,div#order_review):has(>.blockUI.blockOverlay) .woocommerce-Price-amount,.woocommerce-cart .woocommerce-cart-form:has(>.blockUI.blockOverlay) .rz-changing .woocommerce-Price-amount,.rz-mc__item.is-busy :is(.rz-mc__unit,.rz-mc__line) .woocommerce-Price-amount,.rz-mc.is-calc :is(.rz-ship-meter,.rz-mc__foot) .woocommerce-Price-amount{border-radius:var(--rz-r-xs);background:var(--rz-surface-3);color:transparent!important;text-decoration-color:transparent!important;-webkit-box-decoration-break:clone;box-decoration-break:clone}
:is(.woocommerce-cart,.woocommerce-checkout,.woocommerce-account) :is(.processing,.cart_totals,.shop_table,form#order_review):not(.woocommerce-cart-form,.woocommerce-checkout-review-order-table,form.checkout,div#order_review):has(>.blockUI.blockOverlay) .woocommerce-Price-amount *,.woocommerce-cart .woocommerce-cart-form:has(>.blockUI.blockOverlay) .rz-changing .woocommerce-Price-amount *,.rz-mc__item.is-busy :is(.rz-mc__unit,.rz-mc__line) .woocommerce-Price-amount *,.rz-mc.is-calc :is(.rz-ship-meter,.rz-mc__foot) .woocommerce-Price-amount *{color:transparent!important}
:is(.woocommerce-cart,.woocommerce-checkout,.woocommerce-account) :is(.processing,.cart_totals,.shop_table,form#order_review):not(.woocommerce-cart-form,.woocommerce-checkout-review-order-table,form.checkout,div#order_review):has(>.blockUI.blockOverlay) del,.woocommerce-cart .woocommerce-cart-form:has(>.blockUI.blockOverlay) .rz-changing del,.rz-mc__item.is-busy :is(.rz-mc__unit,.rz-mc__line) del,.rz-mc.is-calc :is(.rz-ship-meter,.rz-mc__foot) del{text-decoration-color:transparent!important}
/* the cart form is only a wrapper around separate cards: there the sheen runs inside each card
   (the wrapper's own sweep would tint the gaps between them) */
.woocommerce-cart-form>.blockUI.blockOverlay{background:transparent!important}
.woocommerce-cart-form>.blockUI.blockOverlay::before{display:none}
.woocommerce-cart-form:has(>.blockUI.blockOverlay) .woocommerce-cart-form__cart-item.rz-changing{overflow:hidden}
.woocommerce-cart-form:has(>.blockUI.blockOverlay) .woocommerce-cart-form__cart-item.rz-changing::after{content:"";position:absolute;inset:0;z-index:2;pointer-events:none;border-radius:inherit;background-image:linear-gradient(100deg,transparent 25%,color-mix(in srgb,var(--rz-brand) 11%,transparent) 50%,transparent 75%);transform:none;background-size:50% 100%!important;background-repeat:no-repeat!important;background-position:300% 0;animation:rz-sheen 1.25s ease-in-out infinite}

/* ------------------------------------------- packaging fee «هزینه بسته بندی»
   Beautiful Fast Cart 2.2 (includes/class-bfc-packaging-fee.php) prints the fee row
   (tr.fee / tr.rzk-pkg-free), the «… تا بسته بندی رایگان» hint row and a mini-cart row.
   Its own stylesheet is not loaded under this theme; these shared rules (cart, checkout,
   mini-cart) are written on the tokens, so they follow the palette and dark mode. */
.rzk-pkg-badge{display:inline-flex;align-items:center;gap:.3em;padding:.15em .7em;border-radius:var(--rz-r-pill);background:var(--rz-success-bg);color:var(--rz-success);font-size:var(--rz-fs-2xs);font-weight:800;line-height:1.7;white-space:nowrap}
tr.fee th,tr.rzk-pkg-free th{display:inline-flex;align-items:center;gap:.45rem}
tr.fee th::before,tr.rzk-pkg-free th::before{content:"";flex:none;width:1.05rem;height:1.05rem;background:var(--rz-brand);-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 8.5 12 3 3 8.5v7L12 21l9-5.5z'/%3E%3Cpath d='M3 8.5 12 14l9-5.5M12 14v7M7.5 5.75l9 5.5'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 8.5 12 3 3 8.5v7L12 21l9-5.5z'/%3E%3Cpath d='M3 8.5 12 14l9-5.5M12 14v7M7.5 5.75l9 5.5'/%3E%3C/svg%3E") center/contain no-repeat}
.rzk-pkg-progress{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:.45rem .65rem;padding:.65rem .8rem;border-radius:var(--rz-r-lg);background:var(--rz-brand-50);border:1px dashed var(--rz-brand-300);color:var(--rz-text-2);font-size:var(--rz-fs-xs);font-weight:500;line-height:1.8;text-align:start;white-space:normal}
.rzk-pkg-progress__icon{grid-row:span 2;display:grid;place-items:center;width:2.1rem;height:2.1rem;border-radius:50%;background:var(--rz-surface)}
.rzk-pkg-progress__icon::before{content:"";width:1.1rem;height:1.1rem;background:var(--rz-brand);-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 8.5 12 3 3 8.5v7L12 21l9-5.5z'/%3E%3Cpath d='M3 8.5 12 14l9-5.5M12 14v7M7.5 5.75l9 5.5'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 8.5 12 3 3 8.5v7L12 21l9-5.5z'/%3E%3Cpath d='M3 8.5 12 14l9-5.5M12 14v7M7.5 5.75l9 5.5'/%3E%3C/svg%3E") center/contain no-repeat}
.rzk-pkg-progress__text b,.rzk-pkg-progress__text strong{color:var(--rz-text);font-weight:800}
.rzk-pkg-progress__amount,.rzk-pkg-progress__amount .woocommerce-Price-amount{color:var(--rz-brand-700)!important;font-weight:800}
.rzk-pkg-progress__bar{-webkit-appearance:none;appearance:none;display:block;width:100%;height:.4rem;border:0;border-radius:var(--rz-r-pill);background:var(--rz-surface-3);color:var(--rz-brand);overflow:hidden}
.rzk-pkg-progress__bar::-webkit-progress-bar{background:var(--rz-surface-3);border-radius:var(--rz-r-pill)}
.rzk-pkg-progress__bar::-webkit-progress-value{background:linear-gradient(90deg,var(--rz-brand),var(--rz-accent));border-radius:var(--rz-r-pill)}
.rzk-pkg-progress__bar::-moz-progress-bar{background:linear-gradient(90deg,var(--rz-brand),var(--rz-accent));border-radius:var(--rz-r-pill)}
.rzk-pkg-progress--compact{padding:.5rem .65rem;gap:.35rem .55rem}
.rzk-pkg-progress--compact .rzk-pkg-progress__icon{width:1.75rem;height:1.75rem}

/* ================================================================= rz-addr
   R59: one address block for the whole store (inc/address.php rozhika_address_card(); the checkout
   preview is drawn by theme.js with the same markup). Pin · name (+ a small tag) · the address in
   one line · «کد پستی …  ۰۹۱۲…» in one line. Used by the checkout, the address book, the orders
   list, the order page, the invoice and the thank-you page. */
.rz-addr{display:flex;align-items:flex-start;gap:clamp(.45rem,.4rem + .3vw,.65rem);min-width:0;margin:0;color:var(--rz-text-2);font-size:var(--rz-fs-sm);font-style:normal;line-height:1.85}
.rz-addr[hidden]{display:none}
.rz-addr--soft{padding:clamp(.6rem,.5rem + .4vw,.8rem) clamp(.7rem,.6rem + .4vw,.95rem);border:1px solid var(--rz-brand-100);border-radius:var(--rz-r-lg);background:var(--rz-brand-50)}
.rz-addr--mt{margin-top:.6rem;padding-top:.6rem;border-top:1px dashed var(--rz-line-2)}
.rz-addr__ic{flex:none;width:1.15rem;height:1.15rem;margin-top:.3em;fill:none;stroke:var(--rz-brand);stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.rz-addr--bare .rz-addr__ic{display:none}
.rz-addr__b{display:flex;flex:1;flex-direction:column;min-width:0}
.rz-addr__n{display:flex;flex-wrap:wrap;align-items:center;gap:.1rem .45rem;color:var(--rz-text);font-weight:800;line-height:1.6}
.rz-addr__tag{padding:0 .5rem;border-radius:var(--rz-r-pill);background:var(--rz-surface-2);color:var(--rz-text-2);font-size:var(--rz-fs-2xs);font-weight:700;line-height:1.6rem}
.rz-addr__l{overflow-wrap:anywhere}
.rz-addr__m{display:flex;flex-wrap:wrap;gap:0 .9rem;color:var(--rz-text-3);font-size:var(--rz-fs-xs)}
.rz-addr__m a{color:inherit;text-decoration:none}
.rz-addr__m a:hover{color:var(--rz-brand-700)}

/* ================================================================= R61: payment / shipping logos
   inline SVG (inc/pay-logos.php): Gateland's banks, the card-to-card glyph, and Premium Order Pay's
   shipping marks, at the checkout and on every order page. A box gives the height; the logo keeps its
   own shape inside it. R64: no background behind any of them - only the marks. The few dark inks of the
   marks (Sadad's navy wordmark, Chapar's navy, Tipax's green) are custom properties in the SVGs
   themselves, so the dark theme lightens just those parts; the brand's bright colours stay as they are. */
.rz-paylogo,.rz-mlogo{display:inline-flex;flex:none;align-items:center;justify-content:center;line-height:0}
.rz-paylogo svg,.rz-mlogo svg{display:block;width:auto;height:100%;max-width:100%}
html[data-rzk-theme=dark]{--rz-logo-ink:var(--rzv-e9e6f2,#e9e6f2);--rz-logo-ink-chapar:#9fb8ff;--rz-logo-ink-tipax:#34c48a}
/* R114: quick address names (خانه · محل کار · منزل والدین), one component for the account's address form (WooCommerce
   Address Redesign, my-address-rz.php) and the checkout's «عنوان آدرس» box; moved here from address-rz.css */
.rza-chips{container-type:inline-size;display:flex;flex-wrap:nowrap;gap:clamp(.25rem,1.7cqi,.4rem)}
/* R115: always one row: sizes follow the row's own width (cqi), so the three names fit side by side down to a 320 px phone */
.rza-chips button{display:inline-flex;align-items:center;flex:0 1 auto;gap:clamp(.22rem,1.5cqi,.35rem);min-width:0;min-height:clamp(1.9rem,1.7rem + 1cqi,2.1rem);padding:0 clamp(.42rem,3cqi,.75rem);border:1px solid var(--rz-line);border-radius:var(--rz-r-pill);background:var(--rz-surface-2);color:var(--rz-text-2);font:inherit;font-size:clamp(.66rem,4.9cqi,.75rem);font-weight:600;white-space:nowrap;cursor:pointer}
.rza-chips button:hover{border-color:var(--rz-brand-300);background:var(--rz-brand-50);color:var(--rz-brand-700)}
.rza-chips .rz-i{flex:none;width:clamp(.78rem,5.4cqi,.95rem);height:clamp(.78rem,5.4cqi,.95rem)}
/* r160: sheen that moves its background, not its box, so it can never paint outside its element */
@keyframes rz-sheen{from{background-position:300% 0}to{background-position:-200% 0}}
