/* =========================================================================
   Zhwan Shop — main.css
   Custom, dependency-free stylesheet. RTL-first, Persian, WooCommerce.
   ========================================================================= */

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
:root { --z-font: "Vazir", "Vazirmatn", Tahoma, -apple-system, "Segoe UI", sans-serif; }

body {
  margin: 0;
  font-family: var(--z-font);
  font-size: 15px;
  line-height: 1.8;
  color: var(--z-ink);
  background: var(--z-bg);
  direction: rtl;
  text-align: right;
  -webkit-font-smoothing: antialiased;
}

/* ---- Unified typography: force one Persian font across theme, Elementor & WooCommerce ---- */
body, button, input, select, optgroup, textarea,
h1, h2, h3, h4, h5, h6, p, a, span, div, li, td, th, label, blockquote,
.elementor-widget-container, .elementor-button, .elementor-heading-title,
[class*="elementor-"], [class*="woocommerce"], .woocommerce, .woocommerce-page,
.wd-nav, .price, .button, .cart, .product,
.mega, .mega__list a, .cat-icon-name, input::placeholder {
  font-family: var(--z-font) !important;
}
/* keep icon fonts (WooCommerce, Elementor icons, dashicons) intact */
[class^="icon-"], [class*=" icon-"], .dashicons, .dashicons-before::before,
.woocommerce-input-wrapper .wc-block-components-spinner,
i.fa, i.fas, i.far, i.fab, .eicon, [class^="eicon-"], [class*=" eicon-"],
.wd-tools-icon::before, [class^="wd-icon"], .star-rating, .star-rating span::before,
.woocommerce .star-rating::before, .woocommerce-review__star-rating {
  font-family: inherit;
}
.star-rating, .star-rating::before, .star-rating span::before { font-family: star !important; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color .2s var(--z-ease); }
a:hover { color: var(--z-brand); }
h1, h2, h3, h4 { margin: 0 0 .6em; line-height: 1.35; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--z-brand); outline-offset: 2px; }

.container { width: 100%; max-width: var(--z-container); margin-inline: auto; padding-inline: 18px; }

.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; right: -9999px; top: 8px; z-index: 1000;
  background: var(--z-brand); color: #fff; padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { right: 12px; }

/* ---------- Buttons ---------- */
.btn, .button,
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button,
.woocommerce #respond input#submit {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 22px; border: 1px solid transparent; border-radius: 999px;
  font-weight: 500; font-size: 14px; line-height: 1; cursor: pointer;
  background: var(--z-bg-soft); color: var(--z-ink);
  transition: transform .15s var(--z-ease), background .2s var(--z-ease), box-shadow .2s var(--z-ease);
}
.btn:hover, .button:hover,
.woocommerce a.button:hover, .woocommerce button.button:hover { transform: translateY(-1px); }

