/* Storefront usability and accessibility refinements loaded after the visual theme. */
.ph-skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 2000;
  padding: 11px 16px;
  border-radius: 10px;
  color: #08100a;
  background: #c9ff57;
  font-family: var(--ph-font-sans, sans-serif);
  font-weight: 800;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

.ph-skip-link:focus {
  transform: translateY(0);
}

:where(a, button, input, select, textarea, [role="button"]):focus-visible {
  outline: 3px solid #c9ff57 !important;
  outline-offset: 3px !important;
}

[data-theme="light"] :where(a, button, input, select, textarea, [role="button"]):focus-visible {
  outline-color: #075985 !important;
}

.ph-card-thumb-wrap[role="button"] {
  cursor: pointer;
}

@media (max-width: 767px) {
  .ph-store-hero-left {
    min-width: 0;
  }

  .ph-store-title {
    font-size: clamp(2.15rem, 10.2vw, 2.55rem);
    line-height: 1.06;
    letter-spacing: -0.045em;
  }

  .ph-store-desc {
    margin-bottom: 22px;
    line-height: 1.65;
  }

  .ph-category-tab,
  .ph-btn-toss-card,
  .ph-btn-quickview,
  .ph-footer-link {
    min-height: 44px;
  }

  .ph-footer-link {
    display: inline-flex;
    align-items: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Final responsive typography contract for the Cube storefront. */
.ph-storefront-root .ph-store-hero-left {
  width: min(550px, 100%);
  max-width: 100%;
  min-width: 0;
}

.ph-storefront-root .ph-store-title,
.ph-storefront-root .ph-catalog-main-title,
.ph-storefront-root .ph-section-title {
  font-family: var(--ph-font-display, "Gowun Dodum", "Noto Sans KR", sans-serif);
  word-break: keep-all;
  overflow-wrap: break-word;
}

.ph-storefront-root .ph-card-title {
  font-family: var(--ph-font-sans, "Pretendard", system-ui, sans-serif);
  word-break: keep-all;
  overflow-wrap: break-word;
}

.ph-storefront-root .ph-store-title {
  max-width: 100%;
  font-size: clamp(2.5rem, 3.4vw, 3.375rem);
  font-weight: 400;
  line-height: 1.16;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.ph-storefront-root .ph-store-desc,
.ph-storefront-root .ph-catalog-sub-text,
.ph-storefront-root .ph-section-subtitle,
.ph-storefront-root .ph-section-desc {
  font-family: var(--ph-font-sans, "Pretendard", system-ui, sans-serif);
  word-break: keep-all;
  overflow-wrap: break-word;
}

.ph-storefront-root .ph-store-desc {
  max-width: 590px;
  font-size: clamp(0.875rem, 1.05vw, 0.9375rem);
  line-height: 1.75;
}

.ph-storefront-root .ph-catalog-main-title,
.ph-storefront-root .ph-section-title {
  font-size: clamp(2rem, 2.8vw, 2.75rem);
  font-weight: 400;
  line-height: 1.18;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.ph-storefront-root .ph-card-title,
.ph-storefront-root .ph-products-grid > .ph-card:first-child .ph-card-title {
  min-height: 0;
  font-size: clamp(1.0625rem, 1.2vw, 1.25rem);
  line-height: 1.42;
  letter-spacing: -0.025em;
  text-wrap: pretty;
}

@media (max-width: 767px) {
  .ph-storefront-root .ph-store-hero-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    box-sizing: border-box;
    gap: 16px;
    width: 100%;
    min-width: 0;
    padding: 20px 16px 24px;
  }

  .ph-storefront-root .ph-cube-concept-image,
  .ph-storefront-root .ph-store-hero-left,
  .ph-storefront-root .ph-store-hero-right {
    flex: 0 0 auto;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .ph-storefront-root .ph-store-title {
    width: 100%;
    max-width: 100%;
    font-size: clamp(1.625rem, 7.2vw, 2rem);
    font-weight: 400;
    line-height: 1.18;
    letter-spacing: -0.04em;
    white-space: normal;
    text-wrap: wrap;
  }

  .ph-storefront-root .ph-store-desc {
    width: 100%;
    max-width: 100%;
    margin-top: 16px;
    margin-bottom: 20px;
    font-size: 0.875rem;
    line-height: 1.68;
  }

  .ph-storefront-root .ph-store-badges {
    align-items: flex-start;
    gap: 8px;
  }

  .ph-storefront-root .ph-store-pill {
    width: fit-content;
    max-width: 100%;
    white-space: normal;
    line-height: 1.45;
  }

  .ph-storefront-root .ph-catalog-main-title,
  .ph-storefront-root .ph-section-title {
    font-size: clamp(1.625rem, 7vw, 2rem);
    line-height: 1.22;
  }

  .ph-storefront-root .ph-catalog-sub-text,
  .ph-storefront-root .ph-section-subtitle,
  .ph-storefront-root .ph-section-desc {
    font-size: 0.875rem;
    line-height: 1.7;
  }

  .ph-storefront-root .ph-card-title,
  .ph-storefront-root .ph-products-grid > .ph-card:first-child .ph-card-title {
    font-size: 1.125rem;
    line-height: 1.42;
  }
}
