/*
 * Storefront foundation + legacy component styles.
 * Load order: style.css first, redesign.css second.
 * Do not reorder these files without visual regression testing.
 */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #fbf8f4;
  color: #4b4742;
  font-family: Vazirmatn,Arial,sans-serif;
}

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

button,input,textarea {
  font: inherit;
}

.top {
  background: #718679;
  color: #fff;
  text-align: center;
  padding: 9px;
  font-size: 12px;
}

header {
  height: 82px;
  background: #fffdfb;
  border-bottom: 1px solid #e9e1d9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6%;
  position: sticky;
  top: 0;
  z-index: 20;
}

.logo-img {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%);
  width: 112px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-img img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.menu,.actions button,.actions a {
  background: none;
  border: 0;
  padding: 10px;
  color: #4b4742;
  cursor: pointer;
}

.menu span {
  margin-right: 5px;
}

.actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.checkout-badge {
  font-size: 12px;
  color: #718679;
  background: #f1eee8;
  padding: 9px 13px;
  border-radius: 20px;
}

.hero {
  min-height: 560px;
  padding: 70px 9%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
  background: radial-gradient(circle at 80% 20%,#eadbd0 0,transparent 35%),linear-gradient(120deg,#f5ece5,#fbf8f4 58%,#eef2ed);
}

.hero span,.head small,.checkout-title small {
  letter-spacing: 4px;
  font-size: 11px;
  color: #718679;
  font-weight: 700;
}

.hero h1 {
  font-size: 52px;
  line-height: 1.35;
  margin: 14px 0;
}

.hero h1 b {
  color: #687c70;
}

.hero p {
  color: #817970;
  max-width: 550px;
  line-height: 2;
}

.btn {
  display: inline-block;
  background: #687c70;
  color: #fff;
  padding: 14px 24px;
  border: 0;
  border-radius: 5px;
  cursor: pointer;
}

.hero-art {
  width: 360px;
  height: 360px;
  border-radius: 10px;
  background: linear-gradient(145deg,#ddcbc0,#f0e5dc);
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 25px 60px #69584b18;
}

.hero-art strong {
  font-size: 42px;
  line-height: 1.35;
}

.strip {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  padding: 25px 8%;
  background: #fffdfb;
  border-bottom: 1px solid #e9e1d9;
  text-align: center;
}

.strip div {
  padding: 12px;
  border-left: 1px solid #eee5dd;
}

.categories,.new-collection,main {
  padding: 65px 7%;
}

.head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 25px;
}

.head h2 {
  font-size: 32px;
  margin: 7px 0;
}

.head span,.text-link {
  color: #8b8179;
  font-size: 12px;
}

.category-grid {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 8px 4px 18px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  direction: rtl;
}

.category-grid::-webkit-scrollbar {
  display: none;
}

.category-card {
  flex: 0 0 165px;
  min-height: 170px;
  border: 1px solid #e5dbd2;
  background: #fffdfb;
  border-radius: 18px;
  padding: 18px 14px;
  text-align: center;
  cursor: pointer;
  color: #4b4742;
  transition: .25s;
  scroll-snap-align: start;
  box-shadow: 0 8px 24px #69584b0d;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.category-card:hover,.category-card.active {
  background: #687c70;
  color: #fff;
  border-color: #687c70;
  transform: translateY(-3px);
  box-shadow: 0 14px 28px #687c7030;
}

.category-icon {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: #f3ece5;
  color: #687c70;
  display: flex !important;
  align-items: center;
  justify-content: center;
  margin-bottom: 13px;
  transition: .25s;
}

.category-icon svg {
  width: 38px;
  height: 38px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.category-card.active .category-icon {
  background: #fff;
  color: #687c70;
}

.category-name {
  display: block;
  font-weight: 800;
  font-size: 14px;
}

.category-card small {
  display: block;
  margin-top: 7px;
  opacity: .75;
  font-size: 10px;
}

.category-card.active small {
  opacity: .9;
}

.new-collection {
  background: #f4eee8;
}

.new-grid {
  display: grid;
  grid-template-columns: repeat(6,1fr);
  gap: 14px;
}

.new-card {
  background: #fffdfb;
  border: 1px solid #e5dbd2;
  border-radius: 8px;
  overflow: hidden;
}

.new-card img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  display: block;
}

.new-card div {
  padding: 12px;
}

.new-card small {
  display: block;
  color: #718679;
  letter-spacing: 2px;
  font-size: 9px;
}

.new-card strong {
  display: block;
  font-size: 13px;
  margin: 6px 0;
}

.new-card span {
  font-size: 11px;
  color: #8b8179;
}

.grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 22px;
}

.card {
  background: #fffdfb;
  border: 1px solid #e8ded6;
  border-radius: 7px;
  overflow: hidden;
  transition: .25s;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 35px #69584b18;
}

.card img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  background: #f2ebe4;
  display: block;
}

.card div {
  padding: 16px;
}

.card small {
  color: #988e86;
}

.card h3 {
  font-size: 15px;
  margin: 8px 0 12px;
}

.card b {
  display: block;
}

.card span {
  display: block;
  margin-top: 13px;
  color: #718679;
  font-size: 12px;
}

.empty-products {
  grid-column: 1/-1;
  background: #fffdfb;
  border: 1px dashed #ddd0c6;
  border-radius: 8px;
  padding: 45px;
  text-align: center;
  color: #8b8179;
}

footer {
  background: #4b4742;
  color: #eee;
  padding: 50px 7%;
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 35px;
}

footer a {
  display: block;
  color: #d5cec8;
  margin: 10px 0;
  font-size: 13px;
}

.footer-logo {
  width: 120px;
  height: 70px;
  object-fit: contain;
  background: #fffdfb;
  border-radius: 7px;
  padding: 4px;
}

.socials {
  display: flex;
  gap: 12px;
  margin-top: 15px;
}

.social {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #665f58;
  border: 1px solid #827870;
  transition: .2s;
}

.social:hover {
  transform: translateY(-3px);
  background: #718679;
}

.social svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: #fff;
  stroke-width: 1.8;
}

.telegram svg path:last-child {
  stroke-width: 1.4;
}

.whatsapp svg path {
  stroke: #fff;
}

.drawer {
  position: fixed;
  right: -340px;
  top: 0;
  width: 320px;
  height: 100vh;
  background: #fffdfb;
  z-index: 60;
  padding: 45px 25px;
  transition: .3s;
  box-shadow: -10px 0 30px #0002;
  overflow: auto;
}

.drawer.open {
  right: 0;
}

.drawer-close {
  position: absolute;
  top: 15px;
  left: 15px;
  border: 0;
  background: none;
  font-size: 28px;
  cursor: pointer;
}

.drawer-logo {
  width: 130px;
  height: 80px;
  object-fit: contain;
  display: block;
  margin: 0 auto 20px;
}

.drawer h3 {
  margin: 15px 0;
}

.drawer button:not(.drawer-close) {
  display: block;
  width: 100%;
  text-align: right;
  border: 0;
  border-bottom: 1px solid #eee3da;
  background: none;
  padding: 15px 4px;
  cursor: pointer;
  color: #4b4742;
}

.drawer button:not(.drawer-close):hover {
  color: #718679;
}

.drawer h3 {
  font-size: 18px;
}

#shade {
  display: none;
  position: fixed;
  inset: 0;
  background: #4b474277;
  z-index: 50;
}

#shade.show {
  display: block;
}

.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: #4b474280;
  z-index: 100;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal.show {
  display: flex;
}

.modalbox {
  position: relative;
  background: #fffdfb;
  width: min(560px,100%);
  max-height: 90vh;
  overflow: auto;
  padding: 30px;
  border-radius: 8px;
}

.x {
  position: absolute;
  left: 16px;
  top: 12px;
  border: 0;
  background: none;
  font-size: 27px;
}

.cartrow {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid #eee4dc;
}

.cartrow img {
  width: 58px;
  height: 65px;
  object-fit: cover;
  border-radius: 5px;
}

.cartrow div {
  flex: 1;
}

.cartrow small {
  display: block;
  color: #8b8179;
  margin: 5px 0;
}

.cartrow button {
  border: 0;
  background: none;
  color: #9b6e6e;
  font-size: 11px;
}

.total {
  font-weight: 800;
  font-size: 18px;
  padding: 18px 0;
}

.full {
  width: 100%;
  text-align: center;
}

.detail {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 65px;
  max-width: 1200px;
  margin: auto;
}

.gallery {
  display: flex;
  gap: 12px;
}

.gallery #thumbs {
  width: 82px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.gallery #thumbs img {
  width: 82px;
  height: 95px;
  object-fit: cover;
  border-radius: 5px;
  cursor: pointer;
}

.mainimg {
  width: calc(100% - 94px);
  height: 620px;
  object-fit: cover;
  background: #f1e9e2;
  border-radius: 8px;
}

.info h1 {
  font-size: 32px;
  margin: 12px 0;
}

.desc {
  white-space: pre-line;
  color: #817970;
  line-height: 2;
  font-size: 13px;
}

.info label {
  display: block;
  font-weight: 700;
  margin: 20px 0 9px;
}

.buytype button,.info #colors button,.info #sizes button {
  border: 1px solid #ded4cc;
  background: #fffaf6;
  padding: 9px 14px;
  border-radius: 4px;
  margin: 0 6px 6px 0;
  cursor: pointer;
}

.buytype .sel,.chosen {
  background: #687c70 !important;
  color: #fff;
  border-color: #687c70 !important;
}

.price {
  font-size: 22px;
  font-weight: 800;
  margin: 25px 0;
}

.wa {
  display: block;
  text-align: center;
  background: #718a79;
  color: #fff;
  padding: 13px;
  border-radius: 5px;
  margin-top: 10px;
  border: 0;
  cursor: pointer;
}

.meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 20px;
  color: #8b8179;
  font-size: 11px;
}

.muted {
  color: #988e86;
  font-size: 12px;
}

.checkout,.account {
  max-width: 950px;
  margin: auto;
}

.checkout {
  padding-top: 55px;
}

.checkout-title {
  background: linear-gradient(135deg,#f4ece5,#eef2ed);
  padding: 28px;
  border-radius: 10px;
  margin-bottom: 25px;
}

.checkout-title h1 {
  margin: 8px 0;
}

.checkout-title p {
  color: #817970;
  line-height: 1.9;
}

.checkout-items {
  margin-bottom: 20px;
}

.checkout-items:empty {
  display: none;
}

.form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 25px;
}

.form input,.form textarea,.account input {
  width: 100%;
  padding: 14px;
  border: 1px solid #e2d8d0;
  background: #fffdfb;
  border-radius: 5px;
}

.form textarea {
  height: 110px;
  grid-column: 1/-1;
}

.form .btn {
  grid-column: 1/-1;
}

.invoice-paper {
  margin-top: 25px;
  padding: 26px;
  background: #fffdfb;
  border: 1px solid #ddd2c9;
  border-radius: 5px;
  box-shadow: 0 12px 30px #69584b12;
}

.invoice-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 2px solid #718679;
  padding-bottom: 18px;
}

.invoice-head>div:first-child {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.invoice-logo {
  width: 88px;
  height: 62px;
  object-fit: contain;
}

.invoice-head h2 {
  margin: 0;
  font-size: 22px;
}

.invoice-head span {
  width: 100%;
  font-size: 11px;
  color: #8b8179;
  margin-right: 100px;
}

.invoice-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
  font-size: 11px;
  color: #665f58;
}

.invoice-shop {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 15px 0;
}

.invoice-shop span {
  background: #f4eee8;
  padding: 7px 9px;
  border-radius: 4px;
  font-size: 10px;
}

.customer-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 8px;
  margin: 16px 0;
}

.customer-grid>div {
  border: 1px solid #eee3da;
  padding: 10px;
  border-radius: 4px;
}

.customer-grid b,.customer-grid span {
  display: block;
}

.customer-grid b {
  font-size: 10px;
  color: #8b8179;
  margin-bottom: 4px;
}

.customer-grid span {
  font-size: 12px;
}

.customer-grid .wide {
  grid-column: 1/-1;
}

.invoice-paper table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
}

.invoice-paper td,.invoice-paper th {
  padding: 10px;
  border-bottom: 1px solid #eee;
  text-align: right;
  font-size: 10px;
}

.invoice-paper th {
  background: #f4eee8;
}

.invoice-paper td small {
  display: block;
  color: #9b9188;
  margin-top: 3px;
}

.invoice-paper tfoot td {
  font-weight: 800;
  font-size: 12px;
}

.invoice-note {
  margin-top: 15px;
  background: #f8f3ee;
  padding: 10px;
  font-size: 10px;
}

.invoice-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-top: 20px;
  border-top: 1px solid #eee3da;
  padding-top: 15px;
}

.invoice-bottom p {
  font-size: 9px;
  color: #8b8179;
  max-width: 380px;
}

.invoice-stamp {
  width: 125px;
  height: 125px;
  object-fit: contain;
}

.invoice-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}

.invoice-actions .wa {
  grid-column: 1/-1;
}

.share-btn {
  background: #718a79;
}

.account {
  padding-top: 70px;
}

.account input {
  display: block;
  margin: 10px 0;
}

.account .btn {
  border: 0;
}

.account .wa {
  margin-top: 12px;
}

@media (max-width:1100px) {
  .new-grid {
    grid-template-columns: repeat(3,1fr);
  }
  .category-card {
    flex-basis: 155px;
  }
  .grid {
    grid-template-columns: repeat(3,1fr);
  }
}

@media (max-width:900px) {
  .grid {
    grid-template-columns: repeat(2,1fr);
  }
  .detail {
    grid-template-columns: 1fr;
  }
  .mainimg {
    height: 500px;
  }
  .strip {
    grid-template-columns: 1fr 1fr;
  }
  footer {
    grid-template-columns: 1fr 1fr;
  }
  .new-grid {
    grid-template-columns: repeat(3,1fr);
  }
}

@media (max-width:600px) {
  header {
    height: 70px;
    padding: 0 3%;
  }
  .logo-img {
    width: 94px;
    height: 56px;
  }
  .menu span {
    display: none;
  }
  .hero {
    display: block;
    padding: 45px 6%;
  }
  .hero h1 {
    font-size: 38px;
  }
  .hero-art {
    width: 100%;
    height: 260px;
    margin-top: 30px;
  }
  .strip {
    grid-template-columns: 1fr 1fr;
    padding: 15px 3%;
  }
  .category-card {
    flex-basis: 142px;
    min-height: 155px;
  }
  .new-grid {
    grid-template-columns: 1fr 1fr;
  }
  .new-card img {
    height: 200px;
  }
  .grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .card img {
    height: 220px;
  }
  .categories,.new-collection,main {
    padding: 45px 4%;
  }
  .detail {
    padding: 35px 4%;
    gap: 30px;
  }
  .gallery {
    display: block;
  }
  .gallery #thumbs {
    width: 100%;
    flex-direction: row;
    overflow: auto;
    margin-bottom: 10px;
  }
  .gallery #thumbs img {
    flex: 0 0 65px;
    width: 65px;
    height: 75px;
  }
  .mainimg {
    width: 100%;
    height: 430px;
  }
  .form {
    grid-template-columns: 1fr;
  }
  .form textarea,.form .btn {
    grid-column: auto;
  }
  footer {
    grid-template-columns: 1fr;
  }
  .invoice-head {
    display: block;
  }
  .invoice-meta {
    text-align: right;
    margin-top: 10px;
  }
  .invoice-head span {
    margin-right: 0;
  }
  .customer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .customer-grid .wide {
    grid-column: 1/-1;
  }
  .invoice-paper {
    padding: 15px;
  }
  .invoice-paper table {
    font-size: 9px;
  }
  .invoice-paper td,.invoice-paper th {
    padding: 6px;
    font-size: 8px;
  }
  .invoice-stamp {
    width: 95px;
    height: 95px;
  }
  .invoice-actions {
    grid-template-columns: 1fr;
  }
  .invoice-actions .wa {
    grid-column: auto;
  }
}

.checkout-cart-card {
  background: #fffdfb;
  border: 1px solid #e8ded6;
  border-radius: 8px;
  padding: 18px;
  margin-bottom: 18px;
}

.checkout-cart-card h3 {
  margin-top: 0;
}

.checkout-line {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid #eee4dc;
}

.checkout-line img {
  width: 52px;
  height: 60px;
  object-fit: cover;
  border-radius: 5px;
}

.checkout-line div {
  flex: 1;
}

.checkout-line small {
  display: block;
  color: #8b8179;
  margin-top: 4px;
  font-size: 10px;
}

.checkout-line strong {
  font-size: 11px;
}

/* v6 commerce + mobile refinements */

.color-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  align-items: center;
}

.color-swatch {
  width: 38px !important;
  height: 38px !important;
  padding: 0 !important;
  border-radius: 50% !important;
  background: var(--swatch) !important;
  border: 3px solid #fff !important;
  box-shadow: 0 0 0 1px #d8cec5,0 5px 14px #69584b14;
  position: relative;
  transition: .2s;
}

.color-swatch span {
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  border: 1px solid #00000014;
}

.color-swatch[style*="#fffdf9"] {
  background: #fffdf9 !important;
}

.color-swatch.chosen {
  box-shadow: 0 0 0 3px #687c70,0 6px 16px #687c7030 !important;
  transform: scale(1.08);
}

.size-btn {
  min-width: 54px;
}

.series-qty-box {
  margin-top: 4px;
}

.qty-control {
  display: flex;
  align-items: center;
  width: 150px;
  height: 48px;
  border: 1px solid #ded4cc;
  border-radius: 10px;
  overflow: hidden;
  background: #fffdfb;
}

.qty-control button {
  width: 48px;
  height: 100%;
  border: 0;
  background: #f4eee8;
  color: #4b4742;
  font-size: 24px;
  cursor: pointer;
}

.qty-control strong {
  flex: 1;
  text-align: center;
  font-size: 18px;
}

.stock-text {
  margin-top: 15px;
  font-size: 12px;
  color: #718679;
}

.btn:disabled {
  opacity: .5;
  cursor: not-allowed;
}

.continue-shopping {
  display: block;
  margin-top: 10px;
  padding: 12px;
  border: 1px solid #d9cec4;
  background: #f4eee8;
  color: #4b4742;
  border-radius: 5px;
  cursor: pointer;
}

.signature-box {
  grid-column: 1/-1;
  border: 1px solid #e2d8d0;
  background: #fffdfb;
  border-radius: 8px;
  padding: 14px;
}

.signature-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.signature-head label {
  font-weight: 800;
}

.signature-head button {
  border: 0;
  background: #f4eee8;
  padding: 7px 11px;
  border-radius: 5px;
  cursor: pointer;
}

.signature-box canvas {
  width: 100%;
  height: 150px;
  display: block;
  background: #fff;
  border: 1px dashed #cfc3ba;
  border-radius: 6px;
  touch-action: none;
}

.signature-box small {
  display: block;
  color: #8b8179;
  margin-top: 7px;
}

.invoice-signature {
  display: block;
  width: 190px;
  height: 65px;
  object-fit: contain;
  border-bottom: 1px solid #d9cec4;
  margin-top: 8px;
}

.admin-body {
  background: #f7f2ed;
}

.admin-login {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 25px;
}

.admin-login-card {
  width: min(430px,100%);
  background: #fffdfb;
  border: 1px solid #e3d8cf;
  border-radius: 18px;
  padding: 35px;
  box-shadow: 0 25px 70px #4b474218;
  text-align: center;
}

.admin-login-card img {
  width: 150px;
  height: 90px;
  object-fit: contain;
}

.admin-login-card h1 {
  font-size: 25px;
}

.admin-login-card input {
  width: 100%;
  padding: 14px;
  border: 1px solid #ddd2c9;
  border-radius: 8px;
  margin: 15px 0;
}

.admin-login-card>a {
  display: block;
  margin-top: 18px;
  color: #718679;
}

.login-error {
  color: #a95c5c;
  min-height: 22px;
}

.admin-shell {
  min-height: 100vh;
  grid-template-columns: 240px 1fr;
}

.admin-side {
  background: #4b4742;
  color: #fff;
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.admin-logo {
  width: 130px;
  height: 75px;
  object-fit: contain;
  background: #fffdfb;
  border-radius: 10px;
  margin: 0 auto;
}

.admin-brand {
  text-align: center;
  letter-spacing: 2px;
  font-size: 10px;
  color: #d9d0ca;
  margin-bottom: 18px;
}

.admin-nav {
  border: 0;
  background: transparent;
  color: #ddd5cf;
  padding: 13px 15px;
  text-align: right;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
}

.admin-nav:hover,.admin-nav.active {
  background: #718679;
  color: #fff;
}

.admin-nav.logout {
  margin-top: auto;
  color: #f1b8b8;
}

.admin-main {
  padding: 35px;
  max-width: 1500px;
  width: 100%;
}

.admin-mobile-head {
  display: none;
}

.admin-title {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 20px;
}

.admin-title small {
  letter-spacing: 3px;
  color: #718679;
}

.admin-title h1 {
  margin: 7px 0 0;
}

.admin-card {
  background: #fffdfb;
  border: 1px solid #e3d8cf;
  border-radius: 14px;
  padding: 22px;
  margin-bottom: 20px;
  box-shadow: 0 12px 35px #4b47420b;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 14px;
  margin-bottom: 20px;
}

.stat {
  background: #fffdfb;
  border: 1px solid #e3d8cf;
  border-radius: 14px;
  padding: 20px;
}

.stat small {
  display: block;
  color: #8b8179;
}

.stat b {
  display: block;
  font-size: 23px;
  margin-top: 8px;
}

.order-mini {
  display: grid;
  grid-template-columns: 1.2fr 1fr .6fr 1fr;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid #eee4dc;
  font-size: 12px;
}

.admin-table-wrap {
  overflow: auto;
}

.admin-table-wrap table {
  width: 100%;
  border-collapse: collapse;
  min-width: 850px;
}

.admin-table-wrap th,.admin-table-wrap td {
  padding: 11px;
  border-bottom: 1px solid #eee4dc;
  text-align: right;
  vertical-align: middle;
  font-size: 12px;
}

.admin-table-wrap th {
  background: #f4eee8;
}

.admin-table-wrap input[type=number],.admin-table-wrap select {
  padding: 8px;
  border: 1px solid #ded4cc;
  border-radius: 5px;
  background: #fff;
}

.admin-table-wrap input[type=number] {
  width: 130px;
}

.admin-product {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 220px;
}

.admin-product img {
  width: 48px;
  height: 58px;
  object-fit: cover;
  border-radius: 5px;
}

.admin-product span {
  font-weight: 700;
}

.admin-product small {
  display: block;
  color: #8b8179;
  margin-top: 3px;
}

.mini-btn {
  border: 0;
  background: #687c70;
  color: #fff;
  padding: 8px 12px;
  border-radius: 5px;
  cursor: pointer;
}

.admin-note {
  background: #f4eee8;
  padding: 12px;
  border-radius: 8px;
  color: #6f675f;
  line-height: 1.8;
}

.settings-card {
  max-width: 650px;
}

.settings-card label {
  display: block;
  font-weight: 700;
  margin-bottom: 8px;
}

.settings-card input {
  width: 100%;
  padding: 13px;
  border: 1px solid #ddd2c9;
  border-radius: 7px;
  margin-bottom: 12px;
}

.settings-card hr {
  border: 0;
  border-top: 1px solid #eee4dc;
  margin: 25px 0;
}

@media (max-width:900px) {
  .admin-shell {
    grid-template-columns: 1fr;
  }
  .admin-side {
    display: none;
  }
  .admin-main {
    padding: 18px;
  }
  .admin-mobile-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fffdfb;
    padding: 14px;
    border: 1px solid #e3d8cf;
    border-radius: 10px;
    margin-bottom: 15px;
  }
  .admin-mobile-head button {
    border: 0;
    background: #f4eee8;
    padding: 8px 12px;
    border-radius: 5px;
  }
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }
  .admin-title {
    align-items: flex-start;
    gap: 10px;
    flex-direction: column;
  }
  .order-mini {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width:600px) {
  .detail {
    padding: 22px 4%;
    gap: 22px;
  }
  .info h1 {
    font-size: 25px;
    line-height: 1.6;
  }
  .desc {
    font-size: 12px;
    line-height: 1.9;
  }
  .gallery {
    width: 100%;
  }
  .gallery .mainimg {
    height: auto;
    aspect-ratio: 4/5;
    max-height: none;
    border-radius: 12px;
  }
  .gallery #thumbs img {
    flex-basis: 58px;
    width: 58px;
    height: 68px;
  }
  .buytype {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .buytype label {
    grid-column: 1/-1;
    margin-bottom: 0;
  }
  .buytype button {
    margin: 0;
  }
  .color-swatches {
    gap: 10px;
  }
  .color-swatch {
    width: 36px !important;
    height: 36px !important;
  }
  .price {
    font-size: 19px;
    margin: 18px 0;
  }
  .meta {
    flex-direction: column;
  }
  .form {
    gap: 9px;
  }
  .signature-box {
    grid-column: auto;
  }
  .signature-box canvas {
    height: 135px;
  }
  .invoice-signature {
    width: 140px;
    height: 55px;
  }
  .admin-login-card {
    padding: 25px;
  }
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }
  .stat b {
    font-size: 18px;
  }
  .admin-card {
    padding: 15px;
  }
}

.product-editor {
  margin-bottom: 18px;
}

.editor-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 12px;
}

.editor-grid input,.editor-grid textarea,.editor-grid select {
  width: 100%;
  box-sizing: border-box;
  padding: 12px;
  border: 1px solid #ddd0c4;
  border-radius: 12px;
  background: #fffdfb;
  font: inherit;
}

.editor-grid textarea {
  min-height: 110px;
  grid-column: 1/-1;
  resize: vertical;
}

.checkline {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px;
}

.upload-box {
  grid-column: 1/-1;
  border: 1px dashed #cdbfb1;
  border-radius: 14px;
  padding: 14px;
  background: #fbf7f3;
}

.upload-box label {
  display: block;
  font-weight: 700;
  margin-bottom: 8px;
}

.upload-box small {
  display: block;
  margin-top: 6px;
  color: #777;
}

.current-images {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.current-images img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid #e4d9cf;
}

.editor-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.ghost {
  background: #eee5dc !important;
  color: #514a44 !important;
}

.danger {
  background: #f5d9d6 !important;
  color: #8a3029 !important;
}

.mini-btn {
  margin: 2px;
}

.admin-table-wrap input[type=number] {
  max-width: 125px;
}

.admin-table-wrap td {
  vertical-align: middle;
}

.admin-table-wrap td small {
  display: block;
  color: #8b8178;
  margin-top: 3px;
}

.admin-product {
  display: flex;
  gap: 9px;
  align-items: center;
  min-width: 190px;
}

.admin-product img {
  width: 48px;
  height: 58px;
  object-fit: cover;
  border-radius: 8px;
  background: #eee;
}

.admin-product span small {
  font-weight: 400;
}

.@media(max-width:760px) {
  .editor-grid {
    grid-template-columns: 1fr;
  }
  .editor-grid textarea,.upload-box {
    grid-column: auto;
  }
  .admin-table-wrap {
    overflow: auto;
  }
  .admin-table-wrap table {
    min-width: 980px;
  }
}

.admin-mobile-nav {
  display: none;
}

.admin-quick-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0 0 20px;
}

.admin-quick-actions .btn {
  min-width: 150px;
}

@media (max-width:900px) {
  .admin-mobile-nav {
    display: flex;
    gap: 7px;
    overflow-x: auto;
    padding: 3px 0 12px;
    position: sticky;
    top: 0;
    z-index: 20;
    background: #f7f2ed;
  }
  .admin-mobile-tab {
    flex: 0 0 auto;
    border: 1px solid #e3d8cf;
    background: #fffdfb;
    color: #514a44;
    padding: 10px 14px;
    border-radius: 9px;
    text-decoration: none;
    font: inherit;
    cursor: pointer;
  }
  .admin-mobile-tab.active {
    background: #718679;
    color: #fff;
    border-color: #718679;
  }
  .admin-quick-actions {
    margin-top: 4px;
  }
  .admin-main {
    padding-top: 10px;
  }
}

.search-section {
  padding: 8px 6% 0;
}

.search-box {
  max-width: 720px;
  margin: auto;
  position: relative;
}

.search-box input {
  width: 100%;
  box-sizing: border-box;
  padding: 16px 48px 16px 16px;
  border: 1px solid #ded4cc;
  border-radius: 14px;
  background: #fffdfb;
  font: inherit;
  box-shadow: 0 8px 25px #4b47420a;
}

.search-box span {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 25px;
  color: #718679;
}

.cart-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
}

.cart-actions button {
  border: 1px solid #ded4cc;
  background: #f4eee8;
  border-radius: 7px;
  min-width: 30px;
  height: 30px;
  cursor: pointer;
}

.cart-actions .remove-cart {
  padding: 0 10px;
  width: auto;
  color: #8a3029;
  background: #f5d9d6;
}

.content-page {
  max-width: 900px;
  margin: 50px auto;
  padding: 0 5%;
}

.content-page h1 {
  font-size: 42px;
  margin: 10px 0 25px;
}

.content-card {
  background: #fffdfb;
  border: 1px solid #e3d8cf;
  border-radius: 18px;
  padding: 30px;
  line-height: 2;
}

.content-card h2 {
  margin-top: 0;
}

.content-card li {
  margin: 8px 0;
}

.account-orders {
  margin-top: 30px;
}

.account-order {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr auto;
  gap: 10px;
  padding: 14px 0;
  border-bottom: 1px solid #eee4dc;
  align-items: center;
}

.order-detail-modal {
  max-width: 760px;
}

.order-detail-line {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px solid #eee4dc;
  font-size: 12px;
}

.admin-filter {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 15px;
}

.admin-filter input {
  flex: 1;
  padding: 12px;
  border: 1px solid #ddd0c4;
  border-radius: 10px;
  background: #fffdfb;
  font: inherit;
}

.muted {
  color: #8b8179;
}

@media (max-width:650px) {
  .content-page {
    margin: 25px auto;
  }
  .content-page h1 {
    font-size: 30px;
  }
  .content-card {
    padding: 20px;
  }
  .account-order {
    grid-template-columns: 1fr 1fr;
  }
  .order-detail-line {
    grid-template-columns: 1fr 1fr;
  }
  .admin-filter {
    display: block;
  }
  .admin-filter input {
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 8px;
  }
}

@media (max-width:650px) {
  .content-page {
    margin: 25px auto;
  }
  .content-page h1 {
    font-size: 30px;
  }
  .content-card {
    padding: 20px;
  }
  .account-order {
    grid-template-columns: 1fr 1fr;
  }
  .order-detail-line {
    grid-template-columns: 1fr 1fr;
  }
  .admin-filter {
    display: block;
  }
  .admin-filter input {
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 8px;
  }
}

/* v13 professional commerce layer */

.card-media {
  position: relative;
}

.card-media img {
  display: block;
}

.heart,.compare-btn {
  position: absolute;
  top: 10px;
  border: 0;
  border-radius: 20px;
  background: #fffdfbde;
  padding: 7px 10px;
  cursor: pointer;
  box-shadow: 0 5px 15px #0001;
}

.heart {
  left: 10px;
  font-size: 17px;
}

.heart.on {
  color: #a35b68;
}

.compare-btn {
  right: 10px;
  font-size: 10px;
}

.product-tools {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-bottom: 8px;
}

.product-tools button,.stock-notify button {
  border: 1px solid #ddd0c4;
  background: #fffdfb;
  border-radius: 20px;
  padding: 8px 12px;
  cursor: pointer;
}

