.ui-icon {
  width: 1.15em;
  height: 1.15em;
  display: inline-block;
  min-width: 1.1em;
  flex: 0 0 auto;
  vertical-align: middle;
}

.header-actions .ui-icon { font-size: 21px; }
.button .ui-icon { font-size: 18px; }
.product-card .quick-add { border: 0; }
.product-card .heart-button .ui-icon { font-size: 24px; }
.heart-button.is-liked { color: #bd4b45; }
.heart-button.is-liked .ui-icon--heart,
.rating .ui-icon--star { fill: currentColor; }

.server-flash {
  position: fixed;
  z-index: 9999;
  top: 125px;
  left: 24px;
  max-width: min(420px, calc(100vw - 48px));
  padding: 14px 20px;
  border: 1px solid rgba(64, 92, 50, .22);
  border-radius: 16px;
  background: #edf5e8;
  color: #36512f;
  font-weight: 800;
  box-shadow: 0 18px 50px rgba(37, 29, 20, .16);
  animation: flash-in .35s ease both;
}
.server-flash--error { border-color: rgba(165, 55, 44, .2); background: #fff0ed; color: #99392f; }
@keyframes flash-in { from { opacity: 0; transform: translateY(-10px); } }

.category-pills a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 17px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.55);
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 800;
  transition: .2s ease;
}
.category-pills a:hover,
.category-pills a.is-active { border-color: var(--ink); background: var(--ink); color: #fff; }
.category-pills a span { opacity: .65; }
.shop-submit { min-height: 46px; }

.qty-control input {
  width: 54px;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  text-align: center;
  font-weight: 900;
  -moz-appearance: textfield;
}
.qty-control input::-webkit-inner-spin-button,
.qty-control input::-webkit-outer-spin-button { margin: 0; -webkit-appearance: none; }

.drawer-cart-item {
  display: grid;
  grid-template-columns: 76px 1fr 30px;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.drawer-cart-item img { width: 76px; height: 76px; border-radius: 16px; object-fit: cover; }
.drawer-cart-item > div { min-width: 0; display: grid; }
.drawer-cart-item strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.drawer-cart-item small { color: var(--ink-soft); }
.drawer-cart-item span { margin-top: 4px; color: var(--honey-dark); font-size: 12px; font-weight: 800; }
.drawer-cart-item button { width: 30px; height: 30px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: #f7eee2; color: #9f5e55; cursor: pointer; }
.drawer-cart-item button .ui-icon { width: 14px; height: 14px; }
.cart-drawer__items { min-height: 0; flex: 1; padding: 15px 22px; overflow-y: auto; }
.cart-drawer__head > button { width: 38px; height: 38px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: #f5ecdf; color: var(--ink); cursor: pointer; }
.cart-drawer__head > button .ui-icon { width: 18px; height: 18px; }
.cart-drawer__footer > div { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 13px; }
.cart-drawer__footer > div span { color: var(--ink-soft); font-size: 11px; }
.cart-drawer__footer > div strong { font-size: 16px; }
.drawer-empty { padding: 80px 20px; text-align: center; }
.drawer-empty > span { width: 72px; height: 72px; display: grid; place-items: center; margin: 0 auto; border-radius: 50%; background: #f5ead5; color: var(--honey-dark); }
.drawer-empty > span .ui-icon { width: 31px; height: 31px; }
.drawer-empty h3 { margin: 12px 0 4px; font-size: 24px; }
.drawer-empty p { margin: 0 0 20px; color: var(--ink-soft); }

.option-symbol { display: inline-grid !important; place-items: center; }
.delivery-options label > span:nth-of-type(2) { display: grid; }
.cart-line__info button { border: 0; background: transparent; }
.cart-line__quantity .qty-control input { width: 48px; }

.auth-tabs a {
  flex: 1;
  padding: 12px;
  border-radius: 999px;
  color: var(--ink-soft);
  text-align: center;
  font-size: 13px;
  font-weight: 900;
}
.auth-tabs a.is-active { background: #fff; color: var(--ink); box-shadow: 0 6px 18px rgba(55,40,22,.08); }
.auth-switch a { border: 0; background: transparent; color: var(--honey-dark); font-weight: 900; }

.admin-sidebar nav a {
  width: 100%;
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 0 16px;
  border: 0;
  border-radius: 13px;
  color: rgba(255,255,255,.68);
  font-size: 13px;
  font-weight: 800;
  transition: .2s ease;
}
.admin-sidebar nav a:hover,
.admin-sidebar nav a.is-active { background: rgba(255,255,255,.1); color: #fff; }
.admin-sidebar nav a .ui-icon { min-width: 23px; font-size: 18px; }
.admin-sidebar nav a b { margin-right: auto; min-width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: var(--honey); color: var(--ink); font-size: 10px; }
.admin-sidebar__bottom form { margin: 0; }
.admin-sidebar__bottom form button { width: 100%; }
.admin-panel__head a { color: var(--honey-dark); font-size: 12px; font-weight: 800; }
.admin-form-actions { display: flex; justify-content: flex-end; gap: 12px; padding: 0 28px 28px; }
.product-editor-form,
.compact-editor { margin-bottom: 30px; }
.product-image-editor input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.table-edit { padding: 8px 12px; border-radius: 10px; background: #fff3d3; color: #8c5b04; font-size: 12px; font-weight: 900; }
.admin-category-grid article > div:last-child { align-items: center; }
.admin-category-grid article > div:last-child a { color: var(--honey-dark); font-size: 12px; font-weight: 900; }
.admin-category-grid article > div:last-child form { display: inline-flex; }
.admin-category-grid article > div:last-child form button { border: 0; }
.admin-mobile-nav { display: none; }

.simple-page { min-height: 60vh; display: grid; place-items: center; padding: 90px 0; }
.simple-page .login-required { width: min(650px, calc(100% - 40px)); }
.big-symbol { color: var(--honey); font-family: "IRANYekanXVF", Tahoma, Arial, sans-serif; font-size: 74px; font-weight: 900; }
.status-pill { white-space: nowrap; }
.contact-form-card select { width: 100%; }

/* Header v2: desktop navigation stays visible until the true mobile breakpoint. */
.desktop-nav a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.desktop-nav a .ui-icon {
  width: 15px;
  height: 15px;
  color: var(--honey-dark);
  transition: transform .2s ease, color .2s ease;
}
.desktop-nav a:hover .ui-icon,
.desktop-nav a.is-active .ui-icon { color: var(--ink); transform: translateY(-1px); }
.mobile-menu-button { display: none !important; }
body.cart-is-open,
body.menu-is-open,
body.search-is-open { overflow: hidden; }
.mobile-menu nav a > span { color: var(--ink); font-size: 14px; }
.mobile-menu nav a > .ui-icon:first-child { color: var(--honey-dark); }
.mobile-menu nav a > .ui-icon:last-child { width: 14px; height: 14px; color: var(--ink-soft); }

@media (min-width: 761px) {
  .site-header .shell { width: min(1240px, calc(100% - 28px)); }
  .site-header__inner { gap: clamp(8px, 1.8vw, 30px); }
  .desktop-nav { display: flex !important; min-width: 0; gap: clamp(8px, 1.45vw, 28px); }
  .desktop-nav a { font-size: clamp(10px, 1.02vw, 13px); }
  .mobile-menu-button { display: none !important; }
  .site-header .brand-logo { position: static !important; right: auto !important; transform: none !important; }
  .site-header .brand-copy small { display: block !important; }
  .site-header .brand-copy strong { font-size: clamp(15px, 1.5vw, 19px); }
  .site-header .brand-mark { width: 45px !important; height: 45px !important; transform: none !important; }
  .header-actions { margin-right: 0 !important; }
}

@media (min-width: 761px) and (max-width: 920px) {
  .site-header .brand-logo { gap: 7px; }
  .site-header .brand-copy small { display: none !important; }
  .site-header .brand-copy strong { font-size: 14px; }
  .site-header .brand-mark { width: 38px !important; height: 38px !important; flex-basis: 38px; }
  .desktop-nav { gap: 7px; }
  .desktop-nav a { gap: 4px; font-size: 10px; }
  .desktop-nav a .ui-icon { width: 13px; height: 13px; }
  .header-actions .icon-button { width: 37px; height: 37px; }
}

@media (max-width: 760px) {
  .desktop-nav { display: none !important; }
  .mobile-menu-button { display: inline-flex !important; }
  .cart-drawer__items { padding-inline: 15px; }
}

/* Footer v2: isolated layout so legacy footer rules cannot collapse columns. */
.site-footer--v2 {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 10% 15%, rgba(217,154,27,.13), transparent 30%),
    linear-gradient(155deg, #241d14 0%, #17120d 100%);
  color: rgba(255,255,255,.86);
}
.site-footer--v2::before {
  position: absolute;
  top: 100px;
  left: -90px;
  width: 260px;
  height: 260px;
  border: 1px solid rgba(246,217,130,.08);
  border-radius: 50%;
  box-shadow: 0 0 0 38px rgba(246,217,130,.025), 0 0 0 76px rgba(246,217,130,.018);
  content: "";
  pointer-events: none;
}
.footer-v2__benefits {
  position: relative;
  z-index: 1;
  border-bottom: 1px solid rgba(255,255,255,.09);
  background: rgba(255,255,255,.025);
}
.footer-v2__benefits > .shell {
  min-height: 94px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
}
.footer-v2__benefits > .shell > div {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 30px;
  border-left: 1px solid rgba(255,255,255,.09);
}
.footer-v2__benefits > .shell > div:last-child { border-left: 0; }
.footer-v2__benefits .ui-icon { width: 29px; height: 29px; color: var(--honey-pale); }
.footer-v2__benefits span { min-width: 0; display: grid; gap: 2px; }
.footer-v2__benefits strong { color: #fff; font-size: 13px; }
.footer-v2__benefits small { color: rgba(255,255,255,.5); font-size: 10px; }

.footer-v2__main {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(245px, 1.35fr) minmax(125px, .68fr) minmax(125px, .68fr) minmax(210px, 1fr) 160px;
  align-items: start;
  gap: clamp(28px, 3.2vw, 58px);
  padding-block: 66px 58px;
}
.footer-v2__main > * { min-width: 0; }
.footer-v2__logo {
  min-height: 58px;
  display: flex;
  align-items: center;
  padding: 3px 0 7px;
  overflow: visible;
}
.site-footer--v2 .brand-logo { min-height: 52px; overflow: visible; }
.site-footer--v2 .brand-mark { width: 45px; height: 45px; flex: 0 0 45px; overflow: visible; }
.site-footer--v2 .brand-copy { overflow: visible; }
.site-footer--v2 .brand-copy strong { color: #fff; font-size: 20px; line-height: 1.35; }
.site-footer--v2 .brand-copy small { display: block; margin-top: 5px; color: rgba(255,255,255,.48); }
.footer-v2__brand > p {
  max-width: 370px;
  margin: 20px 0 24px;
  color: rgba(255,255,255,.58);
  font-size: 12px;
  line-height: 2.15;
}
.footer-v2__socials { display: flex; align-items: center; gap: 10px; }
.footer-v2__socials a {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 13px;
  background: rgba(255,255,255,.035);
  color: var(--honey-pale);
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.footer-v2__socials a:hover { border-color: rgba(246,217,130,.35); background: rgba(217,154,27,.12); transform: translateY(-3px); }
.footer-v2__socials .ui-icon { width: 18px; height: 18px; }
.footer-v2__main h3 {
  min-height: 28px;
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 22px;
  color: #fff;
  font-size: 13px;
}
.footer-v2__main h3 .ui-icon { width: 19px; height: 19px; color: var(--honey-pale); }
.footer-v2__nav { display: flex; flex-direction: column; align-items: flex-start; }
.footer-v2__nav > a {
  min-height: 35px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: rgba(255,255,255,.58);
  font-size: 11px;
  line-height: 1.7;
  transition: color .2s ease, transform .2s ease;
}
.footer-v2__nav > a .ui-icon { width: 12px; height: 12px; color: rgba(246,217,130,.58); }
.footer-v2__nav > a:hover { color: #fff; transform: translateX(-3px); }
.footer-v2__contact { display: flex; flex-direction: column; }
.footer-v2__contact-item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  margin-bottom: 18px;
}
.footer-v2__contact-item > i {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(246,217,130,.15);
  border-radius: 13px;
  background: rgba(217,154,27,.08);
  color: var(--honey-pale);
  font-style: normal;
}
.footer-v2__contact-item > i .ui-icon { width: 18px; height: 18px; }
.footer-v2__contact-item > span { min-width: 0; display: grid; gap: 4px; }
.footer-v2__contact-item strong { color: #fff; font-size: 12px; line-height: 1.7; }
.footer-v2__contact-item small { color: rgba(255,255,255,.5); font-size: 9px; line-height: 2; overflow-wrap: anywhere; }
.footer-v2__trust { display: flex; flex-direction: column; align-items: stretch; }
.footer-v2__trust-copy { min-height: 38px; margin: -9px 0 12px; color: rgba(255,255,255,.48); font-size: 9px; line-height: 1.9; }
.footer-v2__enamad-card {
  width: 142px;
  height: 158px;
  display: grid;
  place-items: center;
  padding: 13px;
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 21px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(0,0,0,.22);
  overflow: hidden;
  isolation: isolate;
}
.footer-v2__enamad-card img {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  display: block !important;
  object-fit: contain !important;
  background: #fff;
}
.footer-v2__bottom { position: relative; z-index: 1; border-top: 1px solid rgba(255,255,255,.08); }
.footer-v2__bottom > .shell {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: rgba(255,255,255,.42);
  font-size: 10px;
}
.footer-v2__bottom a { color: rgba(246,217,130,.72); transition: color .2s ease; }
.footer-v2__bottom a:hover { color: var(--honey-pale); }

@media (max-width: 1100px) {
  .footer-v2__main { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-v2__brand { grid-column: 1 / -1; }
  .footer-v2__brand > p { max-width: 650px; }
  .footer-v2__contact { grid-column: 1 / span 2; }
  .footer-v2__trust { grid-column: 3; }
}

@media (max-width: 760px) {
  .footer-v2__benefits > .shell { grid-template-columns: 1fr; padding-block: 12px; }
  .footer-v2__benefits > .shell > div { min-height: 68px; padding-inline: 6px; border-left: 0; border-bottom: 1px solid rgba(255,255,255,.07); }
  .footer-v2__benefits > .shell > div:last-child { border-bottom: 0; }
  .footer-v2__main { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 38px 28px; padding-block: 50px 42px; }
  .footer-v2__brand,
  .footer-v2__contact,
  .footer-v2__trust { grid-column: 1 / -1; }
  .footer-v2__trust { align-items: flex-start; }
  .footer-v2__trust-copy { min-height: auto; }
  .footer-v2__bottom > .shell { min-height: 82px; flex-direction: column; justify-content: center; gap: 6px; text-align: center; }
}

@media (max-width: 520px) {
  .footer-v2__main { grid-template-columns: 1fr; gap: 34px; }
  .footer-v2__nav,
  .footer-v2__contact,
  .footer-v2__trust,
  .footer-v2__brand { grid-column: 1; }
  .footer-v2__main h3 { margin-bottom: 15px; }
  .footer-v2__nav > a { min-height: 38px; }
  .footer-v2__enamad-card { width: 150px; height: 166px; }
}

@media (max-width: 960px) {
  .shop-submit { width: 100%; }
  .admin-sidebar { top: 104px; }
  .admin-mobile-nav {
    position: fixed;
    z-index: 70;
    right: 12px;
    bottom: 12px;
    left: 12px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 8px;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 18px;
    background: rgba(37,29,20,.96);
    box-shadow: 0 18px 50px rgba(0,0,0,.24);
    backdrop-filter: blur(14px);
  }
  .admin-mobile-nav a { display: grid; place-items: center; gap: 3px; color: #fff; font-size: 10px; }
  .admin-mobile-nav .ui-icon { color: var(--honey-pale); font-size: 17px; }
  .admin-shell + .site-footer { padding-bottom: 88px; }
}

@media (max-width: 640px) {
  .server-flash { top: 92px; right: 16px; left: 16px; max-width: none; }
  .category-pills { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; }
  .category-pills a { flex: 0 0 auto; }
  .cart-line__quantity .qty-control { min-width: 128px; }
  .admin-form-actions { padding: 0 18px 20px; }
}
