/* Carrusel comunidad en PC: altura fija y aspect-ratio para evitar saltos */
@media (min-width: 701px) {
  .community-carousel {
    aspect-ratio: 10/19;
    min-height: 480px;
    max-height: 600px;
    height: 520px;
    max-width: 440px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 1rem;
    background: #232533;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding-bottom: 0.5rem;
  }
  .community-carousel-slide img {
    width: 100%;
    height: 80%;
    object-fit: cover;
    border-radius: 1rem;
    display: block;
    background: #232533;
    margin: 0 auto 0.5rem auto;
    box-shadow: none;
  }
}
@media (max-width: 700px) {
  .home-community,
  #comunidad,
  .community-carousel {
    display: none !important;
  }
}
/* Carrusel comunidad en móvil mejorado */
@media (max-width: 700px) {
  .community-carousel {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
    position: relative;
    aspect-ratio: 10/19;
    min-height: 400px;
    max-height: 110vw;
    overflow: hidden;
    border-radius: 1rem;
    background: #232533;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    padding-bottom: 0.5rem;
  }
  .community-carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    opacity: 0;
    transition: opacity 0.7s;
    z-index: 1;
    pointer-events: none;
    padding-bottom: 0.5rem;
  }
  .community-carousel-slide.active {
    opacity: 1;
    z-index: 2;
    pointer-events: auto;
  }
  .community-carousel-slide img {
    width: 100%;
    height: 80%;
    object-fit: cover;
    border-radius: 1rem;
    display: block;
    background: #232533;
    margin: 0 auto 0.5rem auto;
    box-shadow: none;
  }
  .community-carousel-slide figcaption {
    color: #fff;
    text-align: center;
    font-size: 1rem;
    margin-top: 0.2rem;
    width: 100%;
    word-break: break-word;
    line-height: 1.2;
    background: none;
    padding: 0 0.5rem;
  }
}
/* Carrusel comunidad en móvil */
@media (max-width: 700px) {
  .home-community-grid {
    display: none !important;
  }
  .community-carousel {
    display: block;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    position: relative;
    min-height: 260px;
  }
  .community-carousel-slide {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.7s;
    z-index: 1;
  }
  .community-carousel-slide.active {
    display: block;
    opacity: 1;
    z-index: 2;
  }
}
@media (min-width: 701px) {
  .community-carousel {
    display: none !important;
  }
}
.user-toggle-icon.user-has-photo {
  filter: none !important;
}
/* Foto de usuario logueado en el header */
.user-photo-container {
  display: flex;
  align-items: center;
  margin-right: 0.7rem;
}
.user-photo {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #be655d;
  background: #fff;
  box-shadow: 0 2px 8px #0002;
}
/* Texto pequeño debajo del botón de registro */
.register-hint {
  margin-top: 0.7rem;
  font-size: 0.93rem;
  color: #c3ba99;
  text-align: center;
}
.register-link {
  color: #be655d;
  text-decoration: underline;
  cursor: pointer;
  font-weight: 600;
  transition: color 0.18s;
}
.register-link:hover {
  color: #fbe8de;
}

.auth-feedback,
.profile-feedback {
  margin: 0.45rem 0 0.9rem;
  padding: 0.55rem 0.75rem;
  border-radius: 0.55rem;
  font-size: 0.9rem;
  line-height: 1.35;
  border: 1px solid transparent;
  background: transparent;
  color: transparent;
  min-height: 0;
}

.auth-feedback:empty,
.profile-feedback:empty {
  display: none;
}

.auth-feedback.is-error,
.profile-feedback.is-error {
  color: #ffd7d7;
  background: rgba(145, 45, 45, 0.24);
  border-color: rgba(255, 170, 170, 0.42);
}

.auth-feedback.is-success,
.profile-feedback.is-success {
  color: #d9ffe5;
  background: rgba(34, 110, 73, 0.26);
  border-color: rgba(164, 255, 202, 0.4);
}

.auth-feedback.is-info,
.profile-feedback.is-info {
  color: #f4e7ca;
  background: rgba(195, 186, 153, 0.14);
  border-color: rgba(195, 186, 153, 0.28);
}
/* ===================== REGISTRO MEJORADO ===================== */
.user-modal-content {
  background: linear-gradient(135deg, #232533 80%, #18141a 100%);
  border-radius: 1.5rem;
  padding: 2.5rem 2.7rem 2.2rem;
  box-shadow: 0 10px 36px rgba(0,0,0,0.38);
  max-width: 420px;
  width: 100%;
  margin: auto;
  color: #f4e7ca;
  position: relative;
  font-family: var(--font-main);
  animation: modalPopIn 0.32s cubic-bezier(.42,1.6,.58,1) both;
  border: 1.5px solid #be655d44;
}

.register-form label {
  font-family: var(--font-main);
  font-size: 1.08rem;
  color: #fbe8de;
  font-weight: 700;
  display: block;
  margin-bottom: 0.7rem;
  letter-spacing: 0.01em;
}

.register-form input {
  width: 100%;
  padding: 0.7rem 1rem;
  border-radius: 0.7rem;
  border: 1.5px solid #35374a;
  background: #1d1f27;
  color: #f4e7ca;
  font-size: 1.08rem;
  margin-top: 0.2rem;
  margin-bottom: 1.2rem;
  font-family: var(--font-main);
  transition: border 0.2s, box-shadow 0.2s;
}

.register-form input:focus {
  outline: 2px solid #be655d;
  border-color: #be655d;
  box-shadow: 0 0 0 2px #be655d33;
}

.register-form .btn.primary {
  width: 100%;
  padding: 0.8rem 0;
  border-radius: 0.9rem;
  background: linear-gradient(90deg, #be655d 0%, #c3ba99 100%);
  color: #fff;
  font-family: var(--font-main);
  font-size: 1.13rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  margin-top: 0.5rem;
  margin-bottom: 1.2rem;
  transition: background 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 12px #be655d22;
}

.register-form .btn.primary:hover {
  background: linear-gradient(90deg, #c3ba99 0%, #be655d 100%);
  box-shadow: 0 4px 18px #be655d33;
}

.register-separator {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 1.2rem 0 1.1rem;
  gap: 0.7rem;
}
.register-separator-line {
  flex: 1;
  height: 1.5px;
  background: linear-gradient(90deg, #be655d44, #c3ba9999, #be655d44);
  border-radius: 2px;
}
.register-separator-text {
  color: #be655d;
  font-weight: 700;
  font-size: 1.1rem;
  padding: 0 0.5rem;
  letter-spacing: 0.04em;
}
.register-social-coming-soon {
  margin: 0.5rem 0;
  text-align: center;
  color: #c3ba99;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.register-social {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  width: 100%;
  padding: 0.7rem 0;
  border-radius: 0.8rem;
  border: 1.5px solid #be655d55;
  background: #232533;
  color: #fbe8de;
  font-size: 1.08rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s, border 0.18s, box-shadow 0.18s;
  box-shadow: 0 1px 8px #be655d11;
}
.social-btn:hover {
  background: #be655d22;
  border-color: #be655d;
  color: #fff;
}
.social-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  background: #232533;
  border-color: #5a5a6a;
  color: #999aa0;
}
.social-btn-icon {
  width: 26px;
  height: 26px;
  display: inline-block;
}
.google-btn .social-btn-icon {
  filter: none;
}


/* ===================== ICONOS HEADER ===================== */

/* Icono menú hamburguesa */
.menu-icon {
  width: 32px;
  height: 32px;
  display: inline-block;
  vertical-align: middle;
  filter: var(--icon-filter, invert(0));
  transition: filter 0.2s;
  cursor: pointer;
}

.menu-toggle:hover .menu-icon,
.menu-toggle:focus-visible .menu-icon {
  transform: scale(1.06);
  outline: none;
}

body.user-dark-mode .menu-toggle:hover .menu-icon,
body.user-dark-mode .menu-toggle:focus-visible .menu-icon,
body.admin-mode .menu-toggle:hover .menu-icon,
body.admin-mode .menu-toggle:focus-visible .menu-icon {
  filter: brightness(0) saturate(100%) invert(48%) sepia(29%) saturate(716%) hue-rotate(319deg) brightness(89%) contrast(90%);
}

body:not(.user-dark-mode):not(.admin-mode) .menu-toggle:hover .menu-icon,
body:not(.user-dark-mode):not(.admin-mode) .menu-toggle:focus-visible .menu-icon {
  filter: brightness(0.85) saturate(120%) invert(10%) sepia(18%) saturate(420%) hue-rotate(330deg) contrast(110%);
}

/* Icono social */
.social-icon {
  width: 38px;
  height: 38px;
  display: block;
  filter: brightness(0.85) saturate(120%) invert(10%) sepia(18%) saturate(420%) hue-rotate(330deg) contrast(110%);
  transition: filter 0.3s;
}

/* Icono carrito */
.cart-toggle-icon {
  width: 38px;
  height: 38px;
  display: block;
  filter: brightness(0.85) saturate(120%) invert(10%) sepia(18%) saturate(420%) hue-rotate(330deg) contrast(110%);
  transition: transform 0.18s ease, filter 0.3s;
}

/* Icono usuario */
.user-toggle-icon {
  width: 32px;
  height: 32px;
  display: block;
  filter: brightness(0.85) saturate(120%) invert(10%) sepia(18%) saturate(420%) hue-rotate(330deg) contrast(110%);
  transition: transform 0.18s ease, filter 0.3s;
}

body.user-dark-mode .user-toggle-icon,
body.admin-mode .user-toggle-icon {
  filter: brightness(1.05) saturate(160%) invert(60%) sepia(32%) saturate(820%) hue-rotate(325deg) contrast(98%);
}

body.admin-mode .social-icon,
body.admin-mode .cart-toggle-icon,
body.admin-mode .menu-icon,
body.user-dark-mode .social-icon,
body.user-dark-mode .cart-toggle-icon,
body.user-dark-mode .user-toggle-icon,
body.user-dark-mode .menu-icon {
  filter: brightness(0) saturate(100%) invert(48%) sepia(29%) saturate(716%) hue-rotate(319deg) brightness(89%) contrast(90%);
}

/* Separador visual entre redes sociales y slideshow */
.social-separator {
  width: 100%;
  height: 0;
  margin-bottom: 3.6rem;
}

@media (max-width: 700px) {
  .social-separator {
    margin-bottom: 5.2rem;
  }
}
.user-modal {
  display: none;
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(22, 17, 21, 0.72);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  animation: fadeInModalBg 0.3s;
}

.user-modal[aria-hidden="false"] {
  display: flex;
}

.user-profile-panel {
  background: linear-gradient(180deg, rgba(38, 41, 54, 0.98) 0%, rgba(25, 28, 39, 0.98) 100%);
  border: 1px solid rgba(195, 186, 153, 0.24);
  border-radius: 1rem;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 1.1rem;
  position: fixed;
  top: 8.4rem;
  right: 3.6rem;
  width: min(360px, calc(100vw - 2.4rem));
  max-height: calc(100vh - 6rem);
  overflow-y: auto;
  color: var(--card-text);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 200;
}

.user-profile-panel[aria-hidden="false"] {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

body.user-profile-open .user-profile-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.user-profile-overlay {
  display: none;
}

.user-profile-content {
  position: static;
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}

.user-profile-content h2 {
  margin: 0 0 0.9rem;
  color: var(--card-title);
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.user-profile-header {
  display: grid;
  grid-template-columns: 54px 1fr;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.8rem;
  padding: 0.55rem 0.62rem;
  border: 1px solid rgba(195, 186, 153, 0.16);
  border-radius: 0.75rem;
  background: rgba(243, 243, 245, 0.04);
}

.user-profile-avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 2px solid rgba(190, 101, 93, 0.62);
  background: rgba(25, 28, 39, 0.8);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.user-profile-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.user-profile-avatar-initials {
  width: 100%;
  height: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fbe8de;
  font-weight: 700;
  letter-spacing: 0.06em;
  font-size: 1rem;
}

.user-profile-meta {
  min-width: 0;
}

.user-profile-greeting {
  margin: 0;
  color: #f4e7ca;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-profile-subtitle {
  margin: 0.18rem 0 0;
  color: #c3ba99;
  font-size: 0.8rem;
  letter-spacing: 0.03em;
}

.user-profile-list {
  border: 1px solid rgba(195, 186, 153, 0.16);
  background: rgba(243, 243, 245, 0.03);
  border-radius: 0.8rem;
  padding: 0.8rem;
  margin-bottom: 0.9rem;
}

.user-profile-list p {
  margin: 0;
  padding: 0.35rem 0;
  font-size: 0.93rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.55rem;
}

.user-profile-list p + p {
  border-top: 1px solid rgba(195, 186, 153, 0.18);
}

.user-profile-list strong {
  color: var(--card-title);
  font-weight: 700;
}

.user-profile-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: transparent;
  border: none;
  color: #f4e7ca;
  font-size: 1.4rem;
  cursor: pointer;
}

.user-profile-close:hover {
  color: #be655d;
}

#user-logout-btn {
  width: 100%;
}

#user-view-profile-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  margin-bottom: 0.55rem;
}

#user-view-profile-btn[aria-disabled="true"] {
  opacity: 0.72;
  cursor: default;
}

.profile-page {
  width: min(540px, calc(100vw - 2.2rem));
  margin: 2rem auto;
}

.profile-page-hero {
  border: 1px solid rgba(195, 186, 153, 0.25);
  border-radius: 1rem;
  padding: 1rem 1rem 1.1rem;
  background:
    radial-gradient(circle at 15% 20%, rgba(190, 101, 93, 0.28), transparent 50%),
    linear-gradient(165deg, rgba(35, 37, 51, 0.95), rgba(25, 28, 39, 0.96));
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.28);
  margin-bottom: 0.95rem;
}

.profile-page-kicker {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #c3ba99;
  font-size: 0.72rem;
  font-weight: 700;
}

.profile-page-title {
  margin: 0.35rem 0 0;
  color: #fbe8de;
  font-size: 1.45rem;
  line-height: 1.2;
}

.profile-page-subtitle {
  margin: 0.55rem 0 0;
  color: #d9cdb4;
  font-size: 0.92rem;
}

.profile-page-card {
  border: 1px solid rgba(195, 186, 153, 0.24);
  border-radius: 1rem;
  padding: 1rem;
  background: linear-gradient(180deg, rgba(38, 41, 54, 0.98), rgba(25, 28, 39, 0.98));
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.34);
}

.profile-page-avatar-wrap {
  width: 128px;
  height: 128px;
  border-radius: 50%;
  border: 2px solid rgba(190, 101, 93, 0.72);
  background: rgba(20, 22, 31, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin: 0 auto;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.2s ease;
}

.profile-page-avatar-wrap:hover,
.profile-page-avatar-wrap:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 0 0 4px rgba(190, 101, 93, 0.16);
}

.profile-page-avatar-wrap.is-uploading {
  opacity: 0.75;
  pointer-events: none;
}

.profile-page-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

