/* === E&D MARKET v3.0.1 — EXPERIENCIA NATIVA === */

:root {
  --ed-v3-nav-height: 72px;
  --ed-v3-gold: #087cff;
  --ed-v3-gold-light: #43d4ff;
  --ed-v3-bg: #080b10;
  --ed-v3-panel: #101620;
  --ed-v3-text: #f5f7fa;
  --ed-v3-muted: #8c96a4;
}

.ed-market-v3 body {
  padding-bottom:
    calc(
      var(--ed-v3-nav-height) +
      env(safe-area-inset-bottom, 0px)
    );
}

.ed-v3-bottom-nav {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 9000;
  display: grid !important;
  grid-template-columns:
    repeat(5, minmax(0, 1fr));
  min-height:
    calc(
      var(--ed-v3-nav-height) +
      env(safe-area-inset-bottom, 0px)
    );
  padding:
    7px 6px
    env(safe-area-inset-bottom, 0px);
  border-top:
    1px solid rgba(215, 169, 40, 0.14);
  background:
    rgba(7, 10, 15, 0.97);
  box-shadow:
    0 -14px 40px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(22px);
}

.ed-v3-nav-item {
  appearance: none;
  position: relative;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 4px;
  min-width: 0;
  min-height: 57px;
  margin: 0;
  padding: 4px 2px;
  border: 0;
  border-radius: 15px;
  background: transparent;
  color: #858f9d;
  transition:
    color 0.18s ease,
    background 0.18s ease,
    transform 0.12s ease;
}

.ed-v3-nav-item > span {
  display: grid;
  width: 30px;
  height: 27px;
  place-items: center;
  font-size: 23px;
  line-height: 1;
}

.ed-v3-nav-item > small {
  font-size: 8px;
  font-weight: 800;
}

.ed-v3-nav-item.is-active {
  background:
    rgba(215, 169, 40, 0.075);
  color: var(--ed-v3-gold-light);
}

.ed-v3-nav-item.is-active::before {
  content: "";
  position: absolute;
  top: 1px;
  width: 24px;
  height: 3px;
  border-radius: 999px;
  background:
    var(--ed-v3-gold);
}

.ed-v3-cart-nav i {
  position: absolute;
  top: 3px;
  left: calc(50% + 10px);
  display: grid;
  min-width: 18px;
  height: 18px;
  place-items: center;
  padding: 0 5px;
  border: 2px solid #080b10;
  border-radius: 999px;
  background: var(--ed-v3-gold);
  color: #111318;
  font-size: 8px;
  font-style: normal;
  font-weight: 1000;
}

.ed-v3-is-pressed {
  transform: scale(0.97) !important;
}

.ed-v3-overlay {
  position: fixed;
  inset: 0;
  z-index: 9500;
  background:
    rgba(0, 0, 0, 0.62);
  opacity: 0;
  transition: opacity 0.24s ease;
  backdrop-filter: blur(3px);
}

.ed-v3-overlay.is-visible {
  opacity: 1;
}

.ed-v3-sheet {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 9600;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  width: min(100%, 720px);
  max-height:
    min(
      84vh,
      calc(
        100vh -
        env(safe-area-inset-top, 0px) -
        16px
      )
    );
  margin: auto;
  padding-bottom:
    env(safe-area-inset-bottom, 0px);
  overflow: hidden;
  border:
    1px solid rgba(215, 169, 40, 0.24);
  border-bottom: 0;
  border-radius: 27px 27px 0 0;
  background:
    radial-gradient(
      circle at 100% 0,
      rgba(215, 169, 40, 0.1),
      transparent 28%
    ),
    linear-gradient(
      160deg,
      #121924,
      #090e15 72%
    );
  box-shadow:
    0 -24px 80px rgba(0, 0, 0, 0.48);
  transform: translateY(105%);
  transition:
    transform 0.28s
    cubic-bezier(0.2, 0.8, 0.2, 1);
}

.ed-v3-sheet.is-open {
  transform: translateY(0);
}

.ed-v3-sheet-handle {
  width: 42px;
  height: 4px;
  margin: 9px auto 2px;
  border-radius: 999px;
  background:
    rgba(255, 255, 255, 0.19);
}

.ed-v3-sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 18px 13px;
  border-bottom:
    1px solid rgba(255, 255, 255, 0.055);
}

.ed-v3-sheet-header small {
  display: block;
  color: #9ba7b4;
  font-size: 8px;
  font-weight: 950;
  letter-spacing: 0.14em;
}

