/* Hand-written additions that go beyond what exists in the compiled Base44 CSS bundle.
   Keep anything here that isn't just a copy of an existing Tailwind utility class. */

/* --- Header logo size (custom value, not a stock Tailwind size, so it's hand-written here) --- */
.logo-header {
  height: 128px;
  width: auto;
}

/* --- Fixed header: compensate removed flow-space with matching body padding-top.
   Header is 161px tall at rest (128px logo + 16px*2 nav padding + 1px border). --- */
body {
  padding-top: 161px;
}

/* --- Mobile header: half height (64px logo + 8px*2 nav padding + 1px border = 81px) --- */
@media (max-width: 767px) {
  .logo-header {
    height: 64px;
  }
  header nav {
    /* !important: overrides the compiled py-4 utility class, which outranks this
       element selector on specificity alone */
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
  }
  body {
    padding-top: 81px;
  }
}

/* --- Artist spotlight slider --- */
.artist-slider {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 0.5rem;
  -webkit-overflow-scrolling: touch;
}

.artist-slider::-webkit-scrollbar {
  height: 6px;
}
.artist-slider::-webkit-scrollbar-track {
  background: transparent;
}
.artist-slider::-webkit-scrollbar-thumb {
  background: rgba(240, 235, 224, 0.25);
  border-radius: 999px;
}

.artist-card {
  flex: 0 0 100%;
  width: 100%;
  scroll-snap-align: start;
}

.slider-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  flex-shrink: 0;
  border-radius: 9999px;
  border: 1px solid rgba(240, 235, 224, 0.3);
  color: #F0EBE0;
  background: transparent;
  cursor: pointer;
  transition: background-color 0.2s;
}
.slider-nav-btn:hover {
  background: rgba(240, 235, 224, 0.1);
}
.slider-nav-btn:focus-visible {
  outline: 2px solid #C85914;
  outline-offset: 2px;
}

/* --- Product image gallery (rotation controls) ---
   Frame reserves horizontal space so nav arrows sit outside the photo instead of overlapping it. */
.gallery-frame {
  position: relative;
  padding-left: 2.75rem;
  padding-right: 2.75rem;
}

.gallery-nav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 2.5rem;
  width: 2.5rem;
  border-radius: 9999px;
  border: none;
  background-color: #FFFFFF;
  color: #1A1A1A;
  cursor: pointer;
  pointer-events: auto;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
  transition: background-color 0.2s, transform 0.2s;
}
.gallery-nav-btn:hover {
  background-color: #F0EBE0;
  transform: scale(1.06);
}

.gallery-dot {
  height: 0.5rem;
  width: 0.5rem;
  border-radius: 9999px;
  border: none;
  padding: 0;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.2s;
}
.gallery-dot:hover {
  background-color: rgba(255, 255, 255, 0.75);
}
.gallery-dot.active {
  width: 1.5rem;
  background-color: #F0EBE0;
}

/* --- Product size selector (clothing products) --- */
.size-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3rem;
  height: 3rem;
  padding: 0 1rem;
  border-radius: 9999px;
  border: 1px solid rgba(26, 26, 26, 0.3);
  background-color: transparent;
  color: #1A1A1A;
  font-family: inherit;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
.size-btn:hover {
  border-color: #1A1A1A;
  background-color: rgba(26, 26, 26, 0.05);
}
.size-btn.selected {
  background-color: #1A1A1A;
  border-color: #1A1A1A;
  color: #F0EBE0;
}

/* --- Product colorway selector (multi-colorway products) --- */
.colorway-swatch {
  display: block;
  height: 52px;
  width: 52px;
  padding: 0;
  border-radius: 4px;
  border: 1px solid rgba(26, 26, 26, 0.3);
  background-color: #E4DDD1;
  background-size: cover;
  background-position: center;
  cursor: pointer;
  transition: border-color 0.2s;
}
.colorway-swatch:hover {
  border-color: #1A1A1A;
}
.colorway-swatch.selected {
  border: 2px solid #C85914;
}

.colorway-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  width: 52px;
  border-radius: 4px;
  border: 1px dashed rgba(26, 26, 26, 0.35);
  background-color: transparent;
  cursor: default;
  padding: 4px;
  text-align: center;
}
.colorway-placeholder span {
  font-family: inherit;
  font-size: 9px;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(26, 26, 26, 0.45);
}

/* --- Clothing sub-filter dropdown (Men/Women x Tops/Bottoms) --- */
.clothing-filter-wrapper {
  position: relative;
}

.clothing-chevron {
  transition: transform 0.2s;
}
.clothing-chevron.rotated {
  transform: rotate(180deg);
}

