/* ============================================
   Stdwear Custom Styles
   Dark terminal/code editor theme
   ============================================ */

/* --- Custom Properties --- */
:root {
  --stdwear-bg-primary: #0D1117;
  --stdwear-bg-secondary: #161B22;
  --stdwear-bg-tertiary: #21262D;
  --stdwear-text-primary: #E6EDF3;
  --stdwear-text-secondary: #8B949E;
  --stdwear-accent-blue: #58A6FF;
  --stdwear-accent-green: #7EE787;
  --stdwear-accent-purple: #D2A8FF;
  --stdwear-accent-red: #FF7B72;
  --stdwear-accent-yellow: #FFA657;
  --stdwear-border: #30363D;
  --stdwear-glow-blue: rgba(88, 166, 255, 0.4);
  --stdwear-glow-green: rgba(126, 231, 135, 0.3);
  --stdwear-font-mono: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
  --stdwear-font-heading: 'Inter', 'Helvetica Neue', sans-serif;
  --stdwear-font-body: 'Inter', 'Noto Sans JP', sans-serif;
}

/* --- Policy Page: Full Width --- */
.shopify-policy__container {
  max-width: var(--page-width, 1200px) !important;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.shopify-policy__body {
  max-width: none;
}

.page-width--narrow {
  max-width: var(--page-width, 1200px);
}

/* --- Font Override --- */
:root {
  --font-heading-family: 'Inter', 'Noto Sans JP', sans-serif;
  --font-body-family: 'Inter', 'Noto Sans JP', sans-serif;
}

/* --- Global Overrides --- */
body {
  font-family: var(--stdwear-font-body);
}

h1, h2, h3, h4, h5, h6,
.h0, .h1, .h2, .h3, .h4, .h5 {
  font-family: var(--stdwear-font-heading);
}

/* --- Selection Color --- */
::selection {
  background: rgba(88, 166, 255, 0.3);
  color: #E6EDF3;
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--stdwear-bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--stdwear-border);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--stdwear-text-secondary);
}

/* --- Button Glow Effect --- */
.button--primary,
.shopify-payment-button__button--unbranded {
  transition: box-shadow 0.3s ease, transform 0.2s ease;
}

.button--primary:hover,
.shopify-payment-button__button--unbranded:hover {
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}

.button--secondary {
  transition: border-color 0.3s ease, color 0.3s ease;
}

.button--secondary:hover {
  border-color: var(--stdwear-text-primary);
}

/* --- Monochrome CTA Buttons --- */
/* Hero primary button */
.hero-split__btn.button--primary,
.hero-terminal__buttons .button--primary {
  background-color: #E6EDF3 !important;
  color: #0D1117 !important;
}

.hero-split__btn.button--primary::after,
.hero-terminal__buttons .button--primary::after {
  box-shadow: none !important;
}

.hero-split__btn.button--primary:hover,
.hero-terminal__buttons .button--primary:hover {
  background-color: #ffffff !important;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.15);
}

.hero-split__btn.button--primary:hover::after,
.hero-terminal__buttons .button--primary:hover::after {
  box-shadow: none !important;
}

/* Hero secondary button */
.hero-split__btn.button--secondary,
.hero-terminal__buttons .button--secondary {
  background-color: transparent !important;
  color: #E6EDF3 !important;
}

.hero-split__btn.button--secondary::after,
.hero-terminal__buttons .button--secondary::after {
  box-shadow: 0 0 0 1px rgba(230, 237, 243, 0.4) !important;
}

.hero-split__btn.button--secondary:hover,
.hero-terminal__buttons .button--secondary:hover {
  background-color: rgba(230, 237, 243, 0.08) !important;
}

.hero-split__btn.button--secondary:hover::after,
.hero-terminal__buttons .button--secondary:hover::after {
  box-shadow: 0 0 0 1px #E6EDF3 !important;
}

/* Featured collection "View all" button */
.collection__view-all .button {
  background-color: #E6EDF3 !important;
  color: #0D1117 !important;
}

.collection__view-all .button::after {
  box-shadow: none !important;
}

.collection__view-all .button:hover {
  background-color: #ffffff !important;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.15);
}

.collection__view-all .button:hover::after {
  box-shadow: none !important;
}

.collection__view-all .button.button--secondary {
  background-color: transparent !important;
  color: #E6EDF3 !important;
}

