/*
 * Storefront redesign/override layer.
 * This file intentionally loads after style.css; later declarations are part of the current UI contract.
 */

/* =========================================================
   ECELAND KIDS — VISUAL REDESIGN v1
   Editorial pastel / soft-luxury / motion-first
   Functionality intentionally left untouched.
   ========================================================= */

:root {
  --ek-ink: #273338;
  --ek-muted: #7d8582;
  --ek-cream: #fbf8f2;
  --ek-paper: #fffdf9;
  --ek-blush: #e79b91;
  --ek-blush-dark: #cf776d;
  --ek-sage: #a9c1b5;
  --ek-sage-dark: #587f73;
  --ek-line: rgba(39,51,56,.09);
  --ek-shadow: 0 18px 50px rgba(52,54,50,.09);
  --ek-radius: 28px;
  --ek-radius-sm: 18px;
  --ek-ease: cubic-bezier(.2,.8,.2,1);
}

body {
  background: radial-gradient(circle at 10% 0%,rgba(231,155,145,.10),transparent 24rem),
    radial-gradient(circle at 90% 18%,rgba(169,193,181,.12),transparent 25rem),
    var(--ek-cream);
  color: var(--ek-ink);
}

body:before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background-image: radial-gradient(rgba(39,51,56,.035) .7px,transparent .7px);
  background-size: 8px 8px;
  opacity: .22;
}

a {
  transition: color .25s var(--ek-ease),transform .25s var(--ek-ease),opacity .25s var(--ek-ease);
}

button,.btn {
  font-family: inherit;
}

.top {
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  background: #273338;
  color: #fff;
  font-size: 11px;
  letter-spacing: .02em;
}

.modern-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(255,253,249,.84);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(39,51,56,.07);
  box-shadow: 0 4px 24px rgba(40,45,40,.035);
}

.header-inner {
  width: min(1380px,calc(100% - 40px));
  min-height: 78px;
  margin: auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}

.modern-logo img,.logo-img img {
  object-fit: contain;
}

.modern-logo {
  justify-self: center;
  display: block;
  position: relative;
}

.modern-logo:after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -3px;
  width: 26px;
  height: 2px;
  transform: translateX(-50%);
  background: var(--ek-blush);
  border-radius: 99px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  justify-content: center;
}

.main-nav a {
  font-size: 13px;
  color: #4d5755;
  text-decoration: none;
  white-space: nowrap;
}

.main-nav a:hover,.main-nav a.active {
  color: var(--ek-blush-dark);
}

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

.tool {
  width: 42px;
  height: 42px;
  border: 1px solid var(--ek-line);
  border-radius: 50%;
  background: rgba(255,255,255,.76);
  display: grid;
  place-items: center;
  color: var(--ek-ink);
  text-decoration: none;
  position: relative;
  cursor: pointer;
}

.tool:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(39,51,56,.08);
}

.cart-tool em {
  position: absolute;
  right: -2px;
  top: -2px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 99px;
  background: var(--ek-blush);
  color: #fff;
  font-size: 10px;
  display: grid;
  place-items: center;
  font-style: normal;
}

.mobile-menu {
  border: 0;
  background: transparent;
  font-size: 25px;
  cursor: pointer;
  display: none;
}

.drawer {
  background: rgba(255,253,249,.98);
  border-left: 1px solid var(--ek-line);
  box-shadow: -24px 0 60px rgba(35,43,40,.13);
}

#shade {
  background: rgba(32,39,38,.28);
  backdrop-filter: blur(3px);
}

/* Sections */

section,.products-v2,.content-page,.checkout,.account-shell,.favorites-page,.track-page,.about-page,.contact-page {
  width: min(1380px,calc(100% - 40px));
  margin-inline: auto;
}

.section-heading {
  margin: 72px 0 25px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.section-heading small,.account-eyebrow {
  font-size: 10px;
  letter-spacing: .2em;
  color: #9caaa5;
  font-weight: 800;
}

.section-heading h2 {
  font-size: 28px;
  margin: 7px 0 0;
  letter-spacing: -.04em;
}

.section-heading>span {
  font-size: 12px;
  color: var(--ek-muted);
}

/* LIVE HERO */

.hero-live {
  width: min(1380px,calc(100% - 40px));
  margin: 22px auto 0;
  min-height: 550px;
  border-radius: 34px;
  overflow: hidden;
  position: relative;
  background: #eadbca;
  isolation: isolate;
  box-shadow: var(--ek-shadow);
}

.hero-live .live-backdrop {
  position: absolute;
  inset: 0;
  z-index: -3;
  background: linear-gradient(110deg,#e8d9c8,#f5eee5 55%,#d9e5df);
}

.hero-live .live-grain {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .16;
  mix-blend-mode: multiply;
  background-image: radial-gradient(rgba(255,255,255,.9) .7px,transparent .7px);
  background-size: 5px 5px;
}

.hero-live .live-copy {
  position: absolute;
  right: 7%;
  top: 50%;
  transform: translateY(-50%);
  z-index: 8;
  width: 43%;
  animation: ek-rise .9s var(--ek-ease) both;
}

.hero-live .eyebrow {
  display: inline-flex;
  padding: 8px 13px;
  border-radius: 99px;
  background: rgba(255,255,255,.58);
  font-size: 10px;
  letter-spacing: .18em;
  font-weight: 800;
  color: #64706d;
}

.hero-live h1 {
  font-size: clamp(40px,5.2vw,74px);
  line-height: 1.12;
  letter-spacing: -.065em;
  margin: 18px 0 14px;
}

.hero-live h1 strong {
  color: var(--ek-blush-dark);
  font-weight: 800;
}

.hero-live p {
  font-size: 15px;
  line-height: 2;
  color: #5f6865;
  max-width: 490px;
}

.hero-live .hero-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 25px;
}

.hero-live .hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: 99px;
  background: #273338;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
  box-shadow: 0 12px 30px rgba(39,51,56,.18);
}

.hero-live .hero-secondary {
  color: #485451;
  text-decoration: none;
  font-size: 12px;
  padding: 10px;
}

.hero-stage {
  position: absolute;
  left: 2%;
  right: 0;
  top: 0;
  bottom: 0;
  z-index: 2;
  pointer-events: none;
}

.live-slide {
  position: absolute;
  left: 42%;
  top: 8%;
  width: 35%;
  height: 84%;
  opacity: 0;
  transition: opacity .8s var(--ek-ease);
  transform: translateY(15px);
}

.live-slide.active {
  opacity: 1;
  transform: translateY(0);
}

.live-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 32px;
  box-shadow: 0 28px 60px rgba(46,46,40,.18);
  animation: ek-kenburns 8s ease-in-out infinite alternate;
}

.live-slide:nth-child(2) {
  left: 47%;
  top: 14%;
  width: 29%;
  height: 72%;
}

.live-slide:nth-child(3) {
  left: 39%;
  top: 12%;
  width: 32%;
  height: 76%;
}

.hero-float {
  position: absolute;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,.62);
  backdrop-filter: blur(10px);
  box-shadow: 0 18px 40px rgba(50,50,45,.12);
  z-index: 7;
  animation: ek-float 5s ease-in-out infinite;
}

.hero-float.one {
  width: 72px;
  height: 72px;
  left: 12%;
  top: 15%;
  font-size: 29px;
}

.hero-float.two {
  width: 52px;
  height: 52px;
  left: 37%;
  bottom: 13%;
  font-size: 20px;
  animation-delay: -2s;
}

.hero-float.three {
  width: 42px;
  height: 42px;
  left: 70%;
  top: 13%;
  font-size: 18px;
  animation-delay: -3.2s;
}

.live-dots {
  position: absolute;
  left: 50%;
  bottom: 25px;
  transform: translateX(-50%);
  display: flex;
  gap: 7px;
  z-index: 9;
}

.live-dot {
  width: 28px;
  height: 4px;
  border: 0;
  border-radius: 99px;
  background: rgba(255,255,255,.58);
  padding: 0;
  cursor: pointer;
}

.live-dot.active {
  background: #fff;
  width: 42px;
}

/* Motion ribbon */

.motion-ribbon {
  width: 100%;
  overflow: hidden;
  margin-top: 18px;
  border-block: 1px solid var(--ek-line);
  background: rgba(255,255,255,.48);
}

.motion-track {
  width: max-content;
  display: flex;
  gap: 34px;
  padding: 13px 0;
  animation: ek-marquee 28s linear infinite;
}

.motion-track span {
  font-size: 11px;
  color: #6e7975;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 12px;
}

.motion-track i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ek-blush);
  display: inline-block;
}

/* categories / stories */

.categories-v2 .category-grid,.story-highlight-row,.story-feed {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(155px,1fr);
  gap: 14px;
  overflow-x: auto;
  padding: 5px 2px 14px;
  scrollbar-width: none;
}

.category-grid::-webkit-scrollbar,.story-highlight-row::-webkit-scrollbar,.story-feed::-webkit-scrollbar {
  display: none;
}

.category-card,.story-highlight,.story-card {
  border: 1px solid var(--ek-line);
  background: rgba(255,255,255,.78);
  border-radius: 24px;
  box-shadow: 0 8px 28px rgba(50,55,50,.04);
  transition: transform .35s var(--ek-ease),box-shadow .35s var(--ek-ease);
}

.category-card:hover,.story-highlight:hover,.story-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 20px 40px rgba(50,55,50,.10);
}

.category-card img {
  height: 180px !important;
  object-fit: cover;
  border-radius: 20px !important;
  margin: 8px !important;
  width: calc(100% - 16px) !important;
}

.category-card h3 {
  font-size: 13px;
  margin: 9px 13px 15px;
}

.story-highlight {
  padding: 9px;
  text-align: center;
}

.story-highlight img,.story-card img {
  border-radius: 50%;
  aspect-ratio: 1;
  object-fit: cover;
}

.story-highlight span {
  display: block;
  font-size: 11px;
  margin: 9px 0 4px;
}

.story-highlight:first-child img,.story-highlight:nth-child(2) img {
  border: 2px solid #efb1a9;
}

.story-card {
  padding: 10px;
}

.story-card img {
  border-radius: 18px;
  aspect-ratio: 1.1;
}

/* promo */

.promo-v2,.wholesale-banner,.snapp-banner {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  border: 1px solid var(--ek-line);
  box-shadow: var(--ek-shadow);
  background: linear-gradient(120deg,#f5e2dd,#f7efe6 58%,#e2ece6);
  min-height: 300px;
  padding: 45px;
  margin-top: 28px;
}

.promo-v2:after,.wholesale-banner:after {
  content: "";
  position: absolute;
  width: 330px;
  height: 330px;
  border-radius: 50%;
  right: -100px;
  top: -130px;
  background: rgba(255,255,255,.45);
  animation: ek-pulse 5s ease-in-out infinite;
}

.promo-v2>div,.wholesale-banner>div {
  position: relative;
  z-index: 2;
  max-width: 55%;
}

.promo-v2 img {
  position: absolute;
  left: 5%;
  bottom: -40px;
  width: 32%;
  height: 360px;
  object-fit: cover;
  border-radius: 150px 150px 25px 25px;
  transform: rotate(-4deg);
  box-shadow: 0 25px 50px rgba(50,50,45,.15);
}

.promo-v2 h2,.wholesale-banner h2 {
  font-size: 32px;
  letter-spacing: -.05em;
  margin: 10px 0;
}

.promo-v2 p,.wholesale-banner p {
  line-height: 2;
  color: #68716e;
  font-size: 13px;
}

.promo-v2 a {
  display: inline-flex;
  margin-top: 12px;
  color: var(--ek-blush-dark);
  font-weight: 800;
  text-decoration: none;
}

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

.campaign-card {
  border-radius: 25px;
  overflow: hidden;
  border: 1px solid var(--ek-line);
  background: #fff;
  box-shadow: var(--ek-shadow);
}

/* product grid */

.products-v2 .grid,.dynamic-product-section .grid,.new-grid {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 18px;
}

.card {
  background: rgba(255,255,255,.86) !important;
  border: 1px solid var(--ek-line) !important;
  border-radius: 25px !important;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(45,52,49,.045) !important;
  transition: transform .35s var(--ek-ease),box-shadow .35s var(--ek-ease);
}

.card:hover {
  transform: translateY(-8px) !important;
  box-shadow: 0 22px 50px rgba(45,52,49,.11) !important;
}

.card-media {
  background: #f4efe7 !important;
  position: relative;
}

.card-media img {
  transition: transform .7s var(--ek-ease) !important;
}

.card:hover .card-media img {
  transform: scale(1.045);
}

.card h3 {
  font-size: 14px !important;
  letter-spacing: -.02em;
}

.card .price,.card b {
  font-size: 15px !important;
}

.card .btn,.card button:not(.heart) {
  border-radius: 99px !important;
}

.heart {
  width: 36px !important;
  height: 36px !important;
  border-radius: 50% !important;
  background: rgba(255,255,255,.9) !important;
  box-shadow: 0 7px 18px rgba(0,0,0,.08) !important;
}

.product-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.product-toolbar select,.search-box-v2 input {
  border: 1px solid var(--ek-line);
  background: rgba(255,255,255,.75);
  border-radius: 99px;
  padding: 11px 14px;
  font: inherit;
  color: var(--ek-ink);
}

.search-box-v2 {
  background: #fff;
  border: 1px solid var(--ek-line);
  border-radius: 99px;
  display: flex;
  align-items: center;
  padding: 5px 16px;
  box-shadow: 0 10px 25px rgba(40,45,40,.04);
}

.search-box-v2 input {
  border: 0;
  box-shadow: none;
  width: 100%;
  outline: 0;
  background: transparent;
}

/* trust / footer */

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 12px;
  margin-top: 65px;
}

.trust-strip>div {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--ek-line);
  background: rgba(255,255,255,.6);
  border-radius: 20px;
}

.trust-strip>div>span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: #edf3ef;
  border-radius: 50%;
}

.trust-strip small {
  display: block;
  color: var(--ek-muted);
  margin-top: 3px;
}

.modern-footer {
  width: 100%;
  margin-top: 80px;
  padding: 60px max(30px,calc((100% - 1380px)/2));
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.4fr;
  gap: 50px;
  background: #e7eee9;
  border-radius: 42px 42px 0 0;
  position: relative;
  overflow: hidden;
}

.modern-footer:before {
  content: "";
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: rgba(255,255,255,.4);
  left: -240px;
  top: -330px;
}

.modern-footer>div {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.modern-footer a {
  color: #53605c;
  text-decoration: none;
  font-size: 12px;
}

.modern-footer a:hover {
  color: var(--ek-blush-dark);
  transform: translateX(-3px);
}

.modern-footer h4 {
  font-size: 14px;
  margin: 0 0 9px;
}

.footer-brand img {
  width: 140px;
  height: auto;
  object-fit: contain;
}

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

.footer-brand small,.modern-footer small {
  color: #77817e;
  line-height: 1.9;
}

.socials {
  display: flex !important;
  flex-direction: row !important;
  gap: 9px !important;
  margin-top: 8px;
}

.social {
  width: 40px;
  height: 40px !important;
  border-radius: 50%;
  background: #fff;
  display: grid !important;
  place-items: center;
}

.social img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

/* inner pages */

.detail-v2,.checkout,.content-page,.favorites-page,.track-page,.about-page,.contact-page,.account-shell {
  padding-top: 32px;
}

.detail-v2 {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 30px;
  align-items: start;
}

.product-gallery-v2,.info-v2,.product-extra-v2,.related-products,.checkout-panel,.shipping-choice-panel,.content-page>section,.about-page>section,.contact-page>section {
  background: rgba(255,255,255,.78) !important;
  border: 1px solid var(--ek-line) !important;
  border-radius: 30px !important;
  box-shadow: var(--ek-shadow) !important;
}

.product-gallery-v2 {
  padding: 18px;
}

.info-v2 {
  padding: 30px;
  position: sticky;
  top: 100px;
}

.info-v2 h1 {
  font-size: 36px;
  letter-spacing: -.05em;
}

.product-extra-v2,.related-products {
  padding: 25px;
  margin-top: 20px;
}

.checkout {
  max-width: 1100px;
}

.checkout>form,.checkout-panel,.shipping-choice-panel {
  border-radius: 28px;
}

.content-page {
  max-width: 1100px;
}

.content-page>section {
  padding: 32px;
  margin: 20px 0;
}

.about-hero,.contact-hero {
  min-height: 300px;
  display: flex;
  align-items: center;
}

.about-page h1,.contact-page h1 {
  font-size: 42px;
  letter-spacing: -.06em;
}

.favorites-page,.track-page {
  max-width: 1200px;
}

.track-page>*,.favorites-page>* {
  border-radius: 28px;
}

/* account */

.account-shell {
  max-width: 1250px;
}

.account-auth-hero,.account-profile-hero {
  border: 1px solid var(--ek-line) !important;
  border-radius: 32px !important;
  background: linear-gradient(120deg,#f4e7df,#fffaf5 58%,#e7efea) !important;
  box-shadow: var(--ek-shadow) !important;
}

.auth-method-card,.account-panel,.account-sidebar {
  border: 1px solid var(--ek-line) !important;
  border-radius: 28px !important;
  background: rgba(255,255,255,.82) !important;
  box-shadow: 0 12px 40px rgba(45,52,49,.06) !important;
}

.auth-main-tab,.auth-mode-tab,.account-nav,.order-tabs button {
  border-radius: 99px !important;
  border: 1px solid transparent !important;
}

.auth-main-tab.active,.auth-mode-tab.active,.order-tabs button.active {
  background: var(--ek-ink) !important;
  color: #fff !important;
}

.auth-main-tabs {
  background: #f3eee7 !important;
  border-radius: 99px !important;
  padding: 5px !important;
}

.auth-form-grid input,.profile-form-grid input,.profile-form-grid textarea,.address-form input,.address-form textarea,.location-field-card select {
  border: 1px solid var(--ek-line) !important;
  background: #fff !important;
  border-radius: 16px !important;
  min-height: 48px;
}

.auth-submit,.btn {
  border-radius: 99px !important;
}

.account-layout {
  gap: 18px !important;
}

.account-sidebar {
  padding: 10px !important;
}

/* motion */

.motion-card {
  animation: ek-float 6s ease-in-out infinite;
}

.motion-card:nth-child(2) {
  animation-delay: -1.5s;
}

.motion-card:nth-child(3) {
  animation-delay: -3s;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .7s var(--ek-ease),transform .7s var(--ek-ease);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@keyframes ek-rise {
  from {
    opacity: 0;
    transform: translateY(-50%) translateY(25px);
  }
  to {
    opacity: 1;
    transform: translateY(-50%);
  }
}

@keyframes ek-kenburns {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.045);
  }
}

@keyframes ek-float {
  0%,100% {
    transform: translateY(0) rotate(0);
  }
  50% {
    transform: translateY(-10px) rotate(2deg);
  }
}

@keyframes ek-pulse {
  0%,100% {
    transform: scale(1);
    opacity: .5;
  }
  50% {
    transform: scale(1.08);
    opacity: .8;
  }
}

@keyframes ek-marquee {
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion:reduce) {
  *,*:before,*:after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .001ms !important;
  }
}

/* MOBILE */

@media (max-width:900px) {
  .top {
    font-size: 10px;
    height: 27px;
  }
  .header-inner {
    width: calc(100% - 24px);
    min-height: 64px;
    grid-template-columns: 42px 1fr 110px;
    gap: 8px;
  }
  .main-nav {
    display: none;
  }
  .mobile-menu {
    display: block;
    order: 3;
  }
  .modern-logo {
    order: 2;
  }
  .modern-logo img {
    width: 95px !important;
    height: auto !important;
  }
  .header-tools {
    order: 1;
    gap: 5px;
  }
  .header-tools .tool {
    width: 36px;
    height: 36px;
  }
  .header-tools .search-link,.header-tools .track-tool,.header-tools .heart-tool {
    display: none;
  }
  section,.products-v2,.content-page,.checkout,.account-shell,.favorites-page,.track-page,.about-page,.contact-page {
    width: calc(100% - 24px);
  }
  .section-heading {
    margin: 44px 0 17px;
    align-items: center;
  }
  .section-heading h2 {
    font-size: 21px;
  }
  .section-heading>span {
    display: none;
  }
  .hero-live {
    width: calc(100% - 24px);
    min-height: 600px;
    margin-top: 12px;
    border-radius: 25px;
  }
  .hero-live .live-copy {
    right: 7%;
    top: 8%;
    transform: none;
    width: 86%;
    text-align: center;
  }
  .hero-live h1 {
    font-size: 39px;
    margin: 12px 0 7px;
  }
  .hero-live p {
    font-size: 12px;
    line-height: 1.9;
  }
  .hero-live .hero-actions {
    justify-content: center;
    margin-top: 15px;
  }
  .hero-stage {
    top: 40%;
    left: 0;
    right: 0;
    height: 58%;
  }
  .live-slide {
    left: 16%;
    top: 4%;
    width: 68%;
    height: 88%;
  }
  .live-slide:nth-child(2) {
    left: 24%;
    top: 10%;
    width: 57%;
    height: 76%;
  }
  .live-slide:nth-child(3) {
    left: 10%;
    top: 8%;
    width: 63%;
    height: 80%;
  }
  .hero-float.one {
    left: 5%;
    top: 43%;
    width: 50px;
    height: 50px;
    font-size: 20px;
  }
  .hero-float.two {
    left: 8%;
    bottom: 8%;
    width: 42px;
    height: 42px;
  }
  .hero-float.three {
    left: auto;
    right: 7%;
    top: 46%;
    width: 38px;
    height: 38px;
  }
  .live-dots {
    bottom: 13px;
  }
  .categories-v2 .category-grid,.story-highlight-row {
    grid-auto-columns: 116px;
    gap: 10px;
  }
  .category-card img {
    height: 112px !important;
  }
  .category-card h3 {
    font-size: 11px;
  }
  .story-highlight {
    padding: 7px;
  }
  .story-highlight span {
    font-size: 10px;
  }
  .promo-v2,.wholesale-banner,.snapp-banner {
    min-height: 260px;
    padding: 24px;
    border-radius: 24px;
  }
  .promo-v2>div,.wholesale-banner>div {
    max-width: 100%;
  }
  .promo-v2 h2,.wholesale-banner h2 {
    font-size: 23px;
  }
  .promo-v2 p,.wholesale-banner p {
    font-size: 11px;
  }
  .promo-v2 img {
    width: 45%;
    height: 210px;
    left: -2%;
    bottom: -20px;
  }
  .products-v2 .grid,.dynamic-product-section .grid,.new-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 10px;
  }
  .card {
    border-radius: 18px !important;
  }
  .card h3 {
    font-size: 11px !important;
  }
  .card .price,.card b {
    font-size: 12px !important;
  }
  .card-media img {
    min-height: 180px;
  }
  .trust-strip {
    grid-template-columns: repeat(2,1fr);
    gap: 8px;
    margin-top: 40px;
  }
  .trust-strip>div {
    padding: 12px;
    border-radius: 16px;
  }
  .trust-strip>div>span {
    width: 34px;
    height: 34px;
  }
  .modern-footer {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    padding: 40px 24px 110px;
    border-radius: 30px 30px 0 0;
  }
  .footer-brand {
    grid-column: 1/-1;
  }
  .modern-footer h4 {
    font-size: 12px;
  }
  .modern-footer a {
    font-size: 11px;
  }
  .detail-v2 {
    display: block;
    padding-top: 10px;
  }
  .info-v2 {
    position: static;
    margin-top: 14px;
    padding: 22px;
  }
  .info-v2 h1 {
    font-size: 25px;
  }
  .product-gallery-v2,.info-v2,.product-extra-v2,.related-products,.checkout-panel,.shipping-choice-panel,.content-page>section,.about-page>section,.contact-page>section {
    border-radius: 23px !important;
  }
  .about-page h1,.contact-page h1 {
    font-size: 30px;
  }
  .auth-form-grid {
    grid-template-columns: 1fr !important;
  }
  .account-auth-hero {
    padding: 24px !important;
  }
  .account-layout {
    display: block !important;
  }
  .account-sidebar {
    display: none !important;
  }
  .account-main {
    margin-top: 14px;
  }
  .auth-method-card {
    padding: 12px !important;
  }
  .auth-main-tabs {
    display: flex !important;
  }
  .auth-main-tab {
    flex: 1;
  }
}

