body.shop-page {
  background: #000;
  color: #d8d8d8;
}

.shop-shell {
  padding: 10rem 0 5rem;
  min-height: 76vh;
  background-image:
    linear-gradient(180deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.96)),
    url("../img/gallery/bmw_hero_banner.jpg");
  background-position: center top;
  background-size: cover;
}

.shop-surface {
  background: rgba(10, 10, 10, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: clamp(1rem, 3vw, 1.6rem);
  backdrop-filter: blur(14px);
}

.shop-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.4rem;
}

.shop-heading h1 {
  color: #fff;
  font-size: clamp(2.2rem, 4vw, 4.6rem);
  line-height: 0.96;
  margin: 0;
  text-transform: uppercase;
}

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

.shop-card,
.cart-item,
.cart-summary {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
}

.shop-card {
  padding: 1.2rem;
}

.shop-card h2,
.cart-item h2 {
  color: #fff;
  text-transform: uppercase;
}

.shop-form {
  display: grid;
  gap: 0.85rem;
}

.shop-form label {
  color: #fff;
  font-weight: 700;
}

.shop-status,
.shop-empty {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 0.8rem 0.95rem;
  color: #f5f5f5;
  background: rgba(255, 255, 255, 0.05);
}

.shop-status.is-success {
  border-color: rgba(25, 204, 97, 0.38);
  background: rgba(25, 204, 97, 0.1);
}

.shop-status.is-info {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.07);
}

.shop-status.is-error {
  border-color: rgba(214, 40, 40, 0.45);
  background: rgba(214, 40, 40, 0.12);
}

.customer-session {
  display: grid;
  gap: 1rem;
}

.customer-session strong {
  color: #fff;
  font-size: 1.4rem;
}

.account-admin-access {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid rgba(214, 40, 40, 0.38);
  border-radius: 8px;
  background: rgba(214, 40, 40, 0.1);
}

.account-admin-access[hidden] {
  display: none;
}

.account-admin-access p {
  color: #d8d8d8;
}

.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 1rem;
}

.cart-list {
  display: grid;
  gap: 0.9rem;
}

.cart-item {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) auto;
  gap: 1rem;
  padding: 1rem;
  align-items: center;
}

.cart-item-media {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.cart-item-media img {
  width: 100%;
  max-height: 118px;
  object-fit: contain;
}

.cart-item-info span {
  color: #d62828;
  font-weight: 700;
  text-transform: uppercase;
}

.cart-item-info p {
  color: #bdbdbd;
  margin: 0;
}

.cart-item-controls {
  display: grid;
  justify-items: end;
  gap: 0.65rem;
}

.cart-qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  overflow: hidden;
}

.cart-qty button,
.cart-remove {
  border: 0;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-weight: 700;
}

.cart-qty button {
  width: 38px;
  height: 38px;
}

.cart-qty strong {
  min-width: 40px;
  color: #fff;
  text-align: center;
}

.cart-remove {
  border-radius: 8px;
  padding: 0.45rem 0.7rem;
}

.cart-qty button:hover,
.cart-remove:hover {
  background: #d62828;
}

.cart-item-price,
.cart-summary-total {
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
}

.cart-summary {
  padding: 1.2rem;
  align-self: start;
  display: grid;
  gap: 1rem;
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.cdp-header-icon.is-authenticated {
  color: #d62828;
}

.account-page .cdp-navbar {
  display: block !important;
}

.account-page .main {
  min-height: 100vh;
}

.account-shell {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: 100vh;
  padding: clamp(5.4rem, 12vh, 7rem) 0 clamp(1.5rem, 5vh, 2.8rem);
  background: #070707;
}

.account-wrap {
  width: min(calc(100% - 2rem), 980px);
}

.account-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1.35rem;
  color: #8d8f94;
  font-family: "Roboto Condensed", Arial, sans-serif;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
}

.account-back-link svg {
  width: 17px;
  height: 17px;
}