.collection__view-all .button.button--secondary::after {
  box-shadow: 0 0 0 1px rgba(230, 237, 243, 0.4) !important;
}

.collection__view-all .button.button--secondary:hover {
  background-color: rgba(230, 237, 243, 0.08) !important;
}

.collection__view-all .button.button--secondary:hover::after {
  box-shadow: 0 0 0 1px #E6EDF3 !important;
}

/* --- Card Hover Effect --- */
.card-wrapper {
  transition: transform 0.3s ease;
}

.card-wrapper:hover {
  transform: translateY(-4px);
}

.card-wrapper:hover .card {
  border-color: var(--stdwear-accent-blue);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

.card {
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--stdwear-border);
  border-radius: 4px;
  overflow: hidden;
}

/* --- Product Card Badges --- */
.badge--collection {
  position: absolute;
  top: 0.8rem;
  left: 0.8rem;
  background: var(--stdwear-accent-purple);
  color: var(--stdwear-bg-primary);
  font-family: var(--stdwear-font-mono);
  font-size: 1rem;
  font-weight: 600;
  padding: 0.2rem 0.8rem;
  border-radius: 4px;
  z-index: 2;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge--new {
  background: var(--stdwear-accent-green) !important;
  color: var(--stdwear-bg-primary) !important;
  font-family: var(--stdwear-font-mono);
  font-weight: 700;
}

/* ============================================
   Terminal Window Component
   ============================================ */
.terminal-window {
  background: var(--stdwear-bg-secondary);
  border: 1px solid var(--stdwear-border);
  border-radius: 8px;
  overflow: hidden;
}

.terminal-titlebar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--stdwear-bg-tertiary);
  border-bottom: 1px solid var(--stdwear-border);
}

.terminal-dots {
  display: flex;
  gap: 6px;
}

