/* ==========================================
   SHOP PAGE STYLES
   ========================================== */

/* ==========================================
   AGE VERIFICATION MODAL
   ========================================== */
.age-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  padding: 1rem;
}

.age-modal.hidden {
  display: none;
}

.age-modal-content {
  background: #1a1a1a;
  border: 1px solid #2e2e2e;
  padding: 3rem 2rem;
  border-radius: 8px;
  max-width: 480px;
  width: 100%;
  text-align: center;
}

.age-modal-content h2 {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  margin-bottom: 1rem;
  color: #e8e8e8;
}

.age-modal-content p {
  color: #909090;
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.age-modal-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.age-modal-buttons .btn {
  min-width: 140px;
}

.btn-secondary {
  background: #2e2e2e;
  color: #e8e8e8;
  padding: 0.875rem 1.5rem;
  border: 1px solid #3d3d3d;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 150ms ease;
}

.btn-secondary:hover {
  background: #3d3d3d;
}

/* ==========================================
   DARK MODE OVERRIDES
   ========================================== */
:root {
  --color-black: #e8e8e8;
  --color-white: #111111;
  --color-gray-100: #1c1c1c;
  --color-gray-200: #2e2e2e;
  --color-gray-300: #3d3d3d;
  --color-gray-500: #909090;
  --color-gray-700: #c4c4c4;
  --color-beige: #1b1916;
  --color-beige-dark: #242018;
}

body {
  background: #111111;
  color: #e8e8e8;
}

.header {
  background: #111111;
  border-bottom-color: #2e2e2e;
}

/* Always show the single nav link on mobile */
.header .nav {
  display: flex;
}

/* Banner text must stay white over the dark image overlay */
.shop-banner h1,
.shop-banner p {
  color: #ffffff !important;
}

/* Category filter names and icons */
.category-name,
.category-icon {
  color: #e8e8e8;
}

/* Category filter active state */
.category-item.active {
  background: #2e2e2e;
  border-bottom-color: #e8e8e8;
}

.category-item:hover {
  background: #1c1c1c;
}

/* Filter dropdowns */
.filter-group select {
  background-color: #1c1c1c;
  color: #e8e8e8;
  border-color: #3d3d3d;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23909090' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
}

/* Newsletter section - hardcode so variable-flip doesn't invert it */
.newsletter-section {
  background: #0a0a0a !important;
  color: #e8e8e8 !important;
}

.newsletter-input {
  color: #e8e8e8;
}

.newsletter-btn {
  flex: 1;
  border-radius: 0 4px 4px 0;
  white-space: nowrap;
  box-sizing: border-box;
  background: #e8e8e8 !important;
  color: #111111 !important;
}

.newsletter-btn:hover:not(:disabled) {
  background: #cccccc !important;
}

/* Ko-Fi / pay button — dark burgundy red */
.btn-add-cart {
  background: #510405 !important;
  border-color: #510405 !important;
  color: #ffffff !important;
}

.btn-add-cart:hover {
  background: #3d0709 !important;
  border-color: #3d0709 !important;
}

/* "How to Order" section body text */
.payment-intro,
.payment-list li,
.payment-note {
  color: rgba(255, 255, 255, 0.75) !important;
}

.payment-list li::before {
  color: #e8e8e8 !important;
}

.payment-email-link {
  color: #e8e8e8 !important;
}

/* Footer social icons */
.footer-social a {
  color: #909090;
  transition: color 0.2s ease;
}

.footer-social a:hover {
  color: #e8e8e8;
}

.footer-social a img {
  opacity: 0.5;
  transition: opacity 0.2s ease;
}

.footer-social a:hover img {
  opacity: 1;
}

/* Empty category message */
.shop-empty-message {
  text-align: center;
  padding: var(--space-3xl) 0;
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 500;
  font-style: italic;
  color: rgba(255, 255, 255, 0.8);
}

/* Page Header */
.page-header {
  padding: var(--space-3xl) 0 var(--space-xl);
  text-align: center;
  background: var(--color-gray-100);
}

.page-header h1 {
  margin-bottom: var(--space-sm);
}

.page-header p {
  color: var(--color-gray-500);
}

/* Shop Banner with Parallax */
.shop-banner {
  position: relative;
  overflow: hidden;
  background: var(--color-black);
  min-height: 510px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.shop-banner-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.shop-banner-bg img {
  width: 100%;
  height: 130%;
  object-fit: cover;
  object-position: center bottom;
  position: absolute;
  bottom: 0;
  will-change: transform;
}

.shop-banner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  will-change: transform;
}

.shop-banner .container {
  position: relative;
  z-index: 1;
}

.shop-banner h1 {
  color: var(--color-white);
}

.shop-banner p {
  color: rgba(255, 255, 255, 0.8);
}

/* Shop Content */
.shop-content {
  padding: var(--space-xl) 0 var(--space-3xl);
}

/* Filters */
.shop-filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--color-gray-200);
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.filter-group label {
  font-size: 0.85rem;
  font-weight: 500;
}

