/* ================================================================
   OFF TASK — Shop Styles
   Extends theme.css. All shop-specific components go here.
   ================================================================ */

/* ---- SHOP NAV ---- */
.shop-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 2rem;
  background: rgba(13, 13, 13, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #1a1a1a;
}

.nav-brand {
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
}

.nav-brand-off { color: var(--fg-primary); }
.nav-brand-task { color: var(--accent); }

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-link {
  color: var(--fg-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
}

.nav-link:hover { color: var(--fg-primary); }

.nav-right { display: flex; align-items: center; gap: 1rem; }

.nav-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--fg-dim);
  letter-spacing: 0.1em;
}

/* ---- SECTION LABEL ---- */
.section-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--fg-dim);
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
}

/* ---- BREADCRUMB ---- */
.breadcrumb {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--fg-dim);
  text-decoration: none;
  letter-spacing: 0.05em;
  margin-bottom: 2rem;
  transition: color 0.2s;
}
.breadcrumb:hover { color: var(--accent); }

/* ---- SHOP HERO ---- */
.shop-hero {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  padding: 8rem 2rem 4rem;
  overflow: hidden;
  background: var(--bg-primary);
}

.shop-hero-noise {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
}

.shop-hero-content {
  text-align: center;
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.shop-hero-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--fg-dim);
  letter-spacing: 0.15em;
  margin-bottom: 1.5rem;
}

.shop-hero-title {
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  color: var(--fg-primary);
}

.shop-hero-sub {
  font-size: 1rem;
  color: var(--fg-secondary);
  font-weight: 300;
  letter-spacing: 0.02em;
}

/* ---- COLLECTIONS SECTION ---- */
.collections-section {
  padding: 6rem 2rem;
  background: var(--bg-secondary);
}

.collections-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.collections-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.collection-card {
  text-decoration: none;
  display: block;
  background: var(--bg-card);
  border: 1px solid #2a2a2a;
  transition: border-color 0.3s ease, transform 0.3s ease;
  overflow: hidden;
}

.collection-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.collection-cover {
  width: 100%;
  aspect-ratio: 4/3;
  position: relative;
}

.collection-cover::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.04) 0%, transparent 60%);
}

.collection-info {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.collection-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--fg-primary);
  letter-spacing: -0.01em;
}

.collection-tagline {
  font-size: 0.85rem;
  color: var(--fg-secondary);
  font-weight: 300;
  line-height: 1.4;
}

.collection-cta {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent);
  letter-spacing: 0.05em;
  margin-top: 0.5rem;
  transition: letter-spacing 0.2s;
}

.collection-card:hover .collection-cta { letter-spacing: 0.1em; }

/* ---- FEATURED SECTION ---- */
.featured-section {
  padding: 6rem 2rem;
  background: var(--bg-primary);
}

.featured-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.featured-header {
  margin-bottom: 3rem;
}

.featured-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--fg-primary);
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

/* ---- PRODUCT CARD ---- */
.product-card {
  text-decoration: none;
  display: block;
  transition: transform 0.25s ease;
}

.product-card:hover { transform: translateY(-3px); }

.product-card-swatch {
  width: 100%;
  aspect-ratio: 1;
  position: relative;
  margin-bottom: 1.2rem;
  overflow: hidden;
}

.product-card-swatch::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.04) 0%, transparent 60%);
}

.product-card-swatch--large {
  aspect-ratio: 3/4;
}

.sold-out-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--bg-primary);
  color: var(--fg-dim);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  padding: 0.3rem 0.6rem;
  border: 1px solid #2a2a2a;
  z-index: 2;
}

.product-color-dots {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  display: flex;
  gap: 0.4rem;
  z-index: 2;
}

.color-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
}

.product-card-info {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.product-card-cat {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: var(--accent);
}

.product-card-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--fg-primary);
  letter-spacing: -0.01em;
}

.product-card-tagline {
  font-size: 0.85rem;
  color: var(--fg-secondary);
  font-weight: 300;
  line-height: 1.4;
}

.product-card-price {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--fg-primary);
  margin-top: 0.4rem;
}

.product-card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.4rem;
}

.product-card-sizes {
  display: flex;
  gap: 0.3rem;
  flex-wrap: wrap;
}

.size-chip {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.05em;
  color: var(--fg-dim);
  border: 1px solid #2a2a2a;
  padding: 0.15rem 0.35rem;
}

.size-chip--more { color: var(--accent); border-color: var(--accent); }