/* mobile bottom navigation */

.ek-bottom-nav {
  display: none;
}

@media (max-width:900px) {
  .ek-bottom-nav {
    position: fixed;
    display: grid;
    grid-template-columns: repeat(5,1fr);
    align-items: center;
    left: 10px;
    right: 10px;
    bottom: 10px;
    height: 66px;
    z-index: 100;
    background: rgba(255,253,249,.93);
    backdrop-filter: blur(18px);
    border: 1px solid rgba(39,51,56,.10);
    border-radius: 24px;
    box-shadow: 0 16px 50px rgba(35,43,40,.18);
    padding: 5px;
  }
  .ek-bottom-nav a {
    display: grid;
    place-items: center;
    gap: 2px;
    text-decoration: none;
    color: #7b8481;
    font-size: 9px;
    height: 54px;
    border-radius: 18px;
  }
  .ek-bottom-nav a span {
    font-size: 20px;
    line-height: 1;
  }
  .ek-bottom-nav a.active {
    background: #f2e1dc;
    color: #bd6e64;
  }
  body {
    padding-bottom: 78px;
  }
}

/* print / legacy cleanup */

@media (max-width:600px) {
  .search-section-v2 {
    margin-top: 20px;
  }
  .product-toolbar {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .product-toolbar select {
    min-width: 0;
  }
  .seo-home-section {
    padding-bottom: 20px;
  }
}

/* =========================================================
   ECELAND KIDS — REDESIGN v2 / MOTION SYSTEM
   Motion is visual-first but performance-aware.
   ========================================================= */

:root {
  --ek-coral: #d98479;
  --ek-peach: #f4ded6;
  --ek-mint: #dce9e2;
  --ek-dark: #243136;
  --ek-soft-shadow: 0 24px 70px rgba(43,49,47,.11);
}

body:after {
  content: "";
  position: fixed;
  inset: auto 0 0;
  z-index: 70;
  height: 1px;
  background: linear-gradient(90deg,transparent,var(--ek-coral),transparent);
  transform: scaleX(0);
  transform-origin: right;
  pointer-events: none;
  animation: ek-page-line 1.1s var(--ek-ease) .2s forwards;
}

@keyframes ek-page-line {
  to {
    transform: scaleX(1);
  }
}

/* Header polish shared by all storefront pages */

.modern-header,.checkout>header,body>header:not(.modern-header) {
  isolation: isolate;
}

.modern-header:before,body>header:not(.modern-header):before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg,rgba(244,222,214,.28),transparent 35%,rgba(220,233,226,.24));
  pointer-events: none;
}

.modern-header .tool,.checkout>header .actions,.checkout>header .menu,body>header:not(.modern-header) .menu {
  transition: transform .35s var(--ek-ease),box-shadow .35s var(--ek-ease),background .35s;
}

.modern-header .tool:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 12px 30px rgba(36,49,54,.12);
}

.main-nav a {
  position: relative;
}

.main-nav a:after {
  content: "";
  position: absolute;
  right: 50%;
  bottom: -8px;
  width: 0;
  height: 2px;
  border-radius: 99px;
  background: var(--ek-coral);
  transition: width .35s var(--ek-ease),right .35s var(--ek-ease);
}

.main-nav a:hover:after,.main-nav a.active:after {
  width: 20px;
  right: calc(50% - 10px);
}

/* Hero v2 */

.hero-live {
  min-height: 590px;
  box-shadow: var(--ek-soft-shadow);
  background: linear-gradient(120deg,#f4e5dc 0%,#fbf6ee 48%,#e3eee8 100%);
}

.hero-live .live-backdrop {
  background: radial-gradient(circle at 82% 24%,rgba(255,255,255,.82),transparent 23%),
  radial-gradient(circle at 68% 88%,rgba(217,234,226,.85),transparent 27%),
  linear-gradient(120deg,#eddcd0,#fbf6ee 50%,#e2ede7);
}

.live-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(3px);
  pointer-events: none;
  z-index: 1;
}

.glow-a {
  width: 280px;
  height: 280px;
  right: 40%;
  top: -100px;
  background: rgba(255,255,255,.55);
  animation: ek-orb 9s ease-in-out infinite;
}

.glow-b {
  width: 180px;
  height: 180px;
  left: 5%;
  bottom: -80px;
  background: rgba(232,160,150,.16);
  animation: ek-orb 7s ease-in-out -2s infinite reverse;
}

@keyframes ek-orb {
  0%,100% {
    transform: translate3d(0,0,0) scale(1);
  }
  50% {
    transform: translate3d(18px,12px,0) scale(1.08);
  }
}

.hero-live .live-copy {
  width: 40%;
  right: 6.5%;
  z-index: 12;
}

.hero-live .eyebrow {
  box-shadow: 0 10px 25px rgba(49,56,54,.06);
  border: 1px solid rgba(255,255,255,.7);
}

.hero-live .eyebrow i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
  background: #6f9c8b;
  margin-left: 7px;
  box-shadow: 0 0 0 5px rgba(111,156,139,.12);
  animation: ek-live-dot 1.7s ease-in-out infinite;
}

@keyframes ek-live-dot {
  0%,100% {
    opacity: .55;
    transform: scale(.85);
  }
  50% {
    opacity: 1;
    transform: scale(1.15);
  }
}

.hero-kicker {
  font-size: 11px;
  color: #9a6b63;
  font-weight: 800;
  margin-top: 18px;
}

.hero-live h1 {
  font-weight: 700;
}

.hero-live p {
  max-width: 470px;
}

.hero-microstats {
  display: flex;
  gap: 8px;
  margin-top: 22px;
}

.hero-microstats span {
  min-width: 100px;
  padding: 9px 11px;
  border: 1px solid rgba(39,51,56,.07);
  border-radius: 16px;
  background: rgba(255,255,255,.42);
  backdrop-filter: blur(9px);
}

.hero-microstats b,.hero-microstats small {
  display: block;
}

.hero-microstats b {
  font-size: 10px;
}

.hero-microstats small {
  font-size: 8px;
  color: #89918e;
  margin-top: 3px;
}

.hero-cta {
  position: relative;
  overflow: hidden;
}

.hero-cta:before {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-110%);
  background: linear-gradient(100deg,transparent,rgba(255,255,255,.25),transparent);
  animation: ek-shimmer 3.8s ease-in-out infinite;
}

@keyframes ek-shimmer {
  0%,60% {
    transform: translateX(-110%);
  }
  78%,100% {
    transform: translateX(110%);
  }
}

.hero-stage {
  left: 0;
  right: 2%;
  perspective: 1000px;
}

.live-slide {
  left: 45%;
  top: 7%;
  width: 35%;
  height: 86%;
  transition: opacity .85s var(--ek-ease),transform .85s var(--ek-ease);
  transform: translate3d(22px,18px,0) rotateY(-5deg) scale(.97);
}

.live-slide.active {
  transform: translate3d(0,0,0) rotateY(0) scale(1);
}

.live-slide .slide-frame {
  height: 100%;
  width: 100%;
  position: relative;
  overflow: hidden;
  border-radius: 36px;
  box-shadow: 0 34px 80px rgba(40,47,44,.20);
  background: #eee5dc;
}

.live-slide .slide-frame:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg,transparent 45%,rgba(255,255,255,.23),transparent 65%);
  transform: translateX(-120%);
  animation: ek-image-sheen 7s ease-in-out infinite;
  pointer-events: none;
}

@keyframes ek-image-sheen {
  0%,55% {
    transform: translateX(-120%);
  }
  72%,100% {
    transform: translateX(120%);
  }
}

.live-slide img {
  display: block;
  object-fit: cover;
  animation: ek-kenburns 9s ease-in-out infinite alternate;
  will-change: transform;
}

.live-slide:nth-child(2) {
  left: 48%;
  top: 13%;
  width: 30%;
  height: 73%;
  transform: translate3d(30px,20px,0) rotateY(-8deg) scale(.95);
}

.live-slide:nth-child(3) {
  left: 40%;
  top: 10%;
  width: 33%;
  height: 78%;
  transform: translate3d(26px,18px,0) rotateY(-7deg) scale(.96);
}

.live-slide:nth-child(2) .slide-frame,.live-slide:nth-child(3) .slide-frame {
  border-radius: 30px;
}

.hero-orbit {
  position: absolute;
  border: 1px solid rgba(90,113,104,.16);
  border-radius: 50%;
  pointer-events: none;
}

.orbit-a {
  width: 410px;
  height: 410px;
  right: 8%;
  top: 7%;
  animation: ek-orbit 18s linear infinite;
}

.orbit-b {
  width: 520px;
  height: 520px;
  right: 3%;
  top: -2%;
  border-color: rgba(217,132,121,.12);
  animation: ek-orbit 26s linear -4s infinite reverse;
}

@keyframes ek-orbit {
  to {
    transform: rotate(360deg);
  }
}

.hero-caption {
  position: absolute;
  left: 6%;
  bottom: 36px;
  z-index: 15;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-shadow: 0 2px 14px rgba(0,0,0,.18);
}

.hero-caption-index {
  font-size: 28px;
  font-weight: 300;
  opacity: .9;
}

.hero-caption b,.hero-caption small {
  display: block;
}

.hero-caption b {
  font-size: 11px;
}

.hero-caption small {
  font-size: 8px;
  opacity: .8;
  margin-top: 2px;
}

.live-dots {
  bottom: 27px;
  left: auto;
  right: 7%;
  transform: none;
}

.live-dot {
  height: 3px;
  width: 24px;
  transition: width .35s var(--ek-ease),background .35s;
}

.live-dot.active {
  width: 44px;
}

.hero-progress {
  position: absolute;
  left: 7%;
  right: 7%;
  bottom: 15px;
  height: 2px;
  background: rgba(255,255,255,.38);
  z-index: 14;
  overflow: hidden;
  border-radius: 99px;
}

.hero-progress span {
  display: block;
  height: 100%;
  width: 33.333%;
  background: #fff;
  transform-origin: right;
  animation: ek-progress 5.2s linear infinite;
}

@keyframes ek-progress {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

.hero-float {
  border: 1px solid rgba(255,255,255,.7);
}

.hero-float.one {
  animation-duration: 6.5s;
}

.hero-float.two {
  animation-duration: 5.4s;
}

.hero-float.three {
  animation-duration: 7.2s;
}

/* More intentional motion across sections */

.category-card,.story-highlight,.card,.promo-v2,.wholesale-banner,.trust-strip>div,.content-card,.checkout-panel,.product-gallery-v2,.info-v2,.account-panel,.account-sidebar {
  will-change: transform;
}

.category-card:hover,.story-highlight:hover {
  transform: translateY(-8px) scale(1.015);
}

.card:hover .card-media {
  background: #f7f1ea;
}

.card .btn,.card .heart {
  transition: transform .3s var(--ek-ease),box-shadow .3s var(--ek-ease);
}

.card:hover .btn {
  transform: translateY(-2px);
}

.motion-ribbon {
  position: relative;
}

.motion-ribbon:before,.motion-ribbon:after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 70px;
  z-index: 2;
  pointer-events: none;
}

.motion-ribbon:before {
  right: 0;
  background: linear-gradient(90deg,rgba(251,248,242,0),var(--ek-cream));
}

.motion-ribbon:after {
  left: 0;
  background: linear-gradient(270deg,rgba(251,248,242,0),var(--ek-cream));
}

.section-heading h2 {
  position: relative;
}

.section-heading h2:after {
  content: "";
  display: block;
  width: 34px;
  height: 3px;
  border-radius: 99px;
  background: linear-gradient(90deg,var(--ek-coral),#eab5ad);
  margin-top: 9px;
  transform-origin: right;
  animation: ek-heading-line 1.4s var(--ek-ease) both;
}

@keyframes ek-heading-line {
  from {
    transform: scaleX(0);
    opacity: 0;
  }
  to {
    transform: scaleX(1);
    opacity: 1;
  }
}

/* Legacy/simple headers get the same visual language */

body>header:not(.modern-header),.checkout>header {
  position: sticky;
  top: 0;
  z-index: 80;
  min-height: 74px;
  padding: 0 max(18px,calc((100% - 1380px)/2));
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  background: rgba(255,253,249,.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--ek-line);
  box-shadow: 0 5px 25px rgba(40,45,40,.04);
}

body>header:not(.modern-header) .logo-img,.checkout>header .logo-img {
  justify-self: center;
}

body>header:not(.modern-header) .logo-img img,.checkout>header .logo-img img {
  width: 105px;
  height: auto;
}

body>header:not(.modern-header) .menu,.checkout>header .menu {
  justify-self: start;
  text-decoration: none;
  color: #485451;
  font-size: 12px;
  padding: 10px 14px;
  border-radius: 99px;
  background: rgba(255,255,255,.72);
  border: 1px solid var(--ek-line);
}

body>header:not(.modern-header) .menu:hover,.checkout>header .menu:hover {
  transform: translateX(-3px);
  background: #fff;
}

.checkout>header .actions {
  justify-self: end;
}

.checkout-badge {
  padding: 9px 14px;
  border-radius: 99px;
  background: #edf4ef;
  color: #55766a;
  font-size: 10px;
  border: 1px solid #dce9e2;
}

/* Inner-page editorial shell */

.content-page {
  padding-top: 38px;
  padding-bottom: 70px;
}

.content-page .content-card {
  position: relative;
  overflow: hidden;
  background: rgba(255,255,255,.78);
  border: 1px solid var(--ek-line);
  border-radius: 32px;
  box-shadow: var(--ek-soft-shadow);
  padding: 34px;
}

.content-page .content-card:before {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  left: -110px;
  top: -140px;
  background: rgba(244,222,214,.45);
  pointer-events: none;
}

.content-page .content-card>* {
  position: relative;
  z-index: 1;
}

.content-page h1 {
  font-size: 34px;
  letter-spacing: -.05em;
  margin: 0 0 14px;
}

.content-page h2 {
  font-size: 21px;
  margin-top: 28px;
}

.content-page p,.content-page li {
  color: #69736f;
  line-height: 2;
}

.checkout {
  padding-bottom: 70px;
}

.checkout-title {
  padding: 35px 0 18px;
}

.checkout-title h1 {
  font-size: 34px;
  letter-spacing: -.05em;
}

.checkout-title p {
  color: #76817d;
  line-height: 2;
}

.checkout-items,.checkout-summary,.form {
  background: rgba(255,255,255,.78);
  border: 1px solid var(--ek-line);
  border-radius: 28px;
  box-shadow: var(--ek-soft-shadow);
  padding: 22px;
  margin-top: 14px;
}

.checkout-steps {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}

.checkout-steps span {
  padding: 8px 12px;
  border-radius: 99px;
  background: #f1f5f2;
  color: #72817b;
  font-size: 10px;
}

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

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

/* Product detail v2 polish */

.detail-v2 {
  padding-bottom: 80px;
}

.breadcrumbs {
  display: flex;
  gap: 9px;
  align-items: center;
  color: #8a928e;
  font-size: 10px;
  margin: 20px 0;
}

.breadcrumbs a {
  color: #61776e;
  text-decoration: none;
}

.product-gallery-v2 {
  overflow: hidden;
}

.gallery .mainimg {
  transition: transform .65s var(--ek-ease);
}

.gallery-open:hover .mainimg {
  transform: scale(1.025);
}

.info-v2 {
  overflow: hidden;
}

.info-v2:before {
  content: "";
  position: absolute;
  left: -80px;
  bottom: -120px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: rgba(220,233,226,.5);
  pointer-events: none;
}

.info-v2>* {
  position: relative;
}

.add-cart-v2 {
  box-shadow: 0 16px 35px rgba(39,51,56,.16) !important;
  transition: transform .3s var(--ek-ease),box-shadow .3s var(--ek-ease) !important;
}

.add-cart-v2:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 22px 45px rgba(39,51,56,.2) !important;
}

/* Global image quality / loading feel */

img {
  image-rendering: auto;
}

.card-media img,.gallery img,.compare-img {
  backface-visibility: hidden;
  transform: translateZ(0);
}

@media (max-width:900px) {
  .hero-live {
    min-height: 620px;
    border-radius: 26px;
  }
  .hero-live .live-copy {
    right: 6%;
    top: 7%;
    width: 88%;
    text-align: center;
  }
  .hero-kicker {
    margin-top: 13px;
    font-size: 10px;
  }
  .hero-live h1 {
    font-size: 39px;
  }
  .hero-live p {
    font-size: 11px;
    max-width: 340px;
    margin-inline: auto;
  }
  .hero-microstats {
    justify-content: center;
    gap: 5px;
    margin-top: 13px;
  }
  .hero-microstats span {
    min-width: 0;
    flex: 1;
    padding: 8px 5px;
  }
  .hero-microstats b {
    font-size: 8px;
  }
  .hero-microstats small {
    font-size: 7px;
  }
  .hero-stage {
    top: 39%;
    height: 58%;
    right: 0;
  }
  .live-slide {
    left: 15%;
    top: 3%;
    width: 70%;
    height: 90%;
  }
  .live-slide:nth-child(2) {
    left: 23%;
    top: 8%;
    width: 58%;
    height: 80%;
  }
  .live-slide:nth-child(3) {
    left: 10%;
    top: 6%;
    width: 64%;
    height: 84%;
  }
  .live-slide .slide-frame {
    border-radius: 26px;
  }
  .orbit-a {
    width: 280px;
    height: 280px;
    right: 0;
    top: 6%;
  }
  .orbit-b {
    width: 360px;
    height: 360px;
    right: -30px;
    top: -8%;
  }
  .hero-float.one {
    left: 4%;
    top: 48%;
    width: 44px;
    height: 44px;
  }
  .hero-float.two {
    left: 8%;
    bottom: 10%;
    width: 38px;
    height: 38px;
  }
  .hero-float.three {
    right: 5%;
    left: auto;
    top: 52%;
    width: 34px;
    height: 34px;
  }
  .hero-caption {
    left: 6%;
    bottom: 29px;
  }
  .hero-caption-index {
    font-size: 22px;
  }
  .hero-caption b {
    font-size: 9px;
  }
  .hero-caption small {
    font-size: 7px;
  }
  .live-dots {
    right: 6%;
    bottom: 43px;
  }
  .hero-progress {
    left: 6%;
    right: 6%;
    bottom: 13px;
  }
  .section-heading {
    margin-top: 42px;
  }
  .section-heading h2:after {
    width: 26px;
    height: 2px;
    margin-top: 6px;
  }
  body>header:not(.modern-header),.checkout>header {
    min-height: 62px;
    padding: 0 12px;
  }
  .content-page {
    padding-top: 20px;
  }
  .content-page .content-card {
    padding: 23px;
    border-radius: 24px;
  }
  .content-page h1,.checkout-title h1 {
    font-size: 25px;
  }
  .checkout-items,.checkout-summary,.form {
    padding: 15px;
    border-radius: 22px;
  }
}

@media (max-width:520px) {
  .hero-live {
    min-height: 600px;
  }
  .hero-live .hero-actions {
    margin-top: 12px;
  }
  .hero-cta {
    padding: 11px 17px !important;
    font-size: 11px !important;
  }
  .hero-secondary {
    font-size: 10px !important;
  }
  .hero-microstats {
    display: none;
  }
  .hero-caption {
    display: none;
  }
  .hero-progress {
    bottom: 10px;
  }
  .live-dots {
    bottom: 22px;
  }
  .live-dot {
    width: 18px;
  }
  .live-dot.active {
    width: 32px;
  }
  .motion-track {
    animation-duration: 22s;
  }
  .category-card,.story-highlight {
    border-radius: 18px;
  }
  .category-card:hover,.story-highlight:hover {
    transform: translateY(-4px);
  }
}

/* Inner-page motion accents */

.seo-hero,.about-hero,.contact-hero,.payment-result-card {
  position: relative;
  overflow: hidden;
}

.seo-hero:before,.about-hero:before,.contact-hero:before,.payment-result-card:before {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  left: -80px;
  top: -110px;
  background: rgba(244,222,214,.55);
  animation: ek-orb 10s ease-in-out infinite;
  pointer-events: none;
}

.seo-hero:after,.about-hero:after,.contact-hero:after {
  content: "✦";
  position: absolute;
  right: 6%;
  top: 16%;
  font-size: 22px;
  color: rgba(216,132,121,.4);
  animation: ek-float 5s ease-in-out infinite;
  pointer-events: none;
}