.account-back-link:hover,
.account-back-link:focus {
  color: var(--cdp-red, #d62828);
}

.customer-auth-layout {
  display: grid;
  gap: 1rem;
  width: min(100%, 400px);
  margin: 0 auto;
}

.customer-auth-card,
.account-session-card {
  background: rgba(15, 15, 15, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  box-shadow: 0 28px 72px rgba(0, 0, 0, 0.34);
}

.customer-auth-card {
  padding: clamp(1.2rem, 4vw, 1.55rem);
}

.customer-auth-logo {
  display: block;
  width: min(180px, 62%);
  height: auto;
  margin: 0 auto 0.45rem;
  object-fit: contain;
  filter: drop-shadow(0 12px 22px rgba(0, 0, 0, 0.34));
}

.customer-auth-heading {
  margin-bottom: 1.1rem;
  text-align: center;
}

.customer-auth-heading h1,
.customer-auth-heading h2 {
  margin: 0;
  color: #fff;
  font-family: "Roboto Condensed", Arial, sans-serif;
  font-size: clamp(1.45rem, 4vw, 1.72rem);
  font-weight: 700;
  line-height: 1.05;
  text-transform: uppercase;
}

.customer-auth-heading p {
  margin: 0.55rem 0 0;
  color: #92949a;
  font-family: "Roboto Condensed", Arial, sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
}

.customer-auth-form {
  gap: 0.78rem;
}

.customer-field {
  display: grid;
  gap: 0.42rem;
}

.customer-field label {
  color: #f4f4f4;
  font-family: "Roboto Condensed", Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}

.customer-input {
  display: flex;
  align-items: center;
  min-height: 36px;
  background: #0b0b0b;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  overflow: hidden;
}

.customer-input svg {
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
  margin-left: 0.7rem;
  color: #9b9da2;
}

.customer-input .cdp-form-control {
  min-width: 0;
  height: 36px;
  padding: 0 0.72rem;
  color: #fff;
  font-family: "Roboto Condensed", Arial, sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: none;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.customer-input .cdp-form-control:focus {
  background: transparent;
  box-shadow: none;
}

.customer-input:focus-within {
  border-color: rgba(214, 40, 40, 0.72);
  box-shadow: 0 0 0 0.14rem rgba(214, 40, 40, 0.14);
}

.customer-input .cdp-form-control::placeholder {
  color: #8f8f8f;
  opacity: 1;
  text-transform: uppercase;
}

.customer-input .cdp-form-control:-webkit-autofill,
.customer-input .cdp-form-control:-webkit-autofill:hover,
.customer-input .cdp-form-control:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px #0b0b0b inset;
  -webkit-text-fill-color: #fff;
  caret-color: #fff;
  transition: background-color 9999s ease-out;
}

.customer-forgot-link {
  justify-self: end;
  margin-top: 0.2rem;
  color: #8f9196;
  font-family: "Roboto Condensed", Arial, sans-serif;
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
}

.customer-forgot-link:hover,
.customer-forgot-link:focus,
.customer-register-prompt button:hover,
.customer-register-prompt button:focus {
  color: #f04444;
}

.account-page .customer-auth-submit {
  min-height: 40px;
  margin-top: 0.25rem;
  color: #fff;
  font-family: "Roboto Condensed", Arial, sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  background: var(--cdp-red, #d62828);
  border-color: var(--cdp-red, #d62828);
  border-radius: 8px;
  box-shadow: 0 14px 32px rgba(214, 40, 40, 0.2);
}

.account-page .customer-auth-submit:hover,
.account-page .customer-auth-submit:focus {
  color: #fff;
  background: #ef2f2f;
  border-color: #ef2f2f;
}

.customer-auth-divider {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 1.35rem 0 0.95rem;
  color: #8f9196;
  font-family: "Roboto Condensed", Arial, sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
}

.customer-auth-divider::before,
.customer-auth-divider::after {
  content: "";
  flex: 1 1 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
}

.customer-social-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.customer-social-grid--single {
  grid-template-columns: minmax(0, 1fr);
}

.customer-social-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.72rem;
  min-height: 40px;
  color: #f5f5f5;
  font-family: "Roboto Condensed", Arial, sans-serif;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  background: #0b0b0b;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  text-decoration: none;
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.customer-social-button:hover,
.customer-social-button:focus {
  color: #fff;
  border-color: rgba(214, 40, 40, 0.7);
  background: rgba(214, 40, 40, 0.1);
  transform: translateY(-1px);
}

.customer-social-icon {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  font-weight: 700;
  line-height: 1;
}

.customer-social-icon svg {
  width: 18px;
  height: 18px;
}

.customer-social-icon--apple {
  color: #fff;
}

.customer-register-prompt {
  margin: 1.25rem 0 0;
  color: var(--cdp-red, #d62828);
  font-family: "Roboto Condensed", Arial, sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  text-transform: uppercase;
}

.account-page .shop-status {
  padding: 0.65rem 0.8rem;
  font-size: 0.86rem;
}

.customer-register-prompt button {
  padding: 0;
  color: var(--cdp-red, #d62828);
  font: inherit;
  text-transform: uppercase;
  background: transparent;
  border: 0;
}

.customer-required {
  color: var(--cdp-red, #d62828);
  font-weight: 700;
}

.customer-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.78rem;
}

.customer-phone-group {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 0.55rem;
}

.customer-input--prefix {
  position: relative;
  padding: 0;
}

.customer-prefix-select {
  width: 100%;
  height: 36px;
  padding: 0 0.7rem;
  color: #fff;
  font-family: "Roboto Condensed", Arial, sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  background: transparent;
  border: 0;
  appearance: none;
  -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #9b9da2 50%), linear-gradient(135deg, #9b9da2 50%, transparent 50%);
  background-position: calc(100% - 14px) 50%, calc(100% - 9px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 1.8rem;
  cursor: pointer;
}

.customer-prefix-select:focus {
  outline: 0;
}

.customer-prefix-select option {
  color: #fff;
  background: #0b0b0b;
}

.customer-input--password {
  position: relative;
}

.customer-input--password .cdp-form-control {
  padding-right: 36px;
}

.customer-password-toggle {
  position: absolute;
  top: 0;
  right: 0;
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 100%;
  padding: 0;
  color: #9b9da2;
  background: transparent;
  border: 0;
  cursor: pointer;
  transition: color 0.2s ease;
}

.customer-password-toggle:hover,
.customer-password-toggle:focus,
.customer-password-toggle.is-visible {
  color: var(--cdp-red, #d62828);
}

.customer-password-toggle svg {
  width: 16px;
  height: 16px;
}

.customer-password-rules {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.25rem 0.7rem;
  margin: 0.45rem 0 0;
  padding: 0;
  list-style: none;
  color: #8f9196;
  font-family: "Roboto Condensed", Arial, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.1;
  text-transform: uppercase;
}

.customer-password-rules li {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: color 0.2s ease;
}

.customer-password-rules li svg {
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
}

.customer-password-rules li.is-valid {
  color: #44d27a;
}

.customer-consent {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.35rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.customer-check {
  display: grid;
  grid-template-columns: 18px 1fr;
  align-items: start;
  gap: 0.6rem;
  cursor: pointer;
  user-select: none;
}

.customer-check input[type="checkbox"] {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.customer-check-mark {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  background: #0b0b0b;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 3px;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.customer-check-mark::after {
  content: "";
  width: 9px;
  height: 5px;
  margin-top: -2px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) scale(0);
  transition: transform 0.15s ease;
}

.customer-check input[type="checkbox"]:checked + .customer-check-mark {
  background: var(--cdp-red, #d62828);
  border-color: var(--cdp-red, #d62828);
}

.customer-check input[type="checkbox"]:checked + .customer-check-mark::after {
  transform: rotate(-45deg) scale(1);
}

.customer-check input[type="checkbox"]:focus-visible + .customer-check-mark {
  box-shadow: 0 0 0 0.14rem rgba(214, 40, 40, 0.32);
}

.customer-check-text {
  color: #d3d4d8;
  font-family: "Roboto Condensed", Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: 400;
  line-height: 1.35;
}

.customer-check-text a {
  color: #f4f4f4;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.customer-check-text a:hover,
.customer-check-text a:focus {
  color: var(--cdp-red, #d62828);
}

.customer-legal-note {
  margin: 0.45rem 0 0;
  color: #707277;
  font-family: "Roboto Condensed", Arial, sans-serif;
  font-size: 0.7rem;
  font-weight: 400;
  line-height: 1.35;
  text-align: center;
}

@media (max-width: 540px) {
  .customer-row {
    grid-template-columns: minmax(0, 1fr);
  }
  .customer-phone-group {
    grid-template-columns: 100px minmax(0, 1fr);
  }
}

/* Dashboard de cuenta cuando esta logueado */

.account-dashboard {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 1.5rem;
  width: 100%;
  margin: 0 auto;
  max-width: 1180px;
}

.account-dashboard__sidebar {
  align-self: start;
  position: sticky;
  top: 7.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
  padding: 1.2rem 1rem;
  background: rgba(22, 25, 32, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.34);
}

.account-user {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 0.85rem;
  align-items: center;
  padding-bottom: 1rem;
  margin-bottom: 0.6rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.account-user__avatar {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, #d62828, #8b1a1a);
  border-radius: 50%;
  color: #fff;
  font-family: "Roboto Condensed", Arial, sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 6px 18px rgba(214, 40, 40, 0.32);
}

.account-user__info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
}

.account-user__info strong {
  color: #fff;
  font-size: 0.96rem;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.account-user__email {
  color: #9aa0ad;
  font-size: 0.74rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.account-user__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  width: max-content;
  margin-top: 0.25rem;
  padding: 0.18rem 0.55rem;
  background: rgba(214, 40, 40, 0.16);
  border: 1px solid rgba(214, 40, 40, 0.42);
  border-radius: 999px;
  color: #ff8585;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.account-user__badge svg {
  width: 11px;
  height: 11px;
}

.account-nav {
  display: flex;
  flex-direction: column;
  gap: 0.16rem;
}

.account-nav__item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  width: 100%;
  padding: 0.62rem 0.78rem;
  background: transparent;
  border: 0;
  border-radius: 8px;
  color: #d6d8df;
  font-family: "Roboto Condensed", Arial, sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}

.account-nav__item svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  color: #9aa0ad;
}

.account-nav__label {
  flex: 1;
}

.account-nav__count {
  padding: 0.08rem 0.5rem;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  color: #cfd2d8;
  font-size: 0.7rem;
  font-weight: 700;
}

.account-nav__item:hover {
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
}

.account-nav__item.is-active {
  background: linear-gradient(90deg, rgba(214, 40, 40, 0.2), rgba(214, 40, 40, 0.05));
  border-left: 3px solid #d62828;
  padding-left: calc(0.78rem - 3px);
  color: #fff;
}

.account-nav__item.is-active svg {
  color: #ff7878;
}

.account-nav__item.is-active .account-nav__count {
  background: rgba(214, 40, 40, 0.32);
  color: #fff;
}

.account-nav__item--danger {
  color: #ff8585;
}

.account-nav__item--danger:hover {
  background: rgba(214, 40, 40, 0.14);
  color: #fff;
}

.account-nav__item--danger svg {
  color: #ff8585;
}

.account-nav__divider {
  height: 1px;
  margin: 0.6rem 0.4rem;
  background: rgba(255, 255, 255, 0.08);
}

.account-dashboard__main {
  min-width: 0;
  padding: 1.6rem;
  background: rgba(22, 25, 32, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.34);
}

.account-tab {
  display: none;
  animation: accountTabIn 0.22s ease;
}

.account-tab.is-active {
  display: block;
}

@keyframes accountTabIn {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.account-greeting {
  margin-bottom: 1.4rem;
}

.account-greeting h1 {
  margin: 0.3rem 0 0.4rem;
  color: #fff;
  font-family: "Roboto Condensed", Arial, sans-serif;
  font-size: clamp(1.6rem, 3vw, 2rem);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.account-greeting__copy {
  margin: 0;
  color: #9aa0ad;
  font-size: 0.92rem;
}

.account-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.85rem;
  margin-bottom: 1.6rem;
}

.account-stat {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 1.1rem;
  background: rgba(34, 38, 47, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.account-stat:hover {
  transform: translateY(-2px);
  border-color: rgba(214, 40, 40, 0.4);
}

.account-stat__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  color: #ff7a7a;
  flex: 0 0 auto;
}

.account-stat__icon svg {
  width: 20px;
  height: 20px;
}

.account-stat span {
  display: block;
  color: #9aa0ad;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.account-stat strong {
  display: block;
  color: #fff;
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1.05;
  margin-top: 0.18rem;
}

.account-quick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.85rem;
}

.account-quick-card {
  display: flex;
  flex-direction: column;
  gap: 0.32rem;
  padding: 1rem 1.1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  color: #e9eaef;
  text-decoration: none;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.account-quick-card:hover {
  border-color: rgba(214, 40, 40, 0.5);
  background: rgba(214, 40, 40, 0.08);
  transform: translateY(-2px);
}

.account-quick-card svg {
  width: 22px;
  height: 22px;
  margin-bottom: 0.35rem;
  color: #ff7a7a;
}

.account-quick-card strong {
  color: #fff;
  font-size: 0.94rem;
}

.account-quick-card small {
  color: #9aa0ad;
  font-size: 0.78rem;
}

.account-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.account-section-head h2 {
  margin: 0;
  color: #fff;
  font-size: 1.45rem;
  text-transform: uppercase;
}

.account-section-head .btn svg {
  width: 13px;
  height: 13px;
  margin-right: 0.3rem;
  vertical-align: -2px;
}

.account-empty-state {
  display: grid;
  place-items: center;
  text-align: center;
  padding: 2.8rem 1.5rem;
  background: rgba(255, 255, 255, 0.025);
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: 12px;
}

.account-empty-state svg {
  width: 36px;
  height: 36px;
  margin-bottom: 0.8rem;
  color: #6e7280;
}

.account-empty-state h3 {
  margin: 0 0 0.4rem;
  color: #fff;
  font-size: 1.1rem;
}

.account-empty-state p {
  margin: 0 0 1rem;
  color: #9aa0ad;
  font-size: 0.9rem;
}

.account-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.85rem;
}

.account-info-card {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 1rem 1.1rem;
  background: rgba(34, 38, 47, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
}

.account-info-card__label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #9aa0ad;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.account-info-card__label svg {
  width: 13px;
  height: 13px;
}

.account-info-card strong {
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  word-break: break-word;
}

.account-info-badge {
  display: inline-block;
  padding: 0.18rem 0.6rem;
  background: rgba(28, 140, 76, 0.2);
  border: 1px solid rgba(28, 140, 76, 0.45);
  border-radius: 999px;
  color: #44d27a;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.account-helper {
  margin: 1rem 0 0;
  color: #7d818c;
  font-size: 0.82rem;
}

.account-security-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.2rem;
  margin-bottom: 0.7rem;
  background: rgba(34, 38, 47, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
}

.account-security-card > div {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.account-security-card__icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  color: #ff7a7a;
}

.account-security-card__icon svg {
  width: 18px;
  height: 18px;
}

.account-security-card strong {
  color: #fff;
  font-size: 0.96rem;
}

.account-security-card p {
  margin: 0.18rem 0 0;
  color: #9aa0ad;
  font-size: 0.82rem;
}

.account-password-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  padding: 1.2rem 1.2rem 1.25rem;
  margin: -0.35rem 0 0.7rem;
  background: rgba(28, 31, 38, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-top: none;
  border-radius: 0 0 10px 10px;
  animation: account-password-slide 180ms ease-out;
}

/* Mismos campos que el resto de la cuenta: caja oscura, texto claro y el ojo dentro */
.account-password-form .customer-field {
  max-width: 460px;
}

.account-password-form .customer-input {
  min-height: 42px;
}

.account-password-form .customer-input .cdp-form-control {
  height: 42px;
}

.account-password-form .customer-password-toggle {
  width: 42px;
}

.account-password-form .customer-password-toggle svg {
  margin-left: 0;
}

.account-password-form .customer-password-toggle:focus-visible {
  outline: 2px solid rgba(214, 40, 40, 0.72);
  outline-offset: -4px;
  border-radius: 8px;
}

.account-password-form .customer-password-rules {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.35rem 0.8rem;
  margin: 0.15rem 0 0;
  font-size: 0.74rem;
  color: #9aa0ad;
}

.account-password-form .customer-password-rules li svg {
  width: 13px;
  height: 13px;
  color: #6c727b;
  transition: color 0.2s ease;
}

.account-password-form .customer-password-rules li.is-valid,
.account-password-form .customer-password-rules li.is-valid svg {
  color: #44d27a;
}

.account-password-form__actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 0.3rem;
}

@keyframes account-password-slide {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.volantes-generados__lista {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

@media (max-width: 991.98px) {
  .account-dashboard {
    grid-template-columns: 1fr;
  }

  .account-dashboard__sidebar {
    position: static;
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 0.85rem;
  }

  .account-user {
    flex: 0 0 auto;
    grid-template-columns: 42px minmax(0, 1fr);
    padding: 0 0.7rem 0 0;
    margin: 0;
    border-bottom: 0;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
  }

  .account-user__avatar {
    width: 42px;
    height: 42px;
    font-size: 0.95rem;
  }

  .account-nav,
  .account-dashboard__sidebar > a,
  .account-dashboard__sidebar > button {
    flex: 0 0 auto;
    flex-direction: row;
  }

  .account-nav {
    flex-direction: row;
    gap: 0.18rem;
  }

  .account-nav__item {
    white-space: nowrap;
  }

  .account-nav__divider {
    width: 1px;
    height: 24px;
    margin: 0 0.4rem;
  }

}

.account-social-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  margin-top: 1.2rem;
  padding: 1rem;
  background: #000;
  border: 0;
  border-radius: 8px;
}

.account-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 58px;
  height: 58px;
  color: #fff;
  background: transparent;
  border: 0;
  border-radius: 8px;
  box-shadow: none;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.account-social-link svg {
  width: 34px;
  height: 34px;
  stroke-width: 2.2;
}

.account-social-logo {
  display: block;
  object-fit: contain;
}

.account-social-logo--icon {
  width: 48px;
  height: 48px;
}

.account-social-logo--wallapop {
  width: 56px;
  height: auto;
}

.account-social-link--tiktok {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

.account-social-link--instagram {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

.account-social-link--wallapop {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

.account-social-link--whatsapp {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

.account-social-link:hover,
.account-social-link:focus {
  color: #fff;
  transform: translateY(-2px);
}

.account-social-link--tiktok:hover,
.account-social-link--tiktok:focus,
.account-social-link--instagram:hover,
.account-social-link--instagram:focus,
.account-social-link--wallapop:hover,
.account-social-link--wallapop:focus {
  background: transparent;
  border-color: transparent;
}

.account-social-link--whatsapp:hover,
.account-social-link--whatsapp:focus {
  background: transparent;
  border-color: transparent;
}

.volantes-generados {
  margin-top: 1rem;
  background: rgba(15, 15, 15, 0.94);
  box-shadow: 0 28px 72px rgba(0, 0, 0, 0.34);
}

.volantes-generados[hidden] {
  display: none;
}

.volantes-generados__cabecera {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.volantes-generados__cabecera h2 {
  margin: 0.25rem 0 0;
  color: #fff;
  font-family: "Roboto Condensed", Arial, sans-serif;
  font-size: clamp(1.45rem, 3vw, 2rem);
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}

.volantes-generados__lista {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.volante-generado {
  display: grid;
  gap: 0.9rem;
  padding: 0.9rem;
  background: #0b0b0b;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
}

.volante-generado__imagen {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 45%, rgba(214, 40, 40, 0.12), transparent 34%),
    #050505;
  border-radius: 8px;
}

.volante-generado__imagen img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.volante-generado__datos {
  display: grid;
  gap: 0.45rem;
}

.volante-generado__datos h3 {
  margin: 0;
  color: #fff;
  font-size: 1.05rem;
  line-height: 1.15;
}

.volante-generado__datos p {
  margin: 0;
  color: #bdbdbd;
}

.volante-generado__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.volante-generado__meta span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0.28rem 0.5rem;
  color: #f5f5f5;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.volante-generado__estado {
  color: #d62828 !important;
  border-color: rgba(214, 40, 40, 0.35) !important;
  background: rgba(214, 40, 40, 0.12) !important;
}

@media (max-width: 991.98px) {
  .shop-shell {
    padding-top: 8rem;
  }

  .account-shell {
    padding-top: clamp(5rem, 16vw, 6rem);
  }

  .shop-grid,
  .cart-layout {
    grid-template-columns: 1fr;
  }

  .account-admin-access {
    align-items: flex-start;
    flex-direction: column;
  }

  .volantes-generados__cabecera {
    align-items: flex-start;
    flex-direction: column;
  }

  .cart-item {
    grid-template-columns: 120px minmax(0, 1fr);
  }

  .cart-item-controls {
    grid-column: 1 / -1;
    justify-items: stretch;
  }
}

@media (max-width: 575.98px) {
  .shop-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .customer-auth-card {
    padding: 1.25rem;
  }

  .customer-social-grid {
    grid-template-columns: 1fr;
  }

  .account-social-panel {
    gap: 0.55rem;
    padding: 0.8rem;
  }

  .account-social-link {
    width: 48px;
    height: 48px;
  }

  .account-social-link svg {
    width: 29px;
    height: 29px;
  }

  .account-social-logo--icon {
    width: 40px;
    height: 40px;
  }

  .account-social-logo--wallapop {
    width: 47px;
  }

  .cart-item {
    grid-template-columns: 1fr;
  }
}

/* Acceso desde el movil: formulario grande y facil de pulsar */
@media (max-width: 575.98px) {
  .account-page .customer-auth-layout {
    width: 100%;
  }

  .account-page .customer-auth-card {
    padding: 1.9rem 1.25rem 2rem;
    border-top: 3px solid var(--cdp-red, #d62828);
    border-radius: 18px;
  }

  .account-page .customer-auth-logo {
    width: min(230px, 70%);
    margin-bottom: 1rem;
  }

  .account-page .customer-auth-heading {
    margin-bottom: 1.6rem;
  }

  .account-page .customer-auth-heading h1,
  .account-page .customer-auth-heading h2 {
    font-size: 2.3rem;
  }

  .account-page .customer-auth-heading p {
    font-size: 1rem;
  }

  .account-page .customer-field label {
    font-size: 1rem;
  }

  /* 16px o mas: evita que iOS haga zoom al tocar el campo */
  .account-page .customer-input .cdp-form-control {
    min-height: 56px;
    font-size: 1.1rem;
  }

  .account-page .customer-forgot-link {
    padding: 0.4rem 0;
    font-size: 1.05rem;
  }

  .account-page .customer-auth-submit {
    min-height: 58px;
    font-size: 1.25rem;
    border-radius: 12px;
  }

  .account-page .customer-auth-divider {
    font-size: 0.95rem;
  }

  .account-page .customer-social-button {
    min-height: 58px;
    color: #1f1f1f;
    font-size: 1.15rem;
    background: #fff;
    border-radius: 12px;
  }

  .account-page .customer-social-button:hover,
  .account-page .customer-social-button:focus {
    color: #1f1f1f;
  }

  .account-page .customer-social-icon svg {
    width: 26px;
    height: 26px;
  }

  .account-page .customer-register-prompt {
    margin-top: 1.6rem;
    font-size: 1.15rem;
  }
}

.cart-summary-note {
  margin: 0.4rem 0 0;
  color: #9e9e9e;
  font-size: 0.82rem;
  line-height: 1.4;
}

/* Mis pedidos (cuenta del cliente) */
.mis-pedidos {
  display: grid;
  gap: 1rem;
}

.mi-pedido {
  padding: 1.1rem 1.2rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
}

.mi-pedido__cabecera {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.8rem;
}

.mi-pedido__cabecera strong {
  display: block;
  color: #fff;
  font-size: 1.05rem;
}

.mi-pedido__cabecera small {
  color: #9aa0ad;
}

.mi-pedido__estado {
  padding: 0.3rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  color: #e6e7ec;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.mi-pedido__estado.es-pendiente { border-color: rgba(240, 173, 78, 0.6); background: rgba(240, 173, 78, 0.14); color: #ffc56b; }
.mi-pedido__estado.es-pagado    { border-color: rgba(68, 210, 122, 0.5); background: rgba(68, 210, 122, 0.12); color: #5fdc8f; }
.mi-pedido__estado.es-enviado   { border-color: rgba(90, 170, 255, 0.5); background: rgba(90, 170, 255, 0.12); color: #8cc4ff; }
.mi-pedido__estado.es-cancelado { color: #9aa0ad; }

.mi-pedido__articulos {
  margin: 0 0 0.8rem;
  padding: 0;
  list-style: none;
  color: #e6e7ec;
}

.mi-pedido__articulos li,
.mi-pedido__importes > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.3rem 0;
}

.mi-pedido__importes {
  margin: 0;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #c5c7d0;
  font-size: 0.92rem;
}

.mi-pedido__importes dt {
  font-weight: 400;
}

.mi-pedido__importes dd {
  margin: 0;
}

.mi-pedido__importes .es-total {
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
}

.mi-pedido__importes .es-total dt {
  font-weight: 700;
}

.mi-pedido__importes .es-nota {
  padding-top: 0;
  color: #9aa0ad;
  font-size: 0.8rem;
}

.mi-pedido__pago,
.mi-pedido__resguardo {
  margin-top: 0.9rem;
  padding: 0.9rem 1rem;
  border-radius: 10px;
}

.mi-pedido__pago {
  background: rgba(240, 173, 78, 0.07);
  border: 1px solid rgba(240, 173, 78, 0.4);
}

.mi-pedido__pago strong {
  display: block;
  margin-bottom: 0.4rem;
  color: #fff;
}

.mi-pedido__pago dl {
  margin: 0 0 0.5rem;
}

.mi-pedido__pago dl > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.3rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.mi-pedido__pago dt {
  color: #9aa0ad;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.mi-pedido__pago dd {
  margin: 0;
  color: #fff;
  font-weight: 700;
  text-align: right;
  overflow-wrap: anywhere;
  user-select: all;
}

.mi-pedido__pago p {
  margin: 0;
  color: #c5c7d0;
  font-size: 0.86rem;
}

.mi-pedido__resguardo {
  border: 1px dashed rgba(255, 255, 255, 0.22);
}

.mi-pedido__resguardo ul {
  margin: 0 0 0.6rem;
  padding-left: 1.1rem;
  color: #5fdc8f;
  font-size: 0.88rem;
}

.mi-pedido__resguardo ul:last-child {
  margin-bottom: 0;
}

.mi-pedido__subir {
  display: grid;
  gap: 0.6rem;
}

.mi-pedido__subir label span {
  display: block;
  margin-bottom: 0.4rem;
  color: #e6e7ec;
  font-size: 0.9rem;
}

.mi-pedido__subir input[type="file"] {
  width: 100%;
  color: #c5c7d0;
  font-size: 0.88rem;
}

.mi-pedido__subir .btn {
  justify-self: start;
  min-height: 44px;
}

.mi-pedido__aviso {
  font-size: 0.88rem;
}

.mi-pedido__aviso.is-error { color: #ff8080; }
.mi-pedido__aviso.is-info { color: #c5c7d0; }