.shipping-box,.discount-box {
  margin-top: 15px;
  padding: 13px;
  background: #f5eee8;
  border-radius: 12px;
  border: 1px solid #e4d8cf;
}

.shipping-box label,.discount-box label {
  display: block;
  font-weight: 700;
  margin-bottom: 8px;
}

.shipping-box select,.discount-box input {
  width: 100%;
  padding: 11px;
  border: 1px solid #ddd0c4;
  border-radius: 8px;
  background: #fff;
}

.shipping-box small {
  display: block;
  margin-top: 7px;
  color: #817970;
}

.discount-box {
  display: flex;
  gap: 8px;
  align-items: center;
}

.discount-box input {
  flex: 1;
}

.discount-box span {
  font-size: 11px;
  color: #687c70;
}

.reviews {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #e6ddd6;
}

.review {
  padding: 10px 0;
  border-bottom: 1px solid #eee4dc;
}

.review b {
  color: #c69253;
}

.stars {
  display: flex;
  gap: 3px;
  margin: 10px 0;
}

.stars button {
  border: 0;
  background: none;
  color: #c69253;
  font-size: 22px;
  cursor: pointer;
}

.stars button.chosen {
  color: #b7792c;
}

.reviews textarea {
  width: 100%;
  min-height: 90px;
  padding: 12px;
  border: 1px solid #ddd0c4;
  border-radius: 10px;
  background: #fff;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 18px;
}

.mini-chart {
  display: flex;
  align-items: end;
  gap: 8px;
  height: 165px;
  padding-top: 15px;
}

.chart-col {
  flex: 1;
  height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  align-items: center;
  gap: 4px;
  font-size: 8px;
}

.chart-col span {
  width: 70%;
  background: #718679;
  border-radius: 6px 6px 0 0;
  min-height: 8px;
}

.chart-col b {
  font-size: 8px;
  overflow: hidden;
  max-width: 100%;
  white-space: nowrap;
}

.stock-alert,.admin-list-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  border-bottom: 1px solid #eee4dc;
}

.bulk-box {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.bulk-box input,.bulk-box select,.wide-input {
  padding: 10px;
  border: 1px solid #ddd0c4;
  border-radius: 8px;
  background: #fff;
}

.wide-input {
  width: 100%;
  margin-bottom: 15px;
}

.danger-btn {
  background: #9b5f59;
}

.admin-list {
  margin-top: 15px;
}

.admin-card hr {
  border: 0;
  border-top: 1px solid #e6ddd6;
  margin: 25px 0;
}

.form input,.form textarea {
  width: 100%;
  padding: 13px;
  margin: 6px 0;
  border: 1px solid #ddd0c4;
  border-radius: 10px;
  background: #fffdfb;
}

.form textarea {
  min-height: 100px;
}

.checkout-line {
  display: grid;
  grid-template-columns: 65px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #eee4dc;
}

.checkout-line img {
  width: 65px;
  height: 75px;
  object-fit: cover;
  border-radius: 8px;
}

.checkout-line small {
  display: block;
  color: #8b8179;
  margin-top: 5px;
}

.invoice-paper {
  background: #fff;
  padding: 25px;
  border: 1px solid #e3d8cf;
}

.invoice-paper table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

.invoice-paper th,.invoice-paper td {
  border: 1px solid #ddd;
  padding: 8px;
  font-size: 11px;
}

.invoice-paper th {
  background: #f5eee8;
}

.invoice-paper tfoot td {
  font-size: 12px;
}

.invoice-paper td small {
  display: block;
}

.invoice-shop,.customer-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 8px;
  margin-top: 15px;
}

.customer-grid>div {
  padding: 8px;
  background: #faf6f1;
}

.customer-grid span {
  display: block;
  margin-top: 4px;
}

.invoice-bottom {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-top: 25px;
}

.invoice-stamp {
  width: 120px;
}

.invoice-signature {
  display: block;
  width: 180px;
  height: 65px;
  object-fit: contain;
}

.invoice-actions {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

@media (max-width:800px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .invoice-shop,.customer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .checkout-line {
    grid-template-columns: 55px 1fr;
  }
  .checkout-line>strong {
    grid-column: 2;
  }
  .invoice-paper {
    padding: 12px;
  }
  .invoice-paper table {
    font-size: 9px;
  }
  .invoice-paper th,.invoice-paper td {
    font-size: 9px;
    padding: 5px;
  }
}

@media (max-width:600px) {
  .dashboard-grid {
    display: block;
  }
  .dashboard-grid .admin-card {
    margin-bottom: 15px;
  }
  .invoice-shop,.customer-grid {
    grid-template-columns: 1fr;
  }
  .customer-grid .wide {
    grid-column: auto;
  }
  .invoice-bottom {
    align-items: center;
  }
  .bulk-box {
    display: block;
  }
  .bulk-box>* {
    margin: 4px;
  }
  .discount-box {
    flex-wrap: wrap;
  }
  .discount-box input {
    width: 100%;
    flex-basis: 100%;
  }
}

.compare-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 18px;
}

.compare-img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 12px;
}

.product-tools {
  direction: rtl;
}

@media (max-width:700px) {
  .compare-grid {
    grid-template-columns: 1fr;
  }
  .compare-img {
    height: 320px;
  }
}

/* ===== ECELAND KIDS V20 REDESIGN ===== */

:root {
  --ink: #21343a;
  --muted: #718087;
  --brand: #4e8c80;
  --brand-dark: #39766c;
  --mint: #edf6f3;
  --cream: #fbfaf7;
  --line: #e5ece9;
  --shadow: 0 18px 50px rgba(35,55,59,.08);
}

html {
  scroll-behavior: smooth;
}

body {
  background: #fff;
  color: var(--ink);
  font-family: Vazirmatn,Arial,sans-serif;
}

.top {
  background: var(--ink);
  padding: 8px 16px;
  font-size: 12px;
  letter-spacing: .1px;
}

.top b {
  opacity: .5;
  margin: 0 7px;
}

.modern-header {
  height: 82px;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(12px);
}

.header-inner {
  max-width: 1280px;
  height: 100%;
  margin: auto;
  padding: 0 28px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}

.modern-logo {
  position: static;
  transform: none;
  width: 128px;
  height: 70px;
  justify-self: center;
}

.main-nav {
  display: flex;
  gap: 26px;
  align-items: center;
  justify-self: start;
}

.main-nav a {
  font-size: 13px;
  font-weight: 700;
  color: #45565b;
  position: relative;
  padding: 30px 0;
}

.main-nav a:after {
  content: "";
  position: absolute;
  right: 0;
  left: 0;
  bottom: 20px;
  height: 2px;
  background: var(--brand);
  transform: scaleX(0);
  transition: .2s;
}

.main-nav a:hover:after,.main-nav a.active:after {
  transform: scaleX(1);
}

.header-tools {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-self: end;
}

.tool {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #38535a;
  font-size: 18px;
  cursor: pointer;
  position: relative;
}

.tool:hover {
  border-color: #b8d5ce;
  color: var(--brand-dark);
}

.cart-tool em {
  position: absolute;
  right: -3px;
  top: -4px;
  background: var(--brand);
  color: #fff;
  border-radius: 50%;
  min-width: 18px;
  height: 18px;
  font-size: 9px;
  font-style: normal;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-menu {
  display: none;
}

.back-link {
  font-size: 13px;
  font-weight: 700;
  color: #53666b;
}

.hero-v2 {
  max-width: 1280px;
  margin: 30px auto 0;
  min-height: 510px;
  border-radius: 28px;
  padding: 62px 70px;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: 55px;
  background: linear-gradient(120deg,#f2f8f6 0%,#f8f4ed 55%,#eef5f3 100%);
  overflow: hidden;
  position: relative;
}

.hero-v2:before {
  content: "";
  position: absolute;
  width: 390px;
  height: 390px;
  border-radius: 50%;
  background: #fff;
  left: -100px;
  bottom: -180px;
  opacity: .55;
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.eyebrow,.hero-copy .eyebrow,.section-heading small,.promo-v2 small,.wholesale-banner small {
  color: var(--brand);
  font-weight: 800;
  letter-spacing: 3px;
  font-size: 11px;
}

.hero-copy h1 {
  font-size: 54px;
  line-height: 1.3;
  margin: 12px 0 16px;
  color: var(--ink);
}

.hero-copy h1 strong {
  color: var(--brand-dark);
}

.hero-copy p {
  max-width: 580px;
  color: #68777b;
  line-height: 2.1;
  font-size: 15px;
}

.hero-buttons {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 25px;
}

.hero-btn {
  background: var(--brand);
  border-radius: 12px;
  padding: 14px 28px;
  box-shadow: 0 10px 25px rgba(78,140,128,.2);
}

.hero-outline {
  border: 1px solid #bfd6d1;
  padding: 13px 25px;
  border-radius: 12px;
  color: var(--brand-dark);
  background: #fff;
}

.hero-note {
  display: flex;
  gap: 24px;
  margin-top: 24px;
  color: #627277;
  font-size: 11px;
}

.hero-product {
  width: min(430px,100%);
  justify-self: end;
  background: #fff;
  border-radius: 25px;
  padding: 13px;
  box-shadow: 0 25px 65px rgba(37,58,62,.14);
  position: relative;
  transform: rotate(1.2deg);
}

.hero-product img {
  width: 100%;
  height: 365px;
  object-fit: cover;
  border-radius: 18px;
  display: block;
}

.hero-badge {
  position: absolute;
  right: 25px;
  top: 25px;
  background: var(--brand);
  color: #fff;
  padding: 9px 14px;
  border-radius: 20px;
  font-size: 10px;
  z-index: 2;
}

.hero-product-info {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 15px 8px 5px;
}

.hero-product-info small {
  display: block;
  color: #8a989b;
  font-size: 9px;
}

.hero-product-info b {
  display: block;
  font-size: 13px;
  margin-top: 4px;
}

.hero-product-info>strong {
  color: var(--brand-dark);
  font-size: 14px;
  white-space: nowrap;
}

.trust-strip {
  max-width: 1180px;
  margin: 24px auto 0;
  display: grid;
  grid-template-columns: repeat(4,1fr);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.trust-strip>div {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 19px 22px;
  border-left: 1px solid var(--line);
}

.trust-strip>div:last-child {
  border-left: 0;
}

.trust-strip span {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--mint);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
}

.trust-strip b,.trust-strip small {
  display: block;
}

.trust-strip b {
  font-size: 12px;
}

.trust-strip small {
  color: #8a989b;
  font-size: 9px;
  margin-top: 4px;
}

.categories-v2,.new-collection-v2,.products-v2 {
  max-width: 1280px;
  margin: 0 auto;
  padding: 75px 35px 20px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 24px;
}

.section-heading h2 {
  margin: 7px 0 0;
  font-size: 29px;
  color: var(--ink);
}

.section-heading>span {
  color: #8a989b;
  font-size: 11px;
}

.category-grid {
  gap: 13px;
  padding: 5px 2px 16px;
}

.category-card {
  flex: 0 0 150px;
  min-height: 145px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 7px 24px rgba(35,55,59,.05);
}

.category-card:hover,.category-card.active {
  background: var(--brand);
  border-color: var(--brand);
  box-shadow: 0 12px 28px rgba(78,140,128,.18);
}

.category-icon {
  width: 58px;
  height: 58px;
  background: #f0f7f5;
  color: var(--brand);
  margin-bottom: 10px;
}

.category-card.active .category-icon {
  background: #fff;
}

.category-name {
  font-size: 13px;
}

.search-section-v2 {
  max-width: 1280px;
  margin: 15px auto 0;
  padding: 0 35px;
}

.search-box-v2 {
  max-width: 760px;
  margin: auto;
  position: relative;
}

.search-box-v2 input {
  width: 100%;
  height: 54px;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 0 52px 0 20px;
  background: #f8fbfa;
  outline: none;
  font-size: 12px;
}

.search-box-v2 input:focus {
  border-color: #a9cec5;
  box-shadow: 0 0 0 4px #edf6f3;
}

.search-box-v2>span {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  color: var(--brand);
}

.promo-v2 {
  max-width: 1210px;
  margin: 70px auto 0;
  min-height: 270px;
  padding: 35px 48px;
  border-radius: 25px;
  background: #eaf4f1;
  display: grid;
  grid-template-columns: 1fr 250px;
  align-items: center;
  overflow: hidden;
  position: relative;
}

.promo-v2 h2 {
  font-size: 28px;
  margin: 10px 0;
}

.promo-v2 p {
  color: #65757a;
  max-width: 650px;
  line-height: 2;
  font-size: 12px;
}

.promo-v2 a {
  color: var(--brand-dark);
  font-weight: 800;
  font-size: 12px;
}

.promo-v2 img {
  width: 220px;
  height: 250px;
  object-fit: cover;
  border-radius: 18px;
  justify-self: end;
  box-shadow: 0 20px 35px rgba(35,55,59,.12);
  transform: rotate(3deg);
}

.new-collection-v2 {
  padding-top: 70px;
}

.new-collection-v2 .new-grid {
  grid-template-columns: repeat(6,1fr);
  gap: 13px;
}

.new-collection-v2 .new-card {
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(35,55,59,.04);
}

.new-collection-v2 .new-card img {
  height: 245px;
  object-fit: cover;
}

.new-collection-v2 .new-card div {
  padding: 13px;
}

.products-v2 {
  padding-top: 70px;
  padding-bottom: 90px;
}

.products-v2 .grid {
  grid-template-columns: repeat(4,1fr);
  gap: 20px;
}

.products-v2 .card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 28px rgba(35,55,59,.04);
}

.products-v2 .card:hover {
  box-shadow: 0 20px 45px rgba(35,55,59,.1);
}

.products-v2 .card img {
  height: 330px;
  background: #f5f8f7;
}

.products-v2 .card div {
  padding: 17px;
}

.products-v2 .card h3 {
  font-size: 14px;
  color: var(--ink);
  min-height: 40px;
}

.products-v2 .card b {
  color: var(--brand-dark);
  font-size: 15px;
}

.products-v2 .card span {
  font-size: 10px;
}

.products-v2 .heart,.products-v2 .compare-btn {
  top: 12px;
  background: #ffffffec;
  border: 1px solid var(--line);
  box-shadow: none;
}

.products-v2 .heart {
  left: 12px;
}

.products-v2 .compare-btn {
  right: 12px;
}

.wholesale-banner {
  max-width: 1210px;
  margin: 0 auto 80px;
  border-radius: 22px;
  padding: 32px 42px;
  background: linear-gradient(100deg,#22383e,#416c67);
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
}

.wholesale-banner h2 {
  margin: 9px 0;
  font-size: 27px;
}

.wholesale-banner p {
  margin: 0;
  color: #dbe7e5;
  font-size: 11px;
  line-height: 2;
  max-width: 700px;
}

.wholesale-banner .btn {
  background: #fff;
  color: var(--brand-dark);
  border-radius: 11px;
  white-space: nowrap;
}

.modern-footer {
  background: #1f3035;
  color: #eaf2f0;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 45px;
  padding: 60px max(35px,calc((100% - 1210px)/2));
}

.modern-footer a {
  color: #c9d6d5;
  margin: 9px 0;
  font-size: 11px;
}

.modern-footer h4 {
  font-size: 13px;
  margin: 0 0 17px;
  color: #fff;
}

.footer-brand img {
  width: 130px;
  height: 70px;
  object-fit: contain;
  background: #fff;
  border-radius: 12px;
  padding: 4px;
}

.footer-brand p {
  font-weight: 800;
  margin: 12px 0 4px;
}

.footer-brand small {
  color: #9eb1b1;
  font-size: 9px;
}

.modern-footer .social {
  width: 38px;
  height: 38px;
  background: #2e454a;
  border-color: #456166;
}

.modern-footer .social svg {
  width: 19px;
  height: 19px;
}

.detail-v2 {
  max-width: 1240px;
  margin: auto;
  padding: 30px 35px 80px;
}

.breadcrumbs {
  display: flex;
  gap: 8px;
  color: #879599;
  font-size: 10px;
  margin-bottom: 24px;
}

.breadcrumbs a {
  color: var(--brand-dark);
}

.detail-grid-v2 {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 60px;
  align-items: start;
}

.product-gallery-v2 {
  min-width: 0;
}

.product-gallery-v2 .gallery {
  display: flex;
  flex-direction: row-reverse;
  gap: 13px;
  position: sticky;
  top: 105px;
}

.product-gallery-v2 .gallery #thumbs {
  width: 78px;
  flex: 0 0 78px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.product-gallery-v2 .gallery #thumbs img {
  width: 78px;
  height: 92px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--line);
  padding: 2px;
  background: #fff;
}

.product-gallery-v2 .gallery #thumbs img:hover {
  border-color: var(--brand);
}

.product-gallery-v2 .mainimg {
  width: calc(100% - 91px);
  height: 650px;
  object-fit: cover;
  border-radius: 22px;
  background: #f4f8f7;
  box-shadow: 0 20px 50px rgba(35,55,59,.07);
}

.info-v2 {
  padding-top: 5px;
}

.info-v2 .product-tools {
  justify-content: flex-start;
  margin-bottom: 18px;
}

.info-v2 .product-tools button {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 22px;
  color: #5b6b70;
}

.product-code {
  color: #91a0a4;
  font-size: 10px;
}

.info-v2 h1 {
  font-size: 34px;
  margin: 8px 0 8px;
  color: var(--ink);
}

.rating-line {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 15px;
}

.rating-line span {
  color: #e2a72e;
  letter-spacing: 2px;
}

.rating-line small {
  font-size: 9px;
  color: #8a989b;
}

.info-v2 .desc {
  color: #6c7b80;
  line-height: 2.1;
  font-size: 12px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 20px;
}

.buytype-v2 button,.info-v2 #colors button,.info-v2 #sizes button {
  border: 1px solid #dbe6e3;
  background: #fff;
  padding: 10px 18px;
  border-radius: 10px;
  margin: 0 6px 6px 0;
}

.buytype-v2 .sel,.info-v2 .chosen {
  background: var(--brand) !important;
  border-color: var(--brand) !important;
}

.info-v2 label {
  font-size: 12px;
  margin-top: 20px;
}

.price-box-v2 {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin: 25px 0 14px;
  padding: 17px 18px;
  border-radius: 16px;
  background: #f3f8f6;
  border: 1px solid #e0ece8;
}

.price-box-v2 small {
  color: #7b8b8f;
  font-size: 9px;
}

.info-v2 .price {
  font-size: 27px;
  color: var(--brand-dark);
  margin: 3px 0 0;
}

.stock-pill {
  background: #e2f4eb;
  color: #2e8067;
  border-radius: 18px;
  padding: 7px 12px;
  font-size: 9px;
}

.add-cart-v2 {
  height: 52px;
  border-radius: 13px;
  background: var(--brand);
  font-weight: 800;
  font-size: 13px;
}

.info-v2 .wa {
  border-radius: 13px;
  background: #fff;
  border: 1px solid #bcd9d2;
  color: var(--brand-dark);
  margin-top: 10px;
}

.benefits-v2 {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  border: 1px solid var(--line);
  border-radius: 14px;
  margin-top: 18px;
  overflow: hidden;
}

.benefits-v2 div {
  padding: 13px 8px;
  text-align: center;
  border-left: 1px solid var(--line);
}

.benefits-v2 div:last-child {
  border-left: 0;
}

.benefits-v2 b,.benefits-v2 small {
  display: block;
}

.benefits-v2 b {
  font-size: 9px;
}

.benefits-v2 small {
  color: #8a989b;
  font-size: 8px;
  margin-top: 5px;
}

.info-v2 .meta {
  padding-top: 15px;
}

.product-extra-v2 {
  margin-top: 70px;
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
}

.tabs-v2 {
  display: flex;
  border-bottom: 1px solid var(--line);
  background: #fbfdfc;
}

.tabs-v2 span {
  padding: 17px 26px;
  font-size: 11px;
  color: #7d8c90;
}

.tabs-v2 span.active {
  color: var(--brand-dark);
  font-weight: 800;
  border-bottom: 2px solid var(--brand);
}

.product-description-box {
  padding: 30px;
  color: #68777b;
  font-size: 12px;
  line-height: 2.1;
}

.product-description-box .reviews {
  border-top: 1px solid var(--line);
  margin-top: 25px;
}

.product-description-box textarea {
  border: 1px solid var(--line) !important;
  background: #fff !important;
}

.modal {
  backdrop-filter: blur(5px);
}

.modalbox {
  border-radius: 22px;
  border: 1px solid var(--line);
  box-shadow: 0 30px 80px rgba(25,43,47,.18);
}

/* Keep checkout, account and admin functional while giving them the same visual language. */

.checkout,.account,.content-page {
  color: var(--ink);
}

.checkout-title,.content-card,.admin-card,.account-card {
  border-radius: 18px !important;
  border-color: var(--line) !important;
  box-shadow: 0 8px 28px rgba(35,55,59,.04);
}

.form input,.form textarea,.account input,.admin-filter input,.editor-grid input,.editor-grid textarea,.editor-grid select {
  border-color: var(--line) !important;
  border-radius: 10px !important;
  background: #fff !important;
}

.invoice-paper {
  border-radius: 18px !important;
}

.btn {
  background: var(--brand);
  border-radius: 11px;
}

.continue-shopping {
  border-radius: 11px !important;
}

@media (max-width:1050px) {
  .main-nav {
    gap: 14px;
  }
  .main-nav a {
    font-size: 11px;
  }
  .hero-v2 {
    margin: 20px 18px 0;
    padding: 45px 40px;
    grid-template-columns: 1fr 380px;
  }
  .trust-strip {
    margin-left: 18px;
    margin-right: 18px;
  }
  .new-collection-v2 .new-grid {
    grid-template-columns: repeat(3,1fr);
  }
  .modern-footer {
    grid-template-columns: repeat(2,1fr);
  }
  .products-v2 .grid {
    grid-template-columns: repeat(3,1fr);
  }
}

@media (max-width:800px) {
  .top {
    font-size: 10px;
  }
  .modern-header {
    height: 70px;
  }
  .header-inner {
    padding: 0 14px;
    grid-template-columns: 1fr auto 1fr;
  }
  .main-nav {
    display: none;
  }
  .mobile-menu {
    display: block;
    justify-self: start;
    border: 0;
    background: none;
    font-size: 22px;
    color: var(--ink);
  }
  .modern-logo {
    width: 105px;
    height: 58px;
  }
  .header-tools {
    gap: 5px;
  }
  .tool {
    width: 36px;
    height: 36px;
    font-size: 15px;
  }
  .search-link,.heart-tool {
    display: none;
  }
  .hero-v2 {
    grid-template-columns: 1fr;
    margin: 14px 12px 0;
    padding: 35px 24px;
    min-height: 0;
  }
  .hero-copy h1 {
    font-size: 40px;
  }
  .hero-product {
    justify-self: center;
    max-width: 390px;
    width: 100%;
  }
  .hero-product img {
    height: 330px;
  }
  .hero-note {
    flex-wrap: wrap;
    gap: 10px;
  }
  .trust-strip {
    grid-template-columns: repeat(2,1fr);
    margin: 14px 12px 0;
  }
  .trust-strip>div {
    padding: 14px;
    border-bottom: 1px solid var(--line);
  }
  .trust-strip>div:nth-child(2) {
    border-left: 0;
  }
  .categories-v2,.new-collection-v2,.products-v2 {
    padding: 55px 16px 10px;
  }
  .section-heading h2 {
    font-size: 23px;
  }
  .section-heading>span {
    display: none;
  }
  .search-section-v2 {
    padding: 0 16px;
  }
  .promo-v2 {
    margin: 50px 16px 0;
    grid-template-columns: 1fr;
    padding: 28px;
  }
  .promo-v2 img {
    display: none;
  }
  .new-collection-v2 .new-grid {
    grid-template-columns: repeat(2,1fr);
  }
  .new-collection-v2 .new-card img {
    height: 230px;
  }
  .products-v2 .grid {
    grid-template-columns: repeat(2,1fr);
    gap: 12px;
  }
  .products-v2 .card img {
    height: 250px;
  }
  .wholesale-banner {
    margin: 10px 16px 55px;
    padding: 27px;
    display: block;
  }
  .wholesale-banner .btn {
    display: inline-block;
    margin-top: 18px;
  }
  .modern-footer {
    padding: 45px 22px;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
  .detail-v2 {
    padding: 20px 14px 55px;
  }
  .detail-grid-v2 {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .product-gallery-v2 .gallery {
    position: static;
    flex-direction: column;
  }
  .product-gallery-v2 .gallery #thumbs {
    width: 100%;
    flex-direction: row;
    overflow: auto;
    order: 2;
  }
  .product-gallery-v2 .gallery #thumbs img {
    flex: 0 0 68px;
    width: 68px;
    height: 78px;
  }
  .product-gallery-v2 .mainimg {
    width: 100%;
    height: 470px;
  }
  .info-v2 h1 {
    font-size: 28px;
  }
  .benefits-v2 {
    grid-template-columns: 1fr;
  }
  .benefits-v2 div {
    border-left: 0;
    border-bottom: 1px solid var(--line);
  }
  .benefits-v2 div:last-child {
    border-bottom: 0;
  }
  .product-extra-v2 {
    margin-top: 35px;
  }
  .tabs-v2 {
    overflow: auto;
  }
  .tabs-v2 span {
    white-space: nowrap;
    padding: 15px 18px;
  }
}

@media (max-width:480px) {
  .header-tools .tool {
    width: 34px;
    height: 34px;
  }
  .hero-copy h1 {
    font-size: 35px;
  }
  .hero-product img {
    height: 300px;
  }
  .hero-product-info {
    display: block;
  }
  .hero-product-info>strong {
    display: block;
    margin-top: 7px;
  }
  .category-card {
    flex-basis: 135px;
    min-height: 135px;
  }
  .category-icon {
    width: 50px;
    height: 50px;
  }
  .new-collection-v2 .new-card img {
    height: 205px;
  }
  .products-v2 .card img {
    height: 220px;
  }
  .products-v2 .card div {
    padding: 12px;
  }
  .products-v2 .card h3 {
    font-size: 12px;
  }
  .products-v2 .card b {
    font-size: 13px;
  }
  .modern-footer {
    grid-template-columns: 1fr;
  }
  .modern-footer .footer-brand {
    grid-column: 1;
  }
  .detail-grid-v2 .mainimg {
    height: 400px;
  }
  .tabs-v2 span {
    padding: 14px 12px;
    font-size: 10px;
  }
}

/* === Invoice redesign: A4 Persian stationery === */

.invoice-a4 {
  width: 794px;
  max-width: 100%;
  margin: 24px auto;
  background: #fff;
  border: 1px solid #dfe7e5;
  border-radius: 14px;
  padding: 28px 30px 22px;
  color: #24363a;
  box-shadow: 0 14px 45px rgba(37,67,68,.08);
  font-family: Vazirmatn,Arial,sans-serif;
  overflow: hidden;
}

.invoice-a4 * {
  box-sizing: border-box;
}

.inv-top {
  display: grid;
  grid-template-columns: 1.15fr 1.45fr .62fr;
  gap: 18px;
  align-items: center;
}

.inv-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.invoice-logo {
  width: 115px;
  height: 78px;
  object-fit: contain;
}

.inv-brand h2 {
  font-size: 18px;
  margin: 0 0 5px;
  color: #173238;
}

.inv-brand p,.inv-contact span {
  margin: 0;
  color: #5d7073;
  font-size: 11px;
}

.inv-contact {
  text-align: right;
  line-height: 1.8;
}

.inv-contact>b {
  font-size: 16px;
  color: #173238;
  display: block;
}

.inv-contact>span {
  display: block;
  font-size: 12px;
}

.inv-contact div {
  display: grid;
  gap: 1px;
  margin-top: 4px;
}

.invoice-seal {
  width: 88px;
  height: 88px;
  object-fit: contain;
  justify-self: end;
}

.inv-divider {
  height: 1px;
  background: #dce6e4;
  margin: 15px 0;
}

.inv-title-band {
  background: linear-gradient(90deg,#eef6f4,#f8fbfa);
  border: 1px solid #e2ecea;
  border-radius: 11px;
  padding: 15px 18px;
  display: grid;
  grid-template-columns: 45px 1fr 280px;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.inv-title-band h1 {
  font-size: 34px;
  line-height: 1;
  margin: 0;
  color: #1d353a;
}

.inv-title-band>div:nth-child(2)>span {
  font-size: 10px;
  color: #718184;
}

.inv-title-icon {
  font-size: 38px;
  color: #4e8279;
  text-align: center;
}

.inv-meta-card {
  background: #fff;
  border: 1px solid #e1e9e7;
  border-radius: 9px;
  padding: 8px 11px;
  font-size: 10px;
  display: grid;
  gap: 5px;
}

.inv-meta-card div {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.inv-meta-card b {
  font-weight: 700;
  color: #40575a;
}

.inv-meta-card strong {
  direction: ltr;
}

.inv-meta-card em {
  font-style: normal;
  background: #55a487;
  color: #fff;
  border-radius: 14px;
  padding: 2px 9px;
  font-size: 9px;
}

.inv-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 16px;
}

.inv-card {
  border: 1px solid #dfe7e5;
  border-radius: 11px;
  background: #fff;
  padding: 14px;
}

.inv-card h3 {
  font-size: 16px;
  margin: 0 0 11px;
  color: #243b3f;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.inv-card h3 span {
  color: #4e8279;
  font-size: 20px;
}

.inv-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px 14px;
  font-size: 10px;
}

.inv-fields>div {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 5px;
  align-items: baseline;
}

.inv-fields .wide {
  grid-column: 1/-1;
}

.inv-fields b {
  white-space: nowrap;
  color: #5a6d70;
}

.inv-fields span {
  font-weight: 600;
  color: #263b3f;
}

.shipping-detail {
  display: grid;
  gap: 9px;
  font-size: 11px;
}

.shipping-detail>strong {
  font-size: 18px;
  text-align: center;
  margin: 2px 0 4px;
}

.shipping-detail>div {
  display: flex;
  justify-content: space-between;
  border-top: 1px dashed #dfe7e5;
  padding-top: 8px;
}

.inv-table-wrap {
  border: 1px solid #dfe7e5;
  border-radius: 10px;
  overflow: hidden;
}

.inv-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 9px;
}

.inv-table th {
  background: #edf5f3;
  color: #263e42;
  font-weight: 800;
  padding: 9px 6px;
  border-left: 1px solid #dce6e4;
  text-align: center;
}

.inv-table td {
  padding: 8px 6px;
  border-top: 1px solid #e4ebea;
  border-left: 1px solid #e4ebea;
  text-align: center;
  vertical-align: middle;
}

.inv-table th:last-child,.inv-table td:last-child {
  border-left: 0;
}

.inv-index {
  width: 34px;
}

.inv-product {
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: right;
  min-width: 210px;
}

.inv-product img {
  width: 48px;
  height: 50px;
  border-radius: 7px;
  object-fit: cover;
  border: 1px solid #e1e7e5;
}

.inv-product span {
  font-weight: 800;
}

.inv-product small,.inv-table td small {
  display: block;
  color: #718184;
  font-size: 8px;
  margin-top: 2px;
}

.inv-lower-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 14px;
  margin-top: 16px;
}

.inv-note-card p {
  font-size: 10px;
  line-height: 2;
  margin: 0 0 10px;
  color: #43585b;
}

.inv-note-card>strong {
  font-size: 9px;
  color: #4e8279;
}

.inv-total-card {
  display: grid;
  gap: 7px;
  align-content: start;
}

.inv-total-card>div {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid #edf1f0;
}

