/* Shared styles (variables, header, buttons, cards, drawers, footer) */
:root {
  --lime: #78ff00;
  --pink: #ff4cff;
  --ink: #3b2417;
  --muted: #7a5b48;
  --paper: #fff7e6;
  --sand: #f5e3c0;
  --clay: #d9a566;
  --turq: #1b9c9a;
  --turq-l: #58c7c1;
  --lapis: #1a3f86;
  --arch: polygon(0 100%,
      0 42%,
      3% 30%,
      10% 19%,
      22% 10%,
      36% 3.5%,
      50% 0,
      64% 3.5%,
      78% 10%,
      90% 19%,
      97% 30%,
      100% 42%,
      100% 100%);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: "Vazirmatn", sans-serif;
  background: var(--paper);
  color: var(--ink);
  overflow-x: hidden;
  line-height: 1.9;
}

h1,
h2,
h3,
.brand,
.display-h {
  font-family: "Aref Ruqaa", serif;
  font-weight: 700;
  line-height: 1.5;
}

a {
  text-decoration: none;
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--pink);
  outline-offset: 3px;
}

.site-nav {
  background: rgba(255, 247, 230, 0.92);
  backdrop-filter: blur(8px);
  padding: 0.6rem 0;
  transition: box-shadow 0.3s;
}

.site-nav.scrolled {
  box-shadow: 0 6px 24px rgba(59, 36, 23, 0.08);
}

.brand {
  font-size: 1.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--lapis);
}

.brand-mark {
  width: 16px;
  height: 22px;
  background: var(--turq);
  clip-path: var(--arch);
  display: inline-block;
  position: relative;
}

.nav-link {
  font-weight: 500;
  color: var(--ink) !important;
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  inset-inline: 0.5rem;
  bottom: 2px;
  height: 3px;
  background: var(--pink);
  transform: scaleX(0);
  transition: transform 0.3s;
}

.nav-link:hover::after {
  transform: scaleX(1);
}

.icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 0;
  background: var(--sand);
  color: var(--ink);
  position: relative;
  transition:
    background 0.25s,
    transform 0.25s;
}

.icon-btn:hover {
  background: var(--lime);
}

.cart-btn span {
  position: absolute;
  top: -4px;
  inset-inline-start: -4px;
  background: var(--pink);
  color: #fff;
  font-size: 0.7rem;
  min-width: 20px;
  height: 20px;
  border-radius: 10px;
  line-height: 20px;
  font-weight: 700;
}

.cart-btn.pop {
  animation: pop 0.5s;
}

@keyframes pop {
  40% {
    transform: scale(1.3) rotate(-8deg);
  }
}

.btn {
  font-weight: 700;
  border-radius: 50px;
  padding: 0.85rem 1.8rem;
  border: 0;
  transition:
    transform 0.25s,
    background 0.25s,
    color 0.25s;
}

.btn-lime {
  background: var(--lime);
  color: var(--ink);
}

.btn-lime:hover {
  background: var(--ink);
  color: var(--lime);
  transform: translateY(-3px);
}

.btn-pink {
  background: var(--pink);
  color: var(--ink);
  box-shadow: inset 0 0 0 2px var(--pink);
}

.btn-pink:hover {
  background: var(--pink);
  color: #fff;
  transform: translateY(-3px);
}

@keyframes flap {
  to {
    transform: scaleY(0.35);
  }
}

#progress {
  position: fixed;
  top: 0;
  inset-inline: 0;
  height: 4px;
  background: var(--pink);
  z-index: 2000;
  transform: scaleX(0);
  transform-origin: right;
}

.section {
  padding: 110px 0;
  position: relative;
}

.sec-head {
  text-align: center;
  margin-bottom: 3rem;
}

.sec-head h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--lapis);
}

.sec-head p {
  color: var(--muted);
  margin: 0;
}

.wrap {
  position: relative;
  z-index: 2;
}

@media (min-width: 1200px) {
  .wrap {
    padding-inline: 150px;
    max-width: 1500px;
  }
}

@keyframes slide {
  to {
    transform: translateX(50%);
  }
}

.cat {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 340px;
  padding: 0 0.8rem 1.5rem;
  background: var(--bd);
  clip-path: var(--arch);
  isolation: isolate;
  text-align: center;
  transition: transform 0.45s cubic-bezier(0.3, 1.6, 0.5, 1);
}

