/* PromptThreads Store — Shared Styles */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --black: #0a0a0a;
  --white: #fafafa;
  --gray: #888;
  --gray-light: #aaa;
  --green: #00ff88;
  --green-dim: #00cc6a;
  --green-dark: #00aa55;
  --surface: #141414;
  --surface-hover: #1a1a1a;
  --border: #222;
  --border-hover: #333;
  --danger: #ff4444;
  --danger-dim: #cc3333;
}

body {
  font-family: 'Space Grotesk', sans-serif;
  background: var(--black);
  color: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

.mono { font-family: 'DM Mono', monospace; }

/* NOISE TEXTURE */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 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.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

/* NAV */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 48px;
  border-bottom: 1px solid var(--border);
  position: relative;
  z-index: 100;
}

.logo {
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.5px;
  text-decoration: none;
  color: var(--white);
}
.logo span { color: var(--green); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  color: var(--gray);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
}

.nav-cart {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
}

.cart-badge {
  background: var(--green);
  color: var(--black);
  font-size: 11px;
  font-weight: 700;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* HAMBURGER */
.hamburger-btn {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 24px;
  cursor: pointer;
  padding: 4px;
  z-index: 101;
}

/* MAIN CONTENT */
main {
  position: relative;
  z-index: 1;
  min-height: calc(100vh - 180px);
}

/* SECTION HEADERS */
.section-label {
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 700;
  letter-spacing: -2px;
  margin-bottom: 16px;
}

.section-subtitle {
  color: var(--gray);
  font-size: 18px;
  line-height: 1.6;
  max-width: 600px;
}

/* PRODUCT GRID */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* PRODUCT CARD */
.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
}
.product-card:hover {
  border-color: var(--green);
  transform: translateY(-4px);
}

.product-card-image {
  width: 100%;
  aspect-ratio: 1;
  background: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.product-card-image .design-preview {
  font-family: 'DM Mono', monospace;
  font-size: 28px;
  font-weight: 700;
  color: var(--white);
  text-align: center;
  padding: 24px;
  line-height: 1.3;
}

.product-card-image .design-icon {
  position: absolute;
  top: 16px;
  left: 16px;
  font-family: 'DM Mono', monospace;
  font-size: 20px;
  color: var(--green);
  opacity: 0.5;
}

.product-card-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 4px 12px;
  border-radius: 99px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.badge-flagship {
  background: var(--green);
  color: var(--black);
}
.badge-new {
  background: transparent;
  border: 1px solid var(--green);
  color: var(--green);
}
.badge-exclusive {
  background: #ff6b00;
  color: var(--white);
}

/* SOCIAL PROOF BADGE (shop cards) */
.social-proof-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* URGENCY BADGES (shop cards) */
.urgency-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 3px 10px;
  border-radius: 99px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.urgency-exclusive {
  background: rgba(255, 107, 0, 0.9);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.2);
}
.urgency-new {
  background: var(--green);
  color: var(--black);
}

.product-card-info {
  padding: 20px 24px 24px;
}

.product-card-name {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
}

.product-card-tagline {
  font-size: 13px;
  color: var(--gray);
  line-height: 1.5;
  margin-bottom: 12px;
}

.product-card-price {
  font-size: 18px;
  font-weight: 700;
  color: var(--green);
}

/* PRODUCT DETAIL */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  padding: 64px 48px;
  max-width: 1200px;
  margin: 0 auto;
}

.product-image-large {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.product-image-large .design-preview-lg {
  font-family: 'DM Mono', monospace;
  font-size: 48px;
  font-weight: 700;
  color: var(--white);
  text-align: center;
  padding: 40px;
  line-height: 1.3;
}

.product-info-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
}

.product-info-panel .badge-inline {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  width: fit-content;
}

.product-info-panel h1 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1.1;
}

.product-info-panel .tagline {
  font-size: 18px;
  color: var(--gray);
  line-height: 1.5;
}

.product-info-panel .description {
  font-size: 15px;
  color: var(--gray-light);
  line-height: 1.7;
}

.product-price-large {
  font-size: 32px;
  font-weight: 700;
  color: var(--green);
}

/* SIZE SELECTOR */
.size-selector {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.size-selector label {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gray);
}

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