.inv-total-card .grand {
  background: #4e8b7e;
  color: #fff;
  border-radius: 9px;
  padding: 11px 12px;
  border: 0;
  margin-top: 3px;
  font-size: 12px;
}

.inv-total-card .grand strong {
  font-size: 17px;
}

.inv-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr .9fr .7fr;
  gap: 14px;
  align-items: center;
  margin-top: 17px;
}

.inv-track {
  border: 1px solid #e0e8e6;
  border-radius: 10px;
  padding: 10px;
  display: flex;
  gap: 12px;
  align-items: center;
  min-height: 102px;
}

.fake-qr {
  width: 72px;
  height: 72px;
  background: #fff;
  display: grid;
  grid-template-columns: repeat(7,1fr);
  grid-template-rows: repeat(7,1fr);
  gap: 2px;
  padding: 4px;
  border: 1px solid #dbe5e3;
  flex: none;
}

.fake-qr span {
  background: #15272b;
  border-radius: 1px;
}

.fake-qr span:nth-child(2n+1) {
  background: #111;
}

.fake-qr span:nth-child(3n) {
  background: #fff;
}

.inv-track b,.inv-track strong,.inv-track small {
  display: block;
}

.inv-track b {
  font-size: 11px;
}

.inv-track strong {
  font-size: 10px;
  color: #40575a;
  margin: 7px 0;
  direction: ltr;
  text-align: right;
}

.inv-track small {
  font-size: 8px;
  color: #7b898b;
  line-height: 1.6;
}

.inv-sign {
  text-align: center;
  min-height: 102px;
  border: 1px solid #e0e8e6;
  border-radius: 10px;
  padding: 10px;
}

.inv-sign>b {
  font-size: 11px;
  display: block;
}

.inv-sign .invoice-signature {
  width: 170px;
  height: 55px;
  margin: 9px auto 2px;
  object-fit: contain;
  border-bottom: 1px dashed #9aa9aa;
}

.inv-sign>span {
  font-size: 8px;
  color: #7b898b;
}

.inv-stamp {
  text-align: center;
}

.inv-stamp .invoice-stamp {
  width: 100px;
  height: 100px;
  object-fit: contain;
}

.inv-stamp span {
  display: block;
  font-size: 9px;
  color: #496b69;
  margin-top: -10px;
}

.inv-thanks {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
  margin-top: 15px;
  font-size: 10px;
  color: #40575a;
}

.inv-thanks span {
  height: 1px;
  background: #cbd8d5;
  flex: 1;
}

.invoice-actions {
  max-width: 794px;
  margin: 12px auto 0;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
}

.invoice-actions .full {
  grid-column: auto;
}

.invoice-actions .btn,.invoice-actions .wa {
  width: 100%;
  text-align: center;
}

.invoice-paper table {
  margin-top: 0;
}

.invoice-paper .invoice-shop,.invoice-paper .customer-grid,.invoice-paper .invoice-bottom {
  display: none;
}

@media (max-width:800px) {
  .invoice-a4 {
    padding: 16px;
    width: 100%;
    border-radius: 10px;
  }
  .inv-top {
    grid-template-columns: 1fr .5fr;
  }
  .inv-brand {
    grid-column: 1;
  }
  .inv-contact {
    grid-column: 1/-1;
    grid-row: 2;
  }
  .invoice-seal {
    grid-column: 2;
    grid-row: 1;
    align-self: start;
  }
  .inv-title-band {
    grid-template-columns: 38px 1fr;
  }
  .inv-meta-card {
    grid-column: 1/-1;
  }
  .inv-title-band h1 {
    font-size: 29px;
  }
  .inv-info-grid,.inv-lower-grid {
    grid-template-columns: 1fr;
  }
  .inv-footer-grid {
    grid-template-columns: 1fr;
  }
  .inv-track {
    justify-content: center;
  }
  .inv-product {
    min-width: 170px;
  }
  .invoice-actions {
    grid-template-columns: 1fr;
  }
  .invoice-actions .full {
    grid-column: auto;
  }
}

@media (max-width:560px) {
  .inv-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .inv-table {
    min-width: 620px;
  }
  .invoice-a4 {
    font-size: 10px;
  }
  .inv-brand h2 {
    font-size: 14px;
  }
  .invoice-logo {
    width: 90px;
    height: 60px;
  }
  .inv-contact>b {
    font-size: 13px;
  }
  .inv-table {
    font-size: 7px;
  }
  .inv-table th,.inv-table td {
    padding: 5px 3px;
  }
  .inv-product {
    min-width: 130px;
    gap: 4px;
  }
  .inv-product img {
    width: 38px;
    height: 42px;
  }
  .inv-product small,.inv-table td small {
    font-size: 6px;
  }
  .inv-fields {
    grid-template-columns: 1fr;
  }
  .inv-fields .wide {
    grid-column: auto;
  }
}

.invoice-qr {
  width: 72px;
  height: 72px;
  object-fit: contain;
  border: 1px solid #dbe5e3;
  padding: 4px;
  background: #fff;
  flex: none;
}

.inv-track .invoice-qr {
  display: block;
}

/* V22 visual polish: cart + checkout + payment */

.cart-payment-note {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 16px 0 10px;
  padding: 12px 13px;
  border: 1px solid #dfeae5;
  background: #f3f8f5;
  border-radius: 13px;
  color: #405a55;
}

.cart-payment-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #5b8b7b;
  color: #fff;
  font-weight: 800;
  flex: none;
}

.cart-payment-note b,.cart-payment-note small {
  display: block;
}

.cart-payment-note b {
  font-size: 11px;
}

.cart-payment-note small {
  font-size: 9px;
  color: #758782;
  margin-top: 3px;
  line-height: 1.7;
}

.cart-checkout-btn {
  display: flex !important;
  flex-direction: column;
  gap: 3px;
  align-items: center;
  justify-content: center;
  padding: 12px 18px !important;
}

.cart-checkout-btn small {
  font-size: 8px;
  opacity: .82;
}

.modalbox .continue-shopping {
  margin-top: 8px;
  background: #fff;
  border: 1px solid #ddd5ce;
  color: #5c5752;
  padding: 11px;
  border-radius: 11px;
  cursor: pointer;
}

.checkout-summary {
  margin: 18px 0;
  padding: 20px;
  border: 1px solid #dfe7e5;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 26px rgba(35,55,59,.04);
}

.summary-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 13px;
  border-bottom: 1px solid #edf1ef;
}

.summary-head small,.cart-card-head small {
  font-size: 8px;
  letter-spacing: 2px;
  color: #6d8b80;
  font-weight: 800;
}

.summary-head h2,.cart-card-head h3 {
  margin: 4px 0 0;
  font-size: 18px;
  color: #263b3f;
}

.summary-head>span,.cart-card-head>span {
  background: #eef5f2;
  color: #52786e;
  border-radius: 20px;
  padding: 6px 10px;
  font-size: 9px;
}

.summary-lines {
  display: grid;
  gap: 9px;
  padding-top: 13px;
}

.summary-lines>div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  color: #657578;
}

.summary-lines b {
  color: #35494c;
}

.summary-lines .discount-line {
  color: #4f8a72;
}

.summary-lines .discount-line b {
  color: #4f8a72;
}

.summary-grand {
  margin-top: 4px;
  padding: 13px 14px;
  border-radius: 13px;
  background: #eef5f2;
  color: #27433e !important;
}

.summary-grand strong {
  font-size: 17px;
  color: #4f8377;
}

.cart-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 10px;
}

.checkout-cart-card {
  padding: 19px !important;
  border-radius: 18px !important;
  box-shadow: 0 8px 26px rgba(35,55,59,.04);
}

.checkout-line {
  padding: 13px 0 !important;
}

.checkout-line img {
  border: 1px solid #e4ebe9;
}

.coupon-payment-grid {
  grid-column: 1/-1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 7px;
}

.checkout-panel {
  border: 1px solid #dfe7e5;
  border-radius: 16px;
  background: #fff;
  padding: 16px;
}

.checkout-panel h3 {
  margin: 0;
  font-size: 14px;
  color: #294044;
}

.checkout-panel p {
  margin: 4px 0 12px;
  font-size: 9px;
  line-height: 1.8;
  color: #7b898b;
}

.panel-icon {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #eef5f2;
  color: #4f8377;
  font-weight: 900;
  margin-bottom: 9px;
}

.panel-icon.secure {
  border-radius: 50%;
  background: #4f8377;
  color: #fff;
}

.coupon-row {
  display: flex;
  gap: 7px;
}

.coupon-row input {
  margin: 0 !important;
  flex: 1;
}

.secondary-btn {
  padding: 10px 15px !important;
  background: #f1f5f3 !important;
  color: #456a61 !important;
  border: 1px solid #d7e4df !important;
}

.panel-message {
  font-size: 9px;
  color: #7c898b;
  margin-top: 7px;
  min-height: 15px;
}

.panel-message.success {
  color: #43836b;
}

.panel-message.error {
  color: #a75c5c;
}

.payment-choice {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px;
  border: 1px solid #cfe0da;
  border-radius: 12px;
  background: #f5faf8;
  cursor: pointer;
}

.payment-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.payment-mark {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #4f8377;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}

.payment-choice span:nth-of-type(2) {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.payment-choice b {
  font-size: 10px;
  color: #304a48;
}

.payment-choice small {
  font-size: 8px;
  color: #7b898b;
  margin-top: 3px;
}

.payment-choice>strong {
  font-size: 8px;
  color: #4f8377;
  background: #e4f2ec;
  padding: 4px 7px;
  border-radius: 12px;
}

.payment-hint {
  font-size: 8px;
  color: #8a9697;
  margin-top: 8px;
}

.checkout-submit {
  grid-column: 1/-1;
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 14px;
  align-items: center;
  margin-top: 4px;
  padding: 15px;
  border: 1px solid #dce7e3;
  background: linear-gradient(135deg,#f7faf8,#eef5f2);
  border-radius: 17px;
}

.checkout-submit>div b,.checkout-submit>div small {
  display: block;
}

.checkout-submit>div b {
  font-size: 12px;
  color: #304946;
}

.checkout-submit>div small {
  font-size: 9px;
  color: #7b898b;
  line-height: 1.8;
  margin-top: 3px;
}

.checkout-submit .btn {
  margin: 0 !important;
}

.invoice-actions {
  grid-template-columns: 1.35fr 1fr 1fr !important;
  align-items: stretch;
}

.invoice-actions .primary-pay {
  grid-column: auto;
  background: #4f8377;
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  min-height: 54px;
}

.invoice-actions .primary-pay small {
  font-size: 8px;
  opacity: .82;
}

.invoice-actions .invoice-secondary {
  background: #fff;
  color: #536467;
  border: 1px solid #d9e2df;
}

.invoice-actions .wa {
  grid-column: 1/-1;
  margin-top: 0;
}

.invoice-actions button:disabled {
  opacity: .65;
  cursor: wait;
}

.invoice-paper {
  scroll-margin-top: 25px;
}

@media (max-width:700px) {
  .coupon-payment-grid {
    grid-template-columns: 1fr;
  }
  .checkout-submit {
    grid-template-columns: 1fr;
  }
  .invoice-actions {
    grid-template-columns: 1fr !important;
  }
  .invoice-actions .primary-pay,.invoice-actions .wa {
    grid-column: auto;
  }
  .cart-payment-note small {
    font-size: 8px;
  }
}

.checkout-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 0 22px;
  flex-wrap: wrap;
}

.checkout-steps span {
  padding: 8px 13px;
  border-radius: 999px;
  background: #f2eee8;
  color: #8b8278;
  font-size: 13px;
}

.checkout-steps span.active {
  background: #25221f;
  color: #fff;
}

.checkout-steps i {
  font-style: normal;
  color: #aaa;
}

.checkout-security {
  text-align: center;
  color: #7d756d;
  font-size: 12px;
  margin: 14px 0;
}

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

.cartrow-price {
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: flex-end;
}

.cartrow-price small {
  color: #8c847b;
  font-size: 11px;
}

.cart-total-final {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  padding-top: 12px;
  border-top: 1px solid #e9e1d8;
  font-size: 15px;
}

.cart-total-final strong {
  font-size: 20px;
}

.free-shipping-progress {
  padding: 9px 12px;
  background: #f5f0e8;
  border-radius: 12px;
  margin-top: 8px;
  color: #6d645b;
  font-size: 12px;
}

.cart-empty-state {
  display: grid;
  gap: 8px;
  text-align: center;
  padding: 30px 10px;
  color: #777;
}

.cart-empty-state strong {
  font-size: 18px;
  color: #292622;
}

.related-products {
  padding: 45px 5%;
}

.track-page {
  max-width: 760px;
  margin: 60px auto;
  padding: 0 20px;
  min-height: 60vh;
}

.track-card {
  background: #fff;
  border: 1px solid #e8e1d8;
  border-radius: 24px;
  padding: 32px;
  box-shadow: 0 16px 50px #00000008;
}

.track-card>small {
  letter-spacing: 2px;
  color: #998f85;
}

.track-card h1 {
  margin: 8px 0;
}

.track-form {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.track-form input {
  width: 100%;
  box-sizing: border-box;
  padding: 14px;
  border: 1px solid #ddd4ca;
  border-radius: 12px;
  background: #fff;
}

.track-success {
  margin-top: 22px;
  border-top: 1px solid #eee5dc;
  padding-top: 22px;
}

.track-status {
  display: inline-block;
  padding: 9px 14px;
  border-radius: 999px;
  background: #f4eee8;
  color: #6d6258;
  font-weight: 700;
}

.track-status.paid {
  background: #e9f7ef;
  color: #147a45;
}

.track-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 18px 0;
}

.track-meta>* {
  padding: 10px 12px;
  background: #faf8f5;
  border-radius: 10px;
}

.track-items {
  display: grid;
  gap: 10px;
}

.track-items>div {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border: 1px solid #eee7df;
  border-radius: 12px;
}

.track-items img {
  width: 55px;
  height: 55px;
  object-fit: cover;
  border-radius: 10px;
}

.track-items span {
  display: grid;
  gap: 5px;
}

.track-items small {
  color: #888;
  font-size: 12px;
}

.track-error,.loading-box {
  margin-top: 18px;
  padding: 14px;
  border-radius: 12px;
  background: #fff4f1;
  color: #a33;
}

.loading-box {
  background: #f7f3ee;
  color: #777;
}

@media (max-width:700px) {
  .track-page {
    margin: 25px auto;
  }
  .track-card {
    padding: 22px;
  }
  .track-meta {
    grid-template-columns: 1fr;
  }
  .checkout-steps {
    font-size: 12px;
  }
  .cartrow-price {
    min-width: 95px;
  }
}

/* V25: unified contact + mobile admin + invoice reference polish */

.admin-shell {
  display: grid;
}

.footer-address {
  display: block;
  color: #cfc7c0;
  font-size: 11px;
  line-height: 1.9;
  margin-top: 8px;
}

.inv-contact div {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 14px;
  justify-content: flex-start;
}

.inv-contact div span {
  display: inline-block;
}

.inv-title-band {
  min-height: 128px;
}

.inv-meta-card {
  min-width: 255px;
}

.inv-meta-card em {
  background: #54a68d !important;
  color: #fff !important;
}

.invoice-paper {
  font-family: Vazirmatn,Arial,sans-serif;
}

@media (max-width:900px) {
  .admin-shell {
    display: block;
    min-height: 100vh;
  }
  .admin-main {
    padding: 10px 10px 28px;
    max-width: none;
  }
  .admin-mobile-head {
    position: sticky;
    top: 0;
    z-index: 40;
    min-height: 54px;
    margin: 0 -2px 9px;
    padding: 10px 12px;
    border-radius: 12px;
    box-shadow: 0 5px 18px #4b47420d;
  }
  .admin-mobile-head b {
    font-size: 13px;
  }
  .admin-mobile-head button {
    font-size: 12px;
    padding: 8px 12px;
  }
  .admin-mobile-nav {
    position: sticky;
    top: 63px;
    z-index: 39;
    margin: 0 -10px 14px;
    padding: 7px 10px 10px;
    background: #f7f2ed;
    border-bottom: 1px solid #e6ddd5;
    box-shadow: 0 5px 14px #4b47420a;
    scroll-snap-type: x proximity;
  }
  .admin-mobile-tab {
    min-height: 40px;
    padding: 9px 13px;
    border-radius: 12px;
    font-size: 11px;
    scroll-snap-align: start;
    white-space: nowrap;
  }
  .admin-title {
    margin-bottom: 12px;
    gap: 8px;
  }
  .admin-title h1 {
    font-size: 22px;
    margin-top: 4px;
  }
  .admin-title small {
    font-size: 8px;
    letter-spacing: 2px;
  }
  .admin-title>span {
    font-size: 10px;
    color: #8b8179;
  }
  .admin-title>.btn {
    width: 100%;
    text-align: center;
  }
  .admin-card {
    padding: 14px;
    border-radius: 14px;
    margin-bottom: 12px;
    box-shadow: 0 7px 20px #4b47420a;
  }
  .stats-grid {
    gap: 8px;
    margin-bottom: 12px;
  }
  .stat {
    padding: 13px;
    border-radius: 12px;
  }
  .stat small {
    font-size: 9px;
    line-height: 1.6;
  }
  .stat b {
    font-size: 17px;
    margin-top: 5px;
  }
  .dashboard-grid {
    gap: 10px;
  }
  .dashboard-grid .admin-card {
    margin-bottom: 0;
  }
  .order-mini {
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    font-size: 10px;
    padding: 10px 0;
  }
  .editor-grid {
    grid-template-columns: 1fr;
    gap: 9px;
  }
  .editor-grid textarea,.upload-box {
    grid-column: auto;
  }
  .editor-grid input,.editor-grid textarea,.editor-grid select {
    font-size: 12px;
    padding: 11px;
  }
  .editor-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .editor-actions .btn {
    width: 100%;
    text-align: center;
  }
  .bulk-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px;
  }
  .bulk-box b {
    grid-column: 1/-1;
    font-size: 11px;
  }
  .bulk-box input,.bulk-box select,.bulk-box .mini-btn {
    width: 100%;
    min-width: 0;
    margin: 0;
  }
  .admin-filter {
    display: grid;
    grid-template-columns: 1fr;
    gap: 7px;
    margin-bottom: 10px;
  }
  .admin-filter input {
    width: 100%;
    margin: 0;
    font-size: 12px;
  }
  .admin-table-wrap {
    overflow-x: auto;
    overflow-y: hidden;
    border: 1px solid #eee4dc;
    border-radius: 11px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }
  .admin-table-wrap table {
    min-width: 760px;
  }
  .admin-table-wrap th,.admin-table-wrap td {
    padding: 9px 8px;
    font-size: 10px;
    white-space: nowrap;
  }
  .admin-table-wrap th:first-child,.admin-table-wrap td:first-child {
    position: sticky;
    right: 0;
    background: #fffdfb;
    z-index: 2;
  }
  .admin-table-wrap th:first-child {
    background: #f4eee8;
  }
  .admin-table-wrap input[type=number],.admin-table-wrap select {
    font-size: 10px;
    padding: 7px;
    max-width: 110px;
  }
  .admin-product {
    min-width: 175px;
  }
  .admin-product img {
    width: 42px;
    height: 50px;
  }
  .settings-card {
    max-width: none;
  }
  .settings-card input,.settings-card textarea,.settings-card select {
    font-size: 12px;
  }
  .settings-card .btn {
    width: 100%;
  }
  .mini-chart {
    height: 145px;
  }
  .chart-col {
    height: 130px;
  }
  .chart-col span {
    width: 65%;
  }
}

@media (max-width:600px) {
  .admin-main {
    padding: 8px 8px 25px;
  }
  .admin-mobile-head {
    top: 0;
    margin-bottom: 7px;
  }
  .admin-mobile-nav {
    top: 61px;
    margin-left: -8px;
    margin-right: -8px;
    padding-left: 8px;
    padding-right: 8px;
  }
  .admin-mobile-tab {
    padding: 8px 11px;
    font-size: 10px;
    min-height: 38px;
  }
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }
  .stat {
    min-height: 74px;
  }
  .stat b {
    font-size: 15px;
  }
  .admin-card h2 {
    font-size: 15px;
  }
  .admin-card h3 {
    font-size: 13px;
  }
  .admin-note {
    font-size: 10px;
  }
  .invoice-a4 {
    padding: 12px;
  }
  .inv-top {
    gap: 8px;
  }
  .inv-contact div {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3px;
  }
  .inv-contact div span {
    font-size: 8px;
  }
  .inv-title-band {
    min-height: 0;
  }
  .inv-meta-card {
    min-width: 0;
  }
  .inv-meta-card strong,.inv-meta-card span,.inv-meta-card b {
    font-size: 8px;
  }
  .inv-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .inv-table {
    min-width: 700px;
  }
}

/* V26: storefront sorting, wishlist, admin mobile UX, invoice polish */

.product-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
}

.product-toolbar select {
  border: 1px solid #ded5cd;
  background: #fffdfb;
  border-radius: 10px;
  padding: 9px 12px;
  color: #5b554f;
  font-size: 12px;
}

.favorites-page {
  max-width: 1250px;
  margin: auto;
  min-height: 65vh;
}

.favorites-page h1 {
  margin: 6px 0;
  font-size: 30px;
}

.favorite-card {
  position: relative;
}

.admin-contact-box {
  display: grid;
  gap: 5px;
  padding: 13px 14px;
  background: #f4f8f5;
  border: 1px solid #dce8e2;
  border-radius: 12px;
  margin: 16px 0;
  font-size: 11px;
  color: #52615d;
}

.admin-contact-box b {
  font-size: 12px;
  color: #304844;
}

.order-filter {
  display: grid;
  grid-template-columns: 1.4fr .8fr auto;
  gap: 8px;
  margin-bottom: 12px;
}

.order-filter>* {
  min-width: 0;
}

.admin-table-wrap {
  scrollbar-color: #b7c5bf transparent;
}

.invoice-a4 {
  border-color: #dbe4e1;
  background: #fff;
}

.inv-top {
  background: linear-gradient(135deg,#fff,#f4f8f6);
  padding: 15px;
  border-radius: 14px;
}

.inv-contact {
  max-width: 58%;
}

.inv-contact div {
  line-height: 1.7;
}

.inv-title-band {
  background: linear-gradient(135deg,#f2f7f5,#f7faf8) !important;
  border: 1px solid #e0e9e6;
  border-radius: 14px;
  padding: 14px !important;
}

.inv-card {
  background: #fff;
  border-color: #dfe8e4 !important;
}

.inv-total-card .grand {
  background: #4f8377 !important;
  color: #fff !important;
}

.inv-total-card .grand strong {
  color: #fff !important;
}

.invoice-actions {
  position: sticky;
  bottom: 8px;
  z-index: 15;
  background: #ffffffee;
  padding: 8px;
  border-radius: 14px;
  backdrop-filter: blur(10px);
}

@media (max-width:900px) {
  .product-toolbar {
    width: 100%;
    justify-content: space-between;
  }
  .product-toolbar select {
    flex: 1;
    max-width: 220px;
  }
  .order-filter {
    grid-template-columns: 1fr 1fr;
  }
  .order-filter input {
    grid-column: 1/-1;
  }
  .order-filter button {
    grid-column: 1/-1;
    width: 100%;
  }
  .admin-mobile-nav {
    display: flex !important;
    overflow-x: auto;
    gap: 6px;
    -webkit-overflow-scrolling: touch;
  }
  .admin-mobile-tab {
    flex: 0 0 auto;
  }
  .admin-main {
    overflow-x: hidden;
  }
  .admin-table-wrap {
    max-width: 100%;
  }
  .invoice-actions {
    position: static;
  }
}

@media (max-width:600px) {
  .product-toolbar {
    gap: 7px;
  }
  .product-toolbar span {
    font-size: 10px;
  }
  .product-toolbar select {
    font-size: 10px;
    padding: 8px;
  }
  .favorites-page {
    padding: 32px 15px;
  }
  .favorites-page h1 {
    font-size: 23px;
  }
  .favorites-page .grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .favorites-page .card img {
    height: 190px;
  }
  .order-filter {
    grid-template-columns: 1fr;
  }
  .order-filter input,.order-filter button,.order-filter select {
    grid-column: auto;
  }
  .admin-contact-box {
    font-size: 9px;
  }
  .inv-top {
    display: grid !important;
    grid-template-columns: 1fr !important;
  }
  .inv-contact {
    max-width: 100%;
  }
  .inv-contact div span {
    font-size: 8px;
  }
  .invoice-actions {
    gap: 6px;
  }
}

/* V30 mobile/desktop UX */

.drawer {
  width: min(370px,92vw);
  padding: 0 20px 24px;
  right: -390px;
  background: #fff;
  box-shadow: -20px 0 60px rgba(35,55,59,.18);
}

.drawer-head {
  padding: 32px 12px 20px;
  border-bottom: 1px solid #edf0ee;
  text-align: center;
}

.drawer-head .drawer-logo {
  margin: 0 auto 6px;
  width: 115px;
  height: 62px;
}

.drawer-head span {
  display: block;
  font-weight: 900;
  color: #294044;
}

.drawer-head small {
  display: block;
  color: #879394;
  font-size: 10px;
  margin-top: 4px;
}

.drawer-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 18px 0;
}

.drawer-actions a {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 12px;
  border: 1px solid #e5ece9;
  border-radius: 13px;
  background: #f8fbfa;
  color: #3f5759;
  font-size: 12px;
  font-weight: 700;
}

.drawer-actions a:first-child {
  background: #eef6f2;
  color: #477b6d;
}

.drawer-section {
  border-top: 1px solid #edf0ee;
  padding: 16px 0;
}

.drawer-section h3 {
  font-size: 12px;
  color: #718679;
  margin: 0 0 8px;
}

.drawer button:not(.drawer-close) {
  border: 0;
  border-bottom: 1px solid #f0f1ef;
  padding: 13px 6px;
  font-weight: 700;
}

.drawer-links a {
  display: block;
  padding: 10px 5px;
  color: #657477;
  font-size: 11px;
}

.drawer-whatsapp {
  display: block;
  background: #718a79;
  color: #fff;
  text-align: center;
  padding: 13px;
  border-radius: 13px;
  margin-top: 14px;
  font-weight: 800;
}

.drawer-close {
  z-index: 2;
}

.snapp-banner {
  margin: 20px 6% 10px;
  padding: 22px 26px;
  border: 1px solid #dce8e3;
  border-radius: 20px;
  background: linear-gradient(135deg,#f2faf7,#e9f3ef);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
}

.snapp-logo-text {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  background: #18a86b;
  color: #fff;
  display: grid;
  place-content: center;
  text-align: center;
  line-height: .9;
  font-size: 15px;
  box-shadow: 0 10px 25px #18a86b25;
}

.snapp-logo-text strong {
  font-size: 17px;
}

.snapp-banner h2 {
  margin: 4px 0;
  font-size: 18px;
  color: #26433e;
}

.snapp-banner p {
  margin: 4px 0;
  color: #718082;
  font-size: 10px;
  line-height: 1.9;
}

.snapp-banner small {
  color: #4f8377;
  font-weight: 800;
}

.payment-choice {
  position: relative;
}

.payment-logo {
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 12px;
  display: grid;
  place-content: center;
  text-align: center;
  font-weight: 900;
  line-height: .85;
}

.zarin-logo {
  background: #21a7df;
  color: #fff;
  font-size: 20px;
}

.snapp-logo {
  background: #18a86b;
  color: #fff;
  font-size: 8px;
}

.payment-disabled {
  opacity: .72;
  cursor: not-allowed;
  background: #fafafa !important;
}

.payment-other-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 9px;
}

.payment-extra {
  border: 1px solid #e0e8e5;
  background: #fff;
  border-radius: 12px;
  padding: 9px;
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 8px;
  align-items: center;
  text-align: right;
  cursor: pointer;
}

.payment-extra b,.payment-extra small {
  display: block;
}

.payment-extra b {
  font-size: 9px;
}

.payment-extra small {
  font-size: 7px;
  color: #889596;
}

.mini-logo {
  grid-row: span 2;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: grid;
  place-content: center;
  font-size: 8px;
  font-weight: 900;
}

.pdf-logo {
  background: #f4e7e5;
  color: #a14f47;
}

.wa-logo {
  background: #e6f5ed;
  color: #23855d;
}

.payment-result-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: radial-gradient(circle at 20% 10%,#edf5f1,transparent 35%),#fbf8f4;
}

.payment-result-card {
  width: min(560px,100%);
  background: #fff;
  border: 1px solid #e1e8e5;
  border-radius: 28px;
  padding: 38px;
  text-align: center;
  box-shadow: 0 20px 70px rgba(35,55,59,.08);
}

.result-icon {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  margin: 0 auto 16px;
  display: grid;
  place-content: center;
  font-size: 34px;
  font-weight: 900;
}

.result-icon.success {
  background: #e7f6ee;
  color: #25815d;
}

.result-icon.failed {
  background: #fff0ed;
  color: #b45b4f;
}

.payment-result-card small {
  letter-spacing: 2px;
  color: #78908a;
  font-weight: 800;
}

.payment-result-card h1 {
  font-size: 25px;
  color: #294044;
  margin: 12px 0;
}

.payment-result-card p {
  line-height: 2;
  color: #758082;
  font-size: 12px;
}

.result-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 22px 0;
}

.result-meta span,.result-meta b {
  padding: 11px;
  background: #f7faf8;
  border-radius: 10px;
}

.result-meta span {
  color: #83908f;
  font-size: 9px;
}

.result-meta b {
  font-size: 11px;
}

.result-actions {
  display: grid;
  gap: 9px;
}

.result-secondary {
  background: #fff !important;
  color: #527269 !important;
  border: 1px solid #d8e4df;
}

.card img,.new-card img,.checkout-line img {
  object-fit: contain !important;
  background: #f5efe9;
}

.products-v2 .card img {
  padding: 8px;
}

.new-card img {
  padding: 8px;
}

.product-gallery-v2 .mainimg {
  object-fit: contain !important;
  padding: 10px;
}

.product-gallery-v2 .gallery #thumbs img {
  object-fit: contain !important;
  background: #f5efe9;
}

.search-section-v2 {
  scroll-margin-top: 100px;
}

.search-box-v2 input {
  outline: none;
}

.search-box-v2 input:focus {
  box-shadow: 0 0 0 3px #6f8d8220;
  border-color: #9eb9af;
}

@media (max-width:800px) {
  .snapp-banner {
    margin: 28px 16px 8px;
    grid-template-columns: auto 1fr;
    padding: 17px;
  }
  .snapp-banner .btn {
    grid-column: 1/-1;
    width: 100%;
    text-align: center;
  }
  .snapp-logo-text {
    width: 58px;
    height: 58px;
    border-radius: 16px;
  }
  .payment-result-card {
    padding: 28px 20px;
  }
  .result-meta {
    grid-template-columns: 1fr;
  }
  .drawer {
    width: min(360px,92vw);
  }
  body.menu-open {
    overflow: hidden;
  }
}

/* V31 professional storefront + admin refinement */