.terminal-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.terminal-dot--red { background: #FF5F56; }
.terminal-dot--yellow { background: #FFBD2E; }
.terminal-dot--green { background: #27C93F; }

.terminal-title {
  flex: 1;
  text-align: center;
  font-family: var(--stdwear-font-mono);
  font-size: 1.2rem;
  color: var(--stdwear-text-secondary);
}

.terminal-body {
  padding: 24px;
  font-family: var(--stdwear-font-mono);
  line-height: 1.8;
}

.terminal-prompt {
  color: var(--stdwear-accent-green);
}

.terminal-command {
  color: var(--stdwear-text-primary);
}

.terminal-cursor {
  display: inline-block;
  width: 8px;
  height: 1.2em;
  background: var(--stdwear-accent-green);
  vertical-align: text-bottom;
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.terminal-output {
  color: var(--stdwear-text-secondary);
  margin-top: 8px;
}

/* ============================================
   Hero Terminal Section
   ============================================ */
.hero-terminal {
  padding: 60px 0;
}

.hero-terminal .terminal-body {
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-terminal__heading {
  font-family: var(--stdwear-font-heading);
  font-size: 4rem;
  font-weight: 700;
  line-height: 1.2;
  margin: 16px 0;
  color: var(--stdwear-text-primary);
}

.hero-terminal__subtext {
  font-family: var(--stdwear-font-body);
  font-size: 1.8rem;
  color: var(--stdwear-text-secondary);
  margin: 8px 0;
  line-height: 1.6;
}

.hero-terminal__buttons {
  display: flex;
  gap: 16px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.hero-terminal__buttons .button {
  min-width: 160px;
  text-align: center;
}

@media screen and (max-width: 749px) {
  .hero-terminal__heading {
    font-size: 2.8rem;
  }

  .hero-terminal__subtext {
    font-size: 1.5rem;
  }

  .hero-terminal__buttons {
    flex-direction: column;
  }

  .hero-terminal__buttons .button {
    width: 100%;
  }
}

/* ============================================
   Featured Categories Section (Marquee)
   ============================================ */
.featured-categories {
  padding: 60px 0;
  overflow: hidden;
}

/* Marquee container */
.featured-categories__marquee {
  overflow: hidden;
  width: 100%;
}

.featured-categories__track {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: marquee-scroll 30s linear infinite;
}

.featured-categories__marquee:hover .featured-categories__track {
  animation-play-state: paused;
}

@keyframes marquee-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.category-card {
  display: block;
  position: relative;
  border-radius: 0;
  overflow: hidden;
  width: 360px;
  height: 240px;
  flex-shrink: 0;
  border: none;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

@media screen and (min-width: 750px) {
  .category-card {
    width: 480px;
    height: 320px;
  }
}

.category-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.category-card:hover .category-card__image {
  transform: scale(1.05);
}

.category-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13, 17, 23, 0.85) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
}

.category-card__title {
  font-family: var(--stdwear-font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--stdwear-text-primary);
  margin: 0 0 4px;
}

.category-card__subtitle {
  font-family: var(--stdwear-font-mono);
  font-size: 1.2rem;
  color: var(--stdwear-accent-green);
}

a.category-card:hover {
  text-decoration: none;
}

/* ============================================
   Brand Story / Code Editor Section
   ============================================ */
.code-editor {
  background: var(--stdwear-bg-secondary);
  border: 1px solid var(--stdwear-border);
  border-radius: 8px;
  overflow: hidden;
}

.code-editor__titlebar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--stdwear-bg-tertiary);
  border-bottom: 1px solid var(--stdwear-border);
}

.code-editor__dots {
  display: flex;
  gap: 6px;
}

.code-editor__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.code-editor__dot--red { background: #FF5F56; }
.code-editor__dot--yellow { background: #FFBD2E; }
.code-editor__dot--green { background: #27C93F; }

.code-editor__filename {
  flex: 1;
  text-align: center;
  font-family: var(--stdwear-font-mono);
  font-size: 1.2rem;
  color: var(--stdwear-text-secondary);
}

.brand-story-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media screen and (min-width: 990px) {
  .brand-story-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.code-editor__body {
  display: flex;
  padding: 24px 0;
}

.code-editor__content {
  padding: 0 24px;
  flex: 1;
  overflow-x: auto;
}

.code-editor__line {
  font-family: var(--stdwear-font-mono);
  font-size: 1.4rem;
  line-height: 2;
  display: flex;
  gap: 16px;
}

.code-editor__line-number {
  font-family: var(--stdwear-font-mono);
  font-size: 1.3rem;
  line-height: 2;
  color: var(--stdwear-text-secondary);
  opacity: 0.5;
  user-select: none;
  min-width: 24px;
  text-align: right;
  flex-shrink: 0;
}

.code-editor__line--blank {
  font-family: var(--stdwear-font-mono);
  font-size: 1.4rem;
  line-height: 2;
  display: flex;
  gap: 16px;
}

.code-comment {
  color: var(--stdwear-accent-green);
  font-style: italic;
}

.code-keyword {
  color: var(--stdwear-accent-purple);
  font-weight: 600;
}

.code-string {
  color: var(--stdwear-accent-yellow);
}

.code-text {
  color: var(--stdwear-text-primary);
  font-family: var(--stdwear-font-body);
  font-size: 1.5rem;
  line-height: 1.8;
  margin: 0;
  display: flex;
  gap: 16px;
}

.brand-story__image {
  border-radius: 8px;
  margin: 16px 0;
  max-width: 100%;
  height: auto;
  border: 1px solid var(--stdwear-border);
}

@media screen and (max-width: 749px) {
  .code-editor__line-numbers {
    display: none;
  }

  .code-editor__content {
    padding: 0 16px;
  }
}

/* ============================================
   FAQ Accordion Section
   ============================================ */
.faq-section {
  padding: 60px 0;
}

.faq-section__title {
  font-family: var(--stdwear-font-heading);
  font-size: 3.2rem;
  margin-bottom: 40px;
  text-align: center;
}

.faq-item {
  border: 1px solid var(--stdwear-border);
  border-radius: 4px;
  margin-bottom: 8px;
  overflow: hidden;
  transition: border-color 0.3s ease;
}

.faq-item[open] {
  border-color: var(--stdwear-accent-blue);
}

.faq-item__question {
  padding: 16px 24px;
  font-family: var(--stdwear-font-heading);
  font-size: 1.6rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
  color: var(--stdwear-text-primary);
  background: var(--stdwear-bg-secondary);
  transition: background-color 0.2s ease;
}

.faq-item__question:hover {
  background: var(--stdwear-bg-tertiary);
}

.faq-item__question::-webkit-details-marker {
  display: none;
}

.faq-item__question::marker {
  display: none;
  content: '';
}

.faq-item__icon {
  font-family: var(--stdwear-font-mono);
  color: var(--stdwear-accent-blue);
  font-size: 1.4rem;
  transition: transform 0.3s ease;
  flex-shrink: 0;
  margin-left: 16px;
}

.faq-item[open] .faq-item__icon {
  transform: rotate(90deg);
}

.faq-item__answer {
  padding: 0 24px 20px;
  font-size: 1.5rem;
  line-height: 1.8;
  color: var(--stdwear-text-secondary);
  background: var(--stdwear-bg-secondary);
}

.faq-item__answer p {
  margin: 0;
}

/* ============================================
   Footer Terminal Copyright
   ============================================ */
.footer-terminal-copyright {
  font-family: var(--stdwear-font-mono);
  font-size: 1.2rem;
  color: var(--stdwear-text-secondary);
}

.footer-terminal-copyright .terminal-prompt {
  color: var(--stdwear-accent-green);
}

/* ============================================
   Share Button Enhancement
   ============================================ */
.share-buttons-social {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.share-buttons-social__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: 1px solid var(--stdwear-border);
  border-radius: 4px;
  font-family: var(--stdwear-font-mono);
  font-size: 1.2rem;
  color: var(--stdwear-text-primary);
  text-decoration: none;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}

.share-buttons-social__link:hover {
  border-color: var(--stdwear-accent-blue);
  background: rgba(88, 166, 255, 0.1);
}

.share-buttons-social__link--x:hover {
  border-color: var(--stdwear-text-primary);
}

.share-buttons-social__link--facebook:hover {
  border-color: #1877F2;
}

.share-buttons-social__link--line:hover {
  border-color: #06C755;
}

.share-buttons-social__icon {
  width: 16px;
  height: 16px;
}

/* ============================================
   Size Guide Modal
   ============================================ */
.stdwear-size-guide-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--stdwear-font-mono);
  font-size: 1.3rem;
  color: var(--stdwear-accent-blue);
  cursor: pointer;
  background: none;
  border: none;
  padding: 0.5rem 0;
  transition: color 0.2s;
}
.stdwear-size-guide-btn:hover { color: var(--stdwear-accent-purple); }

.stdwear-size-guide-modal {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
}
.stdwear-size-guide-modal[hidden] { display: none; }
.stdwear-size-guide-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.7);
}
.stdwear-size-guide-modal__content {
  position: relative;
  background: var(--stdwear-bg-secondary);
  border: 1px solid var(--stdwear-border);
  border-radius: 8px;
  max-width: 560px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
}
.stdwear-size-guide-modal__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.6rem 2rem;
  border-bottom: 1px solid var(--stdwear-border);
}
.stdwear-size-guide-modal__header h3 {
  font-family: var(--stdwear-font-mono);
  color: var(--stdwear-text-primary);
  margin: 0;
  font-size: 1.6rem;
}
.stdwear-size-guide-modal__close {
  background: none;
  border: none;
  color: var(--stdwear-text-secondary);
  font-size: 2rem;
  cursor: pointer;
  transition: color 0.2s;
}
.stdwear-size-guide-modal__close:hover { color: var(--stdwear-text-primary); }
.stdwear-size-guide-modal__body {
  padding: 2rem;
  color: var(--stdwear-text-primary);
  font-size: 1.4rem;
  line-height: 1.8;
}

/* ============================================
   SNS Share Buttons
   ============================================ */
.stdwear-sns-share {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1rem 0;
}
.stdwear-sns-share__label {
  font-family: var(--stdwear-font-mono);
  font-size: 1.2rem;
  color: var(--stdwear-text-secondary);
}
.stdwear-sns-share__buttons {
  display: flex;
  gap: 0.8rem;
}
.stdwear-sns-share__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--stdwear-bg-tertiary);
  color: var(--stdwear-text-secondary);
  border: 1px solid var(--stdwear-border);
  transition: all 0.2s;
}
.stdwear-sns-share__btn:hover {
  color: var(--stdwear-text-primary);
  border-color: var(--stdwear-accent-blue);
  background: rgba(88, 166, 255, 0.1);
}