.compare-grid .content-card,.favorites-page .card {
  transition: transform .35s var(--ek-ease),box-shadow .35s var(--ek-ease);
}

.compare-grid .content-card:hover,.favorites-page .card:hover {
  transform: translateY(-6px);
  box-shadow: var(--ek-soft-shadow);
}

.payment-result-card {
  box-shadow: var(--ek-soft-shadow) !important;
  border-radius: 32px !important;
}

.payment-result-card .result-icon {
  animation: ek-float 4.5s ease-in-out infinite;
}

@media (prefers-reduced-motion:reduce) {
  .hero-live *,.motion-ribbon *,.seo-hero:before,.about-hero:before,.contact-hero:before,.payment-result-card .result-icon {
    animation: none !important;
  }
}

/* v56.20 product SEO editor */

.seo-editor {
  grid-column: 1/-1;
}

.seo-admin-preview {
  margin-top: 12px;
  padding: 16px 18px;
  border: 1px solid rgba(74,110,101,.16);
  border-radius: 18px;
  background: linear-gradient(135deg,#fffdf9,#f5f8f5);
  display: grid;
  gap: 6px;
}

.seo-admin-preview small {
  color: #7b8984;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
}

.seo-admin-preview b {
  color: #2765c4;
  font-size: 18px;
  line-height: 1.5;
}

.seo-admin-preview span {
  color: #4d806e;
  font-size: 12px;
  direction: ltr;
  text-align: right;
}

.seo-admin-preview p {
  margin: 0;
  color: #5d625f;
  line-height: 1.9;
  font-size: 13px;
}

.seo-admin-preview em {
  color: #8a8f8c;
  font-size: 11px;
  font-style: normal;
}

@media (max-width:700px) {
  .seo-editor {
    grid-column: auto;
  }
  .seo-admin-preview b {
    font-size: 16px;
  }
}

/* =========================================================
   V56.21 — MOBILE HEADER + SEO FLOW POLISH
   ========================================================= */

@media (max-width:900px) {
  .top {
    height: 30px;
    min-height: 30px;
    padding: 0 10px;
    white-space: nowrap;
    overflow: hidden;
    font-size: 10px;
    gap: 7px;
  }
  .modern-header {
    position: sticky;
    top: 0;
    min-height: 66px;
    height: 66px;
  }
  .header-inner {
    width: calc(100% - 20px);
    height: 66px;
    min-height: 66px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 0;
  }
  .mobile-menu {
    display: grid;
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(39,51,56,.08);
    border-radius: 50%;
    background: rgba(255,255,255,.78);
    font-size: 0;
    line-height: 1;
  }
  .mobile-menu:after {
    content: '☰';
    font-size: 22px;
    color: #273338;
  }
  .modern-logo {
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
    order: initial;
    width: 88px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .modern-logo img,.logo-img img {
    width: 88px !important;
    height: 50px !important;
    max-width: 88px !important;
    max-height: 50px !important;
    object-fit: contain;
  }
  .modern-logo:after {
    bottom: -1px;
    width: 20px;
    height: 2px;
  }
  .header-tools {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    order: initial;
    display: flex;
    align-items: center;
    gap: 5px;
  }
  .header-tools .tool {
    width: 38px;
    height: 38px;
  }
  .header-tools .search-link,.header-tools .track-tool,.header-tools .heart-tool {
    display: none;
  }
  .header-tools .tool:not(.cart-tool):not(.search-link) {
    display: grid;
  }
  .cart-tool {
    font-size: 17px;
  }
  .cart-tool em {
    right: -3px;
    top: -3px;
    min-width: 17px;
    height: 17px;
    font-size: 9px;
  }
  .hero-live {
    margin-top: 14px;
  }
  .seo-home-section {
    margin-top: 58px !important;
    margin-bottom: 0 !important;
    padding-top: 0;
  }
  .seo-home-section .section-heading {
    margin-top: 0;
  }
}

@media (max-width:520px) {
  .header-inner {
    width: calc(100% - 16px);
  }
  .mobile-menu {
    width: 40px;
    height: 40px;
  }
  .modern-logo,.modern-logo img {
    width: 82px !important;
    max-width: 82px !important;
  }
  .modern-logo,.modern-logo img {
    height: 48px !important;
    max-height: 48px !important;
  }
  .header-tools .tool {
    width: 36px;
    height: 36px;
  }
  .seo-home-section {
    width: calc(100% - 24px) !important;
  }
  .seo-home-copy {
    padding: 22px !important;
  }
  .seo-home-copy p {
    font-size: 11px !important;
    line-height: 2 !important;
  }
  .seo-home-links {
    gap: 8px !important;
  }
  .seo-home-links a {
    padding: 10px 13px !important;
    font-size: 10px !important;
  }
}

/* v56.22 — Product AI assistant */

.editor-head-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.ai-product-trigger {
  border: 1px solid rgba(120,90,75,.22);
  background: linear-gradient(135deg,#fff8f1,#f4eee8);
  font-weight: 800;
}

.ai-modal[hidden] {
  display: none !important;
}

.ai-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 20px;
}

.ai-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(35,27,24,.52);
  backdrop-filter: blur(7px);
}

.ai-modal-card {
  position: relative;
  width: min(1040px,100%);
  max-height: min(88vh,900px);
  overflow: auto;
  border: 1px solid rgba(100,75,60,.14);
  border-radius: 28px;
  background: #fffdfa;
  box-shadow: 0 30px 90px rgba(35,27,24,.25);
  padding: 24px;
}

.ai-modal-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  border-bottom: 1px solid rgba(100,75,60,.1);
  padding-bottom: 18px;
  margin-bottom: 18px;
}

.ai-modal-head h2 {
  margin: 5px 0 6px;
  font-size: 25px;
}

.ai-modal-head p {
  margin: 0;
  color: #786d67;
}

.ai-kicker {
  font-size: 10px;
  letter-spacing: .16em;
  color: #a27c67;
  font-weight: 900;
}

.ai-close {
  border: 0;
  background: #f2ece7;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 25px;
  cursor: pointer;
}

.ai-modal-grid {
  display: grid;
  grid-template-columns: minmax(280px,.82fr) minmax(320px,1.18fr);
  gap: 18px;
}

.ai-input-card,.ai-result-card {
  border: 1px solid rgba(100,75,60,.1);
  border-radius: 22px;
  background: #fff;
  padding: 18px;
}

.ai-input-card label {
  display: block;
  font-weight: 800;
  font-size: 13px;
  margin-bottom: 8px;
}

.ai-input-card textarea,.ai-input-card input,.ai-input-card select {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #ddd2ca;
  background: #fffdfa;
  border-radius: 14px;
  padding: 12px;
  font: inherit;
  outline: none;
  margin: 0 0 12px;
}

.ai-input-card textarea {
  resize: vertical;
  min-height: 130px;
}

.ai-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.ai-two-col label {
  font-size: 12px;
}

.ai-two-col select,.ai-two-col input {
  margin-top: 7px;
}

.ai-source-note {
  font-size: 11px;
  line-height: 1.9;
  color: #756a63;
  background: #faf4ef;
  border-radius: 14px;
  padding: 10px 12px;
  margin: 3px 0 14px;
}

.ai-generate-btn {
  background: linear-gradient(135deg,#3e302b,#71574a);
  color: #fff;
}

.ai-result-empty {
  min-height: 420px;
  display: grid;
  place-items: center;
  align-content: center;
  text-align: center;
  gap: 10px;
  color: #82756d;
}

.ai-result-empty span {
  font-size: 42px;
}

.ai-result-empty b {
  color: #3d322d;
}

.ai-result-empty small {
  max-width: 330px;
  line-height: 1.8;
}

.ai-result {
  display: grid;
  gap: 12px;
}

.ai-result-row {
  padding: 12px 14px;
  border-radius: 15px;
  background: #fbf7f3;
  border: 1px solid rgba(100,75,60,.08);
}

.ai-result-row span {
  display: block;
  font-size: 10px;
  color: #9a8274;
  font-weight: 900;
  margin-bottom: 5px;
}

.ai-result-row b,.ai-result-row p {
  margin: 0;
  line-height: 1.9;
}

.ai-result-actions {
  display: flex;
  gap: 8px;
  position: sticky;
  bottom: 0;
  background: #fff;
  padding-top: 8px;
}

@media (max-width:760px) {
  .editor-head-actions {
    align-items: flex-start;
  }
  .editor-head-actions .editor-status {
    display: none;
  }
  .ai-modal {
    padding: 10px;
  }
  .ai-modal-card {
    border-radius: 22px;
    padding: 15px;
    max-height: 94vh;
  }
  .ai-modal-grid {
    grid-template-columns: 1fr;
  }
  .ai-modal-head h2 {
    font-size: 21px;
  }
  .ai-two-col {
    grid-template-columns: 1fr;
  }
  .ai-result-empty {
    min-height: 180px;
  }
  .ai-result-actions {
    flex-direction: column;
  }
  .ai-result-actions .btn {
    width: 100%;
  }
}

/* =========================================================
   V56.23 — Persian AI customer chat
   ========================================================= */

.ai-chat-launcher {
  position: fixed;
  right: 20px;
  bottom: 24px;
  z-index: 9500;
  width: 60px;
  height: 60px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  background: linear-gradient(145deg,#3e302b,#7b5f50);
  color: #fff;
  box-shadow: 0 16px 42px rgba(55,38,30,.25);
  font-size: 25px;
  transition: transform .25s ease,box-shadow .25s ease;
}

.ai-chat-launcher:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 48px rgba(55,38,30,.31);
}

.ai-chat-launcher em {
  position: absolute;
  right: -1px;
  top: -2px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #8fb29e;
  border: 2px solid #fff;
}

.ai-chat-panel {
  position: fixed;
  right: 20px;
  bottom: 96px;
  z-index: 9501;
  width: min(390px,calc(100vw - 28px));
  height: min(650px,calc(100vh - 125px));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(96,72,60,.13);
  border-radius: 28px;
  background: #fffdfa;
  box-shadow: 0 28px 90px rgba(42,31,26,.23);
  direction: rtl;
}

.ai-chat-panel[hidden],.ai-chat-launcher[hidden] {
  display: none;
}

.ai-chat-head {
  padding: 16px 17px 14px;
  background: linear-gradient(135deg,#f9eee6,#f4f7f2);
  border-bottom: 1px solid rgba(96,72,60,.09);
  display: flex;
  align-items: center;
  gap: 11px;
}

.ai-chat-avatar {
  width: 42px;
  height: 42px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  background: #fff;
  color: #6e5547;
  box-shadow: 0 6px 18px rgba(72,50,39,.08);
  font-size: 20px;
}

.ai-chat-head-copy {
  flex: 1;
  min-width: 0;
}

.ai-chat-head-copy b {
  display: block;
  color: #3d302b;
  font-size: 14px;
}

.ai-chat-head-copy small {
  display: block;
  color: #7f756f;
  font-size: 10px;
  margin-top: 3px;
}

.ai-chat-head-actions {
  display: flex;
  gap: 5px;
}

.ai-chat-icon-btn {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 11px;
  background: rgba(255,255,255,.7);
  color: #66574f;
  cursor: pointer;
  font: inherit;
}

.ai-chat-messages {
  flex: 1;
  overflow: auto;
  padding: 15px 13px 12px;
  background: linear-gradient(#fffdfa,#fcfaf7);
  scroll-behavior: smooth;
}

.ai-chat-msg {
  display: flex;
  margin: 0 0 10px;
}

.ai-chat-msg.user {
  justify-content: flex-start;
}

.ai-chat-msg.assistant {
  justify-content: flex-end;
}

.ai-chat-bubble {
  max-width: 86%;
  padding: 10px 12px;
  border-radius: 17px;
  line-height: 1.9;
  font-size: 11px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.ai-chat-msg.assistant .ai-chat-bubble {
  background: #f2f5f0;
  color: #3e4d46;
  border-top-right-radius: 5px;
}

.ai-chat-msg.user .ai-chat-bubble {
  background: #604a3e;
  color: #fff;
  border-top-left-radius: 5px;
}

.ai-chat-products {
  display: grid;
  gap: 8px;
  margin: 0 0 11px;
  padding: 0 4px;
}

.ai-chat-product {
  display: grid;
  grid-template-columns: 55px 1fr auto;
  align-items: center;
  gap: 9px;
  padding: 7px;
  border: 1px solid rgba(96,72,60,.1);
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 5px 16px rgba(45,32,27,.04);
  text-decoration: none;
  color: inherit;
}

.ai-chat-product img {
  width: 55px;
  height: 65px;
  border-radius: 10px;
  object-fit: cover;
  background: #f3eee9;
}

.ai-chat-product b {
  display: block;
  font-size: 10px;
  line-height: 1.7;
  color: #40342f;
}

.ai-chat-product small {
  display: block;
  font-size: 9px;
  color: #8a817b;
  margin-top: 2px;
}

.ai-chat-product strong {
  font-size: 10px;
  color: #567b6b;
  white-space: nowrap;
}

.ai-chat-typing {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 17px 17px 17px 5px;
  background: #f2f5f0;
}

.ai-chat-typing i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #8a9b93;
  animation: ai-chat-dot 1.1s infinite;
}

.ai-chat-typing i:nth-child(2) {
  animation-delay: .15s;
}

.ai-chat-typing i:nth-child(3) {
  animation-delay: .3s;
}

@keyframes ai-chat-dot {
  0%,60%,100% {
    transform: translateY(0);
    opacity: .45;
  }
  30% {
    transform: translateY(-3px);
    opacity: 1;
  }
}

.ai-chat-quick {
  display: flex;
  gap: 6px;
  overflow: auto;
  padding: 0 12px 9px;
  background: #fffdfa;
}

.ai-chat-quick button {
  border: 1px solid #e5dcd5;
  background: #fff;
  border-radius: 999px;
  padding: 7px 10px;
  white-space: nowrap;
  color: #675a53;
  font: inherit;
  font-size: 9px;
  cursor: pointer;
}

.ai-chat-form {
  display: flex;
  gap: 7px;
  padding: 10px;
  border-top: 1px solid rgba(96,72,60,.09);
  background: #fff;
}

.ai-chat-form textarea {
  flex: 1;
  min-width: 0;
  max-height: 90px;
  resize: none;
  border: 1px solid #ddd3cc;
  border-radius: 15px;
  padding: 9px 11px;
  font: inherit;
  font-size: 11px;
  outline: none;
  line-height: 1.8;
  background: #fffdfa;
}

.ai-chat-form textarea:focus {
  border-color: #a38a7c;
  box-shadow: 0 0 0 3px rgba(163,138,124,.1);
}

.ai-chat-send {
  width: 43px;
  height: 43px;
  flex: 0 0 43px;
  border: 0;
  border-radius: 14px;
  background: #604a3e;
  color: #fff;
  cursor: pointer;
  font-size: 17px;
}

.ai-chat-send:disabled {
  opacity: .5;
  cursor: wait;
}

.ai-chat-footer {
  font-size: 8px;
  color: #a19a95;
  text-align: center;
  padding: 0 10px 7px;
  background: #fff;
}

.ai-chat-footer a {
  color: #7d6456;
  text-decoration: none;
}

@media (max-width:600px) {
  .ai-chat-launcher {
    right: 15px;
    bottom: 76px;
    width: 54px;
    height: 54px;
  }
  .ai-chat-panel {
    right: 8px;
    bottom: 68px;
    width: calc(100vw - 16px);
    height: min(78vh,650px);
    border-radius: 24px;
  }
  .ai-chat-bubble {
    font-size: 11px;
  }
  .ai-chat-product {
    grid-template-columns: 50px 1fr auto;
  }
  .ai-chat-product img {
    width: 50px;
    height: 60px;
  }
}

@media (prefers-reduced-motion:reduce) {
  .ai-chat-launcher,.ai-chat-typing i {
    animation: none !important;
    transition: none !important;
  }
}

/* V56.26 — final issue fixes */

.stories-v2[hidden] {
  display: none !important;
}

.hero-live[hidden] {
  display: none !important;
}

.hero-admin-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.hero-admin-row {
  display: grid;
  grid-template-columns: 64px minmax(0,1fr) auto auto auto auto auto;
  gap: 8px;
  align-items: center;
  padding: 9px;
  border: 1px solid var(--ek-line);
  border-radius: 15px;
  background: #fff;
}

.hero-admin-row img {
  width: 64px;
  height: 48px;
  object-fit: cover;
  border-radius: 10px;
}

.hero-admin-row b,.hero-admin-row small {
  display: block;
}

.hero-admin-row small {
  color: #8b908d;
  margin-top: 3px;
  font-size: 10px;
}

.hero-manager-card hr {
  border: 0;
  border-top: 1px solid var(--ek-line);
  margin: 18px 0;
}

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

.product-gallery-v2 .gallery-body {
  display: grid;
  grid-template-columns: 88px minmax(0,1fr);
  gap: 14px;
  align-items: start;
}

.product-gallery-v2 .gallery #thumbs {
  width: auto;
  display: grid;
  grid-auto-rows: min-content;
  max-height: 650px;
  overflow: auto;
}

.product-gallery-v2 .gallery #thumbs img {
  width: 88px;
  height: 105px;
}

.product-gallery-v2 .gallery-open {
  min-width: 0;
  width: 100%;
  display: block;
}

.product-gallery-v2 .mainimg {
  width: 100%;
  height: min(680px,62vw);
  min-height: 520px;
  object-fit: contain;
  background: #f7f3ef;
}

.invoice-paper {
  overflow: hidden;
}

.invoice-paper img {
  max-width: 100%;
}

@media (max-width:900px) {
  .hero-live {
    margin-top: 0;
    min-height: 690px;
    border-radius: 0;
    overflow: hidden;
  }
  .hero-live .live-copy {
    top: 30px;
    right: 5%;
    width: 90%;
    z-index: 20;
  }
  .hero-live .eyebrow {
    font-size: 8px;
    padding: 6px 9px;
  }
  .hero-kicker {
    margin-top: 8px;
  }
  .hero-live h1 {
    font-size: 34px;
    line-height: 1.2;
    margin: 9px 0 8px;
  }
  .hero-live p {
    font-size: 10px;
    line-height: 1.85;
    max-width: 320px;
  }
  .hero-live .hero-actions {
    margin-top: 10px;
    gap: 6px;
  }
  .hero-stage {
    top: 235px;
    height: 430px;
    z-index: 3;
  }
  .live-slide {
    left: 14% !important;
    top: 3% !important;
    width: 72% !important;
    height: 88% !important;
  }
  .live-slide:nth-child(2) {
    left: 22% !important;
    top: 8% !important;
    width: 58% !important;
    height: 78% !important;
  }
  .live-slide:nth-child(3) {
    left: 9% !important;
    top: 6% !important;
    width: 64% !important;
    height: 82% !important;
  }
  .hero-caption {
    z-index: 15;
  }
  .detail-v2 {
    display: block;
    padding: 16px 12px 70px;
  }
  .detail-grid-v2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .product-gallery-v2 {
    padding: 12px !important;
  }
  .product-gallery-v2 .gallery {
    position: relative;
    top: auto;
    display: block;
  }
  .product-gallery-v2 .gallery-body {
    grid-template-columns: 62px minmax(0,1fr);
    gap: 8px;
  }
  .product-gallery-v2 .gallery #thumbs {
    grid-auto-rows: min-content;
    max-height: 440px;
    gap: 6px;
  }
  .product-gallery-v2 .gallery #thumbs img {
    width: 62px;
    height: 76px;
    border-radius: 10px;
  }
  .product-gallery-v2 .mainimg {
    height: 78vw;
    min-height: 360px;
    max-height: 520px;
    border-radius: 20px;
  }
  .info-v2 {
    position: relative;
    top: auto;
    padding: 20px !important;
  }
  .info-v2 h1 {
    font-size: 27px;
  }
  .hero-admin-row {
    grid-template-columns: 54px minmax(0,1fr) auto;
    gap: 6px;
  }
  .hero-admin-row img {
    width: 54px;
    height: 44px;
  }
  .hero-admin-row button:nth-last-child(-n+3) {
    font-size: 0;
    width: 32px;
    height: 32px;
  }
  .hero-admin-row button:nth-last-child(3):before {
    content: '↑';
    font-size: 14px;
  }
  .hero-admin-row button:nth-last-child(2):before {
    content: '↓';
    font-size: 14px;
  }
  .hero-admin-row button:last-child:before {
    content: '×';
    font-size: 18px;
  }
}

@media (max-width:520px) {
  .hero-live {
    min-height: 650px;
  }
  .hero-live .live-copy {
    top: 22px;
  }
  .hero-live h1 {
    font-size: 30px;
  }
  .hero-live p {
    font-size: 9.5px;
    max-width: 300px;
  }
  .hero-stage {
    top: 205px;
    height: 410px;
  }
  .live-slide {
    height: 88% !important;
  }
  .product-gallery-v2 .gallery-body {
    grid-template-columns: 54px minmax(0,1fr);
  }
  .product-gallery-v2 .gallery #thumbs img {
    width: 54px;
    height: 68px;
  }
  .product-gallery-v2 .mainimg {
    height: 86vw;
    min-height: 320px;
  }
  .inv-table {
    min-width: 650px;
  }
  .inv-table-wrap {
    overflow-x: auto;
  }
  .invoice-paper {
    font-size: 9px !important;
  }
  .invoice-paper .inv-top {
    grid-template-columns: 1fr !important;
    gap: 10px;
  }
  .invoice-paper .inv-contact {
    display: none;
  }
  .invoice-paper .inv-info-grid,.invoice-paper .inv-lower-grid,.invoice-paper .inv-footer-grid {
    grid-template-columns: 1fr !important;
  }
}

/* V56.26 — admin mobile completion */

