/*
 * Layout variants — one body class per choice of «سفارشی‌سازی ← چیدمان و ظاهر» (see inc/layout.php).
 * The first choice of every option is the base design in main.css / woocommerce.css and needs no rule here.
 */

/* ---------- Header: logo in the middle, menu on a second row ---------- */
@media (min-width: 768px) {
	.zh-hd-centered .zh-dhead { display: grid; grid-template-columns: 1fr auto 1fr; gap: 4px 24px; padding-block: 14px 0; }
	.zh-hd-centered .zh-dhead__logo { grid-column: 2; grid-row: 1; justify-self: center; }
	.zh-hd-centered .zh-dhead__icons { grid-column: 3; grid-row: 1; justify-self: end; }
	.zh-hd-centered .zh-nav { grid-column: 1 / -1; grid-row: 2; display: flex; justify-content: center; margin-top: 8px; border-top: 1px solid var(--zh-sand); }
}

/* ---------- Header: big search field, menu on a second row ---------- */
.zh-dhead__search { flex: 1; max-width: 560px; margin: 0; }
@media (min-width: 768px) {
	.zh-hd-search .zh-dhead { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 4px 32px; padding-block: 14px 0; }
	.zh-hd-search .zh-dhead__logo { grid-column: 1; grid-row: 1; }
	.zh-hd-search .zh-dhead__search { grid-column: 2; grid-row: 1; width: 100%; max-width: 620px; justify-self: center; }
	.zh-hd-search .zh-dhead__search .zh-input { background: #fff; padding-block: 12px; }
	.zh-hd-search .zh-dhead__icons { grid-column: 3; grid-row: 1; }
	.zh-hd-search .zh-nav { grid-column: 1 / -1; grid-row: 2; margin-top: 8px; border-top: 1px solid var(--zh-sand); }
	.zh-hd-search .zh-search { display: none !important; }
}

/* ---------- Product card: flat ---------- */
.zh-cd-flat li.product.zh-card { border: 1px solid var(--zh-sand); box-shadow: none; }
.zh-cd-flat li.product.zh-card:hover { transform: none; box-shadow: none; border-color: var(--zh-tan); }
.zh-cd-flat .zh-card__media { background: #fff; border-bottom: 1px solid var(--zh-sand); }
.zh-cd-flat .zh-card__media::before, .zh-cd-flat .zh-card__media::after { display: none; }
.zh-cd-flat .woocommerce ul.products li.product .zh-card__media img, .zh-cd-flat .zh-card__media img { padding: 6%; mix-blend-mode: normal; }

/* ---------- Product card: full-width «add to cart» button ---------- */
.zh-cd-button .zh-card__foot { flex-direction: column; align-items: stretch; gap: 10px; }
.zh-cd-button ul.products li.product.zh-card a.zh-card__cart.button, .zh-cd-button .zh-card a.zh-card__cart {
	width: 100%; height: 42px; gap: 8px; border-radius: var(--zh-r-pill, 999px);
	background: var(--zh-primary); color: var(--zh-cream); font-size: 13px; font-weight: 700;
}
.zh-cd-button ul.products li.product.zh-card a.zh-card__cart.button:hover { background: var(--zh-primary-dark); color: var(--zh-cream); }
.zh-cd-button ul.products li.product.zh-card a.zh-card__cart.button:active { transform: scale(.98); }
.zh-cd-button .zh-card__cart .screen-reader-text {
	position: static !important; width: auto; height: auto; margin: 0; overflow: visible; clip: auto; clip-path: none; white-space: nowrap;
}

/* ---------- Footer: light ---------- */
.zh-ft-light .zh-footer { background: var(--zh-panel); color: var(--zh-ink); border-top: 1px solid var(--zh-sand); }
.zh-ft-light .zh-footer__about p, .zh-ft-light .zh-footer__muted { color: var(--zh-taupe); }
.zh-ft-light .zh-footer__title { color: var(--zh-primary); }
.zh-ft-light .zh-footer__links a:hover { color: var(--zh-accent-strong); }
.zh-ft-light .zh-footer__socials a { border-color: var(--zh-tan); }
.zh-ft-light .zh-footer__socials a:hover { border-color: var(--zh-primary); color: var(--zh-primary); }
.zh-ft-light .zh-footer__bottom { border-top-color: var(--zh-sand); }
.zh-ft-light .zh-footer__bottom-inner { color: var(--zh-taupe); }
.zh-ft-light .zh-footer__latin { color: var(--zh-accent-strong); }
.zh-ft-light .zh-footer :focus-visible { outline-color: var(--zh-accent-strong); }

/* ---------- Corner radius of cards, boxes and fields ---------- */
.zh-rd-medium { --zh-radius: 14px; --zh-radius-sm: 10px; --zh-r-lg: 14px; --zh-r-md: 8px; }
.zh-rd-sharp { --zh-radius: 4px; --zh-radius-sm: 3px; --zh-r-lg: 4px; --zh-r-md: 3px; }
@media (min-width: 768px) {
	.zh-rd-medium li.product.zh-card { border-radius: 14px; }
	.zh-rd-sharp li.product.zh-card { border-radius: 4px; }
}

/* ---------- Shape of buttons, chips and the search field ---------- */
.zh-bt-rounded { --zh-r-pill: 10px; }
.zh-bt-square { --zh-r-pill: 3px; }
.zh-bt-rounded .zh-btn, .zh-bt-rounded .woocommerce a.button, .zh-bt-rounded .woocommerce button.button, .zh-bt-rounded .woocommerce input.button { border-radius: 10px; }
.zh-bt-square .zh-btn, .zh-bt-square .woocommerce a.button, .zh-bt-square .woocommerce button.button, .zh-bt-square .woocommerce input.button { border-radius: 3px; }
/* Count badges stay round whatever the button shape. */
.zh-bt-rounded .zh-badge, .zh-bt-square .zh-badge, .zh-bt-rounded .zh-filters__count, .zh-bt-square .zh-filters__count { border-radius: 999px; }

/* ---------- Shop: four products per row on wide screens ---------- */
@media (min-width: 1280px) {
	.zh-sc-4 .zh-shop ul.products { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
}

/* ---------- Product page: gallery on the right ---------- */
@media (min-width: 1024px) {
	.zh-gs-start .zh-product__info { order: 0; }
}