.cat::before {
  content: "";
  position: absolute;
  inset: 9px;
  background: var(--c);
  clip-path: var(--arch);
  z-index: -2;
  transition: background 0.35s;
}

.cat::after {
  content: "";
  position: absolute;
  inset: 9px;
  z-index: -1;
  opacity: 0.16;
  clip-path: var(--arch);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cg fill='none' stroke='%231A3F86' stroke-width='1.2'%3E%3Crect x='15' y='15' width='70' height='70'/%3E%3Crect x='15' y='15' width='70' height='70' transform='rotate(45 50 50)'/%3E%3C/g%3E%3C/svg%3E") center 30%/150% no-repeat;
}

.cat:hover {
  transform: translateY(-14px);
}

.cat:hover::before {
  background: var(--lime);
}

@keyframes sway {
  50% {
    transform: rotate(9deg) scale(1.07);
  }
}

.cat h3 {
  font-size: 1.45rem;
  margin: 0;
  color: var(--ink);
}

.cat small {
  color: var(--ink);
  opacity: 0.75;
}

.chip {
  border: 0;
  background: #fff;
  border-radius: 30px;
  padding: 0.5rem 1.4rem;
  font-weight: 500;
  color: var(--ink);
  transition: 0.25s;
}

.chip.active,
.chip:hover {
  background: var(--ink);
  color: var(--lime);
}

.p-card {
  position: relative;
  background: #fff;
  border-radius: 30px;
  padding: 10px;
  height: 100%;
  display: flex;
  flex-direction: column;
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--ty, 0px));
  transition:
    transform 0.2s,
    box-shadow 0.35s;
}

.p-card:hover {
  --ty: -8px;
  box-shadow: 0 24px 44px rgba(59, 36, 23, 0.15);
}

.p-img {
  position: relative;
  height: clamp(210px, 24vw, 270px);
  background: var(--bg);
  clip-path: var(--arch);
  display: flex;
  justify-content: center;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
}

.p-img::before {
  content: "";
  position: absolute;
  inset: -25%;
  z-index: -1;
  opacity: 0.22;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cg fill='none' stroke='%231A3F86' stroke-width='1.2'%3E%3Crect x='15' y='15' width='70' height='70'/%3E%3Crect x='15' y='15' width='70' height='70' transform='rotate(45 50 50)'/%3E%3C/g%3E%3C/svg%3E") center/60% no-repeat;
  transition: transform 1.4s;
}

.p-card:hover .p-img::before {
  transform: rotate(90deg) scale(1.1);
}

.p-img::after {
  content: "";
  position: absolute;
  bottom: 8px;
  left: 27%;
  width: 46%;
  height: 12px;
  border-radius: 50%;
  background: rgba(59, 36, 23, 0.2);
  filter: blur(4px);
  z-index: -1;
}

.p-img img,
.p-img svg {
  height: 86%;
  margin-bottom: 12px;
  transform-origin: bottom;
  transition: transform 0.6s cubic-bezier(0.3, 1.5, 0.5, 1);
}

.p-card:hover .p-img img,
.p-card:hover .p-img svg {
  transform: scale(1.1) rotate(-4deg);
}

.fav {
  position: absolute;
  top: 20px;
  inset-inline-end: 20px;
  z-index: 3;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 4px 12px rgba(59, 36, 23, 0.15);
  transition:
    transform 0.25s,
    background 0.25s;
}

.fav:hover {
  transform: scale(1.12);
}

.fav.on {
  background: var(--pink);
  color: #fff;
  animation: pop 0.5s;
}

.badge-t {
  position: absolute;
  top: 22px;
  inset-inline-start: 22px;
  z-index: 3;
  background: var(--lime);
  color: var(--ink);
  border-radius: 20px;
  padding: 0 0.8rem;
  font-size: 0.75rem;
  font-weight: 700;
}

.badge-t.pink {
  background: var(--pink);
  color: #fff;
}

.p-body {
  padding: 1rem 0.5rem 0.4rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  align-items: center;
  text-align: center;
}

.p-cat {
  font-size: 0.75rem;
  background: var(--sand);
  padding: 0 0.8rem;
  border-radius: 20px;
  color: var(--muted);
}

.p-body h3 {
  font-size: 1.45rem;
  margin: 0.45rem 0 0.1rem;
  color: var(--lapis);
}

