/* shop.css — Premium KJV T-Shirt Shop */

:root {
  --bg-primary: #0a0a0c;
  --bg-secondary: #121216;
  --bg-tertiary: #1b1b22;
  --text-primary: #ffffff;
  --text-secondary: #a0a0ab;
  --gold: #dfb26c;
  --gold-hover: #f1c784;
  --accent-blue: #3b82f6;
  --accent-red: #ef4444;
  --border: rgba(223, 178, 108, 0.15);
  --border-focus: rgba(223, 178, 108, 0.4);
  --font-sans: 'Outfit', sans-serif;
  --font-serif: 'Cinzel', serif;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  --header-height: 80px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, .logo-text {
  font-family: var(--font-serif);
  font-weight: 600;
  letter-spacing: 0.05em;
}

.gold-text {
  color: var(--gold);
  background: linear-gradient(135deg, #dfb26c 0%, #f7dca3 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: rgba(10, 10, 12, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}

.header-container {
  max-width: 1200px;
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-img {
  height: 40px;
  width: auto;
}

.logo-text {
  font-size: 1.2rem;
  letter-spacing: 0.1em;
}

nav {
  display: flex;
  gap: 32px;
}

nav a {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
}

nav a:hover {
  color: var(--gold);
}

.cart-trigger {
  position: relative;
  cursor: pointer;
  padding: 8px;
  font-size: 1.25rem;
  color: var(--text-primary);
  transition: transform 0.2s ease;
}

.cart-trigger:hover {
  transform: scale(1.05);
}

.cart-count {
  position: absolute;
  top: -2px;
  right: -2px;
  background-color: var(--gold);
  color: var(--bg-primary);
  font-size: 0.7rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Hero Section */
.shop-hero {
  position: relative;
  height: 60vh;
  min-height: 450px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: var(--header-height);
  background: url('/images/shop/heavenly_tabernacle_shirt.webp') no-repeat center center;
  background-size: cover;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(10, 10, 12, 0.4) 0%, rgba(10, 10, 12, 0.95) 90%), rgba(10, 10, 12, 0.65);
}

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

.hero-subtitle {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--gold);
  margin-bottom: 16px;
  display: block;
}

.hero-title {
  font-size: 3rem;
  line-height: 1.2;
  margin-bottom: 24px;
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 650px;
  margin: 0 auto 32px;
}

/* Interactive Showroom */
.showroom {
  padding: 80px 24px;
  max-width: 1200px;
  margin: 0 auto;
  border-bottom: 1px solid var(--border);
}

.showroom-container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}

.showroom-preview {
  background: radial-gradient(circle, #202028 0%, #0d0d12 100%);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.tshirt-mockup-wrapper {
  position: relative;
  width: 100%;
  max-width: 480px;
  aspect-ratio: 1;
}

.blank-shirt {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* The magic transparent DTG print overlay */
.design-print {
  position: absolute;
  top: 25%;
  left: 25%;
  width: 50%;
  height: 50%;
  object-fit: contain;
  mix-blend-mode: screen; /* Removes solid black background, blends artwork into shirt texture */
  opacity: 0.92;
  pointer-events: none;
  filter: contrast(1.15) brightness(1.05);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.showroom-details {
  display: flex;
  flex-direction: column;
}

.detail-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--gold);
  margin-bottom: 8px;
}

.selected-product-title {
  font-size: 2.2rem;
  margin-bottom: 12px;
}

.price-row {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
}

.price {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--text-primary);
}

.shipping-tag {
  font-size: 0.85rem;
  color: #10b981;
  background-color: rgba(16, 185, 129, 0.1);
  padding: 4px 12px;
  border-radius: 30px;
  font-weight: 500;
}

.scripture-box {
  background: var(--bg-secondary);
  border-left: 3px solid var(--gold);
  padding: 16px 20px;
  margin-bottom: 24px;
  border-radius: 0 12px 12px 0;
}

.scripture-header {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.scripture-quote {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text-primary);
  font-style: italic;
}

.product-description {
  color: var(--text-secondary);
  margin-bottom: 24px;
  font-size: 0.95rem;
}

.spec-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 32px;
}

.spec-item {
  font-size: 0.85rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.spec-item i {
  color: var(--gold);
}

.options-group {
  margin-bottom: 32px;
}

.options-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.1em;
  margin-bottom: 12px;
  display: block;
}

.size-selector {
  display: flex;
  gap: 10px;
}

.size-btn {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 10px 18px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.size-btn:hover {
  border-color: var(--gold);
}

.size-btn.active {
  background: var(--gold);
  color: var(--bg-primary);
  border-color: var(--gold);
  font-weight: 600;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  padding: 14px 28px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.btn-primary {
  background: var(--gold);
  color: var(--bg-primary);
}

.btn-primary:hover {
  background-color: var(--gold-hover);
  transform: translateY(-2px);
}

.btn-add-cart {
  background: var(--text-primary);
  color: var(--bg-primary);
  width: 100%;
}

.btn-add-cart:hover {
  background-color: var(--gold);
  transform: translateY(-2px);
}

/* Products Section Grid */
.products-section {
  padding: 80px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header h2 {
  font-size: 2rem;
  margin-bottom: 12px;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 32px;
}

.product-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow);
}

.product-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold);
}

.product-card.active {
  border-color: var(--gold);
  box-shadow: 0 0 15px rgba(223, 178, 108, 0.2);
}

