/* =========================================================================
   Mega menu (maquette 18) — desktop
   ====================================================================== */
.nav__in { position: relative; }
.nav__link.is-mega { color: var(--brand); border-bottom-color: var(--brand); }
.mega { position: absolute; left: 0; right: 0; top: calc(100% + 2px); z-index: 40; background: var(--bg); border-bottom: 3px solid var(--brand); box-shadow: 0 24px 40px rgba(43, 35, 32, .25); padding: 30px var(--pad) 28px; }
.mega__grid { display: grid; gap: 16px; }
.tile { position: relative; display: flex; flex-direction: column; justify-content: flex-end; height: 280px; padding: 20px; background: #ede2d0 repeating-linear-gradient(45deg, rgba(143, 31, 20, .07) 0 12px, transparent 12px 24px); text-decoration: none; color: var(--brand); min-width: 0; }
.tile:hover { opacity: 1; background-color: #e6d9c3; }
.tile__ph { position: absolute; top: 14px; left: 20px; font: 13px var(--mono); color: var(--ph-2); }
.tile__title { font: 26px/1.05 var(--serif); }
.tile__sub { font-size: 13px; color: var(--muted); margin-top: 6px; line-height: 1.45; }
.mega__bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.mega__links { display: flex; gap: 16px; flex-wrap: wrap; }
.mega__links a { text-decoration: none; color: var(--muted); }
.mega__links .mega__all { color: var(--brand); font-weight: 600; }
.mega-backdrop { position: fixed; inset: 0; z-index: 15; background: rgba(43, 35, 32, .5); }
body.has-mega .nav { z-index: 41; }
.nav__link, .nav__brand, .nav__menu { user-select: none; -webkit-user-select: none; }
@media (min-width: 1200px) and (max-width: 1279px) { .tile { height: 230px; padding: 16px; } .tile__title { font-size: 22px; } }
@media (min-width: 760px) and (max-width: 1199px) { .mega { padding: 22px var(--pad) 20px; } .mega__grid { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)) !important; } .tile { height: 170px; padding: 14px; } .tile__ph { top: 10px; left: 14px; } .tile__title { font-size: 20px; } .tile__sub { font-size: 13px; } .mega__bar { font-size: 13px; } }
@media (max-width: 759px) { .mega, .mega-backdrop { display: none !important; } }


/* =========================================================================
   Mobile menu (maquette 19)
   ====================================================================== */