.size-btn {
  padding: 10px 20px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: transparent;
  color: var(--white);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  min-width: 52px;
  text-align: center;
}
.size-btn:hover {
  border-color: var(--gray);
}
.size-btn.selected {
  border-color: var(--green);
  background: rgba(0, 255, 136, 0.08);
  color: var(--green);
}

/* QUANTITY */
.quantity-control {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  width: fit-content;
}

.qty-btn {
  padding: 10px 16px;
  background: var(--surface);
  border: none;
  color: var(--white);
  font-size: 16px;
  cursor: pointer;
  transition: background 0.2s;
  font-family: 'Space Grotesk', sans-serif;
}
.qty-btn:hover {
  background: var(--surface-hover);
}

.qty-value {
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  min-width: 48px;
  text-align: center;
  background: transparent;
  color: var(--white);
}

/* BUTTONS */
.btn {
  padding: 14px 32px;
  border: none;
  border-radius: 8px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
}

.btn-primary {
  background: var(--green);
  color: var(--black);
}
.btn-primary:hover {
  background: var(--green-dim);
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--border);
}
.btn-secondary:hover {
  border-color: var(--gray);
}

.btn-danger {
  background: transparent;
  color: var(--danger);
  border: 1px solid transparent;
  padding: 8px 12px;
  font-size: 13px;
}
.btn-danger:hover {
  border-color: var(--danger);
}

.btn-lg {
  padding: 16px 40px;
  font-size: 16px;
}

.btn-full {
  width: 100%;
}

.product-actions {
  display: flex;
  gap: 12px;
}
.product-actions .btn {
  flex: 1;
}

/* CART PAGE */
.cart-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 64px 48px;
}

.cart-header {
  margin-bottom: 48px;
}

.cart-items {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}

.cart-item {
  display: grid;
  grid-template-columns: 80px 1fr auto auto auto;
  gap: 20px;
  align-items: center;
  padding: 20px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.cart-item-image {
  width: 80px;
  height: 80px;
  background: #111;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'DM Mono', monospace;
  font-size: 16px;
  color: var(--green);
}

.cart-item-info h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}
.cart-item-info .size-label {
  font-size: 13px;
  color: var(--gray);
}

.cart-item-price {
  font-size: 16px;
  font-weight: 600;
  color: var(--white);
  min-width: 70px;
  text-align: right;
}

/* CART SUMMARY */
.cart-summary {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  font-size: 15px;
}
.cart-summary-row.total {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  margin-top: 8px;
  font-size: 20px;
  font-weight: 700;
}
.cart-summary-row.total .amount {
  color: var(--green);
}

.cart-note {
  margin-top: 16px;
  padding: 16px;
  background: rgba(0, 255, 136, 0.05);
  border: 1px solid rgba(0, 255, 136, 0.15);
  border-radius: 8px;
  font-size: 13px;
  color: var(--gray-light);
  line-height: 1.6;
}

.cart-empty {
  text-align: center;
  padding: 80px 24px;
}
.cart-empty h2 {
  font-size: 24px;
  margin-bottom: 12px;
}
.cart-empty p {
  color: var(--gray);
  margin-bottom: 32px;
}

/* SUCCESS PAGE */
.success-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 80px 48px;
  text-align: center;
}

.success-icon {
  width: 80px;
  height: 80px;
  background: rgba(0, 255, 136, 0.1);
  border: 2px solid var(--green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  margin: 0 auto 32px;
}

.success-container h1 {
  font-size: 36px;
  margin-bottom: 16px;
}

.success-container .subtitle {
  color: var(--gray);
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 48px;
}

.success-details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
  text-align: left;
  margin-bottom: 48px;
}

.success-details h3 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gray);
  margin-bottom: 16px;
}

.success-details p {
  font-size: 15px;
  color: var(--gray-light);
  line-height: 1.7;
}

/* TOAST */
.toast {
  position: fixed;
  bottom: 32px;
  right: 32px;
  background: var(--surface);
  border: 1px solid var(--green);
  border-radius: 12px;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 9999;
  transform: translateY(120%);
  transition: transform 0.3s ease;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}
.toast.show {
  transform: translateY(0);
}
.toast-icon {
  color: var(--green);
  font-size: 18px;
}
.toast-message {
  font-size: 14px;
  font-weight: 500;
}

/* FOOTER */
footer {
  padding: 40px 48px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 1;
}
footer p {
  color: var(--gray);
  font-size: 13px;
}
.footer-badge {
  font-size: 12px;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 99px;
  color: var(--gray);
}