.admin-login {
  background: radial-gradient(circle at 20% 10%,#eef5f1 0,transparent 30%),radial-gradient(circle at 85% 90%,#efe5dd 0,transparent 32%),#f7f4ef;
}

.admin-login-shell {
  width: min(980px,100%);
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 28px;
  align-items: center;
}

.admin-login-brand {
  min-height: 430px;
  border-radius: 28px;
  background: linear-gradient(145deg,#5e756b,#3e524d);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 35px;
  box-shadow: 0 30px 80px rgba(53,70,65,.18);
}

.admin-login-brand img {
  width: 190px;
  height: 110px;
  object-fit: contain;
  background: #fffdfb;
  border-radius: 20px;
  padding: 8px;
}

.admin-login-brand span {
  letter-spacing: 4px;
  font-size: 13px;
  margin-top: 18px;
}

.admin-login-brand small {
  opacity: .72;
  margin-top: 6px;
}

.admin-login-card {
  border-radius: 28px;
  padding: 42px;
  box-shadow: 0 25px 80px rgba(53,70,65,.10);
}

.admin-login-card label {
  display: block;
  text-align: right;
  font-size: 12px;
  font-weight: 800;
  margin-top: 22px;
}

.admin-login-card h1 {
  margin: 9px 0;
  font-size: 29px;
  color: #294044;
}

.admin-login-card>p:not(.login-error) {
  color: #84908e;
  line-height: 1.9;
  font-size: 12px;
}

.admin-kicker,.admin-title small,.card-head small {
  letter-spacing: 2px;
  color: #718679;
  font-weight: 900;
  font-size: 9px;
}

.admin-password-wrap {
  display: flex;
  gap: 7px;
  margin-top: 8px;
}

.admin-password-wrap input {
  margin: 0 !important;
  flex: 1;
}

.admin-password-wrap button {
  border: 1px solid #dce5e1;
  background: #f4f8f6;
  border-radius: 10px;
  padding: 0 13px;
  cursor: pointer;
  color: #557168;
}

.admin-login-btn {
  margin-top: 12px;
  padding: 15px;
}

.admin-login-security {
  display: block;
  color: #a0aaa7;
  font-size: 9px;
  margin-top: 18px;
}

.admin-side {
  background: linear-gradient(180deg,#30433f,#253532);
  padding: 20px 14px;
}

.admin-side-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 5px 20px;
  border-bottom: 1px solid #ffffff16;
}

.admin-side-brand img {
  width: 115px;
  height: 68px;
  background: #fff;
  border-radius: 12px;
  padding: 4px;
  object-fit: contain;
}

.admin-side-brand b {
  margin-top: 9px;
  font-size: 12px;
  letter-spacing: 2px;
}

.admin-side-brand small {
  color: #a9b9b4;
  font-size: 9px;
  margin-top: 3px;
}

.admin-side-group {
  padding: 15px 0 0;
}

.admin-side-group>span {
  display: block;
  color: #80938d;
  font-size: 9px;
  padding: 0 12px 7px;
  letter-spacing: 1px;
}

.admin-nav {
  border-radius: 12px;
  margin: 2px 0;
  color: #cbd6d2;
}

.admin-nav:hover,.admin-nav.active {
  background: #718f83;
  box-shadow: 0 8px 20px #16231f30;
}

.admin-side-bottom {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid #ffffff16;
}

.admin-main {
  max-width: 1600px;
  padding: 30px 34px;
}

.admin-title {
  align-items: center;
}

.admin-title h1 {
  font-size: 29px;
  color: #2e3d3a;
}

.admin-title p {
  margin: 6px 0 0;
  color: #89928f;
  font-size: 11px;
}

.admin-title-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.admin-outline-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #d7e1dd;
  background: #fff;
  color: #527168;
  padding: 11px 15px;
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none;
  font-size: 11px;
}

.admin-dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.admin-card {
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 12px 35px rgba(53,70,65,.055);
}

.card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.card-head h2 {
  margin: 4px 0 0;
  font-size: 17px;
  color: #33433f;
}

.stats-grid {
  grid-template-columns: repeat(3,1fr);
  gap: 12px;
}

.stats-grid.compact {
  margin-bottom: 14px;
}

.stat {
  border-radius: 16px;
  padding: 16px;
  background: linear-gradient(145deg,#fff,#f7faf8);
  border-color: #e0e9e5;
}

.stat small {
  font-size: 9px;
}

.stat b {
  font-size: 18px;
  color: #30433f;
}

.editor-grid {
  gap: 12px;
}

.editor-grid input,.editor-grid textarea,.editor-grid select,.settings-card input,.settings-card textarea,.settings-card select {
  padding: 12px 13px;
}

.admin-fieldset {
  grid-column: 1/-1;
  border: 1px solid #dce7e2;
  border-radius: 14px;
  padding: 14px;
  background: #f7fbf9;
}

.admin-fieldset>b {
  font-size: 12px;
  color: #3e5a51;
}

.admin-fieldset>small {
  display: block;
  color: #889591;
  font-size: 9px;
  margin-top: 8px;
  line-height: 1.8;
}

.discount-inline {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 8px;
  margin-top: 10px;
}

.discount-inline .checkline {
  margin: 0;
}

.editor-status {
  font-size: 10px;
  color: #8b9894;
}

.old-price {
  text-decoration: line-through;
  color: #a49b94;
  display: block;
}

.discount-price {
  color: #b95e56;
}

.product-filter {
  display: grid;
  grid-template-columns: 1fr 190px;
  gap: 10px;
}

.bulk-box {
  display: grid;
  grid-template-columns: auto 150px 160px auto;
  gap: 8px;
  align-items: center;
  padding: 12px;
  margin-bottom: 12px;
  background: #f7faf8;
  border: 1px solid #e1e9e5;
  border-radius: 12px;
}

.bulk-box b {
  font-size: 11px;
  color: #52655e;
}

.mini-btn {
  border-radius: 9px;
}

.mini-btn.ghost {
  background: #f1f5f3;
  color: #4f6860;
}

.danger-btn {
  background: #a85f59 !important;
}

.sms-grid {
  grid-template-columns: 1fr 1fr;
}

.toggle-card {
  display: flex !important;
  gap: 10px;
  align-items: flex-start;
  background: #f5faf7;
  border: 1px solid #dce9e3;
  padding: 13px;
  border-radius: 12px;
}

.toggle-card input {
  width: auto !important;
  margin: 3px 0 !important;
}

.toggle-card b,.toggle-card small {
  display: block;
}

.toggle-card small {
  font-size: 9px;
  color: #84918e;
  margin-top: 3px;
}

.settings-status {
  display: block;
  color: #718679;
  font-size: 10px;
  margin-top: 8px;
}

.backup-card {
  text-align: center;
  padding: 35px;
}

.backup-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: #edf6f1;
  color: #4f8377;
  display: grid;
  place-content: center;
  font-size: 30px;
  margin: 0 auto 15px;
}

.backup-actions {
  display: flex;
  justify-content: center;
  gap: 9px;
  flex-wrap: wrap;
}

.file-btn {
  display: inline-flex;
  align-items: center;
  padding: 11px 15px;
  border: 1px solid #d8e3de;
  background: #fff;
  border-radius: 10px;
  color: #527168;
  font-size: 11px;
  cursor: pointer;
}

.file-btn input {
  display: none;
}

.trust-strip {
  display: flex;
  gap: 10px;
  padding: 22px 7%;
  background: #fffdfb;
  border-top: 1px solid #e8e0d9;
  border-bottom: 1px solid #e8e0d9;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}

.trust-strip::-webkit-scrollbar {
  display: none;
}

.trust-strip>div {
  flex: 0 0 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 16px;
  border: 1px solid #e4ebe7;
  border-radius: 15px;
  background: #fbfdfc;
  scroll-snap-align: start;
}

.trust-strip>div>span {
  font-size: 22px;
}

.trust-strip b {
  font-size: 12px;
  color: #40554e;
}

.trust-strip small {
  font-size: 9px;
  color: #87918f;
  margin-top: 3px;
}

.story-highlights {
  padding: 36px 7% 20px;
}

.story-highlight-row {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 6px 3px 12px;
  scrollbar-width: none;
}

.story-highlight-row::-webkit-scrollbar {
  display: none;
}

.story-circle {
  flex: 0 0 86px;
  text-align: center;
}

.story-circle span {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  margin: auto;
  display: grid;
  place-content: center;
  background: linear-gradient(145deg,#f2e5db,#eef4f0);
  border: 2px solid #b6c8c0;
  box-shadow: 0 5px 18px #4c625b16;
  font-size: 24px;
  color: #607b71;
}

.story-circle b {
  display: block;
  font-size: 9px;
  color: #65716e;
  margin-top: 8px;
}

.dynamic-product-section {
  padding: 42px 7%;
  scroll-margin-top: 90px;
}

.dynamic-product-section.soft-section {
  background: #f4f8f5;
}

.dynamic-product-section .grid {
  margin-top: 12px;
}

.mini-info-section {
  margin: 20px 7%;
  padding: 28px 32px;
  border: 1px solid #dfe9e5;
  border-radius: 20px;
  background: linear-gradient(135deg,#f5faf8,#fbf7f3);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  scroll-margin-top: 100px;
}

.mini-info-section h2 {
  margin: 5px 0;
  font-size: 21px;
}

.mini-info-section p {
  color: #7f8b87;
  font-size: 11px;
}

.mini-info-section small {
  letter-spacing: 2px;
  color: #718679;
  font-size: 8px;
}

.mini-info-section.special {
  background: linear-gradient(135deg,#fbf3eb,#f5f9f7);
}

.gallery-open {
  position: relative;
  border: 0;
  background: transparent;
  padding: 0;
  display: block;
  width: calc(100% - 94px);
  cursor: zoom-in;
}

.gallery-open .mainimg {
  width: 100%;
  display: block;
}

.gallery-open>span {
  position: absolute;
  left: 14px;
  top: 14px;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #fffdfbdd;
  display: grid;
  place-content: center;
  color: #52645e;
  box-shadow: 0 5px 15px #00000012;
}

.gallery-count {
  font-size: 9px;
  color: #87928e;
  text-align: center;
  margin-top: 7px;
}

.gallery-thumb {
  border: 1px solid transparent;
  background: #fff;
  padding: 0;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
}

.gallery-thumb.active {
  border-color: #718f83;
  box-shadow: 0 0 0 2px #718f8325;
}

.gallery-thumb img {
  width: 82px;
  height: 95px;
  object-fit: contain !important;
  display: block;
  background: #f5efe9;
}

.gallery-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(30,38,36,.93);
  z-index: 500;
  align-items: center;
  justify-content: center;
  padding: 45px 70px;
}

.gallery-lightbox.show {
  display: flex;
}

.gallery-stage {
  max-width: min(88vw,1100px);
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
}

.gallery-stage>img {
  max-width: 100%;
  max-height: 78vh;
  object-fit: contain;
  transition: transform .2s;
}

.gallery-close,.gallery-prev,.gallery-next {
  position: absolute;
  border: 0;
  background: #ffffff18;
  color: #fff;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  font-size: 30px;
  cursor: pointer;
}

.gallery-close {
  top: 20px;
  left: 22px;
}

.gallery-prev {
  right: 20px;
}

.gallery-next {
  left: 20px;
}

.gallery-zoom {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 12px;
  color: #fff;
}

.gallery-zoom button {
  border: 0;
  background: #ffffff18;
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.gallery-caption {
  color: #dce5e1;
  font-size: 10px;
  margin-top: 8px;
}

.post-invoice-payment {
  max-width: 950px;
  margin: 20px auto;
  padding: 0;
  border: 1px solid #dbe7e2;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 35px rgba(53,70,65,.06);
  overflow: hidden;
}

.payment-panel-inner {
  padding: 22px;
}

.post-payment-btn {
  margin-top: 14px;
}

.card-price del {
  display: block;
  color: #a49b94;
  font-size: 10px;
}

.card-price b {
  display: block;
}

.card-price em {
  display: inline-block;
  margin-top: 4px;
  font-size: 8px;
  font-style: normal;
  color: #b95e56;
  background: #fff0ed;
  padding: 3px 6px;
  border-radius: 6px;
}

.discount-badge {
  position: absolute !important;
  right: 10px;
  top: 10px;
  background: #b95e56 !important;
  color: #fff !important;
  border-radius: 8px;
  padding: 5px 8px !important;
  font-size: 8px !important;
  z-index: 2;
}

.product-discount-label {
  font-size: 9px;
  color: #b95e56;
  background: #fff0ed;
  padding: 4px 7px;
  border-radius: 7px;
  margin-right: 5px;
}

@media (max-width:900px) {
  .admin-login-shell {
    grid-template-columns: 1fr;
  }
  .admin-login-brand {
    min-height: 180px;
  }
  .admin-login-card {
    padding: 28px;
  }
  .admin-dashboard-grid {
    grid-template-columns: 1fr;
  }
  .admin-main {
    padding: 15px;
  }
  .admin-title {
    align-items: stretch;
  }
  .admin-title-actions {
    width: 100%;
  }
  .admin-title-actions>* {
    flex: 1;
  }
  .stats-grid {
    grid-template-columns: repeat(2,1fr);
  }
  .discount-inline,.sms-grid {
    grid-template-columns: 1fr;
  }
  .bulk-box {
    grid-template-columns: 1fr 1fr;
  }
  .bulk-box b,.bulk-box .mini-btn {
    grid-column: 1/-1;
  }
  .product-filter {
    grid-template-columns: 1fr;
  }
  .trust-strip {
    padding: 18px 16px;
  }
  .trust-strip>div {
    flex-basis: 200px;
  }
  .story-highlights {
    padding: 28px 16px 16px;
  }
  .dynamic-product-section {
    padding: 34px 16px;
  }
  .dynamic-product-section .grid {
    grid-template-columns: repeat(2,1fr);
    gap: 10px;
  }
  .mini-info-section {
    margin: 14px 16px;
    padding: 22px;
    display: block;
  }
  .mini-info-section .btn {
    width: 100%;
    text-align: center;
    margin-top: 8px;
  }
  .gallery {
    display: block;
  }
  .gallery #thumbs {
    width: 100%;
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 7px;
    order: 2;
  }
  .gallery-thumb {
    flex: 0 0 68px;
  }
  .gallery-thumb img {
    width: 68px;
    height: 78px;
  }
  .gallery-open {
    width: 100%;
    order: 1;
  }
  .gallery-lightbox {
    padding: 40px 20px;
  }
  .gallery-prev {
    right: 7px;
  }
  .gallery-next {
    left: 7px;
  }
}

@media (max-width:600px) {
  .admin-login {
    padding: 12px;
  }
  .admin-login-brand {
    min-height: 145px;
    border-radius: 22px;
  }
  .admin-login-brand img {
    width: 145px;
    height: 80px;
  }
  .admin-login-card {
    border-radius: 22px;
    padding: 22px;
  }
  .admin-login-card h1 {
    font-size: 23px;
  }
  .stats-grid {
    gap: 8px;
  }
  .stat {
    padding: 12px;
  }
  .admin-title h1 {
    font-size: 23px;
  }
  .admin-card {
    padding: 14px;
  }
  .admin-table-wrap table {
    min-width: 980px;
  }
  .story-circle {
    flex-basis: 78px;
  }
  .story-circle span {
    width: 64px;
    height: 64px;
  }
  .dynamic-product-section .card img {
    height: 220px;
  }
  .post-invoice-payment {
    margin: 16px;
  }
  .gallery-stage>img {
    max-height: 70vh;
  }
}

.carrier-track {
  margin-top: 20px;
  padding: 18px;
  border: 1px solid #e0e8e4;
  border-radius: 16px;
  background: #f8fbfa;
}

.carrier-track h3 {
  margin: 0 0 12px;
  font-size: 13px;
}

.carrier-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 8px;
}

.carrier-grid a {
  padding: 12px;
  background: #fff;
  border: 1px solid #e1e8e5;
  border-radius: 12px;
  text-align: center;
}

.carrier-grid b,.carrier-grid small {
  display: block;
}

.carrier-grid b {
  color: #526e64;
}

.carrier-grid small {
  font-size: 8px;
  color: #8b9693;
  margin-top: 4px;
}

@media (max-width:600px) {
  .carrier-grid {
    grid-template-columns: 1fr;
  }
  .carrier-grid a {
    text-align: right;
  }
}

/* V33: static story placeholders + professional contact page */

.story-static {
  position: relative;
  cursor: default;
  user-select: none;
}

.story-static span {
  transition: transform .2s;
}

.story-static:hover span {
  transform: translateY(-2px);
}

.story-static small {
  display: block;
  font-size: 7px;
  color: #9aaaa4;
  margin-top: 3px;
}

.contact-page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 54px 7% 70px;
}

.contact-hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  padding: 34px 38px;
  border: 1px solid #dfe9e5;
  border-radius: 26px;
  background: linear-gradient(135deg,#f5faf8,#fffaf5);
  box-shadow: 0 16px 40px rgba(53,70,65,.06);
}

.contact-hero small,.contact-social small,.contact-location-card small,.contact-card-v33 small {
  font-size: 9px;
  letter-spacing: 1.5px;
  color: #7b9088;
}

.contact-hero h1 {
  margin: 9px 0 10px;
  font-size: 32px;
  color: #304540;
}

.contact-hero p {
  max-width: 650px;
  margin: 0;
  color: #71807b;
  font-size: 12px;
  line-height: 2;
}

.contact-hero-badge {
  width: 110px;
  height: 110px;
  border-radius: 28px;
  background: #eaf3ef;
  border: 1px solid #d2e2dc;
  color: #5d8478;
  display: grid;
  place-content: center;
  text-align: center;
  font-size: 38px;
  flex: none;
}

.contact-hero-badge span {
  display: block;
  font-size: 8px;
  margin-top: 4px;
}

.contact-grid-v33 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 22px;
}

.contact-card-v33 {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 22px;
  border: 1px solid #e0e9e5;
  border-radius: 20px;
  background: #fff;
  color: #334742;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(53,70,65,.045);
  transition: transform .2s,box-shadow .2s;
}

.contact-card-v33:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(53,70,65,.09);
}

.contact-card-v33.whatsapp {
  background: linear-gradient(135deg,#eef8f3,#fff);
}

.contact-card-v33 .contact-icon {
  width: 50px;
  height: 50px;
  border-radius: 15px;
  background: #eef5f2;
  display: grid;
  place-content: center;
  color: #588074;
  font-size: 22px;
  flex: none;
}

.contact-card-v33 h2 {
  font-size: 17px;
  margin: 6px 0 4px;
  color: #304540;
}

.contact-card-v33 b {
  font-size: 14px;
  direction: ltr;
  display: inline-block;
}

.contact-card-v33 p {
  font-size: 9px;
  color: #899590;
  margin: 6px 0 0;
}

.contact-card-v33>strong {
  margin-right: auto;
  font-size: 18px;
  color: #7a928a;
}

.contact-location-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 14px;
}

.contact-location-card {
  display: flex;
  gap: 15px;
  padding: 23px;
  border-radius: 20px;
  background: #f8faf9;
  border: 1px solid #e0e8e5;
}

.contact-location-card>span {
  font-size: 28px;
  color: #62867a;
}

.contact-location-card h2 {
  font-size: 16px;
  margin: 7px 0;
  color: #344943;
}

.contact-location-card p {
  font-size: 11px;
  line-height: 2;
  color: #77847f;
  margin: 0;
}

.contact-social {
  margin-top: 14px;
  padding: 25px;
  border-radius: 20px;
  border: 1px solid #e0e8e5;
  background: linear-gradient(135deg,#fffdfb,#f6faf8);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.contact-social h2 {
  margin: 7px 0 0;
  font-size: 19px;
  color: #334742;
}

.contact-social-links {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
}

.contact-social-links a {
  padding: 11px 14px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #dde7e3;
  text-decoration: none;
  color: #49675e;
  font-size: 10px;
}

.contact-social-links b {
  display: block;
  font-size: 9px;
  margin-top: 3px;
  color: #7c8985;
}

.contact-shade {
  display: none;
}

.contact-shade.show {
  display: block;
  position: fixed;
  inset: 0;
  background: #18221f66;
  z-index: 90;
}

@media (max-width:800px) {
  .contact-page {
    padding: 30px 16px 50px;
  }
  .contact-hero {
    padding: 25px 20px;
    align-items: flex-start;
  }
  .contact-hero h1 {
    font-size: 25px;
  }
  .contact-hero-badge {
    width: 82px;
    height: 82px;
    border-radius: 22px;
    font-size: 29px;
  }
  .contact-grid-v33,.contact-location-grid {
    grid-template-columns: 1fr;
  }
  .contact-social {
    display: block;
  }
  .contact-social-links {
    margin-top: 14px;
  }
  .contact-card-v33 {
    padding: 18px;
  }
  .contact-card-v33 h2 {
    font-size: 15px;
  }
}

@media (max-width:560px) {
  .contact-hero-badge {
    display: none;
  }
  .contact-hero p {
    font-size: 10px;
  }
  .contact-card-v33 .contact-icon {
    width: 44px;
    height: 44px;
  }
  .contact-card-v33 h2 {
    font-size: 14px;
  }
  .contact-card-v33 b {
    font-size: 12px;
  }
  .contact-card-v33 p {
    font-size: 8px;
  }
  .contact-location-card {
    padding: 18px;
  }
  .contact-social h2 {
    font-size: 16px;
  }
}

/* V34 final QA polish */

.location-field-card {
  border: 1px solid #dfe8e4;
  background: linear-gradient(145deg,#fff,#f8fbf9);
  border-radius: 18px;
  padding: 13px;
  display: grid;
  gap: 8px;
  box-shadow: 0 8px 22px rgba(53,70,65,.035);
}

.location-field-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 0 3px;
}

.location-field-head b {
  font-size: 12px;
  color: #40554e;
}

.location-field-head small {
  font-size: 8px;
  color: #8a9792;
}

.location-search {
  width: 100%;
  padding: 11px 12px !important;
  border: 1px solid #e0e8e5 !important;
  border-radius: 11px !important;
  background: #fbfdfc !important;
  font-size: 11px !important;
}

.location-search:focus {
  border-color: #7a9b90 !important;
  box-shadow: 0 0 0 3px #7a9b9014 !important;
  outline: none;
}

.location-field-card select {
  width: 100%;
  margin: 0 !important;
}

.location-field-card select option[hidden] {
  display: none;
}

.shipping-page-v34 {
  max-width: 1120px;
  margin: 0 auto;
  padding: 48px 7% 70px;
}

.shipping-hero-v34 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 32px;
  border: 1px solid #dfe8e4;
  border-radius: 28px;
  background: linear-gradient(135deg,#f4faf7,#fffaf6);
  box-shadow: 0 14px 38px rgba(53,70,65,.06);
}

.shipping-hero-v34 small {
  font-size: 9px;
  letter-spacing: 1.5px;
  color: #789087;
}

.shipping-hero-v34 h1 {
  margin: 9px 0 10px;
  color: #304540;
  font-size: 30px;
}

.shipping-hero-v34 p {
  margin: 0;
  color: #74827d;
  font-size: 11px;
  line-height: 2;
}

.shipping-hero-v34 img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  border-radius: 22px;
  background: #fff;
  border: 1px solid #e0e8e4;
  padding: 8px;
}

.carrier-grid-v34 {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 14px;
  margin-top: 20px;
}

.carrier-card-v34 {
  min-height: 180px;
  padding: 20px;
  border: 1px solid #dfe8e4;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(53,70,65,.05);
  text-decoration: none;
  color: #304540;
  display: flex;
  flex-direction: column;
  gap: 13px;
  transition: .2s;
}

.carrier-card-v34:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(53,70,65,.09);
}

.carrier-card-v34 img {
  width: 112px;
  height: 74px;
  object-fit: contain;
}

.carrier-card-v34 div {
  flex: 1;
}

.carrier-card-v34 span {
  font-size: 8px;
  color: #83908b;
}

.carrier-card-v34 h2 {
  margin: 4px 0;
  font-size: 21px;
}

.carrier-card-v34 p {
  margin: 0;
  color: #7d8985;
  font-size: 9px;
}

.carrier-card-v34>b {
  align-self: flex-start;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: #eff6f2;
  display: grid;
  place-content: center;
  color: #5a7e72;
}

.shipping-note-v34 {
  margin-top: 14px;
  padding: 18px 20px;
  border: 1px solid #e1e9e5;
  border-radius: 18px;
  background: #f7faf8;
}

.shipping-note-v34 b {
  font-size: 11px;
  color: #40564f;
}

.shipping-note-v34 p {
  margin: 7px 0 0;
  color: #7a8782;
  font-size: 9px;
  line-height: 2;
}

.admin-passkey-btn {
  width: 100%;
  margin-top: 10px;
  border: 1px solid #d5e3de;
  background: #f5faf7;
  color: #47695e;
  padding: 12px;
  border-radius: 11px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
}

.admin-passkey-hint {
  font-size: 8px !important;
  color: #8a9692 !important;
  line-height: 1.8 !important;
  margin: 8px 0 !important;
}

.passkey-settings-card {
  grid-column: 1/-1;
}

.passkey-status {
  padding: 11px 13px;
  border-radius: 11px;
  background: #f5faf7;
  border: 1px solid #dce9e3;
  color: #58776e;
  font-size: 10px;
  margin-bottom: 10px;
}

.danger-outline {
  color: #a15d58 !important;
  border-color: #ead6d3 !important;
}

.modern-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: #fffdfbfa;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #e8eee9;
}

.header-inner {
  min-height: 76px;
}

.modern-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 140px;
}

.modern-logo img {
  width: 118px;
  height: 64px;
  object-fit: contain;
}

.header-tools {
  gap: 7px;
}

.tool {
  min-width: 42px !important;
  width: 42px;
  height: 42px;
  display: grid !important;
  place-items: center;
  border-radius: 13px;
  background: #f6faf8;
  border: 1px solid #e0e9e5;
  font-size: 19px;
}

.cart-tool {
  position: relative;
}

.cart-tool em {
  position: absolute;
  top: -5px;
  right: -4px;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: 20px;
  background: #5b877a;
  color: #fff;
  font-size: 9px;
  display: grid;
  place-items: center;
  font-style: normal;
}

.mobile-menu {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  border: 1px solid #dfe8e4;
  background: #fff;
  color: #304540;
  font-size: 22px;
  display: none;
}

@media (max-width:900px) {
  .header-inner {
    min-height: 68px;
    padding: 8px 12px;
    display: grid;
    grid-template-columns: 44px 1fr auto;
    gap: 9px;
  }
  .mobile-menu {
    display: block;
  }
  .modern-logo {
    min-width: 0;
  }
  .modern-logo img {
    width: 112px;
    height: 54px;
  }
  .main-nav {
    display: none !important;
  }
  .header-tools {
    display: flex !important;
    gap: 5px;
  }
  .header-tools .tool {
    min-width: 38px !important;
    width: 38px;
    height: 38px;
    font-size: 17px;
  }
  .header-tools .search-link,.header-tools .heart-tool {
    display: none !important;
  }
  .carrier-grid-v34 {
    grid-template-columns: 1fr;
  }
  .shipping-page-v34 {
    padding: 26px 16px 50px;
  }
  .shipping-hero-v34 {
    padding: 22px;
    align-items: center;
  }
  .shipping-hero-v34 h1 {
    font-size: 24px;
  }
  .shipping-hero-v34 img {
    width: 84px;
    height: 84px;
  }
  .carrier-card-v34 {
    min-height: 145px;
  }
  .location-field-card {
    padding: 11px;
  }
  .location-field-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }
  .admin-passkey-btn {
    min-height: 46px;
  }
}

@media (max-width:600px) {
  .header-inner {
    grid-template-columns: 42px 1fr auto;
  }
  .modern-logo img {
    width: 100px;
    height: 50px;
  }
  .header-tools .tool {
    min-width: 36px !important;
    width: 36px;
    height: 36px;
  }
  .shipping-hero-v34 {
    gap: 12px;
  }
  .shipping-hero-v34 img {
    width: 70px;
    height: 70px;
  }
  .shipping-hero-v34 h1 {
    font-size: 21px;
  }
  .shipping-hero-v34 p {
    font-size: 9px;
  }
  .carrier-card-v34 {
    padding: 16px;
  }
  .carrier-card-v34 img {
    width: 95px;
    height: 62px;
  }
  .location-search {
    font-size: 10px !important;
  }
}

/* V36 final storefront refinement */

html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
}

section[id] {
  scroll-margin-top: 92px;
}

.drawer {
  z-index: 200;
}

.drawer-close {
  z-index: 3;
}

.drawer-actions a,.drawer-section button,.drawer-links a {
  min-height: 44px;
}

.story-highlight-row {
  display: grid !important;
  grid-template-columns: repeat(6,minmax(82px,1fr));
  gap: 12px;
  overflow-x: auto;
  padding: 5px 2px 12px;
  scrollbar-width: none;
}

.story-circle {
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  text-align: center;
  color: inherit;
  min-width: 82px;
}

.story-circle span {
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  margin: 0 auto 7px;
  border-radius: 50%;
  background: linear-gradient(145deg,#f3faf7,#fff8f3);
  border: 1px solid #dce8e3;
  color: #5e8377;
  font-size: 24px;
  box-shadow: 0 8px 20px rgba(53,70,65,.06);
  transition: .2s;
}

.story-circle b {
  display: block;
  font-size: 10px;
  color: #40554e;
}

.story-circle small {
  display: block;
  margin-top: 3px;
  font-size: 7px;
  color: #8d9a96;
}

.story-circle:hover span {
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(53,70,65,.1);
}

.story-circle.is-empty {
  opacity: .72;
}

.dynamic-product-section[hidden] {
  display: none !important;
}

.dynamic-product-section {
  padding: 48px 7%;
  background: #fffdfb;
}

.dynamic-product-section.soft-section {
  background: #f5f0eb;
}

.dynamic-product-section .section-heading {
  margin-bottom: 20px;
}

.dynamic-product-section .grid {
  grid-template-columns: repeat(4,1fr);
}

.store-toast {
  position: fixed;
  right: 50%;
  bottom: 24px;
  transform: translate(50%,20px);
  opacity: 0;
  pointer-events: none;
  z-index: 500;
  background: #304540;
  color: #fff;
  padding: 12px 18px;
  border-radius: 14px;
  box-shadow: 0 14px 35px rgba(30,45,42,.2);
  font-size: 11px;
  transition: .25s;
}

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

.simple-page-header {
  height: 76px;
  background: #fffdfb;
  border-bottom: 1px solid #e8eee9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6%;
  position: sticky;
  top: 0;
  z-index: 80;
}

.simple-page-header .logo-img {
  position: static;
  transform: none;
  width: 105px;
  height: 55px;
}

.account-v36 {
  max-width: 1100px;
  margin: auto;
  padding: 38px 20px 70px;
}

.account-hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 26px 28px;
  border: 1px solid #dfe8e4;
  border-radius: 24px;
  background: linear-gradient(135deg,#f4faf7,#fffaf5);
  margin-bottom: 16px;
}

.account-hero small,.account-card-head small {
  font-size: 8px;
  letter-spacing: 1.8px;
  color: #718679;
  font-weight: 900;
}

.account-hero h1 {
  margin: 7px 0;
  font-size: 28px;
  color: #304540;
}

.account-hero p {
  margin: 0;
  color: #7c8985;
  font-size: 10px;
  line-height: 1.9;
}

.account-state {
  padding: 9px 13px;
  border-radius: 20px;
  background: #edf6f2;
  color: #52776b;
  font-size: 10px;
  font-weight: 800;
}

.account-card {
  background: #fff;
  border: 1px solid #e0e8e5;
  border-radius: 22px;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(53,70,65,.045);
  margin-bottom: 14px;
}

.account-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 18px;
}

.account-card-head.compact {
  margin-bottom: 12px;
}

.account-card-head h2 {
  margin: 5px 0;
  font-size: 18px;
  color: #304540;
}

.account-card-head p {
  margin: 0;
  color: #84908c;
  font-size: 9px;
  line-height: 1.8;
}