.mmenu { position: fixed; inset: 0; z-index: 60; }
.mmenu__panel { position: absolute; inset: 0; background: var(--bg); color: var(--brand); display: flex; flex-direction: column; overflow: hidden; }
.mmenu__head { display: flex; align-items: center; justify-content: space-between; padding: 12px var(--pad); border-bottom: 2px solid var(--brand); background: var(--bg); flex: none; }
.mmenu__close, .mmenu__cart { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; background: none; border: 0; color: var(--dark); font-size: 20px; }
.mmenu__cart { font-size: 13px; font-weight: 600; }
.mmenu__brand { font: 20px var(--serif); color: var(--brand); text-decoration: none; }
.mmenu__level { flex: 1; display: none; flex-direction: column; overflow-y: auto; }
.mmenu__level.is-active { display: flex; }
.mmenu__search { padding: 14px var(--pad); }
.mmenu__search input { width: 100%; padding: 14px 16px; background: var(--white); border: 2px solid var(--line); font-size: 15px; color: var(--dark); }
.mmenu__search input::placeholder { color: var(--ph); }
.mmenu__list { display: flex; flex-direction: column; }
.mmenu__row { display: flex; justify-content: space-between; align-items: center; padding: 18px; border: 0; border-bottom: 1px solid var(--line); font: 600 16px var(--sans); color: var(--dark); min-height: 44px; text-decoration: none; background: none; text-align: left; width: 100%; }
.mmenu__row span { color: var(--brand); }
.mmenu__row--pet { font: 22px var(--serif); color: var(--brand); }
.mmenu__promo-wrap { padding: 18px; }
.mmenu__promo { display: block; background: var(--brand); color: var(--bg); padding: 18px; text-decoration: none; }
.mmenu__promo-k { display: block; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; }
.mmenu__promo-t { display: block; font: 24px var(--serif); margin-top: 6px; }
.mmenu__promo-c { display: block; margin-top: 8px; font-size: 13px; opacity: .85; }
.mmenu__foot { margin-top: auto; background: var(--dark); color: var(--bg); padding: 18px; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.mmenu__foot a { text-decoration: none; opacity: .9; }
.mmenu__social { display: flex; gap: 8px; margin-top: 6px; font-size: 13px; font-weight: 600; }
.mmenu__social a { padding: 9px 14px; border: 1.5px solid var(--cream-border); opacity: 1; }
.mmenu__petbar { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; background: var(--brand); color: var(--bg); border: 0; width: 100%; text-align: left; font: 24px var(--serif); }
.mmenu__petbar--chats { background: var(--dark); }
.mmenu__petbar > span { display: flex; align-items: center; gap: 10px; }
.mmenu__back { font-size: 16px; font-family: var(--sans); }
.mmenu__petbar small { font: 13px var(--sans); opacity: .9; }
.mmenu__tiles { padding: 16px 18px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tile--sm { height: 140px; padding: 14px; }
.tile--sm .tile__ph { top: 10px; left: 14px; }
.tile--sm .tile__title { font-size: 19px; }
.tile--sm .tile__sub { font-size: 13px; margin-top: 4px; }
.mmenu__rows { padding: 0 18px 18px; display: flex; flex-direction: column; gap: 2px; font-size: 14px; color: var(--dark); }
.mmenu__minirow { padding: 14px 16px; background: var(--white); border: 1.5px solid var(--line); display: flex; justify-content: space-between; align-items: center; min-height: 44px; text-decoration: none; color: var(--dark); }
.mmenu__minirow span { color: var(--brand); }
.mmenu__feat { background: var(--white); border: 2px solid var(--line); padding: 16px; display: flex; gap: 12px; align-items: center; text-decoration: none; color: var(--brand); }
.mmenu__feat-img { width: 64px; height: 64px; flex: none; overflow: hidden; background: var(--sand-2) repeating-linear-gradient(45deg, rgba(143, 31, 20, .07) 0 12px, transparent 12px 24px); }
.mmenu__feat-img img { width: 100%; height: 100%; object-fit: cover; }
.mmenu__feat > span:last-child { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.mmenu__feat-k { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--muted); }
.mmenu__feat-t { font: 19px var(--serif); margin-top: 3px; }
.mmenu__feat-s { font-size: 13px; color: var(--muted); }
@media (min-width: 1200px) { .mmenu { display: none !important; } }
@media (min-width: 760px) and (max-width: 1199px) {
  .mmenu::before { content: ""; position: absolute; inset: 0; background: rgba(43, 35, 32, .5); }
  .mmenu__panel { left: auto; width: min(440px, 100%); box-shadow: -24px 0 48px rgba(43, 35, 32, .3); }
}

/* =========================================================================
   Side cart (maquette 20)
   ====================================================================== */
.scart { position: fixed; inset: 0; z-index: 70; }
.scart__backdrop { position: absolute; inset: 0; background: rgba(43, 35, 32, .5); }
.scart__panel { position: absolute; top: 0; right: 0; bottom: 0; width: 440px; max-width: 100%; background: var(--bg); color: var(--brand); box-shadow: -24px 0 48px rgba(43, 35, 32, .3); display: flex; flex-direction: column; }
.scart__head { display: flex; align-items: center; justify-content: space-between; padding: 22px 26px; border-bottom: 2px solid var(--brand); flex: none; }
.scart__title { font: 26px var(--serif); }
.scart__close { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; font-size: 18px; color: var(--dark); background: none; border: 0; }
.scart__body { flex: 1; overflow-y: auto; padding: 0 26px 16px; }
.scitem { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; align-items: start; padding: 16px 0; border-bottom: 1px solid var(--line); }
.scitem > * { min-width: 0; }
.scitem__img { display: block; height: 72px; overflow: hidden; background: var(--sand-2) repeating-linear-gradient(45deg, rgba(143, 31, 20, .07) 0 12px, transparent 12px 24px); }
.scitem__img img { width: 100%; height: 100%; object-fit: cover; }
.scitem__name { font: 19px var(--serif); text-decoration: none; display: block; }
.scitem__var { font-size: 13px; color: var(--muted); margin-top: 2px; }
.scitem__ctrl { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.scqty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); }
.scqty button { padding: 8px 12px; font-weight: 600; font-size: 14px; background: none; border: 0; }
.scqty button[disabled] { opacity: .4; }
.scqty__n { padding: 8px 8px; font-weight: 600; font-size: 14px; }
.scitem__remove { font-size: 13px; color: var(--brand); font-weight: 600; text-decoration: underline; background: none; border: 0; padding: 0; }
.scitem__price { font-size: 16px; }
.scitem__price .amount { font-weight: 600; }
.sctreat { padding: 16px; background: var(--white); border: 2px solid var(--line); margin-top: 16px; }
.sctreat__k { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--muted); margin-bottom: 10px; }
.sctreat__row { display: flex; gap: 12px; align-items: center; }
.sctreat__img { width: 56px; height: 56px; flex: none; overflow: hidden; background: var(--sand-2) repeating-linear-gradient(45deg, rgba(143, 31, 20, .07) 0 12px, transparent 12px 24px); }
.sctreat__img img { width: 100%; height: 100%; object-fit: cover; }
.sctreat__body { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.sctreat__name { font-weight: 600; font-size: 15px; color: var(--dark); }
.sctreat__sub { font-size: 13px; color: var(--muted); }
.sctreat__btn { padding: 11px 15px; background: var(--brand); color: var(--bg); font-weight: 600; font-size: 14px; border: 0; white-space: nowrap; }
.sctreat__btn .amount { color: inherit; }
.scart__foot { padding: 22px 26px 24px; border-top: 2px solid var(--brand); background: var(--bg); flex: none; }
.scbar { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.scbar__track { flex: 1; height: 6px; background: var(--line); position: relative; }
.scbar__fill { position: absolute; left: 0; top: 0; height: 6px; background: var(--brand); display: block; transition: width .3s; }
.scbar__label { font-size: 13px; font-weight: 600; color: var(--brand); white-space: nowrap; }
.sctotals { font-size: 15px; color: var(--dark); }
.sctotals__row { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; }
.sctotals__row span { color: var(--muted); }
.sctotals__row .amount { font-weight: 600; }
.sctotals__row--total { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 10px; }
.sctotals__row--total strong, .sctotals__row--total .amount { font: 22px var(--serif); color: var(--brand); }
.scart__cta { display: block; margin-top: 14px; padding: 17px; background: var(--brand); color: var(--bg); font-weight: 600; text-align: center; text-decoration: none; }
.scart__continue { display: block; width: 100%; margin-top: 10px; text-align: center; font-size: 13px; color: var(--muted); text-decoration: underline; background: none; border: 0; }
.scart__note { margin-top: 12px; font-size: 13px; color: var(--muted); text-align: center; line-height: 1.6; }
.scart__empty { padding: 34px 26px; text-align: center; }
.scart__empty-ph { height: 150px; padding: 10px; }
.scart__empty-ph .ph__label { font-size: 13px; }
.scart__empty-t { font: 26px var(--serif); margin-top: 20px; }
.scart__empty p { margin: 8px 0 20px; font-size: 15px; line-height: 1.6; color: var(--muted); }
.scart__empty .btn { display: block; padding: 15px; }
.scart__empty .btn + .btn { margin-top: 10px; }
.scart__emptyfoot { margin-top: auto; padding: 22px 26px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); line-height: 1.7; }
.scart.is-loading .scart__panel { opacity: .7; pointer-events: none; }
.nav__cart.is-open { padding: 9px 16px; background: var(--brand); color: var(--bg); border-bottom-color: transparent; }
@media (max-width: 759px) {
  .scart__panel { width: 100%; box-shadow: none; }
  .scart__head { padding: 14px var(--pad); }
  .scart__title { font-size: 22px; }
  .scart__close { width: 44px; height: 44px; }
  .scart__body { padding: 0 var(--pad) 14px; }
  .scitem { grid-template-columns: 64px 1fr auto; }
  .scitem__img { height: 64px; }
  .sctreat { padding: 14px; margin-top: 14px; }
  .scart__foot { padding: 18px var(--pad) 20px; }
  .scart__empty { padding: 28px var(--pad); }
  .scart__emptyfoot { padding: 18px var(--pad); }
}