/* ---- SHOP MANIFESTO ---- */
.shop-manifesto {
  padding: 6rem 2rem;
  background: var(--bg-secondary);
  border-top: 1px solid #1a1a1a;
}

.shop-manifesto-inner {
  max-width: 900px;
  margin: 0 auto;
}

.manifesto-sticky-row {
  display: flex;
  align-items: flex-start;
  margin-bottom: 3rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.shop-manifesto-text {
  font-size: 1.05rem;
  color: var(--fg-secondary);
  font-weight: 300;
  line-height: 1.8;
  max-width: 700px;
}

/* ---- COLLECTION HEADER ---- */
.collection-header {
  padding-top: 5rem;
  display: grid;
  grid-template-columns: 1fr 300px;
  min-height: 50vh;
  position: relative;
  overflow: hidden;
}

.collection-header-inner {
  padding: 4rem 2rem 4rem 2rem;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.collection-header-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--fg-dim);
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.collection-header-title {
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.0;
  color: var(--fg-primary);
  margin-bottom: 1rem;
}

.collection-header-tagline {
  font-size: 1.1rem;
  color: var(--accent);
  font-weight: 300;
  font-family: var(--font-hand);
  font-size: 1.4rem;
  margin-bottom: 1.2rem;
}

.collection-header-desc {
  font-size: 0.95rem;
  color: var(--fg-secondary);
  font-weight: 300;
  line-height: 1.7;
  max-width: 500px;
}

.collection-header-cover {
  position: relative;
}

.collection-header-cover::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--bg-primary) 0%, transparent 40%);
}

/* ---- COLLECTION PRODUCTS ---- */
.collection-products {
  padding: 4rem 2rem 8rem;
  background: var(--bg-primary);
}

.collection-products-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.collection-count {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--fg-dim);
  letter-spacing: 0.05em;
  margin-bottom: 3rem;
}

.collection-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
}

.collection-empty {
  text-align: center;
  padding: 6rem 0;
}

/* ---- PRODUCT PAGE ---- */
.product-page {
  padding-top: 5rem;
  min-height: 80vh;
  background: var(--bg-primary);
}

.product-page-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 4rem 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.product-visual {
  position: sticky;
  top: 6rem;
}

.product-main-image {
  width: 100%;
  aspect-ratio: 3/4;
  position: relative;
  margin-bottom: 1.5rem;
  overflow: hidden;
  transition: background 0.4s ease;
}

.product-image-noise {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.05'/%3E%3C/svg%3E");
  pointer-events: none;
}

.sold-out-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(13, 13, 13, 0.6);
  font-family: var(--font-mono);
  font-size: 1rem;
  letter-spacing: 0.2em;
  color: var(--fg-secondary);
}

.product-color-gallery {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.color-preview-btn {
  width: 40px;
  height: 40px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.2s;
}

.color-preview-btn:hover,
.color-preview-btn.active {
  border-color: var(--fg-primary);
  transform: scale(1.1);
}

.product-drop-tag {
  margin-top: 1rem;
}

.product-drop-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--fg-dim);
  letter-spacing: 0.1em;
}

/* ---- PRODUCT INFO PANEL ---- */
.product-info-panel {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-top: 1rem;
}

.product-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--fg-primary);
  margin-bottom: 0.5rem;
  margin-top: 0.5rem;
}

.product-tagline {
  font-family: var(--font-hand);
  font-size: 1.3rem;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.product-pricing {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 2rem;
}

.product-price {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  color: var(--fg-primary);
  font-weight: 500;
}

.product-compare-price {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--fg-dim);
  text-decoration: line-through;
}

/* ---- SELECTORS ---- */
.product-selector {
  margin-bottom: 1.5rem;
}

.selector-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  font-size: 0.85rem;
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
  color: var(--fg-secondary);
}

.selector-selected-value {
  color: var(--fg-primary);
}