.ed-v3-sheet-header h2 {
  margin: 4px 0 0;
  color: var(--ed-v3-text);
  font-size: 23px;
  letter-spacing: -0.025em;
}

.ed-v3-sheet-header button {
  appearance: none;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  margin: 0;
  padding: 0;
  border:
    1px solid rgba(215, 169, 40, 0.21);
  border-radius: 50%;
  background:
    rgba(215, 169, 40, 0.055);
  color: #d0d8e0;
  font-size: 25px;
}

.ed-v3-sheet-content {
  min-height: 0;
  padding: 17px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.ed-v3-sheet-open {
  overflow: hidden;
}

.ed-v3-panel-intro {
  margin: 0 0 14px;
  color: var(--ed-v3-muted);
  font-size: 10px;
  line-height: 1.55;
}

.ed-v3-category-grid {
  display: grid;
  grid-template-columns:
    repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.ed-v3-category-grid button {
  appearance: none;
  display: grid;
  grid-template-columns:
    43px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-width: 0;
  min-height: 75px;
  margin: 0;
  padding: 12px;
  border:
    1px solid rgba(255, 255, 255, 0.065);
  border-radius: 17px;
  background:
    linear-gradient(
      145deg,
      rgba(22, 29, 40, 0.98),
      rgba(12, 17, 24, 0.98)
    );
  color: var(--ed-v3-text);
  text-align: left;
}

.ed-v3-category-grid button > span {
  display: grid;
  width: 43px;
  height: 43px;
  place-items: center;
  border-radius: 14px;
  background:
    rgba(215, 169, 40, 0.085);
  font-size: 21px;
}

.ed-v3-category-grid strong,
.ed-v3-category-grid small {
  display: block;
}

.ed-v3-category-grid strong {
  font-size: 11px;
}

.ed-v3-category-grid small {
  margin-top: 3px;
  color: #778290;
  font-size: 8px;
  line-height: 1.3;
}

.ed-v3-category-grid b {
  color: #b8c2cc;
  font-size: 18px;
}

.ed-v3-panel-primary {
  appearance: none;
  width: 100%;
  min-height: 50px;
  margin: 14px 0 0;
  padding: 0 17px;
  border: 0;
  border-radius: 15px;
  background:
    linear-gradient(
      135deg,
      #e2e7ec,
      #aeb8c3
    );
  color: #111319;
  font-size: 11px;
  font-weight: 950;
}

.ed-v3-empty-state {
  display: grid;
  justify-items: center;
  padding: 35px 18px;
  text-align: center;
}

.ed-v3-empty-state > span {
  display: grid;
  width: 80px;
  height: 80px;
  place-items: center;
  border:
    1px solid rgba(215, 169, 40, 0.22);
  border-radius: 25px;
  background:
    rgba(215, 169, 40, 0.065);
  font-size: 38px;
}

.ed-v3-empty-state h3 {
  margin: 17px 0 0;
  color: var(--ed-v3-text);
  font-size: 20px;
}

.ed-v3-empty-state p {
  max-width: 360px;
  margin: 8px 0 0;
  color: var(--ed-v3-muted);
  font-size: 10px;
  line-height: 1.55;
}

.ed-v3-empty-state button {
  appearance: none;
  min-height: 47px;
  margin: 18px 0 0;
  padding: 0 18px;
  border: 0;
  border-radius: 14px;
  background:
    linear-gradient(
      135deg,
      #e4e9ee,
      #aab5c0
    );
  color: #111319;
  font-size: 10px;
  font-weight: 950;
}

.ed-v3-orders-list {
  display: grid;
  gap: 10px;
}

.ed-v3-order-card {
  display: grid;
  grid-template-columns:
    43px minmax(0, 1fr) auto;
  gap: 11px;
  align-items: center;
  padding: 13px;
  border:
    1px solid rgba(255, 255, 255, 0.065);
  border-radius: 17px;
  background:
    linear-gradient(
      145deg,
      rgba(21, 28, 39, 0.97),
      rgba(11, 16, 23, 0.97)
    );
}

.ed-v3-order-icon {
  display: grid;
  width: 43px;
  height: 43px;
  place-items: center;
  border-radius: 14px;
  background:
    rgba(215, 169, 40, 0.075);
  font-size: 21px;
}

.ed-v3-order-copy {
  min-width: 0;
}

.ed-v3-order-copy small,
.ed-v3-order-copy strong,
.ed-v3-order-copy p {
  display: block;
}

.ed-v3-order-copy small {
  overflow-wrap: anywhere;
  color: #8f9aa6;
  font-size: 7px;
  font-weight: 900;
  letter-spacing: 0.07em;
}

.ed-v3-order-copy strong {
  margin-top: 4px;
  color: #ebedf1;
  font-size: 11px;
}

.ed-v3-order-copy p {
  margin: 4px 0 0;
  color: #788391;
  font-size: 8px;
}

.ed-v3-order-total {
  display: grid;
  justify-items: end;
  gap: 4px;
}

.ed-v3-order-total b {
  color: #d3dbe3;
  font-size: 11px;
}

.ed-v3-order-total small {
  color: #77818f;
  font-size: 7px;
}

.ed-v3-local-notice {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 9px;
  align-items: flex-start;
  margin-top: 4px;
  padding: 12px;
  border:
    1px solid rgba(89, 174, 255, 0.14);
  border-radius: 14px;
  background:
    rgba(89, 174, 255, 0.035);
}

.ed-v3-local-notice p {
  margin: 0;
  color: #8199af;
  font-size: 8px;
  line-height: 1.5;
}

.ed-v3-account-panel {
  display: grid;
  gap: 14px;
}

.ed-v3-account-hero {
  display: grid;
  grid-template-columns:
    62px minmax(0, 1fr);
  gap: 13px;
  align-items: center;
  padding: 16px;
  border:
    1px solid rgba(215, 169, 40, 0.19);
  border-radius: 20px;
  background:
    radial-gradient(
      circle at 100% 0,
      rgba(215, 169, 40, 0.11),
      transparent 35%
    ),
    rgba(215, 169, 40, 0.035);
}

.ed-v3-account-avatar {
  display: grid;
  width: 62px;
  height: 62px;
  place-items: center;
  border:
    1px solid rgba(230, 188, 59, 0.36);
  border-radius: 21px;
  background:
    linear-gradient(
      145deg,
      rgba(231, 188, 57, 0.2),
      rgba(15, 21, 30, 0.93)
    );
  color: #e1e6eb;
  font-family: Georgia, serif;
  font-size: 27px;
}

.ed-v3-account-hero small {
  color: #8f9aa6;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.ed-v3-account-hero strong {
  display: block;
  margin-top: 4px;
  color: #f2f4f7;
  font-size: 17px;
}

.ed-v3-account-hero p {
  margin: 4px 0 0;
  overflow-wrap: anywhere;
  color: #818b99;
  font-size: 9px;
}

.ed-v3-account-actions {
  display: grid;
  gap: 9px;
}

.ed-v3-account-actions button,
.ed-v3-account-actions a {
  appearance: none;
  display: grid;
  grid-template-columns:
    40px minmax(0, 1fr) auto;
  gap: 11px;
  align-items: center;
  min-height: 68px;
  margin: 0;
  padding: 12px;
  border:
    1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  background:
    rgba(255, 255, 255, 0.022);
  color: #edf0f4;
  text-align: left;
  text-decoration: none;
}

.ed-v3-account-actions > * > span {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 13px;
  background:
    rgba(215, 169, 40, 0.075);
  font-size: 20px;
}

.ed-v3-account-actions strong,
.ed-v3-account-actions small {
  display: block;
}

.ed-v3-account-actions strong {
  font-size: 11px;
}

.ed-v3-account-actions small {
  margin-top: 3px;
  color: #788391;
  font-size: 8px;
}

.ed-v3-account-actions b {
  color: #b8c2cc;
  font-size: 18px;
}

.ed-v3-account-benefit {
  display: grid;
  grid-template-columns:
    34px minmax(0, 1fr);
  gap: 10px;
  padding: 13px;
  border:
    1px solid rgba(215, 169, 40, 0.16);
  border-radius: 16px;
  background:
    rgba(215, 169, 40, 0.04);
}

.ed-v3-account-benefit strong {
  display: block;
  color: #e8ebef;
  font-size: 11px;
}

.ed-v3-account-benefit p {
  margin: 4px 0 0;
  color: #818b98;
  font-size: 8px;
  line-height: 1.5;
}

@media (max-width: 470px) {
  .ed-v3-category-grid {
    grid-template-columns: 1fr;
  }

  .ed-v3-sheet-content {
    padding: 14px;
  }

  .ed-v3-order-card {
    grid-template-columns:
      40px minmax(0, 1fr);
  }

  .ed-v3-order-total {
    grid-column: 2;
    justify-items: start;
  }
}