.p-desc {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0 0 0.5rem;
  line-height: 1.7;
}

.p-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: var(--muted);
}

.stars {
  color: #f5a623;
  font-size: 0.8rem;
}

.p-foot {
  margin-top: auto;
  padding-top: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  align-items: stretch;
  width: 100%;
}

.price {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.15rem;
}

.price del {
  font-weight: 400;
  font-size: 0.85rem;
  color: #b09a88;
}

.price small {
  font-weight: 400;
  font-size: 0.75rem;
}

.add {
  width: 100%;
  border: 0;
  border-radius: 50px;
  background: var(--lime);
  color: var(--ink);
  font-weight: 700;
  padding: 0.65rem 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  transition:
    background 0.3s,
    color 0.3s,
    transform 0.2s;
}

.add:hover {
  background: var(--ink);
  color: var(--lime);
}

.add:active {
  transform: scale(0.96);
}

.add.done {
  background: var(--pink);
  color: #fff;
}

.add i {
  transition: transform 0.4s;
}

.add:hover i {
  transform: rotate(-12deg) scale(1.2);
}

.fly {
  position: fixed;
  z-index: 3000;
  pointer-events: none;
  color: var(--pink);
  font-size: 1.3rem;
}

@keyframes bob {
  50% {
    transform: translateY(-8px);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.footer {
  background: var(--ink);
  color: #e9d5b8;
  padding: 70px 0 20px;
}

.footer .brand {
  color: var(--lime);
}

.footer h4 {
  font-family: "Aref Ruqaa";
  color: var(--lime);
  font-size: 1.3rem;
}

.footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer li {
  margin-bottom: 0.4rem;
}

.footer a:hover {
  color: var(--pink);
}

.copy {
  text-align: center;
  margin: 3rem 0 0;
  font-size: 0.85rem;
  opacity: 0.7;
}

@media (max-width: 991px) {
  .section {
    padding: 80px 0;
  }
}

html {
  overflow-x: hidden;
  overflow-x: clip;
}

img,
svg {
  max-width: 100%;
}

.section {
  padding: clamp(56px, 9vw, 110px) 0;
}

.sec-head {
  margin-bottom: clamp(1.8rem, 4vw, 3rem);
}

.copy-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.5rem 2.5rem;
  margin-top: 3rem;
}

.copy-row .copy {
  margin: 0;
  font-size: 0.85rem;
  opacity: 0.7;
}

.copy-row .made-by a {
  color: var(--lime);
  font-weight: 700;
  transition: color 0.2s;
}

.copy-row .made-by a:hover {
  color: var(--pink);
}

@media (max-width: 991px) {
  .site-nav {
    background: var(--paper);
  }

  .site-nav .navbar-collapse {
    margin-top: 0.6rem;
    padding: 1rem;
    border-radius: 20px;
    background: var(--sand);
    max-height: 75vh;
    overflow: auto;
  }

  .navbar-nav {
    text-align: center;
  }

  .nav-link::after {
    display: none;
  }

  .site-nav .d-flex {
    justify-content: center;
    margin-top: 0.6rem;
  }
}

@media (max-width: 575px) {
  .brand {
    font-size: 1.5rem;
  }

  .cat {
    height: 290px;
    padding-bottom: 1.1rem;
  }

  .cat h3 {
    font-size: 1.2rem;
  }

  .cat small {
    font-size: 0.8rem;
  }

  .p-card {
    padding: 7px;
    border-radius: 22px;
  }

  .p-img {
    height: 200px;
  }

  .fav {
    top: 14px;
    inset-inline-end: 14px;
    width: 32px;
    height: 32px;
    font-size: 0.8rem;
  }

  .badge-t {
    top: 16px;
    inset-inline-start: 14px;
    font-size: 0.68rem;
    padding: 0 0.55rem;
  }

  .p-body {
    padding: 0.8rem 0.2rem 0.3rem;
  }

  .p-body h3 {
    font-size: 1.15rem;
  }

  .p-desc {
    display: none;
  }

  .p-cat {
    font-size: 0.68rem;
    padding: 0 0.5rem;
  }

  .price {
    font-size: 1rem;
    flex-wrap: wrap;
    gap: 0.1rem 0.4rem;
  }

  .add {
    padding: 0.55rem 0.6rem;
    font-size: 0.85rem;
  }

  .footer {
    text-align: center;
  }
}

@media (min-width: 576px) and (max-width: 991px) {
  .p-desc {
    font-size: 0.8rem;
  }
}

:root {
  --bw: 52px;
}

@media (min-width: 576px) {
  :root {
    --bw: 80px;
  }
}

@media (min-width: 1200px) {
  :root {
    --bw: 120px;
  }
}

@media (max-width: 1199px) {
  .wrap {
    padding-inline: calc(var(--bw) * 0.5 + 4px);
  }
}

.nav-link.active::after {
  transform: scaleX(1);
}

.crumbs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 0.6rem;
}