.account-badge {
  padding: 7px 10px;
  border-radius: 10px;
  background: #f4f8f6;
  color: #648278;
  font-size: 8px;
}

.auth-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.auth-panel {
  border: 1px solid #e2e9e6;
  border-radius: 17px;
  padding: 17px;
  background: #fff;
}

.auth-panel.muted-panel {
  background: #fafcfb;
}

.auth-panel h3 {
  margin: 0 0 12px;
  font-size: 13px;
  color: #40554e;
}

.auth-panel input,.profile-grid input,.profile-grid textarea {
  width: 100%;
  border: 1px solid #dfe8e4;
  border-radius: 11px;
  padding: 12px 13px;
  background: #fbfdfc;
  outline: none;
  margin-bottom: 8px;
}

.auth-panel input:focus,.profile-grid input:focus,.profile-grid textarea:focus {
  border-color: #7a9b90;
  box-shadow: 0 0 0 3px #7a9b9014;
}

.secondary-btn {
  background: #f1f6f4 !important;
  color: #4f7066 !important;
  border: 1px solid #dce8e3 !important;
}

.form-message {
  min-height: 18px;
  margin: 8px 0 0;
  font-size: 9px;
  line-height: 1.8;
}

.form-message.error {
  color: #a75e57;
}

.form-message.success {
  color: #4e806f;
}

.otp-disabled {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  padding: 13px 15px;
  border: 1px dashed #d9e4e0;
  border-radius: 15px;
  background: #f8fbfa;
  color: #7d8c87;
}

.otp-disabled>span {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: #edf5f1;
  color: #66877c;
}

.otp-disabled div {
  flex: 1;
}

.otp-disabled b,.otp-disabled small {
  display: block;
}

.otp-disabled b {
  font-size: 10px;
  color: #526e65;
}

.otp-disabled small {
  font-size: 8px;
  margin-top: 3px;
  line-height: 1.8;
}

.otp-disabled strong {
  font-size: 8px;
  color: #9aa7a2;
}

.profile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.profile-grid>div>label {
  display: block;
  font-size: 9px;
  color: #5d7069;
  font-weight: 800;
  margin: 0 3px 6px;
}

.profile-grid textarea {
  min-height: 100px;
  resize: vertical;
}

.profile-address {
  grid-column: 1/-1;
}

.account-content-grid {
  display: grid;
  grid-template-columns: 1.3fr .7fr;
  gap: 14px;
  margin-bottom: 14px;
}

.content-card {
  background: #fff;
  border: 1px solid #e0e8e5;
  border-radius: 22px;
  padding: 20px;
}

.account-order {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 5px 10px;
  padding: 13px 0;
  border-bottom: 1px solid #edf1ef;
  align-items: center;
}

.account-order:last-child {
  border-bottom: 0;
}

.account-order b {
  font-size: 10px;
  color: #40554e;
}

.account-order span,.account-order small {
  font-size: 8px;
  color: #899692;
}

.account-order strong {
  font-size: 10px;
}

.account-order small {
  grid-column: 1/-1;
}

.account-order .mini-btn {
  grid-column: 1/-1;
  justify-self: start;
}

.account-support {
  margin-top: 4px;
}

.danger-outline {
  background: #fff !important;
}

.cart-payment-note {
  margin-top: 10px;
  padding: 11px 13px;
  border: 1px solid #e1e9e5;
  border-radius: 13px;
  background: #f8fbfa;
  display: flex;
  gap: 10px;
  align-items: center;
}

.cart-payment-note b {
  font-size: 9px;
  color: #4f7066;
}

.cart-payment-note small {
  font-size: 7px;
  color: #889490;
  margin-top: 2px;
}

.cart-payment-icon {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: #e6f4ed;
  color: #4d8a70;
  display: grid;
  place-items: center;
  font-weight: 900;
}

.products-v2,.categories-v2,.story-highlights,.new-collection-v2 {
  padding-top: 42px;
  padding-bottom: 42px;
}

.section-heading {
  gap: 12px;
}

.section-heading h2 {
  margin: 5px 0;
}

.products-v2 .grid {
  gap: 16px;
}

.card {
  border-radius: 15px;
}

.card:hover {
  transform: translateY(-3px);
}

.card div {
  padding: 13px;
}

.card h3 {
  line-height: 1.7;
}

.trust-strip {
  margin: 20px 6%;
  border-radius: 20px;
  overflow: hidden;
}

.mini-info-section {
  border-radius: 20px;
}

.wholesale-banner {
  margin: 20px 6%;
  border-radius: 20px;
}

.snapp-banner {
  border-radius: 20px;
}

.modern-footer {
  gap: 28px;
}

@media (max-width:900px) {
  .dynamic-product-section {
    padding: 34px 16px;
  }
  .dynamic-product-section .grid {
    grid-template-columns: repeat(2,1fr);
    gap: 10px;
  }
  .story-highlight-row {
    grid-template-columns: repeat(6,82px);
  }
  .account-v36 {
    padding: 24px 14px 55px;
  }
  .account-hero {
    padding: 21px;
  }
  .auth-grid,.profile-grid,.account-content-grid {
    grid-template-columns: 1fr;
  }
  .profile-address {
    grid-column: auto;
  }
  .account-card {
    padding: 18px;
  }
  .account-order {
    grid-template-columns: 1fr auto;
  }
  .account-order span {
    grid-column: 1/-1;
    grid-row: 2;
  }
  .account-order strong {
    grid-column: 2;
    grid-row: 1;
  }
  .account-order small,.account-order .mini-btn {
    grid-column: 1/-1;
  }
  .simple-page-header {
    padding: 0 14px;
  }
  .simple-page-header .logo-img {
    width: 92px;
  }
  .cart-payment-note {
    margin-top: 8px;
  }
  .trust-strip,.wholesale-banner {
    margin-left: 16px;
    margin-right: 16px;
  }
}

@media (max-width:600px) {
  .account-hero h1 {
    font-size: 23px;
  }
  .account-hero p {
    font-size: 9px;
  }
  .account-state {
    font-size: 8px;
  }
  .dynamic-product-section .card img {
    height: 210px;
  }
  .dynamic-product-section .card h3 {
    font-size: 12px;
  }
  .dynamic-product-section .card b {
    font-size: 11px;
  }
  .story-circle span {
    width: 60px;
    height: 60px;
  }
  .story-circle b {
    font-size: 9px;
  }
  .modal {
    padding: 10px;
  }
  .modalbox {
    padding: 24px 15px 18px;
    border-radius: 20px;
    max-height: 94vh;
  }
  .cartrow {
    gap: 8px;
  }
  .cartrow img {
    width: 52px;
    height: 60px;
  }
  .cartrow-price strong {
    font-size: 10px;
  }
  .modern-footer {
    grid-template-columns: 1fr 1fr !important;
  }
  .top {
    font-size: 9px;
    padding: 7px;
  }
}

#shade {
  z-index: 190 !important;
}

.drawer {
  z-index: 200 !important;
}

.body.menu-open header {
  z-index: 80;
}

/* Benchmark UX layer — inspired by common patterns in leading Iranian kids/wholesale stores */

.benchmark-usp {
  margin: 0 6%;
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 10px;
  padding: 14px 0 4px;
}

.benchmark-usp-card {
  min-height: 92px;
  background: #fff;
  border: 1px solid #e2eae6;
  border-radius: 18px;
  padding: 15px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 8px 24px rgba(53,70,65,.04);
}

.usp-icon {
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 12px;
  background: #edf6f2;
  color: #5b8377;
  display: grid;
  place-items: center;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 1px;
}

.benchmark-usp-card b,.benchmark-usp-card small {
  display: block;
}

.benchmark-usp-card b {
  font-size: 11px;
  color: #334a44;
}

.benchmark-usp-card small {
  font-size: 8px;
  color: #899691;
  line-height: 1.8;
  margin-top: 4px;
}

.age-shop-section {
  padding: 34px 6% 10px;
}

.age-shop-grid {
  display: grid;
  grid-template-columns: repeat(5,1fr);
  gap: 10px;
}

.age-shop-grid button {
  min-height: 112px;
  border: 1px solid #dfe8e4;
  background: linear-gradient(145deg,#fff,#f5faf7);
  border-radius: 18px;
  cursor: pointer;
  color: #40554e;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: .22s;
}

.age-shop-grid button:hover {
  transform: translateY(-3px);
  border-color: #9ab6ac;
  box-shadow: 0 12px 25px rgba(53,70,65,.08);
}

.age-shop-grid b {
  font-size: 25px;
}

.age-shop-grid small {
  font-size: 9px;
  color: #8a9893;
  margin-top: 4px;
}

.hero-v2 {
  position: relative;
  overflow: hidden;
}

.hero-v2:after {
  content: "";
  position: absolute;
  inset: auto -8% -80px auto;
  width: 360px;
  height: 220px;
  border-radius: 50%;
  background: #ffffff45;
  filter: blur(4px);
  pointer-events: none;
}

.hero-product {
  box-shadow: 0 25px 70px rgba(53,70,65,.13);
}

.hero-note {
  flex-wrap: wrap;
}

.hero-note span {
  letter-spacing: 0 !important;
  font-size: 9px !important;
}

@media (max-width:900px) {
  .benchmark-usp {
    grid-template-columns: 1fr 1fr;
    margin: 0 16px;
  }
  .age-shop-section {
    padding-left: 16px;
    padding-right: 16px;
  }
  .age-shop-grid {
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 2px 1px 10px;
  }
  .age-shop-grid::-webkit-scrollbar {
    display: none;
  }
  .age-shop-grid button {
    min-width: 118px;
  }
}

@media (max-width:600px) {
  .benchmark-usp {
    gap: 8px;
  }
  .benchmark-usp-card {
    min-height: 82px;
    padding: 11px;
  }
  .benchmark-usp-card b {
    font-size: 10px;
  }
  .benchmark-usp-card small {
    font-size: 7px;
  }
  .usp-icon {
    width: 32px;
    height: 32px;
  }
  .age-shop-grid button {
    min-width: 105px;
    min-height: 92px;
  }
  .age-shop-grid b {
    font-size: 20px;
  }
}

/* Product detail premium layer v37 */

.detail-v2 {
  max-width: 1320px;
  padding-top: 24px;
}

.detail-grid-v2 {
  grid-template-columns: minmax(0,1.05fr) minmax(390px,.95fr);
  gap: 64px;
}

.product-gallery-v2 .gallery {
  display: block;
  top: 96px;
}

.gallery-topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 0 12px;
  padding: 0 4px;
  color: #879599;
  font-size: 10px;
}

.gallery-topline span:first-child {
  font-weight: 800;
  color: #5d6f73;
}

.gallery-body {
  display: grid;
  grid-template-columns: 82px minmax(0,1fr);
  gap: 14px;
  direction: ltr;
}

.gallery-thumbs {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px;
  width: auto !important;
  overflow: auto;
  max-height: 650px;
  padding: 2px;
}

.gallery-thumbs .gallery-thumb {
  width: 78px;
  height: 92px;
  padding: 2px;
  border: 1px solid #dce6e3;
  background: #fff;
  border-radius: 13px;
  overflow: hidden;
  cursor: pointer;
  transition: .2s;
  flex: 0 0 auto;
}

.gallery-thumbs .gallery-thumb img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  border: 0 !important;
  padding: 0 !important;
  border-radius: 10px;
}

.gallery-thumbs .gallery-thumb.active {
  border-color: var(--brand);
  box-shadow: 0 0 0 2px #71867930;
}

.gallery-open {
  position: relative;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  overflow: hidden;
  border-radius: 24px;
}

.product-gallery-v2 .mainimg {
  width: 100%;
  height: 650px;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(35,55,59,.08);
  transition: transform .35s;
}

.gallery-expand {
  position: absolute;
  left: 16px;
  top: 16px;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: #ffffffdd;
  display: grid;
  place-items: center;
  color: #53676c;
  box-shadow: 0 7px 22px #30413d14;
  font-size: 17px;
}

.gallery-note {
  font-size: 9px;
  color: #93a0a2;
  margin-top: 11px;
  padding-right: 4px;
}

.gallery-note span {
  font-size: 12px;
  margin-left: 5px;
}

.info-v2 {
  padding: 4px 0;
}

.info-v2 h1 {
  font-size: 36px;
  line-height: 1.5;
  letter-spacing: -.4px;
}

.rating-line {
  margin: 8px 0 14px;
}

.info-v2 .desc {
  font-size: 12px;
  max-height: 112px;
  overflow: auto;
}

.buytype-v2 {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 20px;
}

.buytype-v2 label {
  grid-column: 1/-1 !important;
  margin: 0 !important;
  font-weight: 800;
}

.buytype-v2 button {
  margin: 0 !important;
  min-height: 66px;
  text-align: right !important;
  padding: 12px 16px !important;
}

.buytype-v2 button b,.buytype-v2 button small {
  display: block;
}

.buytype-v2 button b {
  font-size: 12px;
}

.buytype-v2 button small {
  margin-top: 5px;
  color: #91a0a4;
  font-size: 9px;
}

.buytype-v2 button.sel small {
  color: #dbe9e4;
}

.selection-divider {
  border-top: 1px solid var(--line);
  margin: 20px 0 0;
}

.selection-box {
  margin-top: 17px;
}

.selection-box label,.series-qty-box label,.single-qty-box label {
  display: block;
  font-size: 11px;
  font-weight: 800;
  margin: 0;
}

.label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 9px;
}

.label-row label {
  margin: 0;
}

.selection-hint {
  display: block;
  color: #97a3a5;
  font-size: 9px;
  margin-top: 8px;
}

.size-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.info-v2 #sizes button {
  margin: 0;
  min-width: 58px;
}

.size-guide-btn {
  border: 0;
  background: transparent;
  color: var(--brand-dark);
  font-size: 9px;
  font-weight: 800;
  cursor: pointer;
  padding: 3px 0;
}

.series-qty-box,.single-qty-box {
  margin-top: 18px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fbfdfc;
}

.series-qty-box .label-row small,.single-qty-box .label-row small {
  font-size: 9px;
  color: #8b999c;
}

.qty-control {
  width: 142px;
  height: 44px;
}

.qty-control button {
  background: #f0f5f3;
}

.price-box-v2 {
  display: block;
  margin-top: 18px;
  padding: 17px;
  border-radius: 17px;
}

.price-summary-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.price-summary-head small {
  font-size: 9px;
  color: #7b8b8f;
}

.price-breakdown {
  display: grid;
  gap: 7px;
  margin-top: 13px;
  padding-top: 12px;
  border-top: 1px dashed #d8e4e1;
}

.price-line {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  font-size: 10px;
  color: #78878a;
}

.price-line strong {
  color: #506469;
}

.price-line.totalish {
  font-weight: 800;
  color: #53676c;
}

.final-price-row {
  display: flex;
  justify-content: space-between;
  align-items: end;
  border-top: 1px solid #dfeae7;
  margin-top: 12px;
  padding-top: 13px;
}

.final-price-row span {
  font-size: 10px;
  color: #7c898c;
}

.final-price-row strong {
  font-size: 25px;
  color: var(--brand-dark);
}

.size-guide-modal {
  position: fixed;
  inset: 0;
  background: #18252388;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.size-guide-modal.show {
  display: flex;
}

.size-guide-card {
  position: relative;
  background: #fffdfb;
  border: 1px solid #e1d8d1;
  border-radius: 22px;
  width: min(650px,100%);
  padding: 30px;
  box-shadow: 0 30px 80px #18252335;
}

.size-guide-close {
  position: absolute;
  left: 18px;
  top: 16px;
  border: 0;
  background: #f1ebe6;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 21px;
  cursor: pointer;
}

.size-guide-card .eyebrow {
  font-size: 8px;
  letter-spacing: 3px;
  color: var(--brand);
  font-weight: 800;
}

.size-guide-card h2 {
  margin: 6px 0;
  font-size: 25px;
}

.size-guide-card p {
  color: #718084;
  font-size: 11px;
  line-height: 2;
}

.size-guide-card table {
  width: 100%;
  border-collapse: collapse;
  margin: 15px 0;
}

.size-guide-card th,.size-guide-card td {
  padding: 10px;
  border-bottom: 1px solid #eee7e2;
  text-align: right;
  font-size: 10px;
}

.size-guide-card th {
  background: #f5f8f7;
  color: #617276;
}

.size-guide-card>small {
  color: #9a8e86;
  font-size: 9px;
  line-height: 1.9;
  display: block;
}

@media (max-width:800px) {
  .detail-v2 {
    padding: 18px 14px 55px;
  }
  .detail-grid-v2 {
    display: block;
  }
  .product-gallery-v2 .gallery {
    position: relative;
    top: auto;
  }
  .gallery-body {
    display: flex;
    flex-direction: column;
    gap: 9px;
  }
  .gallery-open {
    order: 1;
  }
  .gallery-thumbs {
    order: 2;
    flex-direction: row !important;
    overflow-x: auto;
    max-height: none;
    width: 100% !important;
  }
  .gallery-thumbs .gallery-thumb {
    width: 62px;
    height: 74px;
  }
  .product-gallery-v2 .mainimg {
    height: auto;
    aspect-ratio: 4/5;
    border-radius: 18px;
  }
  .gallery-note {
    display: none;
  }
  .info-v2 {
    margin-top: 28px;
  }
  .info-v2 h1 {
    font-size: 27px;
  }
  .buytype-v2 button {
    min-height: 62px;
  }
  .final-price-row strong {
    font-size: 21px;
  }
  .benefits-v2 {
    grid-template-columns: 1fr;
  }
  .benefits-v2 div {
    border-left: 0;
    border-bottom: 1px solid var(--line);
  }
  .benefits-v2 div:last-child {
    border-bottom: 0;
  }
  .product-extra-v2 {
    margin-top: 35px;
  }
  .size-guide-card {
    padding: 24px 17px;
  }
  .size-guide-card table {
    min-width: 500px;
  }
  .size-guide-card {
    overflow: auto;
  }
  .size-guide-card>div {
    overflow-x: auto;
  }
}

/* V38 final commerce polish */

.shipping-choice-panel {
  grid-column: 1/-1;
  border: 1px solid #dfe7e5;
  border-radius: 18px;
  background: #fff;
  padding: 18px;
  box-shadow: 0 8px 26px rgba(35,55,59,.035);
}

.shipping-choice-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.shipping-choice-head small {
  font-size: 8px;
  letter-spacing: 2px;
  color: #6d8b80;
  font-weight: 800;
}

.shipping-choice-head h3 {
  margin: 4px 0 0;
  font-size: 16px;
  color: #294044;
}

.shipping-choice-head>span {
  font-size: 8px;
  color: #718184;
  background: #f1f6f4;
  padding: 6px 9px;
  border-radius: 999px;
}

.shipping-choice-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 9px;
}

.shipping-choice {
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px;
  border: 1px solid #dce6e3;
  border-radius: 13px;
  background: #fbfdfc;
  cursor: pointer;
  transition: .2s;
}

.shipping-choice:hover {
  border-color: #9db8ae;
  transform: translateY(-1px);
}

.shipping-choice.selected {
  border-color: #6f9287;
  background: #eef6f2;
  box-shadow: 0 0 0 2px #6f92871a;
}

.shipping-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.shipping-choice-main {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.shipping-choice-main b {
  font-size: 10px;
  color: #304a48;
}

.shipping-choice-main small {
  font-size: 8px;
  color: #7d8c8d;
  margin-top: 3px;
}

.shipping-choice>strong {
  font-size: 9px;
  color: #4f8377;
  white-space: nowrap;
}

.shipping-choice-note {
  margin: 9px 0 0;
  font-size: 8px;
  color: #8a9697;
}

@media (max-width:700px) {
  .shipping-choice-grid {
    grid-template-columns: 1fr;
  }
  .shipping-choice-panel {
    padding: 14px;
  }
  .checkout {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }
  .checkout-title h1 {
    font-size: 25px;
  }
  .checkout-submit {
    position: sticky;
    bottom: 10px;
    z-index: 30;
    box-shadow: 0 14px 35px rgba(35,55,59,.16);
  }
  .post-invoice-payment {
    margin-bottom: 20px;
  }
  .summary-grand strong {
    font-size: 16px;
  }
}

/* Product purchase clarity */

.price-box-v2 {
  background: linear-gradient(145deg,#f4faf7,#fbf8f4);
  border: 1px solid #dce8e3;
}

.price-box-v2 .stock-pill {
  background: #e8f4ef;
  color: #4f8377;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 8px;
  font-weight: 800;
}

.add-cart-v2 {
  min-height: 54px;
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 12px 25px rgba(78,130,121,.18);
}

.add-cart-v2:disabled {
  box-shadow: none;
}

.benefits-v2 {
  margin-top: 13px;
}

.wa.full {
  display: block;
  text-align: center;
  margin-top: 8px;
  padding: 12px;
  border-radius: 12px;
}

.related-products .card {
  overflow: hidden;
}

/* V40 polish: top highlights + compact mobile drawer */

.story-highlights-top {
  padding-top: 18px;
  padding-bottom: 14px;
  background: #fbf8f4;
  position: relative;
  z-index: 1;
}

.story-highlights-top .section-heading {
  margin-bottom: 10px;
}

.story-highlight-row {
  display: grid;
  grid-template-columns: repeat(6,minmax(90px,1fr));
  gap: 14px;
  align-items: start;
}

.story-circle.story-image {
  border: 0;
  background: transparent;
  padding: 0;
  min-width: 0;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #40554e;
}

.story-circle.story-image img {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  box-shadow: 0 8px 22px rgba(53,70,65,.10);
  transition: transform .22s,box-shadow .22s;
}

.story-circle.story-image:hover img {
  transform: translateY(-3px) scale(1.025);
  box-shadow: 0 14px 28px rgba(53,70,65,.16);
}

.story-circle.story-image b {
  font-size: 10px;
  margin-top: 7px;
}

.story-circle.story-image small {
  font-size: 8px;
  color: #91a09a;
  margin-top: 2px;
}

.story-circle.story-image.is-empty img {
  opacity: .62;
  filter: grayscale(.25);
}

.drawer-benefit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.drawer-benefit-grid>div {
  padding: 10px;
  border: 1px solid #e5ece8;
  border-radius: 13px;
  background: #fbfdfc;
}

.drawer-benefit-grid b,.drawer-benefit-grid small {
  display: block;
}

.drawer-benefit-grid b {
  font-size: 9px;
  color: #40554e;
}

.drawer-benefit-grid small {
  font-size: 7px;
  line-height: 1.7;
  color: #8a9893;
  margin-top: 3px;
}

.drawer-age {
  margin-top: 12px;
  padding-top: 11px;
  border-top: 1px solid #edf1ef;
}

.drawer-age>b {
  display: block;
  font-size: 10px;
  color: #40554e;
  margin-bottom: 7px;
}

.drawer-age-grid {
  display: flex;
  gap: 5px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
}

.drawer-age-grid::-webkit-scrollbar {
  display: none;
}

.drawer-age-grid button {
  flex: 0 0 auto !important;
  width: auto !important;
  border: 1px solid #dfe8e4 !important;
  border-radius: 10px !important;
  background: #fff !important;
  padding: 8px 10px !important;
  font-size: 8px !important;
  white-space: nowrap;
  text-align: center !important;
}

@media (max-width:900px) {
  .story-highlights-top {
    padding: 14px 16px 10px;
  }
  .story-highlight-row {
    display: flex;
    overflow-x: auto;
    gap: 11px;
    scrollbar-width: none;
    padding: 2px 1px 6px;
  }
  .story-highlight-row::-webkit-scrollbar {
    display: none;
  }
  .story-circle.story-image {
    flex: 0 0 86px;
  }
  .story-circle.story-image img {
    width: 76px;
    height: 76px;
  }
  .story-circle.story-image b {
    font-size: 8px;
  }
  .story-circle.story-image small {
    font-size: 7px;
  }
  .drawer {
    width: min(340px,88vw);
  }
}

@media (max-width:600px) {
  .story-highlights-top .section-heading {
    align-items: flex-end;
  }
  .story-highlights-top .section-heading span {
    display: none;
  }
  .story-circle.story-image {
    flex-basis: 78px;
  }
  .story-circle.story-image img {
    width: 70px;
    height: 70px;
  }
}

/* V41 production polish: filters, accessibility, responsive performance */

.product-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
}

.product-toolbar select {
  min-height: 36px;
  border: 1px solid #dce7e3;
  background: #fffdfb;
  color: #516267;
  border-radius: 11px;
  padding: 0 10px;
  font: inherit;
  font-size: 9px;
  outline: none;
}

.product-toolbar select:focus-visible {
  border-color: #6f9287;
  box-shadow: 0 0 0 3px #6f92871f;
}

.card-media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4/5;
  object-fit: cover;
}

:focus-visible {
  outline: 3px solid #6f9287;
  outline-offset: 2px;
}

button,a,input,select,textarea {
  touch-action: manipulation;
}