/* DIVIDER */
.divider {
  height: 1px;
  background: var(--border);
  margin: 0 48px;
  position: relative;
  z-index: 1;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .product-detail {
    gap: 40px;
    padding: 48px 24px;
  }
}

@media (max-width: 768px) {
  nav { padding: 20px 24px; }

  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--black);
    z-index: 100;
    justify-content: center;
    align-items: center;
    gap: 24px;
  }
  .nav-links.open a {
    font-size: 24px;
  }

  .hamburger-btn { display: block; }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .product-detail {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 32px 24px;
  }

  .cart-container { padding: 32px 24px; }

  .cart-item {
    grid-template-columns: 60px 1fr;
    gap: 12px;
  }
  .cart-item-price,
  .cart-item .quantity-control,
  .cart-item .btn-danger {
    grid-column: 2;
  }

  .success-container { padding: 48px 24px; }

  footer {
    flex-direction: column;
    gap: 16px;
    text-align: center;
    padding: 32px 24px;
  }
}

@media (max-width: 560px) {
  nav { padding: 16px 20px; }

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

  .product-card-image .design-preview {
    font-size: 22px;
  }

  .product-actions {
    flex-direction: column;
  }

  .toast {
    left: 16px;
    right: 16px;
    bottom: 16px;
  }
}

/* LOADING STATE */
.skeleton {
  background: linear-gradient(90deg, var(--surface) 25%, var(--border) 50%, var(--surface) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 8px;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* T-SHIRT SVG STYLES */
.tshirt-mockup {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tshirt-mockup svg {
  width: 80%;
  height: 80%;
  opacity: 0.15;
  position: absolute;
}

.tshirt-mockup .design-overlay {
  position: relative;
  z-index: 2;
  font-family: 'DM Mono', monospace;
  font-weight: 700;
  text-align: center;
  line-height: 1.3;
}

/* IMPROVED CTA — product detail page */
.product-actions {
  display: flex;
  gap: 12px;
  margin-top: 4px;
}
.product-actions .btn {
  flex: 1;
}

/* Primary CTA — larger, bolder, more prominent */
.btn-cta-primary {
  padding: 18px 40px;
  background: var(--green);
  color: var(--black);
  border: none;
  border-radius: 10px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  letter-spacing: 0.3px;
}
.btn-cta-primary:hover {
  background: var(--green-dim);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0, 255, 136, 0.3);
}
.btn-cta-primary:active {
  transform: translateY(0);
}

/* Secondary CTA */
.btn-cta-secondary {
  padding: 18px 40px;
  background: transparent;
  color: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex: 1;
}
.btn-cta-secondary:hover {
  border-color: var(--green);
  color: var(--green);
}

/* Shipping micro-copy below CTA */
.cta-shipping-note {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--gray);
  margin-top: 10px;
  justify-content: center;
}
.cta-shipping-note svg {
  color: var(--green);
  flex-shrink: 0;
}

/* CROSS-SELL SECTION */
.cross-sell-section {
  border-top: 1px solid var(--border);
  padding: 48px 0 64px;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 48px;
  padding-right: 48px;
}

.cross-sell-header {
  margin-bottom: 32px;
}

.cross-sell-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 6px;
}

.cross-sell-subtitle {
  font-size: 14px;
  color: var(--gray);
}

.cross-sell-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.cross-sell-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: border-color 0.25s, transform 0.25s;
}
.cross-sell-card:hover {
  border-color: var(--green);
  transform: translateY(-3px);
}

.cross-sell-card-image {
  aspect-ratio: 1;
  background: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.cross-sell-card-image img {
  max-width: 60%;
  max-height: 60%;
  object-fit: contain;
}

.cross-sell-card-info {
  padding: 14px 16px;
}

.cross-sell-card-name {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 4px;
  line-height: 1.3;
}

.cross-sell-card-price {
  font-size: 14px;
  font-weight: 700;
  color: var(--green);
}

@media (max-width: 1024px) {
  .cross-sell-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .cross-sell-section {
    padding-left: 24px;
    padding-right: 24px;
    padding-bottom: 48px;
  }
  .cross-sell-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

@media (max-width: 560px) {
  .cross-sell-grid {
    grid-template-columns: 1fr;
  }
  .btn-cta-primary, .btn-cta-secondary {
    padding: 16px 24px;
    font-size: 15px;
  }
}