.profile-page-initials {
  color: #fbe8de;
  font-size: 2.35rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.profile-page-main {
  text-align: center;
  margin-top: 0.65rem;
}

.profile-page-name {
  margin: 0;
  color: #f4e7ca;
  font-size: 1.22rem;
  line-height: 1.2;
  font-family: "Cinzel", "Inter", "Helvetica Neue", Arial, sans-serif;
  font-weight: 700;
}

.profile-page-card.is-authenticated .profile-page-name {
  animation: profileUsernameGlow 2.6s ease-in-out infinite;
}

.profile-page-card.is-admin .profile-page-name {
  color: #fbe8de;
  animation: profileUsernameGlowAdmin 1.9s ease-in-out infinite;
}

.profile-page-username {
  margin: 0.25rem 0 0;
  color: #b7aa8e;
  font-size: 0.9rem;
}

.profile-page-details {
  margin: 0.9rem 0 0;
  border: 1px solid rgba(195, 186, 153, 0.16);
  border-radius: 0.8rem;
  background: rgba(243, 243, 245, 0.04);
  padding: 0.75rem;
}

.profile-page-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.9rem;
  color: #e7d9bc;
  padding: 0.35rem 0;
}

.profile-page-row + .profile-page-row {
  border-top: 1px solid rgba(195, 186, 153, 0.17);
}

.profile-page-row dt {
  color: #f4e7ca;
  font-weight: 700;
}

.profile-page-row dd {
  margin: 0;
  text-align: right;
  color: #d9cdb4;
}

.profile-page-level {
  margin-top: 0.9rem;
  border: 1px solid rgba(195, 186, 153, 0.16);
  border-radius: 0.8rem;
  background: rgba(243, 243, 245, 0.04);
  padding: 0.8rem;
}

.profile-page-level-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
}

.profile-page-level-title {
  margin: 0;
  color: #f4e7ca;
  font-size: 0.95rem;
}

.profile-page-level-percent {
  margin: 0;
  color: #c3ba99;
  font-size: 0.9rem;
  font-weight: 700;
}

.profile-page-level-track {
  margin-top: 0.55rem;
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: rgba(20, 22, 31, 0.66);
  overflow: hidden;
  border: 1px solid rgba(195, 186, 153, 0.14);
}

.profile-page-level-fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #be655d 0%, #c3ba99 100%);
  transition: width 0.35s ease;
}

.profile-page-card.is-admin .profile-page-level-fill {
  background: linear-gradient(90deg, #f0b97f 0%, #fbe8de 100%);
}

.profile-page-actions {
  margin-top: 0.95rem;
  display: grid;
  gap: 0.55rem;
}

.profile-page-actions .btn {
  width: 100%;
}

.profile-orders-card {
  margin-top: 0.95rem;
  border: 1px solid rgba(195, 186, 153, 0.2);
  border-radius: 1rem;
  padding: 0.9rem;
  background: linear-gradient(180deg, rgba(38, 41, 54, 0.95), rgba(25, 28, 39, 0.96));
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}

.profile-orders-head {
  margin-bottom: 0.6rem;
}

.profile-orders-filters {
  margin-top: 0.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
}

.profile-orders-filter {
  border-radius: 0.7rem;
  font-size: 0.78rem;
  padding: 0.42rem 0.55rem;
  color: #e7d9bc;
  border-color: rgba(195, 186, 153, 0.32);
}

.profile-orders-filter.is-active {
  border-color: rgba(190, 101, 93, 0.72);
  background: rgba(190, 101, 93, 0.22);
  color: #fbe8de;
}

.profile-orders-title {
  margin: 0;
  color: #f4e7ca;
  font-size: 1.02rem;
}

.profile-orders-status {
  margin: 0.25rem 0 0;
  color: #c3ba99;
  font-size: 0.85rem;
}

.profile-orders-list {
  display: grid;
  gap: 0.55rem;
}

.profile-order-item {
  border: 1px solid rgba(195, 186, 153, 0.18);
  border-radius: 0.72rem;
  background: rgba(243, 243, 245, 0.03);
  padding: 0.58rem 0.65rem;
}

.profile-order-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.55rem;
}

.profile-order-top strong {
  color: #fbe8de;
  font-size: 0.88rem;
}

.profile-order-top span {
  color: #d9cdb4;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.profile-order-item p {
  margin: 0.3rem 0 0;
  color: #d7cba9;
  font-size: 0.82rem;
}

.profile-order-items-list {
  list-style: none;
  margin: 0.52rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.42rem;
}

.profile-order-item-product {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 0.52rem;
  align-items: start;
  border: 1px solid rgba(195, 186, 153, 0.16);
  border-radius: 0.62rem;
  background: rgba(243, 243, 245, 0.02);
  padding: 0.42rem;
}

