/* =========================
   FORJEN – Core Collection Page
   ========================= */

/* =========================
   Hero Section
   ========================= */

.core-hero{
  margin-bottom: 56px;
}

.core-hero-title{
  font-size: clamp(72px, 10vw, 180px);
  line-height: 0.85;
  margin-bottom: 24px;
  color: var(--accent);
}

.core-hero-desc{
  font-size: 18px;
  line-height: 1.55;
  max-width: 680px;
  margin-bottom: 12px;
}

.core-hero-tagline{
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.30);
  max-width: 640px;
}

/* =========================
   Toolbar
   ========================= */

.core-toolbar{
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--line-1);
}

.core-count{
  color: rgba(255,255,255,0.35);
}

/* Future: Filter/sort controls go here */
.core-filters{
  display: flex;
  gap: 16px;
  align-items: center;
}

/* =========================
   Product Grid
   ========================= */

.core-grid{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 32px;
  margin-bottom: 80px;
}

/* Product Card */
.core-product{
  border: 1px solid var(--line-1);
  background: rgba(0,0,0,0.15);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.core-product:hover{
  border-color: var(--line-4);
  transform: translateY(-6px);
  background: rgba(0,0,0,0.25);
  box-shadow: 
    0 16px 32px rgba(0,0,0,0.4),
    0 0 0 1px rgba(255,255,255,0.05);
}

/* Product Image */
.core-product-image{
  aspect-ratio: 1;
  overflow: hidden;
  background: rgba(255,255,255,0.01);
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--line-1);
  position: relative;
}

.core-product-image img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.core-product:hover .core-product-image img{
  transform: scale(1.1);
}

/* Product badge (optional - for "New", "Bestseller", etc.) */
.core-product-badge{
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(0,0,0,0.85);
  border: 1px solid rgba(255,255,255,0.15);
  padding: 6px 12px;
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  color: rgba(255,255,255,0.75);
  backdrop-filter: blur(8px);
}

/* Product Info */
.core-product-info{
  padding: 28px 24px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.core-product-name{
  font-family: 'Oswald', sans-serif;
  font-size: 18px;
  letter-spacing: 0.10em;
  margin-bottom: 8px;
  color: rgba(255,255,255,0.90);
  text-transform: uppercase;
}

.core-product-desc{
  font-size: 13px;
  line-height: 1.65;
  margin-bottom: auto;
  color: rgba(255,255,255,0.52);
  padding-bottom: 20px;
}

/* Size Selector */
.core-product-sizes{
  margin-bottom: 20px;
}

.core-size-label{
  font-size: 10px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 10px;
  display: block;
}

.core-size-options{
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* Size buttons - Universal white theme */
.core-size-btn{
  background: transparent;
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.45);
  padding: 10px 16px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Work Sans', sans-serif;
  min-width: 50px;
  text-align: center;
}

.core-size-btn:hover{
  border-color: rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.70);
  background: rgba(255,255,255,0.03);
}

/* Active size - white highlight */
.core-size-btn.active{
  border-color: rgba(255,255,255,0.50);
  background: rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.95);
}

.core-size-btn:disabled{
  opacity: 0.25;
  cursor: not-allowed;
  text-decoration: line-through;
}

/* Product Footer */
.core-product-footer{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid var(--line-1);
}

.core-product-price{
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.05em;
  font-family: 'Oswald', sans-serif;
  color: rgba(255,255,255,0.92);
}

/* Buy button - Universal white theme */
.core-buy-btn{
  border: 1px solid rgba(255,255,255,0.20);
  padding: 12px 20px;
  background: transparent;
  color: rgba(255,255,255,0.70);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.25s;
  white-space: nowrap;
  font-family: 'Work Sans', sans-serif;
}

.core-buy-btn:hover{
  border-color: rgba(255,255,255,0.45);
  color: rgba(255,255,255,0.95);
  background: rgba(255,255,255,0.06);
}

.core-buy-btn:disabled{
  opacity: 0.4;
  cursor: not-allowed;
}

/* Shake animation for "CHOOSE YOUR MARK" reminder */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-8px); }
  75% { transform: translateX(8px); }
}

.shake-reminder{
  animation: shake 0.3s;
}

/* =========================
   Drop CTA Section
   ========================= */

.drop-cta-section{
  padding: 80px 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.2) 100%);
}

.drop-cta-section .container{
  border-top: 1px solid var(--line-1);
  padding-top: 80px;
}

.drop-cta-content{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 48px;
}

/* CTA button - Universal white theme */
.cta-btn{
  border: 1.5px solid rgba(255,255,255,0.25);
  padding: 18px 32px;
  background: transparent;
  color: rgba(255,255,255,0.85);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  font-family: 'Work Sans', sans-serif;
  white-space: nowrap;
}

.cta-btn:hover{
  border-color: rgba(255,255,255,0.50);
  background: rgba(255,255,255,0.08);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.3);
}

/* =========================
   Header Adjustments
   ========================= */

.status-link-active{
  color: rgba(255,255,255,0.80);
  border-bottom-color: rgba(255,255,255,0.35);
}

/* Clickable drop pill on core page */
.status-pill-link{
  text-decoration: none;
  transition: all 0.25s;
  cursor: pointer;
}

.status-pill-link:hover{
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.20);
  color: rgba(255,255,255,0.65);
}

.status-pill-link:focus-visible{
  outline: 2px solid rgba(255,255,255,0.25);
  outline-offset: 3px;
}

/* =========================
   Responsive
   ========================= */

@media (max-width: 1024px){
  .core-grid{
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 28px;
  }

  .drop-cta-content{
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
  }

  .cta-btn{
    width: 100%;
    padding: 16px 24px;
  }
}

@media (max-width: 768px){
  .core-hero-title{
    font-size: 72px;
  }

  .core-grid{
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .core-product{
    max-width: 480px;
    margin: 0 auto;
  }

  .core-toolbar{
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .drop-cta-section{
    padding: 56px 0;
  }
}

/* =========================
   Empty State
   ========================= */

.core-empty{
  text-align: center;
  padding: 80px 20px;
}

.core-empty-icon{
  font-size: 48px;
  margin-bottom: 20px;
  opacity: 0.2;
}

.core-empty-text{
  font-size: 16px;
  color: rgba(255,255,255,0.40);
  max-width: 400px;
  margin: 0 auto;
}

/* =========================
   Loading State
   ========================= */

.core-loading{
  text-align: center;
  padding: 100px 20px;
}

.core-loading-spinner{
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255,255,255,0.1);
  border-top-color: rgba(255,255,255,0.5);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 20px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.core-loading-text{
  font-size: 12px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
}

/* =========================
   Accessibility
   ========================= */

.core-size-btn:focus-visible,
.core-buy-btn:focus-visible,
.cta-btn:focus-visible{
  outline: 2px solid rgba(255,255,255,0.40);
  outline-offset: 3px;
}

/* High contrast mode */
@media (prefers-contrast: high) {
  .core-product{
    border-width: 2px;
  }
  
  .core-size-btn{
    border-width: 2px;
  }
  
  .core-size-btn.active{
    border-width: 3px;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .core-product,
  .core-product-image img,
  .core-size-btn,
  .core-buy-btn,
  .cta-btn {
    transition: none !important;
  }
  
  .core-product:hover{
    transform: none;
  }
  
  .core-product:hover .core-product-image img{
    transform: none;
  }
}