/* ============================================
   Compile Launch Screen
   ============================================ */
.stdwear-launch {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--stdwear-bg-primary, #0D1117);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.stdwear-launch--exit {
  opacity: 0;
  transform: translateY(-20px);
  pointer-events: none;
}

body.stdwear-launch-active {
  overflow: hidden;
}

.stdwear-launch__terminal {
  font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
  font-size: 1.3rem;
  line-height: 2;
  max-width: 480px;
  width: 90%;
}

.stdwear-launch__line {
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  white-space: nowrap;
}

.stdwear-launch__line.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.stdwear-launch__dim {
  color: #484F58;
}

.stdwear-launch__white {
  color: #E6EDF3;
}

.stdwear-launch__green {
  color: #7EE787;
}

.stdwear-launch__blue {
  color: #58A6FF;
}

.stdwear-launch__yellow {
  color: #FFA657;
}

.stdwear-launch__ready {
  font-size: 1.4rem;
}

@media screen and (min-width: 750px) {
  .stdwear-launch__terminal {
    font-size: 1.5rem;
  }

  .stdwear-launch__ready {
    font-size: 1.6rem;
  }
}

/* ============================================
   Product Gallery: Thumbnails Below Main Image
   ============================================ */

/* Keep the outer 2-column grid intact.
   Only change the inner media-gallery layout so thumbnails appear below the viewer. */