.crumbs a:hover {
  color: var(--pink);
}

.crumbs i {
  font-size: 0.7rem;
}

.s-title {
  font-size: clamp(2.2rem, 5.2vw, 3.7rem);
  color: var(--lapis);
  margin: 0 0 0.5rem;
}

.s-search input:focus,
.s-sort:focus,
.form-control:focus {
  box-shadow: 0 0 0 3px var(--pink);
  border-color: transparent;
}

.offcanvas {
  background: var(--paper);
}

.p-card.out .p-img img,
.p-card.out .p-img svg {
  filter: grayscale(0.85);
  opacity: 0.6;
}

.badge-t.out-b {
  background: var(--ink);
  color: #fff;
}

.add:disabled {
  background: #e9dfcd;
  color: #9a8878;
  cursor: not-allowed;
}

.s-star {
  position: absolute;
  left: 8%;
  top: -2%;
  width: 84%;
  color: var(--sand);
  pointer-events: none;
}

.s-star rect {
  fill: currentColor;
}

@media (max-width: 991px) {
  .crumbs {
    justify-content: center;
  }
}

.p-body h3 a {
  color: inherit;
  transition: color 0.2s;
}

.p-body h3 a:hover {
  color: var(--pink);
}

a.p-img {
  text-decoration: none;
}

.off {
  font-style: normal;
  background: var(--pink);
  color: #fff;
  border-radius: 20px;
  padding: 0 0.8rem;
  font-size: 0.82rem;
  font-weight: 700;
}

.qty {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 50px;
  padding: 0.2rem;
  box-shadow: 0 4px 12px rgba(59, 36, 23, 0.08);
}

.qty button {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--sand);
  transition: 0.2s;
}

.qty button:hover {
  background: var(--lime);
}

.qty output {
  min-width: 44px;
  text-align: center;
  font-weight: 700;
  font-size: 1.1rem;
}

.pd-add.done,
.buy-bar .btn.done {
  background: var(--pink);
  color: #fff;
}

.disc {
  font-size: 0.88rem;
  background: var(--paper);
  border-radius: 14px;
  padding: 0.6rem 1rem;
  margin: 0;
}

.disc i {
  color: var(--turq);
  margin-inline-end: 0.3rem;
}

.bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  margin-top: 0.4rem;
}

.bar i {
  flex: 1;
  height: 8px;
  border-radius: 5px;
  background: #fff;
  overflow: hidden;
}

.bar u {
  display: block;
  height: 100%;
  background: var(--lime);
}