.color-swatches {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.color-swatch {
  width: 36px;
  height: 36px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.15s;
}

.color-swatch:hover,
.color-swatch.active {
  border-color: var(--fg-primary);
  transform: scale(1.1);
}

.size-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.size-btn {
  padding: 0.6rem 1rem;
  border: 1px solid #2a2a2a;
  background: transparent;
  color: var(--fg-secondary);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.size-btn:hover {
  border-color: var(--fg-secondary);
  color: var(--fg-primary);
}

.size-btn.active {
  border-color: var(--fg-primary);
  color: var(--fg-primary);
  background: rgba(232, 224, 212, 0.05);
}

/* ---- ADD TO CART ---- */
.atc-section {
  margin: 2rem 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.atc-btn {
  width: 100%;
  padding: 1.1rem 2rem;
  background: var(--fg-primary);
  color: var(--bg-primary);
  border: none;
  font-family: var(--font-main);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}

.atc-btn:hover:not(:disabled) {
  background: var(--cream);
  transform: translateY(-1px);
}

.atc-btn--disabled {
  background: #2a2a2a;
  color: var(--fg-dim);
  cursor: not-allowed;
}

.atc-note {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--fg-dim);
  letter-spacing: 0.05em;
  text-align: center;
}

.atc-sticky {
  align-self: flex-start;
}

/* ---- PRODUCT DESCRIPTION ---- */
.product-description {
  margin: 1rem 0;
  padding-top: 1.5rem;
  border-top: 1px solid #1a1a1a;
}

.product-desc-text {
  font-size: 0.95rem;
  color: var(--fg-secondary);
  font-weight: 300;
  line-height: 1.8;
}

/* ---- ACCORDION ---- */
.product-details-accordion {
  border-top: 1px solid #1a1a1a;
  margin-top: 0.5rem;
}

.details-summary {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  color: var(--fg-secondary);
  padding: 1rem 0;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.2s;
}

.details-summary:hover { color: var(--fg-primary); }

.details-summary::after {
  content: '+';
  font-size: 1rem;
  color: var(--accent);
}

details[open] .details-summary::after { content: '−'; }

.details-body {
  font-size: 0.9rem;
  color: var(--fg-secondary);
  font-weight: 300;
  line-height: 1.7;
  padding-bottom: 1.5rem;
}

.sizes-available {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--fg-dim);
  margin-top: 0.75rem;
  letter-spacing: 0.05em;
}

/* ---- RELATED SECTION ---- */
.related-section {
  padding: 6rem 2rem;
  background: var(--bg-secondary);
  border-top: 1px solid #1a1a1a;
}

.related-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

/* ---- SHOP FOOTER ---- */
.shop-footer {
  padding: 3rem 2rem;
  background: var(--bg-primary);
  border-top: 1px solid #1a1a1a;
}

.shop-footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
}

.footer-wordmark {
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.1em;
  color: var(--fg-primary);
  display: block;
}

.footer-sub {
  font-family: var(--font-hand);
  font-size: 1rem;
  color: var(--accent);
  display: block;
  margin-top: 0.25rem;
}

.shop-footer-nav {
  display: flex;
  gap: 2rem;
  justify-content: center;
}

.shop-footer-nav a {
  color: var(--fg-dim);
  text-decoration: none;
  font-size: 0.85rem;
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
  transition: color 0.2s;
}

.shop-footer-nav a:hover { color: var(--fg-primary); }

.shop-footer-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1rem;
}

.footer-year {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--fg-dim);
}

.footer-sticky {
  align-self: flex-end;
}

/* ---- ERROR PAGE ---- */
.error-page {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 2rem;
  background: var(--bg-primary);
}

.error-page-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.error-code {
  font-size: clamp(4rem, 12vw, 8rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--fg-dim);
}

.error-message {
  font-size: 1rem;
  color: var(--fg-secondary);
  font-weight: 300;
  max-width: 400px;
  line-height: 1.6;
}

.error-link {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: letter-spacing 0.2s;
}

.error-link:hover { letter-spacing: 0.1em; }

/* ---- MOBILE ---- */
@media (max-width: 768px) {
  .shop-nav { padding: 1rem 1.2rem; }
  .nav-links { display: none; }

  .collections-grid,
  .featured-grid,
  .related-grid { grid-template-columns: 1fr; }

  .collection-grid { grid-template-columns: 1fr; }

  .collection-header { grid-template-columns: 1fr; }
  .collection-header-cover { display: none; }

  .product-page-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem 1.5rem;
  }

  .product-visual { position: static; }

  .shop-footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }

  .shop-footer-nav { flex-direction: column; gap: 1rem; align-items: center; }
  .shop-footer-meta { align-items: center; }

  .manifesto-sticky-row { justify-content: center; }
}

@media (max-width: 480px) {
  .shop-hero-title { font-size: 3rem; }
  .product-title { font-size: 2rem; }
  .collection-header-title { font-size: 2.5rem; }
}