@media (max-width:700px) {
  .product-toolbar {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .product-toolbar span {
    grid-column: 1/-1;
  }
  .product-toolbar select {
    width: 100%;
    min-height: 42px;
    font-size: 10px;
  }
  .story-highlights-top {
    overflow: hidden;
  }
  .story-highlight-row {
    scroll-snap-type: x proximity;
  }
  .story-circle.story-image {
    scroll-snap-align: start;
  }
}

@media (prefers-reduced-motion:reduce) {
  *,*::before,*::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.payment-whatsapp {
  color: inherit;
  text-decoration: none;
  background: #f4fbf7 !important;
  border-color: #cfe6da !important;
}

.payment-whatsapp:hover {
  border-color: #a9d3c0 !important;
  transform: translateY(-1px);
}

.payment-choice+.payment-choice {
  margin-top: 8px;
}

.payment-logo[src*="whatsapp"] {
  padding: 7px;
  background: #e6f5ed;
}

.payment-logo[src*="torob-pay"] {
  padding: 0;
}

.payment-logo[src*="digipay"] {
  padding: 0;
}

.payment-choice.payment-whatsapp>strong {
  color: #23855d;
}

/* V49 — account center and payment UX */

.account-page {
  background: #fbfaf8;
}

.account-header {
  height: 72px;
  background: rgba(255,253,251,.96);
  backdrop-filter: blur(12px);
  padding: 0 clamp(16px,5vw,70px);
  box-shadow: 0 1px 0 #e8eee9;
}

.account-store-link {
  color: #4e6961;
  text-decoration: none;
  font-size: 11px;
  font-weight: 800;
}

.account-header-action {
  font-size: 9px;
  color: #668077;
  background: #eef5f2;
  padding: 8px 12px;
  border-radius: 999px;
}

.account-shell {
  max-width: 1180px;
  margin: auto;
  padding: 28px 18px 90px;
}

.account-auth-hero,.account-profile-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 28px;
  border: 1px solid #dfe8e4;
  border-radius: 26px;
  background: linear-gradient(135deg,#f3faf7,#fffaf5);
  box-shadow: 0 12px 35px rgba(44,66,61,.045);
  margin-bottom: 16px;
}

.account-eyebrow {
  display: block;
  font-size: 8px;
  letter-spacing: 2px;
  color: #6f8c81;
  font-weight: 900;
}

.account-auth-hero h1,.account-profile-hero h1 {
  font-size: 30px;
  color: #304540;
  margin: 7px 0;
}

.account-auth-hero p,.account-profile-hero p {
  font-size: 10px;
  color: #7b8985;
  line-height: 1.9;
  margin: 0;
}

.auth-trust {
  min-width: 210px;
  padding: 14px;
  border: 1px solid #dfeae5;
  background: #fff;
  border-radius: 18px;
  display: grid;
  grid-template-columns: 34px 1fr;
  column-gap: 10px;
}

.auth-trust span {
  grid-row: span 2;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: #e9f5ef;
  color: #4f8a74;
  display: grid;
  place-items: center;
  font-weight: 900;
}

.auth-trust b {
  font-size: 10px;
  color: #4b6960;
}

.auth-trust small {
  font-size: 8px;
  color: #8b9894;
  line-height: 1.7;
}

.auth-choice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.auth-box {
  background: #fff;
  border: 1px solid #e0e8e5;
  border-radius: 23px;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(35,55,59,.035);
}

.auth-box-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: #edf5f1;
  color: #557d70;
  display: grid;
  place-items: center;
  font-size: 21px;
  margin-bottom: 14px;
}

.auth-box h2 {
  margin: 7px 0;
  font-size: 20px;
  color: #304540;
}

.auth-box>p {
  margin: 0 0 16px;
  font-size: 9px;
  color: #899490;
  line-height: 1.8;
}

.auth-box label,.profile-form-grid label,.address-form-grid label {
  display: block;
  font-size: 9px;
  font-weight: 800;
  color: #526b63;
  margin-bottom: 10px;
}

.auth-box input,.profile-form-grid input,.profile-form-grid textarea,.address-form-grid input,.address-form-grid textarea {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin-top: 6px;
  border: 1px solid #dce7e3;
  background: #fbfdfc;
  border-radius: 12px;
  padding: 12px 13px;
  outline: none;
  font: inherit;
  font-size: 11px;
  color: #304540;
}

.auth-box input:focus,.profile-form-grid input:focus,.profile-form-grid textarea:focus,.address-form-grid input:focus,.address-form-grid textarea:focus {
  border-color: #769b8d;
  box-shadow: 0 0 0 3px #769b8d18;
}

.auth-note {
  margin-top: 14px;
  padding: 14px 17px;
  border: 1px dashed #d8e4df;
  border-radius: 17px;
  background: #f8fbfa;
  display: flex;
  align-items: center;
  gap: 12px;
}

.auth-note>span {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: #eaf5f0;
  display: grid;
  place-items: center;
  color: #5d877a;
}

.auth-note div {
  flex: 1;
}

.auth-note b,.auth-note small {
  display: block;
}

.auth-note b {
  font-size: 10px;
  color: #4f6d64;
}

.auth-note small {
  font-size: 8px;
  color: #899691;
  line-height: 1.8;
  margin-top: 2px;
}

.auth-note em {
  font-style: normal;
  font-size: 8px;
  color: #9ca8a4;
}

.account-profile-hero {
  padding: 20px 24px;
}

.profile-avatar {
  width: 62px;
  height: 62px;
  border-radius: 20px;
  background: linear-gradient(145deg,#668d80,#304f48);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 24px;
  font-weight: 900;
  box-shadow: 0 12px 25px rgba(48,79,72,.18);
}

.profile-identity {
  flex: 1;
}

.profile-identity h1 {
  margin: 4px 0 2px;
  font-size: 20px;
}

.account-layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 16px;
  align-items: start;
}

.account-sidebar {
  position: sticky;
  top: 88px;
  background: #fff;
  border: 1px solid #e0e8e5;
  border-radius: 21px;
  padding: 8px;
  box-shadow: 0 10px 30px rgba(35,55,59,.035);
}

.account-nav {
  width: 100%;
  border: 0;
  background: transparent;
  color: #536761;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 11px;
  border-radius: 13px;
  font: inherit;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
  text-align: right;
  margin: 2px 0;
}

.account-nav span {
  width: 27px;
  height: 27px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  color: #68847a;
  background: #f2f7f5;
  font-size: 13px;
}

.account-nav em {
  margin-right: auto;
  font-style: normal;
  color: #91a09b;
  font-size: 8px;
}

.account-nav:hover,.account-nav.active {
  background: #eef6f2;
  color: #35564d;
}

.account-nav.active span {
  background: #dceee7;
  color: #47786a;
}

.account-nav.nav-logout {
  border-top: 1px solid #edf1ef;
  margin-top: 7px;
  padding-top: 14px;
  color: #9a5b55;
}

.account-main {
  min-width: 0;
}

.account-panel {
  background: #fff;
  border: 1px solid #e0e8e5;
  border-radius: 23px;
  padding: 22px;
  box-shadow: 0 10px 30px rgba(35,55,59,.035);
}

.panel-title {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.panel-title h2 {
  margin: 5px 0 3px;
  color: #304540;
  font-size: 20px;
}

.panel-title p {
  margin: 0;
  color: #8a9692;
  font-size: 9px;
  line-height: 1.8;
}

.compact-btn {
  padding: 10px 13px !important;
}

.order-summary-strip {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 9px;
  margin-bottom: 13px;
}

.order-summary-strip>div {
  padding: 12px;
  border: 1px solid #e2ebe7;
  border-radius: 15px;
  background: #f9fcfb;
}

.order-summary-strip small,.order-summary-strip b {
  display: block;
}

.order-summary-strip small {
  font-size: 8px;
  color: #8b9995;
}

.order-summary-strip b {
  font-size: 17px;
  color: #486c61;
  margin-top: 4px;
}

.order-tabs {
  display: flex;
  gap: 6px;
  overflow: auto;
  padding-bottom: 4px;
  margin-bottom: 10px;
  scrollbar-width: none;
}

.order-tabs::-webkit-scrollbar {
  display: none;
}

.order-tabs button {
  border: 1px solid #dfe8e4;
  background: #fff;
  color: #71817c;
  border-radius: 999px;
  padding: 8px 13px;
  font: inherit;
  font-size: 8px;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
}

.order-tabs button.active {
  background: #365a50;
  border-color: #365a50;
  color: #fff;
}

.account-orders-list {
  display: grid;
  gap: 10px;
}

.order-card {
  border: 1px solid #e0e9e5;
  border-radius: 17px;
  padding: 15px;
  background: #fff;
}

.order-card.paid {
  border-right: 3px solid #67a58d;
}

.order-card.pending {
  border-right: 3px solid #d7a15d;
}

.order-card.failed {
  border-right: 3px solid #cf8178;
}

.order-card-top,.order-card-meta,.order-card-bottom {
  display: flex;
  align-items: center;
  gap: 10px;
}

.order-card-top {
  justify-content: space-between;
}

.order-card-top small {
  display: block;
  color: #9aa6a2;
  font-size: 7px;
}

.order-card-top b {
  display: block;
  color: #405b54;
  font-size: 10px;
  margin-top: 3px;
}

.order-pay-badge {
  font-size: 8px;
  font-weight: 900;
  padding: 6px 9px;
  border-radius: 999px;
}

.order-pay-badge.paid {
  background: #e8f5ef;
  color: #4e866f;
}

.order-pay-badge.pending {
  background: #fff4e3;
  color: #a16f31;
}

.order-pay-badge.failed {
  background: #fff0ee;
  color: #aa5f58;
}

.order-card-meta {
  justify-content: space-between;
  margin-top: 11px;
  padding-top: 10px;
  border-top: 1px solid #edf1ef;
}

.order-card-meta span,.order-card-bottom>span {
  font-size: 8px;
  color: #899793;
}

.order-card-meta strong {
  font-size: 11px;
  color: #36554d;
}

.order-card-items {
  font-size: 8px;
  color: #71817c;
  line-height: 1.8;
  padding: 10px 0;
}

.order-card-bottom {
  justify-content: space-between;
  flex-wrap: wrap;
}

.order-status {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #526c64 !important;
  font-weight: 800;
}

.order-status i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #75a68f;
}

.order-card-actions {
  display: flex;
  gap: 5px;
}

.primary-mini {
  background: #3e675b !important;
  color: #fff !important;
  border-color: #3e675b !important;
}

.profile-form-grid,.address-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.wide-field {
  grid-column: 1/-1;
}

.profile-form-grid textarea,.address-form-grid textarea {
  min-height: 105px;
  resize: vertical;
}

.profile-form-grid .location-field-card,.address-form-grid .location-field-card {
  border: 1px solid #dce7e3;
  border-radius: 12px;
  padding: 10px;
  background: #fbfdfc;
}

.profile-form-grid .location-field-card input,.address-form-grid .location-field-card input {
  margin-top: 5px;
}

.profile-form-grid .location-field-card select,.address-form-grid .location-field-card select {
  width: 100%;
  border: 1px solid #e1eae6;
  border-radius: 9px;
  padding: 9px;
  background: #fff;
  font: inherit;
  font-size: 10px;
  margin-top: 5px;
}

.address-form {
  padding: 15px;
  background: #f8fbfa;
  border: 1px dashed #d6e3de;
  border-radius: 17px;
  margin-bottom: 14px;
}

.address-form-actions {
  display: flex;
  gap: 7px;
  align-items: center;
}

.addresses-list {
  display: grid;
  gap: 10px;
}

.address-card {
  padding: 16px;
  border: 1px solid #e0e8e5;
  border-radius: 17px;
  background: #fff;
}

.address-card.default {
  border-color: #9fc5b7;
  box-shadow: 0 0 0 2px #9fc5b71a;
}

.address-card-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.address-card-head>div:first-child {
  display: flex;
  align-items: center;
  gap: 7px;
}

.address-card-head b {
  font-size: 11px;
  color: #405b54;
}

.address-card-head span {
  font-size: 7px;
  background: #e7f4ee;
  color: #4e856f;
  border-radius: 999px;
  padding: 5px 7px;
}

.address-card p {
  font-size: 9px;
  color: #71807c;
  line-height: 1.9;
  margin: 8px 0 0;
}

.address-card>small {
  display: block;
  font-size: 8px;
  color: #9aa6a2;
  margin-top: 5px;
}

.text-btn {
  border: 0;
  background: none;
  color: #557f72;
  font: inherit;
  font-size: 8px;
  padding: 9px 0 0;
  cursor: pointer;
}

.favorite-count {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px;
  border: 1px solid #e1e9e5;
  border-radius: 16px;
  background: #f9fcfb;
  margin-bottom: 10px;
}

.favorite-count b {
  font-size: 24px;
  color: #466d62;
}

.favorite-count span {
  font-size: 9px;
  color: #7d8c88;
}

.reviews-account-list {
  display: grid;
  gap: 10px;
}

.review-account-card {
  border: 1px solid #e1e9e5;
  border-radius: 16px;
  padding: 15px;
}

.review-account-card>div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.review-account-card b {
  font-size: 10px;
  color: #405b54;
}

.review-account-card span {
  color: #c18a4d;
  letter-spacing: 1px;
}

.review-account-card p {
  font-size: 9px;
  color: #687873;
  line-height: 1.9;
  margin: 9px 0;
}

.review-account-card small {
  font-size: 8px;
  color: #95a19d;
}

.empty-state,.loading-state {
  padding: 30px 18px;
  text-align: center;
  border: 1px dashed #dbe6e1;
  border-radius: 16px;
  color: #84928d;
}

.empty-state b,.empty-state small {
  display: block;
}

.empty-state b {
  font-size: 10px;
  color: #5d716b;
}

.empty-state small {
  font-size: 8px;
  line-height: 1.8;
  margin-top: 5px;
}

.error-state {
  border-color: #ead4d0;
}

.error-state b {
  color: #a75f58;
}

.empty-state .mini-btn {
  margin-top: 10px;
}

.account-modal {
  position: fixed;
  inset: 0;
  background: #1e2f2b88;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.account-modal-card {
  position: relative;
  width: min(620px,100%);
  max-height: 88vh;
  overflow: auto;
  background: #fffdfb;
  border-radius: 22px;
  padding: 24px;
  box-shadow: 0 30px 80px #18252335;
}

.modal-close {
  position: absolute;
  left: 15px;
  top: 15px;
  border: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #f0f5f2;
  color: #536a63;
  font-size: 22px;
  cursor: pointer;
}

.detail-status-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
  border-radius: 13px;
  background: #f6faf8;
  margin: 13px 0;
}

.detail-status-row span,.detail-status-row b {
  font-size: 9px;
}

.detail-lines {
  border-top: 1px solid #e9efec;
}

.detail-line {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 8px;
  padding: 11px 0;
  border-bottom: 1px solid #edf1ef;
  font-size: 9px;
}

.detail-line b {
  text-align: left;
}

.detail-total {
  display: flex;
  justify-content: space-between;
  padding: 15px 0;
  font-size: 10px;
}

.detail-total strong {
  font-size: 16px;
  color: #3e665a;
}

.mobile-account-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 64px;
  background: rgba(255,255,255,.97);
  border-top: 1px solid #e3eae7;
  z-index: 500;
  display: grid;
  grid-template-columns: repeat(4,1fr);
  box-shadow: 0 -8px 30px rgba(35,55,59,.07);
}

.mobile-account-nav a,.mobile-account-nav button {
  border: 0;
  background: none;
  text-decoration: none;
  color: #87938f;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font: inherit;
  font-size: 8px;
}

.mobile-account-nav span {
  font-size: 17px;
}

.mobile-account-nav .active {
  color: #365b51;
  background: #f3f7f5;
}

.danger-mini {
  color: #a75f58 !important;
  border-color: #efd9d5 !important;
}

@media (max-width:900px) {
  .account-shell {
    padding: 18px 12px 88px;
  }
  .account-auth-hero,.account-profile-hero {
    padding: 20px;
    align-items: flex-start;
  }
  .auth-trust {
    display: none;
  }
  .account-auth-hero h1 {
    font-size: 24px;
  }
  .auth-choice-grid {
    grid-template-columns: 1fr;
  }
  .account-layout {
    grid-template-columns: 1fr;
  }
  .account-sidebar {
    position: static;
    display: flex;
    overflow: auto;
    padding: 5px;
    gap: 4px;
    scrollbar-width: none;
  }
  .account-sidebar::-webkit-scrollbar {
    display: none;
  }
  .account-nav {
    flex: 0 0 auto;
    width: auto;
    white-space: nowrap;
    padding: 9px 10px;
  }
  .account-nav span {
    display: none;
  }
  .account-nav.nav-logout {
    border-top: 0;
    margin-top: 2px;
    padding-top: 9px;
  }
  .profile-avatar {
    width: 52px;
    height: 52px;
  }
  .account-profile-hero h1 {
    font-size: 18px;
  }
  .account-panel {
    padding: 16px;
  }
  .order-summary-strip b {
    font-size: 15px;
  }
}

@media (max-width:600px) {
  .account-header {
    height: 64px;
  }
  .account-header .logo-img {
    width: 82px;
  }
  .account-shell {
    padding-top: 12px;
  }
  .account-auth-hero {
    display: block;
    padding: 18px;
  }
  .account-auth-hero p {
    font-size: 9px;
  }
  .auth-box {
    padding: 18px;
  }
  .auth-box h2 {
    font-size: 18px;
  }
  .account-profile-hero {
    padding: 15px;
  }
  .profile-avatar {
    width: 46px;
    height: 46px;
    border-radius: 15px;
    font-size: 19px;
  }
  .profile-form-grid,.address-form-grid {
    grid-template-columns: 1fr;
  }
  .wide-field {
    grid-column: auto;
  }
  .panel-title {
    align-items: center;
  }
  .panel-title h2 {
    font-size: 18px;
  }
  .panel-title p {
    font-size: 8px;
  }
  .order-summary-strip {
    gap: 6px;
  }
  .order-summary-strip>div {
    padding: 9px;
  }
  .order-summary-strip small {
    font-size: 7px;
  }
  .order-summary-strip b {
    font-size: 13px;
  }
  .order-card {
    padding: 13px;
  }
  .order-card-meta {
    align-items: flex-end;
  }
  .order-card-bottom {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
  }
  .order-card-bottom>span {
    grid-column: 1/-1;
  }
  .order-card-actions {
    grid-column: 1/-1;
  }
  .account-nav {
    font-size: 8px;
  }
  .address-card-head {
    align-items: flex-start;
  }
  .address-card-head>div:last-child {
    display: flex;
  }
  .detail-line {
    grid-template-columns: 1fr 1fr;
  }
  .detail-line b {
    grid-column: 1/-1;
    text-align: right;
  }
}

/* V49 payment method hierarchy */

.payment-panel-inner {
  padding: 20px !important;
}

.payment-method-section {
  margin-top: 14px;
}

.payment-method-label {
  font-size: 9px;
  color: #83908c;
  font-weight: 800;
  margin: 0 0 8px;
}

.payment-active-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.payment-future-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 8px;
  margin-top: 8px;
}

.payment-choice {
  margin: 0 !important;
  min-height: 72px;
  box-sizing: border-box;
  transition: .18s ease;
}

.payment-choice.payment-active {
  background: #fbfdfc;
}

.payment-choice.payment-active.selected {
  border-color: #6f9287 !important;
  background: #eef7f3 !important;
  box-shadow: 0 0 0 2px #6f92871a;
}

.payment-choice .payment-logo {
  flex: 0 0 auto;
}

.payment-choice span {
  min-width: 0;
}

.payment-choice span b {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.payment-choice span small {
  display: block;
  margin-top: 3px;
}

.payment-choice.payment-disabled {
  opacity: .82;
}

.payment-whatsapp {
  display: flex !important;
}

.payment-secondary-action {
  margin-top: 9px;
}

.payment-method-hint {
  margin: 10px 0 0;
  padding: 9px 11px;
  border-radius: 11px;
  background: #f7faf9;
  color: #87948f;
  font-size: 8px;
}

.post-payment-btn {
  margin-top: 11px !important;
  min-height: 48px;
}

.payment-status-pill {
  font-size: 7px !important;
}

.payment-active-grid .payment-choice>strong {
  background: #e7f3ee;
  color: #4d806e;
  padding: 5px 7px;
  border-radius: 999px;
}

.payment-future-grid .payment-choice {
  min-height: 68px;
}

.payment-future-grid .payment-choice>strong {
  font-size: 7px !important;
  color: #9b8b7b !important;
}

@media (max-width:700px) {
  .payment-active-grid {
    grid-template-columns: 1fr;
  }
  .payment-future-grid {
    grid-template-columns: 1fr;
  }
  .payment-choice {
    min-height: 66px;
  }
  .payment-choice .payment-logo {
    width: 40px;
    height: 40px;
  }
  .payment-panel-inner {
    padding: 15px !important;
  }
}

.order-payment-pending {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 9px;
  border-radius: 999px;
  background: #fff4e4;
  color: #9d7137;
  font-size: 8px;
  font-weight: 800;
}

.order-payment-pending:before {
  content: '•';
  font-size: 14px;
  line-height: 0;
}

.order-filter {
  flex-wrap: wrap;
}

.order-filter select {
  min-width: 145px;
}

/* ===== ADMIN V50 PROFESSIONAL LAYER ===== */

.admin-body {
  background: #f4f5f7;
  color: #1d1f23;
}

.admin-shell {
  min-height: 100vh;
  grid-template-columns: 260px minmax(0,1fr);
  background: #f4f5f7;
}

.admin-side {
  background: #15171b;
  color: #fff;
  border-left: 1px solid #262a31;
  padding: 22px 16px;
  box-shadow: -10px 0 35px rgba(0,0,0,.08);
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 20;
}

.admin-side-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 8px 24px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  margin-bottom: 20px;
}

.admin-side-brand .admin-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 14px;
  background: #fff;
}

.admin-side-brand div {
  display: grid;
  gap: 4px;
}

.admin-side-brand b {
  font-size: 13px;
  letter-spacing: .08em;
}

.admin-side-brand small {
  font-size: 9px;
  color: #9ea4af;
  letter-spacing: .18em;
}

.admin-side-group {
  display: grid;
  gap: 7px;
  margin-bottom: 24px;
}

.admin-side-group>span {
  font-size: 10px;
  color: #777f8d;
  padding: 0 10px 5px;
}

.admin-nav {
  border: 0;
  background: transparent;
  color: #aeb4bf;
  text-align: right;
  padding: 12px 12px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  font: inherit;
  cursor: pointer;
  text-decoration: none;
  transition: .18s;
}

.admin-nav i {
  font-style: normal;
}

.admin-nav:hover {
  background: #20242b;
  color: #fff;
}

.admin-nav.active {
  background: linear-gradient(135deg,#fff,#e9ebef);
  color: #15171b;
  box-shadow: 0 7px 18px rgba(0,0,0,.15);
}

.admin-nav.logout {
  color: #ff9c9c;
}

.admin-main {
  min-width: 0;
  padding: 0 32px 50px;
}

.hero-title {
  padding-top: 34px;
}

.admin-title {
  gap: 20px;
}

.admin-title h1 {
  font-size: 30px;
  letter-spacing: -.03em;
}

.admin-title p {
  color: #777f8d;
}

.admin-title-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.admin-card {
  border: 1px solid #e5e7eb;
  box-shadow: 0 8px 28px rgba(18,25,38,.045);
  border-radius: 20px;
  background: #fff;
}

.stats-grid {
  gap: 14px;
}

.stat {
  border: 1px solid #eceef2;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 5px 18px rgba(18,25,38,.04);
  min-height: 100px;
  padding: 17px;
}

.stat small {
  color: #7c8491;
  font-size: 11px;
}

.stat b {
  font-size: 22px;
  margin-top: 8px;
}

.admin-dashboard-grid {
  gap: 18px;
}

.card-head {
  align-items: center;
}

.card-head small,.admin-section-title small {
  color: #9aa1ad;
  font-size: 10px;
  letter-spacing: .14em;
}

.card-head h2,.admin-section-title h2 {
  margin: 4px 0 0;
  font-size: 18px;
}

.mini-btn {
  border-radius: 10px;
}

.admin-filter {
  gap: 10px;
}

.admin-filter input,.admin-filter select,.editor-grid input,.editor-grid select,.editor-grid textarea,.product-editor input,.product-editor select,.product-editor textarea,.settings-card input,.settings-card select,.settings-card textarea,.story-editor input {
  border: 1px solid #e1e4e9;
  background: #fafbfc;
  border-radius: 12px;
  min-height: 44px;
  padding: 10px 12px;
  outline: none;
  transition: .15s;
}

.admin-filter input:focus,.admin-filter select:focus,.editor-grid input:focus,.product-editor input:focus,.settings-card input:focus,.story-editor input:focus {
  border-color: #a9afb8;
  box-shadow: 0 0 0 3px rgba(25,28,33,.06);
}

.editor-grid textarea,.product-editor textarea,.settings-card textarea {
  min-height: 110px;
}

.product-editor {
  overflow: hidden;
}

.editor-status {
  font-size: 11px;
  color: #4d6b53;
  background: #eef8f0;
  padding: 8px 12px;
  border-radius: 999px;
}

.editor-toggles {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.checkline {
  display: flex;
  align-items: center;
  gap: 8px;
}

.checkline input {
  min-height: auto;
}

.current-images img {
  width: 76px;
  height: 76px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid #eee;
}

.admin-table-wrap table {
  min-width: 920px;
}

.admin-table-wrap th {
  font-size: 11px;
  color: #7b838e;
  background: #fafafa;
}

.admin-table-wrap td {
  font-size: 12px;
}

.admin-product img {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: cover;
}

.admin-product small,.customer-cell+small {
  color: #8a929e;
}

.order-mini {
  border-bottom: 1px solid #f0f1f3;
  padding: 12px 0;
  gap: 12px;
}

.order-mini:last-child {
  border-bottom: 0;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  padding: 5px 9px;
  border-radius: 999px;
  background: #f1f3f5;
  color: #4d5560;
  font-size: 10px;
}

.order-summary-strip,.customer-kpis {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.order-summary-strip>div,.customer-kpis>div {
  padding: 13px 14px;
  border: 1px solid #eceef1;
  border-radius: 14px;
  background: #fafbfc;
}

.order-summary-strip small,.customer-kpis small {
  display: block;
  color: #7d8590;
  font-size: 10px;
}

.order-summary-strip b,.customer-kpis b {
  display: block;
  margin-top: 5px;
  font-size: 16px;
}

.order-payment-pending {
  padding: 6px 9px;
  border-radius: 9px;
  background: #fff7e7;
  color: #9a6700;
  font-size: 11px;
}

.order-payment-pending.is-failed {
  background: #fff0f0;
  color: #b23b3b;
}

.customer-cell {
  display: flex;
  align-items: center;
  gap: 9px;
}

.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #20242b;
  color: #fff;
  font-weight: 700;
}

.collection-tiles {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 12px;
}

.collection-toggle {
  border: 1px solid #e8e9ec;
  background: #fafbfc;
  border-radius: 16px;
  padding: 18px;
  text-align: right;
  cursor: pointer;
  display: grid;
  gap: 4px;
  transition: .18s;
}

.collection-toggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0,0,0,.06);
  background: #fff;
}

.collection-toggle span {
  font-size: 22px;
}

.collection-toggle b {
  font-size: 14px;
}

.collection-toggle small {
  color: #858d99;
}

.collection-panel {
  margin-top: 12px;
  padding: 12px;
  border: 1px dashed #dfe2e7;
  border-radius: 15px;
}

.collection-items {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 8px;
}

.collection-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid #eee;
  border-radius: 12px;
}

.collection-item img {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  object-fit: cover;
}

.collection-item>div {
  flex: 1;
  min-width: 0;
}

.collection-item b,.collection-item small {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.collection-item small {
  color: #8a919d;
  margin-top: 4px;
}

.story-editor {
  display: grid;
  gap: 10px;
  padding: 14px;
  background: #fafbfc;
  border: 1px solid #eceef1;
  border-radius: 15px;
  margin-bottom: 14px;
}

.story-upload {
  display: grid;
  gap: 7px;
}

.story-upload img {
  width: 92px;
  height: 92px;
  object-fit: cover;
  border-radius: 14px;
}

.stories-admin-list {
  display: grid;
  gap: 8px;
}

.story-admin-row {
  display: grid;
  grid-template-columns: 58px minmax(0,1fr) auto auto auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid #eceef1;
  border-radius: 14px;
}

.story-admin-row img {
  width: 58px;
  height: 58px;
  border-radius: 12px;
  object-fit: cover;
}

.story-admin-row div {
  min-width: 0;
}

.story-admin-row b,.story-admin-row small {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.story-admin-row small {
  color: #858d99;
  margin-top: 4px;
}

.story-order {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #f0f2f4;
  font-size: 11px;
}

.admin-contact-box {
  display: grid;
  gap: 8px;
}

.admin-note {
  background: #f8f9fa;
  border: 1px solid #eceef1;
  border-radius: 13px;
  padding: 12px;
  color: #66707d;
  font-size: 12px;
  line-height: 1.9;
}

.backup-card {
  padding: 34px;
}

.backup-icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: #20242b;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 26px;
}

.backup-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.file-btn {
  display: inline-flex;
  align-items: center;
  padding: 11px 16px;
  border: 1px dashed #cfd3d9;
  border-radius: 12px;
  cursor: pointer;
}

.admin-login {
  background: radial-gradient(circle at 20% 20%,#353a43,#111318 60%);
  min-height: 100vh;
}

.admin-login-card {
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 30px 80px rgba(0,0,0,.35);
  border-radius: 24px;
}

.admin-login-brand img {
  border-radius: 18px;
}

.danger-outline {
  color: #b23b3b !important;
}

.settings-status {
  display: block;
  margin-top: 8px;
}

@media (max-width:900px) {
  .admin-shell {
    display: block;
  }
  .admin-side {
    display: none;
  }
  .admin-main {
    padding: 0 14px 34px;
  }
  .admin-mobile-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 2px;
    position: sticky;
    top: 0;
    background: rgba(244,245,247,.94);
    backdrop-filter: blur(12px);
    z-index: 15;
  }
  .admin-mobile-head div {
    display: grid;
    gap: 3px;
  }
  .admin-mobile-head small {
    font-size: 10px;
    color: #7e8692;
  }
  .admin-mobile-head button {
    border: 0;
    background: #fff;
    border-radius: 10px;
    padding: 9px 13px;
  }
  .admin-mobile-nav {
    display: flex;
    gap: 6px;
    overflow: auto;
    padding: 5px 0 12px;
    position: sticky;
    top: 60px;
    background: rgba(244,245,247,.94);
    backdrop-filter: blur(12px);
    z-index: 14;
  }
  .admin-mobile-tab {
    border: 1px solid #e1e4e8;
    background: #fff;
    border-radius: 10px;
    padding: 9px 12px;
    white-space: nowrap;
  }
  .admin-mobile-tab.active {
    background: #1d2025;
    color: #fff;
  }
  .hero-title {
    padding-top: 18px;
  }
  .admin-title {
    display: block;
  }
  .admin-title-actions {
    margin-top: 12px;
    flex-wrap: wrap;
  }
  .admin-dashboard-grid {
    grid-template-columns: 1fr;
  }
  .stats-grid {
    grid-template-columns: repeat(2,1fr);
  }
  .order-summary-strip,.customer-kpis {
    grid-template-columns: repeat(2,1fr);
  }
  .collection-tiles {
    grid-template-columns: 1fr;
  }
  .collection-items {
    grid-template-columns: 1fr;
  }
  .story-admin-row {
    grid-template-columns: 50px minmax(0,1fr) auto;
  }
  .story-admin-row .story-order {
    display: none;
  }
  .story-admin-row .mini-btn {
    grid-column: auto;
  }
  .admin-card {
    border-radius: 16px;
  }
  .admin-table-wrap table {
    min-width: 820px;
  }
}

@media (max-width:520px) {
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }
  .stat b {
    font-size: 18px;
  }
  .admin-title h1 {
    font-size: 25px;
  }
  .order-summary-strip,.customer-kpis {
    grid-template-columns: 1fr 1fr;
  }
  .backup-actions>* {
    width: 100%;
    justify-content: center;
  }
  .story-admin-row {
    grid-template-columns: 46px minmax(0,1fr);
  }
  .story-admin-row .mini-btn {
    padding: 7px 8px;
  }
  .story-admin-row .mini-btn.danger {
    grid-column: 2;
  }
  .story-admin-row img {
    width: 46px;
    height: 46px;
  }
}

/* V51 compact seven-method payment selector */

.payment-logo-grid {
  display: grid;
  grid-template-columns: repeat(7,minmax(0,1fr));
  gap: 8px;
  margin-top: 10px;
}

.payment-tile {
  position: relative;
  min-width: 0;
  min-height: 94px;
  padding: 10px 6px 8px;
  border: 1px solid #dce6e2;
  border-radius: 14px;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  text-align: center;
  cursor: pointer;
  transition: .18s ease;
}

.payment-tile input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.payment-tile img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: 10px;
}

.payment-tile span {
  font-size: 9px;
  font-weight: 800;
  color: #344c4b;
  white-space: nowrap;
}

.payment-tile em {
  font-style: normal;
  font-size: 7px;
  color: #7d8d8b;
  white-space: nowrap;
}

.payment-tile-active.selected {
  border-color: #5f8b7f;
  background: #eef7f3;
  box-shadow: 0 0 0 2px #6f92871a;
}

.payment-tile-active:hover {
  transform: translateY(-1px);
  border-color: #86aa9e;
}

.payment-tile-disabled {
  opacity: .62;
  cursor: not-allowed;
  background: #fafafa;
}

.payment-tile-disabled em {
  color: #9c8e7f;
}

.payment-tile-whatsapp {
  color: inherit;
  text-decoration: none;
}

.payment-tile-whatsapp:hover {
  transform: translateY(-1px);
  border-color: #9bcbb5;
  background: #f4fbf7;
}

.payment-tile-whatsapp em {
  color: #23855d;
}

.payment-tile img[src*="parsian"] {
  padding: 2px;
}

.payment-tile img[src*="whatsapp"] {
  padding: 7px;
  background: #e6f5ed;
}

.payment-tile img[src*="snapp-pay"] {
  padding: 4px;
}

.payment-tile img[src*="torob-pay"],.payment-tile img[src*="digipay"] {
  padding: 2px;
}

.payment-logo-grid+.payment-method-hint {
  margin-top: 10px;
}

@media (max-width:900px) {
  .payment-logo-grid {
    grid-template-columns: repeat(4,minmax(0,1fr));
  }
}

@media (max-width:560px) {
  .payment-logo-grid {
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 6px;
  }
  .payment-tile {
    min-height: 84px;
    padding: 8px 4px;
  }
  .payment-tile img {
    width: 36px;
    height: 36px;
  }
  .payment-tile span {
    font-size: 8px;
  }
  .payment-tile em {
    font-size: 6.5px;
  }
}

/* V52 storefront cleanup: minimal hero + story-revealed collections */

.hero-v2.hero-minimal {
  min-height: 360px;
  grid-template-columns: 1fr;
  margin-top: 24px;
  padding: 58px 8%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-minimal .hero-copy {
  width: 100%;
}

.hero-minimal .hero-copy h1 {
  font-size: clamp(42px,6vw,66px);
  margin: 10px 0 0;
}

.hero-minimal .hero-copy .eyebrow {
  font-size: 10px;
  letter-spacing: 4px;
}

.hero-minimal:before {
  width: 330px;
  height: 330px;
  left: -120px;
  bottom: -190px;
}

.about-page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 45px 6% 75px;
}

.about-hero {
  display: grid;
  grid-template-columns: 1.35fr .65fr;
  gap: 28px;
  align-items: center;
  padding: 38px;
  border: 1px solid #dfe9e5;
  border-radius: 28px;
  background: linear-gradient(135deg,#f5faf8,#fffaf5);
  box-shadow: 0 16px 40px rgba(53,70,65,.06);
}

.about-hero small,.about-story>div>small,.about-cta small {
  font-size: 9px;
  letter-spacing: 1.7px;
  color: #718b82;
  font-weight: 900;
}

.about-hero h1 {
  font-size: 40px;
  color: #304540;
  margin: 10px 0 13px;
}

.about-hero p {
  max-width: 670px;
  color: #71807b;
  line-height: 2.05;
  font-size: 12px;
  margin: 0;
}

.about-hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.about-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #c8dad4;
  background: #fff;
  color: #54766b;
  border-radius: 11px;
  padding: 12px 20px;
  text-decoration: none;
  font-size: 11px;
  font-weight: 800;
}

.about-mark {
  min-height: 240px;
  border-radius: 24px;
  background: #fff;
  border: 1px solid #e0e9e5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 14px 32px rgba(53,70,65,.05);
}

.about-mark img {
  width: 155px;
  height: 100px;
  object-fit: contain;
}

.about-mark span {
  font-size: 10px;
  color: #83918c;
  margin-top: 10px;
}

.about-values {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 13px;
  margin-top: 16px;
}

.about-value {
  display: flex;
  gap: 13px;
  padding: 22px;
  border: 1px solid #e0e9e5;
  border-radius: 20px;
  background: #fff;
}

.about-value>span {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: #edf6f2;
  color: #5d8276;
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 900;
  flex: none;
}

.about-value h2 {
  font-size: 15px;
  color: #344943;
  margin: 1px 0 7px;
}

.about-value p {
  font-size: 9px;
  line-height: 2;
  color: #7b8883;
  margin: 0;
}

.about-story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 16px;
  padding: 30px;
  border-radius: 22px;
  background: #f7faf9;
  border: 1px solid #e0e9e5;
}

.about-story h2 {
  font-size: 24px;
  color: #344943;
  margin: 8px 0 12px;
}

.about-story p {
  font-size: 10px;
  line-height: 2.15;
  color: #71807b;
  margin: 0 0 10px;
}

.about-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.about-facts div {
  padding: 18px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid #e0e9e5;
}

.about-facts b,.about-facts small {
  display: block;
}

.about-facts b {
  font-size: 14px;
  color: #4f7469;
}

.about-facts small {
  font-size: 8px;
  color: #8a9691;
  margin-top: 5px;
  line-height: 1.8;
}