.card-image-wrapper {
  aspect-ratio: 1;
  background: #0d0d12;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.card-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: contrast(1.1) brightness(1.02);
  transition: transform 0.3s ease;
}

.product-card:hover .card-image {
  transform: scale(1.05);
}

.card-info {
  padding: 20px;
}

.card-info h3 {
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.card-scripture {
  font-size: 0.8rem;
  color: var(--gold);
  display: block;
  margin-bottom: 16px;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-price {
  font-size: 1.1rem;
  font-weight: 600;
}

.preview-btn {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--text-secondary);
  padding-bottom: 2px;
}

.product-card:hover .preview-btn {
  color: var(--gold);
  border-color: var(--gold);
}

/* Sliding Cart Drawer */
.cart-drawer {
  position: fixed;
  top: 0;
  right: -450px;
  width: 450px;
  height: 100vh;
  background: var(--bg-secondary);
  border-left: 1px solid var(--border);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.8);
  transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.cart-drawer.open {
  right: 0;
  pointer-events: all;
}

.cart-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.7);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.cart-drawer.open + .cart-overlay,
body.cart-open .cart-overlay {
  opacity: 1;
  pointer-events: all;
}

.cart-content {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.cart-header {
  padding: 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.close-cart-btn {
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
}

.cart-items {
  flex-grow: 1;
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.empty-cart-message {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--text-secondary);
  gap: 16px;
}

.empty-cart-message i {
  font-size: 3rem;
}

.cart-item {
  display: flex;
  gap: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 16px;
}

.cart-item-image-wrapper {
  width: 70px;
  height: 70px;
  background: #0d0d12;
  border-radius: 8px;
  overflow: hidden;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-item-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cart-item-details {
  flex-grow: 1;
}

.cart-item-title {
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 4px;
}

.cart-item-meta {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.cart-item-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.qty-selector {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}

.qty-btn {
  background: transparent;
  border: none;
  color: var(--text-primary);
  width: 24px;
  height: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
}

.qty-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.qty-val {
  width: 30px;
  text-align: center;
  font-size: 0.85rem;
}

.cart-item-remove {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 0.85rem;
}

.cart-item-remove:hover {
  color: var(--accent-red);
}

.cart-item-price {
  font-weight: 600;
  font-size: 0.95rem;
}

.cart-footer {
  padding: 24px;
  border-top: 1px solid var(--border);
  background: var(--bg-tertiary);
}

.cart-subtotal {
  display: flex;
  justify-content: space-between;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.cart-shipping-info {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.btn-checkout {
  background: var(--gold);
  color: var(--bg-primary);
  width: 100%;
}

.btn-checkout:hover {
  background: var(--gold-hover);
}

/* Footer */
footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 60px 24px 30px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}

.brand-title {
  font-size: 1.2rem;
  display: block;
  margin-bottom: 16px;
  letter-spacing: 0.1em;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  max-width: 450px;
}

.footer-links h4 {
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.footer-links a:hover {
  color: var(--gold);
}

.footer-meta {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 24px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-secondary);
  grid-column: span 2;
}

/* Success Page Specific styles */
.success-section {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 24px 80px;
}

.success-container {
  max-width: 550px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  padding: 48px;
  border-radius: 20px;
  text-align: center;
  box-shadow: var(--shadow);
}

.success-icon {
  font-size: 4rem;
  color: var(--gold);
  margin-bottom: 24px;
}

.success-title {
  font-size: 2.2rem;
  margin-bottom: 16px;
}

.success-msg {
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.success-details {
  background: var(--bg-tertiary);
  border-radius: 12px;
  padding: 20px;
  text-align: left;
  margin-bottom: 32px;
  font-size: 0.9rem;
}

.success-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

.success-row:last-child {
  margin-bottom: 0;
}

.success-label {
  color: var(--text-secondary);
}

.success-val {
  font-weight: 500;
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .showroom-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .shop-hero {
    height: 50vh;
  }

  .hero-title {
    font-size: 2.2rem;
  }
}

@media (max-width: 600px) {
  :root {
    --header-height: 70px;
  }
  
  nav {
    display: none; /* Hide standard nav on mobile */
  }

  .header-container {
    padding: 0 16px;
  }

  .logo-text {
    font-size: 1rem;
  }

  .showroom-preview {
    padding: 20px;
  }

  .selected-product-title {
    font-size: 1.8rem;
  }

  .cart-drawer {
    width: 100%;
    right: -100%;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* Sticky T-shirt Preview & Condensed Designs Selector */
.showroom-designs-grid {
  margin-top: 40px;
  border-top: 1px solid var(--border);
  padding-top: 30px;
}

.selector-grid-title {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--gold);
  margin-bottom: 20px;
  text-transform: uppercase;
}

.showroom-designs-grid .grid-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.showroom-designs-grid .product-card {
  border-radius: 12px;
}

.showroom-designs-grid .card-image-wrapper {
  padding: 12px;
  background: #0d0d12;
}

.showroom-designs-grid .card-info {
  padding: 12px;
}

.showroom-designs-grid .card-info h3 {
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.showroom-designs-grid .card-scripture {
  font-size: 0.75rem;
  margin-bottom: 0;
}

.showroom-designs-grid .card-footer {
  display: none;
}

/* Make preview sticky on desktop */
@media (min-width: 901px) {
  .showroom-container {
    align-items: start;
  }
  
  .showroom-preview {
    position: sticky;
    top: 100px;
    z-index: 10;
  }
}