.btn--primary,
.woocommerce a.button.alt, .woocommerce button.button.alt,
.woocommerce #respond input#submit.alt,
.woocommerce .single_add_to_cart_button {
  background: var(--z-brand); color: #fff; box-shadow: 0 6px 16px rgba(255,76,108,.28);
}
.btn--primary:hover,
.woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover,
.woocommerce .single_add_to_cart_button:hover { background: var(--z-brand-dark); color: #fff; }

/* ---------- Topbar ---------- */
.topbar { background: var(--z-ink); color: #fff; font-size: 12.5px; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; min-height: 38px; }
.topbar__text { margin: 0; opacity: .9; }
.topbar__phone { color: #fff; font-weight: 700; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: #fff; box-shadow: var(--z-shadow-sm); }
.site-header__inner { display: flex; align-items: center; gap: 18px; min-height: var(--z-header-h); }
.site-branding img, .custom-logo { max-height: 54px; width: auto; }
.site-branding { flex: 0 0 auto; }

.header-search {
  flex: 1 1 auto; max-width: 560px; display: flex; align-items: center;
  background: var(--z-bg-soft); border: 1px solid var(--z-line); border-radius: 999px;
  padding: 4px 6px 4px 16px; transition: border-color .2s var(--z-ease);
}
.header-search:focus-within { border-color: var(--z-brand); }
.header-search__input { flex: 1; border: 0; background: transparent; font: inherit; font-size: 14px; padding: 8px 6px; outline: none; }
.header-search__btn {
  border: 0; background: var(--z-brand); color: #fff; width: 40px; height: 40px;
  border-radius: 999px; display: grid; place-items: center; flex: 0 0 auto;
}
.header-search__btn:hover { background: var(--z-brand-dark); }

.header-actions { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; margin-inline-start: auto; }
.header-actions__account, .zhwan-cart-btn {
  position: relative; width: 46px; height: 46px; border-radius: 12px;
  display: grid; place-items: center; color: var(--z-ink); background: transparent;
  transition: background .2s var(--z-ease), color .2s var(--z-ease);
}
.header-actions__account:hover, .zhwan-cart-btn:hover { background: var(--z-brand-light); color: var(--z-brand); }
.zhwan-cart-count {
  position: absolute; top: 4px; left: 4px; min-width: 18px; height: 18px; padding: 0 4px;
  background: var(--z-brand); color: #fff; font-size: 11px; font-weight: 700;
  border-radius: 999px; display: grid; place-items: center; line-height: 18px;
}

/* ---------- Primary nav ---------- */
.main-navigation { position: relative; border-top: 1px solid var(--z-line); background: #fff; }
.main-navigation__inner { display: flex; align-items: stretch; gap: 6px; }
.main-navigation .nav-menu { display: flex; flex-wrap: wrap; align-items: center; list-style: none; gap: 4px; }

/* ---------- Mega menu ---------- */
.mega { display: flex; align-items: stretch; }
.mega__trigger {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px;
  border: 0; background: var(--z-brand); color: #fff; font: inherit; font-size: 14px; font-weight: 500;
  cursor: pointer; white-space: nowrap; border-radius: 10px 10px 0 0;
}
.mega__trigger:hover { background: var(--z-brand-dark); }
.mega__chevron { transition: transform .25s var(--z-ease); }
.mega__panel {
  position: absolute; inset-inline: 0; top: 100%; z-index: 80;
  background: #fff; border: 1px solid var(--z-line); border-top: 0;
  border-radius: 0 0 var(--z-radius) var(--z-radius); box-shadow: var(--z-shadow); padding: 24px 18px;
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .22s var(--z-ease), transform .22s var(--z-ease), visibility .22s;
}
.mega:hover .mega__panel, .mega.is-open .mega__panel { opacity: 1; visibility: visible; transform: translateY(0); }
.mega:hover .mega__chevron, .mega.is-open .mega__chevron { transform: rotate(180deg); }
.mega__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px 30px; max-width: var(--z-container); margin-inline: auto; }
.mega__head { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 14px; color: var(--z-ink); padding-bottom: 9px; margin-bottom: 9px; border-bottom: 1px solid var(--z-line); }
.mega__head:hover { color: var(--z-brand); }
.mega__icon { width: 36px; height: 36px; flex: 0 0 36px; display: grid; place-items: center; border-radius: 10px; background: var(--z-brand-light); color: var(--z-brand); }
.mega__icon svg { width: 20px; height: 20px; }
.mega__list { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.mega__list a { font-size: 13px; color: var(--z-ink-soft); }
.mega__list a:hover { color: var(--z-brand); padding-inline-start: 3px; }
.mega__all a { color: var(--z-brand); font-weight: 500; font-size: 12.5px; }
.main-navigation .nav-menu > li > a { display: block; padding: 12px 14px; font-size: 14px; font-weight: 500; }
.main-navigation .nav-menu li { position: relative; }
.main-navigation .sub-menu {
  position: absolute; top: 100%; right: 0; z-index: 60; min-width: 220px;
  background: #fff; border: 1px solid var(--z-line); border-radius: var(--z-radius-sm);
  box-shadow: var(--z-shadow); padding: 8px; list-style: none;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: all .2s var(--z-ease);
}
.main-navigation li:hover > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.main-navigation .sub-menu a { display: block; padding: 9px 12px; border-radius: 8px; font-size: 13.5px; }
.main-navigation .sub-menu a:hover { background: var(--z-bg-soft); }
.main-navigation .sub-menu .sub-menu { top: 0; right: 100%; }

.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; flex-direction: column; justify-content: center; gap: 5px; }
.nav-toggle span { display: block; height: 2px; width: 24px; background: var(--z-ink); border-radius: 2px; transition: .25s var(--z-ease); margin: 0 auto; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { font-size: 13px; color: var(--z-ink-soft); padding: 14px 0; }
.breadcrumbs a:hover { color: var(--z-brand); }
.breadcrumbs .sep { margin: 0 6px; opacity: .5; }

/* ---------- Hero: slider + side banners ---------- */
.hero-banners { padding: 22px 0 8px; }
.hero-banners__grid { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; align-items: stretch; }
.hero-banners__side { display: grid; grid-template-rows: 1fr 1fr; gap: 16px; min-height: 0; }

/* No fixed aspect on desktop: the side column stretches to the slider's height so
   the main banner keeps its own ratio (1004/475) and its baked-in text is never cropped. */
.hero-banner { position: relative; display: block; border-radius: var(--z-radius); overflow: hidden; box-shadow: var(--z-shadow-sm); min-height: 0; }
.hero-banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s var(--z-ease); }
.hero-banner:hover img, .hero-slide:hover img { transform: scale(1.03); }

.hero-slider { position: relative; border-radius: var(--z-radius); overflow: hidden; aspect-ratio: 1004 / 475; }
.hero-slider__track { display: flex; height: 100%; transition: transform .5s var(--z-ease); }
.hero-slider__track > .hero-slide { flex: 0 0 100%; height: 100%; display: block; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s var(--z-ease); }
.hero-slider__nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 42px; height: 42px; border: 0; border-radius: 50%;
  background: rgba(255,255,255,.85); color: var(--z-ink); display: grid; place-items: center;
  box-shadow: var(--z-shadow-sm); cursor: pointer; transition: background .2s var(--z-ease), color .2s var(--z-ease);
  opacity: 0;
}
.hero-slider:hover .hero-slider__nav { opacity: 1; }
.hero-slider__nav:hover { background: var(--z-brand); color: #fff; }
.hero-slider__nav--prev { right: 12px; }
.hero-slider__nav--next { left: 12px; }
.hero-slider__dots { position: absolute; bottom: 12px; inset-inline: 0; display: flex; gap: 7px; justify-content: center; z-index: 3; }
.hero-slider__dots button { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.6); cursor: pointer; transition: background .2s var(--z-ease), width .2s var(--z-ease); }
.hero-slider__dots button.is-active { background: var(--z-brand); width: 22px; border-radius: 5px; }
/* single-slide: hide controls */
.hero-slider[data-single] .hero-slider__nav,
.hero-slider[data-single] .hero-slider__dots { display: none; }

/* ---------- Category icons (single-row carousel) ---------- */
.cat-icons { display: flex; flex-wrap: nowrap; gap: 16px; width: max-content; padding: 4px 0; }
.cat-icon-card {
  flex: 0 0 clamp(150px, 15vw, 172px); width: clamp(150px, 15vw, 172px);
  display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center;
  padding: 22px 12px; background: #fff; border: 1px solid var(--z-line); border-radius: var(--z-radius);
  transition: box-shadow .2s var(--z-ease), transform .2s var(--z-ease), border-color .2s var(--z-ease);
}
.cat-icon-card:hover { box-shadow: var(--z-shadow); transform: translateY(-4px); border-color: transparent; color: var(--z-ink); }
.cat-icon {
  width: 62px; height: 62px; display: grid; place-items: center; border-radius: 50%;
  background: var(--z-brand-light); color: var(--z-brand);
  transition: background .2s var(--z-ease), color .2s var(--z-ease);
}
.cat-icon svg { width: 30px; height: 30px; }
.cat-icon-card:hover .cat-icon { background: var(--z-brand); color: #fff; }
.cat-icon-name { font-size: 14px; font-weight: 500; color: var(--z-ink); }
.cat-icon-count { font-size: 12px; color: var(--z-ink-soft); }

/* ---------- Product carousel (single row, < > controls) ---------- */
.product-carousel { position: relative; display: flex; align-items: center; gap: 6px; }
.pc-viewport { flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none; }
.pc-viewport::-webkit-scrollbar { display: none; }
/* inner content must be intrinsically wide so the viewport can scroll it */
.pc-viewport > .woocommerce, .pc-viewport > .cat-icons { width: max-content; max-width: none; }
.pc-viewport ul.products,
.product-carousel .woocommerce ul.products {
  display: flex !important; grid-template-columns: none !important; flex-wrap: nowrap;
  width: max-content; max-width: none;
  gap: 16px; margin: 0 !important; padding: 4px 0;
}
.pc-viewport ul.products li.product,
.product-carousel .woocommerce ul.products li.product {
  flex: 0 0 clamp(180px, 20vw, 210px); width: clamp(180px, 20vw, 210px) !important; scroll-snap-align: start;
}
.pc-nav {
  flex: 0 0 auto; width: 40px; height: 40px; border: 1px solid var(--z-line); border-radius: 50%;
  background: #fff; color: var(--z-ink); display: grid; place-items: center; cursor: pointer;
  box-shadow: var(--z-shadow-sm); transition: background .2s var(--z-ease), color .2s var(--z-ease);
}
.pc-nav:hover { background: var(--z-brand); color: #fff; border-color: var(--z-brand); }
.pc-nav:disabled { opacity: .35; cursor: default; background: #fff; color: var(--z-ink); }

/* ---------- Sections ---------- */
.home-section { padding: 44px 0; }
.home-section--alt { background: var(--z-bg-soft); }
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.section-title { font-size: 22px; margin: 0; position: relative; padding-inline-start: 14px; }
.section-title::before { content: ""; position: absolute; inset-inline-start: 0; top: 50%; transform: translateY(-50%); width: 5px; height: 22px; background: var(--z-brand); border-radius: 4px; }
.section-more { color: var(--z-brand); font-size: 13.5px; font-weight: 500; }

/* ---------- Product grid (WooCommerce) ---------- */
.woocommerce ul.products, ul.products.product-grid {
  display: grid !important; grid-template-columns: repeat(3, 1fr); gap: 24px;
  grid-auto-rows: 1fr; /* every row the same height → uniform cards */
  list-style: none; margin: 0 0 30px !important;
}
/* Kill WooCommerce's float-clearfix pseudo-elements — in a grid/flex they become
   phantom items and leave the first (and last) cell empty. */
.woocommerce ul.products::before, .woocommerce ul.products::after,
ul.products::before, ul.products::after { content: none !important; display: none !important; }
.woocommerce ul.products li.product, ul.products li.product {
  width: auto !important; margin: 0 !important; float: none !important; height: 100%;
  background: #fff; border: 1px solid var(--z-line); border-radius: var(--z-radius);
  padding: 16px; text-align: center; position: relative;
  display: flex; flex-direction: column; transition: box-shadow .2s var(--z-ease), transform .2s var(--z-ease), border-color .2s var(--z-ease);
}
.woocommerce ul.products li.product:hover { box-shadow: var(--z-shadow); transform: translateY(-4px); border-color: transparent; }
.woocommerce ul.products li.product a img { border-radius: var(--z-radius-sm); margin-bottom: 14px; aspect-ratio: 1; object-fit: cover; width: 100%; background: var(--z-bg-soft); }
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-size: 14.5px !important; font-weight: 500; padding: 0 2px !important;
  color: var(--z-ink); line-height: 1.7; margin-bottom: 8px;
  min-height: 2.9em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.woocommerce ul.products li.product .price { color: var(--z-ink); font-weight: 700; font-size: 16px; margin-top: auto; padding-top: 6px; }
.woocommerce ul.products li.product .price del { color: var(--z-ink-soft); font-weight: 400; font-size: 13px; opacity: .8; }
.woocommerce ul.products li.product .price ins { text-decoration: none; color: var(--z-brand); }
/* Add-to-cart pinned to the bottom, in the distinct brand colour. */
.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product .added_to_cart {
  margin-top: 14px; width: 100%; background: var(--z-brand) !important; color: #fff !important;
  border: 0; font-weight: 500; box-shadow: 0 5px 14px rgba(255,76,108,.26);
}
.woocommerce ul.products li.product .button:hover,
.woocommerce ul.products li.product .added_to_cart:hover { background: var(--z-brand-dark) !important; transform: translateY(-1px); }
.woocommerce ul.products li.product .button.loading { opacity: .75; }
.woocommerce ul.products li.product .added_to_cart { margin-top: 8px; background: var(--z-accent) !important; box-shadow: none; }

/* Sale badge */
.woocommerce span.onsale, .onsale {
  position: absolute; top: 12px; right: 12px; z-index: 5; margin: 0; min-height: auto;
  background: var(--z-brand); color: #fff; font-size: 12px; font-weight: 700;
  padding: 5px 10px; border-radius: 999px; line-height: 1;
}
.onsale--percent { background: var(--z-danger); }

/* ---------- Shop layout / sidebar ---------- */
.shop-layout, .content-layout { display: block; padding: 24px 0 48px; }
.content-layout.has-sidebar {
  display: grid; grid-template-columns: 1fr 280px; gap: 30px; align-items: start;
}
/* Shop: filter sidebar on the RIGHT (start side in RTL), products on the left. */
.shop-layout.has-sidebar {
  display: grid; grid-template-columns: 290px 1fr; gap: 30px; align-items: start;
}
.shop-layout.has-sidebar .shop-sidebar { grid-column: 1; grid-row: 1; }
.shop-layout.has-sidebar .site-main { grid-column: 2; grid-row: 1; }
.sidebar, .shop-sidebar { position: sticky; top: calc(var(--z-header-h) + 16px); }
.sidebar .widget, .shop-sidebar .widget, .widget { margin-bottom: 20px; background: #fff; border: 1px solid var(--z-line); border-radius: var(--z-radius); padding: 18px; }

/* ---- WooCommerce filter widgets ---- */
.shop-sidebar .widget .widget__title,
.shop-sidebar .widget > h2, .shop-sidebar .widget > h3 { font-size: 15px; margin: 0 0 14px; padding-bottom: 10px; border-bottom: 1px solid var(--z-line); }
.shop-sidebar ul.product-categories,
.shop-sidebar .woocommerce-widget-layered-nav-list { display: block; list-style: none; margin: 0; padding: 0; }
/* Categories: clean flat top-level list. */
.shop-sidebar ul.product-categories li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 0; font-size: 13.5px; border-bottom: 1px solid var(--z-line); }
.shop-sidebar ul.product-categories li:last-child { border-bottom: 0; }
.shop-sidebar ul.product-categories li a { color: var(--z-ink); flex: 1; }
.shop-sidebar ul.product-categories li a:hover { color: var(--z-brand); }
.shop-sidebar ul.product-categories li.cat-current > a { color: var(--z-brand); font-weight: 700; }
.shop-sidebar .cat-back { display: inline-block; font-size: 12.5px; color: var(--z-brand); margin-bottom: 8px; }
/* Layered-nav / attribute filters: flex row is fine (flat, no children). */
.shop-sidebar .woocommerce-widget-layered-nav-list li { padding: 7px 0; font-size: 13.5px; border: 0; display: flex; justify-content: space-between; align-items: center; }
.shop-sidebar .woocommerce-widget-layered-nav-list li a:hover { color: var(--z-brand); }
.shop-sidebar .count { color: var(--z-ink-soft); font-size: 12px; background: var(--z-bg-soft); border-radius: 20px; padding: 1px 9px; }
.shop-sidebar ul.product-categories ul.children { padding-inline-start: 14px; margin-top: 6px; }
.shop-sidebar .woocommerce-widget-layered-nav-list li.chosen a { color: var(--z-brand); font-weight: 700; }
/* price slider */
.shop-sidebar .price_slider_wrapper { padding-top: 6px; }
.shop-sidebar .price_slider.ui-slider { position: relative; height: 5px; background: var(--z-line); border-radius: 4px; margin: 14px 0; }
.shop-sidebar .ui-slider .ui-slider-range { position: absolute; height: 5px; background: var(--z-brand); border-radius: 4px; }
.shop-sidebar .ui-slider .ui-slider-handle { position: absolute; top: -6px; width: 17px; height: 17px; background: #fff; border: 3px solid var(--z-brand); border-radius: 50%; cursor: pointer; margin-inline-start: -8px; }
.shop-sidebar .price_slider_amount { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 12.5px; }
.shop-sidebar .price_slider_amount .button { order: 3; background: var(--z-brand); color: #fff; padding: 8px 18px; font-size: 13px; }
.shop-sidebar .price_slider_amount .price_label { order: 2; color: var(--z-ink-soft); }
.shop-sidebar .woocommerce-widget-layered-nav-list li a::before { content: ""; display: inline-block; width: 15px; height: 15px; border: 1.5px solid var(--z-line); border-radius: 4px; margin-inline-end: 8px; vertical-align: -3px; }
.shop-sidebar .woocommerce-widget-layered-nav-list li.chosen a::before { background: var(--z-brand); border-color: var(--z-brand); }
.woocommerce-widget-layered-nav-filters a, .shop-sidebar .woocommerce-widget-layered-nav-filters a { display: inline-block; background: var(--z-brand-light); color: var(--z-brand); font-size: 12.5px; padding: 4px 12px; border-radius: 20px; margin: 0 0 6px; }
.widget__title { font-size: 15px; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--z-line); }
.widget ul { list-style: none; }
.widget ul li { padding: 6px 0; font-size: 13.5px; }

/* WooCommerce ordering / result count */
.woocommerce .woocommerce-result-count { color: var(--z-ink-soft); font-size: 13px; }
.woocommerce .woocommerce-ordering select { border: 1px solid var(--z-line); border-radius: 8px; padding: 8px 12px; font: inherit; }

/* ---------- Single product ---------- */
.woocommerce div.product { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; }
.woocommerce div.product .woocommerce-product-gallery,
.woocommerce div.product .summary, .woocommerce div.product .entry-summary { min-width: 0; }
.woocommerce div.product .woocommerce-product-gallery { margin: 0 !important; width: auto !important; float: none !important; position: sticky; top: calc(var(--z-header-h) + 16px); }
.woocommerce div.product .woocommerce-product-gallery img { border-radius: var(--z-radius); max-width: 100%; height: auto; }
.woocommerce div.product .woocommerce-product-gallery__wrapper { border: 1px solid var(--z-line); border-radius: var(--z-radius); overflow: hidden; }
.woocommerce div.product .flex-control-thumbs { display: flex; gap: 10px; margin-top: 12px; padding: 0; list-style: none; }
.woocommerce div.product .flex-control-thumbs li { width: 74px; }
.woocommerce div.product .flex-control-thumbs img { border-radius: 8px; border: 1px solid var(--z-line); cursor: pointer; }
.woocommerce div.product .flex-control-thumbs img.flex-active { border-color: var(--z-brand); }
.woocommerce div.product .product_title { font-size: 24px; grid-column: 1 / -1; }
.woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--z-brand); font-size: 22px; font-weight: 700; }
.woocommerce div.product .woocommerce-tabs { grid-column: 1 / -1; }
.woocommerce div.product .related, .woocommerce div.product .upsells { grid-column: 1 / -1; }
.zhwan-related { grid-column: 1 / -1; margin-top: 46px; }
.zhwan-related .section-head { margin-bottom: 20px; }
.zhwan-related .pc-viewport ul.products {
  display: flex !important; grid-template-columns: none !important; grid-auto-rows: auto !important;
  flex-wrap: nowrap !important; width: max-content !important; max-width: none !important; margin: 0 !important; gap: 16px;
}
.zhwan-related .pc-viewport ul.products li.product {
  flex: 0 0 clamp(180px, 20vw, 210px) !important; width: clamp(180px, 20vw, 210px) !important; height: auto;
}
.woocommerce .quantity input.qty { border: 1px solid var(--z-line); border-radius: 8px; padding: 10px; width: 72px; text-align: center; font: inherit; }
.woocommerce div.product form.cart { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }

/* ---------- Cart & checkout ---------- */
.woocommerce table.shop_table { border: 1px solid var(--z-line); border-radius: var(--z-radius); border-collapse: separate; overflow: hidden; }
.woocommerce table.shop_table th { background: var(--z-bg-soft); }
.woocommerce .cart-collaterals .cart_totals, .woocommerce-checkout #order_review { border: 1px solid var(--z-line); border-radius: var(--z-radius); padding: 22px; background: #fff; }

/* Two-column checkout: customer details + a sticky order review. */
.woocommerce-checkout form.checkout.woocommerce-checkout {
  display: grid; grid-template-columns: 1.5fr 1fr; gap: 30px 34px; align-items: start;
}
.woocommerce-checkout form.checkout > .woocommerce-notices-wrapper,
.woocommerce-checkout form.checkout > .woocommerce-billing-fields__field-wrapper { grid-column: 1 / -1; }
.woocommerce-checkout #customer_details { grid-column: 1; }
.woocommerce-checkout #order_review_heading { grid-column: 2; grid-row: 1; margin: 0 0 4px; font-size: 18px; }
.woocommerce-checkout #order_review { grid-column: 2; position: sticky; top: calc(var(--z-header-h) + 16px); }
.woocommerce-checkout #customer_details .col2-set { display: grid; grid-template-columns: 1fr; gap: 0; }
.woocommerce-checkout #customer_details h3 { font-size: 17px; margin-bottom: 14px; }
.woocommerce-checkout #order_review .woocommerce-checkout-review-order-table { border: 0; margin-bottom: 16px; }
.woocommerce-checkout #order_review .shop_table th, .woocommerce-checkout #order_review .shop_table td { padding: 10px 6px; font-size: 13.5px; }
.woocommerce-checkout #order_review .order-total .amount { color: var(--z-brand); font-size: 18px; }
.woocommerce-checkout #payment { background: transparent; border-radius: 0; }
.woocommerce-checkout #payment ul.payment_methods { border: 0; padding: 0; margin: 0 0 14px; background: transparent; }
.woocommerce-checkout #payment ul.payment_methods li { list-style: none; padding: 12px 14px; border: 1px solid var(--z-line); border-radius: 10px; margin-bottom: 8px; }
.woocommerce-checkout #payment #place_order { width: 100%; background: var(--z-brand); color: #fff; font-size: 15px; padding: 14px; box-shadow: 0 6px 16px rgba(255,76,108,.28); }
.woocommerce-checkout #payment .form-row.place-order { padding: 0; margin: 8px 0 0; }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea,
.select2-container--default .select2-selection--single {
  border: 1px solid var(--z-line) !important; border-radius: 9px !important; padding: 11px 14px !important;
  font: inherit; min-height: 46px;
}
.woocommerce .woocommerce-message, .woocommerce .woocommerce-info { border-top-color: var(--z-brand); }
.woocommerce .woocommerce-message::before, .woocommerce .woocommerce-info::before { color: var(--z-brand); }

/* ---------- Blog cards ---------- */
.posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post-card { background: #fff; border: 1px solid var(--z-line); border-radius: var(--z-radius); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s var(--z-ease), transform .2s var(--z-ease); }
.post-card:hover { box-shadow: var(--z-shadow); transform: translateY(-3px); }
.post-card .post-thumbnail img { aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.post-card__body { padding: 18px; display: flex; flex-direction: column; flex: 1; }
.post-card__meta { font-size: 12px; color: var(--z-ink-soft); margin-bottom: 8px; }
.post-card__title { font-size: 16px; margin-bottom: 10px; }
.post-card__excerpt { font-size: 13.5px; color: var(--z-ink-soft); flex: 1; }
.post-card__more { color: var(--z-brand); font-weight: 500; font-size: 13.5px; margin-top: 12px; }
.post-card--search { flex-direction: row; align-items: center; gap: 14px; padding: 12px; }
.post-card--search .post-thumbnail img { width: 90px; height: 90px; border-radius: var(--z-radius-sm); }

/* ---------- Single entry ---------- */
.entry { background: #fff; border: 1px solid var(--z-line); border-radius: var(--z-radius); padding: 28px; margin-bottom: 24px; }
.entry-title { font-size: 26px; }
.entry-meta { color: var(--z-ink-soft); font-size: 13px; margin-bottom: 6px; }
.entry-content { line-height: 2; }
.entry-content img { border-radius: var(--z-radius-sm); margin: 1em 0; }
.post-thumbnail { display: block; margin-bottom: 20px; }
.entry--single .post-thumbnail img, .entry--page .post-thumbnail img { border-radius: var(--z-radius); width: 100%; }

/* ---------- Pagination ---------- */
.pagination, .woocommerce-pagination { margin-top: 28px; }
.pagination .nav-links, .woocommerce nav.woocommerce-pagination ul { display: flex; gap: 6px; justify-content: center; list-style: none; border: 0; }
.page-numbers { display: grid; place-items: center; min-width: 42px; height: 42px; padding: 0 12px; border: 1px solid var(--z-line); border-radius: 10px; background: #fff; font-size: 14px; }
.page-numbers.current, .page-numbers:hover { background: var(--z-brand); color: #fff; border-color: var(--z-brand); }
.woocommerce nav.woocommerce-pagination ul li { border: 0; }

/* ---------- Page header ---------- */
.page-header { margin: 16px 0 24px; }
.page-title { font-size: 24px; }
.page-title span { color: var(--z-brand); }

/* ---------- 404 ---------- */
.error-404 { text-align: center; padding: 70px 0; }
.error-404__code { font-size: clamp(70px, 14vw, 130px); font-weight: 700; color: var(--z-brand); line-height: 1; }
.error-404__title { font-size: 26px; margin-top: 10px; }
.error-404__text { color: var(--z-ink-soft); }
.error-404 .search-form { max-width: 420px; margin: 20px auto; }

/* ---------- Search form ---------- */
.search-form { display: flex; gap: 8px; }
.search-form__input { flex: 1; border: 1px solid var(--z-line); border-radius: 999px; padding: 11px 18px; font: inherit; }
.search-form__btn { border: 0; background: var(--z-brand); color: #fff; border-radius: 999px; padding: 0 22px; font-weight: 500; }

/* ---------- Trust badges ---------- */
.trust { padding: 30px 0; border-top: 1px solid var(--z-line); }
.trust__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.trust__item { text-align: center; padding: 16px; background: #fff; border: 1px solid var(--z-line); border-radius: var(--z-radius); }
.trust__item strong { display: block; color: var(--z-ink); }
.trust__item span { font-size: 12.5px; color: var(--z-ink-soft); }

/* ---------- Topbar phones ---------- */
.topbar__phones { display: flex; align-items: center; gap: 16px; }
.topbar__phone { display: inline-flex; align-items: center; gap: 5px; color: #fff; font-weight: 500; }
.topbar__phone svg { opacity: .85; }

/* ---------- Footer ---------- */
.site-footer { background: var(--z-ink); color: #b9becc; margin-top: 40px; }
.site-footer__top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 34px; padding: 48px 0 34px; }
.site-footer .widget__title { color: #fff; font-size: 15px; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 1px solid rgba(255,255,255,.12); }
.site-footer a { color: #b9becc; }
.site-footer a:hover { color: var(--z-brand); }
.footer-about img, .footer-about .custom-logo { max-height: 52px; width: auto; margin-bottom: 14px; filter: brightness(0) invert(1); }
.footer-about__text { font-size: 13px; line-height: 2; color: #9aa0b0; }
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.footer-social a { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,255,255,.07); color: #cfd3de; transition: background .2s var(--z-ease), color .2s var(--z-ease); }
.footer-social a:hover { background: var(--z-brand); color: #fff; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 13.5px; }
.footer-contact__list { list-style: none; display: flex; flex-direction: column; gap: 11px; font-size: 13.5px; }
.footer-contact__list span { color: #7f8598; }
/* Phone/email are LTR sequences — isolate them so RTL bidi doesn't reverse the digits. */
.footer-contact__list a[href^="tel"], .footer-contact__list a[href^="mailto"],
.topbar__phone span { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.site-footer__bar { border-top: 1px solid rgba(255,255,255,.09); }
.site-footer__bar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; font-size: 12.5px; color: #8990a2; }
.site-footer__copy, .site-footer__made { margin: 0; }

/* ---------- Blog on homepage (single-row carousel) ---------- */
.pc-viewport > .blog-carousel { width: max-content; max-width: none; }
.blog-carousel { display: flex; flex-wrap: nowrap; gap: 20px; width: max-content; padding: 4px 0; }
.blog-card {
  flex: 0 0 clamp(260px, 26vw, 300px); width: clamp(260px, 26vw, 300px);
  background: #fff; border: 1px solid var(--z-line); border-radius: var(--z-radius); overflow: hidden;
  display: flex; flex-direction: column; transition: box-shadow .2s var(--z-ease), transform .2s var(--z-ease);
}
.blog-card:hover { box-shadow: var(--z-shadow); transform: translateY(-4px); }
.blog-card__thumb { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--z-brand-light); }
.blog-card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--z-ease); }
.blog-card:hover .blog-card__thumb img { transform: scale(1.05); }
.blog-card__placeholder { width: 100%; height: 100%; display: grid; place-items: center; color: var(--z-brand); }
.blog-card__body { padding: 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.blog-card__meta { font-size: 12px; color: var(--z-ink-soft); }
.blog-card__title { font-size: 15.5px; line-height: 1.7; margin: 0; }
.blog-card__title a { color: var(--z-ink); }
.blog-card__title a:hover { color: var(--z-brand); }
.blog-card__excerpt { font-size: 13px; color: var(--z-ink-soft); line-height: 1.9; flex: 1; }
.blog-card__more { color: var(--z-brand); font-weight: 500; font-size: 13px; margin-top: 4px; }

/* ---------- Search suggestions ---------- */
.header-search { position: relative; }
.search-suggest {
  position: absolute; top: calc(100% + 8px); inset-inline: 0; z-index: 120;
  background: #fff; border: 1px solid var(--z-line); border-radius: var(--z-radius);
  box-shadow: var(--z-shadow); padding: 8px; max-height: 60vh; overflow-y: auto;
}
.search-suggest[hidden] { display: none; }
.search-suggest__list { list-style: none; }
.search-suggest__item a { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 10px; }
.search-suggest__item a:hover { background: var(--z-bg-soft); }
.search-suggest__thumb img { width: 48px; height: 48px; object-fit: cover; border-radius: 8px; }
.search-suggest__thumb { width: 48px; height: 48px; border-radius: 8px; background: var(--z-bg-soft); flex: 0 0 48px; }
.search-suggest__title { display: block; font-size: 13px; color: var(--z-ink); font-weight: 500; }
.search-suggest__price { font-size: 12.5px; color: var(--z-brand); font-weight: 700; }
.search-suggest__all { display: block; text-align: center; padding: 10px; margin-top: 4px; color: var(--z-brand); font-weight: 500; font-size: 13px; border-top: 1px solid var(--z-line); }
.search-suggest__empty { padding: 18px; text-align: center; color: var(--z-ink-soft); font-size: 13px; }
.search-suggest__loading { padding: 18px; text-align: center; color: var(--z-ink-soft); font-size: 13px; }

/* ---------- AJAX mini-cart drawer ---------- */
.mini-cart { position: fixed; inset: 0; z-index: 300; visibility: hidden; }
.mini-cart.is-open { visibility: visible; }
.mini-cart__overlay { position: absolute; inset: 0; background: rgba(20,22,30,.55); backdrop-filter: blur(2px); opacity: 0; transition: opacity .25s var(--z-ease); }
.mini-cart.is-open .mini-cart__overlay { opacity: 1; }
.mini-cart__panel {
  position: absolute; left: 0; top: 0; bottom: 0; width: min(93vw, 410px);
  background: var(--z-bg-soft); box-shadow: 0 0 40px rgba(0,0,0,.25); display: flex; flex-direction: column;
  transform: translateX(-100%); transition: transform .32s var(--z-ease);
}
.mini-cart.is-open .mini-cart__panel { transform: translateX(0); }
.mini-cart__head {
  display: flex; align-items: center; justify-content: space-between; padding: 18px 22px;
  background: var(--z-brand); color: #fff;
}
.mini-cart__head h3 { margin: 0; font-size: 16px; font-weight: 700; display: flex; align-items: center; gap: 9px; }
.mini-cart__head h3::before {
  content: ""; width: 22px; height: 22px; flex: 0 0 22px;
  background: currentColor; -webkit-mask: center/contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 3h2l2.4 12.3a1.6 1.6 0 0 0 1.6 1.3h8.6a1.6 1.6 0 0 0 1.6-1.2L22 8H6'/%3E%3Ccircle cx='9.5' cy='20' r='1.4'/%3E%3Ccircle cx='18' cy='20' r='1.4'/%3E%3C/svg%3E");
          mask: center/contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 3h2l2.4 12.3a1.6 1.6 0 0 0 1.6 1.3h8.6a1.6 1.6 0 0 0 1.6-1.2L22 8H6'/%3E%3Ccircle cx='9.5' cy='20' r='1.4'/%3E%3Ccircle cx='18' cy='20' r='1.4'/%3E%3C/svg%3E");
}
.mini-cart__close { border: 0; background: rgba(255,255,255,.18); width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: #fff; transition: background .2s var(--z-ease); }
.mini-cart__close:hover { background: rgba(255,255,255,.3); }
.mini-cart__body { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; }

/* empty state */
.mini-cart__body .woocommerce-mini-cart__empty-message { margin: auto; text-align: center; color: var(--z-ink-soft); font-size: 14px; padding: 40px 10px; }
.mini-cart__body .woocommerce-mini-cart__empty-message::before {
  content: ""; display: block; width: 70px; height: 70px; margin: 0 auto 16px; border-radius: 50%;
  background: var(--z-brand-light) center/32px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff4c6c' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 3h2l2.4 12.3a1.6 1.6 0 0 0 1.6 1.3h8.6a1.6 1.6 0 0 0 1.6-1.2L22 8H6'/%3E%3Ccircle cx='9.5' cy='20' r='1.4'/%3E%3Ccircle cx='18' cy='20' r='1.4'/%3E%3C/svg%3E");
}

/* item list */
.mini-cart__body ul.cart_list, .woocommerce ul.cart_list, .woocommerce ul.product_list_widget { list-style: none; margin: 0; padding: 0; }
.mini-cart__body ul.cart_list li, .woocommerce ul.cart_list li, .woocommerce ul.product_list_widget li {
  position: relative; padding: 12px; margin-bottom: 10px; background: #fff; border: 1px solid var(--z-line);
  border-radius: var(--z-radius-sm); display: flex; gap: 12px; align-items: center;
}
.mini-cart__body ul.cart_list li a:not(.remove) { display: flex; gap: 12px; align-items: center; flex: 1; }
.mini-cart__body li img,
.mini-cart__body ul.cart_list li img,
.woocommerce ul.cart_list li img, .woocommerce ul.product_list_widget li img { width: 58px !important; height: 58px !important; max-width: 58px !important; min-width: 0 !important; object-fit: cover; border-radius: 9px; float: none !important; margin: 0 !important; flex: 0 0 58px !important; display: inline-block !important; }
.woocommerce ul.cart_list li a { font-size: 13px; font-weight: 500; color: var(--z-ink); line-height: 1.6; }
.woocommerce ul.cart_list li .quantity { display: block; margin-top: 4px; font-size: 12.5px; color: var(--z-brand); font-weight: 700; }
.woocommerce ul.cart_list li a.remove {
  position: absolute; top: 8px; inset-inline-start: 8px; width: 22px; height: 22px; line-height: 20px;
  text-align: center; color: var(--z-ink-soft) !important; font-size: 15px; border-radius: 50%; background: var(--z-bg-soft);
}
.woocommerce ul.cart_list li a.remove:hover { background: var(--z-danger); color: #fff !important; }

/* total + buttons pinned near bottom */
.mini-cart__body .woocommerce-mini-cart__total { display: flex; justify-content: space-between; align-items: center; padding: 16px; margin-top: auto; background: #fff; border: 1px solid var(--z-line); border-radius: var(--z-radius-sm); font-size: 14px; }
.mini-cart__body .woocommerce-mini-cart__total strong { color: var(--z-ink); }
.mini-cart__body .woocommerce-mini-cart__total .amount, .mini-cart__body .woocommerce-Price-amount { color: var(--z-brand); font-weight: 700; font-size: 16px; }
.mini-cart__body .woocommerce-mini-cart__buttons { display: flex; gap: 10px; margin: 12px 0 0; padding: 0; }
.mini-cart__body .woocommerce-mini-cart__buttons a { flex: 1; text-align: center; margin: 0; }
.mini-cart__body .woocommerce-mini-cart__buttons a.button:not(.checkout) { background: #fff; border: 1px solid var(--z-line); color: var(--z-ink); }
.mini-cart__body .woocommerce-mini-cart__buttons a.checkout { background: var(--z-brand); color: #fff; box-shadow: 0 6px 16px rgba(255,76,108,.28); }

/* ---------- Testimonials ---------- */
.pc-viewport > .testimonials { width: max-content; max-width: none; }
.testimonials { display: flex; flex-wrap: nowrap; gap: 18px; width: max-content; padding: 4px 0; }
.testimonial {
  flex: 0 0 clamp(280px, 30vw, 340px); width: clamp(280px, 30vw, 340px); margin: 0;
  background: #fff; border: 1px solid var(--z-line); border-radius: var(--z-radius); padding: 24px;
  display: flex; flex-direction: column; gap: 12px;
}
.testimonial__stars { display: flex; gap: 3px; color: #f5a623; }
.testimonial__text { margin: 0; font-size: 14px; line-height: 2; color: var(--z-ink-soft); flex: 1; }
.testimonial__author { display: flex; align-items: center; gap: 12px; margin: 0; }
.testimonial__avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--z-brand-light); color: var(--z-brand); display: grid; place-items: center; font-weight: 700; font-size: 17px; flex: 0 0 44px; }
.testimonial__name { display: block; font-weight: 700; font-size: 14px; color: var(--z-ink); }
.testimonial__meta { font-size: 12px; color: var(--z-ink-soft); }

/* ---------- WooCommerce my-account ---------- */
.woocommerce-account.logged-in .woocommerce { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 30px; align-items: start; }
.woocommerce-account.logged-in .woocommerce > .woocommerce-notices-wrapper { grid-column: 1 / -1; }
.woocommerce-account nav.woocommerce-MyAccount-navigation { grid-column: 1; min-width: 0; background: #fff; border: 1px solid var(--z-line); border-radius: var(--z-radius); padding: 10px; }
.woocommerce-account nav.woocommerce-MyAccount-navigation ul { list-style: none; margin: 0; padding: 0; }
.woocommerce-account nav.woocommerce-MyAccount-navigation li { border: 0; }
.woocommerce-account nav.woocommerce-MyAccount-navigation li a { display: block; padding: 12px 14px; border-radius: 10px; font-size: 14px; color: var(--z-ink); }
.woocommerce-account nav.woocommerce-MyAccount-navigation li a:hover { background: var(--z-bg-soft); }
.woocommerce-account nav.woocommerce-MyAccount-navigation li.is-active a { background: var(--z-brand); color: #fff; }
.woocommerce-account .woocommerce-MyAccount-content { grid-column: 2; background: #fff; border: 1px solid var(--z-line); border-radius: var(--z-radius); padding: 26px; min-width: 0; overflow-x: auto; }
.woocommerce-account .woocommerce-MyAccount-content table { width: 100%; }
/* login / register forms */
.woocommerce-account:not(.logged-in) .woocommerce { display: block; max-width: 900px; margin-inline: auto; }
.woocommerce .col2-set { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.woocommerce .col2-set .col-1, .woocommerce .col2-set .col-2 { width: auto; float: none; }
.woocommerce form.login, .woocommerce form.register { border: 1px solid var(--z-line); border-radius: var(--z-radius); padding: 26px; }
.woocommerce-form-login__rememberme { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- Back to top ---------- */
.to-top { position: fixed; inset-inline-start: 20px; bottom: 20px; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--z-brand); color: #fff; box-shadow: var(--z-shadow); display: grid; place-items: center; opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .25s var(--z-ease); z-index: 90; }
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .woocommerce ul.products, ul.products.product-grid { grid-template-columns: repeat(3, 1fr); }
  .posts-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .nav-toggle { display: flex; order: -1; }
  .main-navigation { position: fixed; inset: 0 0 0 auto; width: min(84vw, 340px); background: #fff; transform: translateX(100%); transition: transform .3s var(--z-ease); z-index: 200; overflow-y: auto; box-shadow: var(--z-shadow); border-top: 0; }
  .main-navigation.is-open { transform: translateX(0); }
  .main-navigation__inner { flex-direction: column; align-items: stretch; }
  .mega { flex-direction: column; }
  .mega__trigger { width: 100%; justify-content: space-between; border-radius: 0; }
  .mega__panel { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; border-radius: 0; padding: 8px 14px; display: none; }
  .mega.is-open .mega__panel { display: block; }
  .mega__grid { grid-template-columns: 1fr; gap: 14px; }
  .main-navigation .nav-menu { flex-direction: column; gap: 0; padding: 20px 0; }
  .main-navigation .nav-menu > li { border-bottom: 1px solid var(--z-line); }
  .main-navigation .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding-inline-start: 16px; }
  body.nav-open { overflow: hidden; }
  .nav-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 150; opacity: 0; visibility: hidden; transition: opacity .3s var(--z-ease); }
  .nav-backdrop.is-open { opacity: 1; visibility: visible; }
  .hero-banners__grid { grid-template-columns: 1fr; }
  .hero-banners__side { grid-template-rows: none; grid-template-columns: 1fr 1fr; }
  .hero-slider { aspect-ratio: 1004 / 420; }
  .hero-banner { aspect-ratio: 512 / 337; }
  .woocommerce div.product { grid-template-columns: 1fr; gap: 22px; }
  .header-search { order: 3; flex-basis: 100%; max-width: none; }
  .site-header__inner { flex-wrap: wrap; }
  .site-footer__top { grid-template-columns: 1fr 1fr; gap: 26px; }
  .posts-grid--home { grid-template-columns: repeat(2, 1fr); }
  .woocommerce-account.logged-in .woocommerce { grid-template-columns: 1fr; }
  .woocommerce-account nav.woocommerce-MyAccount-navigation, .woocommerce-account .woocommerce-MyAccount-content { grid-column: 1; }
  .woocommerce-checkout form.checkout.woocommerce-checkout { grid-template-columns: 1fr; }
  .woocommerce-checkout #order_review_heading, .woocommerce-checkout #order_review { grid-column: 1; }
  .woocommerce-checkout #order_review { position: static; }
  .woocommerce div.product { grid-template-columns: 1fr; }
  .topbar__text { display: none; }
  .topbar__inner { justify-content: center; }
}
@media (max-width: 640px) {
  .woocommerce ul.products, ul.products.product-grid,
  .trust__grid { grid-template-columns: repeat(2, 1fr); }
  .posts-grid { grid-template-columns: 1fr; }
  .site-footer__top { grid-template-columns: 1fr 1fr; }
  .footer-about { grid-column: 1 / -1; }
  .posts-grid--home { grid-template-columns: 1fr; }
  .woocommerce .col2-set { grid-template-columns: 1fr; }
  .site-footer__bar-inner { flex-direction: column; text-align: center; }
  .shop-layout.has-sidebar, .content-layout.has-sidebar { grid-template-columns: 1fr; }
  .shop-layout.has-sidebar .site-main, .shop-layout.has-sidebar .shop-sidebar { grid-column: 1; grid-row: auto; }
  .shop-layout.has-sidebar .shop-sidebar { order: 2; }
  .shop-layout.has-sidebar .site-main { order: 1; }
  .sidebar, .shop-sidebar { position: static; }
  .woocommerce ul.products, ul.products.product-grid { grid-template-columns: repeat(2, 1fr); }
}