.about-cta {
  margin-top: 16px;
  padding: 24px 28px;
  border-radius: 20px;
  background: linear-gradient(100deg,#304740,#557b70);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.about-cta h2 {
  font-size: 20px;
  margin: 7px 0;
}

.about-cta p {
  font-size: 9px;
  color: #dce9e5;
  margin: 0;
}

.about-cta .btn {
  background: #fff;
  color: #45695e;
  white-space: nowrap;
}

.story-highlights-top {
  padding-top: 30px !important;
}

.story-highlights-top .section-heading {
  margin-bottom: 16px;
}

.story-highlight-row {
  scroll-snap-type: x proximity;
}

.story-circle {
  scroll-snap-align: start;
}

.dynamic-product-section[hidden],#newCollectionSection[hidden] {
  display: none !important;
}

/* V52 admin mobile: full navigation, touch-friendly forms and readable tables */

.admin-mobile-nav {
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}

.admin-mobile-nav::-webkit-scrollbar {
  display: none;
}

.admin-mobile-tab {
  flex: 0 0 auto;
  min-height: 42px;
  font-weight: 800;
  cursor: pointer;
}

.admin-mobile-head {
  gap: 10px;
}

.admin-mobile-head button {
  font-weight: 800;
  min-height: 42px;
}

.admin-tab {
  min-width: 0;
}

.admin-card {
  min-width: 0;
  overflow: hidden;
}

.admin-table-wrap {
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}

.admin-table-wrap table {
  border-collapse: separate;
  border-spacing: 0;
}

.admin-table-wrap th,.admin-table-wrap td {
  white-space: nowrap;
}

.editor-actions {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
}

.editor-actions .btn,.editor-actions .admin-outline-btn {
  min-height: 44px;
}

.admin-title-actions .btn,.admin-title-actions .admin-outline-btn {
  min-height: 44px;
}

.admin-filter input,.admin-filter select,.editor-grid input,.editor-grid select,.editor-grid textarea,.settings-card input,.settings-card select,.settings-card textarea,.story-editor input {
  font-size: 12px;
}

.backup-actions .btn,.backup-actions .file-btn {
  min-height: 44px;
}

@media (max-width:900px) {
  .hero-v2.hero-minimal {
    min-height: 300px;
    margin: 14px 12px 0;
    padding: 48px 22px;
  }
  .hero-minimal .hero-copy h1 {
    font-size: 42px;
  }
  .about-page {
    padding: 28px 14px 55px;
  }
  .about-hero {
    grid-template-columns: 1fr;
    padding: 25px 20px;
    text-align: center;
  }
  .about-hero h1 {
    font-size: 28px;
  }
  .about-hero p {
    font-size: 10px;
  }
  .about-hero-actions {
    justify-content: center;
  }
  .about-mark {
    min-height: 170px;
  }
  .about-mark img {
    width: 130px;
    height: 82px;
  }
  .about-values,.about-story {
    grid-template-columns: 1fr;
  }
  .about-story {
    padding: 22px;
  }
  .about-story h2 {
    font-size: 20px;
  }
  .about-cta {
    display: block;
    padding: 22px;
  }
  .about-cta .btn {
    display: inline-flex;
    margin-top: 15px;
  }
  .admin-main {
    padding: 0 10px 34px;
  }
  .admin-mobile-head {
    padding: 12px 2px;
  }
  .admin-mobile-nav {
    top: 58px;
    padding: 5px 0 10px;
    margin: 0 -2px;
  }
  .admin-title {
    padding-top: 10px;
  }
  .admin-title h1 {
    font-size: 23px;
  }
  .admin-title p {
    font-size: 10px;
    line-height: 1.8;
  }
  .admin-title-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    gap: 8px;
  }
  .admin-title-actions>* {
    width: 100%;
  }
  .admin-card {
    padding: 15px;
    border-radius: 15px;
  }
  .card-head {
    align-items: flex-start;
  }
  .card-head h2 {
    font-size: 15px;
  }
  .stats-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 8px;
  }
  .stat {
    min-width: 0;
    padding: 13px;
    min-height: 92px;
  }
  .stat b {
    font-size: 18px;
  }
  .admin-dashboard-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .editor-grid {
    grid-template-columns: 1fr !important;
  }
  .product-filter {
    grid-template-columns: 1fr;
  }
  .bulk-box {
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
  }
  .bulk-box b {
    grid-column: 1/-1;
  }
  .bulk-box button {
    grid-column: 1/-1;
  }
  .discount-inline {
    grid-template-columns: 1fr;
  }
  .editor-toggles {
    display: grid;
    gap: 10px;
  }
  .collection-tiles {
    grid-template-columns: 1fr 1fr;
  }
  .collection-toggle {
    min-height: 108px;
    padding: 14px;
  }
  .collection-items {
    grid-template-columns: 1fr;
  }
  .order-filter {
    grid-template-columns: 1fr !important;
  }
  .order-summary-strip,.customer-kpis {
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 8px;
  }
  .order-summary-strip>div,.customer-kpis>div {
    min-width: 0;
    padding: 11px;
  }
  .story-admin-row {
    grid-template-columns: 52px minmax(0,1fr);
    gap: 8px;
  }
  .story-admin-row .story-order {
    display: none;
  }
  .story-admin-row .mini-btn {
    min-height: 38px;
  }
  .story-admin-row .mini-btn.danger {
    grid-column: 2;
  }
  .story-editor {
    padding: 12px;
  }
  .backup-card {
    padding: 24px 16px;
  }
  .backup-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
  .backup-actions>* {
    width: 100%;
    justify-content: center;
  }
  .settings-card h2 {
    font-size: 16px;
  }
  .sms-grid {
    grid-template-columns: 1fr;
  }
  .admin-contact-box {
    font-size: 11px;
  }
  .admin-login-shell {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .admin-login-brand {
    min-height: 180px;
    padding: 24px;
  }
  .admin-login-brand img {
    width: 145px;
    height: 80px;
  }
  .admin-login-card {
    padding: 25px;
  }
  .admin-login-card h1 {
    font-size: 24px;
  }
}

@media (max-width:520px) {
  .hero-v2.hero-minimal {
    min-height: 250px;
  }
  .hero-minimal .hero-copy h1 {
    font-size: 36px;
    line-height: 1.35;
  }
  .story-highlight-row {
    grid-template-columns: repeat(6,82px) !important;
  }
  .about-values {
    gap: 9px;
  }
  .about-value {
    padding: 17px;
  }
  .about-facts {
    grid-template-columns: 1fr 1fr;
  }
  .admin-main {
    padding-left: 8px;
    padding-right: 8px;
  }
  .admin-mobile-tab {
    padding: 8px 11px;
    font-size: 10px;
  }
  .admin-title-actions {
    grid-template-columns: 1fr;
  }
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }
  .stat small {
    font-size: 9px;
  }
  .stat b {
    font-size: 17px;
  }
  .collection-tiles {
    grid-template-columns: 1fr;
  }
  .order-summary-strip,.customer-kpis {
    grid-template-columns: 1fr 1fr;
  }
  .admin-table-wrap table {
    min-width: 760px;
  }
  .editor-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
  .editor-actions>* {
    width: 100%;
  }
  .current-images {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 6px;
  }
  .current-images img {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
  }
  .admin-login-card {
    padding: 20px;
  }
  .admin-login-brand {
    min-height: 150px;
  }
  .admin-login-brand span {
    font-size: 10px;
  }
  .admin-login-brand small {
    font-size: 8px;
  }
}

/* Eceland Kids production polish v54 */

.card .card-media {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  aspect-ratio: 4/5;
  background: #f6f1eb;
}

.card .card-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.stock-badge.out {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 7px 12px;
  border-radius: 999px;
  background: #fff;
  color: #a33;
  font-size: .78rem;
  font-weight: 800;
  box-shadow: 0 6px 18px rgba(0,0,0,.08);
}

.card.is-out-of-stock {
  opacity: .82;
}

.card.is-out-of-stock .card-media img {
  filter: grayscale(.12);
}

.stories-v2 {
  padding: 28px 5vw 8px;
}

.story-feed {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 14px;
}

.story-feed-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(0,0,0,.07);
  border-radius: 18px;
  background: #fff;
  text-decoration: none;
  color: inherit;
}

.story-feed-card img {
  width: 68px;
  height: 68px;
  border-radius: 16px;
  object-fit: cover;
}

.story-feed-card div {
  display: grid;
  gap: 5px;
}

.story-feed-card span {
  font-size: .8rem;
  opacity: .65;
}

.campaigns-v2 {
  padding: 28px 5vw 10px;
}

.campaign-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(280px,1fr));
  gap: 18px;
}

.campaign-card {
  overflow: hidden;
  border-radius: 26px;
  background: #fff;
  border: 1px solid rgba(0,0,0,.07);
  display: grid;
  grid-template-columns: minmax(130px,.8fr) 1.2fr;
  box-shadow: 0 14px 36px rgba(0,0,0,.05);
}

.campaign-card>img {
  width: 100%;
  height: 100%;
  min-height: 250px;
  object-fit: cover;
}

.campaign-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 9px;
}

.campaign-content h3 {
  margin: 0;
}

.campaign-content p {
  margin: 0;
  opacity: .72;
  line-height: 1.9;
}

.campaign-timer {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin: 6px 0;
}

.campaign-timer b {
  padding: 7px 10px;
  border-radius: 12px;
  background: #f4eee8;
  font-size: .78rem;
}

.footer-social-icons {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.footer-social-icons a {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(0,0,0,.045);
}

.footer-social-icons img {
  width: 20px;
  height: 20px;
  color: currentColor;
}

.invoice-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 18px auto 30px;
}

.invoice-actions .btn {
  text-decoration: none;
}

.cms-list {
  display: grid;
  gap: 10px;
}

.cms-row {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr)) auto auto;
  gap: 8px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(0,0,0,.07);
  border-radius: 14px;
  background: #fff;
}

.cms-row input {
  min-width: 0;
}

.cms-row label {
  white-space: nowrap;
  font-size: .82rem;
}

.customer-editor-modal {
  max-width: 760px;
}

.customer-editor-modal .editor-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 10px;
}

.customer-editor-modal textarea {
  grid-column: 1/-1;
  min-height: 110px;
}

@media (max-width:900px) {
  .story-feed {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
  .campaign-card {
    grid-template-columns: 1fr;
  }
  .campaign-card>img {
    max-height: 250px;
  }
  .cms-row {
    grid-template-columns: 1fr 1fr;
  }
  .customer-editor-modal .editor-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width:600px) {
  .story-feed {
    grid-template-columns: 1fr;
  }
  .campaigns-v2,.stories-v2 {
    padding-inline: 16px;
  }
  .campaign-content {
    padding: 18px;
  }
  .card .card-media {
    border-radius: 18px;
  }
  .invoice-actions {
    padding: 0 14px;
  }
  .invoice-actions .btn {
    width: 100%;
  }
  .cms-row {
    grid-template-columns: 1fr;
  }
  .footer-social-icons {
    justify-content: flex-start;
  }
}

.chip-editor {
  grid-column: span 1;
  display: grid;
  gap: 7px;
}

.chip-list {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  min-height: 10px;
}

.value-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #f2ece5;
  border: 1px solid rgba(0,0,0,.06);
  font-size: .82rem;
}

.value-chip button {
  border: 0;
  background: none;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
}

.chip-add {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 7px;
}

/* V55 final mobile + OTP polish */

html,body {
  max-width: 100%;
  overflow-x: hidden;
}

img {
  max-width: 100%;
}

.promo-v2 {
  min-width: 0;
}

.promo-v2 img {
  max-width: 100%;
  display: block;
}

.drawer {
  max-width: 100vw;
  box-sizing: border-box;
}

.otp-login-box {
  margin-top: 14px;
  padding: 18px 20px;
  border: 1px solid #dfe9e5;
  border-radius: 20px;
  background: linear-gradient(135deg,#f8fcfa,#fffaf6);
  box-shadow: 0 10px 30px rgba(35,55,59,.035);
}

.otp-login-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.otp-login-icon {
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 13px;
  background: #edf6f2;
  color: #5f8578;
  display: grid;
  place-items: center;
  font-weight: 900;
}

.otp-login-head h2 {
  margin: 3px 0 4px;
  font-size: 16px;
  color: #304540;
}

.otp-login-head p {
  margin: 0;
  color: #899691;
  font-size: 9px;
  line-height: 1.9;
}

.otp-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}

.otp-login-box label {
  display: block;
  font-size: 9px;
  font-weight: 800;
  color: #526b63;
}

.otp-login-box label small {
  font-size: 7px;
  color: #98a39f;
  font-weight: 500;
}

.otp-login-box input {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin-top: 6px;
  border: 1px solid #dce7e3;
  background: #fff;
  border-radius: 11px;
  padding: 11px 12px;
  outline: none;
  font: inherit;
  font-size: 11px;
  color: #304540;
}

.otp-login-box input:focus {
  border-color: #769b8d;
  box-shadow: 0 0 0 3px #769b8d18;
}

.otp-code-row {
  grid-column: 1/-1;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: end;
}

.otp-code-row .btn {
  min-height: 42px;
  white-space: nowrap;
}

.otp-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
}

.otp-actions .btn {
  max-width: 220px;
}

.otp-timer {
  font-size: 8px;
  color: #82908c;
}

.otp-login-box button:disabled {
  opacity: .5;
  cursor: not-allowed;
}

@media (max-width:800px) {
  html,body {
    width: 100%;
    overflow-x: hidden;
  }
  .header-inner,.modern-header {
    max-width: 100vw;
  }
  .hero-v2 {
    width: auto;
    max-width: calc(100vw - 24px);
    box-sizing: border-box;
    overflow: hidden;
  }
  .promo-v2 {
    width: auto;
    max-width: calc(100vw - 32px);
    box-sizing: border-box;
    margin-left: 16px;
    margin-right: 16px;
    grid-template-columns: 1fr;
    padding: 24px 20px;
    gap: 18px;
  }
  .promo-v2 img {
    width: min(100%,190px);
    height: 220px;
    object-fit: cover;
    justify-self: center;
    transform: none;
    border-radius: 16px;
  }
  .drawer {
    width: min(370px,92vw);
    right: -100vw;
  }
  .drawer.open {
    right: 0;
  }
  .story-highlights,.stories-v2,.categories-v2,.search-section-v2,.campaigns-v2,.products-v2,.new-collection-v2,.dynamic-product-section {
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
  }
  .otp-form-grid {
    grid-template-columns: 1fr;
  }
  .otp-code-row {
    grid-column: auto;
  }
  .otp-actions {
    flex-wrap: wrap;
  }
  .otp-actions .btn {
    max-width: none;
    width: 100%;
  }
}

@media (max-width:520px) {
  .hero-v2.hero-minimal {
    width: calc(100vw - 24px);
    max-width: none;
    box-sizing: border-box;
    min-height: 240px;
    margin-left: 12px;
    margin-right: 12px;
    padding: 38px 18px;
  }
  .hero-minimal .hero-copy h1 {
    font-size: 34px;
  }
  .promo-v2 img {
    width: min(100%,175px);
    height: 205px;
  }
  .otp-login-box {
    padding: 15px;
  }
  .otp-login-head {
    align-items: flex-start;
  }
  .otp-code-row {
    grid-template-columns: 1fr;
  }
  .otp-code-row .btn {
    width: 100%;
  }
  .otp-actions .btn {
    width: 100%;
  }
}

/* v56 production admin mobile pass: additive, no functional changes */

.admin-mobile-nav {
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}

@media (max-width:900px) {
  .admin-main {
    width: 100%;
    box-sizing: border-box;
  }
  .admin-tab {
    width: 100%;
    box-sizing: border-box;
  }
  .admin-card {
    overflow: hidden;
  }
  .admin-title-actions {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    width: 100%;
  }
  .admin-title-actions>* {
    min-width: 0;
    box-sizing: border-box;
    text-align: center;
  }
  .admin-mobile-nav {
    margin-inline: 0;
    scroll-padding-inline: 8px;
    scroll-snap-type: x proximity;
  }
  .admin-mobile-tab {
    scroll-snap-align: start;
    min-height: 44px;
    padding-inline: 14px;
  }
  .admin-table-wrap {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  .admin-table-wrap table {
    min-width: 760px;
  }
  .editor-grid {
    grid-template-columns: 1fr !important;
  }
  .editor-grid>* {
    min-width: 0;
  }
  .upload-box,.admin-fieldset {
    min-width: 0;
  }
}

@media (max-width:600px) {
  .admin-main {
    padding-inline: 8px !important;
  }
  .admin-mobile-head {
    padding-inline: 4px;
  }
  .admin-mobile-nav {
    margin-inline: -2px;
    padding-inline: 4px 2px;
  }
  .admin-title {
    padding-inline: 2px;
  }
  .admin-title-actions {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .admin-card {
    padding: 13px !important;
  }
  .card-head {
    gap: 8px;
    flex-wrap: wrap;
  }
  .card-head .mini-btn {
    margin-inline-start: auto;
  }
  .stats-grid {
    grid-template-columns: 1fr 1fr !important;
  }
  .stat {
    min-height: 84px;
  }
  .order-mini {
    grid-template-columns: 1fr 1fr !important;
    font-size: 10px;
  }
  .product-filter,.order-filter,.bulk-box,.discount-inline,.sms-grid {
    grid-template-columns: 1fr !important;
  }
  .bulk-box>* {
    grid-column: auto !important;
  }
  .editor-actions {
    grid-template-columns: 1fr !important;
  }
  .editor-actions>* {
    width: 100%;
    min-height: 46px;
  }
  .collection-tiles {
    grid-template-columns: 1fr !important;
  }
  .collection-item {
    min-width: 0;
  }
  .story-admin-row {
    grid-template-columns: 50px minmax(0,1fr) !important;
  }
  .story-admin-row .mini-btn {
    grid-column: 2;
  }
  .settings-card {
    max-width: none;
  }
  .backup-actions {
    grid-template-columns: 1fr !important;
  }
  .backup-actions>* {
    width: 100%;
    box-sizing: border-box;
  }
  .admin-table-wrap th,.admin-table-wrap td {
    font-size: 10px;
    padding: 8px 7px;
  }
  .admin-table-wrap table {
    min-width: 700px;
  }
}

/* Stage 2 CMS refinements */

.cms-preview {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  margin: -4px 0 8px;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 14px;
  background: rgba(255,255,255,.7);
}

.cms-preview img {
  width: 72px;
  height: 52px;
  object-fit: cover;
  border-radius: 10px;
}

.cms-preview p {
  margin: 0;
  color: var(--muted,#777);
  font-size: .85rem;
}

.campaign-gallery {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 8px;
}

.campaign-gallery img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 16px;
}

.campaign-cover {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}

@media (max-width:600px) {
  .cms-row {
    grid-template-columns: 1fr !important;
  }
  .campaign-gallery {
    grid-template-columns: repeat(2,1fr);
  }
}

.main-nav .menu-dropdown {
  position: relative;
}

.main-nav .menu-dropdown>summary {
  list-style: none;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  color: #45565b;
  padding: 30px 0;
}

.main-nav .menu-dropdown>summary::-webkit-details-marker {
  display: none;
}

.main-nav .menu-dropdown>div {
  position: absolute;
  top: 68px;
  right: 0;
  min-width: 190px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 8px;
  box-shadow: 0 18px 40px rgba(35,55,59,.12);
  display: grid;
  gap: 4px;
  z-index: 100;
}

.main-nav .menu-dropdown a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
}

.main-nav .menu-dropdown a:hover {
  background: #f4f8f6;
}

.drawer-menu-group {
  display: grid;
  gap: 4px;
  padding: 6px 0;
}

.drawer-menu-group summary {
  list-style: none;
  cursor: pointer;
  font-weight: 800;
  padding: 12px 6px;
}

.drawer-menu-group summary::-webkit-details-marker {
  display: none;
}

.drawer-menu-group a {
  display: block;
  margin-right: 10px !important;
}

.cms-field-wrap {
  display: grid;
  gap: 5px;
}

.mini-upload {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  padding: 5px 9px;
  border: 1px dashed #cbdad5;
  border-radius: 8px;
  color: #5d786f;
  font-size: 9px;
  cursor: pointer;
}

.mini-upload input {
  display: none !important;
}

.cms-row {
  align-items: start;
}

/* V56.11 — Admin responsive redesign */

.admin-mobile-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.admin-mobile-brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  background: #fff;
  border-radius: 11px;
  border: 1px solid #e5ddd5;
}

.admin-mobile-brand div {
  min-width: 0;
}

.admin-mobile-brand b {
  display: block;
  color: #304540;
  font-size: 12px;
  white-space: nowrap;
}

.admin-mobile-brand small {
  display: block;
  color: #8a9692;
  font-size: 8px;
  margin-top: 2px;
  white-space: nowrap;
}

.admin-mobile-head-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.admin-head-icon,.admin-head-exit {
  border: 1px solid #dfe8e4;
  background: #f7faf8;
  color: #40564f;
  border-radius: 11px;
  min-width: 38px;
  height: 38px;
  cursor: pointer;
  font: inherit;
}

.admin-head-exit {
  padding: 0 11px;
  font-size: 10px;
}

.admin-menu-trigger {
  display: none;
  border: 1px solid #dfe8e4;
  background: #fff;
  color: #40564f;
  border-radius: 11px;
  width: 40px;
  height: 40px;
  padding: 9px;
  cursor: pointer;
}

.admin-menu-trigger span {
  display: block;
  height: 2px;
  background: #40564f;
  border-radius: 2px;
  margin: 4px 0;
}

.admin-drawer-backdrop {
  display: none;
}

.admin-mobile-drawer {
  display: none;
}

.admin-quick-actions {
  align-items: stretch;
}

.admin-title-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-title-actions>* {
  min-height: 42px;
}

.admin-card {
  overflow: hidden;
}

.admin-card .card-head {
  gap: 12px;
}

.admin-card .card-head>div {
  min-width: 0;
}

.admin-card .card-head h2 {
  line-height: 1.5;
}

.admin-list-row {
  gap: 10px;
}

.admin-table-wrap {
  border-radius: 12px;
}

.admin-table-wrap table {
  min-width: 820px;
}

@media (max-width:900px) {
  .admin-main {
    padding: 12px 12px 34px;
    max-width: none;
  }
  .admin-mobile-head {
    display: flex;
    position: sticky;
    top: 0;
    z-index: 120;
    min-height: 58px;
    margin: 0 -2px 10px;
    padding: 8px 9px;
    background: #fffdfb;
    border: 1px solid #e3ebe7;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(48,69,64,.07);
    gap: 8px;
  }
  .admin-menu-trigger {
    display: block;
    flex: 0 0 auto;
  }
  .admin-mobile-brand {
    flex: 1;
    justify-content: center;
  }
  .admin-mobile-brand img {
    width: 38px;
    height: 38px;
  }
  .admin-mobile-head-actions {
    flex: 0 0 auto;
  }
  .admin-head-icon {
    font-size: 17px;
  }
  .admin-head-exit {
    display: none;
  }
  .admin-mobile-nav {
    display: none !important;
  }
  .admin-mobile-drawer {
    display: flex;
    position: fixed;
    inset: 0 auto 0 0;
    width: min(310px,86vw);
    z-index: 140;
    background: #fffdfb;
    box-shadow: 18px 0 55px rgba(30,45,42,.18);
    transform: translateX(-105%);
    transition: transform .24s ease;
    flex-direction: column;
    padding: 16px;
    direction: rtl;
    overflow: auto;
  }
  .admin-mobile-drawer.open {
    transform: translateX(0);
  }
  .admin-drawer-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 130;
    background: rgba(37,42,39,.36);
    backdrop-filter: blur(2px);
    opacity: 0;
    visibility: hidden;
    transition: .2s;
  }
  .admin-drawer-backdrop.show {
    opacity: 1;
    visibility: visible;
  }
  .admin-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee7e0;
    margin-bottom: 10px;
  }
  .admin-drawer-head .admin-mobile-brand {
    justify-content: flex-start;
  }
  .admin-drawer-close {
    width: 38px;
    height: 38px;
    border: 1px solid #e4ddd5;
    background: #f7f2ed;
    border-radius: 11px;
    font-size: 25px;
    color: #625b55;
    cursor: pointer;
  }
  .admin-drawer-section {
    display: grid;
    gap: 5px;
    margin-top: 8px;
  }
  .admin-drawer-section>span {
    font-size: 8px;
    letter-spacing: 1.5px;
    color: #9a9189;
    padding: 9px 10px 5px;
  }
  .admin-drawer-link {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    border: 0;
    background: transparent;
    color: #5b625e;
    border-radius: 12px;
    padding: 12px 13px;
    text-align: right;
    font: inherit;
    cursor: pointer;
  }
  .admin-drawer-link i {
    font-style: normal;
    font-size: 12px;
  }
  .admin-drawer-link.active {
    background: #edf5f1;
    color: #41675c;
    font-weight: 800;
  }
  .admin-drawer-bottom {
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid #eee7e0;
    display: grid;
    gap: 7px;
  }
  .admin-drawer-bottom a,.admin-drawer-bottom button {
    border: 0;
    background: #f6f2ed;
    color: #625a53;
    border-radius: 11px;
    padding: 12px;
    text-align: center;
    text-decoration: none;
    font: inherit;
    cursor: pointer;
  }
  .admin-drawer-bottom button {
    background: #fff1ef;
    color: #a05b55;
  }
  .admin-title {
    align-items: stretch;
    gap: 10px;
  }
  .admin-title-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .admin-title-actions>* {
    width: 100%;
    text-align: center;
    min-width: 0;
  }
  .admin-card {
    padding: 15px;
    border-radius: 16px;
    margin-bottom: 13px;
  }
  .admin-dashboard-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .stats-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 8px;
  }
  .stat {
    min-width: 0;
    padding: 13px;
  }
  .stat b {
    font-size: 16px;
    overflow-wrap: anywhere;
  }
  .admin-card .card-head {
    align-items: flex-start;
  }
  .admin-card .card-head .mini-btn {
    flex: 0 0 auto;
  }
  .order-mini {
    grid-template-columns: 1fr 1fr;
  }
  .editor-grid {
    grid-template-columns: 1fr;
  }
  .bulk-box {
    grid-template-columns: 1fr 1fr;
  }
  .admin-filter {
    grid-template-columns: 1fr;
  }
  .admin-table-wrap {
    max-width: 100%;
    overflow-x: auto;
  }
  .admin-table-wrap table {
    min-width: 820px;
  }
  .admin-main {
    overflow-x: hidden;
  }
  .modalbox {
    width: calc(100vw - 24px);
    max-width: none;
    padding: 20px;
    border-radius: 18px;
  }
  .modal {
    padding: 12px;
  }
  .cms-row {
    overflow: hidden;
  }
}

@media (max-width:600px) {
  .admin-main {
    padding: 8px 8px 28px;
  }
  .admin-mobile-head {
    margin-bottom: 8px;
    padding: 7px;
  }
  .admin-mobile-brand img {
    width: 35px;
    height: 35px;
  }
  .admin-mobile-brand b {
    font-size: 11px;
  }
  .admin-mobile-brand small {
    font-size: 7px;
  }
  .admin-head-icon {
    width: 35px;
    min-width: 35px;
    height: 35px;
  }
  .admin-menu-trigger {
    width: 37px;
    height: 37px;
  }
  .admin-title h1 {
    font-size: 21px;
  }
  .admin-title p {
    font-size: 9px;
    line-height: 1.8;
  }
  .admin-title-actions {
    grid-template-columns: 1fr;
  }
  .admin-card {
    padding: 13px;
    border-radius: 15px;
  }
  .admin-card h2 {
    font-size: 14px;
  }
  .stats-grid {
    gap: 7px;
  }
  .stat {
    padding: 11px;
  }
  .stat small {
    font-size: 8px;
  }
  .stat b {
    font-size: 14px;
  }
  .order-mini {
    font-size: 9px;
  }
  .admin-table-wrap table {
    min-width: 760px;
  }
  .admin-table-wrap th,.admin-table-wrap td {
    font-size: 9px;
    padding: 8px 7px;
  }
  .admin-product {
    min-width: 155px;
  }
  .admin-product img {
    width: 38px;
    height: 46px;
  }
  .editor-actions {
    grid-template-columns: 1fr;
  }
  .bulk-box {
    grid-template-columns: 1fr;
  }
  .settings-card {
    max-width: none;
  }
  .admin-drawer-link {
    padding: 13px;
  }
  .admin-drawer-link i {
    font-size: 11px;
  }
}

@media (min-width:901px) {
  .admin-mobile-head,.admin-mobile-drawer,.admin-drawer-backdrop {
    display: none !important;
  }
}

/* V56.12 — Admin productivity + inventory tools */

.notification-head {
  position: relative;
}

.notification-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 9px;
  background: #b85c55;
  color: #fff;
  font-size: 8px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fffdfb;
}

.card-head-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.manual-order-card .admin-note {
  margin: 4px 0 0;
}

.manual-order-items {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.manual-order-row {
  display: grid;
  grid-template-columns: 2fr .8fr .8fr .8fr 1fr 1fr auto;
  gap: 7px;
  align-items: center;
  padding: 10px;
  border: 1px solid #e4ebe7;
  border-radius: 14px;
  background: #fbfcfb;
}

.manual-order-row>* {
  min-width: 0;
}

.manual-order-total {
  margin: 12px 0;
  padding: 13px 15px;
  border-radius: 12px;
  background: #edf5f1;
  color: #3f5f55;
  font-weight: 800;
  text-align: right;
}

.global-search-modal {
  max-width: 720px;
}

.global-search-input {
  width: 100%;
  box-sizing: border-box;
  padding: 14px 15px;
  border: 1px solid #d9e4df;
  border-radius: 13px;
  background: #fff;
  font: inherit;
  outline: none;
  margin: 8px 0 12px;
}

.global-search-input:focus {
  border-color: #9eb8ae;
  box-shadow: 0 0 0 3px rgba(96,132,119,.08);
}

.global-search-results {
  display: grid;
  gap: 10px;
  max-height: 55vh;
  overflow: auto;
}

.global-search-group {
  border: 1px solid #e4ebe7;
  border-radius: 13px;
  padding: 8px;
}

.global-search-group>b {
  display: block;
  padding: 5px 7px;
  color: #76837e;
  font-size: 10px;
}

.global-search-group button {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 0;
  background: transparent;
  padding: 10px;
  border-radius: 9px;
  font: inherit;
  text-align: right;
  cursor: pointer;
}

.global-search-group button:hover {
  background: #f0f6f3;
}

.global-search-group small {
  color: #8b9893;
}

.inventory-matrix-fieldset {
  margin-top: 10px;
}

.inventory-matrix-editor {
  display: grid;
  gap: 12px;
  margin-top: 10px;
}

.inventory-matrix-group {
  display: grid;
  gap: 7px;
}

.inventory-matrix-grid {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 7px;
}

.inventory-matrix-grid label {
  display: grid;
  gap: 4px;
  padding: 8px;
  border: 1px solid #e2ebe7;
  border-radius: 10px;
  background: #fff;
}

.inventory-matrix-grid label span {
  font-size: 9px;
  color: #697873;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.inventory-matrix-grid input {
  width: 100%;
  box-sizing: border-box;
}

.notification-row {
  cursor: pointer;
  transition: .15s;
}

.notification-row:hover {
  background: #f3f8f5;
}

.notification-row.is-read {
  opacity: .72;
}

.notification-row em {
  font-style: normal;
  font-size: 8px;
  padding: 4px 7px;
  border-radius: 8px;
  background: #edf5f1;
  color: #477064;
}

@media (max-width:900px) {
  .manual-order-row {
    grid-template-columns: 1fr 1fr;
  }
  .manual-order-row select:first-child {
    grid-column: 1/-1;
  }
  .manual-order-row button {
    min-height: 42px;
  }
  .inventory-matrix-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
  .card-head-actions {
    width: 100%;
  }
  .card-head-actions .mini-btn {
    flex: 1;
  }
}

@media (max-width:600px) {
  .manual-order-row {
    grid-template-columns: 1fr;
  }
  .manual-order-row select:first-child {
    grid-column: auto;
  }
  .manual-order-row>* {
    width: 100%;
    box-sizing: border-box;
  }
  .inventory-matrix-grid {
    grid-template-columns: 1fr 1fr;
  }
  .global-search-modal {
    width: calc(100vw - 24px) !important;
  }
  .global-search-results {
    max-height: 60vh;
  }
}

.seo-home-section {
  padding: 38px 7%;
  background: #fffdfb;
  border-top: 1px solid #eee6df;
  border-bottom: 1px solid #eee6df;
}

.seo-home-copy {
  max-width: 980px;
}

.seo-home-copy p {
  line-height: 2.15;
  color: #756d67;
  font-size: 13px;
}

.seo-home-links,.seo-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 15px;
}