@media (max-width:900px) {
  .admin-shell {
    display: block !important;
    min-height: 100vh;
  }
  .admin-side {
    position: sticky !important;
    top: 0 !important;
    width: 100% !important;
    height: auto !important;
    z-index: 900;
    display: flex !important;
    overflow-x: auto !important;
    gap: 5px !important;
    padding: 8px !important;
  }
  .admin-side-brand,.admin-side-group>span,.admin-side-bottom {
    display: none !important;
  }
  .admin-side-group {
    display: flex !important;
    gap: 5px !important;
    min-width: max-content !important;
  }
  .admin-nav {
    min-width: 74px !important;
    height: 44px !important;
    padding: 6px 9px !important;
    border-radius: 13px !important;
    display: grid !important;
    place-items: center !important;
  }
  .admin-nav i {
    font-size: 9px !important;
    white-space: nowrap;
  }
  .admin-main {
    width: 100% !important;
    padding: 14px 10px 90px !important;
  }
  .admin-title {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
  }
  .admin-title-actions,.card-head,.editor-actions {
    flex-wrap: wrap !important;
  }
  .admin-dashboard-grid,.stats-grid {
    grid-template-columns: 1fr !important;
  }
  .admin-card {
    min-width: 0 !important;
    padding: 15px !important;
    border-radius: 20px !important;
  }
  .admin-table-wrap {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
  }
  .admin-table-wrap table {
    min-width: 720px;
  }
  .editor-grid {
    grid-template-columns: 1fr !important;
  }
  .editor-grid>* {
    min-width: 0 !important;
    width: 100% !important;
  }
  .cms-list,.stories-admin-list,.admin-list {
    overflow-x: auto !important;
  }
  .hero-admin-row {
    min-width: 620px;
  }
  .admin-card.hero-manager-card {
    overflow: hidden;
  }
}

@media (max-width:520px) {
  .admin-main {
    padding-inline: 8px !important;
  }
  .admin-title h1 {
    font-size: 23px !important;
  }
  .admin-title p {
    font-size: 10px !important;
  }
  .admin-nav {
    min-width: 68px !important;
    font-size: 16px !important;
  }
  .admin-nav i {
    font-size: 8px !important;
  }
  .admin-card {
    padding: 12px !important;
  }
  .hero-manager-card textarea {
    min-height: 82px;
  }
}

/* V56.26 FINAL FIX PACK */

.hero-slide-link {
  display: block;
  width: 100%;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.hero-slide-link .slide-frame,.hero-slide-link img {
  width: 100%;
  height: 100%;
}

.stories-v2[hidden] {
  display: none !important;
}

.product-gallery-v2 .gallery-body {
  display: grid;
  grid-template-columns: 92px minmax(0,1fr);
  gap: 16px;
  align-items: stretch;
}

.product-gallery-v2 .gallery-open {
  min-width: 0;
  width: 100%;
  aspect-ratio: 4/5;
  min-height: 560px;
  background: #f7f3ee;
  border: 0;
  border-radius: 24px;
  overflow: hidden;
  display: block;
  position: relative;
  cursor: zoom-in;
}

.product-gallery-v2 .gallery-open .mainimg {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.product-gallery-v2 .gallery-thumbs {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 560px;
  overflow: auto;
  padding: 2px;
}

.product-gallery-v2 .gallery-thumb {
  width: 82px;
  height: 100px;
  flex: 0 0 100px;
  padding: 0;
  border: 1px solid var(--ek-line);
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
  cursor: pointer;
}

.product-gallery-v2 .gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-gallery-v2 .gallery-thumb.active {
  border-color: #5f8b7f;
  box-shadow: 0 0 0 2px rgba(95,139,127,.16);
}

@media (max-width:900px) {
  .hero-live {
    width: calc(100% - 20px);
    margin: 12px auto 0;
    min-height: 650px;
    border-radius: 24px;
  }
  .hero-live .live-copy {
    top: 22px;
    right: 14px;
    width: calc(100% - 28px);
    z-index: 12;
  }
  .hero-live h1 {
    font-size: 34px;
    line-height: 1.2;
    margin: 10px 0 8px;
  }
  .hero-live p {
    font-size: 10px;
    line-height: 1.9;
    max-width: 330px;
  }
  .hero-live .hero-actions {
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 10px;
  }
  .hero-stage {
    top: 34%;
    height: 59%;
    z-index: 3;
  }
  .live-slide {
    left: 12%;
    top: 4%;
    width: 76%;
    height: 88%;
  }
  .live-slide:nth-child(2) {
    left: 20%;
    top: 8%;
    width: 60%;
    height: 80%;
  }
  .live-slide:nth-child(3) {
    left: 9%;
    top: 6%;
    width: 66%;
    height: 84%;
  }
  .hero-float.one {
    top: 45%;
    z-index: 6;
  }
  .hero-float.two {
    bottom: 9%;
    z-index: 6;
  }
  .hero-float.three {
    top: 49%;
    z-index: 6;
  }
  .hero-caption {
    z-index: 10;
    bottom: 38px;
  }
  .live-dots {
    z-index: 11;
    bottom: 20px;
  }
  .hero-progress {
    z-index: 11;
    bottom: 7px;
  }
  .modern-header {
    z-index: 1000;
  }
  .detail-v2 {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 14px 12px 90px;
  }
  .detail-v2 .info-v2 {
    position: static;
  }
  .product-gallery-v2 {
    padding: 12px;
  }
  .product-gallery-v2 .gallery-body {
    grid-template-columns: 64px minmax(0,1fr);
    gap: 9px;
  }
  .product-gallery-v2 .gallery-open {
    min-height: 0;
    aspect-ratio: 4/5;
    border-radius: 18px;
  }
  .product-gallery-v2 .gallery-thumbs {
    max-height: 80vw;
    gap: 7px;
  }
  .product-gallery-v2 .gallery-thumb {
    width: 58px;
    height: 72px;
    flex-basis: 72px;
    border-radius: 11px;
  }
  .info-v2 {
    padding: 18px !important;
    border-radius: 22px !important;
  }
}

@media (max-width:520px) {
  .hero-live {
    min-height: 610px;
  }
  .hero-live .live-copy {
    top: 16px;
  }
  .hero-live h1 {
    font-size: 30px;
  }
  .hero-live p {
    font-size: 9px;
  }
  .hero-stage {
    top: 39%;
    height: 55%;
  }
  .live-slide {
    left: 10%;
    width: 80%;
    height: 88%;
  }
  .live-slide:nth-child(2) {
    left: 19%;
    width: 62%;
    height: 78%;
  }
  .live-slide:nth-child(3) {
    left: 7%;
    width: 68%;
    height: 82%;
  }
  .product-gallery-v2 .gallery-body {
    grid-template-columns: 58px minmax(0,1fr);
  }
  .product-gallery-v2 .gallery-thumb {
    width: 52px;
    height: 64px;
    flex-basis: 64px;
  }
  .product-gallery-v2 .gallery-open {
    border-radius: 16px;
  }
}

.hero-slides-editor {
  display: grid;
  gap: 12px;
}

.hero-admin-row {
  border: 1px solid #e1e4e8;
  border-radius: 16px;
  padding: 12px;
  background: #fff;
}

.hero-admin-row-head {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.hero-admin-row-head>b {
  margin-left: auto;
}

@media (max-width:700px) {
  .hero-admin-fields {
    grid-template-columns: 1fr !important;
  }
  .hero-admin-row-head {
    display: grid;
    grid-template-columns: 1fr auto auto auto auto;
  }
  .hero-admin-row-head>b {
    margin: 0;
  }
}

/* V56.27 — product detail desktop layout fix */

@media (min-width: 801px) {
  .detail-v2 {
    display: block !important;
    width: min(1320px, calc(100% - 48px));
    max-width: 1320px;
    margin-inline: auto;
    padding: 28px 0 90px;
  }
  .detail-v2 > .breadcrumbs {
    display: flex;
    width: 100%;
    margin: 0 0 22px;
  }
  .detail-grid-v2 {
    width: 100%;
    display: grid !important;
    grid-template-columns: minmax(0, 1.12fr) minmax(390px, .88fr) !important;
    gap: 56px !important;
    align-items: start;
    direction: rtl;
  }
  .detail-grid-v2 > .product-gallery-v2,
  .detail-grid-v2 > .info-v2 {
    min-width: 0;
    width: 100%;
  }
  .product-gallery-v2 {
    padding: 18px !important;
  }
  .product-gallery-v2 .gallery {
    width: 100%;
    display: block !important;
    position: sticky;
    top: 104px;
  }
  .product-gallery-v2 .gallery-body {
    width: 100%;
    display: grid !important;
    grid-template-columns: 92px minmax(0,1fr) !important;
    gap: 16px !important;
    align-items: start;
    direction: ltr;
  }
  .product-gallery-v2 .gallery-thumbs {
    width: 92px !important;
    max-height: 650px;
    display: flex !important;
    flex-direction: column !important;
    gap: 10px;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 2px;
  }
  .product-gallery-v2 .gallery-thumbs .gallery-thumb {
    width: 82px !important;
    height: 100px !important;
    flex: 0 0 100px !important;
  }
  .product-gallery-v2 .gallery-open {
    width: 100% !important;
    min-width: 0;
    aspect-ratio: 4/5;
    min-height: 560px;
    max-height: 700px;
    border-radius: 24px;
  }
  .product-gallery-v2 .gallery-open .mainimg {
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: none !important;
    object-fit: contain !important;
    display: block;
    background: #f7f3ef;
  }
  .info-v2 {
    padding: 24px !important;
  }
  .product-extra-v2 {
    width: 100%;
    margin-top: 42px;
  }
}

@media (min-width: 801px) and (max-width: 1050px) {
  .detail-v2 {
    width: calc(100% - 32px);
  }
  .detail-grid-v2 {
    grid-template-columns: minmax(0,1fr) minmax(340px,.9fr) !important;
    gap: 28px !important;
  }
  .product-gallery-v2 .gallery-body {
    grid-template-columns: 74px minmax(0,1fr) !important;
  }
  .product-gallery-v2 .gallery-thumbs {
    width: 74px !important;
  }
  .product-gallery-v2 .gallery-thumbs .gallery-thumb {
    width: 66px !important;
    height: 82px !important;
    flex-basis: 82px !important;
  }
  .product-gallery-v2 .gallery-open {
    min-height: 500px;
  }
}

/* =========================================================
   V56.28 — PRODUCT MAIN IMAGE / GALLERY REPAIR
   Source of truth: v56.27
   Fixes the missing main product image on desktop + mobile.
   ========================================================= */

.product-gallery-v2 .gallery-body {
  display: flex !important;
  flex-direction: row !important;
  align-items: stretch !important;
  gap: 16px !important;
  direction: ltr !important;
  width: 100% !important;
}

.product-gallery-v2 .gallery-open {
  order: 2 !important;
  position: relative !important;
  flex: 1 1 auto !important;
  width: auto !important;
  min-width: 0 !important;
  min-height: 560px !important;
  aspect-ratio: 4 / 5 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  overflow: hidden !important;
  background: #f7f3ef !important;
  border: 0 !important;
  border-radius: 24px !important;
}

.product-gallery-v2 .gallery-open .mainimg {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  object-position: center !important;
  opacity: 1 !important;
  visibility: visible !important;
  background: #f7f3ef !important;
}

.product-gallery-v2 .gallery-thumbs {
  order: 1 !important;
  flex: 0 0 92px !important;
  width: 92px !important;
  max-height: 650px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  padding: 2px !important;
  direction: ltr !important;
}

.product-gallery-v2 .gallery-thumb {
  flex: 0 0 100px !important;
  width: 82px !important;
  height: 100px !important;
  padding: 0 !important;
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.product-gallery-v2 .gallery-thumb img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

.product-gallery-v2 .gallery-expand {
  position: absolute !important;
  left: 14px !important;
  bottom: 14px !important;
  z-index: 3 !important;
}

@media (max-width:800px) {
  .product-gallery-v2 .gallery-body {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
    direction: ltr !important;
  }
  .product-gallery-v2 .gallery-open {
    order: 1 !important;
    width: 100% !important;
    min-height: 0 !important;
    height: auto !important;
    aspect-ratio: 4 / 5 !important;
    max-height: none !important;
    border-radius: 20px !important;
  }
  .product-gallery-v2 .gallery-open .mainimg {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
  }
  .product-gallery-v2 .gallery-thumbs {
    order: 2 !important;
    flex: 0 0 auto !important;
    width: 100% !important;
    max-height: none !important;
    height: auto !important;
    display: flex !important;
    flex-direction: row !important;
    gap: 8px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    padding: 2px 1px 5px !important;
    direction: ltr !important;
    scrollbar-width: none;
  }
  .product-gallery-v2 .gallery-thumbs::-webkit-scrollbar {
    display: none;
  }
  .product-gallery-v2 .gallery-thumb {
    flex: 0 0 64px !important;
    width: 64px !important;
    height: 78px !important;
    border-radius: 11px !important;
  }
  .product-gallery-v2 .gallery-expand {
    left: 12px !important;
    bottom: 12px !important;
  }
}

@media (max-width:520px) {
  .product-gallery-v2 .gallery-open {
    aspect-ratio: 4 / 5 !important;
    border-radius: 17px !important;
  }
  .product-gallery-v2 .gallery-thumb {
    flex-basis: 58px !important;
    width: 58px !important;
    height: 70px !important;
  }
}

/* =========================================================
   V56.29 — MOBILE PRODUCT DETAIL POLISH
   Based on confirmed v56.28 gallery + A4 invoice.
   Desktop layout intentionally untouched.
   ========================================================= */

@media (max-width: 900px) {
  body {
    padding-bottom: 104px;
    overflow-x: hidden;
  }
  .detail-v2 {
    width: 100%;
    max-width: 100%;
    padding: 12px 10px 128px !important;
    margin: 0;
  }
  .detail-v2>.breadcrumbs {
    margin: 10px 4px 14px !important;
    gap: 7px;
    font-size: 9px;
    white-space: nowrap;
    overflow: hidden;
  }
  .detail-grid-v2 {
    gap: 12px !important;
  }
  .product-gallery-v2 {
    padding: 10px !important;
    border-radius: 20px !important;
  }
  .product-gallery-v2 .gallery-topline {
    margin-bottom: 9px;
    padding: 0 2px;
  }
  .product-gallery-v2 .gallery-body {
    gap: 8px !important;
  }
  .product-gallery-v2 .gallery-open {
    border-radius: 18px !important;
    aspect-ratio: 4/5 !important;
  }
  .product-gallery-v2 .gallery-thumbs {
    gap: 7px !important;
    padding: 2px 1px 3px !important;
  }
  .product-gallery-v2 .gallery-thumb {
    flex-basis: 60px !important;
    width: 60px !important;
    height: 72px !important;
    border-radius: 10px !important;
  }
  .product-gallery-v2 .gallery-note {
    display: none !important;
  }
  .info-v2 {
    margin-top: 0 !important;
    padding: 16px !important;
    border-radius: 20px !important;
  }
  .info-v2:before {
    width: 170px;
    height: 170px;
    left: -90px;
    bottom: -90px;
  }
  .product-tools {
    gap: 7px !important;
    margin-bottom: 13px;
  }
  .product-tools button {
    min-height: 42px !important;
    padding: 8px 13px !important;
    border-radius: 14px !important;
    font-size: 11px !important;
  }
  .info-v2 .product-code {
    font-size: 9px !important;
  }
  .info-v2 h1 {
    font-size: 24px !important;
    line-height: 1.45 !important;
    letter-spacing: -.3px !important;
    margin: 7px 0 5px !important;
  }
  .rating-line {
    margin: 5px 0 9px !important;
    gap: 8px;
  }
  .rating-line span {
    font-size: 11px !important;
  }
  .rating-line small {
    font-size: 8px !important;
  }
  .info-v2 .desc {
    font-size: 10px !important;
    line-height: 1.9 !important;
    max-height: 82px !important;
    margin: 0 !important;
    overflow: hidden !important;
  }
  .buytype-v2 {
    gap: 7px !important;
    margin-top: 14px !important;
  }
  .buytype-v2 button {
    min-height: 56px !important;
    padding: 9px 11px !important;
    border-radius: 13px !important;
  }
  .buytype-v2 button b {
    font-size: 11px !important;
  }
  .buytype-v2 button small {
    font-size: 8px !important;
    margin-top: 3px !important;
  }
  .selection-divider {
    margin-top: 14px !important;
  }
  .selection-box {
    margin-top: 13px !important;
  }
  .selection-box label,.series-qty-box label,.single-qty-box label {
    font-size: 10px !important;
  }
  .color-swatches {
    gap: 7px !important;
  }
  .color-swatches button {
    width: 30px !important;
    height: 30px !important;
  }
  .size-grid {
    gap: 6px !important;
  }
  .info-v2 #sizes button {
    min-width: 49px !important;
    min-height: 38px !important;
    padding: 7px 9px !important;
    font-size: 10px !important;
  }
  .series-qty-box,.single-qty-box {
    margin-top: 13px !important;
    padding: 11px !important;
    border-radius: 13px !important;
  }
  .qty-control {
    width: 126px !important;
    height: 40px !important;
  }
  .price-box-v2 {
    margin-top: 13px !important;
    padding: 13px !important;
    border-radius: 14px !important;
  }
  .final-price-row strong {
    font-size: 20px !important;
  }
  .add-cart-v2 {
    min-height: 50px !important;
    font-size: 12px !important;
    margin-top: 12px !important;
  }
  .wa.full {
    padding: 10px !important;
    font-size: 11px !important;
  }
  .benefits-v2 {
    margin-top: 10px !important;
  }
  .benefits-v2 div {
    padding: 9px 0 !important;
  }
  .product-extra-v2 {
    margin-top: 18px !important;
    border-radius: 18px !important;
  }
  .product-description-box {
    padding: 18px !important;
    font-size: 10px !important;
  }
  /* Bottom navigation: reserve real space so it never covers product content. */
  .ek-bottom-nav {
    left: 8px !important;
    right: 8px !important;
    bottom: 8px !important;
    height: 68px !important;
    padding: 5px !important;
    border-radius: 22px !important;
    z-index: 9000 !important;
    padding-bottom: max(5px,env(safe-area-inset-bottom)) !important;
  }
  .ek-bottom-nav a,.ek-bottom-nav button {
    height: 56px !important;
    border-radius: 16px !important;
  }
  .ek-bottom-nav a span,.ek-bottom-nav button span {
    font-size: 19px !important;
  }
  .ek-bottom-nav a small,.ek-bottom-nav button small {
    font-size: 8px !important;
  }
  /* AI launcher sits clearly above the bottom navigation. */
  .ai-chat-launcher {
    right: 14px !important;
    bottom: 92px !important;
    width: 50px !important;
    height: 50px !important;
    z-index: 8999 !important;
    font-size: 21px !important;
  }
  .ai-chat-panel {
    right: 8px !important;
    bottom: 154px !important;
    width: calc(100vw - 16px) !important;
    max-height: calc(100vh - 175px) !important;
    height: min(70vh,600px) !important;
    z-index: 9001 !important;
  }
}

@media (max-width:520px) {
  .detail-v2 {
    padding-inline: 8px !important;
    padding-bottom: 128px !important;
  }
  .product-gallery-v2 {
    padding: 8px !important;
  }
  .product-gallery-v2 .gallery-open {
    border-radius: 16px !important;
  }
  .product-gallery-v2 .gallery-thumb {
    flex-basis: 56px !important;
    width: 56px !important;
    height: 68px !important;
  }
  .info-v2 {
    padding: 14px !important;
  }
  .info-v2 h1 {
    font-size: 22px !important;
  }
  .info-v2 .desc {
    max-height: 76px !important;
  }
  .product-tools button {
    min-height: 40px !important;
    padding-inline: 11px !important;
  }
  .ek-bottom-nav {
    left: 6px !important;
    right: 6px !important;
  }
  .ai-chat-launcher {
    right: 12px !important;
    bottom: 92px !important;
  }
}

/* =========================================================
   V56.30 — MOBILE HEADER / HERO / MENU / CHECKOUT POLISH
   ========================================================= */

@media (max-width:900px) {
  /* Keep the mobile header compact so the logo never pushes the header into the hero. */
  .modern-header {
    position: sticky !important;
    top: 0 !important;
    z-index: 1000 !important;
    min-height: 0 !important;
  }
  .header-inner {
    width: calc(100% - 20px) !important;
    min-height: 70px !important;
    height: 70px !important;
    grid-template-columns: 42px 1fr 42px !important;
    gap: 8px !important;
  }
  .modern-logo {
    width: 78px !important;
    height: 58px !important;
    justify-self: center !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: visible !important;
  }
  .modern-logo img {
    width: 72px !important;
    height: 56px !important;
    max-width: 72px !important;
    max-height: 56px !important;
    object-fit: contain !important;
  }
  .modern-logo:after {
    bottom: -1px !important;
    width: 22px !important;
  }
  .header-tools {
    order: 1 !important;
    justify-content: flex-start !important;
    gap: 5px !important;
    min-width: 0 !important;
  }
  .header-tools .tool {
    width: 36px !important;
    height: 36px !important;
  }
  .mobile-menu {
    order: 3 !important;
    width: 42px !important;
    height: 42px !important;
    display: grid !important;
    place-items: center !important;
    font-size: 0 !important;
    border: 1px solid var(--ek-line) !important;
    border-radius: 50% !important;
    background: rgba(255,255,255,.78) !important;
    color: #273338 !important;
  }
  .mobile-menu::before {
    content: '☰';
    font-size: 25px;
    line-height: 1;
  }
  /* The menu must cover/fade the header too. */
  body.menu-open .modern-header {
    z-index: 180 !important;
  }
  body.menu-open .top {
    position: relative;
    z-index: 180 !important;
  }
  #shade {
    z-index: 190 !important;
  }
  .drawer {
    z-index: 200 !important;
  }
  /* Hero title: both lines are explicit and always visible below the compact header. */
  .hero-live .live-copy {
    top: 26px !important;
    right: 14px !important;
    width: calc(100% - 28px) !important;
    transform: none !important;
    z-index: 12 !important;
    padding-top: 0 !important;
  }
  .hero-kicker {
    display: block !important;
    margin-top: 4px !important;
    line-height: 1.6 !important;
  }
  .hero-live h1 {
    color: #273338 !important;
    display: block !important;
    font-size: 31px !important;
    line-height: 1.28 !important;
    margin: 8px 0 9px !important;
    min-height: 2.56em !important;
  }
  .hero-live h1 strong {
    display: block !important;
    color: var(--ek-blush-dark) !important;
  }
  /* Give the image enough room without letting it collide with the copy. */
  .hero-stage {
    top: 36% !important;
    height: 57% !important;
  }
}

@media (max-width:520px) {
  .header-inner {
    height: 68px !important;
    min-height: 68px !important;
  }
  .modern-logo {
    width: 74px !important;
    height: 56px !important;
  }
  .modern-logo img {
    width: 68px !important;
    height: 54px !important;
    max-width: 68px !important;
    max-height: 54px !important;
  }
  .hero-live {
    min-height: 620px !important;
  }
  .hero-live .live-copy {
    top: 22px !important;
  }
  .hero-live h1 {
    font-size: 29px !important;
    line-height: 1.3 !important;
    min-height: 2.6em !important;
  }
  .hero-stage {
    top: 38% !important;
    height: 54% !important;
  }
}

/* Checkout header: the logo is a normal grid item, never absolutely overlaid on the badge. */

@media (max-width:900px) {
  .checkout>header {
    position: sticky !important;
    top: 0 !important;
    z-index: 1000 !important;
    display: grid !important;
    grid-template-columns: 1fr auto 1fr !important;
    align-items: center !important;
    min-height: 68px !important;
    height: 68px !important;
    padding: 0 12px !important;
  }
  .checkout>header .logo-img {
    position: static !important;
    transform: none !important;
    justify-self: center !important;
    width: 72px !important;
    height: 56px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  .checkout>header .logo-img img {
    width: 68px !important;
    height: 54px !important;
    max-width: 68px !important;
    max-height: 54px !important;
    object-fit: contain !important;
  }
  .checkout>header .menu {
    justify-self: start !important;
    white-space: nowrap !important;
  }
  .checkout>header .actions {
    justify-self: end !important;
    min-width: 0 !important;
  }
  .checkout>header .checkout-badge {
    display: none !important;
  }
}

/* =========================================================
   V56.31 — MOBILE HEADER / HERO / DRAWER / CHECKOUT FINAL POLISH
   ========================================================= */

@media (max-width:900px) {
  /* Compact, self-contained storefront header. The logo stays inside the header. */
  .modern-header {
    height: 64px !important;
    min-height: 64px !important;
    overflow: visible !important;
    z-index: 1000 !important;
  }
  .header-inner {
    height: 64px !important;
    min-height: 64px !important;
    width: calc(100% - 18px) !important;
    grid-template-columns: 44px 1fr 44px !important;
    gap: 4px !important;
  }
  .modern-logo {
    width: 70px !important;
    height: 54px !important;
    max-height: 54px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    align-self: center !important;
    margin: 0 auto !important;
  }
  .modern-logo img {
    width: 62px !important;
    height: 50px !important;
    max-width: 62px !important;
    max-height: 50px !important;
    object-fit: contain !important;
  }
  .modern-logo:after {
    display: none !important;
  }
  .header-tools {
    gap: 5px !important;
  }
  .header-tools .tool {
    width: 38px !important;
    height: 38px !important;
  }
  .mobile-menu {
    width: 40px !important;
    height: 40px !important;
  }
  /* Never let the drawer backdrop leave the storefront header visually active. */
  #shade {
    position: fixed !important;
    inset: 0 !important;
    display: none !important;
    background: rgba(28,36,35,.46) !important;
    backdrop-filter: blur(5px) !important;
    -webkit-backdrop-filter: blur(5px) !important;
    z-index: 1900 !important;
  }
  #shade.show {
    display: block !important;
  }
  .drawer {
    z-index: 2000 !important;
  }
  body.menu-open .modern-header {
    z-index: 100 !important;
    opacity: .12 !important;
    filter: blur(1.5px) !important;
    pointer-events: none !important;
  }
  body.menu-open .top {
    opacity: .12 !important;
    filter: blur(1.5px) !important;
    pointer-events: none !important;
  }
  /* Hero title: explicitly two lines, with enough room below the header. */
  .hero-live {
    margin-top: 0 !important;
  }
  .hero-live .live-copy {
    top: 42px !important;
    right: 12px !important;
    width: calc(100% - 24px) !important;
    z-index: 30 !important;
    overflow: visible !important;
  }
  .hero-kicker {
    margin-top: 0 !important;
    margin-bottom: 4px !important;
    line-height: 1.7 !important;
    position: relative !important;
    z-index: 31 !important;
  }
  .hero-live h1 {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0 !important;
    min-height: 0 !important;
    height: auto !important;
    margin: 7px 0 9px !important;
    font-size: 32px !important;
    line-height: 1.22 !important;
    letter-spacing: -.045em !important;
    white-space: normal !important;
    overflow: visible !important;
    position: relative !important;
    z-index: 32 !important;
  }
  .hero-live h1 .hero-title-line,
  .hero-live h1 strong {
    display: block !important;
    width: 100% !important;
    min-height: 1.22em !important;
    position: relative !important;
    z-index: 33 !important;
  }
  .hero-live h1 .hero-title-line {
    color: #273338 !important;
  }
  .hero-live h1 strong {
    color: var(--ek-blush-dark) !important;
  }
  .hero-live p {
    position: relative !important;
    z-index: 32 !important;
  }
  .hero-live .hero-actions {
    position: relative !important;
    z-index: 32 !important;
  }
  .hero-stage {
    z-index: 3 !important;
  }
}

@media (max-width:520px) {
  .modern-header,.header-inner {
    height: 62px !important;
    min-height: 62px !important;
  }
  .modern-logo {
    width: 66px !important;
    height: 52px !important;
  }
  .modern-logo img {
    width: 60px !important;
    height: 48px !important;
    max-width: 60px !important;
    max-height: 48px !important;
  }
  .hero-live .live-copy {
    top: 38px !important;
  }
  .hero-live h1 {
    font-size: 30px !important;
    line-height: 1.24 !important;
    margin-top: 6px !important;
  }
  .hero-live h1 .hero-title-line,
  .hero-live h1 strong {
    min-height: 1.24em !important;
  }
}

/* Checkout: keep the header in normal flow so the logo can never overlap the steps. */

@media (max-width:900px) {
  .checkout>header {
    position: relative !important;
    top: auto !important;
    height: 66px !important;
    min-height: 66px !important;
    margin: 0 !important;
    padding: 0 12px !important;
    z-index: 10 !important;
    display: grid !important;
    grid-template-columns: 1fr auto 1fr !important;
    align-items: center !important;
    background: rgba(255,253,249,.96) !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
  }
  .checkout>header .logo-img {
    position: static !important;
    transform: none !important;
    justify-self: center !important;
    align-self: center !important;
    width: 66px !important;
    height: 54px !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  .checkout>header .logo-img img {
    width: 60px !important;
    height: 48px !important;
    max-width: 60px !important;
    max-height: 48px !important;
    object-fit: contain !important;
  }
  .checkout>header .menu {
    justify-self: start !important;
    font-size: 11px !important;
    padding: 8px 12px !important;
    white-space: nowrap !important;
  }
  .checkout>header .actions {
    justify-self: end !important;
    min-width: 0 !important;
  }
  .checkout>header .checkout-badge {
    display: none !important;
  }
  .checkout {
    padding-top: 18px !important;
  }
  .checkout-title {
    margin-top: 0 !important;
  }
}

/* =========================================================
   V56.32 — MOBILE HEADER REDESIGN / CIRCULAR BRAND MARK
   ========================================================= */

.modern-logo img,
.drawer-logo,
body>header:not(.modern-header) .logo-img img,
.checkout>header .logo-img img {
  border-radius: 50% !important;
  object-fit: cover !important;
  aspect-ratio: 1/1 !important;
  background: #f5eee5 !important;
  border: 1px solid rgba(119,101,88,.14) !important;
  box-shadow: 0 6px 18px rgba(71,57,47,.10) !important;
}

@media (max-width:900px) {
  /* Clean three-zone mobile header: actions left, circular logo centered, menu right. */
  .modern-header {
    height: 72px !important;
    min-height: 72px !important;
    padding: 0 !important;
    background: rgba(255,252,248,.96) !important;
    backdrop-filter: blur(18px) !important;
    -webkit-backdrop-filter: blur(18px) !important;
    border-bottom: 1px solid rgba(93,83,75,.10) !important;
    box-shadow: 0 7px 24px rgba(62,54,49,.07) !important;
    overflow: visible !important;
  }
  .header-inner {
    position: relative !important;
    width: 100% !important;
    max-width: none !important;
    height: 72px !important;
    min-height: 72px !important;
    margin: 0 !important;
    display: block !important;
  }
  .modern-logo {
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%,-50%) !important;
    width: 58px !important;
    height: 58px !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 5 !important;
  }
  .modern-logo img {
    width: 58px !important;
    height: 58px !important;
    max-width: 58px !important;
    max-height: 58px !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 50% !important;
    object-fit: cover !important;
  }
  .modern-logo:after {
    display: none !important;
  }
  .mobile-menu {
    position: absolute !important;
    right: 12px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 46px !important;
    height: 46px !important;
    margin: 0 !important;
    z-index: 6 !important;
    border-radius: 50% !important;
    display: grid !important;
    place-items: center !important;
    font-size: 26px !important;
    line-height: 1 !important;
    background: rgba(255,255,255,.84) !important;
    border: 1px solid rgba(84,76,69,.12) !important;
    box-shadow: 0 7px 20px rgba(63,53,47,.09) !important;
  }
  .header-tools {
    position: absolute !important;
    left: 12px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: auto !important;
    height: 46px !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 7px !important;
    z-index: 6 !important;
  }
  .header-tools .tool {
    width: 42px !important;
    height: 42px !important;
    margin: 0 !important;
    border-radius: 50% !important;
    display: grid !important;
    place-items: center !important;
    background: rgba(255,255,255,.82) !important;
    border: 1px solid rgba(84,76,69,.12) !important;
    box-shadow: 0 6px 18px rgba(63,53,47,.07) !important;
  }
  .header-tools .search-link,
  .header-tools .track-tool,
  .header-tools .heart-tool {
    display: none !important;
  }
  .header-tools .tool:not(.cart-tool):not(.search-link) {
    display: grid !important;
  }
  .header-tools .cart-tool {
    display: grid !important;
  }
  .cart-tool em {
    top: -3px !important;
    right: -2px !important;
  }
  /* Give the hero a clean start directly beneath the redesigned header. */
  .hero-live {
    margin-top: 0 !important;
  }
}

@media (max-width:520px) {
  .modern-header,.header-inner {
    height: 70px !important;
    min-height: 70px !important;
  }
  .modern-logo,.modern-logo img {
    width: 56px !important;
    height: 56px !important;
    max-width: 56px !important;
    max-height: 56px !important;
  }
  .mobile-menu {
    width: 44px !important;
    height: 44px !important;
    right: 10px !important;
    font-size: 25px !important;
  }
  .header-tools {
    left: 10px !important;
    gap: 6px !important;
  }
  .header-tools .tool {
    width: 40px !important;
    height: 40px !important;
  }
}

/* The drawer branding uses the same circular mark. */

.drawer-logo {
  width: 64px !important;
  height: 64px !important;
  object-fit: cover !important;
  border-radius: 50% !important;
}

/* =========================================================
   V56.33 — MOBILE MENU BUTTON + CART MODAL OVERLAY FIX
   ========================================================= */

/* The button already contains the ☰ character in HTML.
   Do not generate a second one with ::before. */

@media (max-width: 900px) {
  .mobile-menu::before {
    content: none !important;
    display: none !important;
  }
  .mobile-menu {
    font-family: inherit !important;
    font-weight: 500 !important;
    letter-spacing: 0 !important;
    overflow: hidden !important;
  }
  /* Keep the mobile header as one clean row. */
  .modern-header,
  .header-inner {
    position: relative !important;
  }
  /* When the cart/payment modal is open, the storefront chrome
     must visually recede behind the modal. */
  body.cart-modal-open .modern-header,
  body.cart-modal-open .top,
  body.cart-modal-open .mobile-bottom-nav,
  body.cart-modal-open .bottom-nav,
  body.cart-modal-open .mobile-nav {
    opacity: .10 !important;
    filter: blur(1.5px) !important;
    pointer-events: none !important;
    transition: opacity .18s ease,filter .18s ease !important;
  }
  /* Make the cart modal decisively sit above the page chrome. */
  body.cart-modal-open #cartModal {
    z-index: 3000 !important;
  }
  body.cart-modal-open #cartModal .modalbox {
    position: relative !important;
    z-index: 3001 !important;
  }
  /* Menu overlay always wins over the normal page, including the cart
     if a stale state exists. */
  body.menu-open #shade {
    z-index: 3900 !important;
  }
  body.menu-open .drawer {
    z-index: 4000 !important;
  }
  body.menu-open .modern-header,
  body.menu-open .top,
  body.menu-open #cartModal {
    opacity: .08 !important;
    filter: blur(2px) !important;
    pointer-events: none !important;
  }
}

