/* ==========================================================================
   Front page — the approved design ("Html → Body"), 1284px comp.
   Loaded on the front page only, after every other sheet, so each rule here
   wins by order and none of them touches another template.
   ========================================================================== */

:root {
  --hm-paper: #FAF9F6;
  --hm-line: #EFECE4;
  --hm-card: #FFFFFF;
  --hm-muted: #7A7A75;
  --hm-amber: #F7A600;
  --hm-brand-ink: #F66F00;
}
body { background: var(--hm-paper); }

/* The old page pinned the hero and slid white sections over it. The comp is a
   plain scroll on a warm ground, so the pin and the white grounds both go. */
/* Container widths follow Bootstrap 5's breakpoints: full width under 576px,
   then 540 / 720 / 960 / 1140 / 1320 with a 12px gutter each side. The
   article reading measure (.wrap--read) keeps its own width. */
.wrap { max-width: none; }
@media (min-width: 576px)  { .wrap { max-width: 540px;  --gutter: 12px; } }
@media (min-width: 768px)  { .wrap { max-width: 720px; } }
@media (min-width: 992px)  { .wrap { max-width: 960px; } }
@media (min-width: 1200px) { .wrap { max-width: 1140px; } }
@media (min-width: 1400px) { .wrap { max-width: 1320px; } }
.wrap.wrap--read { max-width: min(calc(var(--wrap-read) + var(--gutter) * 2), 100%); }
.home .hero { position: static; padding-block: var(--s5) 0; }
.home .site-main > .section,
.home .site-main > .trust { background: transparent; }
.home .section--rule { border-top: 0; }

/* ------------------------------------------------------------- shared head */

.hm-section { padding-block: 72px 0; }

.hm-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--s5);
  margin-bottom: 32px;
}
.hm-head__title,
.hm-band__title {
  margin: 0;
  font-size: clamp(1.35rem, 1rem + 1.1vw, 1.75rem);
  line-height: 1.4;
  font-weight: 800;
  color: var(--ink-deep);
}