.seo-home-links a,.seo-pill {
  padding: 9px 13px;
  border: 1px solid #dfe8e3;
  border-radius: 999px;
  background: #f7faf8;
  color: #587267;
  font-size: 11px;
}

.seo-landing {
  max-width: 1240px;
  margin: auto;
  padding: 28px 6% 70px;
}

.seo-breadcrumb {
  display: flex;
  gap: 10px;
  color: #8a827c;
  font-size: 11px;
  margin: 5px 0 20px;
}

.seo-hero {
  padding: 35px 30px;
  background: linear-gradient(135deg,#f5eee8,#f7faf8);
  border: 1px solid #e6dfd8;
  border-radius: 22px;
}

.seo-hero small,.seo-section-head small {
  letter-spacing: 2px;
  color: #718679;
  font-size: 9px;
  font-weight: 800;
}

.seo-hero h1 {
  font-size: 34px;
  margin: 8px 0 12px;
  color: #3f4e49;
}

.seo-hero p,.seo-copy p {
  line-height: 2.2;
  color: #766f69;
  font-size: 13px;
  max-width: 950px;
}

.seo-copy {
  padding: 30px 5px 10px;
}

.seo-copy h2 {
  font-size: 22px;
  color: #4b4742;
}

.seo-products {
  padding: 35px 0;
}

.seo-section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 18px;
}

.seo-section-head h2 {
  margin: 6px 0;
  font-size: 24px;
}

.seo-section-head>span {
  font-size: 10px;
  color: #8a827c;
}

.seo-product-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 18px;
}

.seo-product-card {
  background: #fffdfb;
  border: 1px solid #e6ded7;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(75,71,66,.05);
}

.seo-product-card a {
  display: block;
}

.seo-product-card img {
  display: block;
  width: 100%;
  height: 290px;
  object-fit: cover;
  background: #f3ece5;
}

.seo-product-card div {
  padding: 14px;
}

.seo-product-card small {
  color: #8c837c;
  font-size: 9px;
}

.seo-product-card h2 {
  font-size: 14px;
  line-height: 1.8;
  margin: 5px 0;
}

.seo-product-card p {
  font-size: 10px;
  line-height: 1.9;
  color: #817970;
  margin: 0 0 8px;
}

.seo-product-card span {
  font-size: 10px;
  color: #718679;
}

.seo-bottom {
  background: #f7f3ee;
  padding: 25px;
  border-radius: 18px;
}

.seo-bottom .btn {
  margin-top: 8px;
}

@media (max-width:900px) {
  .seo-home-section {
    padding: 30px 16px;
  }
  .seo-landing {
    padding: 20px 14px 50px;
  }
  .seo-hero {
    padding: 25px 20px;
  }
  .seo-hero h1 {
    font-size: 26px;
  }
  .seo-product-grid {
    grid-template-columns: repeat(2,1fr);
    gap: 10px;
  }
  .seo-product-card img {
    height: 230px;
  }
  .seo-product-card div {
    padding: 11px;
  }
  .seo-product-card h2 {
    font-size: 12px;
  }
  .seo-product-card p {
    font-size: 9px;
  }
  .seo-section-head h2 {
    font-size: 20px;
  }
}

.auth-method-card {
  margin-top: 14px;
  padding: 18px 20px;
  border: 1px solid #dfe9e5;
  border-radius: 22px;
  background: linear-gradient(135deg,#f8fcfa,#fffaf6);
  box-shadow: 0 10px 30px rgba(35,55,59,.035);
}

.auth-main-tabs,.auth-mode-tabs {
  display: flex;
  gap: 6px;
  padding: 5px;
  border-radius: 15px;
  background: #eef4f1;
  margin-bottom: 16px;
}

.auth-main-tab,.auth-mode-tab {
  flex: 1;
  border: 0;
  background: transparent;
  border-radius: 11px;
  padding: 11px 12px;
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  color: #72817c;
  cursor: pointer;
}

.auth-main-tab.active,.auth-mode-tab.active {
  background: #fff;
  color: #304c44;
  box-shadow: 0 3px 12px rgba(35,55,59,.08);
}

.auth-mode-tabs {
  max-width: 360px;
  margin: 0 auto 16px;
}

.auth-mode-panel {
  padding-top: 2px;
}

.auth-panel-head {
  text-align: center;
  margin-bottom: 14px;
}

.auth-panel-head h2 {
  margin: 4px 0;
  font-size: 18px;
  color: #304540;
}

.auth-panel-head p {
  margin: 0;
  color: #899691;
  font-size: 10px;
  line-height: 1.9;
}

.auth-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.auth-form-grid label,.auth-code-row label {
  display: block;
  font-size: 9px;
  font-weight: 800;
  color: #526b63;
}

.auth-form-grid label small {
  font-size: 8px;
  color: #98a39f;
  font-weight: 500;
}

.auth-method-card input {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin-top: 6px;
  border: 1px solid #dce7e3;
  background: #fff;
  border-radius: 11px;
  padding: 11px 12px;
  outline: none;
  font: inherit;
  font-size: 11px;
  color: #304540;
}

.auth-method-card input:focus {
  border-color: #769b8d;
  box-shadow: 0 0 0 3px #769b8d18;
}

.auth-submit {
  margin-top: 12px;
}

.auth-code-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: end;
}

.auth-code-row .btn {
  min-height: 42px;
  white-space: nowrap;
}

.auth-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.auth-actions .auth-submit {
  margin-top: 0;
}

.auth-actions .mini-btn {
  white-space: nowrap;
}

.auth-method-card button:disabled {
  opacity: .5;
  cursor: not-allowed;
}

@media (max-width:520px) {
  .auth-method-card {
    padding: 14px;
  }
  .auth-form-grid {
    grid-template-columns: 1fr;
  }
  .auth-code-row {
    grid-template-columns: 1fr;
  }
  .auth-code-row .btn {
    width: 100%;
  }
  .auth-actions {
    flex-wrap: wrap;
  }
  .auth-actions .auth-submit {
    width: 100%;
  }
  .auth-mode-tabs {
    max-width: none;
  }
}

/* V56.28 — A4 invoice / print master */

@page {
  size: A4 portrait;
  margin: 0;
}

@media print {
  html,body.invoice-print-body {
    width: 210mm !important;
    min-width: 210mm !important;
    max-width: 210mm !important;
    height: 297mm !important;
    min-height: 297mm !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #fff !important;
  }
  body.invoice-print-body {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
    color: #24363a !important;
    font-family: Vazirmatn,Arial,sans-serif !important;
    overflow: hidden !important;
  }
  .invoice-print-body .invoice-a4 {
    width: 210mm !important;
    height: 297mm !important;
    min-height: 297mm !important;
    max-height: 297mm !important;
    margin: 0 !important;
    padding: 6mm 7mm 4mm !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    overflow: hidden !important;
    background: #fff !important;
    font-size: 7pt !important;
    line-height: 1.25 !important;
  }
  .invoice-print-body .invoice-a4 * {
    box-sizing: border-box !important;
  }
  .invoice-print-body .inv-top {
    grid-template-columns: 1.05fr 1.45fr .48fr !important;
    gap: 4mm !important;
    padding: 3mm !important;
    border-radius: 3mm !important;
  }
  .invoice-print-body .invoice-logo {
    width: 25mm !important;
    height: 17mm !important;
  }
  .invoice-print-body .inv-brand {
    gap: 2.5mm !important;
  }
  .invoice-print-body .inv-brand h2 {
    font-size: 11pt !important;
    margin: 0 0 1mm !important;
  }
  .invoice-print-body .inv-brand p,.invoice-print-body .inv-contact span {
    font-size: 6.3pt !important;
  }
  .invoice-print-body .inv-contact {
    max-width: none !important;
    line-height: 1.35 !important;
  }
  .invoice-print-body .inv-contact>b {
    font-size: 8pt !important;
  }
  .invoice-print-body .inv-contact div {
    gap: .5mm !important;
    margin-top: 1mm !important;
  }
  .invoice-print-body .invoice-seal {
    width: 19mm !important;
    height: 19mm !important;
  }
  .invoice-print-body .inv-divider {
    margin: 2mm 0 !important;
  }
  .invoice-print-body .inv-title-band {
    padding: 2.5mm 3mm !important;
    grid-template-columns: 10mm 1fr 57mm !important;
    gap: 2mm !important;
    margin-bottom: 2.5mm !important;
    border-radius: 2.5mm !important;
  }
  .invoice-print-body .inv-title-band h1 {
    font-size: 18pt !important;
  }
  .invoice-print-body .inv-title-band>div:nth-child(2)>span {
    font-size: 6pt !important;
  }
  .invoice-print-body .inv-title-icon {
    font-size: 20pt !important;
  }
  .invoice-print-body .inv-meta-card {
    padding: 1.5mm 2mm !important;
    font-size: 6pt !important;
    gap: 1mm !important;
  }
  .invoice-print-body .inv-meta-card em {
    font-size: 5.5pt !important;
    padding: 1px 2mm !important;
  }
  .invoice-print-body .inv-info-grid {
    gap: 2.5mm !important;
    margin-bottom: 2.5mm !important;
  }
  .invoice-print-body .inv-card {
    padding: 2.5mm !important;
    border-radius: 2.5mm !important;
  }
  .invoice-print-body .inv-card h3 {
    font-size: 8pt !important;
    margin: 0 0 1.5mm !important;
  }
  .invoice-print-body .inv-card h3 span {
    font-size: 10pt !important;
  }
  .invoice-print-body .inv-fields {
    gap: 1.5mm 3mm !important;
    font-size: 6.3pt !important;
  }
  .invoice-print-body .shipping-detail {
    gap: 1.5mm !important;
    font-size: 6.5pt !important;
  }
  .invoice-print-body .shipping-detail>strong {
    font-size: 9pt !important;
    margin: 0 !important;
  }
  .invoice-print-body .shipping-detail>div {
    padding-top: 1.5mm !important;
  }
  .invoice-print-body .inv-table-wrap {
    border-radius: 2mm !important;
  }
  .invoice-print-body .inv-table {
    font-size: 5.8pt !important;
  }
  .invoice-print-body .inv-table th {
    padding: 1.7mm 1mm !important;
  }
  .invoice-print-body .inv-table td {
    padding: 1.4mm 1mm !important;
  }
  .invoice-print-body .inv-product {
    min-width: 0 !important;
    gap: 1.5mm !important;
  }
  .invoice-print-body .inv-product img {
    width: 10mm !important;
    height: 10mm !important;
    border-radius: 1mm !important;
  }
  .invoice-print-body .inv-product small,.invoice-print-body .inv-table td small {
    font-size: 5pt !important;
    margin-top: .4mm !important;
  }
  .invoice-print-body .inv-lower-grid {
    gap: 2.5mm !important;
    margin-top: 2.5mm !important;
  }
  .invoice-print-body .inv-note-card p {
    font-size: 6pt !important;
    line-height: 1.5 !important;
    margin: 0 0 1.5mm !important;
  }
  .invoice-print-body .inv-note-card>strong {
    font-size: 5.8pt !important;
  }
  .invoice-print-body .inv-total-card {
    gap: 1mm !important;
  }
  .invoice-print-body .inv-total-card>div {
    font-size: 6pt !important;
    padding-bottom: 1mm !important;
  }
  .invoice-print-body .inv-total-card .grand {
    padding: 2mm 2.5mm !important;
    font-size: 7pt !important;
  }
  .invoice-print-body .inv-total-card .grand strong {
    font-size: 10pt !important;
  }
  .invoice-print-body .inv-footer-grid {
    gap: 2.5mm !important;
    margin-top: 2.5mm !important;
  }
  .invoice-print-body .inv-track {
    padding: 2mm !important;
    gap: 2mm !important;
    min-height: 24mm !important;
  }
  .invoice-print-body .invoice-qr {
    width: 17mm !important;
    height: 17mm !important;
    object-fit: contain !important;
  }
  .invoice-print-body .inv-track b {
    font-size: 6.5pt !important;
  }
  .invoice-print-body .inv-track strong {
    font-size: 6pt !important;
    margin: 1mm 0 !important;
  }
  .invoice-print-body .inv-track small {
    font-size: 5pt !important;
  }
  .invoice-print-body .inv-sign {
    min-height: 24mm !important;
    padding: 2mm !important;
  }
  .invoice-print-body .inv-sign>b {
    font-size: 6.5pt !important;
  }
  .invoice-print-body .inv-sign .invoice-signature {
    width: 35mm !important;
    height: 11mm !important;
    margin: 1.5mm auto 0 !important;
  }
  .invoice-print-body .inv-sign>span {
    font-size: 5pt !important;
  }
  .invoice-print-body .inv-stamp .invoice-stamp {
    width: 21mm !important;
    height: 21mm !important;
  }
  .invoice-print-body .inv-stamp span {
    font-size: 5.5pt !important;
    margin-top: -2mm !important;
  }
  .invoice-print-body .inv-thanks {
    gap: 2mm !important;
    margin-top: 2mm !important;
    font-size: 6pt !important;
  }
  .invoice-print-body .inv-thanks span {
    min-width: 8mm !important;
  }
  .invoice-print-body .invoice-actions {
    display: none !important;
  }
  .invoice-print-body .payment-panel,.invoice-print-body .checkout,.invoice-print-body header,.invoice-print-body footer {
    display: none !important;
  }
  .invoice-print-body .invoice-a4 section,.invoice-print-body .invoice-a4 .inv-top,.invoice-print-body .invoice-a4 .inv-title-band,.invoice-print-body .invoice-a4 .inv-table-wrap,.invoice-print-body .invoice-a4 .inv-lower-grid,.invoice-print-body .invoice-a4 .inv-footer-grid {
    break-inside: avoid !important;
    page-break-inside: avoid !important;
  }
}

/* V56.35 — Real merchant dashboard / control center */

.dashboard-command-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 12px;
  padding: 11px 13px;
  border: 1px solid #e1e9e5;
  border-radius: 18px;
  background: rgba(255,255,255,.78);
  box-shadow: 0 10px 28px rgba(45,67,61,.045);
  backdrop-filter: blur(12px);
}

.dashboard-welcome {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.dashboard-welcome b {
  display: block;
  font-size: 12px;
  color: #294044;
}

.dashboard-welcome small {
  display: block;
  margin-top: 3px;
  color: #899590;
  font-size: 9px;
}

.live-dot,.status-pulse {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #55a487;
  box-shadow: 0 0 0 5px #55a48718;
  display: inline-block;
  flex: none;
}

.dashboard-command-actions {
  display: flex;
  gap: 5px;
  align-items: center;
}

.dashboard-period,.dashboard-refresh {
  border: 1px solid #dbe6e1;
  background: #f7faf8;
  color: #667872;
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 9px;
  cursor: pointer;
}

.dashboard-period.active {
  background: #304c44;
  color: #fff;
  border-color: #304c44;
}

.dashboard-refresh {
  background: #fff;
}

.dashboard-quick-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 9px;
  margin-bottom: 12px;
}

.quick-action {
  border: 1px solid #e0e8e4;
  background: #fff;
  border-radius: 16px;
  padding: 12px;
  display: grid;
  grid-template-columns: 32px 1fr 18px;
  gap: 9px;
  align-items: center;
  text-align: right;
  cursor: pointer;
  transition: .18s;
  box-shadow: 0 7px 20px rgba(45,67,61,.035);
}

.quick-action:hover {
  transform: translateY(-2px);
  border-color: #c5d8d0;
  box-shadow: 0 12px 26px rgba(45,67,61,.07);
}

.quick-action>span {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: #eef5f1;
  color: #4f8377;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 15px;
}

.quick-action b {
  display: block;
  font-size: 10px;
  color: #304a48;
}

.quick-action small {
  display: block;
  color: #8a9793;
  font-size: 8px;
  margin-top: 3px;
  line-height: 1.6;
}

.quick-action i {
  font-style: normal;
  color: #91a09a;
  font-size: 11px;
}

.quick-action.primary {
  background: linear-gradient(135deg,#304c44,#48695e);
  border-color: #304c44;
}

.quick-action.primary b,.quick-action.primary i {
  color: #fff;
}

.quick-action.primary small {
  color: #dbe7e2;
}

.quick-action.primary>span {
  background: #ffffff18;
  color: #fff;
}

.dashboard-ops-grid {
  grid-template-columns: 1.15fr .85fr;
}

.ops-live {
  font-size: 8px;
  letter-spacing: 1.5px;
  padding: 5px 7px;
  border-radius: 999px;
  background: #eaf6f0;
  color: #43836b;
}

.ops-list {
  display: grid;
  gap: 6px;
}

.ops-row {
  display: grid;
  grid-template-columns: 28px 1fr auto 14px;
  align-items: center;
  gap: 8px;
  border: 1px solid #e4ebe8;
  background: #fbfcfb;
  border-radius: 12px;
  padding: 9px;
  text-align: right;
  cursor: pointer;
}

.ops-row:hover {
  background: #f4f8f6;
}

.ops-row>span:nth-child(2) {
  min-width: 0;
}

.ops-row b {
  display: block;
  font-size: 9px;
  color: #354c4b;
}

.ops-row small {
  display: block;
  color: #8a9691;
  font-size: 8px;
  margin-top: 2px;
}

.ops-row strong {
  font-size: 13px;
  color: #304a48;
}

.ops-row i {
  font-style: normal;
  color: #9ba7a3;
}

.ops-icon {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eaf6f0;
  color: #43836b;
  font-weight: 900;
}

.ops-row.needs .ops-icon {
  background: #fff4df;
  color: #a97928;
}

.ops-row.danger .ops-icon {
  background: #fff0ee;
  color: #b65d56;
}

.inventory-health {
  min-height: 150px;
}

.health-score {
  display: grid;
  grid-template-columns: 125px 1fr;
  gap: 17px;
  align-items: center;
}

.health-ring {
  width: 116px;
  height: 116px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: conic-gradient(#4f8377 var(--health),#edf2ef var(--health));
  position: relative;
}

.health-ring:before {
  content: '';
  position: absolute;
  inset: 9px;
  border-radius: 50%;
  background: #fff;
}

.health-ring b,.health-ring small {
  position: relative;
  z-index: 1;
}

.health-ring b {
  font-size: 23px;
  color: #304a48;
}

.health-ring small {
  font-size: 7px;
  color: #899792;
  margin-top: 3px;
}

.health-bars {
  display: grid;
  gap: 10px;
}

.health-bars>div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 8px;
}

.health-bars span {
  font-size: 8px;
  color: #74827d;
}

.health-bars b {
  font-size: 8px;
  color: #3f5753;
}

.health-bars i {
  grid-column: 1/-1;
  height: 5px;
  border-radius: 99px;
  background: #edf2ef;
  overflow: hidden;
}

.health-bars em {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #6c9a88;
}

.dashboard-insights-grid {
  grid-template-columns: 1fr 1fr;
}

.sales-mix {
  display: grid;
  gap: 14px;
}

.mix-main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.mix-main>div {
  padding: 12px;
  border-radius: 13px;
  background: linear-gradient(135deg,#f4f8f6,#fbf8f4);
  border: 1px solid #e3ebe7;
}

.mix-main span {
  display: block;
  color: #84908c;
  font-size: 8px;
}

.mix-main b {
  display: block;
  color: #304a48;
  font-size: 13px;
  margin-top: 5px;
}

.mix-main small {
  display: block;
  color: #9aa49f;
  font-size: 8px;
  margin-top: 3px;
}

.mix-gateways>b {
  font-size: 9px;
  color: #526761;
}

.mix-gateways>div {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  gap: 7px;
  align-items: center;
  margin-top: 8px;
}

.mix-gateways span,.mix-gateways strong {
  font-size: 8px;
  color: #64746e;
}

.mix-gateways strong {
  font-weight: 800;
}

.mix-gateways i {
  height: 6px;
  background: #edf2ef;
  border-radius: 99px;
  overflow: hidden;
}

.mix-gateways em {
  display: block;
  height: 100%;
  background: #719d8c;
  border-radius: 99px;
}

.top-product-list {
  display: grid;
  gap: 7px;
}

.top-product {
  display: grid;
  grid-template-columns: 24px 38px 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 7px;
  border-bottom: 1px solid #edf1ef;
}

.top-product:last-child {
  border-bottom: 0;
}

.top-product .rank {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: #f0f5f2;
  color: #4f8377;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  font-weight: 900;
}

.top-product img,.top-product-img {
  width: 38px;
  height: 42px;
  object-fit: cover;
  border-radius: 8px;
  background: #f1f4f2;
}

.top-product-img {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9aa6a1;
}

.top-product b {
  display: block;
  font-size: 9px;
  color: #304a48;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.top-product small {
  display: block;
  color: #8d9894;
  font-size: 7px;
  margin-top: 2px;
}

.top-product>strong {
  font-size: 8px;
  color: #557168;
  white-space: nowrap;
}

.dashboard-footer-strip {
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px solid #dfe8e4;
  border-radius: 16px;
  background: #f4f8f6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.dashboard-footer-strip>div:first-child {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 8px;
  align-items: center;
}

.dashboard-footer-strip>div:first-child b {
  font-size: 9px;
  color: #3f5753;
}

.dashboard-footer-strip>div:first-child small {
  grid-column: 2;
  font-size: 7px;
  color: #899691;
}

.dashboard-footer-actions {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

.dashboard-footer-actions button,.dashboard-footer-actions a {
  border: 1px solid #d6e2dd;
  background: #fff;
  border-radius: 9px;
  padding: 7px 9px;
  font-size: 8px;
  color: #587168;
  cursor: pointer;
}

@media (max-width:1000px) {
  .dashboard-quick-grid {
    grid-template-columns: repeat(2,1fr);
  }
  .dashboard-ops-grid,.dashboard-insights-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width:600px) {
  .dashboard-command-bar {
    align-items: stretch;
    flex-direction: column;
    padding: 10px;
  }
  .dashboard-command-actions {
    display: grid;
    grid-template-columns: repeat(4,1fr);
  }
  .dashboard-period,.dashboard-refresh {
    padding: 8px 5px;
  }
  .dashboard-quick-grid {
    grid-template-columns: 1fr 1fr;
    gap: 7px;
  }
  .quick-action {
    grid-template-columns: 29px 1fr;
    padding: 9px;
    min-height: 65px;
  }
  .quick-action>span {
    width: 29px;
    height: 29px;
  }
  .quick-action i {
    display: none;
  }
  .quick-action b {
    font-size: 9px;
  }
  .quick-action small {
    font-size: 7px;
  }
  .health-score {
    grid-template-columns: 100px 1fr;
    gap: 10px;
  }
  .health-ring {
    width: 94px;
    height: 94px;
  }
  .health-ring b {
    font-size: 19px;
  }
  .mix-main {
    grid-template-columns: 1fr;
  }
  .mix-gateways>div {
    grid-template-columns: 75px 1fr auto;
  }
  .dashboard-footer-strip {
    align-items: stretch;
    flex-direction: column;
  }
  .dashboard-footer-actions {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
  }
  .dashboard-footer-actions button,.dashboard-footer-actions a {
    text-align: center;
  }
}

/* V56.36 — Unified professional management modules */

.section-kpi-card {
  padding: 10px 12px !important;
  margin-bottom: 12px;
}

.section-kpi-grid {
  display: grid;
  grid-template-columns: repeat(5,1fr);
  gap: 8px;
}

.section-kpi {
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid #e3ebe7;
  background: linear-gradient(135deg,#fbfdfc,#f5f8f6);
  border-radius: 14px;
}

.section-kpi span {
  display: block;
  color: #7f8d87;
  font-size: 8px;
}

.section-kpi b {
  display: block;
  margin-top: 5px;
  color: #304a48;
  font-size: 16px;
  line-height: 1.2;
}

.section-kpi b.good {
  color: #4f8377;
}

.section-kpi b.attention {
  color: #a7792a;
}

.section-kpi small {
  display: block;
  color: #9aa49f;
  font-size: 7px;
  margin-top: 4px;
}

.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  min-width: 150px;
}

.order-pipeline {
  display: grid;
  grid-template-columns: repeat(7,1fr);
  gap: 6px;
  margin-bottom: 10px;
}

.pipeline-step {
  border: 1px solid #e2e9e6;
  background: #fafcfb;
  border-radius: 12px;
  padding: 9px 7px;
  text-align: right;
  cursor: pointer;
}

.pipeline-step:hover {
  border-color: #bdd1c9;
  background: #f2f7f4;
}

.pipeline-step span {
  display: block;
  color: #77857f;
  font-size: 7px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pipeline-step b {
  display: block;
  color: #304a48;
  font-size: 15px;
  margin-top: 3px;
}

.bulk-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  margin-bottom: 9px;
  border: 1px dashed #d9e4df;
  background: #fbfdfc;
  border-radius: 12px;
}

.bulk-toolbar>div {
  margin-left: auto;
}

.bulk-toolbar b {
  display: block;
  color: #4b605a;
  font-size: 9px;
}

.bulk-toolbar small {
  display: block;
  color: #929d98;
  font-size: 7px;
  margin-top: 2px;
}

.bulk-toolbar select {
  min-width: 150px;
}

.customer-segment-bar {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 0 0 9px;
}

.segment-btn {
  border: 1px solid #dce6e1;
  background: #fff;
  color: #72817b;
  border-radius: 999px;
  padding: 7px 11px;
  font-size: 8px;
  cursor: pointer;
}

.segment-btn.active {
  background: #304c44;
  border-color: #304c44;
  color: #fff;
}

.inventory-dashboard-grid {
  grid-template-columns: 1.15fr .85fr;
}

.inventory-alert-list {
  display: grid;
  gap: 6px;
}

.inventory-alert-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 8px;
  padding: 9px;
  border: 1px solid #e7ecea;
  background: #fbfcfb;
  border-radius: 11px;
  text-align: right;
  cursor: pointer;
}

.inventory-alert-row:hover {
  background: #f3f7f5;
}

.inventory-alert-row span {
  font-size: 9px;
  color: #405650;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.inventory-alert-row small {
  font-size: 7px;
  color: #8d9994;
}

.inventory-alert-row b {
  font-size: 8px;
  color: #a7792a;
}

.inventory-mix {
  display: grid;
  gap: 16px;
  padding-top: 8px;
}

.mix-stat {
  display: grid;
  grid-template-columns: 45px 1fr 35px;
  align-items: center;
  gap: 9px;
}

.mix-stat span,.mix-stat b {
  font-size: 8px;
  color: #687973;
}

.mix-stat i {
  height: 8px;
  background: #edf2ef;
  border-radius: 99px;
  overflow: hidden;
}

.mix-stat em {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #6c9a88;
}

.inventory-state {
  display: inline-flex;
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 7px;
  background: #eaf6f0;
  color: #43836b;
}

.inventory-state.warn {
  background: #fff4df;
  color: #a77928;
}

.empty-state {
  padding: 24px;
  text-align: center;
  border: 1px dashed #dce6e1;
  border-radius: 14px;
  background: #fbfcfb;
}

.empty-state b {
  display: block;
  color: #52645e;
  font-size: 10px;
}

.empty-state small {
  display: block;
  color: #98a39f;
  font-size: 8px;
  margin-top: 4px;
}

.inventory-filter {
  grid-template-columns: 1.5fr 180px 180px;
}

.order-control-card {
  margin-top: 12px;
}

.settings-card h2 {
  margin-bottom: 12px;
}

.settings-card .btn {
  margin-top: 10px;
}

@media (max-width:1050px) {
  .section-kpi-grid {
    grid-template-columns: repeat(3,1fr);
  }
  .order-pipeline {
    grid-template-columns: repeat(4,1fr);
  }
  .inventory-dashboard-grid {
    grid-template-columns: 1fr;
  }
  .inventory-filter {
    grid-template-columns: 1fr 1fr;
  }
  .bulk-toolbar {
    flex-wrap: wrap;
  }
  .bulk-toolbar>div {
    margin-left: 0;
    margin-right: auto;
  }
}

@media (max-width:650px) {
  .section-kpi-grid {
    grid-template-columns: 1fr 1fr;
  }
  .section-kpi b {
    font-size: 14px;
  }
  .order-pipeline {
    grid-template-columns: repeat(2,1fr);
  }
  .bulk-toolbar {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .bulk-toolbar>div {
    grid-column: 1/-1;
  }
  .bulk-toolbar select,.bulk-toolbar button {
    width: 100%;
    min-width: 0;
  }
  .inventory-filter {
    grid-template-columns: 1fr;
  }
  .inventory-alert-row {
    grid-template-columns: 1fr auto;
  }
  .inventory-alert-row small {
    grid-column: 1;
  }
  .row-actions {
    min-width: 0;
  }
  .customer-segment-bar {
    overflow: auto;
    flex-wrap: nowrap;
    padding-bottom: 2px;
  }
  .segment-btn {
    white-space: nowrap;
  }
}

/* v56.54 professional polish */

.skip-link {
  position: fixed;
  top: 10px;
  right: 10px;
  z-index: 100000;
  transform: translateY(-180%);
  padding: 10px 15px;
  border-radius: 12px;
  background: #24211f;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 8px 30px rgba(0,0,0,.16);
  transition: transform .2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid rgba(72,110,98,.55);
  outline-offset: 3px;
}

.store-toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 100001;
  max-width: min(420px,calc(100vw - 36px));
  padding: 13px 17px;
  border-radius: 14px;
  background: #25221f;
  color: #fff;
  font-size: 13px;
  line-height: 1.7;
  box-shadow: 0 14px 40px rgba(0,0,0,.18);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity .2s ease,transform .2s ease;
}

.store-toast.show {
  opacity: 1;
  transform: translateY(0);
}

.store-toast.success {
  background: #176b46;
}

.store-toast.error {
  background: #9c3b30;
}

img {
  content-visibility: auto;
}

.hero-live img,.gallery-stage img,.product-main-image {
  content-visibility: visible;
}

.campaign-gallery img,.story-feed-card img,.story-circle img {
  aspect-ratio: 1/1;
  object-fit: cover;
}

.cartrow>img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 12px;
}

.reviews textarea {
  min-height: 110px;
  resize: vertical;
}

.stars button {
  min-width: 42px;
  min-height: 42px;
}

@media (prefers-reduced-motion:reduce) {
  *,*::before,*::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

@media (max-width:600px) {
  .store-toast {
    right: 10px;
    bottom: 10px;
    max-width: calc(100vw - 20px);
    font-size: 12px;
  }
  .skip-link {
    right: 8px;
    top: 8px;
  }
}