.filter-group select {
  padding: 0.5rem 2rem 0.5rem 0.75rem;
  border: 1px solid var(--color-gray-300);
  border-radius: 0;
  background: var(--color-white);
  font-family: inherit;
  font-size: 0.85rem;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23737373' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.5rem center;
}

.filter-group select:focus {
  outline: none;
  border-color: var(--color-black);
}

/* Shop Grid - 4 columns on larger screens */
.shop-grid {
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 768px) {
  .shop-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .shop-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Load More */
.load-more {
  text-align: center;
  margin-top: var(--space-2xl);
}

/* Product card hover state for shop page */
.shop-grid .product-card {
  transition: transform var(--transition-base);
}

.shop-grid .product-card:hover {
  transform: translateY(-4px);
}

/* Hidden class for filtering */
.product-card.hidden {
  display: none;
}

/* ==========================================
   STAY CLOSE NEWSLETTER SECTION
   ========================================== */
.newsletter-section {
  background: var(--color-black);
  color: var(--color-white);
  padding: var(--space-3xl) 0;
  text-align: center;
}

.newsletter-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: var(--space-sm);
}

.newsletter-desc {
  max-width: 520px;
  margin: 0 auto var(--space-xl);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  line-height: 1.7;
}

.newsletter-form {
  display: flex;
  flex-direction: row;
  max-width: 600px;
  margin: 0 auto;
  gap: 0;
  align-items: stretch;
}

.newsletter-form .btn {
  width: auto;
}

.newsletter-input {
  flex: 4;
  padding: 0.875rem 1rem;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-right: none;
  border-radius: 4px 0 0 4px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-white);
  outline: none;
  transition: var(--transition-fast);
  box-sizing: border-box;
}

.newsletter-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.newsletter-input:focus {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.15);
}

.newsletter-btn:disabled {
  opacity: 0.7;
  cursor: default;
}

.newsletter-message {
  margin-top: var(--space-sm);
  font-size: 0.875rem;
  min-height: 1.4em;
}

.newsletter-message.success {
  color: #6ecf6e;
}

.newsletter-message.error {
  color: #f27474;
}

@media (max-width: 480px) {
  .newsletter-form {
    flex-direction: column;
    gap: var(--space-sm);
  }

  .newsletter-input {
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
  }

  .newsletter-btn {
    border-radius: 4px;
  }
}

/* ==========================================
   CATEGORY ICON FILTER BAR (browse page)
   ========================================== */

/* Side-by-side: How to Order panel + 2x2 category grid */
.categories-with-info {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: var(--space-2xl);
  align-items: center;
}

/* 2x2 grid */
.categories-filter .categories-grid {
  grid-template-columns: repeat(2, 1fr);
}

/* How to Order panel */
.how-to-order-panel {
  padding: var(--space-lg);
  border-right: 1px solid var(--color-gray-200);
}

.how-to-order-panel .section-title {
  margin-bottom: var(--space-sm);
}

.how-to-order-panel .payment-subtitle {
  margin-top: var(--space-xl);
}

@media (max-width: 768px) {
  .categories-with-info {
    grid-template-columns: 1fr;
  }
  .how-to-order-panel {
    border-right: none;
    border-bottom: 1px solid var(--color-gray-200);
    padding: 0 0 var(--space-lg);
  }
}

/* Reset <button> defaults so it looks like the <a> category-item */
button.category-item {
  cursor: pointer;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  font-family: inherit;
  width: 100%;
  transition: background var(--transition-base), border-color var(--transition-base);
}

/* ==========================================
   SHOP FOOTER OVERRIDES
   ========================================== */

/* Reduce padding since there's no grid above footer-bottom */
.footer {
  padding: var(--space-lg) 0;
}

/* Center everything, stack icons above copyright, no divider */
.footer-bottom {
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  gap: var(--space-md);
  border-top: none !important;
  padding-top: 0;
  text-align: center;
}

.footer-links {
  display: flex;
  gap: var(--space-lg);
}

.footer-link {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #606060;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: #e8e8e8;
}

/* Active / selected state */
.category-item.active {
  background: var(--color-gray-100);
  border-bottom: 2px solid var(--color-black);
}

.category-item.active .category-name {
  font-weight: 600;
}