.hm-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 8px;
  color: var(--hm-brand-ink);
  font-size: var(--t-xs);
  font-weight: 500;
  line-height: 1.7;
}
.hm-eyebrow--flame svg { color: #E4571B; }
.hm-eyebrow--lost,
.hm-eyebrow--rehome {
  padding: 4px 14px;
  border-radius: var(--r-pill);
  font-weight: 700;
}
.hm-eyebrow--lost   { background: #FDE8EB; color: #BE123C; }
.hm-eyebrow--rehome { background: #D5F5E6; color: #047857; }
.hm-eyebrow__dot { width: 8px; height: 8px; border-radius: 50%; background: #E11D48; }

.hm-more {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  min-height: 40px;
  padding: 0 18px;
  border: 1px solid #DDD9CF;
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--ink);
  font-size: var(--t-xs);
  font-weight: 700;
  text-decoration: none;
}
.hm-more:hover { border-color: var(--brand); color: var(--hm-brand-ink); }

/* -------------------------------------------------------------------- hero */

.home .hero__banner {
  grid-template-columns: minmax(0, 1fr) minmax(0, 590px);
  gap: 48px;
  padding: 52px 56px;
  border: 1px solid #F8EBB8;
  border-radius: 32px;
  background: linear-gradient(135deg, #FFFDF7 0%, #FFF9E6 60%, #FFFCF1 100%);
}
.hero__visual { position: relative; }
.home .hero__banner .hero__panel {
  aspect-ratio: 617 / 345;
  border-radius: 20px;
  background: #F8F2E6;
  box-shadow: 0 22px 44px -22px rgba(120, 80, 20, .4);
}
.hero__float {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 14px 30px -12px rgba(60, 40, 10, .28);
}
.hero__float--badge  { top: -18px; left: -24px; }
.hero__float--rating { bottom: -20px; right: 28px; }
.hero__float-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--hm-amber);
  color: #fff;
}
.hero__float-text { display: flex; flex-direction: column; line-height: 1.5; }
.hero__float-text strong { font-size: var(--t-sm); color: var(--ink-deep); font-weight: 800; }
.hero__float-text small { color: var(--hm-muted); font-size: 11.5px; }
.hero__stars { color: var(--hm-amber); font-size: 15px; letter-spacing: 1px; padding-inline-end: 12px; border-inline-end: 1px solid var(--hm-line); }
.hero__actions { gap: 14px; margin-top: 8px; }
.hero__actions .btn,
.hero__actions .btn--ghost { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding-inline: 26px; }

/* ------------------------------------------------------------- trust strip */

.trust { padding-block: 44px 0; border: 0; }
.trust__grid {
  gap: 20px;
  padding: 26px 32px;
  background: var(--hm-card);
  border: 1px solid var(--hm-line);
  border-radius: 26px;
}
.trust__item {
  justify-content: flex-start;
  gap: 14px;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 0;
}
.trust__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
}
.trust__item .trust__icon svg { box-sizing: border-box; padding: 0; background: none; border-radius: 0; }
.trust__icon--amber { background: #FEF7DC; color: #F66F00; }
.trust__icon--green { background: #E3F7EE; color: #0B8A57; }
.trust__icon--blue  { background: #E6F2FE; color: #0A62B0; }
.trust__icon--rose  { background: #FDEBEF; color: #CC1F3D; }
.trust__text { display: flex; flex-direction: column; gap: 2px; line-height: 1.6; }
.trust__text strong { font-size: var(--t-sm); font-weight: 800; color: var(--ink-deep); }
.trust__text small { font-size: 12px; color: var(--hm-muted); }
.trust__item span { white-space: normal; font-weight: 400; }

/* -------------------------------------------------------- category tiles */

.home .cattiles { gap: 20px; }
.home .cattile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 14px 14px 16px;
  background: var(--hm-card);
  border: 1px solid var(--hm-line);
  border-radius: 22px;
  text-decoration: none;
  transition: box-shadow .18s ease, transform .18s ease;
}
.home .cattile:hover { box-shadow: 0 16px 32px -18px rgba(60, 40, 10, .3); transform: translateY(-2px); }
.home .cattile__media {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  background: #F6F4EF;
  overflow: hidden;
}
.home .cattile__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.home .cattile__name { color: var(--ink-deep); font-size: var(--t-sm); font-weight: 800; text-align: center; }
.home .cattile__count {
  padding: 2px 14px;
  border-radius: var(--r-pill);
  background: #F1EFEA;
  color: var(--hm-muted);
  font-size: 11.5px;
}

/* ---------------------------------------------------------- product cards */

.hm-products { gap: 24px 20px; align-items: stretch; }
.card--home {
  display: flex;
  flex-direction: column;
  background: var(--hm-card);
  border: 1px solid var(--hm-line);
  border-radius: 22px;
  overflow: hidden;
}
.card--home .card__media { position: relative; display: block; aspect-ratio: 1 / .92; background: #F3F0EA; overflow: hidden; }
.card--home .card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card--home .card__badge {
  position: absolute;
  inset-block-start: 12px;
  inset-inline-start: 12px;
  padding: 3px 12px;
  border-radius: var(--r-pill);
  background: #E11D48;
  color: #fff;
  font-size: 11.5px;
  font-weight: 800;
}
.card--home .card__body { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px 18px; }
.card--home .card__meta { display: flex; align-items: center; justify-content: space-between; margin: 0; font-size: 12px; color: var(--hm-muted); }
.card--home .card__rate { display: inline-flex; align-items: center; gap: 3px; color: #F66F00; font-weight: 800; }
.card--home .card__rate svg { fill: currentColor; }
.card--home .card__title { margin: 0; font-size: var(--t-sm); line-height: 1.85; font-weight: 800; }
.card--home .card__title a { color: var(--ink-deep); text-decoration: none; }
.card--home .card__desc {
  margin: 0;
  color: var(--hm-muted);
  font-size: 12px;
  line-height: 1.9;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card--home .card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 6px;
  padding-top: 14px;
  border-top: 1px solid #F3F1EB;
}
.card--home .card__price { margin: 0; color: var(--hm-brand-ink); font-size: var(--t-lg); font-weight: 800; }
.card--home .card__price del { display: block; color: var(--hm-muted); font-size: 11.5px; font-weight: 400; }
.card--home .card__price ins { text-decoration: none; }
.card--home .card__add {
  flex: none;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #FFF3DC;
  color: #F66F00;
}
.card--home .card__add:hover { background: var(--hm-amber); color: #fff; }

/* ------------------------------------------------------------- ad bands */

.hm-band { padding-block: 72px 0; }
.hm-band__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--s5);
  margin-bottom: 32px;
}
.hm-band__blurb { margin: 10px 0 0; max-width: 620px; color: var(--hm-muted); font-size: var(--t-sm); line-height: 1.9; }
.hm-band__cta {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 26px;
  border-radius: var(--r-pill);
  color: #fff;
  font-size: var(--t-sm);
  font-weight: 800;
  text-decoration: none;
}
.hm-band--lost   .hm-band__cta { background: #E11D48; box-shadow: 0 14px 26px -12px rgba(225, 29, 72, .6); }
.hm-band--rehome .hm-band__cta { background: #047857; box-shadow: 0 14px 26px -12px rgba(4, 120, 87, .6); }
.hm-band__cta:hover { filter: brightness(.94); color: #fff; }

.hm-band--lost .hm-band__panel {
  padding: 34px;
  border: 1px solid #FBE3E6;
  border-radius: 32px;
  background: linear-gradient(180deg, #FFFFFF 0%, #FFF4F5 100%);
}
.hm-band__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; align-items: start; }

.adc {
  display: flex;
  flex-direction: column;
  padding: 18px;
  background: var(--hm-card);
  border: 1px solid var(--hm-line);
  border-radius: 22px;
}
.adc__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 14px; min-height: 28px; }
.adc__pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 12px;
  border-radius: var(--r-pill);
  font-size: 11.5px;
  font-weight: 800;
  line-height: 1.7;
}
.adc--lost   .adc__pill { background: #FDECEF; color: #BE123C; }
.adc--found  .adc__pill { background: #E3F7EE; color: #0B7A4D; }
.adc--rehome .adc__pill { background: #E3F7EE; color: #047857; }
.adc__dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.adc__code { color: var(--hm-muted); font-size: 11px; }
.adc__paw { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #F4F2EC; color: #8A8A85; }

.adc__media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3.1;
  border-radius: 16px;
  background: linear-gradient(160deg, #F7F5F3 0%, #FFFBEF 100%);
  border: 1px solid #F1EEE7;
  overflow: hidden;
}
.adc--lost .adc__media { background: linear-gradient(160deg, #FDF3F4 0%, #FFFFFF 100%); border-color: #F8E4E7; }
.adc--found .adc__media { background: linear-gradient(160deg, #EAF8F1 0%, #FFFFFF 100%); border-color: #DDF1E7; }
.adc__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.adc__cap {
  position: absolute;
  inset-inline-end: 10px;
  inset-block-end: 10px;
  padding: 3px 10px;
  border-radius: 8px;
  background: rgba(31, 27, 24, .82);
  color: #fff;
  font-size: 10.5px;
}
.adc__noimg {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px;
  color: #C8C4BA;
  text-align: center;
}
.adc--lost .adc__noimg { color: #F5A3B0; }
.adc__noimg small { color: var(--ink-soft); font-size: 12px; font-weight: 700; }

.adc__body { flex: 1; padding: 16px 2px 14px; }
.adc__title { margin: 0 0 8px; font-size: var(--t-lg); line-height: 1.6; font-weight: 800; }
.adc__title a { color: var(--ink-deep); text-decoration: none; }
.adc__detail { margin: 0 0 8px; color: var(--ink-soft); font-size: 12.5px; line-height: 1.8; }
.adc__loc { display: flex; align-items: center; gap: 5px; margin: 0; color: var(--hm-muted); font-size: 11.5px; }
.adc__loc svg { flex: none; }

.adc__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  margin-top: 4px;
  border-radius: 14px;
  background: #1F1B18;
  color: #fff;
  font-size: 12.5px;
  font-weight: 800;
  text-decoration: none;
}
.adc__cta:hover { background: #000; color: #fff; }
.adc--found .adc__cta { background: #fff; border: 1px solid #D9D5CB; color: var(--ink-deep); }
.adc--found .adc__cta:hover { background: #F6F4EF; color: var(--ink-deep); }
.adc--rehome .adc__cta { background: #E3F7EE; color: #047857; }
.adc--rehome .adc__cta:hover { background: #CFF0E1; color: #047857; }
.adc__body { border-bottom: 1px solid #F3F1EB; margin-bottom: 14px; }

/* --------------------------------------------------------------- magazine */

.home .magazine { padding-block: 84px 0; border: 0; }
.mag__more { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.mcard--wide .mcard__excerpt {
  margin: 8px 16px 0;
  color: var(--hm-muted);
  font-size: 12.5px;
  line-height: 1.95;
}
.mcard--wide .mcard__title { margin-bottom: 0; }
.mcard--wide .mcard__foot { margin-top: 14px; }
.mcard__excerpt + .mcard__foot { margin-top: 14px; }
.picks__item:first-child .picks__n { color: #F08A00; }
.picks__n { color: #DAD7CF; }
.home .mag__feature { border-bottom: 1px solid #E9E5DA; }
.home .mcard, .home .lead, .home .mag__col--narrow { background: var(--hm-card); border-color: var(--hm-line); border-radius: 24px; }

/* ----------------------------------------------------------------- footer */

.footer { background: var(--hm-paper); border-top: 1px solid #ECE8DF; margin-top: 84px; }
.footer__about-brand { max-width: 380px; margin: 16px 0 0; color: var(--ink-soft); font-size: 13px; line-height: 2.1; }
.footer__title::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-inline-end: 8px;
  border-radius: 50%;
  background: var(--hm-amber);
}
.footer__grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; }
.footer__logo img { height: 60px; }

/* ----------------------------------------------------------------- narrow */

@media (max-width: 1100px) {
  .hm-band__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home .hero__banner { padding: 40px 32px; gap: 32px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .home .hero__banner { grid-template-columns: 1fr; }
  .hero__visual { order: 2; margin-top: 12px; }
  .hero__float--badge { left: 12px; top: -14px; }
  .hero__float--rating { right: 12px; }
  .hm-head, .hm-band__head { flex-direction: column; align-items: flex-start; }
  .trust__grid { grid-template-columns: repeat(2, 1fr); padding: 20px; }
  .mag__more { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .home .hero__banner { padding: 28px 20px; border-radius: 24px; }
  .hm-section, .hm-band { padding-block: 52px 0; }
  .hm-band--lost .hm-band__panel { padding: 20px; border-radius: 24px; }
  .hm-band__grid { grid-template-columns: 1fr; }
  .trust__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
}

/* Magazine links */
.hm-link { display: inline-flex; align-items: center; gap: 6px; color: var(--hm-brand-ink); font-size: var(--t-xs); font-weight: 700; text-decoration: none; }
.hm-link:hover { text-decoration: underline; }
.home .mag__head { align-items: flex-end; }

/* Two-up product cards are ~165px wide: the price takes a row of its own and
   the cart button sits under it, so neither is clipped. */
@media (max-width: 700px) {
  .card--home .card__foot { flex-wrap: wrap; }
  .card--home .card__price { flex: 1 1 100%; font-size: var(--t-md); }
  .card--home .card__body { padding: 14px; }
}

/* Titles one step smaller: hero headline, magazine heading, join band. */
.home .hero__title { font-size: clamp(1.7rem, 1.2rem + 1.7vw, 2.5rem); }
.home .mag__title { font-size: clamp(1.35rem, 1rem + 1.1vw, 1.75rem); }
.home .mag__title--sm { font-size: clamp(1.25rem, 1rem + .8vw, 1.5rem); }
.joinband__title { font-size: var(--t-lg); }

/* Four best-seller cards: 4 across, then 2 + 2 — never 3 + 1. */
@media (max-width: 1100px) {
  .hm-products.grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* The status dot next to «دیوار اطلاع‌رسانی سراسری پت‌بان» pulses, as in the
   comp: a live noticeboard. Off for anyone who asks for reduced motion. */
.hm-eyebrow__dot { position: relative; flex: none; }
.hm-eyebrow__dot::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: inherit;
  animation: hm-ping 1.6s cubic-bezier(0, 0, .2, 1) infinite;
}
@keyframes hm-ping { 0% { transform: scale(1); opacity: .7; } 75%, 100% { transform: scale(2.6); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .hm-eyebrow__dot::after { animation: none; } }

/* ------------------------------------------------ Footer, as drawn in the comp */

/* Join band: button on the trailing end of the pill, title 22px with the gift. */
.joinband {
  margin-top: 0;
  padding: 32px 36px;
  border-color: #E6E9F7;
  background: linear-gradient(110deg, #F4F6FF 0%, #FAF8FF 60%, #FFFDF9 100%);
}
.joinband__title { margin: 0 0 6px; font-size: 1.375rem; font-weight: 800; }
.joinband__text { font-size: 13px; }
.joinband__form { flex: 0 1 450px; }
.joinband__row { flex-direction: row-reverse; padding: 5px; }
.joinband__go { min-height: 42px; padding-inline: 22px; font-weight: 800; font-size: 13.5px; }
.joinband .joinband__input { text-align: right; font-size: 13px; }

/* Brand lockup */
.footer__lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-deep);
  text-decoration: none;
}
.footer__lockup-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #F59E0B;
  color: #fff;
}
.footer__lockup-name { font-size: 1.5rem; font-weight: 800; line-height: 1; }
.footer__lockup-latin { color: var(--hm-amber); font-size: 11px; font-weight: 700; letter-spacing: .12em; }
.footer__about-brand { max-width: 400px; margin-top: 18px; font-size: 12.5px; line-height: 2.1; }
.footer__follow-row { display: flex; align-items: center; gap: 14px; margin-top: 18px; }
.footer__follow { color: var(--ink-soft); font-size: 12.5px; }
.footer__follow-row .socials { margin: 0; }

/* Link columns: no bullets, 13px muted, a little more air. */
.menu--footer { gap: 14px; }
.menu--footer li { padding-inline-start: 0; }
.menu--footer li::before { display: none; }
.menu--footer a { color: #6B6B66; font-size: 13px; }
.menu--footer a:hover { color: var(--hm-brand-ink); }
.footer__title { margin-bottom: 26px; font-size: 1rem; font-weight: 800; }

/* Contact column */
.footer__contact-text { margin: 0 0 14px; color: #6B6B66; font-size: 12.5px; line-height: 2; max-width: 300px; }
.footer__phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--hm-brand-ink) !important;
  font-size: 1.05rem;
  font-weight: 800;
  text-decoration: none;
}

/* Base bar: copyright on one end, the made-with-love line on the other. */
.footer__base { border-top: 1px solid #E9E5DA; }
.footer__base-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
  padding-block: 22px 26px;
  font-size: 12px;
  color: #77776F;
}
.footer__made { display: inline-flex; align-items: center; gap: 6px; }
.footer__made svg { color: #E11D48; fill: #E11D48; }
@media (max-width: 700px) { .footer__base-row { flex-direction: column; align-items: flex-start; } }

.footer .footer__lockup { color: var(--ink-deep); }
.footer .footer__lockup:hover { color: var(--ink-deep); }

/* ==========================================================================
   Contact page (template-contact.php) — the "contact" design.
   ========================================================================== */

body.page-template-template-contact { background: #FAF8FF; }
.contact { padding-bottom: 72px; }

.contact__strip { background: #fff; border-bottom: 1px solid #EFEDF6; }
.contact__strip-row { display: flex; align-items: center; gap: 28px; min-height: 44px; font-size: 12.5px; }
.contact__strip-label { color: var(--ink-soft); font-weight: 700; }
.contact__strip-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; text-decoration: none; }
.contact__strip-link--lost { color: #BE185D; }
.contact__strip-link--rehome { color: #047857; }

.contact__hero {
  margin-top: 24px;
  padding: 40px 48px 44px;
  border: 1px solid #ECE9F6;
  border-radius: 32px;
  background:
    radial-gradient(60% 90% at 62% 82%, rgba(160, 235, 220, .55) 0%, rgba(160, 235, 220, 0) 70%),
    linear-gradient(100deg, #E9E6F5 0%, #EEF0FF 40%, #FCFCFF 100%);
}
.contact__crumbs { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; color: var(--ink-soft); font-size: 12px; }
.contact__crumbs a { color: var(--ink-soft); text-decoration: none; }
.contact__crumbs strong { color: #F66F00; }
.contact__title { margin: 0 0 14px; font-size: clamp(1.6rem, 1.1rem + 1.8vw, 2.4rem); line-height: 1.5; font-weight: 800; color: #14172B; }
.contact__title em { color: #F59E0B; font-style: normal; }
.contact__lead { max-width: 780px; margin: 0 0 22px; color: #4A4D5C; font-size: 15px; line-height: 2; }
.contact__pills { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; padding: 0; list-style: none; }
.contact__pills li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; background: #fff; box-shadow: 0 6px 16px -10px rgba(40, 30, 90, .35); font-size: 12.5px; font-weight: 700; }
.contact__pills svg { color: #047857; }

.contact__cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 28px; align-items: start; }
.ccard { display: flex; flex-direction: column; gap: 12px; padding: 28px; background: #fff; border: 1px solid #F0EDF7; border-radius: 26px; box-shadow: 0 16px 36px -28px rgba(40, 30, 90, .4); }
.ccard__icon { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 18px; }
.ccard__icon--amber { background: #FDDCB2; color: #F66F00; }
.ccard__icon--green { background: #6FF0C4; color: #065F46; }
.ccard__icon--rose  { background: #FDD9E7; color: #BE185D; }
.ccard__title { margin: 8px 0 0; font-size: 1.15rem; font-weight: 800; color: #14172B; }
.ccard__text { margin: 0; color: #5B5E6D; font-size: 13px; line-height: 1.95; }
.ccard__box { display: flex; align-items: center; gap: 8px; padding: 14px 16px; border-radius: 14px; background: #F2F3FF; color: #3F4257; font-size: 12.5px; line-height: 1.8; }
.ccard__chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.ccard__chips a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px; background: #F2F3FF; color: #3F4257; font-size: 12.5px; font-weight: 700; text-decoration: none; }
.ccard__dot { width: 7px; height: 7px; border-radius: 50%; background: #047857; }
.ccard__cta { display: flex; align-items: center; justify-content: center; min-height: 46px; margin-top: 8px; border-radius: 999px; background: #065F46; color: #fff; font-size: 13px; font-weight: 800; text-decoration: none; }
.ccard__cta:hover { background: #064E3B; color: #fff; }
.ccard__link { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; padding-top: 16px; border-top: 1px solid #F0EDF7; font-weight: 800; text-decoration: none; }
.ccard__link--phone { color: #F66F00; font-size: 1.3rem; letter-spacing: .02em; }
.ccard__link--petban { color: #BE185D; font-size: 14px; }

.cform { max-width: 712px; margin: 40px auto 0; padding: 32px 32px 36px; background: #fff; border: 1px solid #F0EDF7; border-radius: 30px; box-shadow: 0 20px 44px -30px rgba(40, 30, 90, .4); }
.cform__eyebrow { display: flex; align-items: center; gap: 6px; margin: 0 0 8px; color: #F66F00; font-size: 12px; font-weight: 700; }
.cform__eyebrow--center { justify-content: center; }
.cform__title { margin: 0 0 6px; font-size: 1.5rem; font-weight: 800; color: #14172B; }
.cform__sub { margin: 0 0 24px; color: #5B5E6D; font-size: 13px; }
.cform__msg { margin: 0 0 20px; padding: 12px 16px; border-radius: 14px; font-size: 13px; line-height: 1.8; }
.cform__msg--ok { background: #E3F7EE; color: #065F46; }
.cform__msg--bad { background: #FDECEF; color: #BE123C; }
.cform__trap { position: absolute; inset-inline-start: -9999px; }
.cform__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; margin-bottom: 18px; }
.cform__field { display: flex; flex-direction: column; gap: 8px; }
.cform__field > span { font-size: 12px; font-weight: 800; color: #1F2233; }
.cform__field b { color: #E11D48; }
.cform__field small { font-weight: 400; color: var(--ink-soft); }
.cform input[type="text"], .cform input[type="tel"], .cform select, .cform textarea {
  width: 100%;
  min-height: 48px;
  padding: 10px 16px;
  border: 1px solid #E7CDB0;
  border-radius: 16px;
  background: #FAF8FF;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
}
.cform textarea { min-height: 130px; resize: vertical; line-height: 1.9; }
.cform input::placeholder, .cform textarea::placeholder { color: #A5A3B3; }
.cform input:focus-visible, .cform select:focus-visible, .cform textarea:focus-visible { outline: 2px solid #F59E0B; outline-offset: 1px; }
.cform__drop { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 30px 16px; border: 2px dashed #E4D3C4; border-radius: 20px; background: #FDFBFF; color: #F66F00; text-align: center; cursor: pointer; }
.cform__drop:hover { border-color: #F59E0B; }
.cform__drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.cform__drop:focus-within { outline: 2px solid #F59E0B; outline-offset: 2px; }
.cform__drop-main { font-size: 13px; }
.cform__drop small { font-size: 11px; font-weight: 700; }
.cform__submit { display: inline-flex; align-items: center; gap: 10px; min-height: 50px; margin-top: 22px; padding: 0 32px; border: 0; border-radius: 999px; background: #F59E0B; color: #1C1917; font: inherit; font-size: 14px; font-weight: 800; cursor: pointer; }
.cform__submit:hover { background: #E08E00; }

.cfaq { margin-top: 40px; padding: 44px 40px 48px; background: #fff; border: 1px solid #F0EDF7; border-radius: 30px; }
.cfaq__title { margin: 0 0 8px; text-align: center; font-size: 1.5rem; font-weight: 800; color: #14172B; }
.cfaq__sub { margin: 0 0 32px; text-align: center; color: #5B5E6D; font-size: 13px; }
.cfaq__list { display: flex; flex-direction: column; gap: 14px; max-width: 770px; margin-inline: auto; }
.cfaq__item { border: 1px solid #EEEAF6; border-radius: 18px; background: #FAF8FF; }
.cfaq__item summary { display: flex; align-items: center; gap: 14px; padding: 16px 18px; font-size: 14px; font-weight: 800; color: #14172B; cursor: pointer; list-style: none; }
.cfaq__item summary::-webkit-details-marker { display: none; }
.cfaq__item summary::after { content: ''; margin-inline-start: auto; width: 8px; height: 8px; border-right: 2px solid #5B5E6D; border-bottom: 2px solid #5B5E6D; transform: rotate(45deg); transition: transform .18s ease; }
.cfaq__item[open] summary::after { transform: rotate(-135deg); }
.cfaq__n { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 50%; background: #FFDDB8; color: #F66F00; font-size: 13px; }
.cfaq__a { padding: 4px 22px 20px; border-top: 1px solid #EFEBF7; background: #fff; border-radius: 0 0 18px 18px; color: #4A4D5C; font-size: 13px; line-height: 2.1; }
.cfaq__a p { margin: 12px 0 0; }

@media (max-width: 900px) {
  .contact__cards { grid-template-columns: 1fr; }
  .contact__hero { padding: 28px 22px; }
  .contact__strip-row { flex-wrap: wrap; gap: 8px 18px; padding-block: 8px; }
  .cform { padding: 24px 18px 28px; }
  .cform__grid { grid-template-columns: 1fr; }
  .cfaq { padding: 28px 16px 32px; }
}
.cform__field + .cform__field, .cform > .cform__form > .cform__field { margin-top: 0; }
.cform__form > .cform__field { margin-bottom: 18px; }

/* ==========================================================================
   Cart — the "checkout" design (steps, free-shipping bar, items, summary).
   ========================================================================== */

.steps-bar { background: #fff; border-bottom: 1px solid var(--hm-line); }
.steps-bar__row { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 60px; }
.steps-bar__crumbs { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink-soft); }
.steps-bar__crumbs a { color: var(--ink-soft); text-decoration: none; }
.steps-bar__crumbs strong { color: var(--ink-deep); }
.steps { display: flex; align-items: center; gap: 12px; margin: 0; padding: 0; list-style: none; }
.steps__item { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 10px; border-radius: 999px; color: var(--ink-soft); font-size: 12px; font-weight: 700; }
.steps__item + .steps__item::before { content: '←'; margin-inline-end: 10px; color: #C9C5BA; }
.steps__n { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #E7E9FB; color: #4B4F7A; font-size: 12px; }
.steps__item.is-active { background: #FFE7C9; color: #F66F00; }
.steps__item.is-active .steps__n { background: #F66F00; color: #fff; }
.steps__item.is-done .steps__n { background: #047857; color: #fff; }

.site-main--flow { padding-bottom: 72px; }
.site-main--flow > .wrap { padding-top: 28px; }
.cartpage { display: flex; flex-direction: column; gap: 24px; }

.shipbar { display: flex; align-items: center; gap: 18px; padding: 22px 26px; border: 1px solid #CDEFE0; border-radius: 22px; background: linear-gradient(100deg, #F1FBF6 0%, #FFFFFF 70%); }
.shipbar__icon { display: grid; place-items: center; flex: none; width: 52px; height: 52px; border-radius: 16px; background: #C8F3E0; color: #047857; }
.shipbar__title { margin: 0; font-size: 1.05rem; font-weight: 800; color: #065F46; }
.shipbar__text { margin: 4px 0 0; color: var(--ink-soft); font-size: 12.5px; }
.shipbar__body { flex: 1; min-width: 0; }
.shipbar__track { flex: 0 0 min(36%, 260px); height: 8px; border-radius: 999px; background: #DDEFE7; overflow: hidden; }
.shipbar__track span { display: block; height: 100%; border-radius: inherit; background: #047857; transition: width .4s ease; }
.shipbar:not(.is-reached) { border-color: #F3E2BF; background: linear-gradient(100deg, #FFFAEE 0%, #fff 70%); }
.shipbar:not(.is-reached) .shipbar__icon { background: #FFE7C0; color: #F66F00; }
.shipbar:not(.is-reached) .shipbar__title { color: #F66F00; }
.shipbar:not(.is-reached) .shipbar__track { background: #F4E7CF; }
.shipbar:not(.is-reached) .shipbar__track span { background: #F59E0B; }

.cartpage__grid { display: grid; grid-template-columns: minmax(0, 1fr) 372px; gap: 24px; align-items: start; }
.cartpage__grid > .cartform { min-width: 0; }
.cartpage__grid > .cart-collaterals { min-width: 0; width: auto; float: none; }

.cartcard { background: #fff; border: 1px solid var(--hm-line); border-radius: 24px; overflow: hidden; }
.cartcard__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 24px; background: #FBFAFF; border-bottom: 1px solid #F0EEF6; }
.cartcard__title { display: inline-flex; align-items: center; gap: 10px; margin: 0; font-size: 1.1rem; font-weight: 800; }
.cartcard__title svg { color: #F59E0B; }
.cartcard__count { padding: 3px 12px; border-radius: 999px; background: #ECEBF5; color: var(--ink-soft); font-size: 11.5px; font-weight: 500; }
.cartcard__clear { color: #BE123C; font-size: 12px; font-weight: 700; text-decoration: none; }
.cartcard__clear:hover { text-decoration: underline; }

.citem { position: relative; display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 20px; padding: 22px 24px; border-bottom: 1px solid #F1EFF7; }
.citem:last-child { border-bottom: 0; }
.citem__media { position: relative; width: 128px; height: 128px; border-radius: 16px; overflow: hidden; background: #F3F0EA; }
.citem__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.citem__badge { position: absolute; inset-block-start: 8px; inset-inline-end: 8px; padding: 2px 9px; border-radius: 999px; background: #F59E0B; color: #fff; font-size: 11px; font-weight: 800; }
.citem__body { display: flex; flex-direction: column; gap: 8px; min-width: 0; padding-inline-end: 34px; }
.citem__cat { align-self: flex-start; padding: 2px 10px; border-radius: 8px; background: #FFF0DA; color: #F66F00; font-size: 11px; font-weight: 700; }
.citem__name { margin: 0; font-size: 1.05rem; line-height: 1.7; font-weight: 800; }
.citem__name a { color: var(--ink-deep); text-decoration: none; }
.citem .variation { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0; color: var(--ink-soft); font-size: 12px; }
.citem .variation dt, .citem .variation dd { display: inline; margin: 0; }
.citem .variation dd p { display: inline; margin: 0; }
.citem__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: 4px; }
.citem__price { display: flex; flex-direction: column; }
.citem__price del { color: var(--hm-muted); font-size: 12px; }
.citem__price strong { color: #F66F00; font-size: 1.2rem; font-weight: 800; }
.citem__remove { position: absolute; inset-block-start: 20px; inset-inline-start: 24px; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; color: var(--ink-soft) !important; font-size: 20px; line-height: 1; text-decoration: none; }
.citem__remove:hover { background: #FDECEF; color: #BE123C !important; }

.quantity--pill { display: inline-flex; align-items: center; border: 1px solid #DAD7E6; border-radius: 999px; background: #fff; }
.quantity--pill .qty { width: 44px; min-height: 40px; height: 40px; padding: 0; border: 0 !important; box-shadow: none !important; border-radius: 0; background: transparent !important; text-align: center; font: inherit; font-weight: 700; -moz-appearance: textfield; }
.quantity--pill .qty::-webkit-outer-spin-button, .quantity--pill .qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty__btn { display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent; color: var(--ink); font-size: 20px; line-height: 1; cursor: pointer; }
.qty__btn:hover { background: #FFF0DA; }

.cartextras { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; margin-top: 20px; }
.cartbox { padding: 20px 24px; background: #fff; border: 1px solid var(--hm-line); border-radius: 22px; }
.cartbox__title { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: .95rem; font-weight: 800; }
.cartbox__title svg { color: #F59E0B; }
.cartbox__row { display: flex; gap: 10px; }
.cartbox__row .input-text { flex: 1; min-width: 0; min-height: 46px; padding: 0 18px; border: 1px solid #E5E3F2; border-radius: 999px; background: #F5F4FD; font: inherit; font-size: 13px; }
.cartbox__btn { flex: none; min-width: 82px; min-height: 46px; padding: 0 22px; border: 0; border-radius: 999px; background: #1F2937; color: #fff; font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; }
.cartbox__btn:hover { background: #111827; }
.cartextras .cartform__update { justify-self: start; min-height: 40px; padding: 0 20px; border: 1px solid #DAD7E6; border-radius: 999px; background: #fff; color: var(--ink); font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; }
.cartextras .cartform__update:hover { border-color: var(--brand); color: var(--hm-brand-ink); }
.cartextras .cartform__update:disabled { opacity: .5; cursor: default; }

.ordsum { padding: 24px; background: #fff; border: 1px solid var(--hm-line); border-radius: 26px; }
.ordsum__title { display: flex; align-items: center; justify-content: space-between; margin: 0 0 16px; padding-bottom: 16px; border-bottom: 1px solid #EFEDF5; font-size: 1.15rem; font-weight: 800; }
.ordsum__title svg { color: var(--ink-soft); order: 2; }
.ordsum__table { width: 100%; border: 0; border-collapse: collapse; }
.ordsum__table th, .ordsum__table td { padding: 8px 0; border: 0; font-size: 13px; font-weight: 400; color: var(--ink-soft); vertical-align: middle; background: none; }
.ordsum__table td { text-align: left; color: var(--ink-deep); font-weight: 800; }
.ordsum__table .cart-discount td { color: #BE185D; }
.ordsum__table .order-total th, .ordsum__table .order-total td { padding-top: 18px; border-top: 1px dashed #E5E1D6; font-size: 1.05rem; color: var(--ink-deep); font-weight: 800; }
.ordsum__table .order-total td { color: #F66F00; font-size: 1.3rem; }
.ordsum__table .woocommerce-shipping-methods { margin: 0; padding: 0; list-style: none; text-align: left; font-size: 12.5px; }
.ordsum__go { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; margin-top: 8px; padding: 0 24px; border-radius: 999px; background: #047857 !important; color: #fff !important; font-size: 14px; font-weight: 800; text-decoration: none; box-shadow: 0 14px 26px -14px rgba(4, 120, 87, .6); }
.ordsum__go:hover { background: #065F46 !important; }
.ordsum__trust { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 20px 0 0; padding: 20px 0 0; border-top: 1px solid #EFEDF5; list-style: none; }
.ordsum__trust li { display: flex; align-items: center; gap: 8px; padding: 12px; border-radius: 14px; background: #F5F4FD; color: var(--ink-soft); font-size: 11.5px; font-weight: 700; line-height: 1.5; }
.ordsum__trust svg { flex: none; color: #F66F00; }
.ordsum__call { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; padding: 16px 20px; border: 1px solid var(--hm-line); border-radius: 20px; background: #F8F7FD; text-decoration: none; }
.ordsum__call-text { display: flex; flex-direction: column; font-size: 12px; color: var(--ink-soft); }
.ordsum__call-text strong { color: #F66F00; font-size: 1rem; }
.ordsum__call-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #fff; color: #F66F00; }

.cartpage__more { margin-top: 32px; padding-top: 32px; border-top: 1px solid #E9E5DA; }

@media (max-width: 1000px) {
  .cartpage__grid { grid-template-columns: 1fr; }
  .steps-bar__row { flex-direction: column; align-items: flex-start; padding-block: 12px; }
  .shipbar { flex-wrap: wrap; }
  .shipbar__track { flex-basis: 100%; }
}
@media (max-width: 600px) {
  .citem { grid-template-columns: 88px minmax(0, 1fr); gap: 14px; padding: 16px; }
  .citem__media { width: 88px; height: 88px; }
  .citem__foot { flex-direction: column; align-items: flex-start; }
  .steps { flex-wrap: wrap; gap: 6px; }
  .ordsum__trust { grid-template-columns: 1fr; }
}

/* -------------------------------------------------- Checkout (same language) */

.site-main--flow .woocommerce-info, .site-main--flow .woocommerce-message, .site-main--flow .woocommerce-error {
  margin: 0 0 20px;
  padding: 14px 20px;
  border: 1px solid #DDE6F7;
  border-inline-start: 4px solid #3B82F6;
  border-radius: 16px;
  background: #F1F6FF;
  color: var(--ink-deep);
  font-size: 13px;
  list-style: none;
}
.site-main--flow .woocommerce-message { border-color: #CDEFE0; border-inline-start-color: #047857; background: #F1FBF6; }
.site-main--flow .woocommerce-error { border-color: #F7D3DA; border-inline-start-color: #E11D48; background: #FEF2F4; }
.site-main--flow .woocommerce-info a, .site-main--flow .woocommerce-message a { color: var(--hm-brand-ink); font-weight: 700; }

form.woocommerce-checkout { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 0 24px; align-items: start; }
form.woocommerce-checkout #customer_details { grid-column: 1; grid-row: 1 / span 6; display: flex; flex-direction: column; gap: 20px; }
form.woocommerce-checkout #customer_details .col-1,
form.woocommerce-checkout #customer_details .col-2 { float: none; width: auto; padding: 26px 28px; background: #fff; border: 1px solid var(--hm-line); border-radius: 24px; }
form.woocommerce-checkout #order_review_heading { grid-column: 2; grid-row: 1; margin: 0; padding: 24px 24px 0; background: #fff; border: 1px solid var(--hm-line); border-bottom: 0; border-radius: 26px 26px 0 0; font-size: 1.15rem; font-weight: 800; }
form.woocommerce-checkout #order_review { grid-column: 2; grid-row: 2; padding: 12px 24px 24px; background: #fff; border: 1px solid var(--hm-line); border-top: 0; border-radius: 0 0 26px 26px; }
form.woocommerce-checkout h3 { margin: 0 0 18px; font-size: 1.05rem; font-weight: 800; }

.site-main--flow .form-row { margin: 0 0 16px; }
.site-main--flow .form-row label { display: block; margin-bottom: 6px; font-size: 12px; font-weight: 800; color: #1F2233; }
.site-main--flow .form-row .required { color: #E11D48; text-decoration: none; }
.site-main--flow .form-row input.input-text,
.site-main--flow .form-row select,
.site-main--flow .form-row textarea,
.site-main--flow .select2-container .select2-selection {
  width: 100%;
  min-height: 46px;
  padding: 8px 16px;
  border: 1px solid #E5E3F2;
  border-radius: 14px;
  background: #FAF8FF;
  font: inherit;
  font-size: 13px;
}
.site-main--flow .form-row textarea { min-height: 110px; }
.site-main--flow .form-row input:focus-visible, .site-main--flow .form-row select:focus-visible, .site-main--flow .form-row textarea:focus-visible { outline: 2px solid #F59E0B; outline-offset: 1px; }

.site-main--flow table.shop_table { width: 100%; border: 0; border-collapse: collapse; }
.site-main--flow table.shop_table th, .site-main--flow table.shop_table td { padding: 10px 0; border: 0; border-bottom: 1px solid #F1EFF7; background: none; font-size: 13px; text-align: right; font-weight: 400; }
.site-main--flow table.shop_table td:last-child, .site-main--flow table.shop_table tfoot td { text-align: left; font-weight: 800; }
.site-main--flow table.shop_table .order-total td, .site-main--flow table.shop_table .order-total th { padding-top: 16px; font-size: 1.05rem; font-weight: 800; color: #F66F00; }

.site-main--flow #payment { margin-top: 16px; background: none; border-radius: 0; }
.site-main--flow #payment ul.payment_methods { margin: 0; padding: 0; list-style: none; border: 0; }
.site-main--flow #payment .woocommerce-info { margin-bottom: 12px; }
.site-main--flow #place_order { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 52px; margin-top: 12px; border: 0; border-radius: 999px; background: #047857; color: #fff; font: inherit; font-size: 14px; font-weight: 800; cursor: pointer; box-shadow: 0 14px 26px -14px rgba(4, 120, 87, .6); }
.site-main--flow #place_order:hover { background: #065F46; }
.site-main--flow .woocommerce-terms-and-conditions-wrapper { font-size: 12px; color: var(--ink-soft); }

@media (max-width: 1000px) {
  form.woocommerce-checkout { grid-template-columns: 1fr; }
  form.woocommerce-checkout #customer_details, form.woocommerce-checkout #order_review_heading, form.woocommerce-checkout #order_review { grid-column: 1; grid-row: auto; }
  form.woocommerce-checkout #customer_details { margin-bottom: 20px; }
}

/* ==========================================================================
   Shop catalogue — the "products" design.
   ========================================================================== */

.shop-main > .wrap { padding-top: 8px; }
.shop-hero { padding-top: 12px; }
.shop-hero .hm-head { margin-bottom: 22px; }
.shop-hero__sub { margin: 6px 0 0; color: var(--hm-muted); font-size: 13px; }
.cattiles--shop { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; margin-bottom: 36px; }
.cattiles--shop .cattile { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px 12px 14px; background: #fff; border: 1px solid var(--hm-line); border-radius: 20px; text-decoration: none; transition: box-shadow .18s ease, transform .18s ease; }
.cattiles--shop .cattile:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -18px rgba(60, 40, 10, .3); }
.cattiles--shop .cattile.is-current { border-color: #F59E0B; box-shadow: 0 0 0 3px #FDE7C2; }
.cattiles--shop .cattile__media { display: block; width: 100%; aspect-ratio: 1 / 1; border-radius: 12px; background: #F6F4EF; overflow: hidden; }
.cattiles--shop .cattile__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cattiles--shop .cattile__name { color: var(--ink-deep); font-size: 13px; font-weight: 800; text-align: center; }
.cattiles--shop .cattile__count { padding: 1px 12px; border-radius: 999px; background: #F1EFEA; color: var(--hm-muted); font-size: 11px; }

.shop-layout { grid-template-columns: 252px minmax(0, 1fr); gap: 24px; }
.shop-filters { padding: 22px; background: #fff; border: 1px solid var(--hm-line); border-radius: 24px; }
.shop-filters__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 16px; margin-bottom: 4px; border-bottom: 1px solid #F1EFEA; }
.shop-filters__title { margin: 0; font-size: 1rem; font-weight: 800; }
.shop-filters__clear-all { color: #BE123C; font-size: 12px; font-weight: 700; text-decoration: none; }
.filter-group__title { font-size: 13px; font-weight: 800; color: var(--ink-deep); }
.filter-group + .filter-group, .shop-filters__form .filter-group:first-child { border-top: 1px solid #F1EFEA; }
.filter-list__link { padding: 8px 10px; border-radius: 12px; font-size: 12.5px; }
.filter-list__link.is-active { background: #FFF1DC; color: #F66F00; font-weight: 800; }
.filter-list__count { padding: 0 8px; border-radius: 999px; background: #F3F1EC; font-size: 11px; }
.filter-check { padding: 6px 4px; font-size: 12.5px; }
.filter-check input { accent-color: #F59E0B; width: 16px; height: 16px; }
.filter-price input { min-height: 42px; border: 1px solid #E5E3F2; border-radius: 999px; background: #FAF8FF; text-align: center; }
.filter-toggle { display: flex; align-items: center; gap: 12px; margin-top: 20px; padding-top: 18px; border-top: 1px solid #F1EFEA; font-size: 12.5px; font-weight: 700; cursor: pointer; }
.filter-toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.filter-toggle__track { position: relative; flex: none; width: 42px; height: 24px; border-radius: 999px; background: #D8D5CC; transition: background .18s ease; }
.filter-toggle__track::after { content: ''; position: absolute; inset-block-start: 3px; inset-inline-start: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .18s ease; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); }
.filter-toggle input:checked + .filter-toggle__track { background: #047857; }
.filter-toggle input:checked + .filter-toggle__track::after { transform: translateX(-18px); }
.filter-toggle input:focus-visible + .filter-toggle__track { outline: 2px solid #F59E0B; outline-offset: 2px; }
.shop-filters__form .btn { width: 100%; margin-top: 16px; border-radius: 999px; }

.shop-layout__main { row-gap: 22px; }
.shop-layout__main > .shop-toolbar { grid-column: 1 / -1; }
.shop-toolbar { display: flex; flex-direction: row-reverse; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 18px; background: #fff; border: 1px solid var(--hm-line); border-radius: 18px; }
.shop-toolbar .woocommerce-result-count { margin: 0; color: var(--hm-muted); font-size: 12px; }
.shop-sort { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.shop-sort__label { margin-inline-end: 6px; color: var(--ink-soft); font-size: 12px; }
.shop-sort__tab { padding: 6px 14px; border-radius: 999px; color: var(--ink-soft); font-size: 12.5px; font-weight: 700; text-decoration: none; }
.shop-sort__tab:hover { background: #F5F3EE; color: var(--ink-deep); }
.shop-sort__tab.is-active { background: #F59E0B; color: #1C1917; }

.shop-layout__main > ul.products { gap: 22px 18px; margin: 0; padding: 0; list-style: none; }
.shop-layout__main > ul.products > li { margin: 0; padding: 0; }
.woocommerce-pagination { margin-top: 8px; }
.woocommerce-pagination ul.page-numbers { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0; padding: 0; border: 0; list-style: none; }
.woocommerce-pagination ul.page-numbers li { border: 0; }
.woocommerce-pagination .page-numbers a, .woocommerce-pagination .page-numbers span { display: grid; place-items: center; min-width: 40px; height: 40px; padding: 0 14px; border: 1px solid var(--hm-line); border-radius: 12px; background: #fff; color: var(--ink); font-size: 13px; font-weight: 700; text-decoration: none; }
.woocommerce-pagination .page-numbers .current { border-color: #F66F00; background: #F66F00; color: #fff; }
.woocommerce-pagination .page-numbers a:hover { border-color: #F59E0B; }

@media (max-width: 1000px) {
  .cattiles--shop { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .shop-layout { grid-template-columns: 1fr; }
  .shop-toolbar { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px) {
  .cattiles--shop { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* A long attribute (colours) scrolls inside its own box instead of stretching the sidebar. */
.shop-filters__form .filter-list { max-height: 240px; overflow-y: auto; padding-inline-end: 4px; scrollbar-width: thin; }

/* ==========================================================================
   Single product — the "singleproduct" design.
   ========================================================================== */

.single-product div.product { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 24px; row-gap: 24px; padding-block: 12px 56px; }
.woocommerce-product-gallery { position: relative; padding: 18px; background: #fff; border: 1px solid var(--hm-line); border-radius: 28px; }
.woocommerce-product-gallery__image img { border-radius: 20px; }
.woocommerce-product-gallery .flex-control-thumbs { margin-top: 16px; gap: 12px; }
.woocommerce-product-gallery .flex-control-thumbs li { padding: 3px; border: 2px solid transparent; border-radius: 18px; background: #fff; }
.woocommerce-product-gallery .flex-control-thumbs img { border-radius: 14px; border: 0; opacity: .75; }
.woocommerce-product-gallery .flex-control-thumbs img.flex-active, .woocommerce-product-gallery .flex-control-thumbs img:hover { opacity: 1; }
.woocommerce-product-gallery .flex-control-thumbs li:has(img.flex-active) { border-color: #F59E0B; }

.single-product .summary.entry-summary { padding: 28px 30px 30px; background: #fff; border: 1px solid var(--hm-line); border-radius: 28px; }
.pdp-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.pdp-stock { display: inline-flex; align-items: center; gap: 8px; padding: 4px 14px; border-radius: 999px; font-size: 12px; font-weight: 800; }
.pdp-stock--in { background: #C8F3E0; color: #065F46; }
.pdp-stock--out { background: #FDECEF; color: #BE123C; }
.pdp-stock__dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pdp-sku { color: var(--hm-muted); font-size: 12px; }
.single-product .summary .product_title { margin: 0 0 12px; font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); line-height: 1.6; font-weight: 800; color: var(--ink-deep); }
.single-product .summary .woocommerce-product-details__short-description { margin-bottom: 20px; color: var(--ink-soft); font-size: 13.5px; line-height: 2; }
.single-product .summary .woocommerce-product-rating { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; font-size: 12px; }
.single-product .summary table.variations { width: 100%; border: 0; border-collapse: collapse; margin-bottom: 16px; }
.single-product .summary table.variations th, .single-product .summary table.variations td { display: block; padding: 0; border: 0; text-align: right; }
.single-product .summary table.variations th label { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 800; color: var(--ink-deep); }
.single-product .summary table.variations select { width: 100%; min-height: 48px; padding: 8px 16px; border: 1px solid #E7CDB0; border-radius: 16px; background: #FAF8FF; font: inherit; font-size: 13px; }
.pdp-discount { display: inline-block; margin-bottom: 8px; padding: 2px 12px; border-radius: 999px; background: #B0155F; color: #fff; font-size: 11.5px; font-weight: 800; }
.single-product .summary .price { margin: 4px 0 20px; padding: 16px 22px; border-radius: 20px; background: #F2F1FF; color: #F66F00; font-size: 1.7rem; font-weight: 800; }
.single-product .summary .price del { display: block; color: var(--hm-muted); font-size: 13px; }
.single-product .summary form.cart { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.single-product .summary form.cart .quantity { display: inline-flex; align-items: center; border: 1px solid #DAD7E6; border-radius: 999px; background: #fff; }
.single-product .summary form.cart .qty { width: 54px; min-height: 48px; border: 0 !important; background: transparent !important; text-align: center; font: inherit; font-weight: 800; box-shadow: none !important; }
.single-product .summary .single_add_to_cart_button { flex: 1; display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 28px; border: 0; border-radius: 999px; background: #F59E0B !important; color: #1C1917 !important; font: inherit; font-size: 15px; font-weight: 800; cursor: pointer; box-shadow: 0 14px 26px -14px rgba(245, 158, 11, .8); }
.single-product .summary .single_add_to_cart_button:hover { background: #E08E00 !important; }
.single-product .summary .product_meta { margin-top: 18px; padding-top: 16px; border-top: 1px solid #F1EFEA; color: var(--hm-muted); font-size: 12px; }
.single-product .summary .product_meta > span { display: block; margin-bottom: 4px; }

.pdp-trust { grid-column: 1 / -1; padding: 16px; background: #fff; border: 1px solid var(--hm-line); border-radius: 28px; }
.pdp-trust ul { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.pdp-trust li { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid #F1EEF8; border-radius: 18px; background: #FAF8FF; }

.single-product div.product > .woocommerce-tabs { margin-top: 0; padding: 30px 34px 36px; background: #fff; border: 1px solid var(--hm-line); border-radius: 28px; }
.single-product .woocommerce-tabs ul.tabs { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 24px; padding: 0 0 20px; border-bottom: 1px solid #F1EFEA; list-style: none; }
.single-product .woocommerce-tabs ul.tabs li { margin: 0; padding: 0; border: 0; background: none; }
.single-product .woocommerce-tabs ul.tabs li a { display: inline-flex; align-items: center; padding: 10px 22px; border-radius: 999px; background: transparent; color: var(--ink-soft); font-size: 13.5px; font-weight: 800; text-decoration: none; }
.single-product .woocommerce-tabs ul.tabs li.active a { background: #F59E0B; color: #1C1917; }
.single-product div.product > .related, .single-product div.product > .upsells { margin-top: 12px; padding-top: 32px; border-top: 0; }
.single-product div.product > .related > h2, .single-product div.product > .upsells > h2 { font-size: 1.4rem; font-weight: 800; }
.single-product div.product > .related ul.products { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }

@media (max-width: 900px) {
  .single-product div.product { grid-template-columns: 1fr; }
  .pdp-trust ul { grid-template-columns: 1fr 1fr; }
  .single-product div.product > .related ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .single-product div.product > .woocommerce-tabs { padding: 22px 18px 26px; }
}
.single-product .summary .product_meta .sku_wrapper { display: none; }
@media (max-width: 560px) { .pdp-trust ul { grid-template-columns: 1fr; } }

/* Article lists use the same card as the front page's magazine. */
.grid--3 > .mcard, .grid--4 > .mcard { height: 100%; }
.mcard--wide .mcard__media { aspect-ratio: 16 / 10; }

/* Magazine tabs are real tabs: the active one (species tab or topic chip) is dark. */
.mag__filters [role="tab"] { cursor: pointer; }
.mag__filters .chip.is-active { background: var(--ink-deep); border-color: var(--ink-deep); color: #fff; }
.mag__filters .chip.is-active .chip__n { color: rgba(255, 255, 255, .75); }
.mag__filters [role="tab"]:focus-visible { outline: 2px solid #F66F00; outline-offset: 2px; }
.mag__feature { transition: opacity .18s ease; }
.mag__feature.is-loading { opacity: .45; pointer-events: none; }
.mag__empty { grid-column: 1 / -1; margin: 0; padding: 40px 20px; text-align: center; color: var(--hm-muted); background: #fff; border: 1px dashed var(--hm-line); border-radius: 24px; }

/* ==========================================================================
   Equal-height cards: every card in a row is as tall as the tallest, and its
   last line (price, «ادامهٔ مطلب», the ad's button) sits on the bottom edge.
   ========================================================================== */
.hm-products, .grid--3, .grid--4, .grid--5, .hm-band__grid, .mag__more, .mag__grid { align-items: stretch; }
ul.products > li { display: flex; flex-direction: column; }
ul.products > li > .card, .hm-products > .card, .grid > .card { flex: 1; height: 100%; }
.card--home { height: 100%; }
.card--home .card__body { flex: 1; }
.card--home .card__foot { margin-top: auto; }
.card:not(.card--home) .card__body { flex: 1; display: flex; flex-direction: column; }
.card:not(.card--home) .card__foot { margin-top: auto; }
.mcard, .adc { height: 100%; }
.mcard--wide .mcard__foot, .mcard .mcard__foot { margin-top: auto; }
.mcard--wide .mcard__excerpt { flex: 0 0 auto; }
.mcard--wide .mcard__foot { padding-top: 14px; }
.adc__body { flex: 1; }
.adc__cta { margin-top: auto; }

/* A category's description runs the full width of the page, below the grid. */
.term-guide {
  max-width: none;
  width: 100%;
  margin-top: 40px;
  padding: 32px 36px;
  background: #fff;
  border: 1px solid var(--hm-line);
  border-radius: 26px;
  line-height: 2;
}
.term-guide > *:first-child { margin-top: 0; }
.term-guide > *:last-child { margin-bottom: 0; }
@media (max-width: 700px) { .term-guide { padding: 22px 18px; } }

/* Tighter gutters between product cards. */
.hm-products,
.shop-layout__main > ul.products,
.single-product div.product > .related ul.products,
.single-product div.product > .upsells ul.products,
.results .grid:has(.card) { gap: 12px; }

.footer__lockup-icon { width: 40px; height: 40px; border-radius: 12px; display: block; }

/* The article's featured image is shown whole, at its own proportions. */
.article__hero { display: flex; justify-content: center; }
.article__hero img { width: auto; max-width: 100%; height: auto; aspect-ratio: auto; object-fit: contain; }

/* Article sidebar cards and the table of contents look like the shop's filter card. */
.article__aside .widget, .article__aside .toc {
  background: #fff;
  border: 1px solid var(--hm-line);
  border-radius: 24px;
  padding: 22px;
}

/* Cart: the item-card header and the coupon field use the neutral grey. */
.cartcard__head { background: #F6F7F8; border-bottom-color: #ECEDEF; }
.cartbox__row .input-text { background: #F6F7F8; border-color: #E4E6E9; }

/* Smaller «تکمیل اطلاعات ارسال و پرداخت» button. */
.ordsum__go { min-height: 44px; padding: 0 20px; font-size: 13px; gap: 8px; box-shadow: 0 10px 20px -14px rgba(4, 120, 87, .6); }
.ordsum__go svg { width: 16px; height: 16px; }

/* Phones: category tiles two across (grid or carousel), never three. */
@media (max-width: 560px) {
  .grid--6.cattiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Magazine on phones: heading on the reading side, filters in ONE scrolling row. */
@media (max-width: 720px) {
  .home .mag__head { flex-direction: column; align-items: stretch; text-align: start; }
  .home .mag__head > div { align-self: stretch; }
  .home .mag__head .hm-more { align-self: flex-start; }
  .mag__filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
  }
  .mag__filters::-webkit-scrollbar { display: none; }
  .mag__filters .mag__tab,
  .mag__filters .chip { flex: none; white-space: nowrap; }
}

/* The tab row scrolls sideways: fade the far end as a hint, and let a mouse drag it. */
@media (max-width: 720px) {
  .mag__filters {
    cursor: grab;
    -webkit-mask-image: linear-gradient(to left, #000 calc(100% - 44px), transparent);
            mask-image: linear-gradient(to left, #000 calc(100% - 44px), transparent);
  }
  .mag__filters.is-dragging { cursor: grabbing; user-select: none; scroll-snap-type: none; }
  .mag__filters.is-dragging a { pointer-events: none; }
}

/* Phones: product rows (best sellers, related, cart suggestions) stack one card
   per row, full width. The catalogue itself stays a two-column grid because it
   is long and paginated. */
@media (max-width: 560px) {
  .hm-products,
  .hm-products.grid--4,
  .hm-products.grid--5,
  .single-product div.product > .related ul.products,
  .single-product div.product > .upsells ul.products {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    overflow: visible;
    margin-inline: 0;
    padding: 0;
  }
}
}

.icon--bulk { fill: currentColor; stroke: none; }

/* Hero: a slimmer «مشاهده و خرید» button; no «طراحی تخصصی» card on phones. */
.hero__actions .btn, .hero__actions .btn--ghost { min-height: 42px; padding-inline: 22px; font-size: 13.5px; }
@media (max-width: 700px) { .hero__float--badge { display: none; } }

/* Phones: burger (orange disc) on the right, logo centred, cart + account on the left. */
@media (max-width: 899px) {
  .masthead__row { grid-template-columns: auto 1fr auto; column-gap: 10px; align-items: center; }
  .masthead__burger  { grid-column: 1; grid-row: 1; }
  .masthead__brand   { grid-column: 2; grid-row: 1; justify-self: center; }
  .masthead__actions { grid-column: 3; grid-row: 1; justify-self: end; }
  .masthead__burger {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #F66F00;
    color: #fff;
    box-shadow: 0 8px 16px -8px rgba(246, 111, 0, .7);
  }
  .masthead__burger .icon { color: #fff; }
}

/* Product card footer: price and the cart button share one row, centred on each other. */
.card--home .card__foot { flex-wrap: nowrap !important; align-items: center; justify-content: space-between; gap: 10px; }
.card--home .card__price {
  flex: 1 1 auto !important;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 6px;
  font-size: 1rem;
  line-height: 1.5;
}
.card--home .card__price .woocommerce-Price-amount, .card--home .card__price ins { white-space: nowrap; }
.card--home .card__add { flex: none; }
@media (max-width: 560px) { .card--home .card__price { font-size: .95rem; } }
.card--home .card__price { flex-wrap: nowrap; white-space: nowrap; font-size: .84rem; gap: 4px; }
.card--home .card__price .woocommerce-Price-currencySymbol { font-size: .72rem; font-weight: 400; color: var(--hm-muted); }
@media (max-width: 560px) { .card--home .card__price { font-size: 1rem; } }

/* Phones: logo dead-centre (equal side columns), smaller account button. */
@media (max-width: 899px) {
  .masthead__row { grid-template-columns: 1fr auto 1fr; }
  .masthead__burger  { justify-self: start; }
  .masthead__actions { justify-self: end; gap: 6px; }
  .action--account { width: 36px; height: 36px; min-height: 36px; padding: 0; justify-content: center; }
  .action--account .icon { width: 17px; height: 17px; }
  .action--cart { min-height: 36px; padding-inline: 10px; }
  .action--cart .icon { width: 18px; height: 18px; }
}

@media (max-width: 899px) {
  .masthead__row { position: relative; }
  .masthead__brand { position: absolute; inset-inline-start: 50%; top: 50%; transform: translate(-50%, -50%); justify-self: auto; z-index: 1; }
  html[dir="rtl"] .masthead__brand { transform: translate(50%, -50%); }
  .masthead__brand img { height: 44px; }
}

@media (max-width: 899px) {
  .masthead__brand, html[dir="rtl"] .masthead__brand { inset-inline: auto; left: 50%; right: auto; top: 50%; transform: translate(-50%, -50%); }
}

@media (max-width: 899px) {
  /* An absolutely placed grid item is laid out inside its grid area: give it the whole row. */
  .masthead__brand { grid-column: 1 / -1; grid-row: 1; }
}

/* «ارسال سریع اکسپرس»: a strong green icon on a soft tint of the same green. */
.trust__icon--green { background: #CFF3E2; color: #047857; }
.trust__icon--green svg { color: #047857; }
.trust__icon--blue { background: #D4E7FD; color: #0B57B8; }
.trust__icon--blue svg { color: #0B57B8; }
.trust__icon--rose { background: #FBD9E2; color: #BE123C; }
.trust__icon--rose svg { color: #BE123C; }