@media screen and (min-width: 750px) {
  .product--thumbnail media-gallery {
    display: flex;
    flex-direction: column;
  }

  /* Thumbnail slider sits below the main viewer */
  .product--thumbnail .thumbnail-slider {
    width: 100%;
    margin-top: 1.2rem;
  }

  /* Override Dawn's default thumbnail grid (4/5/6 columns) */
  .product--thumbnail .thumbnail-list {
    display: grid !important;
    grid-template-columns: repeat(6, 1fr);
    gap: 0.8rem;
  }

  /* Hide slider arrows — all thumbnails are visible in the grid */
  .product--thumbnail .thumbnail-slider .slider-button {
    display: none;
  }
}

/* Mobile: horizontal thumbnail row */
@media screen and (max-width: 749px) {
  .product--thumbnail .thumbnail-list {
    display: flex;
    gap: 0.6rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
  }

  .product--thumbnail .thumbnail-list__item {
    flex: 0 0 auto;
    width: 60px;
  }
}

/* Active thumbnail highlight */
.product--thumbnail .thumbnail[aria-current] {
  box-shadow: 0 0 0 0.2rem var(--stdwear-accent-blue);
  border-radius: 2px;
}

/* Thumbnail hover effect */
.product--thumbnail .thumbnail:hover {
  opacity: 1;
  box-shadow: 0 0 0 0.1rem var(--stdwear-accent-blue);
  border-radius: 2px;
}

/* ============================================
   Product Media Modal: Reduced Size
   ============================================ */

/* Override fullscreen modal to centered, smaller dialog */
.product-media-modal {
  background-color: rgba(0, 0, 0, 0.7) !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
}

.product-media-modal__dialog {
  max-width: 80vw !important;
  max-height: 85vh !important;
  height: auto !important;
  width: auto !important;
  margin: auto;
  background: rgb(var(--color-background));
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}

.product-media-modal__content {
  max-height: 80vh !important;
  padding: 2rem !important;
  overflow: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.product-media-modal__content img,
.product-media-modal__content model-viewer,
.product-media-modal__content video {
  max-width: 100% !important;
  max-height: 75vh !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain;
}

/* Reposition close button for the reduced modal */
.product-media-modal__toggle {
  position: absolute !important;
  right: 1rem !important;
  top: 1rem !important;
  z-index: 3;
}

@media screen and (max-width: 749px) {
  .product-media-modal__dialog {
    max-width: 95vw !important;
    max-height: 90vh !important;
  }

  .product-media-modal__content {
    padding: 1.5rem !important;
  }

  .product-media-modal__content img,
  .product-media-modal__content model-viewer,
  .product-media-modal__content video {
    max-height: 70vh !important;
  }
}

/* ============================================
   Utility Classes
   ============================================ */
.mono-text {
  font-family: var(--stdwear-font-mono);
}

.glow-text {
  text-shadow: 0 0 10px var(--stdwear-glow-blue);
}

/* ============================================
   Phase 3: Apparel-Forward Redesign
   ============================================ */

/* --- Hero Split Section --- */
.hero-split {
  overflow: hidden;
}

.hero-split__container {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 70vh;
}

@media screen and (min-width: 990px) {
  .hero-split__container {
    grid-template-columns: 1fr 1fr;
    min-height: 85vh;
  }
}

.hero-split__media {
  position: relative;
  overflow: hidden;
  background: #ffffff;
  min-height: 50vh;
}

@media screen and (min-width: 990px) {
  .hero-split__media {
    min-height: 85vh;
  }
}

/* Layered T-shirt composition */
.hero-split__layered {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media screen and (min-width: 990px) {
  .hero-split__layered {
    min-height: 85vh;
  }
}

.hero-split__img-back {
  position: absolute;
  width: 85%;
  max-width: 620px;
  height: auto;
  top: 50%;
  left: 50%;
  transform: translate(-68%, -55%) rotate(-6deg);
  opacity: 0.6;
  filter: brightness(0.7);
  z-index: 1;
  transition: transform 0.6s ease, opacity 0.6s ease;
}

.hero-split__img-front {
  position: absolute;
  width: 92%;
  max-width: 680px;
  height: auto;
  top: 50%;
  left: 50%;
  transform: translate(-35%, -48%) rotate(0deg);
  z-index: 2;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.5));
  transition: transform 0.6s ease;
}