.buy-bar {
  display: none;
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 1500;
  background: var(--paper);
  padding: 0.6rem 1rem calc(0.6rem + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -8px 24px rgba(59, 36, 23, 0.14);
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  transform: translateY(115%);
  transition: transform 0.4s;
}

.buy-bar.show {
  transform: none;
}

.bb-info {
  min-width: 0;
}

.bb-info b {
  display: block;
  font-family: "Aref Ruqaa";
  font-size: 1.1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bb-info span {
  font-size: 0.85rem;
  color: var(--muted);
}

.buy-bar .btn {
  padding: 0.65rem 1.2rem;
  white-space: nowrap;
}

@media (max-width: 991px) {
  .buy-bar {
    display: flex;
  }
}

@media (max-width: 575px) {
  .qty {
    margin-inline: auto;
  }
}

.cart-count.zero {
  opacity: 0.5;
}

.fly-dot {
  position: fixed;
  z-index: 3000;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 0 4px var(--lime);
  pointer-events: none;
}

.toast-s {
  position: fixed;
  left: 50%;
  bottom: 96px;
  transform: translate(-50%, 20px);
  z-index: 4000;
  background: var(--ink);
  color: var(--lime);
  padding: 0.7rem 1.4rem;
  border-radius: 40px;
  opacity: 0;
  pointer-events: none;
  transition: 0.35s;
  max-width: 90vw;
  text-align: center;
  font-size: 0.9rem;
}

.toast-s.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.mini-cart {
  --bs-offcanvas-width: min(430px, 92vw);
  background: var(--paper);
}

.mini-cart .offcanvas-header {
  padding: 1.1rem 1.3rem 0.6rem;
}

.mini-cart h2 {
  font-size: 1.6rem;
  color: var(--lapis);
  margin: 0;
}

.mini-cart h2 small {
  font-family: "Vazirmatn", sans-serif;
  font-size: 0.85rem;
  color: var(--muted);
}

#mcShip {
  padding: 0 1.3rem;
}

.mini-cart .offcanvas-body {
  padding: 0.4rem 1.3rem;
}

.ship-bar {
  background: #fff;
  border-radius: 16px;
  padding: 0.7rem 0.9rem;
  margin-bottom: 0.8rem;
  font-size: 0.85rem;
}

.ship-bar p {
  margin: 0 0 0.4rem;
}

.ship-bar p i {
  color: var(--pink);
}

.ship-track {
  height: 8px;
  background: var(--sand);
  border-radius: 6px;
  overflow: hidden;
}

.ship-track i {
  display: block;
  height: 100%;
  background: var(--lime);
  border-radius: 6px;
  transition: width 0.8s cubic-bezier(0.3, 1, 0.4, 1);
}

.ship-bar.ok .ship-track i {
  background: var(--turq);
}

.mc-item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 0.8rem;
  padding: 0.8rem 0;
  border-bottom: 1px dashed var(--clay);
  align-items: start;
}

.ci-th {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 72px;
  aspect-ratio: 3/3.6;
  background: var(--bg);
  clip-path: var(--arch);
  overflow: hidden;
  padding-top: 10%;
}

.ci-th img,
.ci-th svg {
  height: 92%;
  width: auto;
  display: block;
}

.mc-mid {
  min-width: 0;
}

.mc-name {
  font-family: "Aref Ruqaa", serif;
  font-size: 1.15rem;
  color: var(--lapis);
  display: block;
  line-height: 1.5;
}

.mc-name:hover {
  color: var(--pink);
}

.mc-mid small {
  display: block;
  color: var(--muted);
  margin-bottom: 0.4rem;
  font-size: 0.78rem;
}

.mc-end {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.4rem;
  font-size: 0.9rem;
}

.mc-rm {
  border: 0;
  background: none;
  color: #b09a88;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  transition: 0.2s;
}

.mc-rm:hover {
  background: var(--pink);
  color: #fff;
}

.qty.sm {
  padding: 0.1rem;
  display: inline-flex;
}

.qty.sm button {
  width: 30px;
  height: 30px;
  font-size: 0.75rem;
}

.qty.sm output {
  min-width: 30px;
  font-size: 0.95rem;
}

.qty button.dim {
  opacity: 0.35;
}

