/* store.css — Store-specific styles. Landing page theme variables from theme.css apply. */

/* ===== NAV ===== */
.store-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.store-nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.store-nav-brand {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--fg);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.store-nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.nav-link {
  font-size: 0.9rem;
  color: var(--fg-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-link:hover { color: var(--fg); }
.cart-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--fg);
  position: relative;
  padding: 0.25rem;
}
.cart-count {
  position: absolute;
  top: -4px;
  right: -6px;
  background: var(--accent);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== STORE HERO ===== */
.store-hero {
  min-height: 40vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 5rem 2rem 3rem;
  position: relative;
  overflow: hidden;
}
.store-hero-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-size: clamp(5rem, 18vw, 16rem);
  font-weight: 800;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,107,53,0.06);
  letter-spacing: -0.04em;
  user-select: none;
  pointer-events: none;
  white-space: nowrap;
}
.store-hero-content {
  position: relative;
  z-index: 1;
}
.store-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 0.75rem;
}
.store-hero .hero-sub {
  font-size: 1rem;
  color: var(--fg-muted);
  max-width: 400px;
  margin: 0 auto;
}

/* ===== MAIN CONTENT ===== */
.store-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 2rem 6rem;
}
.store-section { margin-bottom: 5rem; }
.store-section-header {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.store-section-header h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* ===== PRODUCT GRID ===== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
}
.product-card {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-secondary);
  border: 1px solid rgba(255,255,255,0.05);
  transition: border-color 0.2s, transform 0.2s;
}
.product-card:hover {
  border-color: rgba(255,107,53,0.3);
  transform: translateY(-3px);
}
.product-image-wrap {
  aspect-ratio: 1;
  overflow: hidden;
  background: #1a1a1a;
}
.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.product-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fg-muted);
}
.product-info {
  padding: 1rem 1.25rem 1.25rem;
}
.product-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 0.35rem;
}
.product-price {
  font-size: 0.95rem;
  color: var(--accent);
  font-weight: 600;
}

/* ===== PRODUCT DETAIL ===== */
.product-detail {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 2rem 6rem;
}
.product-detail-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.product-detail-image img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}
.product-detail-image .product-image-placeholder {
  background: var(--bg-secondary);
  border-radius: 8px;
}
.product-detail-info { padding-top: 1rem; }
.back-link {
  display: inline-block;
  font-size: 0.85rem;
  color: var(--fg-muted);
  text-decoration: none;
  margin-bottom: 1.5rem;
  transition: color 0.2s;
}
.back-link:hover { color: var(--fg); }
.product-detail-info h1 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
  line-height: 1.15;
}
.product-detail-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  font-family: var(--font-display);
  margin-bottom: 1.25rem;
}
.product-detail-desc {
  font-size: 0.95rem;
  color: var(--fg-muted);
  line-height: 1.8;
  margin-bottom: 2rem;
}
.size-selector { margin-bottom: 1.5rem; }
.size-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 0.75rem;
}
.size-options {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.size-btn {
  background: var(--bg-secondary);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--fg);
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
  font-family: var(--font-body);
  transition: border-color 0.2s, background 0.2s;
}
.size-btn:hover { border-color: var(--accent); }
.size-btn.selected {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.btn-add-cart {
  width: 100%;
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 1rem;
  font-size: 1rem;
  font-weight: 700;
  font-family: var(--font-display);
  border-radius: 6px;
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: opacity 0.2s, transform 0.2s;
  margin-bottom: 1.5rem;
}
.btn-add-cart:hover { opacity: 0.9; transform: scale(1.01); }
.btn-add-cart:active { transform: scale(0.99); }
.product-detail-meta {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.product-detail-meta span {
  font-size: 0.85rem;
  color: var(--fg-muted);
}

/* ===== CART DRAWER ===== */
.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 400px;
  max-width: 100vw;
  background: var(--bg-secondary);
  border-left: 1px solid rgba(255,255,255,0.08);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  z-index: 200;
  display: flex;
  flex-direction: column;
}
.cart-drawer.open { transform: translateX(0); }
.cart-drawer-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}
.cart-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.cart-drawer-header h2 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
}
.cart-close {
  background: none;
  border: none;
  color: var(--fg-muted);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
  padding: 0;
}
.cart-close:hover { color: var(--fg); }
.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
}
.cart-item {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 1rem;
  align-items: start;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.cart-item:last-child { border-bottom: none; }
.cart-item-img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 4px;
  background: #1a1a1a;
}
.cart-item-name {
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}
.cart-item-size {
  font-size: 0.8rem;
  color: var(--fg-muted);
  margin-bottom: 0.4rem;
}
.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}
.qty-btn {
  width: 24px;
  height: 24px;
  background: rgba(255,255,255,0.08);
  border: none;
  color: var(--fg);
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.qty-btn:hover { background: rgba(255,255,255,0.15); }
.cart-item-qty { font-size: 0.9rem; min-width: 20px; text-align: center; }
.cart-item-price {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
  text-align: right;
}
.cart-item-remove {
  background: none;
  border: none;
  color: var(--fg-muted);
  font-size: 0.75rem;
  cursor: pointer;
  padding: 0.25rem 0;
  align-self: end;
}
.cart-item-remove:hover { color: #e55353; }
.cart-empty {
  text-align: center;
  color: var(--fg-muted);
  padding: 3rem 1.5rem;
  flex: 1;
  display: none;
  align-items: center;
  justify-content: center;
}
.cart-empty.visible { display: flex; }
.cart-footer {
  padding: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.cart-total {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.cart-total span:last-child { color: var(--accent); }
.btn-checkout {
  width: 100%;
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 1rem;
  font-size: 1rem;
  font-weight: 700;
  font-family: var(--font-display);
  border-radius: 6px;
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: opacity 0.2s;
}
.btn-checkout:hover { opacity: 0.9; }
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 199;
  display: none;
}
.cart-overlay.visible { display: block; }

/* ===== CHECKOUT SUCCESS ===== */
.checkout-success {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.success-inner { text-align: center; max-width: 480px; }
.success-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--accent-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
}
.success-inner h1 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
}
.success-inner p { color: var(--fg-muted); margin-bottom: 0.5rem; }
.success-email { font-size: 0.9rem; margin-bottom: 2.5rem; }
.btn-continue {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  padding: 0.85rem 2rem;
  font-weight: 700;
  font-family: var(--font-display);
  border-radius: 6px;
  font-size: 1rem;
  letter-spacing: 0.02em;
  transition: opacity 0.2s;
}
.btn-continue:hover { opacity: 0.9; }

/* ===== ERROR PAGES ===== */
.error-page {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}
.error-page h1 {
  font-family: var(--font-display);
  font-size: 6rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 1rem;
}
.error-page p { color: var(--fg-muted); margin-bottom: 2rem; }

/* ===== FOOTER ===== */
.store-footer {
  padding: 2rem;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.04);
  font-size: 0.85rem;
  color: var(--fg-muted);
}

/* ===== TIKTOK SHOP BUTTON ===== */
.tiktok-shop-btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: #ff2d55;
  color: #fff;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 700;
  font-family: var(--font-display);
  padding: 0.45rem 0.85rem;
  border-radius: 6px;
  transition: opacity 0.2s, transform 0.2s;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.tiktok-shop-btn:hover { opacity: 0.88; transform: scale(1.03); }
.tiktok-shop-btn:active { transform: scale(0.97); }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .product-detail-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .store-nav-links .nav-link { display: none; }
  .cart-drawer { width: 100%; }
}
@media (max-width: 480px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
}