/* Make the shade cover every page layer on small screens. */

@media (max-width:600px) {
  #shade {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 3900 !important;
  }
  #shade.show {
    display: block !important;
  }
  .drawer {
    z-index: 4000 !important;
  }
}

/* =========================================================
   V56.34 — FINAL MOBILE MENU + CART LAYER FIX
   ========================================================= */

@media (max-width: 900px) {
  /* The HTML button already contains the single ☰ glyph.
     Never synthesize another glyph with pseudo-elements. */
  .mobile-menu::before,
  .mobile-menu::after {
    content: none !important;
    display: none !important;
  }
  .mobile-menu {
    font-size: 25px !important;
    line-height: 1 !important;
    font-family: inherit !important;
    display: grid !important;
    place-items: center !important;
  }
  /* The cart modal must be above every fixed storefront layer,
     including the mobile bottom navigation and AI launcher. */
  body.cart-modal-open {
    overflow: hidden !important;
  }
  body.cart-modal-open #cartModal {
    display: flex !important;
    position: fixed !important;
    inset: 0 !important;
    z-index: 10000 !important;
  }
  body.cart-modal-open #cartModal .modalbox {
    position: relative !important;
    z-index: 10001 !important;
  }
  body.cart-modal-open .ek-bottom-nav,
  body.cart-modal-open .ai-chat-launcher,
  body.cart-modal-open .ai-chat-panel {
    display: none !important;
    pointer-events: none !important;
  }
  body.cart-modal-open .modern-header,
  body.cart-modal-open .top {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }
  /* The menu must remain the only interactive layer when open. */
  body.menu-open #shade {
    display: block !important;
    position: fixed !important;
    inset: 0 !important;
    z-index: 39000 !important;
  }
  body.menu-open .drawer {
    z-index: 40000 !important;
  }
  body.menu-open .modern-header,
  body.menu-open .top,
  body.menu-open .ek-bottom-nav,
  body.menu-open .ai-chat-launcher,
  body.menu-open .ai-chat-panel,
  body.menu-open #cartModal {
    pointer-events: none !important;
  }
}

/* Keep the cart/modal layering deterministic on desktop too. */

#cartModal {
  z-index: 10000 !important;
}

#cartModal .modalbox {
  z-index: 10001 !important;
}

/* V56.40 — LCP paint optimization: keep the first hero frame stable during initial paint. */

.hero-lcp img {
  animation: none !important;
  will-change: auto !important;
}

@media (prefers-reduced-motion:reduce) {
  .hero-lcp img {
    animation: none !important;
  }
}

/* v56.48 — Social product importer */

.social-import-card {
  margin-bottom: 18px;
  border: 1px solid rgba(82,64,52,.12);
  background: linear-gradient(180deg,#fff,#fbf8f5);
}

.social-import-status {
  font-size: 12px;
  font-weight: 800;
  padding: 7px 11px;
  border-radius: 999px;
  background: #f1ece7;
  color: #66584e;
  white-space: nowrap;
}

.social-source-tabs {
  display: flex;
  gap: 8px;
  margin: 0 0 14px;
  border-bottom: 1px solid rgba(82,64,52,.10);
  padding-bottom: 10px;
}

.social-source-tab {
  border: 1px solid rgba(82,64,52,.12);
  background: #fff;
  border-radius: 12px;
  padding: 9px 16px;
  font-weight: 800;
  cursor: pointer;
}

.social-source-tab.active {
  background: #332a24;
  color: #fff;
  border-color: #332a24;
}

.social-import-controls {
  display: grid;
  grid-template-columns: minmax(0,1fr);
  gap: 12px;
}

.social-input-wrap label {
  display: block;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 7px;
}

.social-input-line {
  display: flex;
  align-items: center;
  gap: 8px;
}

.social-input-line>span {
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0 12px;
  background: #f4efeb;
  border: 1px solid rgba(82,64,52,.12);
  border-radius: 12px;
  font-weight: 800;
}

.social-input-line input {
  flex: 1;
  min-width: 0;
  height: 44px;
}

.social-input-line .btn {
  white-space: nowrap;
}

.social-input-wrap small {
  display: block;
  margin-top: 7px;
  color: #7c7067;
  line-height: 1.7;
}

.social-import-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f6f1ed;
  font-size: 13px;
  font-weight: 800;
}

.social-post-grid {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 12px;
  margin-top: 14px;
}

.social-post-card {
  overflow: hidden;
  border: 1px solid rgba(82,64,52,.11);
  border-radius: 16px;
  background: #fff;
  display: flex;
  flex-direction: column;
}

.social-post-media {
  aspect-ratio: 1/1;
  background: #f2eeea;
  overflow: hidden;
}

.social-post-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.social-post-body {
  padding: 11px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.social-post-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 10px;
  color: #8a7e75;
}

.social-post-caption {
  font-size: 12px;
  line-height: 1.75;
  min-height: 62px;
  max-height: 84px;
  overflow: hidden;
  white-space: pre-wrap;
}

.social-post-actions {
  display: flex;
  gap: 7px;
}

.social-post-actions .mini-btn {
  flex: 1;
}

.social-post-actions a {
  text-decoration: none;
  display: grid;
  place-items: center;
}

.social-empty-state {
  grid-column: 1/-1;
  padding: 28px;
  text-align: center;
  color: #877a71;
  border: 1px dashed rgba(82,64,52,.18);
  border-radius: 14px;
  background: #fcfaf8;
}

.social-post-card.imported {
  outline: 2px solid rgba(80,130,90,.25);
}

@media (max-width:900px) {
  .social-post-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
  .social-input-line {
    flex-wrap: wrap;
  }
  .social-input-line input {
    min-width: 180px;
  }
  .social-input-line .btn {
    flex: 1;
  }
}

@media (max-width:560px) {
  .social-post-grid {
    grid-template-columns: 1fr;
  }
  .social-source-tabs {
    overflow: auto;
  }
  .social-source-tab {
    flex: 0 0 auto;
  }
  .social-input-line>span {
    height: 42px;
  }
  .social-input-line input {
    height: 42px;
  }
  .social-input-line .btn {
    width: 100%;
  }
}

.social-connectivity-result {
  margin-top: 10px;
  display: grid;
  gap: 7px;
  padding: 10px;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 12px;
  background: rgba(255,255,255,.7);
}

.social-connectivity-result>div {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}

.social-connectivity-result .ok {
  color: #18794e;
}

.social-connectivity-result .bad {
  color: #b42318;
}

.social-connectivity-result small {
  opacity: .7;
}

/* V56.63 — ENAMAD trust badge */

.footer-enamad {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(0,0,0,.08);
  min-height: 74px;
}

.footer-enamad a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.footer-enamad img {
  display: block;
  max-width: 110px;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
}

@media (max-width:640px) {
  .footer-enamad {
    margin-top: 14px;
    padding-top: 12px;
    min-height: 64px;
  }
  .footer-enamad img {
    max-width: 96px;
  }
}

/* Admin management upgrade */

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

