[data-customer-access] {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  min-width: 0;
  flex: 0 0 auto;
  flex-wrap: nowrap;
}

[data-customer-access][hidden] {
  display: none !important;
}

.customer-header-side {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

body.home-page .store-header-actions {
  display: none !important;
}

body.store-page header {
  position: absolute;
  top: auto;
  right: 0;
  left: 0;
  border-color: transparent !important;
  padding: 16px 20px 24px;
  background: transparent !important;
  color: #ffffff;
  box-shadow: none;
}

body.store-page .store-hero {
  position: relative;
  isolation: isolate;
  min-height: clamp(260px, 23vw, 360px);
  overflow: hidden;
  border-bottom: 0;
}

body.store-page .store-hero::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.72) 0%, rgba(2, 6, 23, 0.38) 48%, rgba(2, 6, 23, 0.08) 100%);
}

body.store-page #storeTitle {
  color: #ffffff;
  text-shadow: 0 2px 12px rgba(2, 6, 23, 0.72);
}

body.store-page .platform-back-link {
  background: #ffffff;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

body.store-page .store-logo.logo-has-stories {
  --store-story-ring-color: var(--store-primary, #a855f7);
  border: 3px solid transparent;
  outline: 2px solid color-mix(in srgb, var(--store-story-ring-color) 78%, #ffffff);
  outline-offset: 2px;
  background:
    linear-gradient(var(--store-card-bg, #ffffff), var(--store-card-bg, #ffffff)) padding-box,
    linear-gradient(
      110deg,
      var(--store-story-ring-color) 0%,
      color-mix(in srgb, var(--store-story-ring-color) 72%, #ec4899) 24%,
      rgba(255, 255, 255, 0.98) 43%,
      color-mix(in srgb, var(--store-story-ring-color) 58%, #60a5fa) 55%,
      var(--store-story-ring-color) 74%,
      color-mix(in srgb, var(--store-story-ring-color) 68%, #f0abfc) 100%
    ) border-box;
  background-position: center, 0% 50%;
  background-size: 100% 100%, 260% 260%;
  box-shadow:
    0 0 0 5px color-mix(in srgb, var(--store-story-ring-color) 18%, transparent),
    0 0 14px color-mix(in srgb, var(--store-story-ring-color) 38%, transparent);
  animation: store-story-ring-shine 2.8s ease-in-out infinite alternate;
  will-change: background-position, box-shadow, outline-color;
}

@keyframes store-story-ring-shine {
  0% {
    background-position: center, 0% 50%;
    outline-color: color-mix(in srgb, var(--store-story-ring-color) 80%, #ffffff);
    box-shadow:
      0 0 0 5px color-mix(in srgb, var(--store-story-ring-color) 18%, transparent),
      0 0 12px color-mix(in srgb, var(--store-story-ring-color) 34%, transparent);
  }

  55% {
    box-shadow:
      0 0 0 6px color-mix(in srgb, var(--store-story-ring-color) 24%, transparent),
      0 0 21px color-mix(in srgb, var(--store-story-ring-color) 52%, transparent);
  }

  100% {
    background-position: center, 100% 50%;
    outline-color: color-mix(in srgb, var(--store-story-ring-color) 48%, #ffffff);
    box-shadow:
      0 0 0 6px color-mix(in srgb, var(--store-story-ring-color) 28%, transparent),
      0 0 26px color-mix(in srgb, var(--store-story-ring-color) 62%, transparent);
  }
}

.customer-access-button {
  position: relative;
  display: inline-flex !important;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid #d7dee7 !important;
  border-radius: 12px !important;
  padding: 8px 10px !important;
  background: #ffffff !important;
  color: #162033 !important;
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.08) !important;
  cursor: pointer;
  font: 800 12px/1 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-decoration: none;
  white-space: nowrap;
}

.customer-access-button:hover {
  border-color: #9fb0c3 !important;
  transform: translateY(-1px);
}

.customer-access-button:focus-visible {
  outline: 3px solid rgba(22, 121, 75, 0.25) !important;
  outline-offset: 2px;
}

.customer-access-button svg {
  width: 21px;
  height: 21px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.customer-access-label,
[data-customer-account-label] {
  display: inline-block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

[data-customer-account-label] {
  max-width: 96px;
}

.customer-star {
  display: block;
  width: 21px;
  flex: 0 0 21px;
  color: #d99100;
  font-size: 22px;
  line-height: 1;
  text-align: center;
  transform: translateY(-1px);
}

.customer-cart-button b {
  position: absolute;
  top: -7px;
  right: -6px;
  display: grid;
  min-width: 22px;
  height: 22px;
  place-items: center;
  border: 2px solid #ffffff;
  border-radius: 999px;
  padding: 0 5px;
  background: #16794b;
  color: #ffffff;
  font-size: 11px;
}

body.store-page .store-header-actions {
  width: 100%;
  min-width: 0;
}

body.store-page .store-header-actions > input.search {
  width: calc(16ch + 1cm);
  max-width: 100%;
  height: 44px;
  margin: 0 !important;
  min-width: 0;
  min-height: 44px;
  align-self: center;
  box-sizing: border-box;
  border-color: rgba(255, 255, 255, 0.72);
  background: rgba(2, 6, 23, 0.34);
  color: #ffffff;
  box-shadow: 0 4px 18px rgba(2, 6, 23, 0.2);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

body.store-page .store-header-actions > input.search::placeholder {
  color: rgba(255, 255, 255, 0.88);
  opacity: 1;
}

body.store-page .store-header-actions > input.search:focus {
  border-color: #ffffff;
  outline: 3px solid rgba(255, 255, 255, 0.24);
  outline-offset: 2px;
}

body.store-page .store-header-actions > [data-customer-access] {
  justify-self: end;
}

body.store-page .customer-access-button {
  border-color: rgba(255, 255, 255, 0.72) !important;
  background: rgba(2, 6, 23, 0.34) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 18px rgba(2, 6, 23, 0.2) !important;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

body.store-page .customer-access-button:hover {
  border-color: #ffffff !important;
  background: rgba(2, 6, 23, 0.54) !important;
}

body.store-page .customer-access-button:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.78) !important;
  outline-offset: 2px;
}

body.store-page .customer-cart-button b {
  border-color: rgba(255, 255, 255, 0.95);
}

.product-favorite-button {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 4;
  display: grid !important;
  width: 42px;
  min-width: 42px !important;
  height: 42px;
  min-height: 42px !important;
  place-items: center;
  border: 1px solid rgba(15, 23, 42, 0.14) !important;
  border-radius: 999px !important;
  padding: 0 !important;
  background: rgba(255, 255, 255, 0.95) !important;
  color: #64748b !important;
  box-shadow: 0 5px 16px rgba(15, 23, 42, 0.16) !important;
  cursor: pointer;
  font-size: 25px !important;
  line-height: 1;
}

.product-favorite-button.is-favorite {
  border-color: #f2bd43 !important;
  background: #fff8dc !important;
  color: #d99100 !important;
}

.product-favorite-button:disabled {
  opacity: 0.65;
}

.profile-product-card,
.court-product,
.producto-card {
  position: relative;
}

@media (min-width: 861px) {
  body.store-page .header-inner {
    max-width: 1440px;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  body.store-page .layout {
    grid-template-columns: minmax(0, 1fr);
  }

  body.store-page .resumen {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
    display: flex;
    width: min(460px, 100vw);
    height: 100dvh;
    max-height: none;
    flex-direction: column;
    border-radius: 22px 0 0 22px;
    overflow: hidden;
    transform: translateX(105%);
    transition: transform 220ms ease;
  }

  body.store-page.cart-drawer-open .resumen {
    transform: translateX(0);
  }

  body.store-page .cart-header {
    flex: 0 0 auto;
  }

  body.store-page .cart-body {
    flex: 1 1 auto;
    overflow-x: hidden;
    overflow-y: auto;
    padding-bottom: 32px;
  }

  body.store-page .cart-close-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  body.store-page.cart-drawer-open {
    overflow: hidden;
  }

  body.store-page .store-header-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    align-items: center;
  }

  body.store-page .store-header-actions > input.search {
    flex: 0 1 calc(16ch + 1cm);
  }

  body.store-page .customer-account-button {
    max-width: 145px;
  }
}

@media (min-width: 1241px) {
  body.store-page .header-inner {
    grid-template-columns: minmax(0, 1fr) max-content;
    gap: 18px;
  }
}

@media (max-width: 860px) {
  body.store-page header {
    padding: 14px 12px 20px;
    overflow: visible;
  }

  body.store-page .header-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    overflow: visible;
  }

  body.store-page .brand {
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
    padding-top: 6px;
  }

  body.store-page .platform-back-link {
    padding: 4px 6px;
  }

  body.store-page .platform-back-logo {
    max-height: 36px;
  }

  body.store-page #storeTitle {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    font-size: clamp(19px, 5.4vw, 24px);
    line-height: 1.08;
    overflow-wrap: anywhere;
  }

  body.store-page #storeTitle.store-title--long {
    font-size: clamp(13px, 4.1vw, 17px);
    line-height: 1.12;
  }

  body.store-page #storeTitle.store-title--very-long {
    font-size: clamp(12px, 3.6vw, 15px);
  }

  body.store-page .store-hero {
    min-height: max(300px, calc(var(--store-header-height, 0px) + 24px));
  }

  .customer-header-side {
    gap: 4px;
  }

  .customer-access-label,
  [data-customer-account-label] {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .customer-access-button {
    width: 44px;
    min-width: 44px;
    max-width: 44px;
    height: 44px;
    min-height: 44px;
    gap: 0;
    padding: 0 !important;
  }

  body.store-page .store-header-actions {
    display: grid;
    width: 100%;
    min-width: 0;
    grid-template-columns: minmax(0, 1fr) max-content;
    gap: 8px;
    align-items: center;
  }

  body.store-page .store-header-actions > input.search {
    width: min(100%, calc(16ch + 1cm));
    justify-self: start;
  }

  body.store-page [data-customer-access] {
    display: grid;
    grid-template-columns: repeat(3, minmax(40px, 44px));
    gap: 4px;
  }

  body.store-page [data-customer-cart] {
    display: inline-flex !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.store-page .store-logo.logo-has-stories {
    animation: none;
    background-position: center, 58% 50%;
    outline-color: color-mix(in srgb, var(--store-story-ring-color) 64%, #ffffff);
    box-shadow:
      0 0 0 5px color-mix(in srgb, var(--store-story-ring-color) 22%, transparent),
      0 0 16px color-mix(in srgb, var(--store-story-ring-color) 42%, transparent);
    will-change: auto;
  }
}