.clothing-dropdown-menu {
  /* display is intentionally not set here — toggled via the Tailwind
     "hidden"/"flex" classes in the markup, since a display rule here would
     outrank "hidden" on cascade order (custom.css loads after styles.css)
     even though both are single-class selectors. */
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  z-index: 30;
  gap: 1.5rem;
  padding: 1rem 1.25rem;
  background-color: #FFFFFF;
  border: 1px solid rgba(26, 26, 26, 0.15);
  border-radius: 1rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.clothing-dropdown-col {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  min-width: 84px;
}

.clothing-option {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.5rem 0.75rem;
  border-radius: 9999px;
  border: none;
  background: transparent;
  color: #1A1A1A;
  font-family: inherit;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.2s, color 0.2s;
}
.clothing-option:hover {
  background-color: rgba(26, 26, 26, 0.06);
}
.clothing-option.selected {
  background-color: #1A1A1A;
  color: #F0EBE0;
}

/* --- Cart page line-item thumbnail (h-32/w-24 aren't in the compiled bundle) --- */
.cart-item-thumb {
  height: 8rem;
  width: 6rem;
  object-fit: cover;
  flex-shrink: 0;
}

/* --- Homepage hero: 5-tile product grid + copy block ---
   Layout per spec: tile 1 tall/anchor spans both rows on the left,
   tiles 2/3 top-right, 4/5 bottom-right. Collapses to a plain 2-col grid
   on mobile (tile 5 full-width) so tile 1 doesn't push the fold down. */
.hero-grid-wrap {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}
/* Mobile stacks text above the grid; desktop reverts to natural DOM order
   (grid left, text right) via the side-by-side row layout below. */
.hero-text-block {
  order: -1;
}
@media (min-width: 768px) {
  .hero-grid-wrap {
    flex-direction: row;
    align-items: center;
    gap: 3rem;
  }
  .hero-text-block {
    order: 0;
  }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 140px 140px 140px;
  grid-template-areas:
    "tile1 tile2"
    "tile3 tile4"
    "tile5 tile5";
  gap: 8px;
  flex: 1 1 55%;
}
@media (min-width: 768px) {
  .hero-grid {
    grid-template-columns: 1.3fr 1fr 1fr;
    grid-template-rows: 140px 140px;
    grid-template-areas:
      "tile1 tile2 tile3"
      "tile1 tile4 tile5";
  }
}

.hero-tile-1 { grid-area: tile1; }
.hero-tile-2 { grid-area: tile2; }
.hero-tile-3 { grid-area: tile3; }
.hero-tile-4 { grid-area: tile4; }
.hero-tile-5 { grid-area: tile5; }

.hero-tile {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  background-color: #2E2E2E;
}
.hero-tile-2,
.hero-tile-4 {
  background-color: #3a3a38;
}

.hero-tile-link {
  position: absolute;
  inset: 0;
  display: block;
}
.hero-tile-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.2s;
}
.hero-tile-link:hover img {
  opacity: 0.92;
}
.hero-tile-link:focus-visible {
  outline: 2px solid #C85914;
  outline-offset: -2px;
}

/* Numbered placeholder — shown only until a real photo is assigned in
   data/hero.json. Not clickable on purpose: no href, no hover state. */
.hero-tile-placeholder {
  height: 100%;
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 8px;
  cursor: default;
}
.hero-tile-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 22px;
  width: 22px;
  border-radius: 9999px;
  border: 1px solid rgba(240, 235, 224, 0.25);
  background-color: rgba(240, 235, 224, 0.1);
  color: rgba(240, 235, 224, 0.6);
  font-family: var(--font-label);
  font-size: 11px;
  font-weight: 500;
}

.hero-text-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  flex: 1 1 45%;
  border-left: 3px solid #C85914;
  padding-left: 16px;
}

.hero-eyebrow {
  font-family: var(--font-label);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #C85914;
}

.hero-headline {
  font-family: var(--font-heading);
  font-weight: 600;
  text-transform: uppercase;
  line-height: 1.05;
  letter-spacing: 0.02em;
  color: #F0EBE0;
  font-size: clamp(26px, 6vw, 32px);
}

.hero-body {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.6;
  color: #B8B4A8;
  max-width: 420px;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.5rem;
}

.hero-cta-primary,
.hero-cta-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 24px;
  padding: 0.75rem 1.75rem;
  font-family: var(--font-label);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.hero-cta-primary {
  background-color: #F0EBE0;
  color: #1A1A1A;
}
.hero-cta-primary:hover {
  background-color: #FFFFFF;
}
.hero-cta-secondary {
  background-color: transparent;
  color: #F0EBE0;
  border: 1px solid #666666;
}
.hero-cta-secondary:hover {
  border-color: #F0EBE0;
}

/* --- Cart badge on header icon --- */
.cart-badge {
  display: none;
  position: absolute;
  top: -6px;
  right: -6px;
  height: 20px;
  width: 20px;
  background-color: #C85914;
  color: #F0EBE0;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 600;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