.payment-gateway-card {
  display: grid;
  grid-template-columns: 48px minmax(0,1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 15px;
  border: 1px solid var(--ek-line,#e8dfd8);
  border-radius: 18px;
  background: #fff;
  min-width: 0;
}

.payment-gateway-card.is-ready {
  box-shadow: 0 8px 24px rgba(53,73,63,.05);
}

.payment-gateway-card.is-missing {
  opacity: .78;
}

.payment-gateway-icon {
  width: 48px;
  height: 48px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  background: #f5eee8;
  color: #5f4b40;
  font-weight: 900;
  font-size: 13px;
}

.payment-gateway-copy {
  min-width: 0;
}

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

.payment-gateway-copy small {
  margin-top: 4px;
  color: #89807a;
  font-size: 10px;
  line-height: 1.7;
}

.payment-status {
  font-size: 9px;
  font-weight: 800;
  border-radius: 999px;
  padding: 5px 8px;
  white-space: nowrap;
}

.payment-status.ok {
  background: #edf7f0;
  color: #47745b;
}

.payment-status.warn {
  background: #fff4e8;
  color: #94683b;
}

.payment-gateway-stats {
  grid-column: 2/-1;
  padding-top: 8px;
  border-top: 1px solid #eee7e1;
}

.payment-gateway-stats span {
  font-weight: 900;
  font-size: 13px;
}

.payment-gateway-stats small {
  display: block;
  color: #8a817b;
  margin-top: 3px;
  font-size: 9px;
}

.admin-filter-inline {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}

.admin-filter-inline select {
  border: 1px solid #ded5ce;
  border-radius: 11px;
  padding: 8px 10px;
  background: #fff;
  font: inherit;
  font-size: 10px;
}

.payment-summary-grid {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 10px;
  margin-bottom: 15px;
}

.payment-summary-item {
  padding: 13px;
  border-radius: 15px;
  background: #faf6f2;
  border: 1px solid #eee4dd;
}

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

.payment-summary-item b {
  margin-top: 5px;
  font-size: 15px;
}

.payment-ref {
  font-size: 9px;
  direction: ltr;
  unicode-bidi: plaintext;
  max-width: 130px;
  display: inline-block;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
}

.status-ok {
  background: #edf7f0 !important;
  color: #47745b !important;
}

.status-failed {
  background: #fff0ed !important;
  color: #9a5147 !important;
}

.status-pending {
  background: #fff5e8 !important;
  color: #94683b !important;
}

@media (max-width:760px) {
  .payment-gateway-grid {
    grid-template-columns: 1fr;
  }
  .payment-gateway-card {
    grid-template-columns: 42px minmax(0,1fr) auto;
  }
  .payment-gateway-icon {
    width: 42px;
    height: 42px;
  }
  .payment-summary-grid {
    grid-template-columns: 1fr 1fr;
  }
  .admin-filter-inline {
    width: 100%;
  }
  .admin-filter-inline select {
    flex: 1;
    min-width: 120px;
  }
}

/* =========================================================
   V56.67 — ECELAND ADMIN PRO DASHBOARD UI
   Premium RTL control-center layer. Visual-only; preserves
   existing data/actions and responsive mobile drawer.
   ========================================================= */

:root {
  --ad-bg: #f6f4f1;
  --ad-panel: #fff;
  --ad-ink: #292520;
  --ad-muted: #8b8179;
  --ad-line: #e9e2dc;
  --ad-accent: #596f63;
  --ad-accent-2: #8e6f5e;
  --ad-shadow: 0 12px 34px rgba(55,43,34,.07);
  --ad-radius: 20px
;
}

.admin-body {
  background: var(--ad-bg) !important;
  color: var(--ad-ink) !important;
}

.admin-shell {
  min-height: 100vh !important;
  background: var(--ad-bg) !important;
}

.admin-side {
  background: #24221f !important;
  border: 0 !important;
  box-shadow: 14px 0 40px rgba(25,20,16,.08) !important;
  padding: 18px 12px !important;
  width: 248px !important;
}

.admin-side-brand {
  padding: 10px 10px 22px !important;
  margin-bottom: 8px !important;
  border-bottom: 1px solid rgba(255,255,255,.09) !important;
}

.admin-side-brand .admin-logo {
  width: 42px !important;
  height: 42px !important;
  border-radius: 13px !important;
  background: #fff !important;
  padding: 4px !important;
}

.admin-side-brand b {
  color: #fff !important;
  font-size: 13px !important;
  letter-spacing: .04em !important;
}

.admin-side-brand small {
  color: #aaa29b !important;
  font-size: 8px !important;
  letter-spacing: .12em !important;
}

.admin-side-group {
  margin-top: 14px !important;
}

.admin-side-group>span {
  color: #8f8881 !important;
  font-size: 9px !important;
  font-weight: 800 !important;
  padding: 0 10px 7px !important;
  display: block !important;
}

.admin-nav {
  border-radius: 13px !important;
  color: #c9c3bd !important;
  margin: 3px 0 !important;
  min-height: 43px !important;
  padding: 0 12px !important;
  transition: .18s ease !important;
}

.admin-nav:hover {
  background: rgba(255,255,255,.07) !important;
  color: #fff !important;
  transform: none !important;
}

.admin-nav.active {
  background: #eee7df !important;
  color: #2e2924 !important;
  box-shadow: 0 7px 20px rgba(0,0,0,.12) !important;
}

.admin-nav i {
  font-style: normal !important;
  font-weight: 700 !important;
}

.admin-nav.logout {
  color: #e3aaa0 !important;
}

.admin-main {
  padding: 0 30px 40px !important;
  max-width: 1700px !important;
  margin-inline: auto !important;
}

.admin-title {
  padding-top: 30px !important;
  margin-bottom: 20px !important;
}

.admin-title h1 {
  font-size: 28px !important;
  letter-spacing: -.03em !important;
}

.admin-title p {
  color: var(--ad-muted) !important;
}

.admin-title small {
  color: var(--ad-accent) !important;
  font-weight: 900 !important;
  letter-spacing: .08em !important;
}

.admin-title-actions {
  gap: 9px !important;
}

.admin-title-actions .btn {
  box-shadow: 0 9px 22px rgba(89,111,99,.18) !important;
}

.dashboard-command-bar {
  background: var(--ad-panel) !important;
  border: 1px solid var(--ad-line) !important;
  border-radius: 18px !important;
  box-shadow: 0 7px 25px rgba(55,43,34,.04) !important;
  padding: 11px 14px !important;
  margin-bottom: 18px !important;
}

.dashboard-command-actions {
  gap: 5px !important;
}

.dashboard-period {
  border: 0 !important;
  background: #f4f1ee !important;
  border-radius: 10px !important;
}

.dashboard-period.active {
  background: #2d3a34 !important;
  color: #fff !important;
}

.dashboard-refresh {
  border: 1px solid var(--ad-line) !important;
  background: #fff !important;
  border-radius: 10px !important;
}

.dashboard-quick-grid {
  gap: 12px !important;
  margin-bottom: 18px !important;
}

.quick-action {
  background: #fff !important;
  border: 1px solid var(--ad-line) !important;
  border-radius: 18px !important;
  box-shadow: 0 8px 25px rgba(55,43,34,.04) !important;
  min-height: 76px !important;
}

.quick-action:hover {
  transform: translateY(-2px) !important;
  box-shadow: var(--ad-shadow) !important;
}

.quick-action.primary {
  background: #2d3a34 !important;
  color: #fff !important;
  border-color: #2d3a34 !important;
}

.quick-action small {
  opacity: .68 !important;
}

.stats-grid {
  gap: 12px !important;
}

.stat {
  background: #fff !important;
  border: 1px solid var(--ad-line) !important;
  border-radius: 18px !important;
  box-shadow: 0 8px 25px rgba(55,43,34,.04) !important;
  padding: 17px !important;
  position: relative;
  overflow: hidden !important;
}

.stat:after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 3px;
  background: #d7c6b8;
  opacity: .8;
}

.stat small {
  color: var(--ad-muted) !important;
  font-weight: 700 !important;
}

.stat b {
  font-size: 22px !important;
  color: #302b27 !important;
}

.admin-dashboard-grid {
  gap: 14px !important;
}

.admin-card {
  background: #fff !important;
  border: 1px solid var(--ad-line) !important;
  border-radius: var(--ad-radius) !important;
  box-shadow: var(--ad-shadow) !important;
}

.card-head {
  border-bottom: 1px solid #f0ebe7 !important;
  padding-bottom: 12px !important;
}

.card-head h2 {
  font-size: 15px !important;
}

.card-head small {
  color: var(--ad-accent) !important;
  font-weight: 900 !important;
  letter-spacing: .06em !important;
}

.chart-col span {
  background: #65786d !important;
  border-radius: 8px 8px 3px 3px !important;
}

.chart-col b {
  font-size: 9px !important;
}

.chart-col small {
  color: #968d85 !important;
}

.order-mini,.top-product,.stock-alert {
  border-color: #f0eae5 !important;
}

.status-chip {
  border-radius: 999px !important;
}

.dashboard-footer-strip {
  border: 1px solid var(--ad-line) !important;
  background: #fff !important;
  border-radius: 18px !important;
  box-shadow: 0 8px 25px rgba(55,43,34,.04) !important;
}

/* consistent inner pages */

.admin-tab>.admin-card,.admin-tab>.section-kpi-card {
  box-shadow: var(--ad-shadow) !important;
}

.admin-tab .admin-card {
  border-color: var(--ad-line) !important;
  border-radius: var(--ad-radius) !important;
}

.admin-tab input,.admin-tab select,.admin-tab textarea {
  border-color: #e4ddd7 !important;
  border-radius: 12px !important;
  background: #fff !important;
}

.admin-tab input:focus,.admin-tab select:focus,.admin-tab textarea:focus {
  border-color: #8d9d95 !important;
  box-shadow: 0 0 0 3px rgba(89,111,99,.10) !important;
  outline: 0 !important;
}

.admin-tab table {
  border-collapse: separate !important;
  border-spacing: 0 7px !important;
}

.admin-tab thead th {
  color: #81776f !important;
  font-size: 10px !important;
  font-weight: 800 !important;
}

.admin-tab tbody tr {
  background: #fff !important;
  box-shadow: 0 5px 18px rgba(55,43,34,.035) !important;
}

.admin-tab tbody td {
  border-top: 1px solid #f0eae5 !important;
  border-bottom: 1px solid #f0eae5 !important;
}

.admin-tab tbody td:first-child {
  border-right: 1px solid #f0eae5 !important;
  border-radius: 0 12px 12px 0 !important;
}

.admin-tab tbody td:last-child {
  border-left: 1px solid #f0eae5 !important;
  border-radius: 12px 0 0 12px !important;
}

.admin-mobile-head {
  background: rgba(246,244,241,.94) !important;
  backdrop-filter: blur(16px) !important;
  border-bottom: 1px solid var(--ad-line) !important;
}

.admin-mobile-brand b {
  color: #302b27 !important;
}

.admin-head-icon {
  background: #fff !important;
  border: 1px solid var(--ad-line) !important;
  border-radius: 11px !important;
}

@media (max-width:1100px) {
  .admin-side {
    width: 220px !important;
  }
  .admin-main {
    padding-inline: 20px !important;
  }
}

@media (max-width:900px) {
  .admin-main {
    padding: 0 13px 28px !important;
  }
  .admin-title {
    padding-top: 18px !important;
  }
  .admin-title h1 {
    font-size: 23px !important;
  }
  .dashboard-quick-grid {
    grid-template-columns: repeat(2,minmax(0,1fr)) !important;
  }
  .stats-grid {
    grid-template-columns: repeat(2,minmax(0,1fr)) !important;
  }
  .admin-dashboard-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width:560px) {
  .admin-main {
    padding-inline: 10px !important;
  }
  .dashboard-quick-grid {
    grid-template-columns: 1fr !important;
  }
  .stats-grid {
    grid-template-columns: 1fr 1fr !important;
  }
  .stat {
    padding: 13px !important;
  }
  .stat b {
    font-size: 18px !important;
  }
  .admin-title-actions {
    width: 100% !important;
  }
  .admin-title-actions .btn,.admin-title-actions a {
    flex: 1 !important;
  }
  .dashboard-command-bar {
    padding: 10px !important;
  }
  .dashboard-command-actions {
    overflow: auto !important;
    justify-content: flex-start !important;
  }
  .dashboard-period,.dashboard-refresh {
    flex: 0 0 auto !important;
  }
  .admin-card {
    border-radius: 16px !important;
  }
}

/* V56.68 — LIVE SYSTEM HEALTH */

.system-health-card {
  overflow: hidden !important;
}

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

.health-card {
  min-height: 86px;
  border: 1px solid var(--ad-line);
  border-radius: 16px;
  background: #fff;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 16px;
}

.health-card>div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.health-card b {
  font-size: 11px;
  color: var(--ad-muted);
}

.health-card strong {
  font-size: 17px;
  color: var(--ad-ink);
}

.health-card small {
  font-size: 11px;
  color: var(--ad-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.health-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #aaa;
  box-shadow: 0 0 0 5px rgba(0,0,0,.035);
  flex: 0 0 auto;
}

.health-card.ok .health-dot {
  background: #4b8066;
  box-shadow: 0 0 0 5px rgba(75,128,102,.10);
}

.health-card.warn .health-dot {
  background: #b8894b;
  box-shadow: 0 0 0 5px rgba(184,137,75,.10);
}

.health-card.danger .health-dot {
  background: #b85d55;
  box-shadow: 0 0 0 5px rgba(184,93,85,.10);
}

.health-skeleton {
  height: 86px;
  border-radius: 16px;
  background: linear-gradient(90deg,#f2efeb 25%,#faf8f6 37%,#f2efeb 63%);
  background-size: 400% 100%;
  animation: healthShimmer 1.3s infinite;
}

@keyframes healthShimmer {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: -100% 0;
  }
}

@media (max-width:900px) {
  .system-health-grid {
    grid-template-columns: 1fr;
  }
  .health-card {
    min-height: 76px;
  }
}

/* V56.69 — ORDER CENTER / INVOICE ACTIONS */

.order-detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}

.order-detail-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.order-detail-actions .mini-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

@media (max-width:560px) {
  .order-detail-head {
    flex-direction: column;
  }
  .order-detail-actions {
    width: 100%;
  }
  .order-detail-actions .mini-btn {
    flex: 1;
  }
}

/* V56.70 — CRM PRO LAYER */

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

.customer-kpi-pro {
  min-height: 104px;
  padding: 16px;
  border: 1px solid var(--ad-line,#e8e2d8);
  border-radius: 16px;
  background: linear-gradient(180deg,#fff,#faf8f4);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}

.customer-kpi-pro small {
  font-size: 11px;
  color: var(--ad-muted,#777);
  font-weight: 700;
}

.customer-kpi-pro b {
  font-size: 18px;
  color: var(--ad-ink,#24231f);
  line-height: 1.35;
  word-break: break-word;
}

.customer-kpi-pro span {
  font-size: 11px;
  color: var(--ad-muted,#777);
}

.customer-contact-actions,.customer-row-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 5px;
}

.customer-contact-actions a {
  font-size: 11px;
  color: #71695f;
  text-decoration: none;
}

.customer-row-actions .mini-btn {
  white-space: nowrap;
  text-decoration: none;
}

.customer-cell {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 180px;
}

.customer-cell>span:last-child {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.customer-cell small {
  color: var(--ad-muted,#777);
  font-size: 11px;
}

.status-chip.is-active {
  background: #edf7ef;
}

@media (max-width:1200px) {
  .customer-kpis {
    grid-template-columns: repeat(3,minmax(0,1fr));
  }
}

@media (max-width:700px) {
  .customer-kpis {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
  .customer-kpi-pro {
    min-height: 92px;
    padding: 13px;
  }
  .customer-kpi-pro b {
    font-size: 15px;
  }
  .customer-row-actions {
    flex-direction: column;
  }
  .customer-row-actions .mini-btn {
    width: 100%;
    text-align: center;
  }
  .customer-contact-actions {
    display: none;
  }
}

/* V56.74 — RUNFLARE ADMIN COMMAND CENTER / VISUAL OVERHAUL
   Premium dashboard layout matching the approved preview. No external JS/assets required. */

:root {
  --rf-bg: #f3f5f7;
  --rf-surface: #ffffff;
  --rf-ink: #171a1f;
  --rf-muted: #7d8590;
  --rf-line: #e7e9ed;
  --rf-dark: #15171c;
  --rf-dark-2: #1e2128;
  --rf-accent: #7c8f86;
  --rf-accent-soft: #eef3f0;
  --rf-shadow: 0 12px 34px rgba(22,28,36,.055);
}

html:has(body.admin-body), body.admin-body {
  background: var(--rf-bg) !important;
  color: var(--rf-ink) !important;
}

/* V56.87 admin auth visibility guard: inline display:none must win over layout display rules. */

.admin-shell#adminView[style*="display:none"] {
  display: none !important;
}

.admin-shell {
  display: grid !important;
  grid-template-columns: 274px minmax(0,1fr) !important;
  min-height: 100vh !important;
  background: var(--rf-bg) !important;
}

.admin-side {
  position: sticky !important;
  top: 0 !important;
  height: 100vh !important;
  width: auto !important;
  box-sizing: border-box !important;
  background: linear-gradient(180deg,#121419 0%,#17191f 54%,#111318 100%) !important;
  border: 0 !important;
  border-left: 1px solid #2a2d34 !important;
  box-shadow: 12px 0 38px rgba(0,0,0,.08) !important;
  padding: 22px 15px !important;
  overflow-y: auto !important;
  z-index: 30 !important;
}

.admin-side-brand {
  display: grid !important;
  grid-template-columns: 48px 1fr !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 2px 7px 22px !important;
  margin-bottom: 18px !important;
  border-bottom: 1px solid rgba(255,255,255,.08) !important;
}

.admin-side-brand .admin-logo {
  width: 48px !important;
  height: 48px !important;
  border-radius: 14px !important;
  background: #fff !important;
  padding: 5px !important;
  object-fit: contain !important;
}

.admin-side-brand div {
  display: grid !important;
  gap: 4px !important;
}

.admin-side-brand b {
  color: #fff !important;
  font-size: 13px !important;
  letter-spacing: .07em !important;
}

.admin-side-brand small {
  color: #7f8792 !important;
  font-size: 8px !important;
  letter-spacing: .18em !important;
}

.admin-side-group {
  display: grid !important;
  gap: 6px !important;
  margin: 0 0 21px !important;
}

.admin-side-group>span {
  color: #707782 !important;
  font-size: 9px !important;
  font-weight: 800 !important;
  padding: 0 10px 6px !important;
  letter-spacing: .12em !important;
}

.admin-nav {
  min-height: 45px !important;
  border: 0 !important;
  border-radius: 12px !important;
  margin: 0 !important;
  padding: 0 13px !important;
  display: flex !important;
  align-items: center !important;
  gap: 11px !important;
  background: transparent !important;
  color: #aeb5c0 !important;
  font-size: 12px !important;
  transition: background .18s,transform .18s,color .18s !important;
}

.admin-nav:hover {
  background: #20232a !important;
  color: #fff !important;
  transform: translateX(-2px) !important;
}

.admin-nav.active {
  background: linear-gradient(135deg,#fff,#e9ebee) !important;
  color: #171a1f !important;
  box-shadow: 0 9px 22px rgba(0,0,0,.18) !important;
}

.admin-nav.logout {
  color: #e58d8d !important;
}

.admin-side-bottom {
  margin-top: auto !important;
  padding-top: 15px !important;
  border-top: 1px solid rgba(255,255,255,.08) !important;
  display: grid !important;
  gap: 5px !important;
}

.admin-main {
  min-width: 0 !important;
  width: 100% !important;
  max-width: none !important;
  padding: 0 38px 54px !important;
  box-sizing: border-box !important;
  background: var(--rf-bg) !important;
}

.admin-title.hero-title {
  min-height: 100px !important;
  padding-top: 29px !important;
  margin-bottom: 18px !important;
  align-items: center !important;
}

.admin-title h1 {
  font-size: 30px !important;
  color: var(--rf-ink) !important;
  letter-spacing: -.04em !important;
  margin: 5px 0 0 !important;
}

.admin-title p {
  font-size: 11px !important;
  color: var(--rf-muted) !important;
  margin: 7px 0 0 !important;
}

.admin-title small {
  font-size: 9px !important;
  color: #8b949f !important;
  letter-spacing: .16em !important;
}

.admin-title-actions .btn {
  background: #1b1e24 !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: 11px !important;
  padding: 12px 17px !important;
  box-shadow: 0 8px 18px rgba(24,28,34,.13) !important;
}

.admin-outline-btn {
  border: 1px solid var(--rf-line) !important;
  background: #fff !important;
  color: #3e4650 !important;
  border-radius: 11px !important;
  padding: 11px 15px !important;
}

.dashboard-command-bar {
  border: 1px solid var(--rf-line) !important;
  background: #fff !important;
  border-radius: 15px !important;
  box-shadow: var(--rf-shadow) !important;
  padding: 10px 12px !important;
}

.dashboard-welcome b {
  color: #22262c !important;
}

.dashboard-welcome small {
  color: var(--rf-muted) !important;
}

.dashboard-period {
  background: #f4f5f7 !important;
  color: #7b838e !important;
  border: 0 !important;
  border-radius: 9px !important;
}

.dashboard-period.active {
  background: #1b1e24 !important;
  color: #fff !important;
}

.dashboard-refresh {
  background: #fff !important;
  border: 1px solid var(--rf-line) !important;
  border-radius: 9px !important;
  color: #535b65 !important;
}

.dashboard-quick-grid {
  display: grid !important;
  grid-template-columns: repeat(4,minmax(0,1fr)) !important;
  gap: 12px !important;
  margin-bottom: 17px !important;
}

.quick-action {
  min-height: 78px !important;
  background: #fff !important;
  border: 1px solid var(--rf-line) !important;
  border-radius: 15px !important;
  box-shadow: 0 7px 22px rgba(18,25,38,.035) !important;
  padding: 13px 14px !important;
}

.quick-action:hover {
  transform: translateY(-2px) !important;
  box-shadow: var(--rf-shadow) !important;
}

.quick-action.primary {
  background: linear-gradient(135deg,#1d2127,#292e36) !important;
  border-color: #1d2127 !important;
  color: #fff !important;
}

.quick-action>span {
  width: 34px !important;
  height: 34px !important;
  border-radius: 10px !important;
  display: grid !important;
  place-items: center !important;
  background: #f0f2f4 !important;
  color: #4d5661 !important;
}

.quick-action.primary>span {
  background: rgba(255,255,255,.12) !important;
  color: #fff !important;
}

.quick-action b {
  font-size: 12px !important;
}

.quick-action small {
  font-size: 9px !important;
  color: #8a929d !important;
}

.quick-action.primary small {
  color: #b9bec5 !important;
}

.quick-action i {
  color: #a0a7b0 !important;
}

.stats-grid {
  display: grid !important;
  grid-template-columns: repeat(4,minmax(0,1fr)) !important;
  gap: 12px !important;
  margin-bottom: 16px !important;
}

.stat {
  min-height: 104px !important;
  background: #fff !important;
  border: 1px solid var(--rf-line) !important;
  border-radius: 15px !important;
  box-shadow: 0 7px 22px rgba(18,25,38,.035) !important;
  padding: 16px !important;
}

.stat:after {
  height: 2px !important;
  background: #cdd5d0 !important;
}

.stat small {
  color: #858d98 !important;
  font-size: 10px !important;
}

.stat b {
  color: #1e2228 !important;
  font-size: 23px !important;
  letter-spacing: -.03em !important;
}

.stat:before {
  content: "";
  position: absolute;
  top: 13px;
  left: 13px;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: #f1f3f5;
}

.admin-dashboard-grid {
  grid-template-columns: minmax(0,1.35fr) minmax(340px,.8fr) !important;
  gap: 15px !important;
}

.admin-card {
  background: var(--rf-surface) !important;
  border: 1px solid var(--rf-line) !important;
  border-radius: 17px !important;
  box-shadow: var(--rf-shadow) !important;
  padding: 18px !important;
}

.card-head {
  border-bottom: 1px solid #f0f1f3 !important;
  padding-bottom: 12px !important;
  margin-bottom: 12px !important;
}

.card-head h2 {
  font-size: 16px !important;
  color: #252a31 !important;
}

.card-head small {
  color: #9aa1aa !important;
  font-size: 9px !important;
  letter-spacing: .12em !important;
}

.chart-col span {
  background: #687b72 !important;
  border-radius: 7px 7px 3px 3px !important;
}

.chart-col small {
  color: #969da6 !important;
}

.chart-col b {
  color: #555d66 !important;
}

.order-mini,.top-product,.stock-alert {
  border-color: #eef0f2 !important;
}

.dashboard-footer-strip {
  background: #fff !important;
  border: 1px solid var(--rf-line) !important;
  box-shadow: var(--rf-shadow) !important;
  border-radius: 15px !important;
}

.admin-tab:not(#tab-dashboard) {
  padding-top: 25px !important;
}

.admin-tab:not(#tab-dashboard)>.admin-card {
  box-shadow: var(--rf-shadow) !important;
}

.admin-tab input,.admin-tab select,.admin-tab textarea {
  background: #fbfcfd !important;
  border-color: #e1e4e8 !important;
  border-radius: 11px !important;
}

.admin-tab input:focus,.admin-tab select:focus,.admin-tab textarea:focus {
  border-color: #9aa3ad !important;
  box-shadow: 0 0 0 3px rgba(70,78,87,.07) !important;
}

.admin-table-wrap table {
  border-collapse: separate !important;
  border-spacing: 0 7px !important;
}

.admin-table-wrap th {
  background: transparent !important;
  color: #7e8691 !important;
}

.admin-table-wrap tbody tr {
  background: #fff !important;
  box-shadow: 0 5px 17px rgba(18,25,38,.03) !important;
}

.admin-table-wrap tbody td {
  border-top: 1px solid #eef0f2 !important;
  border-bottom: 1px solid #eef0f2 !important;
}

.admin-table-wrap tbody td:first-child {
  border-right: 1px solid #eef0f2 !important;
  border-radius: 0 11px 11px 0 !important;
}

.admin-table-wrap tbody td:last-child {
  border-left: 1px solid #eef0f2 !important;
  border-radius: 11px 0 0 11px !important;
}

.system-health-grid {
  gap: 10px !important;
}

.health-card {
  background: #fbfcfd !important;
  border-color: #e9ebee !important;
  border-radius: 13px !important;
}

.health-card strong {
  font-size: 16px !important;
}

@media (max-width:1100px) {
  .admin-shell {
    grid-template-columns: 236px minmax(0,1fr) !important;
  }
  .admin-main {
    padding-inline: 24px !important;
  }
  .dashboard-quick-grid {
    grid-template-columns: repeat(2,minmax(0,1fr)) !important;
  }
  .stats-grid {
    grid-template-columns: repeat(2,minmax(0,1fr)) !important;
  }
  .admin-dashboard-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width:900px) {
  .admin-shell {
    display: block !important;
    grid-template-columns: 1fr !important;
  }
  .admin-side {
    display: none !important;
  }
  .admin-main {
    padding: 0 14px 35px !important;
  }
  .admin-mobile-head {
    display: flex !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 50 !important;
    background: rgba(243,245,247,.94) !important;
    border: 0 !important;
    border-bottom: 1px solid var(--rf-line) !important;
    border-radius: 0 !important;
    backdrop-filter: blur(14px) !important;
  }
  .admin-mobile-nav {
    display: flex !important;
    position: sticky !important;
    top: 62px !important;
    z-index: 45 !important;
    background: rgba(243,245,247,.94) !important;
  }
  .admin-tab:not(#tab-dashboard) {
    padding-top: 17px !important;
  }
  .admin-title.hero-title {
    padding-top: 20px !important;
  }
  .admin-title h1 {
    font-size: 25px !important;
  }
  .stats-grid {
    grid-template-columns: repeat(2,minmax(0,1fr)) !important;
  }
  .dashboard-quick-grid {
    grid-template-columns: repeat(2,minmax(0,1fr)) !important;
  }
}

@media (max-width:560px) {
  .admin-main {
    padding-inline: 9px !important;
  }
  .admin-title h1 {
    font-size: 22px !important;
  }
  .dashboard-quick-grid {
    grid-template-columns: 1fr !important;
  }
  .stats-grid {
    grid-template-columns: 1fr 1fr !important;
  }
  .stat {
    min-height: 91px !important;
    padding: 13px !important;
  }
  .stat b {
    font-size: 18px !important;
  }
  .admin-title-actions {
    width: 100% !important;
  }
  .admin-title-actions .btn,.admin-title-actions a {
    flex: 1 !important;
  }
  .dashboard-command-bar {
    overflow: hidden !important;
  }
  .dashboard-command-actions {
    overflow-x: auto !important;
  }
  .admin-card {
    border-radius: 14px !important;
    padding: 14px !important;
  }
}

/* V56.76 — ADMIN PRO REBUILD
   Deliberately replaces the previous admin visual language. Business logic/classes are preserved,
   while the shell, hierarchy, spacing, surfaces and controls are rebuilt around an operations-first UI. */

:root {
  --p-bg: #f4f7fb;
  --p-surface: #fff;
  --p-ink: #182230;
  --p-muted: #718096;
  --p-line: #e4e9f0;
  --p-nav: #111827;
  --p-nav2: #172033;
  --p-brand: #315c4d;
  --p-brand2: #3f7b67;
  --p-accent: #2f6f5e;
  --p-blue: #356ae6;
  --p-danger: #c94b5a;
  --p-warning: #b87920;
  --p-shadow: 0 10px 35px rgba(21,35,54,.07);
  --p-radius: 16px;
}

html,body.admin-body {
  background: var(--p-bg) !important;
  color: var(--p-ink) !important;
  font-family: Vazirmatn,system-ui,sans-serif !important;
}

.admin-body * {
  box-sizing: border-box !important;
}

.admin-login {
  background: radial-gradient(circle at 20% 20%,#e6f0eb 0,#f5f7fa 34%,#eef2f6 100%) !important;
}

.admin-login-shell {
  max-width: 1040px !important;
  grid-template-columns: 1fr 440px !important;
  gap: 55px !important;
}

.admin-login-brand {
  align-content: center !important;
  justify-items: start !important;
  color: var(--p-ink) !important;
}

.admin-login-brand img {
  width: 82px !important;
  height: 82px !important;
  border-radius: 24px !important;
  background: #fff !important;
  box-shadow: 0 20px 45px rgba(27,43,62,.12) !important;
}

.admin-login-brand span {
  font-size: 30px !important;
  letter-spacing: .16em !important;
  color: var(--p-ink) !important;
}

.admin-login-brand small {
  font-size: 12px !important;
  color: var(--p-muted) !important;
  letter-spacing: .08em !important;
}

.admin-login-card {
  border: 1px solid var(--p-line) !important;
  border-radius: 26px !important;
  background: #fff !important;
  box-shadow: 0 25px 70px rgba(20,36,55,.12) !important;
  padding: 34px !important;
}

.admin-login-card h1 {
  font-size: 25px !important;
  color: var(--p-ink) !important;
}

.admin-login-card p {
  color: var(--p-muted) !important;
}

.admin-login-btn {
  background: var(--p-nav) !important;
  border-radius: 12px !important;
}

.admin-passkey-btn {
  border-radius: 12px !important;
  background: #f4f7fb !important;
  border-color: var(--p-line) !important;
}

.pro-admin-shell {
  display: grid !important;
  grid-template-columns: 252px minmax(0,1fr) !important;
  min-height: 100vh !important;
  background: var(--p-bg) !important;
}

.pro-sidebar {
  position: sticky !important;
  top: 0 !important;
  height: 100vh !important;
  width: 252px !important;
  background: linear-gradient(180deg,#111827 0%,#121a2a 55%,#0f1724 100%) !important;
  border: 0 !important;
  padding: 18px 13px 14px !important;
  box-shadow: 10px 0 35px rgba(10,18,30,.08) !important;
  display: flex !important;
  flex-direction: column !important;
  z-index: 70 !important;
}

.pro-brand {
  display: flex !important;
  align-items: center !important;
  gap: 11px !important;
  padding: 8px 8px 19px !important;
  border-bottom: 1px solid rgba(255,255,255,.08) !important;
  margin-bottom: 17px !important;
}

.pro-brand-mark {
  width: 42px !important;
  height: 42px !important;
  border-radius: 13px !important;
  background: linear-gradient(135deg,#d9ede5,#6ea993) !important;
  color: #10241d !important;
  display: grid !important;
  place-items: center !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  letter-spacing: .05em !important;
}

.pro-brand b {
  display: block !important;
  color: #fff !important;
  font-size: 13px !important;
  letter-spacing: .14em !important;
}

.pro-brand small {
  display: block !important;
  color: #8390a5 !important;
  font-size: 8px !important;
  letter-spacing: .12em !important;
  margin-top: 3px !important;
}

.pro-side-scroll {
  overflow: auto !important;
  padding-right: 2px !important;
}

.pro-side-group {
  display: grid !important;
  gap: 3px !important;
  margin-bottom: 18px !important;
}

.pro-side-group>span {
  font-size: 9px !important;
  color: #7f8ba0 !important;
  font-weight: 800 !important;
  padding: 0 11px 7px !important;
}

.pro-sidebar .admin-nav {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  gap: 11px !important;
  width: 100% !important;
  border: 0 !important;
  border-radius: 11px !important;
  background: transparent !important;
  color: #b9c2d0 !important;
  padding: 10px 11px !important;
  text-align: right !important;
  cursor: pointer !important;
}

.pro-sidebar .admin-nav i {
  font-style: normal !important;
  width: 21px !important;
  text-align: center !important;
  font-size: 15px !important;
  color: #8d9ab0 !important;
}

.pro-sidebar .admin-nav em {
  font-style: normal !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  flex: 1 !important;
}

.pro-sidebar .admin-nav:hover {
  background: rgba(255,255,255,.055) !important;
  color: #fff !important;
}

.pro-sidebar .admin-nav.active {
  background: linear-gradient(90deg,rgba(84,151,123,.27),rgba(84,151,123,.08)) !important;
  color: #fff !important;
  box-shadow: inset 3px 0 0 #74b79e !important;
}

.pro-sidebar .admin-nav.active i {
  color: #91d1b6 !important;
}

.nav-count {
  font-size: 9px !important;
  background: #e9a34c !important;
  color: #182230 !important;
  min-width: 20px !important;
  height: 20px !important;
  border-radius: 999px !important;
  display: grid !important;
  place-items: center !important;
}

.pro-side-bottom {
  margin-top: auto !important;
  border-top: 1px solid rgba(255,255,255,.08) !important;
  padding-top: 13px !important;
  display: grid !important;
  gap: 5px !important;
}

.pro-store-link,.pro-logout {
  border: 0 !important;
  background: transparent !important;
  color: #9eabbc !important;
  padding: 10px 11px !important;
  border-radius: 10px !important;
  text-decoration: none !important;
  font-size: 11px !important;
  text-align: right !important;
  cursor: pointer !important;
}

.pro-store-link:hover,.pro-logout:hover {
  background: rgba(255,255,255,.05) !important;
  color: #fff !important;
}

.pro-admin-main {
  min-width: 0 !important;
  padding: 0 28px 40px !important;
  background: var(--p-bg) !important;
}

.pro-topbar {
  height: 74px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 20px !important;
  border-bottom: 1px solid var(--p-line) !important;
  background: rgba(244,247,251,.94) !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 60 !important;
  backdrop-filter: blur(14px) !important;
}

.pro-top-left {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
}

.pro-top-left strong {
  display: block !important;
  font-size: 13px !important;
  color: var(--p-ink) !important;
}

.pro-breadcrumb {
  display: block !important;
  font-size: 8px !important;
  letter-spacing: .14em !important;
  color: #96a1b1 !important;
  margin-bottom: 3px !important;
}

.pro-menu-trigger {
  display: none !important;
}

.pro-top-actions {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.pro-search {
  height: 40px !important;
  min-width: 340px !important;
  border: 1px solid var(--p-line) !important;
  background: #fff !important;
  border-radius: 11px !important;
  display: flex !important;
  align-items: center !important;
  gap: 9px !important;
  padding: 0 12px !important;
  color: #8994a5 !important;
  font-family: inherit !important;
  cursor: pointer !important;
}

.pro-search span:nth-child(2) {
  font-size: 10px !important;
  flex: 1 !important;
  text-align: right !important;
}

.pro-search kbd {
  font-size: 8px !important;
  border: 1px solid var(--p-line) !important;
  border-radius: 5px !important;
  padding: 3px 5px !important;
  background: #f7f9fb !important;
}

.pro-icon-btn,.pro-exit,.pro-view-store {
  height: 40px !important;
  border: 1px solid var(--p-line) !important;
  background: #fff !important;
  border-radius: 10px !important;
  color: #536174 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 12px !important;
  text-decoration: none !important;
  font-size: 10px !important;
  cursor: pointer !important;
}

.pro-icon-btn {
  width: 40px !important;
  position: relative !important;
  font-size: 16px !important;
}

.pro-view-store:hover,.pro-exit:hover,.pro-icon-btn:hover {
  border-color: #cbd5e1 !important;
  color: var(--p-ink) !important;
}

.pro-view-store {
  background: var(--p-nav) !important;
  border-color: var(--p-nav) !important;
  color: #fff !important;
}

.pro-exit {
  color: var(--p-danger) !important;
}

.admin-tab {
  padding-top: 26px !important;
}

.pro-page-title {
  padding: 0 !important;
  margin: 0 0 20px !important;
  min-height: 82px !important;
}

.pro-page-title h1,.admin-title h1 {
  font-size: 26px !important;
  color: var(--p-ink) !important;
  letter-spacing: -.04em !important;
}

.pro-page-title p,.admin-title p {
  font-size: 10px !important;
  color: var(--p-muted) !important;
}

.pro-page-title small,.admin-title small {
  font-size: 8px !important;
  color: #91a0b2 !important;
  letter-spacing: .16em !important;
}

.pro-page-actions {
  display: flex !important;
  gap: 8px !important;
  align-items: center !important;
}

.pro-page-actions .btn,.pro-admin-main .admin-title-actions .btn {
  background: var(--p-nav) !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: 10px !important;
  box-shadow: none !important;
}

.admin-outline-btn {
  background: #fff !important;
  border: 1px solid var(--p-line) !important;
  color: #536174 !important;
  border-radius: 10px !important;
  text-decoration: none !important;
}

.admin-card,.admin-tab>.section-kpi-card {
  background: var(--p-surface) !important;
  border: 1px solid var(--p-line) !important;
  border-radius: var(--p-radius) !important;
  box-shadow: var(--p-shadow) !important;
  padding: 18px !important;
}

.card-head {
  border-bottom: 1px solid #edf1f5 !important;
  padding-bottom: 13px !important;
  margin-bottom: 14px !important;
}

.card-head h2 {
  color: var(--p-ink) !important;
  font-size: 15px !important;
}

.card-head small {
  color: #91a0b2 !important;
  font-size: 8px !important;
  letter-spacing: .14em !important;
}

.admin-note,.muted {
  color: var(--p-muted) !important;
}

.dashboard-command-bar {
  border: 1px solid var(--p-line) !important;
  background: #fff !important;
  border-radius: 13px !important;
  box-shadow: none !important;
  padding: 10px 13px !important;
}

.dashboard-period {
  background: #f2f5f8 !important;
  color: #68768a !important;
  border-radius: 9px !important;
  border: 0 !important;
}

.dashboard-period.active {
  background: var(--p-nav) !important;
  color: #fff !important;
}

.dashboard-refresh {
  background: #fff !important;
  border: 1px solid var(--p-line) !important;
  border-radius: 9px !important;
  color: #4f5d71 !important;
}

.dashboard-quick-grid {
  grid-template-columns: repeat(5,minmax(0,1fr)) !important;
  gap: 10px !important;
}

.quick-action {
  background: #fff !important;
  border: 1px solid var(--p-line) !important;
  border-radius: 13px !important;
  box-shadow: 0 5px 20px rgba(20,34,50,.035) !important;
  min-height: 74px !important;
}

.quick-action.primary {
  background: var(--p-nav) !important;
  border-color: var(--p-nav) !important;
}

.quick-action>span {
  background: #edf4f0 !important;
  color: var(--p-accent) !important;
}

.quick-action.primary>span {
  background: rgba(255,255,255,.1) !important;
  color: #fff !important;
}

.quick-action b {
  color: var(--p-ink) !important;
}

.quick-action.primary b {
  color: #fff !important;
}

.quick-action small {
  color: #8290a3 !important;
}

.quick-action.primary small {
  color: #bdc8d4 !important;
}

.stats-grid {
  gap: 10px !important;
}

.stat {
  background: #fff !important;
  border: 1px solid var(--p-line) !important;
  border-radius: 13px !important;
  box-shadow: none !important;
  min-height: 96px !important;
}

.stat small {
  color: #8491a2 !important;
}

.stat b {
  color: var(--p-ink) !important;
}

.admin-dashboard-grid {
  gap: 12px !important;
}

.ops-row,.order-mini,.top-product,.stock-alert,.inventory-alert-row,.admin-list-row {
  border-color: #edf1f5 !important;
  background: #fff !important;
}

.ops-row:hover,.inventory-alert-row:hover {
  background: #f8fafc !important;
}

.dashboard-footer-strip {
  background: #fff !important;
  border: 1px solid var(--p-line) !important;
  border-radius: 13px !important;
  box-shadow: none !important;
}

/* Reports */

.report-filter-bar {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 15px !important;
  background: #fff !important;
  border: 1px solid var(--p-line) !important;
  border-radius: 14px !important;
  padding: 12px 15px !important;
  margin-bottom: 14px !important;
}

.report-filter-bar b {
  display: block !important;
  font-size: 11px !important;
}

.report-filter-bar span {
  font-size: 9px !important;
  color: var(--p-muted) !important;
}

.report-periods {
  display: flex !important;
  gap: 5px !important;
  overflow: auto !important;
}

.report-period {
  border: 1px solid var(--p-line) !important;
  background: #f8fafc !important;
  border-radius: 8px !important;
  padding: 8px 12px !important;
  color: #64748b !important;
  font-family: inherit !important;
  font-size: 9px !important;
  cursor: pointer !important;
  white-space: nowrap !important;
}

.report-period.active {
  background: var(--p-nav) !important;
  color: #fff !important;
  border-color: var(--p-nav) !important;
}

.deep-kpi-grid {
  display: grid !important;
  grid-template-columns: repeat(4,minmax(0,1fr)) !important;
  gap: 10px !important;
  margin-bottom: 12px !important;
}

.deep-kpi {
  background: #fff !important;
  border: 1px solid var(--p-line) !important;
  border-radius: 14px !important;
  padding: 15px !important;
  min-height: 104px !important;
}

.deep-kpi small,.deep-kpi span {
  display: block !important;
  color: #8491a2 !important;
  font-size: 9px !important;
}

.deep-kpi b {
  display: block !important;
  font-size: 19px !important;
  color: var(--p-ink) !important;
  margin: 8px 0 3px !important;
}

.report-grid-2 {
  display: grid !important;
  grid-template-columns: minmax(0,1.3fr) minmax(320px,.8fr) !important;
  gap: 12px !important;
  margin-bottom: 12px !important;
}

.report-grid-3 {
  display: grid !important;
  grid-template-columns: repeat(3,minmax(0,1fr)) !important;
  gap: 12px !important;
  margin-bottom: 12px !important;
}

.deep-bars {
  height: 210px !important;
  display: flex !important;
  align-items: end !important;
  gap: 8px !important;
  overflow: auto !important;
  padding: 12px 2px 0 !important;
}

.deep-bar {
  min-width: 48px !important;
  text-align: center !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: end !important;
  height: 190px !important;
}

.deep-bar>div {
  height: 155px !important;
  display: flex !important;
  align-items: end !important;
}

.deep-bar span {
  width: 27px !important;
  border-radius: 7px 7px 2px 2px !important;
  background: linear-gradient(180deg,#4f8a75,#2f6f5e) !important;
  display: block !important;
  min-height: 6px !important;
}

.deep-bar small {
  font-size: 8px !important;
  color: #8a96a7 !important;
  margin-top: 7px !important;
}

.deep-bar b {
  font-size: 8px !important;
  color: #58667a !important;
  margin-top: 3px !important;
}

.funnel-list {
  display: grid !important;
  gap: 12px !important;
  padding: 8px 0 !important;
}

.funnel-row {
  display: grid !important;
  grid-template-columns: 110px 1fr 40px !important;
  align-items: center !important;
  gap: 9px !important;
}

.funnel-row span {
  font-size: 9px !important;
  color: #627084 !important;
}

.funnel-row i {
  height: 7px !important;
  background: #edf1f5 !important;
  border-radius: 99px !important;
  overflow: hidden !important;
}

.funnel-row em {
  display: block !important;
  height: 100% !important;
  background: #4e7f6c !important;
  border-radius: 99px !important;
}

.funnel-row b {
  font-size: 9px !important;
  text-align: left !important;
}

.rank-list {
  display: grid !important;
  gap: 0 !important;
}

.rank-row {
  display: flex !important;
  gap: 10px !important;
  align-items: center !important;
  padding: 10px 0 !important;
  border-bottom: 1px solid #eef1f4 !important;
}

.rank-row:last-child {
  border-bottom: 0 !important;
}

.rank-row>strong {
  width: 25px !important;
  height: 25px !important;
  border-radius: 8px !important;
  background: #eef4f1 !important;
  color: #376956 !important;
  display: grid !important;
  place-items: center !important;
  font-size: 9px !important;
}

.rank-row>span {
  font-size: 10px !important;
  color: #364256 !important;
  flex: 1 !important;
}

.rank-row small {
  display: block !important;
  color: #8995a5 !important;
  font-size: 8px !important;
  margin-top: 3px !important;
}

.ops-metrics {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 8px !important;
}

.ops-metrics>div {
  background: #f7f9fb !important;
  border: 1px solid #edf1f5 !important;
  border-radius: 10px !important;
  padding: 11px !important;
}

.ops-metrics span {
  display: block !important;
  color: #7e8b9d !important;
  font-size: 8px !important;
}

.ops-metrics b {
  display: block !important;
  margin-top: 5px !important;
  color: var(--p-ink) !important;
  font-size: 12px !important;
}

.report-web-grid {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 15px !important;
}

/* Product media controls */

.upload-box {
  border: 1px solid var(--p-line) !important;
  background: #f8fafc !important;
  border-radius: 14px !important;
  padding: 15px !important;
}

.current-images {
  display: grid !important;
  grid-template-columns: repeat(auto-fill,minmax(210px,1fr)) !important;
  gap: 10px !important;
  margin-top: 12px !important;
}

.product-image-item {
  background: #fff !important;
  border: 1px solid var(--p-line) !important;
  border-radius: 13px !important;
  overflow: hidden !important;
}

.product-image-item.is-primary {
  border: 2px solid #4d826f !important;
  box-shadow: 0 0 0 3px rgba(77,130,111,.08) !important;
}

.product-image-item>img {
  width: 100% !important;
  height: 160px !important;
  object-fit: cover !important;
  display: block !important;
  background: #eef2f5 !important;
}

.product-image-meta {
  padding: 9px !important;
}

.product-image-meta>b {
  font-size: 10px !important;
  display: block !important;
  margin-bottom: 7px !important;
}

.product-image-meta>div {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 4px !important;
}

.product-image-meta .mini-btn {
  font-size: 8px !important;
  padding: 6px 7px !important;
}

.image-draft-empty {
  padding: 22px !important;
  text-align: center !important;
  color: #8793a4 !important;
  background: #fff !important;
  border: 1px dashed #ccd5df !important;
  border-radius: 11px !important;
}

.mini-btn.primary {
  background: #e7f2ed !important;
  color: #2f6f5e !important;
  border-color: #cfe3da !important;
}

/* Forms / tables */

.admin-main input,.admin-main select,.admin-main textarea {
  border-color: var(--p-line) !important;
  background: #fff !important;
  color: var(--p-ink) !important;
  border-radius: 9px !important;
}

.admin-main input:focus,.admin-main select:focus,.admin-main textarea:focus {
  border-color: #7fae9d !important;
  box-shadow: 0 0 0 3px rgba(79,135,113,.1) !important;
}

.admin-table-wrap {
  border: 1px solid var(--p-line) !important;
  border-radius: 12px !important;
  overflow: auto !important;
}

.admin-table-wrap table {
  background: #fff !important;
}

.admin-table-wrap th {
  background: #f6f8fa !important;
  color: #68768a !important;
  border-bottom: 1px solid var(--p-line) !important;
  font-size: 9px !important;
}

.admin-table-wrap td {
  border-bottom: 1px solid #eef1f4 !important;
  font-size: 10px !important;
}

.btn {
  border-radius: 10px !important;
}

.btn.ghost,.mini-btn.ghost {
  background: #fff !important;
  border-color: var(--p-line) !important;
  color: #64748b !important;
}

.mini-btn.danger {
  border-color: #f1cfd3 !important;
  color: var(--p-danger) !important;
  background: #fff !important;
}

/* Mobile */

.pro-mobile-nav {
  display: none !important;
}

.admin-mobile-drawer {
  display: none !important;
}

.admin-drawer-backdrop {
  display: none !important;
}

@media (max-width:1200px) {
  .pro-admin-shell {
    grid-template-columns: 224px minmax(0,1fr) !important;
  }
  .pro-sidebar {
    width: 224px !important;
  }
  .pro-admin-main {
    padding-inline: 20px !important;
  }
  .pro-search {
    min-width: 260px !important;
  }
  .dashboard-quick-grid {
    grid-template-columns: repeat(3,minmax(0,1fr)) !important;
  }
  .deep-kpi-grid {
    grid-template-columns: repeat(4,minmax(0,1fr)) !important;
  }
}

@media (max-width:900px) {
  .pro-admin-shell {
    display: block !important;
  }
  .pro-sidebar {
    display: none !important;
  }
  .pro-admin-main {
    padding: 0 12px 30px !important;
  }
  .pro-topbar {
    height: 62px !important;
  }
  .pro-menu-trigger {
    display: block !important;
    width: 38px !important;
    height: 38px !important;
    border: 1px solid var(--p-line) !important;
    background: #fff !important;
    border-radius: 10px !important;
    color: var(--p-ink) !important;
  }
  .pro-search {
    min-width: 0 !important;
    width: 40px !important;
    padding: 0 !important;
    justify-content: center !important;
  }
  .pro-search span:nth-child(2),.pro-search kbd,.pro-view-store {
    display: none !important;
  }
  .pro-icon-btn {
    display: flex !important;
  }
  .pro-exit {
    display: none !important;
  }
  .pro-mobile-nav {
    display: flex !important;
    position: sticky !important;
    top: 62px !important;
    z-index: 55 !important;
    background: rgba(244,247,251,.96) !important;
    border-bottom: 1px solid var(--p-line) !important;
    gap: 5px !important;
    padding: 7px 0 !important;
    overflow: auto !important;
  }
  .pro-mobile-nav .admin-mobile-tab {
    flex: 0 0 auto !important;
    border: 1px solid var(--p-line) !important;
    background: #fff !important;
    border-radius: 8px !important;
    padding: 8px 11px !important;
    font-family: inherit !important;
    color: #64748b !important;
    font-size: 9px !important;
  }
  .pro-mobile-nav .admin-mobile-tab.active {
    background: var(--p-nav) !important;
    border-color: var(--p-nav) !important;
    color: #fff !important;
  }
  .admin-drawer-backdrop.show {
    display: block !important;
    position: fixed !important;
    inset: 0 !important;
    background: rgba(10,18,30,.45) !important;
    z-index: 100 !important;
  }
  .admin-mobile-drawer.open {
    display: flex !important;
    position: fixed !important;
    right: 0 !important;
    top: 0 !important;
    bottom: 0 !important;
    width: min(330px,88vw) !important;
    background: #111827 !important;
    z-index: 110 !important;
    flex-direction: column !important;
    padding: 16px !important;
    box-shadow: -15px 0 45px rgba(0,0,0,.2) !important;
  }
  .pro-drawer-brand {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    color: #fff !important;
    padding-bottom: 16px !important;
    border-bottom: 1px solid rgba(255,255,255,.08) !important;
  }
  .pro-drawer-brand>div:nth-child(2) {
    flex: 1 !important;
  }
  .pro-drawer-brand b {
    display: block !important;
    font-size: 12px !important;
    letter-spacing: .12em !important;
  }
  .pro-drawer-brand small {
    font-size: 8px !important;
    color: #8390a5 !important;
  }
  .pro-drawer-brand button {
    border: 0 !important;
    background: transparent !important;
    color: #fff !important;
    font-size: 25px !important;
  }
  .pro-drawer-nav {
    overflow: auto !important;
    padding: 15px 0 !important;
    display: grid !important;
    gap: 4px !important;
  }
  .pro-drawer-nav>span {
    font-size: 9px !important;
    color: #7f8ba0 !important;
    padding: 8px !important;
  }
  .pro-drawer-nav .admin-drawer-link {
    display: flex !important;
    gap: 10px !important;
    border: 0 !important;
    background: transparent !important;
    color: #b9c2d0 !important;
    border-radius: 10px !important;
    padding: 10px !important;
    text-align: right !important;
    font-family: inherit !important;
  }
  .pro-drawer-nav .admin-drawer-link i {
    font-style: normal !important;
  }
  .pro-drawer-nav .admin-drawer-link.active {
    background: rgba(84,151,123,.2) !important;
    color: #fff !important;
  }
  .pro-drawer-bottom {
    margin-top: auto !important;
    border-top: 1px solid rgba(255,255,255,.08) !important;
    padding-top: 10px !important;
    display: grid !important;
  }
  .pro-drawer-bottom a,.pro-drawer-bottom button {
    padding: 11px !important;
    color: #aab5c4 !important;
    background: transparent !important;
    border: 0 !important;
    text-decoration: none !important;
    text-align: right !important;
    font-family: inherit !important;
  }
  .admin-tab {
    padding-top: 18px !important;
  }
  .pro-page-title {
    min-height: auto !important;
    align-items: flex-start !important;
  }
  .dashboard-quick-grid {
    grid-template-columns: repeat(2,minmax(0,1fr)) !important;
  }
  .report-grid-2,.report-grid-3 {
    grid-template-columns: 1fr !important;
  }
  .deep-kpi-grid {
    grid-template-columns: repeat(2,minmax(0,1fr)) !important;
  }
  .report-filter-bar {
    align-items: flex-start !important;
    flex-direction: column !important;
  }
  .report-periods {
    width: 100% !important;
  }
  .report-web-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width:560px) {
  .pro-admin-main {
    padding-inline: 9px !important;
  }
  .pro-top-left strong {
    font-size: 11px !important;
  }
  .pro-breadcrumb {
    font-size: 7px !important;
  }
  .pro-icon-btn {
    width: 36px !important;
  }
  .pro-top-actions {
    gap: 5px !important;
  }
  .dashboard-quick-grid {
    grid-template-columns: 1fr !important;
  }
  .stats-grid {
    grid-template-columns: 1fr 1fr !important;
  }
  .deep-kpi-grid {
    grid-template-columns: 1fr 1fr !important;
  }
  .deep-kpi {
    min-height: 92px !important;
    padding: 12px !important;
  }
  .deep-kpi b {
    font-size: 15px !important;
  }
  .current-images {
    grid-template-columns: 1fr !important;
  }
  .product-image-item>img {
    height: 190px !important;
  }
  .funnel-row {
    grid-template-columns: 90px 1fr 32px !important;
  }
  .ops-metrics {
    grid-template-columns: 1fr !important;
  }
  .pro-page-title h1,.admin-title h1 {
    font-size: 21px !important;
  }
  .pro-page-actions {
    width: 100% !important;
  }
  .pro-page-actions .btn,.pro-page-actions .admin-outline-btn {
    flex: 1 !important;
    text-align: center !important;
  }
  .admin-card {
    padding: 14px !important;
    border-radius: 13px !important;
  }
}

/* v56.77 shipment tracking */

.order-tracking-fields {
  display: grid;
  grid-template-columns: minmax(105px,.7fr) minmax(150px,1.1fr) minmax(145px,1fr);
  gap: 6px;
  margin-bottom: 7px;
  min-width: 360px;
}

.order-tracking-fields input,.order-tracking-fields select {
  min-width: 0;
  width: 100%;
  padding: 8px 9px;
  border: 1px solid #e4e7eb;
  border-radius: 10px;
  background: #fff;
  font: inherit;
  font-size: 11px;
}

.order-tracking-summary {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 10px;
  margin: 14px 0;
  padding: 12px;
  border: 1px solid #e7e9ee;
  border-radius: 14px;
  background: #fafbfc;
}

.order-tracking-summary div {
  display: grid;
  gap: 4px;
}

.order-tracking-summary small {
  color: #7b8491;
  font-size: 10px;
}

.order-tracking-summary b {
  font-size: 12px;
  overflow-wrap: anywhere;
}

.customer-tracking-panel {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid #e8e8ed;
  border-radius: 16px;
  background: #fafbfc;
}

.customer-tracking-panel>div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.customer-tracking-panel span {
  color: #747b86;
  font-size: 12px;
}

.customer-tracking-panel b {
  overflow-wrap: anywhere;
  text-align: left;
  direction: ltr;
}

.customer-tracking-panel small {
  color: #7b8491;
  line-height: 1.8;
}

.carrier-action {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid #e6e8ed;
  border-radius: 16px;
  background: #fff;
}

.carrier-action.is-active {
  border-color: #c8d8ff;
  box-shadow: 0 4px 18px #00000008;
}

.carrier-action b {
  font-size: 14px;
}

.carrier-action small {
  color: #7b8491;
}

.carrier-action div {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}

.carrier-action button,.carrier-action a,.track-copy-btn {
  border: 1px solid #e1e4e9;
  background: #fff;
  border-radius: 10px;
  padding: 8px 10px;
  font: inherit;
  font-size: 11px;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.carrier-action a {
  background: #101828;
  color: #fff;
  border-color: #101828;
}

.shipping-code-value {
  direction: ltr;
  unicode-bidi: plaintext;
  font-size: 16px;
  letter-spacing: .4px;
}

.track-copy-btn {
  grid-column: 1/-1;
  justify-self: start;
}

.track-help {
  color: #737b87;
  font-size: 12px;
  line-height: 1.9;
}

.carrier-empty {
  padding: 18px;
  border: 1px dashed #d9dde4;
  border-radius: 14px;
  color: #7b8491;
  text-align: center;
}

@media (max-width:760px) {
  .order-tracking-fields {
    grid-template-columns: 1fr;
    min-width: 0;
  }
  .order-tracking-summary {
    grid-template-columns: 1fr;
  }
  .carrier-grid {
    grid-template-columns: 1fr;
  }
  .customer-tracking-panel>div {
    align-items: flex-start;
    flex-direction: column;
  }
  .customer-tracking-panel b {
    text-align: right;
    direction: rtl;
  }
}

/* Live Hero editor — compact upload controls for the admin panel. */

.hero-admin-row {
  grid-template-columns: minmax(0,1fr) auto;
  min-width: 0;
}

.hero-admin-row-head {
  grid-column: 1/-1;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-admin-fields {
  grid-column: 1/-1;
}

.hero-image-field {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 8px;
  align-items: center;
}

@media (max-width:700px) {
  .hero-admin-row {
    grid-template-columns: 1fr;
  }
  .hero-admin-row-head,.hero-admin-fields {
    grid-column: 1;
  }
  .hero-image-field {
    grid-template-columns: 1fr;
  }
  .hero-admin-row>.editor-actions {
    justify-content: flex-start;
  }
}

.selected-images-preview{display:grid;grid-template-columns:repeat(auto-fill,minmax(92px,1fr));gap:10px;margin:12px 0}.selected-image-preview-item{position:relative;aspect-ratio:1;border:1px solid rgba(0,0,0,.08);border-radius:14px;overflow:hidden;background:#f7f5f1}.selected-image-preview-item img{width:100%;height:100%;object-fit:cover;display:block}.selected-image-preview-item span{position:absolute;top:6px;right:6px;min-width:24px;height:24px;border-radius:999px;background:rgba(0,0,0,.58);color:#fff;display:grid;place-items:center;font-size:12px}


/* ONLINE RACK — replaces Live Hero */
.rack-showcase{width:min(1380px,calc(100% - 40px));margin:22px auto 0;border:1px solid var(--ek-line);border-radius:34px;overflow:hidden;position:relative;background:linear-gradient(135deg,#f7efe7 0%,#fffaf5 48%,#edf2ee 100%);box-shadow:var(--ek-shadow);padding:30px 34px 24px;isolation:isolate}
.rack-showcase:before{content:"";position:absolute;inset:0;background:radial-gradient(circle at 50% 12%,rgba(255,255,255,.95),transparent 42%),radial-gradient(circle at 12% 75%,rgba(239,207,210,.35),transparent 30%),radial-gradient(circle at 90% 70%,rgba(202,218,208,.32),transparent 28%);z-index:-1}
.rack-header{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;position:relative;z-index:4}
.rack-eyebrow{font-size:10px;letter-spacing:.16em;font-weight:800;color:#7d706d;background:rgba(255,255,255,.7);border:1px solid rgba(255,255,255,.8);padding:7px 11px;border-radius:999px}
.rack-header h1{font-size:clamp(34px,4.4vw,62px);line-height:1.05;letter-spacing:-.055em;margin:14px 0 8px;color:#303a38}
.rack-header p{margin:0;max-width:650px;color:#69736f;font-size:13px;line-height:1.9}
.rack-hint{font-size:11px;color:#7a817e;white-space:nowrap;padding-bottom:9px}
.rack-stage-wrap{position:relative;min-height:470px;margin:10px 0 0;display:flex;align-items:center;justify-content:center}
.rack-stage-wrap:after{content:"";position:absolute;left:8%;right:8%;bottom:53px;height:22px;border-radius:50%;background:rgba(73,67,61,.12);filter:blur(14px);z-index:0}
.rack-stage{width:100%;min-height:440px;display:flex;align-items:flex-end;justify-content:center;gap:clamp(8px,1.25vw,22px);padding:40px 62px 58px;position:relative;z-index:2;perspective:1100px;outline:none}
.rack-stage:before{content:"";position:absolute;left:5%;right:5%;top:62px;height:12px;border-radius:999px;background:linear-gradient(180deg,#e7c98f,#a9824b 52%,#ead19d);box-shadow:0 5px 0 rgba(117,83,42,.18),0 12px 26px rgba(77,57,34,.13)}
.rack-stage:after{content:"";position:absolute;left:4.5%;top:62px;width:10px;height:310px;border-radius:8px;background:linear-gradient(90deg,#9a7443,#efd49a,#9c7440);box-shadow:calc(91vw - 20px) 0 0 #c69a57;max-width:91%}
.rack-product{--rack-scale:1;--rack-y:0;--rack-z:1;position:relative;width:clamp(104px,11.5vw,164px);height:320px;flex:0 0 auto;border:0;background:transparent;padding:0;cursor:pointer;transform:translateY(var(--rack-y)) scale(var(--rack-scale));transform-origin:50% 82%;transition:transform .42s var(--ek-ease),filter .42s ease;z-index:var(--rack-z);filter:saturate(.88) brightness(.98);touch-action:manipulation}
.rack-product:before{content:"";position:absolute;left:50%;top:48px;width:38px;height:31px;border:3px solid #b78a4d;border-bottom:0;border-radius:24px 24px 0 0;transform:translateX(-50%);z-index:1;opacity:.95}
.rack-product:after{content:"";position:absolute;left:50%;top:62px;width:3px;height:34px;background:#b78a4d;transform:translateX(-50%);z-index:1}
.rack-product .rack-garment{position:absolute;left:8%;right:8%;top:82px;height:238px;display:flex;align-items:flex-start;justify-content:center;overflow:hidden;filter:drop-shadow(0 16px 14px rgba(55,48,42,.15))}
.rack-product img{width:100%;height:100%;object-fit:contain;display:block;transition:transform .42s ease}
.rack-product:hover,.rack-product.is-selected{--rack-scale:1.13;--rack-y:-12px;z-index:8;filter:saturate(1.04) brightness(1.03) drop-shadow(0 18px 25px rgba(78,61,49,.13))}
.rack-product:hover img,.rack-product.is-selected img{transform:scale(1.03)}
.rack-product .rack-label{position:absolute;left:8px;right:8px;bottom:-3px;padding:7px 9px;border-radius:12px;background:rgba(255,255,255,.88);backdrop-filter:blur(10px);font-size:10px;font-weight:700;color:#4d5753;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;opacity:0;transform:translateY(5px);transition:.3s ease}
.rack-product:hover .rack-label,.rack-product.is-selected .rack-label{opacity:1;transform:none}
.rack-nav{position:absolute;top:50%;transform:translateY(-35%);width:44px;height:44px;border-radius:50%;border:1px solid rgba(80,74,68,.12);background:rgba(255,255,255,.86);box-shadow:0 12px 25px rgba(52,45,40,.1);z-index:12;font-size:30px;line-height:1;color:#5e625f;cursor:pointer;transition:.25s ease}
.rack-nav:hover{transform:translateY(-35%) scale(1.08);background:#fff}
.rack-prev{left:8px}.rack-next{right:8px}
.rack-detail{position:absolute;right:34px;bottom:24px;width:min(390px,calc(100% - 68px));padding:18px;border:1px solid rgba(255,255,255,.9);background:rgba(255,252,249,.94);backdrop-filter:blur(18px);border-radius:24px;box-shadow:0 22px 55px rgba(53,46,40,.15);z-index:20;animation:ek-rise .35s var(--ek-ease) both}
.rack-detail[hidden]{display:none}
.rack-detail-grid{display:grid;grid-template-columns:86px 1fr;gap:14px;align-items:center}
.rack-detail-image{width:86px;height:104px;border-radius:17px;background:#f6f0ea;display:grid;place-items:center;overflow:hidden}.rack-detail-image img{width:100%;height:100%;object-fit:contain}
.rack-detail small{color:#8b8b85;font-size:10px}.rack-detail h3{margin:4px 0 5px;font-size:16px;color:#343c39}.rack-detail-price{font-weight:800;color:#b86f7b;font-size:15px}.rack-detail-meta{display:flex;flex-wrap:wrap;gap:6px;margin:10px 0 12px}.rack-detail-meta span{font-size:10px;color:#66706c;background:#f2eee9;border-radius:999px;padding:5px 8px}.rack-detail-cta{display:flex;align-items:center;justify-content:center;width:100%;padding:10px 14px;border-radius:13px;background:#2f3a38;color:#fff;text-decoration:none;font-size:11px;font-weight:800}.rack-footer-hint{display:flex;justify-content:center;align-items:center;gap:10px;color:#8a8b86;font-size:10px}.rack-footer-hint i{width:4px;height:4px;border-radius:50%;background:var(--ek-blush)}
.rack-admin-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.rack-admin-fields .checkline{grid-column:1/-1}.rack-product-picker{display:flex;gap:8px;margin-top:14px}.rack-product-picker select{flex:1;min-width:0}.rack-admin-list{display:grid;gap:9px;margin-top:14px}.rack-admin-row{display:grid;grid-template-columns:58px 1fr auto;gap:10px;align-items:center;border:1px solid var(--ek-line);border-radius:16px;padding:8px;background:rgba(255,255,255,.7)}.rack-admin-row>img{width:58px;height:64px;object-fit:contain;border-radius:12px;background:#f7f2ed}.rack-admin-main{min-width:0}.rack-admin-main b,.rack-admin-main small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.rack-admin-main b{font-size:12px}.rack-admin-main small{font-size:10px;color:var(--ek-muted);margin-top:4px}.rack-admin-actions{display:flex;gap:5px;align-items:center}
@media (max-width:900px){.rack-showcase{width:calc(100% - 24px);padding:22px 14px 18px;border-radius:25px}.rack-header{display:block;text-align:center}.rack-header h1{font-size:38px}.rack-header p{font-size:11px;max-width:540px;margin:0 auto}.rack-hint{display:block;margin-top:8px}.rack-stage-wrap{min-height:430px}.rack-stage{justify-content:flex-start;overflow-x:auto;scroll-snap-type:x mandatory;padding:40px 48px 58px;gap:7px;scrollbar-width:none}.rack-stage::-webkit-scrollbar{display:none}.rack-product{width:132px;height:300px;scroll-snap-align:center}.rack-product:hover{--rack-scale:1.03;--rack-y:-4px}.rack-product.is-selected{--rack-scale:1.08;--rack-y:-8px}.rack-stage:after{left:48px;right:48px;max-width:none}.rack-detail{position:relative;right:auto;bottom:auto;width:auto;margin:0 2px 14px}.rack-footer-hint{flex-wrap:wrap;text-align:center;line-height:1.7}.rack-admin-fields{grid-template-columns:1fr}.rack-product-picker{flex-direction:column}.rack-admin-row{grid-template-columns:52px 1fr}.rack-admin-actions{grid-column:1/-1;justify-content:flex-end}}
@media (max-width:520px){.rack-showcase{margin-top:12px}.rack-stage-wrap{min-height:390px}.rack-stage{min-height:365px;padding-top:28px}.rack-stage:before{top:50px}.rack-stage:after{top:50px;height:270px}.rack-product{height:275px}.rack-product .rack-garment{top:68px;height:205px}.rack-product:before{top:35px}.rack-product:after{top:49px}.rack-nav{width:38px;height:38px;font-size:25px}.rack-detail-grid{grid-template-columns:72px 1fr}.rack-detail-image{width:72px;height:90px}}
