/* Stage 1: readable prices and compact catalog cards. */
@font-face {
  font-family: AishinDigits;
  src: url("/fonts/iranyekanx-fanum-vf.woff") format("woff");
  font-display: swap;
  font-feature-settings: "ss02";
  font-style: normal;
  font-weight: 100 1000;
  unicode-range: U+0030-0039, U+0660-0669, U+06F0-06F9, U+002C, U+066C;
}

body {
  font-family: AishinDigits, var(--store-font), Arial, sans-serif;
  font-variant-numeric: tabular-nums;
}

.retail-store .product-card .product-name,
.retail-store .product-carousel .product-card .product-name {
  font-size: 13px;
  line-height: 1.65;
  min-height: 0;
  margin: 6px 0 8px;
}

.retail-store .product-card .product-bottom strong,
.retail-store .block-offers .product-card .product-bottom strong {
  font-family: AishinDigits, Tahoma, Arial, sans-serif;
  font-size: 14px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  line-height: 1.4;
}

.retail-store .product-card .product-bottom {
  gap: 5px;
  align-items: center;
}

.retail-store .product-card .product-bottom .add-button {
  min-width: 36px;
  min-height: 36px;
  width: 36px;
  height: 36px;
  padding: 0;
}

.retail-store .product-card .add-button svg {
  width: 18px;
  height: 18px;
}

.admin-products-table .table-product b {
  font-size: 13px;
  line-height: 1.55;
}

.admin-products-table input[inputmode="numeric"] {
  font-family: AishinDigits, Tahoma, Arial, sans-serif;
  font-variant-numeric: tabular-nums;
  text-align: left;
}

@media (max-width: 640px) {
  .retail-store .product-card .product-name,
  .retail-store .product-carousel .product-card .product-name { font-size: 12px; }
  .retail-store .product-card .product-bottom strong,
  .retail-store .block-offers .product-card .product-bottom strong { font-size: 13px; }
}

.block-offers .block-heading .offer-heading-image {
  display: inline-block;
  width: 30px;
  height: 30px;
  object-fit: contain;
  vertical-align: middle;
  margin-inline-end: 6px;
}

.aishin-timer-control {
  display: grid;
  gap: 10px;
  padding: 10px;
  border: 1px solid #d9e2e9;
  border-radius: 12px;
  background: #f8fafc;
}
.aishin-timer-parts, .aishin-timer-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.aishin-timer-part { flex: 1 1 74px; min-width: 70px; font-size: 12px; }
.aishin-timer-part input { width: 100%; box-sizing: border-box; padding: 8px; }
.aishin-timer-actions button { border: 1px solid #cbd5e1; border-radius: 8px; background: white; padding: 7px 10px; cursor: pointer; }
.aishin-timer-control small { color: #475569; }

.shop-nav > a, .shop-nav .category-trigger {
  transition: transform .22s ease, box-shadow .22s ease, background-color .22s ease, color .22s ease;
}
@media (hover: hover) {
  .shop-nav > a:hover, .shop-nav .category-trigger:hover {
    transform: translateY(-2px) scale(1.035);
    box-shadow: 0 7px 18px rgba(24, 46, 67, .11);
  }
}
@media (prefers-reduced-motion: reduce) {
  .shop-nav > a, .shop-nav .category-trigger { transition: none; }
}
.shop-footer .footer-contact-address,
.shop-footer .footer-contact-phone {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 15px;
  line-height: 1.8;
  text-decoration: none;
}
.shop-footer .footer-contact-phone { width: fit-content; direction: rtl; }
.shop-footer .footer-contact-phone:hover { text-decoration: underline; }
.shop-footer .footer-contact-address span,
.shop-footer .footer-contact-phone span { flex: none; font-size: 20px; line-height: 1.3; }
.shop-footer h4 { font-size: 17px; }
.shop-footer a, .shop-footer p { font-size: 14px; }

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.stats > div {
  position: relative;
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 22px;
  border: 1px solid #e0e8ee;
  border-radius: 20px;
  background: linear-gradient(145deg, #fff 48%, #f3f8fa);
  box-shadow: 0 10px 26px rgba(23, 50, 67, .055);
}
.stats > div:nth-child(2) { background: linear-gradient(145deg, #fff 48%, #eef8f5); }
.stats > div:nth-child(3) { background: linear-gradient(145deg, #fff 48%, #fff5eb); }
.stats > div:nth-child(4) { background: linear-gradient(145deg, #fff 48%, #fff1f1); }
.stats > div strong { font-size: clamp(22px, 2vw, 31px); letter-spacing: -.02em; }
.stats > div > span { font-size: 13px; font-weight: 700; color: #526578; }
.stats > div > small { color: #617488; }
.dashboard-grid { align-items: stretch; gap: 18px; }
.dashboard-grid > .panel { border-radius: 20px; box-shadow: 0 10px 26px rgba(23, 50, 67, .055); }
.dashboard-grid .welcome { background: linear-gradient(135deg, #17374a, #315c69); color: #fff; }
.dashboard-grid .welcome p, .dashboard-grid .welcome .eyebrow { color: #d8ecef; }
.aishin-setting-link { display: grid; gap: 7px; min-width: 200px; }
.aishin-setting-link input { width: 100%; box-sizing: border-box; }
@media (max-width: 900px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .stats { grid-template-columns: 1fr; } }