/* Soft edge blend between media and content */
.hero-split__media::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 120px;
  background: linear-gradient(to right, transparent, var(--stdwear-bg-primary, #0D1117));
  z-index: 10;
  pointer-events: none;
}

@media screen and (max-width: 989px) {
  .hero-split__media::after {
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: linear-gradient(to bottom, transparent, var(--stdwear-bg-primary, #0D1117));
  }
}

.hero-split__img-right {
  position: absolute;
  width: 72%;
  max-width: 520px;
  height: auto;
  top: 50%;
  left: 50%;
  transform: translate(5%, -45%) rotate(8deg);
  opacity: 0.45;
  filter: brightness(0.8);
  z-index: 0;
  transition: transform 0.6s ease, opacity 0.6s ease;
}

/* Hover: spread out */
.hero-split__layered:hover .hero-split__img-back {
  transform: translate(-78%, -55%) rotate(-9deg);
  opacity: 0.75;
}

.hero-split__layered:hover .hero-split__img-front {
  transform: translate(-35%, -48%) rotate(0deg);
}

.hero-split__layered:hover .hero-split__img-right {
  transform: translate(10%, -45%) rotate(10deg);
  opacity: 0.6;
}

@media screen and (max-width: 989px) {
  .hero-split__img-back {
    width: 72%;
    max-width: 420px;
    transform: translate(-70%, -55%) rotate(-6deg);
  }

  .hero-split__img-front {
    width: 80%;
    max-width: 480px;
    transform: translate(-33%, -48%) rotate(0deg);
  }

  .hero-split__img-right {
    width: 62%;
    max-width: 360px;
    transform: translate(5%, -45%) rotate(8deg);
  }
}

.hero-split__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 32px;
}

@media screen and (min-width: 990px) {
  .hero-split__content {
    padding: 60px 64px;
  }
}

@media screen and (min-width: 1200px) {
  .hero-split__content {
    padding: 80px 80px;
  }
}

.hero-split__terminal-line {
  font-family: var(--stdwear-font-mono);
  font-size: 1.3rem;
  color: var(--stdwear-text-secondary);
  margin-bottom: 24px;
  opacity: 0.7;
}

.hero-split__prompt {
  color: var(--stdwear-accent-green);
  margin-right: 8px;
}

.hero-split__typed-text {
  color: var(--stdwear-text-secondary);
}

.hero-split__heading {
  font-family: var(--stdwear-font-heading);
  font-size: 3.6rem;
  font-weight: 700;
  line-height: 1.1;
  margin: 0 0 20px;
  color: var(--stdwear-text-primary);
  letter-spacing: -0.02em;
}

@media screen and (min-width: 990px) {
  .hero-split__heading {
    font-size: 5.2rem;
  }
}

@media screen and (min-width: 1200px) {
  .hero-split__heading {
    font-size: 6.4rem;
  }
}

.hero-split__subtext {
  font-family: var(--stdwear-font-body);
  font-size: 1.6rem;
  color: var(--stdwear-text-secondary);
  line-height: 1.8;
  margin: 0 0 32px;
  max-width: 480px;
}

@media screen and (min-width: 990px) {
  .hero-split__subtext {
    font-size: 1.8rem;
  }
}

.hero-split__buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-split__btn {
  min-width: 160px;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 1.3rem;
}

@media screen and (max-width: 749px) {
  .hero-split__buttons {
    flex-direction: column;
  }

  .hero-split__btn {
    width: 100%;
  }
}

/* --- Product Grid: Fashion-Forward Overrides --- */

/* Grid spacing: wider gaps between product cards */
.product-grid.grid {
  --grid-desktop-horizontal-spacing: 24px;
  --grid-desktop-vertical-spacing: 32px;
  --grid-mobile-horizontal-spacing: 12px;
  --grid-mobile-vertical-spacing: 20px;
}

/* Section heading: uppercase editorial */
.section-featured_collection .title-wrapper--no-top-margin .title,
.section-featured_collection h2 {
  font-family: var(--stdwear-font-heading);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 400;
  font-size: 1.4rem;
}

/* Product cards: remove borders and rounded corners */
.section-featured_collection .card-wrapper .card {
  border: none;
  border-radius: 0;
  box-shadow: none;
}

.section-featured_collection .card-wrapper .card--standard .card__inner {
  border: none;
  border-radius: 0;
}

.section-featured_collection .card--card {
  border: none;
  border-radius: 0;
}

.section-featured_collection .card__media {
  border-radius: 0;
  overflow: hidden;
}

.section-featured_collection .card__media img {
  border-radius: 0;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Hover: image zoom only, no lift */
.section-featured_collection .card-wrapper {
  transition: none;
}

.section-featured_collection .card-wrapper:hover {
  transform: none;
}

.section-featured_collection .card-wrapper:hover .card {
  border-color: transparent;
  box-shadow: none;
}

.section-featured_collection .card-wrapper:hover .card__media img {
  transform: scale(1.04);
}

/* Product name & price: sans-serif */
.section-featured_collection .card__heading,
.section-featured_collection .card__heading a,
.section-featured_collection .card-information__text,
.section-featured_collection .price,
.section-featured_collection .price-item {
  font-family: var(--stdwear-font-body);
}

.section-featured_collection .card__heading {
  font-size: 1.4rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.section-featured_collection .price {
  font-size: 1.3rem;
  color: var(--stdwear-text-secondary);
}

/* --- Category Section: Marquee overrides --- */

.featured-categories__title {
  font-family: var(--stdwear-font-heading);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 400;
  font-size: 1.4rem;
  text-align: center;
  margin-bottom: 24px;
  padding: 0 20px;
}

.category-card__title {
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 600;
}

.category-card__subtitle {
  color: var(--stdwear-text-secondary);
  letter-spacing: 0.05em;
}

/* --- Brand Story Section --- */

.brand-story-terminal {
  max-width: 780px;
  padding: 32px 0;
}

/* Each line is hidden until revealed */
[data-story-line] {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

[data-story-line].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* File name tab label */
.brand-story__tab {
  display: inline-block;
  font-family: var(--stdwear-font-mono);
  font-size: 1.2rem;
  color: var(--stdwear-text-secondary);
  background: var(--stdwear-bg-tertiary);
  border: 1px solid var(--stdwear-border);
  border-radius: 4px 4px 0 0;
  padding: 4px 12px;
  margin-top: 40px;
  margin-bottom: 0;
  line-height: 1.4;
}

.brand-story__tab:first-child {
  margin-top: 0;
}

/* Section heading (h2) */
.brand-story__heading {
  font-family: var(--stdwear-font-heading);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--stdwear-text-primary);
  margin: 12px 0 8px;
  line-height: 1.3;
}

@media screen and (min-width: 990px) {
  .brand-story__heading {
    font-size: 3.2rem;
  }
}

/* Subheading — key concept emphasis */
.brand-story__subheading {
  font-family: var(--stdwear-font-heading);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--stdwear-accent-green);
  margin-bottom: 16px;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

@media screen and (min-width: 990px) {
  .brand-story__subheading {
    font-size: 3.6rem;
  }
}

/* Text body */
.brand-story__text {
  font-family: var(--stdwear-font-body);
  font-size: 1.5rem;
  color: var(--stdwear-text-secondary);
  line-height: 1.9;
  margin-bottom: 8px;
}

.brand-story__text p {
  margin: 0;
}

@media screen and (min-width: 990px) {
  .brand-story__text {
    font-size: 1.6rem;
  }
}

/* Blank spacer */
.brand-story__blank {
  height: 16px;
  margin-bottom: 0;
}

/* Image */
.brand-story-terminal .brand-story__image {
  max-width: 100%;
  height: auto;
  border-radius: 0;
  margin: 8px 0;
}