.profile-order-item-media {
  width: 52px;
  height: 52px;
  border-radius: 0.48rem;
  overflow: hidden;
  border: 1px solid rgba(195, 186, 153, 0.24);
  background: rgba(20, 22, 31, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-order-item-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.profile-order-item-image-placeholder {
  color: #c3ba99;
  font-size: 0.6rem;
  text-transform: uppercase;
  text-align: center;
  letter-spacing: 0.04em;
  line-height: 1.2;
  padding: 0 0.15rem;
}

.profile-order-item-info {
  min-width: 0;
}

.profile-order-item-name {
  margin: 0;
  color: #f4e7ca;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.3;
}

.profile-order-item-meta {
  margin: 0.18rem 0 0;
  color: #d7cba9;
  font-size: 0.76rem;
  line-height: 1.3;
}

.profile-order-items-empty {
  margin: 0.5rem 0 0;
  color: #bdae8f;
  font-size: 0.78rem;
}

.profile-orders-empty {
  margin: 0;
  border: 1px dashed rgba(195, 186, 153, 0.24);
  border-radius: 0.72rem;
  padding: 0.62rem;
  color: #c3ba99;
  font-size: 0.84rem;
  text-align: center;
}

@keyframes profileUsernameGlow {
  0%,
  100% {
    text-shadow: 0 0 0 rgba(195, 186, 153, 0);
    transform: translateY(0);
  }

  50% {
    text-shadow: 0 0 14px rgba(195, 186, 153, 0.28);
    transform: translateY(-1px);
  }
}

@keyframes profileUsernameGlowAdmin {
  0%,
  100% {
    text-shadow: 0 0 0 rgba(251, 232, 222, 0);
    transform: translateY(0);
  }

  50% {
    text-shadow: 0 0 16px rgba(251, 232, 222, 0.46);
    transform: translateY(-1px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .profile-page-card.is-authenticated .profile-page-name,
  .profile-page-card.is-admin .profile-page-name {
    animation: none;
  }
}

@media (max-width: 700px) {
  .profile-page {
    width: calc(100vw - 1.4rem);
    margin: 1.3rem auto;
  }

  .profile-page-title {
    font-size: 1.28rem;
  }

  .profile-orders-filters {
    grid-template-columns: 1fr;
  }
}

@keyframes fadeInModalBg {
  from { opacity: 0; }
  to { opacity: 1; }
}

.user-modal-content {
  background: linear-gradient(135deg, #262936 80%, #1a151a 100%);
  border-radius: 1.2rem;
  padding: 2.2rem 2.5rem 2rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.32);
  max-width: 420px;
  width: 100%;
  margin: auto;
  color: #f4e7ca;
  position: relative;
  font-family: var(--font-main);
  animation: modalPopIn 0.32s cubic-bezier(.42,1.6,.58,1) both;
}

@keyframes modalPopIn {
  0% { opacity: 0; transform: scale(0.92) translateY(40px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

.user-modal-content h2 {
  font-family: var(--font-main);
  font-size: 2rem;
  margin-bottom: 1.2rem;
  color: #fbe8de;
  text-align: center;
}
/* Ocultar el botón de usuario durante la intro, igual que otros iconos */
.intro-active .user-toggle {
  opacity: 0;
  pointer-events: none;
}

.user-modal-content label {
  font-family: var(--font-main);
  font-size: 1rem;
  color: #f4e7ca;
  display: block;
  margin-bottom: 0.7rem;
}

.user-modal-content input {
  width: 100%;
  padding: 0.6rem 0.9rem;
  border-radius: 0.5rem;
  border: 1px solid var(--border);
  background: #1d1f27;
  color: #f4e7ca;
  font-size: 1rem;
  margin-top: 0.2rem;
  margin-bottom: 1.1rem;
  font-family: var(--font-main);
}

.password-field-wrap {
  position: relative;
}

.password-field-wrap > input {
  padding-right: 2.8rem !important;
}

.password-toggle {
  position: absolute;
  right: 0.55rem;
  top: 42%;
  transform: translateY(-50%);
  width: 2rem;
  height: 2rem;
  border: 0;
  background: transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: #c3ba99;
}

.password-toggle:hover,
.password-toggle:focus-visible {
  color: #fbe8de;
}

.password-toggle-icon {
  width: 1.18rem;
  height: 1.18rem;
  display: block;
  margin: 0 auto;
  pointer-events: none;
  opacity: 0.9;
  filter: brightness(0) invert(1);
}

.password-toggle:hover .password-toggle-icon,
.password-toggle:focus-visible .password-toggle-icon {
  opacity: 1;
}

.user-modal-content input:focus {
  outline: 2px solid #be655d;
  border-color: #be655d;
}

.user-modal-content .btn.primary {
  width: 100%;
  padding: 0.7rem 0;
  border-radius: 0.7rem;
  background: linear-gradient(90deg, #be655d 0%, #c3ba99 100%);
  color: #fff;
  font-family: var(--font-main);
  font-size: 1.1rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  margin-top: 0.5rem;
  transition: background 0.2s;
}

.user-modal-content .btn.primary:hover {
  background: linear-gradient(90deg, #c3ba99 0%, #be655d 100%);
}

.user-modal-close {
  position: absolute;
  top: 1.1rem;
  right: 1.1rem;
  background: transparent;
  border: none;
  color: #f4e7ca;
  font-size: 1.5rem;
  cursor: pointer;
  transition: color 0.2s;
}
.user-modal-close:hover {
  color: #be655d;
}
.cart-user-wrap {
  display: flexbox;
  flex-direction: row;
  align-items: center;
  gap: 0.6rem;
}
.user-toggle {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}


.user-toggle:hover .user-toggle-icon,
.user-toggle:focus-visible .user-toggle-icon {
  transform: scale(1.06);
  outline: none;
}

/* Icono de usuario en el header */

.user-toggle-icon {
  width: 32px;
  height: 32px;
  display: block;
  filter: brightness(0.85) saturate(120%) invert(10%) sepia(18%) saturate(420%) hue-rotate(330deg) contrast(110%);
  transition: transform 0.18s ease, filter 0.3s;
}

body.user-dark-mode .user-toggle-icon {
  filter: brightness(1.05) saturate(160%) invert(60%) sepia(32%) saturate(820%) hue-rotate(325deg) contrast(98%);
}
@font-face {
  font-family: "Vampire Wars";
  src: url("fonts/Vampire\ Wars.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "Nexa";
  src: url("fonts/Nexa-Heavy.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "BoldF";
  src: url("fonts/BoldF.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "Cinzel";
  src: url("fonts/Cinzel.otf") format("opentype");
  font-display: swap;
}

:root {
  --bg: #e6d5aa;
  --surface: #262936;
  --text: #ffffff;
  --muted: #a9adba;
  --primary: #f3f3f5;
  --primary-hover: #ffffff;
  --border: #3a3e4e;
  --font-main: "Nexa", "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-title: "Vampire Wars", "Inter", "Helvetica Neue", Arial, sans-serif;
  --title-grad-1: #ec9194;
  --title-grad-2: #f36c70;
  --title-grad-3: #ef444a;
  --header-height: 7.6rem;
  --card-bg: #1f2230;
  --card-border: rgba(22, 17, 21, 0.16);
  --card-title: #f4e7ca;
  --card-text: #e7d9bc;
  --card-muted: #b8bdcc;
  --card-accent: #be655d;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--font-main);
  color: var(--text);
  background: var(--bg);
  min-height: 100dvh;
  padding-top: 30px;
  position: relative;
  isolation: isolate;
  transition: background-color 0.55s ease;
}

body::before {
  content: "";
  position: fixed;
  left: 50%;
  top: 56%;
  width: min(66vw, 860px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: -2;
  opacity: 0;
  background-image: url("assets/nonagon-complete.svg");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  filter: drop-shadow(0 14px 20px rgba(84, 19, 24, 0.24));
  transform-origin: center;
  animation: nonagonRotate 120s linear infinite;
}

body::after {
  content: "";
  position: fixed;
  left: 50%;
  top: 56%;
  width: min(66vw, 860px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: -2;
  opacity: 0;
  background-image: url("assets/nonagon-complete.svg");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center;
  filter: drop-shadow(0 0 14px rgba(255, 27, 35, 0.38));
  transform-origin: center;
  animation: nonagonRotate 120s linear infinite, nonagonGhostPulse 2.8s ease-in-out infinite;
}

body.catalog-page::before,
body.catalog-page::after {
  transition: opacity 0.35s ease;
}

body.catalog-page.catalog-theme-changing::before,
body.catalog-page.catalog-theme-changing::after {
  opacity: 0 !important;
  transition: opacity 0.25s ease;
}

body.catalog-page[data-catalog-theme="gothic"]::before {
  background-image: url("assets/category-bg/gothic-skull.svg");
  animation: gothicSkullIconMotion 6.2s ease-in-out infinite;
}

body.catalog-page[data-catalog-theme="gothic"]::after {
  background-image: linear-gradient(118deg, rgba(255, 255, 255, 0) 36%, rgba(255, 233, 221, 0.62) 50%, rgba(255, 255, 255, 0) 64%);
  background-size: 240% 100%;
  background-position: -240% 50%;
  background-repeat: no-repeat;
  background-blend-mode: screen;
  transform: translate(-50%, -50%) scale(1.03);
  opacity: 0.2;
  will-change: background-position;
  -webkit-mask-image: url("assets/category-bg/gothic-skull.svg");
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-image: url("assets/category-bg/gothic-skull.svg");
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
  animation: gothicSkullLightSweep 4.4s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
}

body.catalog-page[data-catalog-theme="gothic"]:not(.user-dark-mode):not(.admin-mode)::before {
  filter: brightness(0) saturate(100%) invert(18%) sepia(47%) saturate(714%) hue-rotate(333deg) brightness(96%) contrast(95%)
    drop-shadow(0 12px 20px rgba(72, 26, 29, 0.36));
}

body.catalog-page.user-dark-mode[data-catalog-theme="gothic"]::before,
body.catalog-page.admin-mode[data-catalog-theme="gothic"]::before {
  filter: brightness(0) saturate(100%) invert(91%) sepia(23%) saturate(338%) hue-rotate(307deg) brightness(98%) contrast(96%)
    drop-shadow(0 14px 22px rgba(255, 176, 185, 0.2));
}

body.catalog-page[data-catalog-theme="retro"]::before {
  background-image: url("assets/category-bg/retro-pixel.svg");
  opacity: 0.58;
  will-change: transform;
  animation: retroCatFloat 5.8s ease-in-out infinite;
}

body.catalog-page[data-catalog-theme="retro"]::after {
  background-image:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.42) 0%, rgba(255, 255, 255, 0.2) 14%, rgba(255, 255, 255, 0) 34%),
    conic-gradient(
      from 0deg,
      rgba(255, 0, 128, 0.85),
      rgba(255, 120, 0, 0.85),
      rgba(255, 230, 0, 0.85),
      rgba(0, 230, 80, 0.85),
      rgba(0, 180, 255, 0.85),
      rgba(140, 0, 255, 0.85),
      rgba(255, 0, 128, 0.85)
    );
  background-size: 100% 100%, 100% 100%;
  background-position: center, center;
  background-repeat: no-repeat, no-repeat;
  background-blend-mode: screen, normal;
  transform: translate(-50%, -50%);
  opacity: 0.55;
  -webkit-mask-image: url("assets/category-bg/retro-pixel.svg");
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-image: url("assets/category-bg/retro-pixel.svg");
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
  animation: retroChromaRotate 6s linear infinite;
}

body.catalog-page[data-catalog-theme="retro"]:not(.user-dark-mode):not(.admin-mode)::before {
  filter: brightness(0) saturate(100%) invert(31%) sepia(27%) saturate(880%) hue-rotate(331deg) brightness(93%) contrast(93%)
    drop-shadow(0 12px 20px rgba(84, 34, 42, 0.28));
}

body.catalog-page.user-dark-mode[data-catalog-theme="retro"]::before,
body.catalog-page.admin-mode[data-catalog-theme="retro"]::before {
  filter: brightness(0) saturate(100%) invert(74%) sepia(14%) saturate(846%) hue-rotate(325deg) brightness(90%) contrast(95%)
    drop-shadow(0 14px 24px rgba(241, 162, 105, 0.18));
}

body.catalog-page[data-catalog-theme="retro"]:not(.user-dark-mode):not(.admin-mode)::after {
  filter: none;
}

body.catalog-page.user-dark-mode[data-catalog-theme="retro"]::after,
body.catalog-page.admin-mode[data-catalog-theme="retro"]::after {
  filter: none;
}

body.catalog-page[data-catalog-theme="punk"]::before {
  background-image: url("assets/category-bg/punk-anarchy.svg");
  opacity: 0.52;
  transform: translate(-50%, -50%);
  animation: punkBaseIdle 6.8s ease-in-out infinite;
  z-index: -2;
}

body.catalog-page[data-catalog-theme="punk"]::after {
  background-image: linear-gradient(112deg, rgba(255, 255, 255, 0) 34%, rgba(255, 117, 92, 0.76) 50%, rgba(255, 255, 255, 0) 66%);
  background-size: 240% 100%;
  background-position: 50% 50%;
  background-repeat: no-repeat;
  transform: translate(-50%, -50%) scale(1.01);
  opacity: 0.1;
  -webkit-mask-image: url("assets/category-bg/punk-anarchy.svg");
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-image: url("assets/category-bg/punk-anarchy.svg");
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
  animation: none;
  z-index: -3;
}

body.catalog-page.punk-glitch-active[data-catalog-theme="punk"]::after {
  animation: punkOffsetGlitchBurst 180ms steps(1, end) 1;
}

body.catalog-page[data-catalog-theme="punk"]:not(.user-dark-mode):not(.admin-mode)::before {
  filter: brightness(0) saturate(100%) invert(23%) sepia(78%) saturate(2024%) hue-rotate(345deg) brightness(95%) contrast(95%)
    drop-shadow(0 12px 20px rgba(100, 38, 42, 0.35));
}

body.catalog-page.user-dark-mode[data-catalog-theme="punk"]::before,
body.catalog-page.admin-mode[data-catalog-theme="punk"]::before {
  filter: brightness(0) saturate(100%) invert(93%) sepia(8%) saturate(225%) hue-rotate(315deg) brightness(101%) contrast(97%)
    drop-shadow(0 14px 22px rgba(255, 226, 214, 0.28));
}

body.catalog-page[data-catalog-theme="punk"]:not(.user-dark-mode):not(.admin-mode)::after {
  background-image: linear-gradient(112deg, rgba(0, 0, 0, 0) 33%, rgba(94, 35, 42, 0.84) 50%, rgba(0, 0, 0, 0) 67%);
  opacity: 0.2;
  filter: drop-shadow(0 0 12px rgba(120, 47, 56, 0.44));
}

body.catalog-page.user-dark-mode[data-catalog-theme="punk"]::after,
body.catalog-page.admin-mode[data-catalog-theme="punk"]::after {
  filter: drop-shadow(0 0 14px rgba(255, 226, 214, 0.34));
}

body.catalog-page[data-catalog-theme="urban"]::before,
body.catalog-page[data-catalog-theme="urban"]::after {
  background-image: url("assets/category-bg/urban-sun.svg");
}

body.catalog-page[data-catalog-theme="urban"]:not(.user-dark-mode):not(.admin-mode)::before {
  opacity: 0.44;
  filter: brightness(0) saturate(100%) invert(23%) sepia(78%) saturate(2024%) hue-rotate(345deg) brightness(95%) contrast(95%)
    drop-shadow(0 12px 20px rgba(100, 38, 42, 0.35));
}

body.catalog-page[data-catalog-theme="urban"]:not(.user-dark-mode):not(.admin-mode)::after {
  background-image: linear-gradient(112deg, rgba(0, 0, 0, 0) 33%, rgba(94, 35, 42, 0.84) 50%, rgba(0, 0, 0, 0) 67%);
  opacity: 0.2;
  filter: drop-shadow(0 0 12px rgba(120, 47, 56, 0.44));
}

body.catalog-page.user-dark-mode[data-catalog-theme="urban"]::before,
body.catalog-page.admin-mode[data-catalog-theme="urban"]::before {
  opacity: 0.48;
  filter: brightness(0) saturate(100%) invert(93%) sepia(8%) saturate(225%) hue-rotate(315deg) brightness(101%) contrast(97%)
    drop-shadow(0 14px 22px rgba(255, 226, 214, 0.28));
}

body.catalog-page.user-dark-mode[data-catalog-theme="urban"]::after,
body.catalog-page.admin-mode[data-catalog-theme="urban"]::after {
  opacity: 0.2;
  filter: drop-shadow(0 0 14px rgba(255, 226, 214, 0.34));
}

body.catalog-page[data-catalog-theme="gothic"]::after {
  filter: drop-shadow(0 0 14px rgba(241, 137, 143, 0.45));
}

body.catalog-page[data-catalog-theme="gothic"]:not(.user-dark-mode):not(.admin-mode)::after {
  background-image: linear-gradient(118deg, rgba(0, 0, 0, 0) 33%, rgba(58, 20, 26, 0.82) 50%, rgba(0, 0, 0, 0) 67%);
  background-size: 255% 100%;
  background-blend-mode: multiply;
  opacity: 0.28;
  filter: drop-shadow(0 0 14px rgba(103, 43, 52, 0.46));
}

body.catalog-page.user-dark-mode[data-catalog-theme="gothic"]::after,
body.catalog-page.admin-mode[data-catalog-theme="gothic"]::after {
  filter: drop-shadow(0 0 16px rgba(255, 170, 180, 0.55));
}

@keyframes gothicSkullIconMotion {
  0%,
  100% {
    transform: translate(-50%, -50%) translateY(-5px) rotate(-1.2deg) scale(0.995);
  }

  36% {
    transform: translate(-50%, -50%) translateY(7px) rotate(1deg) scale(1.01);
  }

  62% {
    transform: translate(-50%, -50%) translateY(1px) rotate(-0.35deg) scale(1.006);
  }

  78% {
    transform: translate(-50%, -50%) translateY(5px) rotate(0.8deg) scale(1.012);
  }
}

@keyframes gothicSkullLightSweep {
  0%,
  62%,
  100% {
    background-position: -240% 50%;
  }

  76% {
    background-position: 120% 50%;
  }

  84% {
    background-position: 240% 50%;
  }
}

@keyframes retroCatFloat {
  0%,
  100% {
    transform: translate(-50%, -50%) translateY(-6px) scale(0.998);
  }

  50% {
    transform: translate(-50%, -50%) translateY(6px) scale(1.006);
  }
}

@keyframes retroChromaRotate {
  0% {
    filter: hue-rotate(0deg) saturate(1.08) blur(0.35px);
  }

  100% {
    filter: hue-rotate(360deg) saturate(1.08) blur(0.35px);
  }
}

@keyframes punkOffsetGlitchBurst {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1.01);
    opacity: 0.1;
    background-position: 50% 50%;
  }

  30% {
    transform: translate(calc(-50% + var(--punk-glitch-x1, -0.6%)), calc(-50% + var(--punk-glitch-y1, 0.5%))) scale(var(--punk-glitch-s1, 1.006));
    opacity: var(--punk-glitch-o1, 0.16);
    background-position: 56% 50%;
  }

  66% {
    transform: translate(calc(-50% + var(--punk-glitch-x2, 0.5%)), calc(-50% + var(--punk-glitch-y2, -0.4%))) scale(var(--punk-glitch-s2, 1.002));
    opacity: var(--punk-glitch-o2, 0.08);
    background-position: 43% 50%;
  }
}

@keyframes nonagonRotate {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }

  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes nonagonGhostPulse {
  0%,
  86%,
  100% {
    opacity: 0;
    background-size: 100% 100%;
  }

  88% {
    opacity: 0.2;
    background-size: 106% 106%;
  }

  90% {
    opacity: 0;
    background-size: 100% 100%;
  }

  92% {
    opacity: 0.14;
    background-size: 104% 104%;
  }

  94% {
    opacity: 0;
    background-size: 100% 100%;
  }
}

@media (min-width: 1024px) {
  body::before {
    opacity: 0.36;
  }

  body::after {
    opacity: 0;
  }
}

@media (max-width: 1023px) {
  body::before {
    opacity: 0.22;
    width: 120vw;
    height: 68svh;
    aspect-ratio: auto;
    top: 52svh;
    background-size: 100% 100%;
  }

  body::after {
    width: 120vw;
    height: 68svh;
    aspect-ratio: auto;
    top: 52svh;
    background-size: 100% 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  body::before,
  body::after {
    animation: none;
  }
}


.site-header,
.page-shell,
.footer {
  width: 100%;
  max-width: 100%;
  margin-inline: 0;
  position: relative;
}

.page-shell {
    margin-top: 1rem;
}


body.admin-no-transition,
body.admin-no-transition .page-shell,
body.admin-no-transition .site-header,
body.admin-no-transition .intro-title,
body.admin-no-transition .intro-title::after,
body.admin-no-transition .menu-line,
body.admin-no-transition .social-icon,
body.admin-no-transition .cart-toggle-icon,
body.admin-no-transition .menu-icon {
  transition: none !important;
}


body.user-theme-no-transition,
body.user-theme-no-transition .page-shell,
body.user-theme-no-transition .site-header,
body.user-theme-no-transition .intro-title,
body.user-theme-no-transition .intro-title::after,
body.user-theme-no-transition .menu-line,
body.user-theme-no-transition .social-icon,
body.user-theme-no-transition .cart-toggle-icon,
body.user-theme-no-transition .menu-icon {
  transition: none !important;
}

body.admin-no-transition *,
body.admin-no-transition *::before,
body.admin-no-transition *::after {
  transition: none !important;
  animation: none !important;
}

body.user-theme-no-transition *,
body.user-theme-no-transition *::before,
body.user-theme-no-transition *::after {
  transition: none !important;
  animation: none !important;
}

body.admin-mode,
body.user-dark-mode {
  background: #161115;
}

body.admin-mode .site-header,
body.user-dark-mode .site-header {
  background: transparent;
}

body.admin-mode .intro-title,
body.user-dark-mode .intro-title {
  background-image: linear-gradient(120deg, #c3ba99, #be655d, #c3ba99, #be655d);
}

body.admin-mode .menu-line,
body.user-dark-mode .menu-line {
  background: #be655d;
}


body.admin-mode .social-icon,
body.admin-mode .cart-toggle-icon,
body.admin-mode .menu-icon,
body.user-dark-mode .social-icon,
body.user-dark-mode .cart-toggle-icon,
body.user-dark-mode .user-toggle-icon,
body.user-dark-mode .menu-icon {
  filter: brightness(0) saturate(100%) invert(48%) sepia(29%) saturate(716%) hue-rotate(319deg) brightness(89%) contrast(90%);
}

body.admin-mode .menu-toggle:focus-visible,
body.admin-mode .cart-toggle:focus-visible,
body.admin-mode .social-link:focus-visible,
body.user-dark-mode .menu-icon:focus-visible,
body.user-dark-mode .cart-toggle:focus-visible,
body.user-dark-mode .social-link:focus-visible {
  outline-color: #be655d;
}

body.intro-active {
  overflow: hidden;
  padding-top: 0;
}

.announcement-bar {
  background: #161115;
  color: #c3ba99;
  min-height: 30px;
  display: flex;
  align-items: center;
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  z-index: 140;
}

.announcement-content {
  display: block;
  width: 100%;
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  text-align: center;
  overflow: hidden;
}

.announcement-label {
  text-transform: uppercase;
  color: #be655d;
  font-weight: 700;
}

.announcement-text {
  color: #c3ba99;
  display: block;
  overflow: hidden;
}

.announcement-track {
  display: flex;
  align-items: center;
  gap: 0;
  width: max-content;
  animation: announcementTicker 40s linear infinite;
  will-change: transform;
}

.announcement-item {
  display: inline-flex;
  align-items: center;
  gap: 100vw;
  padding-left: 100vw;
  padding-right: 3.2rem;
}

.announcement-segment {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.announcement-message {
  white-space: nowrap;
}

@keyframes announcementTicker {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

body.admin-mode .announcement-bar,
body.user-dark-mode .announcement-bar {
  background: #0f0b0e;
}

.site-header {
  position: relative;
  z-index: 60;
  height: var(--header-height);
  display: grid;
  align-items: center;
  padding: 3.5rem 0 0 0;
  background: #00000000;
  transition: height 2.8s cubic-bezier(0.16, 1, 0.3, 1), background 1.4s ease;
}

.page-shell,
.site-header,
.intro-title,
.menu-line,
.social-icon,
.cart-toggle-icon {
  transition-duration: 0.55s;
  transition-timing-function: ease;
}

body.admin-visual-transition .page-shell {
  opacity: 0.92;
}

.header-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  position: relative;
  width: min(1100px, 92%);
  margin: 0 auto;
  padding: 0 5rem;
  min-height: 42px;
}

.page-shell {
  padding-top: 1.1rem;
  opacity: 1;
  visibility: visible;
  transition: opacity 1.2s ease;
}

.container {
  width: min(1100px, 92%);
  margin: 0 auto;
}

.intro-title {
  font-family: var(--font-title);
  position: relative;
  display: inline-block;
  transform: scale(0.72);
  transform-origin: center;
  font-size: clamp(2.3rem, 8vw, 5.8rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.05;
  padding-inline: 0.08em;
  overflow: visible;
  white-space: nowrap;
  color: transparent;
  background-image: linear-gradient(120deg, var(--title-grad-1), var(--title-grad-2), var(--title-grad-3), var(--title-grad-1));
  background-size: 220% 220%;
  -webkit-background-clip: text;
  background-clip: text;
  animation: titleGradient 6s ease infinite, titleMalfunction 4.6s steps(1, end) infinite;
  filter: drop-shadow(0 10px 8px rgba(0, 0, 0, 0.28));
  margin: 0.75rem 0 0.95rem;
  text-align: center;
  transition: transform 2.8s cubic-bezier(0.16, 1, 0.3, 1), font-size 2.8s cubic-bezier(0.16, 1, 0.3, 1);
}

body.no-intro-anim .site-header {
  height: var(--header-height) !important;
  position: relative !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  background: #00000000 !important;
}

body.no-intro-anim .header-content {
  width: min(1100px, 100%) !important;
}

body.no-intro-anim .intro-title {
  font-size: clamp(2.3rem, 8vw, 5.8rem) !important;
  margin: 0.75rem 0 0.95rem !important;
}

body.no-intro-anim .page-shell {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  padding-top: 3.1rem !important;
}

body.no-intro-anim .announcement-bar {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

.intro-title::after {
  content: "";
  position: absolute;
  top: calc(100% + 0.48rem);
  left: 50%;
  transform: translate(-50%, -10px);
  opacity: 0;
  font-family: var(--font-main);
  font-size: clamp(0.86rem, 1.55vw, 1.22rem);
  letter-spacing: 0.06em;
  text-transform: none;
  color: #161115;
  white-space: nowrap;
  pointer-events: none;
  transition: opacity 0.45s ease, transform 0.45s ease;
}

body.intro-finished:not(.admin-mode) .intro-title::after {
  content: '"Winners take the crown. Sinners take the throne."';
  animation: catchphraseReveal 0.62s ease forwards;
}

body.user-dark-mode.intro-finished:not(.admin-mode) .intro-title::after {
  color: #c3ba99;
}

body.admin-mode .intro-title::after {
  content: "Admin View";
  transform: translate(-50%, 0);
  opacity: 0.95;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #c3ba99;
}

body.intro-active .site-header {
  position: fixed;
  inset: 0;
  height: 100dvh;
  background: var(--bg);
}

body.intro-active .site-header::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(66vw, 860px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  pointer-events: none;
  opacity: 0.36;
  background-image: url("assets/nonagon-complete.svg");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  filter: drop-shadow(0 14px 20px rgba(84, 19, 24, 0.24));
  animation: nonagonRotate 120s linear infinite;
}

body.intro-active .site-header::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(66vw, 860px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  pointer-events: none;
  opacity: 0;
  background-image: url("assets/nonagon-complete.svg");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center;
  filter: drop-shadow(0 0 14px rgba(255, 27, 35, 0.38));
  animation: nonagonRotate 120s linear infinite, nonagonGhostPulse 2.8s ease-in-out infinite;
}

body.intro-active.admin-mode .site-header,
body.intro-active.user-dark-mode .site-header {
  background: #161115;
}

body.intro-active .header-content {
  width: 100%;
  padding: 0 1rem;
  grid-template-columns: 1fr;
}

body.intro-active .intro-title {
  transform: scale(1);
  font-size: clamp(3rem, 11vw, 10.2rem);
  width: 100%;
  max-width: none;
  white-space: nowrap;
  line-height: 1;
  margin-top: 0;
}

body.intro-active .announcement-bar {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

body.intro-active .menu-toggle,
body.intro-active .cart-toggle,
body.intro-active .social-links {
  opacity: 0;
  pointer-events: none;
}

body.intro-active .page-shell {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.social-links {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  position: static;
  transform: none;
  transition: opacity 0.25s ease;
}

.social-link {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.social-link:hover {
  opacity: 0.8;
}

.social-icon {
  width: 38px;
  height: 38px;
  display: block;
  filter: brightness(0.85) saturate(120%) invert(10%) sepia(18%) saturate(420%) hue-rotate(330deg) contrast(110%);
  transition: filter 0.3s;
}

.social-link:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

@keyframes titleGradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes catchphraseReveal {
  0% {
    opacity: 0;
    transform: translate(-50%, -16px);
  }
  100% {
    opacity: 0.9;
    transform: translate(-50%, 0);
  }
}

.layout {
  display: block;
  margin: 1.2rem auto;
}

.menu-toggle {
  position: absolute;
  top: 38%;
  left: 0;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border: none;
  background: transparent;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 0 9px;
  cursor: pointer;
  transition: opacity 0.25s ease;
}

.menu-line {
  width: 100%;
  height: 2px;
  background: #161115;
  display: block;
}

.menu-toggle:focus-visible {
  outline: 2px solid #000000;
  outline-offset: 3px;
}

.cart-toggle {
  position: absolute;
  top: 38%;
  right: 0;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  z-index: 2;
  transition: opacity 0.25s ease;
}

.user-toggle {
  position: absolute;
  top: 38%;
  right: 48px;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  z-index: 2;
  transition: opacity 0.25s ease;
}

.cart-toggle:focus-visible {
  outline: 2px solid #161115;
  outline-offset: 3px;
}

.cart-toggle-icon {
  width: 38px;
  height: 38px;
  display: block;
  filter: brightness(0.85) saturate(120%) invert(10%) sepia(18%) saturate(420%) hue-rotate(330deg) contrast(110%);
  transition: transform 0.18s ease, filter 0.3s;
}

.cart-toggle:hover .cart-toggle-icon {
  transform: scale(1.06);
}

.admin-panel {
  background: var(--surface);
  display: none;
  border-radius: 0;
  padding: 1rem;
  position: fixed;
  top: 5.8rem;
  left: 1.2rem;
  width: min(520px, calc(100vw - 2.4rem));
  max-height: calc(100vh - 6rem);
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 45;
}

body.admin-open .admin-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.8rem;
}

.admin-close {
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.admin-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.field-label {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.9rem;
}

.field-input {
  border: 1px solid var(--border);
  background: #1d1f27;
  color: var(--text);
  padding: 0.48rem 0.6rem;
  font: inherit;
}

.field-textarea {
  resize: vertical;
  min-height: 78px;
  line-height: 1.35;
}

.admin-full {
  grid-column: 1 / -1;
}

.admin-products-wrap {
  margin-top: 1rem;
}

.admin-products {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.admin-item {
  border: 1px solid var(--border);
  padding: 0.75rem;
}

.admin-item-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.admin-item-actions {
  margin-top: 0.65rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
}

.admin-item-actions .btn:nth-child(1) {
  grid-column: 1;
  grid-row: 1;
}

.admin-item-actions .btn:nth-child(2) {
  grid-column: 2;
  grid-row: 1;
}

.admin-item-actions .btn:nth-child(3) {
  grid-column: 1;
  grid-row: 2;
}

.admin-item-actions .btn:nth-child(4) {
  grid-column: 2;
  grid-row: 2;
}

.admin-item-actions .btn {
  width: 100%;
  border-radius: 0.6rem;
  padding: 0.45rem 0.55rem;
  font-size: 0.82rem;
}

.cart-count {
  position: absolute;
  top: -4px;
  right: -2px;
  width: 20px;
  height: 20px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: #d62828;
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1;
}

.cart-count.is-empty {
  display: none;
}

.categories-panel {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  width: 252px;
  padding: 8.1rem 0.9rem 0.9rem;
  background: linear-gradient(180deg, rgba(38, 41, 54, 0.98) 0%, rgba(25, 28, 39, 0.98) 100%);
  border-right: 1px solid rgba(195, 186, 153, 0.24);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow-y: auto;
  z-index: 130;
  transform: translateX(-104%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.categories-panel::before {
  content: "Navegación";
  display: block;
  margin: 0 0 0.7rem;
  padding: 0 0.2rem;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #c3ba99;
  opacity: 0.9;
}

.products-section {
  width: min(1040px, 100%);
  margin: 0 auto;
}

.about-section {
  width: min(1040px, 100%);
  margin-top: 3.4rem;
  text-align: center;
}

.about-card {
  border: 1px solid rgba(195, 186, 153, 0.26);
  background: linear-gradient(180deg, rgba(38, 41, 54, 0.96) 0%, rgba(25, 28, 39, 0.96) 100%);
  border-radius: 1rem;
  padding: 1.45rem 1.6rem;
  color: #f4e7ca;
  box-shadow: 0 14px 26px rgba(22, 17, 21, 0.26);
  text-align: center;
}

.about-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 1.6rem;
}

.about-team-row {
  display: flex;
  justify-content: center;
  gap: 4.2rem;
}

.about-team-row--single {
  justify-content: center;
}

.about-team-row.is-hidden {
  display: none;
}

.about-member {
  border: none;
  background: transparent;
  border-radius: 0;
  padding: 0;
}

.about-member.is-hidden {
  display: none;
}

.about-avatar {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  margin: 0 auto;
  border: none;
  background: rgba(243, 243, 245, 0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  box-shadow: 0 10px 20px rgba(22, 17, 21, 0.22);
  cursor: pointer;
  padding: 0;
}

.about-avatar:focus-visible {
  outline: 2px solid #be655d;
  outline-offset: 4px;
}

.about-avatar-image {
  width: 100%;
  height: 100%;
  position: absolute;
  object-fit: cover;
  display: block;
}

.about-avatar-placeholder {
  color: #c3ba99;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: none;
}

.about-avatar.is-empty .about-avatar-placeholder {
  display: inline-flex;
}

.about-avatar-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(22, 17, 21, 0.18) 0%, rgba(22, 17, 21, 0.85) 100%);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  opacity: 0;
  transition: opacity 0.22s ease;
}

/* ← Aquí estaba el error de nesting */
.about-avatar-overlay .cart-user-wrap {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
}
.about-avatar:hover .about-avatar-overlay,
.about-avatar:focus-within .about-avatar-overlay {
  opacity: 1;
}

.about-avatar.is-empty .about-avatar-overlay {
  display: none;
}


.about-avatar:hover .about-avatar-overlay,
.about-avatar:focus-within .about-avatar-overlay {
  opacity: 1;
}

.about-avatar.is-empty .about-avatar-overlay {
  display: none;
}

.about-avatar-icon {
  font-size: 1.4rem;
  letter-spacing: 0.04em;
}

.about-avatar-icon-image {
  width: 26px;
  height: 26px;
  display: block;
  filter: brightness(0) invert(1);
}

.about-avatar-icon-code {
  width: 34px;
  height: 34px;
}

.about-avatar-icon-design {
  width: 30px;
  height: 30px;
}

.about-avatar-icon-fallback {
  display: none;
}

.about-avatar-name {
  color: #ffffff;
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.about-member-info {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-6px);
  transition: max-height 0.25s ease, opacity 0.2s ease, transform 0.25s ease;
  margin-top: 0;
  padding: 0 0.8rem;
  color: #e7d9bc;
}

.about-member.is-open .about-member-info {
  max-height: 220px;
  opacity: 1;
  transform: translateY(0);
  margin-top: 0.7rem;
}

.about-member-info h3 {
  margin: 0 0 0.35rem;
  font-family: "BoldF", var(--font-main);
  font-size: 1rem;
  letter-spacing: 0.04em;
  color: #f4e7ca;
}

.about-member-info p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
}

.about-member-info p + p {
  margin-top: 0.38rem;
}

.about-member-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.42rem;
  text-decoration: none;
  color: #be655d;
  font-size: 0.95rem;
  line-height: 1.2;
}

.about-member-social:hover,
.about-member-social:focus-visible {
  color: #d8847c;
  text-decoration: underline;
}

.about-member-social-icon {
  width: 18px;
  height: 18px;
  display: block;
  filter: brightness(0) saturate(100%) invert(48%) sepia(29%) saturate(716%) hue-rotate(319deg) brightness(89%) contrast(90%);
}

.about-member-role {
  font-weight: 700;
  color: #f4e7ca;
}

.about-member-description {
  color: #e7d9bc;
}

.about-title {
  margin: 0 0 0.85rem;
  font-family: "BoldF", var(--font-main);
  font-size: clamp(2rem, 4.5vw, 3rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: transparent;
  line-height: 1;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background-image: linear-gradient(120deg, #be655d 0%, #5c2f2a 45%, #be655d 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  filter: drop-shadow(0 6px 8px rgba(22, 17, 21, 0.22));
  animation: productsTitleGlow 6s ease infinite;
}

.about-title::before,
.about-title::after {
  content: "";
  width: 54px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(190, 101, 93, 0.25), rgba(190, 101, 93, 0.85), rgba(190, 101, 93, 0.25));
}

.about-lead {
  margin-top: 0.5rem;
  color: #c3ba99;
  font-family: "Cinzel", "Times New Roman", serif;
  font-size: clamp(1.2rem, 2.3vw, 1.55rem);
  font-weight: 700;
  letter-spacing: 0.06em;
}

.about-copy {
  margin-top: 0.9rem;
  color: #e7d9bc;
  line-height: 1.02;
  font-size: 1.02rem;
  max-width: 900px;
  margin-inline: auto;
}

.about-copy p {
  margin: 0;
}

.about-copy p + p {
  margin-top: 0rem;
}

.about-lead-alt {
  margin-top: 2.2rem;
}

.about-copy-alt {
  font-family: "Cinzel", "Times New Roman", serif;
  font-size: 0.98rem;
  line-height: 1.62;
  letter-spacing: 0.02em;
}

.about-copy-alt p + p {
  margin-top: 0.45rem;
}

.about-copy + .about-lead {
  margin-top: 2.2rem;
}

.about-copy + .about-closing-lines {
  margin-top: 2.2rem;
}

.privacy-layout {
  width: min(900px, 100%);
  margin: 2rem auto 0;
}

.privacy-title {
  display: flex;
  justify-content: center;
  margin: 0 0 1.3rem;
  text-align: center;
}

.privacy-section {
  background: linear-gradient(160deg, rgba(38, 41, 54, 0.98), rgba(31, 25, 29, 0.96));
  border: 1px solid rgba(190, 101, 93, 0.26);
  border-radius: 1.2rem;
  padding: clamp(1.4rem, 2.7vw, 2.3rem);
  box-shadow: 0 8px 26px rgba(22, 17, 21, 0.2);
}

.privacy-copy {
  margin-top: 0;
  color: #f1e4ca;
  font-size: 1.03rem;
  line-height: 1.58;
  text-align: center;
}

.privacy-copy h3 {
  margin: 1.2rem 0 0.45rem;
  font-family: "Cinzel", "Times New Roman", serif;
  letter-spacing: 0.03em;
  color: #e7bda3;
}

.privacy-copy p + p {
  margin-top: 0.52rem;
}

.privacy-copy a {
  color: #ffd1c3;
}

.about-closing-lines {
  margin-top: 2.2rem;
}

.about-closing-lines .about-lead {
  margin: 0;
  line-height: 1.02;
}

.about-closing-lines .about-lead + .about-lead {
  margin-top: 0rem;
}

.about-dark-brand {
  display: inline-block;
  color: #d8c8a1;
  text-shadow: 0 0 0 rgba(0, 0, 0, 0.45);
  animation: aboutDarkPulse 2.6s ease-in-out infinite;
}

.about-closing-emphasis {
  color: #ff1f3d;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

@keyframes aboutDarkPulse {
  0%,
  100% {
    color: #d8c8a1;
    text-shadow: 0 0 0 rgba(0, 0, 0, 0.45);
    opacity: 1;
  }

  45% {
    color: #7d6750;
    text-shadow: 0 0 8px rgba(0, 0, 0, 0.5), 0 0 16px rgba(0, 0, 0, 0.36);
    opacity: 0.9;
  }

  58% {
    color: #5c4a3a;
    text-shadow: 0 0 2px rgba(0, 0, 0, 0.65), 0 0 6px rgba(0, 0, 0, 0.48);
    opacity: 0.82;
  }
}

.home-intro {
  width: min(1040px, 100%);
  margin: 0 auto 1.1rem;
  padding: 0;
}

.home-community {
  width: min(1040px, 100%);
  margin: 1.2rem auto 1.25rem;
  padding: 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(195, 186, 153, 0.24);
  background: linear-gradient(160deg, rgba(33, 37, 51, 0.96), rgba(17, 19, 27, 0.98));
  box-shadow: 0 14px 28px rgba(19, 15, 19, 0.28);
}

.home-community-head {
  text-align: center;
  margin-bottom: 0.9rem;
}

.home-community-kicker {
  margin: 0;
  color: #c3ba99;
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
}

.home-community-title {
  margin: 0.28rem 0 0;
  color: #fbe8de;
  font-family: "Cinzel", "Times New Roman", serif;
  font-size: clamp(1.35rem, 2.8vw, 1.95rem);
  letter-spacing: 0.04em;
}

.home-community-copy {
  margin: 0.35rem 0 0;
  color: #d7cba9;
  font-size: 0.84rem;
}

.home-community-status {
  margin: 0 0 0.72rem;
  color: #d9ceb0;
  font-size: 0.82rem;
  text-align: center;
}

.home-community-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.home-community-card {
  margin: 0;
  min-height: 260px;
  border-radius: 0.82rem;
  overflow: hidden;
  border: 1px solid rgba(195, 186, 153, 0.22);
  background: linear-gradient(145deg, rgba(45, 52, 71, 0.88), rgba(22, 25, 36, 0.92));
}

.home-community-empty {
  margin: 0;
  grid-column: 1 / -1;
  border: 1px dashed rgba(195, 186, 153, 0.35);
  border-radius: 0.82rem;
  padding: 1rem;
  color: #c7b997;
  text-align: center;
  font-size: 0.88rem;
}

.home-community-card img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease, filter 0.35s ease;
}

.home-community-card:hover img {
  transform: scale(1.035);
  filter: saturate(1.08);
}

.home-community-card figcaption {
  padding: 0.52rem 0.58rem 0.62rem;
  color: #e3d7b6;
  font-size: 0.78rem;
  line-height: 1.25;
  border-top: 1px solid rgba(195, 186, 153, 0.18);
  background: linear-gradient(180deg, rgba(24, 27, 37, 0.82), rgba(17, 19, 27, 0.92));
}

.home-top-buyers {
  width: min(1040px, 100%);
  margin: 1.35rem auto 1.25rem;
  border-radius: 1rem;
  border: 1px solid rgba(195, 186, 153, 0.24);
  background: linear-gradient(165deg, rgba(32, 35, 48, 0.96), rgba(20, 22, 31, 0.98));
  box-shadow: 0 12px 30px rgba(22, 17, 21, 0.28);
  padding: 1rem 1rem 1.1rem;
}

.home-top-buyers-head {
  text-align: center;
  margin-bottom: 0.85rem;
}

.home-top-buyers-kicker {
  margin: 0;
  color: #c3ba99;
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
}

.home-top-buyers-title {
  margin: 0.28rem 0 0;
  color: #fbe8de;
  font-family: "Cinzel", "Times New Roman", serif;
  font-size: clamp(1.5rem, 3.2vw, 2.15rem);
  letter-spacing: 0.04em;
}

.home-top-buyers-status {
  margin: 0.32rem 0 0;
  color: #d7cba9;
  font-size: 0.82rem;
}

.home-top-buyers-list {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 0.75rem;
}

.home-top-buyers-empty {
  margin: 0;
  width: 100%;
  border: 1px dashed rgba(195, 186, 153, 0.28);
  border-radius: 0.85rem;
  padding: 0.85rem;
  color: #c3ba99;
  text-align: center;
  font-size: 0.88rem;
}

.top-buyer-card {
  position: relative;
  width: min(31%, 290px);
  border-radius: 0.9rem;
  border: 1px solid rgba(195, 186, 153, 0.26);
  background: linear-gradient(180deg, rgba(243, 243, 245, 0.04), rgba(243, 243, 245, 0.02));
  padding: 0.78rem 0.72rem 0.8rem;
  text-align: center;
  overflow: hidden;
}

.top-buyer-card.is-top-1 {
  width: min(36%, 345px);
  transform: translateY(-8px) scale(1.04);
  border: 1px solid transparent;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28), 0 0 18px rgba(246, 200, 96, 0.14);
}

.top-buyer-card.is-top-1::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 2px;
  border-radius: inherit;
  background: conic-gradient(from var(--topBuyerGoldAngle, 0deg), #fce6a6 0%, #ffce66 20%, #ffeeb7 42%, #c89336 58%, #ffdd86 76%, #fce6a6 100%);
  animation: topBuyerGoldSpin 5.8s linear infinite;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  z-index: 0;
}

.top-buyer-card.is-top-1::after {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: calc(0.9rem - 2px);
  background: linear-gradient(180deg, rgb(32, 35, 48), rgb(20, 22, 31));
  z-index: 0;
}

.top-buyer-card.is-top-1 > * {
  position: relative;
  z-index: 1;
}

.top-buyer-card.is-loading {
  opacity: 0.62;
}

.top-buyer-card.is-unclaimed {
  opacity: 0.5;
  filter: grayscale(0.6);
}

.top-buyer-unclaimed-icon {
  color: #6b6b7b;
  font-size: 2rem;
  font-weight: 700;
}

.top-buyer-unclaimed-label {
  font-style: italic;
  color: #7a7a8a !important;
}

.top-buyer-rank {
  margin: 0;
  color: #fbe8de;
  font-weight: 800;
  letter-spacing: 0.08em;
  font-size: 0.88rem;
}

.top-buyer-card.is-top-1 .top-buyer-rank {
  color: #ffeab6;
  font-size: 1rem;
}

.top-buyer-photo-wrap {
  width: 78px;
  height: 78px;
  margin: 0.52rem auto 0;
  border-radius: 50%;
  border: 2px solid rgba(195, 186, 153, 0.54);
  background: rgba(20, 22, 31, 0.7);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.top-buyer-card.is-top-1 .top-buyer-photo-wrap {
  width: 98px;
  height: 98px;
  border-color: rgba(255, 214, 124, 0.86);
  box-shadow: 0 0 0 5px rgba(255, 214, 124, 0.14);
}

.top-buyer-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.top-buyer-photo-initials {
  color: #fbe8de;
  font-size: 1.55rem;
  font-weight: 800;
}

.top-buyer-card.is-top-1 .top-buyer-photo-initials {
  color: #ffe7aa;
  font-size: 1.85rem;
}

.top-buyer-name {
  margin: 0.55rem 0 0;
  color: #f4e7ca;
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.2;
}

.top-buyer-card.is-top-1 .top-buyer-name {
  font-size: 1.08rem;
  color: #ffeec5;
}

.top-buyer-fullname {
  margin: 0.2rem 0 0;
  color: #c3ba99;
  font-size: 0.78rem;
  line-height: 1.25;
}

.top-buyer-total {
  margin: 0.34rem 0 0;
  color: #f7db94;
  font-size: 0.9rem;
  font-weight: 800;
}

.top-buyer-card.is-top-1 .top-buyer-total {
  font-size: 1.03rem;
  color: #ffd875;
}

@property --topBuyerGoldAngle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

@keyframes topBuyerGoldSpin {
  0% {
    --topBuyerGoldAngle: 0deg;
  }

  100% {
    --topBuyerGoldAngle: 360deg;
  }
}

.home-showcase {
  position: relative;
  border-radius: 0.95rem;
  overflow: hidden;
  min-height: 480px;
  border: 1px solid rgba(195, 186, 153, 0.24);
  background: linear-gradient(135deg, #2b3140, #171a26);
}

.showcase-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s ease;
}

.showcase-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  cursor: pointer;
  transition: opacity 0.45s ease, box-shadow 0.18s, transform 0.18s;
}

.showcase-slide.is-active:hover {
  box-shadow: 0 4px 32px 0 rgba(190,101,93,0.13), 0 1.5px 8px 0 rgba(195,186,153,0.10);
  transform: scale(1.012);
}

.showcase-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: none;
  animation: showcasePanVertical 32s ease-in-out infinite alternate;
}

.showcase-slide.has-image .showcase-image {
  display: block;
}

.showcase-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1rem 3rem 2.35rem;
  background: linear-gradient(180deg, rgba(22, 17, 21, 0.02) 0%, rgba(22, 17, 21, 0.86) 78%);
  color: #fef4de;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.24s ease, transform 0.24s ease, visibility 0.24s ease;
  pointer-events: none;
}

.showcase-slide.is-active .showcase-overlay {
  cursor: pointer;
  pointer-events: none;
}

.home-showcase:hover .showcase-overlay,
.home-showcase:focus-within .showcase-overlay {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.showcase-overlay h3 {
  margin: 0;
  font-size: 1.02rem;
}

.showcase-overlay p {
  margin: 0.28rem 0 0;
  font-size: 0.84rem;
  line-height: 1.4;
}

.showcase-dots {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0.72rem;
  display: inline-flex;
  gap: 0.35rem;
  z-index: 4;
}

.showcase-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  border: none;
  background: rgba(243, 243, 245, 0.48);
  cursor: pointer;
  padding: 0;
}

.showcase-dot.is-active {
  background: #ffffff;
}

.showcase-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  border: none;
  background: transparent;
  color: #ffffff;
  font-size: 2.3rem;
  line-height: 1;
  padding: 0.15rem;
  cursor: pointer;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.65);
  opacity: 0.9;
  transition: opacity 0.2s ease;
}

.showcase-arrow:hover {
  opacity: 1;
}

.showcase-arrow-prev {
  left: 0.45rem;
}

.showcase-arrow-next {
  right: 0.45rem;
}

@keyframes showcasePanVertical {
  0% {
    object-position: center top;
  }
  100% {
    object-position: center bottom;
  }
}
.home-highlights {
  width: min(1040px, 100%);
  margin: 0 auto 1.1rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.highlight-card {
  border: 1px solid rgba(195, 186, 153, 0.25);
  background: rgba(22, 17, 21, 0.05);
  border-radius: 0.85rem;
  padding: 0.85rem 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.highlight-card h3 {
  margin: 0;
  color: #161115;
  font-size: 0.95rem;
}

.highlight-card p {
  margin: 0;
  color: rgba(22, 17, 21, 0.84);
  font-size: 0.9rem;
  line-height: 1.45;
}

.products-header {
  margin:3.4rem 0 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  align-items: center;
  text-align: center;
}

.products-header h2 {
  margin: 0;
  color: transparent;
  font-family: "BoldF", var(--font-main);
  font-size: clamp(2rem, 5vw, 3.3rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background-image: linear-gradient(120deg, #be655d 0%, #5c2f2a 45%, #be655d 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  filter: drop-shadow(0 6px 8px rgba(22, 17, 21, 0.22));
  animation: productsTitleGlow 6s ease infinite;
}

.products-header h2::before,
.products-header h2::after {
  content: "";
  width: 54px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(190, 101, 93, 0.25), rgba(190, 101, 93, 0.85), rgba(190, 101, 93, 0.25));
}

@keyframes productsTitleGlow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.products-header p {
  margin: 0;
  color: rgba(22, 17, 21, 0.72);
  font-size: 0.92rem;
}

.products-subtitle {
  margin-top: 0.3rem;
  font-family: "Cinzel", "Times New Roman", serif;
  font-size: 0.94rem;
  letter-spacing: 0.08em;
  font-weight: 500;
  color: rgba(22, 17, 21, 0.75);
}

.catalog-filters {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.catalog-filter-btn {
  border: none;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: rgba(22, 17, 21, 0.72);
  border-radius: 0;
  padding: 0.2rem 0.15rem 0.38rem;
  font: inherit;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.catalog-filter-btn:hover {
  color: #161115;
  border-bottom-color: rgba(190, 101, 93, 0.45);
}

.catalog-filter-btn.active {
  color: #0d0b0c;
  border-bottom-color: #be655d;
}

body.admin-mode .highlight-card,
body.user-dark-mode .highlight-card {
  background: rgba(243, 243, 245, 0.05);
  border-color: rgba(195, 186, 153, 0.32);
}

body.admin-mode .highlight-card h3,
body.user-dark-mode .highlight-card h3 {
  color: #f4e7ca;
}

body.admin-mode .highlight-card p,
body.user-dark-mode .highlight-card p {
  color: #e7d9bc;
}

body.admin-mode .products-header p,
body.admin-mode .products-subtitle,
body.user-dark-mode .products-header p,
body.user-dark-mode .products-subtitle {
  color: #d7cba9;
}

body.admin-mode .catalog-filter-btn,
body.user-dark-mode .catalog-filter-btn {
  color: rgba(231, 217, 188, 0.82);
}

body.admin-mode .catalog-filter-btn:hover,
body.user-dark-mode .catalog-filter-btn:hover {
  color: #f4e7ca;
  border-bottom-color: rgba(190, 101, 93, 0.68);
}

body.admin-mode .catalog-filter-btn.active,
body.user-dark-mode .catalog-filter-btn.active {
  color: #fbe8de;
  border-bottom-color: #be655d;
}

body.menu-open .categories-panel {
  transform: translateX(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.categories-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.category-btn {
  width: 100%;
  border: 1px solid rgba(195, 186, 153, 0.18);
  border-radius: 0.7rem;
  background: rgba(243, 243, 245, 0.04);
  color: #f4e7ca;
  padding: 0.65rem 0.78rem;
  cursor: pointer;
  text-align: left;
  font: inherit;
  font-weight: 600;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.category-btn:hover {
  background: rgba(243, 243, 245, 0.1);
  border-color: rgba(190, 101, 93, 0.6);
  transform: translateX(4px);
}

.category-btn:focus-visible {
  outline: 2px solid #be655d;
  outline-offset: 2px;
}

.category-btn.active {
  background: linear-gradient(90deg, #c3ba99, #be655d);
  color: #161115;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(190, 101, 93, 0.3);
  transform: translateX(0);
}

h2 {
  margin: 0 0 1rem;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(300px, 1fr));
  justify-content: center;
  gap: 1rem;
}

.catalog-cta-wrap {
  margin-top: 1.15rem;
  display: flex;
  justify-content: center;
}

.catalog-cta-link {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 210px;
  padding: 0.76rem 1.18rem;
  border-radius: 999px;
  border: 1px solid rgba(22, 17, 21, 0.58);
  background: linear-gradient(130deg, #1f2230 0%, #262936 55%, #3d2a31 100%);
  color: #f7e8cc;
  font-weight: 700;
  letter-spacing: 0.04em;
  box-shadow: 0 12px 24px rgba(22, 17, 21, 0.24);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, color 0.2s ease, filter 0.2s ease;
}

.catalog-cta-link:hover,
.catalog-cta-link:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(190, 101, 93, 0.72);
  color: #ffffff;
  filter: saturate(1.08);
  box-shadow: 0 16px 30px rgba(22, 17, 21, 0.32);
}

.card-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  border: none;
  background: #ffffff00;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.25rem;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-image-placeholder {
  color: var(--card-muted);
  font-size: 0.82rem;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: auto;
  height: auto;
  border: none;
  border-radius: 0;
  background: transparent;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  line-height: 1;
  font-size: 1.7rem;
  font-weight: 700;
  padding: 0;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.55);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 160ms ease, visibility 160ms ease, background 160ms ease, border-color 160ms ease;
}

.carousel-btn.is-prev {
  left: 0.45rem;
}

.carousel-btn.is-next {
  right: 0.45rem;
}

.carousel-btn:hover,
.carousel-btn:focus-visible {
  color: #f4e7ca;
}

@media (hover: hover) and (pointer: fine) {
  .card-image.has-carousel:hover .carousel-btn,
  .card-image.has-carousel:focus-within .carousel-btn {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
}

@media (hover: none), (pointer: coarse) {
  .card-image.has-carousel .carousel-btn {
    display: none;
  }
}

.carousel-dots {
  position: absolute;
  left: 50%;
  bottom: 0.45rem;
  transform: translateX(-50%);
  display: inline-flex;
  gap: 0.3rem;
  z-index: 2;
}

.carousel-dot {
  width: 0.38rem;
  height: 0.38rem;
  border-radius: 999px;
  background: rgba(243, 243, 245, 0.5);
}

.carousel-dot.is-active {
  background: #f4e7ca;
}

.product-detail-shell {
  min-height: 520px;
}

.product-detail-card {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 1.1rem;
  border: 1px solid var(--card-border);
  background: linear-gradient(180deg, var(--card-bg) 0%, #191c27 100%);
  padding: 1rem;
  align-items: start;
}

.product-detail-media {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 0.7rem;
}

.product-detail-thumbs {
  display: grid;
  grid-auto-rows: 64px;
  gap: 0.45rem;
  align-content: start;
}

.product-detail-thumb {
  border: 1px solid var(--card-border);
  background: rgba(255, 255, 255, 0.03);
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  position: relative;
}

.product-detail-thumb.is-active {
  border-color: rgba(190, 101, 93, 0.75);
}

.product-detail-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-detail-thumb-remove {
  position: absolute;
  top: 0.15rem;
  right: 0.2rem;
  width: 1rem;
  height: 1rem;
  line-height: 1rem;
  text-align: center;
  font-size: 0.88rem;
  color: #fff;
  background: rgba(18, 18, 22, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.product-detail-main {
  min-height: 420px;
  border: 1px solid var(--card-border);
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.product-detail-main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-detail-main-upload {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  z-index: 2;
  border: 1px solid var(--card-border);
  background: rgba(18, 18, 22, 0.72);
  color: #fff;
  padding: 0.35rem 0.55rem;
  font-size: 0.75rem;
  cursor: pointer;
}

.product-detail-main-upload:hover,
.product-detail-main-upload:focus-visible {
  border-color: rgba(190, 101, 93, 0.72);
  color: #f4e7ca;
}

.product-detail-info {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.product-detail-category {
  margin: 0;
  color: var(--card-muted);
  font-size: 0.84rem;
}

.product-detail-title {
  margin: 0;
  font-size: 1.55rem;
}

.product-detail-price {
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  font-size: 2rem;
  font-weight: 700;
}

.product-detail-price-old {
  font-size: 1.05rem;
  color: var(--card-muted);
  text-decoration: line-through;
  font-weight: 500;
}

.product-detail-discount {
  margin: 0;
  color: #6dcf88;
  font-weight: 600;
}

.product-detail-stock {
  margin: 0;
}

.product-detail-sizes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.product-detail-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.product-detail-actions .btn {
  justify-content: center;
}

.product-detail-actions a.btn {
  text-decoration: none;
}

.product-detail-description {
  margin-top: 0.35rem;
  border-top: 1px solid var(--card-border);
  padding-top: 0.65rem;
}

.product-detail-description h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}

.product-detail-description p {
  margin: 0;
  color: var(--card-muted);
  line-height: 1.45;
}

.product-detail-admin {
  margin-top: 0.8rem;
  border-top: 1px solid var(--card-border);
  padding-top: 0.8rem;
}

.product-detail-admin h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}

.admin-inline-quick .admin-quick-copy {
  margin: 0 0 0.55rem;
  color: var(--card-muted);
  font-size: 0.84rem;
  line-height: 1.35;
}

@media (max-width: 980px) {
  .product-detail-card {
    grid-template-columns: 1fr;
  }

  .product-detail-main {
    min-height: 320px;
  }
}

@media (max-width: 640px) {
  .product-detail-media {
    grid-template-columns: 1fr;
  }

  .product-detail-thumbs {
    grid-auto-flow: column;
    grid-auto-columns: 64px;
    grid-auto-rows: unset;
    overflow-x: auto;
    padding-bottom: 0.2rem;
  }

  .product-detail-main {
    min-height: 260px;
  }

  .product-detail-actions {
    grid-template-columns: 1fr;
  }
}

.card {
  background: linear-gradient(180deg, var(--card-bg) 0%, #191c27 100%);
  border: 1px solid var(--card-border);
  border-radius: 0;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  color: var(--card-text);
}

.product-card {
  cursor: pointer;
  gap: 0.65rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-content {
  display: flex;
  flex-direction: column;
  gap: 0.32rem;
}

.product-category {
  margin: 0;
  color: var(--card-muted);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sizes-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.size-btn {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--card-text);
  border-radius: 999px;
  padding: 0.3rem 0.62rem;
  font: inherit;
  font-size: 0.75rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.size-btn:hover {
  border-color: var(--card-accent);
}

.size-btn.active {
  background: var(--primary);
  color: #1d1f27;
  border-color: transparent;
}

.product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(22, 17, 21, 0.22);
}

body.admin-mode .product-card {
  cursor: default;
}

body.admin-mode .product-card:hover {
  transform: none;
  box-shadow: none;
}

body.admin-mode .card {
  border: 1px dashed rgba(195, 186, 153, 0.38);
}

.admin-inline-card {
  gap: 0.7rem;
}

.admin-inline-card h3 {
  color: #fdefd4;
}

.admin-inline-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.admin-inline-new {
  border: 1px solid rgba(243, 243, 245, 0.28);
}

.admin-inline-new .admin-item-actions {
  grid-template-columns: 1fr;
}

.card h3 {
  margin: 0;
  font-size: 1rem;
  color: var(--card-title);
}

.muted {
  color: var(--card-muted);
  font-size: 0.9rem;
}

.price {
  font-weight: bold;
  color: var(--card-title);
}

.price-wrap {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.price-old {
  color: var(--card-muted);
  text-decoration: line-through;
  font-size: 0.9rem;
}

.discount-badge {
  background: rgba(190, 101, 93, 0.24);
  color: #ffd7d2;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
}

.discount-countdown {
  margin: 0.35rem 0 0;
  font-size: 0.78rem;
  color: #f0c040;
  font-weight: 600;
  letter-spacing: 0.01em;
}

/* === Toast: Producto agregado al carrito === */
.cart-added-toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  background: #1e1e2a;
  color: #e8e8f0;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 0.75rem 1.4rem;
  font-size: 0.92rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.45);
  z-index: 9999;
  transition: transform 0.32s cubic-bezier(0.34,1.56,0.64,1), opacity 0.32s ease;
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
}

.cart-added-toast.is-visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.cart-added-toast-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  background: #3ecf8e;
  color: #0e0e14;
  border-radius: 50%;
  font-size: 0.85rem;
  font-weight: 800;
  flex-shrink: 0;
}

.stock-info {
  color: var(--card-muted);
  font-size: 0.86rem;
}

.stock-low {
  color: var(--card-accent);
  font-size: 0.86rem;
  font-weight: 700;
}

.product-meta {
  position: relative;
  min-height: 1.2rem;
  margin-top: 0.1rem;
}

.product-meta-item {
  display: block;
  line-height: 1.2rem;
}

.product-meta.is-rotating .product-meta-item {
  position: absolute;
  inset: 0;
  opacity: 0;
  animation: productMetaFade 6s infinite;
}

.product-meta.is-rotating .product-meta-item:nth-child(2) {
  animation-delay: 3s;
}

@keyframes productMetaFade {
  0%,
  8% {
    opacity: 0;
  }

  16%,
  42% {
    opacity: 1;
  }

  50%,
  100% {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .product-meta.is-rotating .product-meta-item {
    animation: none;
    position: static;
    opacity: 1;
  }
}

.card-actions-row {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-top: auto;
}

.card-actions-row .btn {
  width: 100%;
}

.btn {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.6rem 0.8rem;
  cursor: pointer;
  font-weight: 500;
  font-family: "Nexa", "Inter", "Helvetica Neue", Arial, sans-serif;
}

.btn.primary {
  background: var(--primary);
  color: #1d1f27;
}

.btn.primary:hover {
  background: var(--primary-hover);
}

.btn.secondary {
  background: transparent;
  color: var(--text);
}

.btn.outline {
  background: transparent;
  color: var(--text);
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.cart-panel {
  background: linear-gradient(180deg, rgba(38, 41, 54, 0.98) 0%, rgba(25, 28, 39, 0.98) 100%);
  border: 1px solid rgba(195, 186, 153, 0.24);
  border-radius: 1rem;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 1.1rem;
  position: fixed;
  top: 8.4rem;
  right: 3.6rem;
  width: min(360px, calc(100vw - 2.4rem));
  max-height: calc(100vh - 6rem);
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 200
}

.cart-panel h2 {
  margin: 0 0 0.9rem;
  color: var(--card-title);
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

body.cart-open .cart-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.cart-items {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.cart-item {
  border: 1px solid rgba(195, 186, 153, 0.16);
  background: rgba(243, 243, 245, 0.03);
  border-radius: 0.8rem;
  padding: 0.7rem 0.72rem;
}

.cart-item-top {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  align-items: baseline;
}

.cart-item-top strong {
  color: var(--card-title);
}

.cart-item-top span {
  color: var(--primary);
  font-weight: 700;
}

.cart-actions {
  margin-top: 0.4rem;
}

.remove {
  border: 1px solid rgba(195, 186, 153, 0.28);
  background: rgba(243, 243, 245, 0.02);
  color: var(--card-text);
  border-radius: 999px;
  cursor: pointer;
  padding: 0.3rem 0.64rem;
  font-size: 0.8rem;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.remove:hover {
  background: rgba(190, 101, 93, 0.18);
  border-color: rgba(190, 101, 93, 0.55);
}

.empty {
  color: var(--muted);
  font-size: 0.95rem;
  border: 1px dashed rgba(195, 186, 153, 0.24);
  border-radius: 0.8rem;
  padding: 0.72rem;
  text-align: center;
}

.cart-footer {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  border-top: 1px solid rgba(195, 186, 153, 0.22);
  padding-top: 0.85rem;
}

.cart-footer strong {
  background: rgba(190, 101, 93, 0.16);
  color: #fbe8de;
  border: 1px solid rgba(190, 101, 93, 0.36);
  border-radius: 0.75rem;
  padding: 0.55rem 0.65rem;
}

.coupon-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.coupon-label {
  color: #d9ceb2;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.coupon-row {
  display: flex;
  gap: 0.45rem;
}

.coupon-input {
  flex: 1;
  min-width: 0;
  border: 1px solid rgba(195, 186, 153, 0.32);
  background: rgba(243, 243, 245, 0.04);
  color: #f4e7ca;
  border-radius: 0.65rem;
  padding: 0.5rem 0.62rem;
  outline: none;
}

.coupon-input:focus {
  border-color: rgba(190, 101, 93, 0.65);
  box-shadow: 0 0 0 2px rgba(190, 101, 93, 0.22);
}

.coupon-feedback {
  margin: 0;
  min-height: 1.1rem;
  color: #c3ba99;
  font-size: 0.8rem;
}

.coupon-feedback.is-error {
  color: #ffb4ac;
}

.coupon-discount {
  margin: 0;
  color: #d7cba9;
  font-size: 0.86rem;
}

.footer {
  margin-top: 1.3rem;
  padding: 1.3rem 0 1.5rem;
  color: var(--muted);
  background: linear-gradient(180deg, rgba(38, 41, 54, 0.98) 0%, rgba(25, 28, 39, 0.98) 100%);
  border-top: 1px solid rgba(195, 186, 153, 0.24);
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top center, rgba(190, 101, 93, 0.16) 0%, rgba(190, 101, 93, 0) 58%);
  pointer-events: none;
}

.footer-layout {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  align-items: start;
  position: relative;
  z-index: 1;
}

.footer-block {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0.2rem 1rem;
  box-shadow: none;
  transition: none;
}

.footer-block:not(:last-child) {
  border-right: 1px solid rgba(195, 186, 153, 0.26);
}

.footer-block:first-child {
  padding-left: 0;
}

.footer-block:last-child {
  padding-right: 0;
}

.footer-block h3 {
  margin: 0 0 0.45rem;
  color: var(--card-title);
  font-size: 0.95rem;
}

.footer-block p {
  margin: 0;
  color: var(--card-text);
  font-size: 0.86rem;
  line-height: 1.5;
}

.footer-block p + p {
  margin-top: 0.35rem;
}

.footer-block a {
  color: #c3ba99;
  text-decoration: none;
}

.footer-block a:hover {
  text-decoration: underline;
}

.footer-bottom {
  margin-top: 0.9rem;
  padding-top: 0.8rem;
  border-top: 1px solid rgba(195, 186, 153, 0.2);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
  position: relative;
  z-index: 1;
}

.footer-bottom p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.footer-admin-trigger {
  border: 1px solid rgba(195, 186, 153, 0.32);
  background: rgba(243, 243, 245, 0.05);
  color: #c3ba99;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.92;
  cursor: pointer;
  padding: 0.36rem 0.62rem;
  border-radius: 999px;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.footer-admin-trigger:hover,
.footer-admin-trigger:focus-visible {
  opacity: 1;
  color: #f4e7ca;
  border-color: rgba(190, 101, 93, 0.58);
  background: rgba(190, 101, 93, 0.18);
}

body.admin-mode .footer-admin-trigger,
body.user-dark-mode .footer-admin-trigger {
  color: #c3ba99;
  opacity: 1;
  font-weight: 700;
}

.user-theme-trigger {
  margin-right: 0.45rem;
}

body.transfer-modal-open {
  overflow: hidden;
}

.transfer-modal {
  position: fixed;
  inset: 0;
  z-index: 160;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.transfer-modal[hidden] {
  display: none;
}

.transfer-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 6, 8, 0.72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.transfer-modal-card {
  position: relative;
  width: min(480px, 100%);
  border: 1px solid rgba(195, 186, 153, 0.3);
  border-radius: 1rem;
  background: linear-gradient(180deg, rgba(38, 41, 54, 0.98) 0%, rgba(25, 28, 39, 0.98) 100%);
  color: #f4e7ca;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  padding: 1.2rem 1rem 1rem;
}

.transfer-modal-title {
  margin: 0;
  font-size: 1.35rem;
  letter-spacing: 0.04em;
}

.transfer-modal-text {
  margin: 0.35rem 0 0;
  color: #d7cba9;
  font-size: 0.9rem;
  line-height: 1.45;
}

.transfer-modal-summary {
  margin-top: 0.85rem;
  border: 1px solid rgba(195, 186, 153, 0.22);
  border-radius: 0.75rem;
  padding: 0.62rem 0.72rem;
  background: rgba(243, 243, 245, 0.03);
}

.transfer-modal-summary p {
  margin: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #d7cba9;
  font-size: 0.86rem;
}

.transfer-modal-summary p + p {
  margin-top: 0.34rem;
}

.transfer-modal-summary strong {
  color: #f4e7ca;
}

.transfer-modal-total strong {
  color: #fbe8de;
  font-size: 0.98rem;
}

.transfer-modal-actions {
  margin-top: 0.95rem;
  display: flex;
  gap: 0.56rem;
}

.transfer-customer-form {
  margin-top: 0.75rem;
  display: grid;
  gap: 0.5rem;
}

.transfer-customer-notes {
  resize: vertical;
  min-height: 76px;
}

.transfer-customer-summary {
  margin-top: 0.2rem;
}

.transfer-modal-actions .btn {
  flex: 1;
}

.transfer-modal-close {
  position: absolute;
  top: 0.4rem;
  right: 0.45rem;
  border: none;
  background: transparent;
  color: #c3ba99;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.2rem;
}

.transfer-modal-close:hover {
  color: #f4e7ca;
}

@media (max-width: 900px) {
  .header-content {
    width: min(1100px, 95%);
    padding: 0 0rem;
  }

  .categories-panel {
    width: min(278px, calc(100vw - 2rem));
    padding-top: 7.8rem;
  }

  .products-section {
    width: 100%;
  }

  .home-highlights {
    grid-template-columns: 1fr;
  }

  .home-top-buyers-list {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 0.75rem;
  }

    .top-buyer-card {
      width: min(100%, 360px);
      transform: none;
    }
    .top-buyer-card.is-top-1 {
      width: 100%;
      max-width: 100%;
      transform: none;
      margin-bottom: 1rem;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      text-align: center;
      padding: 1.2rem 0.5rem 1.3rem 0.5rem;
      box-sizing: border-box;
    }

    .top-buyer-card.is-top-1 .top-buyer-photo-wrap {
      width: 88px;
      height: 88px;
      margin: 0.5rem auto 0.4rem auto;
    }

    .top-buyer-card.is-top-1 .top-buyer-name {
      font-size: 1.05rem;
      margin-top: 0.5rem;
    }

    .top-buyer-card.is-top-1 .top-buyer-total {
      font-size: 0.98rem;
      margin-top: 0.3rem;
    }

    .top-buyer-card.is-top-1 .top-buyer-rank {
      font-size: 0.98rem;
      margin-top: 0.15rem;
    }
    .top-buyer-card.is-top-1 {
      padding: 0.8rem 0.3rem 1rem 0.3rem;
    }

  .home-showcase {
    min-height: 360px;
  }

    .home-community-grid {
      grid-template-columns: 1fr;
    }

  .footer-layout {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .footer-block {
    padding: 0;
  }

  .footer-block:not(:last-child) {
    border-right: none;
    border-bottom: 1px solid rgba(195, 186, 153, 0.22);
    padding-bottom: 0.8rem;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 1023px) {
  body.intro-active .site-header::before {
    width: 120vw;
    height: 68svh;
    aspect-ratio: auto;
    top: 52svh;
    background-size: 100% 100%;
    animation: nonagonRotate 120s linear infinite;
  }

  body.intro-active .site-header::after {
    width: 120vw;
    height: 68svh;
    aspect-ratio: auto;
    top: 52svh;
    background-size: 100% 100%;
    animation: nonagonRotate 120s linear infinite, nonagonGhostPulse 2.8s ease-in-out infinite;
  }
}

@media (max-width: 700px) {
  body.menu-open .page-shell::before,
  body.cart-open .page-shell::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(7, 6, 8, 0.52);
    z-index: 115;
  }

  body.menu-open .menu-toggle,
  body.cart-open .cart-toggle {
    z-index: 140;
  }



  body.menu-open .menu-toggle {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .site-header {
    height: 6.2rem;
    margin-top: 0.15rem;
    padding-top: 0.5rem;
  }

  .header-content {
    padding: 3.2rem 0.9rem 0.2rem;
    gap: 0.2rem;
    min-height: 90px;
    overflow: visible;
    margin-top: auto;
  }

  .menu-toggle,
  .cart-toggle {
    width: 40px;
    height: 40px;
    z-index: 20;
    opacity: 1;
    visibility: visible;
  }

  .menu-toggle {
    left: 0.2rem;
    top: 0.55rem;
    transform: none;
  }

  .cart-toggle {
    right: 0.2rem;
    top: 0.55rem;
    transform: none;
  }

  .user-toggle {
      right: 2.4rem;
      top: 0.4rem;
      transform: none;
    }

  .cart-toggle-icon {
    width: 34px;
    height: 34px;
  }

  .intro-title {
    transform: none;
    font-size: clamp(1.6rem, 8.9vw, 2.75rem);
    line-height: 0.98;
    display: block;
    width: 100%;
    max-width: none;
    margin: 0.15rem 0 0.1rem;
    padding-bottom: 0.7rem;
    padding-inline: 0;
    letter-spacing: 0;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    pointer-events: none;
  }

  .intro-title::after {
    max-width: none;
    white-space: nowrap;
    text-wrap: nowrap;
    line-height: 1;
    text-align: center;
    font-size: clamp(0.56rem, 2vw, 0.76rem);
    top: calc(100% + 0.16rem);
  }

  body.intro-active .header-content {
    padding: 0 0.5rem;
  }

  body.intro-active .intro-title {
    font-size: clamp(1.8rem, 9.2vw, 3rem);
    line-height: 0.98;
    text-align: center;
    width: 100%;
    max-width: none;
    margin-top: 0.2rem;
    padding-bottom: 0.72rem;
    padding-inline: 0;
    margin-left: auto;
    margin-right: auto;
  }

  .social-links {
  
    gap: 0.45rem;
    margin-top: 0.8rem;
    position: relative;
    justify-content: center;
    width: 100%;
    z-index: 5;
  }

  .announcement-content {
    font-size: 0.68rem;
  }

  .announcement-text {
    overflow: hidden;
  }

  .announcement-track {
    animation-duration: 34s;
  }

  .announcement-item {
    padding-left: 100vw;
    padding-right: 2rem;
  }

  .admin-panel {
    top: 5.2rem;
    left: 0.75rem;
    width: calc(100vw - 1.5rem);
    max-height: calc(100vh - 5.7rem);
  }

  .admin-grid,
  .admin-item-grid,
  .admin-inline-fields {
    grid-template-columns: 1fr;
  }

  .products-grid {
    grid-template-columns: repeat(auto-fit, minmax(190px, 260px));
    justify-content: center;
    gap: 0.8rem;
  }

  .about-team {
    gap: 1rem;
  }

  .about-team-row {
    gap: 1.5rem;
  }

  .about-avatar {
    width: 150px;
    height: 150px;
  }

  .cart-panel {
    top: 6rem;
    right: 0.75rem;
    width: calc(100vw - 1.5rem);
    max-height: calc(100vh - 5.5rem);
  }

  .footer {
    padding-bottom: 1rem;
  }

  .home-intro,
  .highlight-card,
  .footer-block {
    border-radius: 0.75rem;
  }

  .home-showcase {
    min-height: 320px;
    border-radius: 0.75rem;
  }

  .showcase-arrow {
    font-size: 2rem;
    padding: 0.1rem;
  }

  .home-top-buyers {
    padding: 0.85rem 0.72rem 0.9rem;
  }
}

@media (hover: none), (pointer: coarse) {
  .showcase-overlay {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
}

@media (max-width: 460px) {
  .site-header {
    height: 10.5rem;
    margin-top: 0.44rem;
  }

  .container {
    width: min(1100px, 95%);
  }

  .header-content {
    padding: 2.8rem 0.55rem 0.35rem;
    min-height: 160px;
  }

  .menu-toggle,
  .cart-toggle {
    width: 36px;
    height: 36px;
  }

  .cart-toggle-icon {
    width: 30px;
    height: 30px;
  }

  .intro-title {
    width: 100%;
    max-width: none;
    font-size: clamp(1.45rem, 8.7vw, 2.35rem);
    margin-top: 0.18rem;
    margin-bottom: 0.06rem;
    padding-bottom: 0.62rem;
    padding-inline: 0;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

  .intro-title::after {
    max-width: none;
    font-size: clamp(0.5rem, 1.95vw, 0.62rem);
  }

  body.intro-active .header-content {
    padding: 0 0.5rem;
  }

  body.intro-active .intro-title {
    font-size: clamp(1.6rem, 9vw, 2.5rem);
    letter-spacing: 0;
    width: 100%;
    max-width: none;
    margin-top: 0.15rem;
    padding-bottom: 0.62rem;
    padding-inline: 0;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

  .social-links {
    margin-top: 0.85rem;
    justify-content: center;
    width: 100%;
  }

  .categories-panel {
    width: calc(100vw - 1rem);
    padding-top: 6.6rem;
  }

  .intro-title {
    letter-spacing: 0.02em;
  }

  .footer-admin-trigger {
    font-size: 0.68rem;
  }

  .announcement-content {
    font-size: 0.64rem;
  }

  .announcement-track {
    animation-duration: 30s;
  }

  .announcement-item {
    padding-left: 100vw;
    padding-right: 1.7rem;
  }

  .about-team-row {
    gap: 0.8rem;
  }

  .about-avatar {
    width: 120px;
    height: 120px;
  }

}

@media (prefers-reduced-motion: reduce) {
  .announcement-track {
    animation: none;
    transform: translateX(0);
  }

  .announcement-track span[aria-hidden="true"] {
    display: none;
  }

  .intro-title {
    animation: none;
    color: var(--text);
    background: none;
  }

  .showcase-image {
    animation: none;
    object-position: center center;
  }

  .page-shell,
  .site-header,
  .intro-title,
  .menu-line,
  .social-icon,
  .cart-toggle-icon,
  body {
    transition: none;
  }

}

.transfer-modal-code {
  margin: 0.15rem 0 0.25rem;
  font-size: 0.92rem;
  color: #f4e7ca;
}

.orders-admin-section {
  width: 100%;
  min-width: 0;
}

.support-admin-section {
  width: 100%;
  min-width: 0;
}

.support-admin-layout {
  border: 1px solid rgba(190, 101, 93, 0.28);
  border-radius: 16px;
  background: #1f2230;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.32);
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  min-height: 620px;
  overflow: hidden;
}

.support-admin-sidebar {
  border-right: 1px solid rgba(195, 186, 153, 0.16);
  background: rgba(22, 17, 21, 0.45);
  padding: 0.8rem;
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 0.65rem;
}

.support-admin-toolbar {
  display: grid;
  gap: 0.45rem;
}

.support-admin-list {
  overflow-y: auto;
  display: grid;
  gap: 0.42rem;
  grid-auto-rows: max-content;
  align-content: start;
}

.support-admin-list-item {
  width: 100%;
  border: 1px solid rgba(195, 186, 153, 0.18);
  background: rgba(243, 243, 245, 0.03);
  border-radius: 0.8rem;
  text-align: left;
  padding: 0.52rem;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  gap: 0.52rem;
  align-items: start;
  cursor: pointer;
  transition: border-color 0.18s ease, background-color 0.18s ease, transform 0.18s ease;
}

.support-admin-list-item:hover {
  border-color: rgba(195, 186, 153, 0.38);
  background: rgba(243, 243, 245, 0.06);
  transform: translateY(-1px);
}

.support-admin-list-item.is-active {
  border-color: rgba(190, 101, 93, 0.68);
  background: rgba(190, 101, 93, 0.18);
}

.support-admin-list-avatar-wrap {
  position: relative;
  width: 36px;
  height: 36px;
}

.support-admin-list-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(195, 186, 153, 0.32);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #f4e7ca;
  font-size: 0.7rem;
  font-weight: 700;
  overflow: hidden;
}

.support-admin-list-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.support-admin-online-dot {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid #1f2230;
  background: #747c92;
}

.support-admin-online-dot.is-online {
  background: #4bd37c;
  box-shadow: 0 0 0 3px rgba(75, 211, 124, 0.18);
}

.support-admin-list-main {
  min-width: 0;
}

.support-admin-list-name,
.support-admin-list-id,
.support-admin-list-snippet,
.support-admin-list-tags {
  margin: 0;
}

.support-admin-list-name {
  color: #fbe8de;
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.support-admin-list-id {
  margin-top: 0.08rem;
  color: #b7aa8e;
  font-size: 0.67rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.support-admin-list-snippet {
  margin-top: 0.12rem;
  color: #d7cba9;
  font-size: 0.75rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.support-admin-list-tags {
  margin-top: 0.12rem;
  color: #b7aa8e;
  font-size: 0.68rem;
}

.support-admin-list-meta {
  display: grid;
  justify-items: end;
  align-content: start;
  gap: 0.12rem;
  color: #a9adba;
  font-size: 0.66rem;
}

.support-admin-list-time {
  color: #d0d4e2;
}

.support-admin-list-badge {
  border: 1px solid rgba(195, 186, 153, 0.28);
  border-radius: 999px;
  padding: 0.08rem 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #c3ba99;
}

.support-admin-list-badge.is-pending {
  border-color: rgba(190, 101, 93, 0.56);
  background: rgba(190, 101, 93, 0.22);
  color: #ffe6da;
}

.support-admin-list::-webkit-scrollbar {
  width: 9px;
}

.support-admin-list::-webkit-scrollbar-thumb {
  background: rgba(195, 186, 153, 0.24);
  border-radius: 999px;
}

.support-admin-thread-panel {
  padding: 0.85rem;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 0.65rem;
}

.support-admin-thread-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.7rem;
}

.support-admin-thread-head h3 {
  margin: 0;
  color: #f4e7ca;
}

.support-admin-conversation-meta {
  margin: 0.18rem 0 0;
  color: #c3ba99;
  font-size: 0.8rem;
}

.support-admin-thread-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.support-admin-thread-actions .btn {
  border-radius: 0.62rem;
  padding: 0.38rem 0.56rem;
  font-size: 0.76rem;
}

.support-admin-thread {
  border: 1px solid rgba(195, 186, 153, 0.2);
  border-radius: 0.84rem;
  background: rgba(243, 243, 245, 0.03);
  padding: 0.62rem;
  overflow-y: auto;
  display: grid;
  align-content: start;
  gap: 0.4rem;
}

.support-admin-thread-item {
  display: flex;
  align-items: flex-end;
  gap: 0.4rem;
}

.support-admin-thread-item.is-admin {
  justify-content: flex-end;
}

.support-admin-thread-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(195, 186, 153, 0.3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #f4e7ca;
  font-size: 0.7rem;
  overflow: hidden;
}

.support-admin-thread-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.support-admin-thread-bubble {
  max-width: min(74%, 520px);
  border: 1px solid rgba(195, 186, 153, 0.22);
  border-radius: 0.72rem;
  padding: 0.44rem 0.56rem;
  background: rgba(243, 243, 245, 0.04);
}

.support-admin-thread-item.is-admin .support-admin-thread-avatar {
  order: 2;
}

.support-admin-thread-item.is-admin .support-admin-thread-bubble {
  order: 1;
  background: rgba(130, 177, 255, 0.19);
  border-color: rgba(130, 177, 255, 0.34);
}

.support-admin-thread-item.is-system {
  justify-content: center;
}

.support-admin-thread-item.is-system .support-admin-thread-avatar {
  display: none;
}

.support-admin-thread-item.is-system .support-admin-thread-bubble {
  max-width: 96%;
  background: rgba(195, 186, 153, 0.14);
}

.support-admin-typing-indicator .support-admin-thread-bubble {
  border-style: dashed;
}

.support-admin-thread-meta,
.support-admin-thread-text,
.support-admin-thread-attachment {
  margin: 0;
}

.support-admin-thread-meta {
  color: #c3ba99;
  font-size: 0.66rem;
  text-transform: uppercase;
}

.support-admin-thread-text {
  margin-top: 0.15rem;
  color: #f4e7ca;
  font-size: 0.84rem;
  line-height: 1.42;
}

.support-admin-thread-attachment {
  margin-top: 0.22rem;
}

.support-admin-thread-attachment a {
  color: #ffe3a7;
  font-size: 0.75rem;
  text-decoration: underline;
}

.support-admin-compose {
  display: grid;
  gap: 0.35rem;
}

.support-admin-compose-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.42rem;
}

@media (max-width: 980px) {
  .support-admin-layout {
    grid-template-columns: 1fr;
    min-height: 760px;
  }

  .support-admin-sidebar {
    border-right: 0;
    border-bottom: 1px solid rgba(195, 186, 153, 0.16);
    max-height: 320px;
    overflow: hidden;
  }

  .support-admin-list {
    min-height: 140px;
  }
}

@media (max-width: 640px) {
  .support-admin-compose-row {
    grid-template-columns: 1fr;
  }

  .support-admin-thread-actions {
    justify-content: flex-start;
  }

  .support-admin-thread-actions .btn {
    width: 100%;
  }
}

.orders-admin-panel {
  background: #1f2230;
  border: 1px solid rgba(190, 101, 93, 0.28);
  border-radius: 16px;
  padding: 1rem;
  display: grid;
  gap: 0.85rem;
}

.orders-admin-toolbar {
  display: grid;
  gap: 0.65rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  align-items: end;
}

.orders-admin-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.orders-admin-status {
  margin: 0;
  font-size: 0.92rem;
  color: #c3ba99;
}

.orders-admin-status.is-error {
  color: #f6a5a5;
}

.orders-admin-list {
  display: grid;
  gap: 0.75rem;
}

.order-admin-card {
  border: 1px solid rgba(195, 186, 153, 0.2);
  background: rgba(22, 17, 21, 0.65);
  border-radius: 12px;
  padding: 0.85rem;
  display: grid;
  gap: 0.55rem;
}

.order-admin-header {
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  align-items: flex-start;
}

.order-admin-code,
.order-admin-date {
  margin: 0;
}

.order-admin-code {
  font-size: 0.94rem;
}

.order-admin-date {
  margin-top: 0.18rem;
  font-size: 0.78rem;
  color: #a9adba;
}

.order-admin-status {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.34rem 0.58rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.order-admin-status.is-pending {
  background: rgba(190, 101, 93, 0.23);
  color: #f7d6c8;
}

.order-admin-status.is-paid {
  background: rgba(91, 181, 120, 0.23);
  color: #d9f4dd;
}

.order-admin-status.is-shipped {
  background: rgba(107, 170, 238, 0.25);
  color: #d8ebff;
}

.order-admin-status.is-delivered {
  background: rgba(139, 107, 238, 0.24);
  color: #e5dcff;
}

.order-admin-totals {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  font-size: 0.88rem;
}

.order-admin-items {
  margin: 0;
  padding-left: 1rem;
  display: grid;
  gap: 0.22rem;
  color: #d8dbe4;
}

.order-admin-customer {
  border: 1px solid rgba(195, 186, 153, 0.2);
  border-radius: 10px;
  padding: 0.55rem 0.6rem;
  background: rgba(243, 243, 245, 0.03);
  display: grid;
  gap: 0.2rem;
}

.order-admin-customer p {
  margin: 0;
  color: #d8dbe4;
  font-size: 0.84rem;
  line-height: 1.4;
}

.order-admin-customer span {
  color: #c3ba99;
}

.order-admin-customer strong {
  color: #f4e7ca;
  font-weight: 600;
}

.order-admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

@keyframes titleMalfunction {
  0%,
  12%,
  12.6%,
  28%,
  28.5%,
  47%,
  47.4%,
  69%,
  69.6%,
  100% {
    opacity: 1;
    filter: drop-shadow(0 0 10px rgba(243, 108, 112, 0.35)) drop-shadow(0 0 14px rgba(243, 108, 112, 0.22));
  }

  12.2%,
  28.2%,
  47.2%,
  69.2% {
    opacity: 0.9;
    filter: drop-shadow(0 0 3px rgba(243, 108, 112, 0.14));
  }

  12.4%,
  28.35%,
  47.3%,
  69.35% {
    opacity: 0.56;
    filter: none;
  }
}

body.support-chat-open {
  overflow: hidden;
}

.support-chat-toggle {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 260;
  border: 1px solid rgba(190, 101, 93, 0.74);
  border-radius: 999px;
  background: linear-gradient(120deg, #1f2230, #3b262d);
  color: #fbe8de;
  padding: 0.62rem 1rem;
  font-family: var(--font-main);
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(22, 17, 21, 0.3);
}

.support-chat-badge {
  margin-left: 0.48rem;
  min-width: 1.2rem;
  height: 1.2rem;
  padding: 0 0.3rem;
  border-radius: 999px;
  background: #d62828;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.66rem;
  font-weight: 800;
}

.support-chat-toggle:hover,
.support-chat-toggle:focus-visible {
  border-color: rgba(195, 186, 153, 0.9);
  color: #ffffff;
}

.support-chat-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.support-chat-modal[hidden] {
  display: none;
}

.support-chat-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(7, 6, 8, 0.72);
}

.support-chat-card {
  position: relative;
  width: min(460px, 100%);
  border: 1px solid rgba(195, 186, 153, 0.3);
  border-radius: 1rem;
  background: linear-gradient(180deg, rgba(38, 41, 54, 0.98) 0%, rgba(25, 28, 39, 0.98) 100%);
  color: #f4e7ca;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  padding: 0.95rem;
  z-index: 1;
}

.support-chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.support-chat-header h3 {
  margin: 0;
  font-size: 1.08rem;
  letter-spacing: 0.04em;
}

.support-chat-close {
  border: 0;
  background: transparent;
  color: #c3ba99;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.support-chat-close:hover {
  color: #f4e7ca;
}

.support-chat-subtitle {
  margin: 0.2rem 0 0.58rem;
  font-size: 0.84rem;
  color: #d7cba9;
}

.support-chat-status {
  margin: 0.18rem 0 0.58rem;
  border: 1px solid rgba(246, 165, 165, 0.44);
  border-radius: 0.62rem;
  padding: 0.44rem 0.52rem;
  font-size: 0.8rem;
  color: #ffd0d0;
  background: rgba(145, 45, 45, 0.22);
}

.support-chat-admin-panel {
  margin-bottom: 0.58rem;
  border: 1px solid rgba(195, 186, 153, 0.2);
  border-radius: 0.7rem;
  padding: 0.45rem;
  background: rgba(243, 243, 245, 0.03);
}

.support-chat-admin-controls {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.42rem;
  margin-top: 0.3rem;
}

.support-chat-admin-actions {
  margin-top: 0.42rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.42rem;
}

.support-chat-admin-actions .btn {
  border-radius: 0.62rem;
  padding: 0.44rem 0.52rem;
  font-size: 0.78rem;
}

.support-chat-admin-actions .btn:nth-child(3) {
  grid-column: 1 / -1;
}

.support-chat-admin-actions .btn:nth-child(4) {
  grid-column: 1 / -1;
}

.support-chat-admin-conversations {
  width: 100%;
  border: 1px solid rgba(195, 186, 153, 0.32);
  background: rgba(243, 243, 245, 0.04);
  color: #f4e7ca;
  border-radius: 0.65rem;
  padding: 0.5rem 0.56rem;
  font-family: var(--font-main);
}

.support-chat-messages {
  height: 240px;
  overflow-y: auto;
  border: 1px solid rgba(195, 186, 153, 0.2);
  border-radius: 0.75rem;
  background: linear-gradient(180deg, rgba(243, 243, 245, 0.03), rgba(12, 12, 18, 0.18));
  padding: 0.62rem;
}

.support-chat-message {
  margin: 0;
  display: flex;
  align-items: flex-end;
  gap: 0.44rem;
  max-width: 100%;
}

.support-chat-message + .support-chat-message {
  margin-top: 0.45rem;
}

.support-chat-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(195, 186, 153, 0.35);
  background: rgba(243, 243, 245, 0.08);
  color: #f4e7ca;
  font-size: 0.75rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 34px;
  overflow: hidden;
}

.support-chat-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.support-chat-bubble {
  max-width: min(80%, 320px);
  border-radius: 0.72rem;
  padding: 0.46rem 0.56rem;
  border: 1px solid transparent;
}

.support-chat-meta {
  margin: 0;
  font-size: 0.68rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  opacity: 0.88;
}

.support-chat-body {
  margin: 0.18rem 0 0;
  font-size: 0.84rem;
  line-height: 1.42;
  word-break: break-word;
}

.support-chat-attachment {
  margin-top: 0.32rem;
  display: grid;
  gap: 0.24rem;
}

.support-chat-attachment img {
  width: 100%;
  max-width: 220px;
  border-radius: 0.55rem;
  border: 1px solid rgba(195, 186, 153, 0.28);
  display: block;
}

.support-chat-attachment a {
  color: #ffe6bd;
  font-size: 0.78rem;
  text-decoration: underline;
}

.support-chat-message.is-user .support-chat-attachment a {
  color: #ffd7cf;
}

.support-chat-message.is-system {
  justify-content: center;
}

.support-chat-message.is-system .support-chat-avatar {
  display: none;
}

.support-chat-message.is-system .support-chat-bubble {
  max-width: 96%;
  background: rgba(195, 186, 153, 0.16);
  color: #f4e7ca;
  border-color: rgba(195, 186, 153, 0.3);
}

.support-chat-message.is-admin {
  justify-content: flex-start;
}

.support-chat-message.is-admin .support-chat-bubble {
  background: rgba(130, 177, 255, 0.2);
  color: #dcecff;
  border-color: rgba(130, 177, 255, 0.36);
}

.support-chat-message.is-user {
  justify-content: flex-end;
}

.support-chat-message.is-user .support-chat-avatar {
  order: 2;
}

.support-chat-message.is-user .support-chat-bubble {
  order: 1;
  background: rgba(190, 101, 93, 0.26);
  color: #ffe6da;
  border-color: rgba(255, 183, 174, 0.28);
}

.support-chat-message.is-user .support-chat-meta {
  text-align: right;
}

.support-chat-form {
  margin-top: 0.62rem;
  display: grid;
  gap: 0.4rem;
}

.support-chat-quick-replies {
  margin-top: 0.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.support-chat-quick-reply {
  border: 1px solid rgba(195, 186, 153, 0.34);
  background: rgba(243, 243, 245, 0.05);
  color: #f4e7ca;
  border-radius: 999px;
  font-size: 0.72rem;
  padding: 0.28rem 0.58rem;
  cursor: pointer;
}

.support-chat-quick-reply:hover,
.support-chat-quick-reply:focus-visible {
  border-color: rgba(190, 101, 93, 0.72);
}

.support-chat-label {
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: #c3ba99;
  text-transform: uppercase;
}

.support-chat-input-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.42rem;
}

.support-chat-input {
  border: 1px solid rgba(195, 186, 153, 0.32);
  background: rgba(243, 243, 245, 0.04);
  color: #f4e7ca;
  border-radius: 0.65rem;
  padding: 0.5rem 0.6rem;
  font-family: var(--font-main);
}

.support-chat-input:focus {
  outline: 2px solid rgba(190, 101, 93, 0.56);
  border-color: rgba(190, 101, 93, 0.74);
}

.support-chat-attachment-preview {
  margin: 0;
  font-size: 0.78rem;
  color: #d7cba9;
}

@media (max-width: 700px) {
  .support-chat-toggle {
    right: 0.72rem;
    bottom: 0.72rem;
  }

  .support-chat-card {
    width: min(440px, 100%);
    padding: 0.82rem;
  }

  .support-chat-messages {
    height: 210px;
  }

  .support-chat-input-row {
    grid-template-columns: 1fr;
  }

  .support-chat-admin-controls {
    grid-template-columns: 1fr;
  }

  .support-chat-admin-actions {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .home-community {
    padding: 0.85rem;
  }

  .home-community-grid {
    display: flex;
    flex-direction: row;
    gap: 0.75rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .home-community-card,
  .home-community-card img {
    min-height: 240px;
  }
}

@keyframes punkBaseIdle {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.5;
  }

  50% {
    transform: translate(-50%, -50%) scale(1.012);
    opacity: 0.56;
  }
}