.mc-foot {
  padding: 1rem 1.3rem calc(1rem + env(safe-area-inset-bottom, 0px));
  border-top: 2px dashed var(--clay);
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.mc-foot:empty {
  display: none;
}

.mc-sum {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.mc-sum b {
  font-size: 1.3rem;
}

.mc-sum small {
  font-weight: 400;
  font-size: 0.8rem;
}

.mc-empty {
  text-align: center;
  padding: 2.5rem 1rem;
}

.mc-empty h3 {
  color: var(--lapis);
  margin-top: 1rem;
}

.mc-empty p {
  color: var(--muted);
}

.c-hero {
  position: relative;
  padding: 112px 0 1.4rem;
  background: var(--paper);
  overflow: hidden;
}

.c-hero .s-star {
  left: 2%;
  top: -40px;
  width: min(70vw, 360px);
}

.c-sec {
  padding: 1.2rem 0 clamp(48px, 7vw, 80px);
  background: var(--paper);
  min-height: 320px;
}

.link-x {
  border: 0;
  background: none;
  color: var(--pink);
  text-decoration: underline;
  font-size: 0.88rem;
  padding: 0;
}

@keyframes flash {
  30% {
    color: var(--pink);
    transform: scale(1.08);
  }
}

.coupon {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}

.coupon input {
  border-radius: 50px;
  background: var(--paper);
  border: 0;
  text-align: left;
}

.coupon .btn {
  padding: 0.5rem 1.2rem;
  flex: none;
}

.c-empty {
  text-align: center;
  padding: clamp(2rem, 6vw, 4rem) 1rem;
}

.c-empty h2 {
  color: var(--lapis);
  margin: 1rem 0 0.5rem;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
}

.c-empty p {
  color: var(--muted);
  max-width: 420px;
  margin: 0 auto 1.5rem;
}

@media (max-width: 991px) {
  .c-hero {
    padding-top: 92px;
  }
}

@media (max-width: 575px) {
  .mc-item {
    grid-template-columns: 64px minmax(0, 1fr) auto;
  }

  .mc-item .ci-th {
    width: 64px;
  }
}

.profile-btn.in {
  background: var(--lime);
}

.profile-menu {
  min-width: 290px;
  border: 0;
  border-radius: 24px;
  padding: 1rem;
  background: var(--paper);
  box-shadow: 0 18px 44px rgba(59, 36, 23, 0.2);
  margin-top: 0.6rem !important;
}

.pm-head {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.9rem;
}

.pm-head b {
  display: block;
  font-family: "Aref Ruqaa", serif;
  font-size: 1.2rem;
  color: var(--lapis);
  line-height: 1.4;
}

.pm-head small {
  color: var(--muted);
  font-size: 0.8rem;
}

.pm-av {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--turq);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 1.2rem;
  flex: none;
}

.pm-order {
  background: #fff;
  border-radius: 16px;
  padding: 0.6rem 0.9rem;
  margin-bottom: 0.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 0.7rem;
  align-items: baseline;
  font-size: 0.85rem;
}

.pm-order small {
  color: var(--muted);
  width: 100%;
}

.pm-order b {
  color: var(--pink);
}

.pm-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.profile-menu .dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  border-radius: 14px;
  padding: 0.55rem 0.8rem;
  color: var(--ink);
  background: none;
  border: 0;
  width: 100%;
  text-align: start;
}

.profile-menu .dropdown-item i {
  color: var(--turq);
  font-size: 1.05rem;
}

.profile-menu .dropdown-item:hover,
.profile-menu .dropdown-item:focus {
  background: var(--lime);
}

.profile-menu .dropdown-item:hover i {
  color: var(--ink);
}

.pm-out {
  margin-top: 0.4rem;
  border-top: 1px dashed var(--clay) !important;
  border-radius: 0 0 14px 14px !important;
}

.pm-out i {
  color: var(--pink) !important;
}

@media (max-width: 575px) {
  .profile-menu {
    min-width: 0;
    width: min(300px, 88vw);
  }
}

.fld label {
  display: block;
  font-size: 0.88rem;
  font-weight: 500;
  margin-bottom: 0.35rem;
}

.fld label small {
  color: var(--muted);
  font-weight: 400;
}

.fld .form-control,
.fld .form-select {
  border: 2px solid transparent;
  background-color: var(--paper);
  border-radius: 16px;
  padding: 0.7rem 1rem;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}

.fld .form-control:focus,
.fld .form-select:focus {
  border-color: var(--pink);
  box-shadow: 0 0 0 3px rgba(255, 76, 255, 0.18);
}

.fld .is-bad {
  border-color: #d94b4b !important;
  background-color: #fff3f1;
}

.err {
  color: #c0392b;
  font-size: 0.8rem;
  min-height: 1.1em;
  margin: 0.25rem 0.2rem 0;
}

@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

/* utilities */
[hidden] {
  display: none !important;
}

@media (max-width: 380px) {
  .brand {
    font-size: 1.3rem;
  }

  .brand-mark {
    width: 13px;
    height: 18px;
  }
}

.nav-link.active::after {
  transform: scaleX(1);
}

.nav-link.active {
  color: var(--lapis) !important;
}

@media (max-width: 575px) {
  .profile-menu.show {
    position: fixed !important;
    inset: 68px 12px auto 12px !important;
    width: auto !important;
    transform: none !important;
    margin: 0 !important;
  }
}

/* ---- robustness additions ---- */
.profile-menu {
  max-width: calc(100vw - 1.5rem);
}

.fav,
.medal,
.chip,
.add {
  -webkit-tap-highlight-color: transparent;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}