/**
 * RT Knives - Main Stylesheet
 * Includes styles for public pages and admin dashboard
 */

/* ============================================
   CSS Custom Properties (Variables)
   ============================================ */
:root {
  /* Colors */
  --primary-color: #1a1a1a;
  --secondary-color: #d4a574;
  --text-color: #333;
  --text-light: #666;
  --bg-light: #f8f9fa;
  --border-color: #ddd;
  --success-color: #28a745;
  --error-color: #dc3545;
  --warning-color: #ffc107;

  /* Typography */
  --font-main: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-headings: Georgia, 'Times New Roman', serif;
  --font-brand: 'LT Cushion', Georgia, 'Times New Roman', serif;

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;

  /* Breakpoints (used in media queries) */
  --breakpoint-mobile: 768px;
  --breakpoint-tablet: 1024px;
}

/* ============================================
   Custom Font Loading
   ============================================ */
@font-face {
  font-family: 'LT Cushion';
  src: url('../fonts/LTCushion-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* ============================================
   Global Styles & Reset
   ============================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  color: var(--text-color);
  line-height: 1.6;
  background-color: #fff;
  margin: 0;
  padding: 0;
}

main {
  margin: 0;
  padding: 0;
}

section {
  margin: 0;
  padding: 0;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--secondary-color);
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* ============================================
   Typography
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-headings);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--spacing-md);
  color: var(--primary-color);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
  margin-bottom: var(--spacing-sm);
}

/* ============================================
   Container & Layout Utilities
   ============================================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.section {
  padding: var(--spacing-xl) 0;
}

/* ============================================
   Header & Navigation
   ============================================ */
header {
  background-color: var(--primary-color);
  color: #fff;
  padding: 0.75rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  margin: 0;
  display: block;
}

header .container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--spacing-lg);
  position: relative;
}

.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  order: 1;
}

.logo-image {
  height: 70px;
  width: auto;
  transition: opacity 0.3s ease;
}

.logo:hover .logo-image {
  opacity: 0.8;
}

nav {
  order: 2;
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 0.25rem;
  margin: 0;
}

nav a {
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.025em;
  padding: 0.625rem 1rem;
  border-radius: 6px;
  transition: all 0.3s ease;
  white-space: nowrap;
  position: relative;
  text-transform: uppercase;
  font-size: 0.875rem;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: 0.375rem;
  left: 1rem;
  right: 1rem;
  height: 2px;
  background-color: var(--secondary-color);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

nav a:hover {
  background-color: rgba(212, 165, 116, 0.15);
  transform: translateY(-1px);
}

nav a:hover::after {
  transform: scaleX(1);
}

nav a.active {
  background-color: var(--secondary-color);
  color: #fff;
  box-shadow: 0 2px 8px rgba(212, 165, 116, 0.3);
}

nav a.active::after {
  display: none;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--spacing-xs);
  order: 0;
  position: absolute;
  left: var(--spacing-md);
}

.menu-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: #fff;
  transition: all 0.3s ease;
  border-radius: 3px;
}

/* Tablet and smaller - use hamburger menu */
@media (max-width: 950px) {
  header .container {
    justify-content: center;
  }

  .menu-toggle {
    display: flex;
  }

  .logo {
    order: 0;
  }

  .logo-image {
    height: 50px;
  }

  nav {
    order: 1;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--primary-color);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  nav.active {
    max-height: 500px;
  }

  nav ul {
    flex-direction: column;
    gap: 0;
    padding: var(--spacing-sm) 0;
  }

  nav a {
    display: block;
    padding: var(--spacing-sm) var(--spacing-md);
    font-size: 1rem;
  }
}

/* Additional adjustment for very wide nav on medium screens */
@media (min-width: 951px) and (max-width: 1150px) {
  nav ul {
    gap: 0.125rem;
  }

  nav a {
    padding: 0.5rem 0.75rem;
    font-size: 0.8125rem;
  }

  .logo-image {
    height: 60px;
  }
}

/* ============================================
   Footer
   ============================================ */
footer {
  background-color: var(--primary-color);
  color: #fff;
  padding: var(--spacing-md) 0 var(--spacing-sm);
  margin-top: 0;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--spacing-md);
}

.footer-social a {
  color: #fff;
  margin-left: var(--spacing-sm);
  transition: color 0.3s ease, transform 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-social a:hover {
  color: var(--secondary-color);
  transform: translateY(-2px);
}

.footer-social a svg {
  width: 24px;
  height: 24px;
  transition: transform 0.3s ease;
}

.footer-social a:hover svg {
  transform: scale(1.1);
}

@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .footer-social a {
    margin: 0 var(--spacing-xs);
  }
}

/* ============================================
   Hero Carousel Section
   ============================================ */
.hero-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  margin: 0;
  padding: 0;
}

.carousel-container {
  position: relative;
  width: 100%;
  background-color: var(--primary-color);
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.carousel-slides {
  position: relative;
  width: 100%;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  background-color: var(--primary-color);
}

.carousel-slide.active {
  opacity: 1;
  z-index: 1;
  position: relative;
}

.carousel-slide img {
  width: 100%;
  height: auto;
  display: block;
  margin: 0;
  padding: 0;
}

.carousel-slide.no-image {
  background: linear-gradient(135deg, var(--primary-color) 0%, #2a2a2a 100%);
}

/* Carousel Controls */
.carousel-control {
  display: none;
}

/* Carousel Indicators */
.carousel-indicators {
  display: none;
}

.carousel-indicator {
  display: none;
}

/* Responsive Carousel */
@media (max-width: 768px) {
  /* Carousel controls hidden - no responsive styles needed */
}

/* ============================================
   Testimonials
   ============================================ */
.testimonial-section {
  background-color: var(--bg-light);
  padding: var(--spacing-xl) 0;
}

.testimonial {
  max-width: 800px;
  margin: 0 auto;
  padding: var(--spacing-lg);
  position: relative;
  font-style: italic;
  font-size: 1.125rem;
}

.testimonial::before {
  content: '"';
  font-size: 4rem;
  color: var(--secondary-color);
  position: absolute;
  top: -10px;
  left: 0;
  font-family: Georgia, serif;
  line-height: 1;
}

.testimonial-text {
  margin-left: var(--spacing-xl);
}

.testimonial-author {
  text-align: right;
  margin-top: var(--spacing-sm);
  font-weight: 600;
  font-style: normal;
  color: var(--text-light);
}

/* ============================================
   Product Grid (Shop & Creations)
   ============================================ */
.products-by-category {
  margin-bottom: var(--spacing-xl);
}

.category-section {
  margin-bottom: var(--spacing-xl);
}

.category-title {
  border-bottom: 2px solid var(--secondary-color);
  padding-bottom: var(--spacing-sm);
  margin-bottom: var(--spacing-lg);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
}

.product-card {
  background-color: #fff;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  border-color: var(--secondary-color);
}

/* Product card links */
.product-card a {
  text-decoration: none;
  color: inherit;
  display: block;
}

.product-card a:hover {
  text-decoration: none;
}

/* Image link wrapper */
.product-card > a:first-child {
  overflow: hidden;
  display: block;
}

.product-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  background-color: var(--bg-light);
  transition: transform 0.3s ease;
}

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

/* Product title link */
.product-info h3 {
  margin: 0 0 var(--spacing-xs) 0;
  font-size: 1.125rem;
  font-weight: 600;
}

.product-info h3 a {
  color: var(--text-color);
  transition: color 0.2s ease;
}

.product-info h3 a:hover {
  color: var(--secondary-color);
}

.product-info {
  padding: var(--spacing-md);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-sku {
  font-size: 0.875rem;
  color: var(--text-light);
  margin-bottom: var(--spacing-xs);
}

.product-category {
  font-size: 0.875rem;
  color: var(--secondary-color);
  font-weight: 600;
  margin-bottom: var(--spacing-xs);
}

.product-description-wrapper {
  margin-bottom: var(--spacing-sm);
}

.product-description {
  font-size: 0.9375rem;
  color: var(--text-color);
  line-height: 1.5;
}

.product-description.truncated {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 4px;
}

.product-description-wrapper .read-more {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.875rem;
  display: inline-block;
  margin-top: 2px;
}

.product-description-wrapper .read-more:hover {
  text-decoration: underline;
}

.product-date {
  font-size: 0.8125rem;
  color: var(--text-light);
  margin-top: auto;
  margin-bottom: var(--spacing-xs);
}

.product-status {
  display: inline-block;
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: 4px;
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
  align-self: flex-start;
}

.product-status.in-stock {
  background-color: #d4edda;
  color: #155724;
}

.product-status.sold-out {
  background-color: #f8d7da;
  color: #721c24;
}

/* Product Tags */
.tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-xs);
}

.tag-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  background-color: #f0f0f0;
  color: var(--text-color);
  border-radius: 16px;
  font-size: 0.8125rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
  border: 1px solid #e0e0e0;
}

.tag-badge:hover {
  background-color: var(--secondary-color);
  color: white;
  border-color: var(--secondary-color);
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--spacing-md);
  }
}

/* ============================================
   Knives in Action Gallery
   ============================================ */
/* Masonry Gallery Layout */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  grid-auto-rows: 200px;
  gap: 12px;
  margin-bottom: var(--spacing-lg);
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: var(--bg-light);
}

/* Random size variations for masonry effect */
.gallery-item.small {
  grid-column: span 1;
  grid-row: span 1;
}

.gallery-item.medium {
  grid-column: span 1;
  grid-row: span 2;
}

.gallery-item.large {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-item.wide {
  grid-column: span 2;
  grid-row: span 1;
}

.gallery-item.tall {
  grid-column: span 1;
  grid-row: span 3;
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
  z-index: 10;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Hover overlay */
.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Tablet */
@media (max-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    grid-auto-rows: 180px;
    gap: 10px;
  }

  .gallery-item.large {
    grid-column: span 2;
    grid-row: span 2;
  }

  .gallery-item.tall {
    grid-row: span 2;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 150px;
    gap: 8px;
  }

  /* Simplify sizes on mobile */
  .gallery-item.small,
  .gallery-item.medium {
    grid-column: span 1;
    grid-row: span 1;
  }

  .gallery-item.large,
  .gallery-item.wide {
    grid-column: span 2;
    grid-row: span 1;
  }

  .gallery-item.tall {
    grid-column: span 1;
    grid-row: span 2;
  }
}

/* ============================================
   Contact Page
   ============================================ */
.contact-wrapper {
  display: flex;
  gap: var(--spacing-xl);
  margin-top: var(--spacing-lg);
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.contact-form-section {
  flex: 1 1 65%;
}

.contact-sidebar {
  flex: 1 1 35%;
  position: sticky;
  top: 100px;
  align-self: flex-start;
}

.creator-photo {
  width: 100%;
  border-radius: 8px;
  margin-bottom: var(--spacing-md);
}

.contact-info {
  background-color: var(--bg-light);
  padding: var(--spacing-lg);
  border-radius: 8px;
}

.contact-info h3 {
  margin-bottom: var(--spacing-md);
}

.contact-info a {
  color: var(--secondary-color);
  font-weight: 600;
}

.contact-social-links {
  display: flex;
  gap: var(--spacing-md);
  margin-top: var(--spacing-md);
}

.contact-social-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  color: var(--primary-color);
  transition: color 0.3s ease, transform 0.3s ease;
}

.contact-social-links a:hover {
  color: var(--secondary-color);
  transform: translateX(4px);
}

.contact-social-links a svg {
  width: 24px;
  height: 24px;
  transition: transform 0.3s ease;
}

.contact-social-links a:hover svg {
  transform: scale(1.1);
}

/* Contact Form */
.contact-form {
  background-color: var(--bg-light);
  padding: var(--spacing-lg);
  border-radius: 8px;
}

.form-group {
  margin-bottom: var(--spacing-md);
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: var(--spacing-xs);
  color: var(--primary-color);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: var(--spacing-sm);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 3px rgba(212, 165, 116, 0.1);
}

/* Input validation states */
.form-group input.input-error {
  border-color: #c62828;
}

.form-group input.input-error:focus {
  border-color: #c62828;
  box-shadow: 0 0 0 3px rgba(198, 40, 40, 0.1);
}

.form-group input.input-success {
  border-color: #2e7d32;
}

.form-group input.input-success:focus {
  border-color: #2e7d32;
  box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.1);
}

/* Stylish dropdown styling */
.form-group select {
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23d4a574' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px;
  padding-right: 40px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.form-group select:hover {
  border-color: var(--secondary-color);
  background-color: #fffaf5;
}

.form-group select:focus {
  background-color: #fff;
}

/* Style the dropdown options */
.form-group select option {
  padding: var(--spacing-sm);
  background-color: #fff;
  color: var(--text-color);
}

.form-group select option:hover,
.form-group select option:focus {
  background-color: var(--bg-light);
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.btn {
  display: inline-block;
  padding: var(--spacing-sm) var(--spacing-lg);
  background-color: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  min-height: 48px;
  min-width: 48px;
}

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

.btn:active {
  transform: translateY(0);
}

.btn-secondary {
  background-color: var(--secondary-color);
}

.btn-secondary:hover {
  background-color: var(--primary-color);
}

.alert {
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: 4px;
  margin-bottom: var(--spacing-md);
}

.alert-success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.alert-error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

@media (max-width: 768px) {
  .contact-wrapper {
    flex-direction: column;
  }

  .contact-sidebar {
    position: static;
  }
}

/* ============================================
   Lightbox
   ============================================ */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-md);
}

.lightbox.active {
  display: flex;
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
}

.lightbox-image {
  max-width: 100%;
  max-height: 90vh;
  display: block;
  margin: 0 auto;
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  color: #fff;
  font-size: 2rem;
  font-weight: 700;
  cursor: pointer;
  background: none;
  border: none;
  padding: var(--spacing-xs);
  transition: color 0.3s ease;
}

.lightbox-close:hover {
  color: var(--secondary-color);
}

.lightbox-sku-overlay {
  position: absolute;
  top: 20px;
  left: 20px;
  background-color: rgba(0, 0, 0, 0.35);
  color: #fff;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 0.8125rem;
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 10;
}

.lightbox-content:hover .lightbox-sku-overlay {
  opacity: 1;
}

/* Always show SKU on mobile/tablet (no hover available) */
@media (max-width: 1024px) {
  .lightbox-sku-overlay {
    opacity: 1;
  }
}

.lightbox-caption {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(0, 0, 0, 0.8);
  color: #fff;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 0.875rem;
  max-width: 80%;
  text-align: center;
}

/* Lightbox Navigation Buttons */
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.6);
  color: #fff;
  border: none;
  padding: 12px;
  cursor: pointer;
  border-radius: 4px;
  transition: background-color 0.3s ease;
  z-index: 10;
}

.lightbox-nav:hover {
  background-color: rgba(212, 165, 116, 0.8);
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

/* ============================================
   Admin Pages
   ============================================ */
.admin-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: var(--spacing-lg);
}

/* Admin Login */
.login-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background-color: var(--bg-light);
}

.login-card {
  background-color: #fff;
  padding: var(--spacing-xl);
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  max-width: 400px;
  width: 100%;
}

.login-card h1 {
  text-align: center;
  margin-bottom: var(--spacing-lg);
  color: var(--primary-color);
}

/* Admin Header */
.admin-header {
  background-color: var(--primary-color);
  color: #fff;
  padding: var(--spacing-md) 0;
  margin-bottom: var(--spacing-lg);
}

.admin-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.admin-header h1 {
  color: #fff;
  margin: 0;
}

/* Logout button in admin header */
.admin-header #logout-btn {
  background-color: var(--secondary-color);
  color: var(--primary-color);
  border: none;
}

.admin-header #logout-btn:hover {
  background-color: #fff;
  color: var(--primary-color);
  transform: translateY(-1px);
}

/* Admin Tabs */
.admin-tabs {
  display: flex;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-lg);
  border-bottom: 2px solid var(--border-color);
}

.admin-tab {
  padding: var(--spacing-sm) var(--spacing-lg);
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--text-light);
}

.admin-tab.active {
  color: var(--primary-color);
  border-bottom-color: var(--secondary-color);
}

.admin-tab:hover {
  color: var(--primary-color);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* Admin Stats */
.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
}

.stat-card {
  background-color: var(--bg-light);
  padding: var(--spacing-lg);
  border-radius: 8px;
  border-left: 4px solid var(--secondary-color);
}

.stat-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: var(--spacing-xs);
}

.stat-label {
  color: var(--text-light);
  font-size: 0.9375rem;
}

/* Admin Table */
.admin-table-wrapper {
  background-color: #fff;
  border-radius: 8px;
  overflow-x: auto;
  overflow-y: visible;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th {
  background-color: var(--primary-color);
  color: #fff;
  padding: var(--spacing-md);
  text-align: left;
  font-weight: 600;
}

.admin-table td {
  padding: var(--spacing-md);
  border-bottom: 1px solid var(--border-color);
  white-space: nowrap;
}

/* Allow normal wrapping for categories and tags tables */
.categories-table,
.tags-table {
  table-layout: fixed;
}

.categories-table td,
.tags-table td {
  white-space: normal;
}

/* Specific column widths and truncation for products table only */
.admin-table:not(.categories-table):not(.tags-table) td:nth-child(1) { /* Image */
  width: 100px;
}

.admin-table:not(.categories-table):not(.tags-table) td:nth-child(2) { /* SKU */
  width: 90px;
}

.admin-table:not(.categories-table):not(.tags-table) td:nth-child(3) { /* Name */
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-table:not(.categories-table):not(.tags-table) td:nth-child(4) { /* Category */
  width: 200px;
}

.admin-table:not(.categories-table):not(.tags-table) td:nth-child(5) { /* Description */
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-table:not(.categories-table):not(.tags-table) td:nth-child(6) { /* Date */
  width: 90px;
  font-size: 0.8125rem;
}

.admin-table:not(.categories-table):not(.tags-table) td:nth-child(7) { /* Status */
  width: 140px;
}

.admin-table:not(.categories-table):not(.tags-table) td:nth-child(8) { /* Actions */
  width: 80px;
  white-space: nowrap;
}

.admin-table td.description-cell {
  white-space: normal;
  max-width: 180px;
}

/* Inline edit dropdowns */
.inline-edit-category,
.inline-edit-status {
  width: 100%;
  padding: 6px 8px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 0.875rem;
  background-color: #fff;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.inline-edit-category:hover,
.inline-edit-status:hover {
  border-color: var(--secondary-color);
}

.inline-edit-category:disabled,
.inline-edit-status:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.admin-table tr:hover {
  background-color: var(--bg-light);
}

/* Icon buttons */
.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  border-radius: 4px;
  background-color: transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--text-color);
}

.btn-icon:hover {
  background-color: var(--bg-light);
}

.btn-icon-edit:hover {
  background-color: #e3f2fd;
  color: #1976d2;
}

.btn-icon-delete:hover {
  background-color: #ffebee;
  color: #c62828;
}

.btn-icon svg {
  display: block;
}

.admin-actions {
  display: flex;
  gap: 4px;
  justify-content: center;
}

.admin-table img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 4px;
}

/* Description cell with proper truncation */
.admin-table .description-cell {
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: help;
}

.admin-actions {
  display: flex;
  gap: var(--spacing-xs);
}

.btn-small {
  padding: var(--spacing-xs) var(--spacing-sm);
  font-size: 0.875rem;
}

.btn-edit {
  background-color: var(--warning-color);
}

.btn-delete {
  background-color: var(--error-color);
}

/* Admin Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-md);
}

.modal.active {
  display: flex;
}

.modal-content {
  background-color: #fff;
  border-radius: 8px;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
}

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

.modal-header h2 {
  margin: 0;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-light);
  padding: var(--spacing-xs);
}

.modal-close:hover {
  color: var(--primary-color);
}

.modal-body {
  padding: var(--spacing-lg);
}

.modal-footer {
  padding: var(--spacing-lg);
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: flex-end;
  gap: var(--spacing-sm);
}

/* Drag & Drop Upload */
.upload-zone {
  border: 2px dashed var(--border-color);
  border-radius: 8px;
  padding: var(--spacing-xl);
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  background-color: var(--bg-light);
}

.upload-zone:hover,
.upload-zone.drag-over {
  border-color: var(--secondary-color);
  background-color: #f0f0f0;
}

.upload-zone input[type="file"] {
  display: none;
}

.upload-icon {
  font-size: 3rem;
  color: var(--text-light);
  margin-bottom: var(--spacing-sm);
}

.image-preview {
  max-width: 150px;
  margin: var(--spacing-md) auto;
  border-radius: 4px;
  overflow: hidden;
}

.image-preview img {
  width: 100%;
  height: auto;
}

.images-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: var(--spacing-md);
  margin-top: var(--spacing-md);
}

.image-item {
  position: relative;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  padding: var(--spacing-sm);
  background-color: var(--bg-light);
  transition: all 0.3s ease;
  cursor: grab;
}

.image-item:active {
  cursor: grabbing;
}

.image-item:hover {
  border-color: var(--secondary-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.image-item.drag-over {
  border-color: var(--secondary-color);
  border-style: dashed;
  background-color: #fff9f0;
  transform: scale(1.02);
}

.image-item img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: var(--spacing-sm);
  pointer-events: none;
}

.image-item-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-xs);
}

.drag-handle {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 1.25rem;
  color: var(--text-light);
  cursor: grab;
  background: rgba(255, 255, 255, 0.9);
  padding: 2px 6px;
  border-radius: 4px;
  line-height: 1;
}

.image-item:active .drag-handle {
  cursor: grabbing;
}

.main-badge {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--secondary-color);
  flex: 1;
}

.image-item .btn-delete {
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  background-color: var(--error-color);
  color: white;
}

.image-item .btn-delete:hover {
  background-color: #c82333;
}

/* ============================================
   Responsive Adjustments
   ============================================ */
@media (max-width: 1024px) {
  .container {
    padding: 0 var(--spacing-sm);
  }

  .admin-stats {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.5rem; }

  .section {
    padding: var(--spacing-lg) 0;
  }

  .admin-table-wrapper {
    overflow-x: auto;
  }

  .admin-tabs {
    overflow-x: auto;
  }
}

@media (max-width: 480px) {
  :root {
    font-size: 14px;
  }

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

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============================================
   Utility Classes
   ============================================ */
.text-center {
  text-align: center;
}

.text-muted {
  color: var(--text-light);
}

.mt-1 { margin-top: var(--spacing-xs); }
.mt-2 { margin-top: var(--spacing-sm); }
.mt-3 { margin-top: var(--spacing-md); }
.mt-4 { margin-top: var(--spacing-lg); }

.mb-1 { margin-bottom: var(--spacing-xs); }
.mb-2 { margin-bottom: var(--spacing-sm); }
.mb-3 { margin-bottom: var(--spacing-md); }
.mb-4 { margin-bottom: var(--spacing-lg); }

.hidden {
  display: none !important;
}

.loading {
  opacity: 0.6;
  pointer-events: none;
}

/* ============================================
   Product Detail Page
   ============================================ */

/* Breadcrumb Navigation */
.breadcrumb {
  padding: var(--spacing-sm) 0;
  font-size: 0.875rem;
  color: var(--text-light);
}

.breadcrumb a {
  color: var(--text-light);
  transition: color 0.3s ease;
}

.breadcrumb a:hover {
  color: var(--secondary-color);
}

.breadcrumb .separator {
  margin: 0 var(--spacing-xs);
  color: var(--border-color);
}

.breadcrumb .current {
  color: var(--text-color);
  font-weight: 600;
}

/* Product Detail Grid */
.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-xl);
}

/* Product Images */
.product-images {
  position: sticky;
  top: var(--spacing-md);
  align-self: start;
}

.main-image-container {
  width: 100%;
  margin-bottom: var(--spacing-md);
  background: var(--bg-light);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.main-product-image {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

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

.image-gallery-thumbnails {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: var(--spacing-sm);
}

.thumbnail {
  cursor: pointer;
  border: 2px solid var(--border-color);
  border-radius: 4px;
  overflow: hidden;
  transition: border-color 0.3s ease, transform 0.2s ease;
  aspect-ratio: 1;
}

.thumbnail {
  cursor: pointer;
}

.thumbnail:hover {
  border-color: var(--secondary-color);
  transform: translateY(-2px);
}

.thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Product Info */
.product-title {
  font-size: 2.5rem;
  margin-bottom: var(--spacing-sm);
  color: var(--primary-color);
  line-height: 1.2;
}

.product-meta {
  display: flex;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-md);
  padding-bottom: var(--spacing-md);
  border-bottom: 1px solid var(--border-color);
  font-size: 0.9375rem;
  color: var(--text-light);
}

.product-meta strong {
  color: var(--text-color);
}

/* Status Badge */
.product-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: var(--spacing-lg);
  align-self: flex-start;
  width: fit-content;
}

.product-status-badge.in-stock {
  background-color: #d4edda;
  color: #155724;
}

.product-status-badge.sold-out {
  background-color: #f8d7da;
  color: #721c24;
}

.status-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: currentColor;
}

/* Product Description */
.product-description {
  margin-bottom: var(--spacing-xl);
}

.product-description h2 {
  font-size: 1.5rem;
  margin-bottom: var(--spacing-sm);
  color: var(--primary-color);
}

.product-description p {
  line-height: 1.8;
  color: var(--text-color);
}

/* Product Actions */
.product-actions {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
}

.product-actions .btn {
  width: 100%;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.0625rem;
  padding: 14px var(--spacing-lg);
}

.product-actions .btn-primary {
  background-color: var(--secondary-color);
  color: #fff;
  box-shadow: 0 2px 8px rgba(212, 165, 116, 0.3);
}

.product-actions .btn-primary:hover {
  background-color: #c89963;
  box-shadow: 0 4px 12px rgba(212, 165, 116, 0.4);
  transform: translateY(-1px);
}

.product-actions .btn-secondary {
  background-color: transparent;
  color: var(--text-light);
  border: 1px solid var(--border-color);
  box-shadow: none;
  font-size: 0.9375rem;
  padding: 10px var(--spacing-md);
}

.product-actions .btn-secondary:hover {
  background-color: var(--bg-light);
  color: var(--text-color);
  border-color: var(--text-light);
  transform: none;
}

/* Related Products */
.related-products-section {
  background-color: var(--bg-light);
  padding: var(--spacing-xl) 0;
}

.related-products-section h2 {
  margin-bottom: var(--spacing-lg);
}

.related-products-section .products-grid {
  grid-template-columns: repeat(4, 1fr);
  gap: var(--spacing-md);
}

.related-products-section .product-card {
  font-size: 0.9rem;
}

.related-products-section .product-image {
  height: 200px;
}

.related-products-section .product-info h3 {
  font-size: 1rem;
}

.related-products-section .product-sku,
.related-products-section .product-category,
.related-products-section .product-date {
  font-size: 0.8125rem;
}

.related-products-section .product-status {
  font-size: 0.8125rem;
  padding: 4px 8px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .product-detail-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }

  .product-images {
    position: relative;
    top: 0;
  }

  .product-title {
    font-size: 2rem;
  }

  .product-meta {
    flex-direction: column;
    gap: var(--spacing-xs);
  }

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

  .product-actions .btn {
    width: 100%;
  }

  .related-products-section .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .related-products-section .products-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   FAQ Page Styles
   ============================================ */
.faq-container {
  max-width: 900px;
  margin: 0 auto;
}

.faq-item {
  background-color: white;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: var(--spacing-lg);
  margin-bottom: var(--spacing-md);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.3s ease;
}

.faq-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.faq-question {
  color: var(--primary-color);
  font-family: var(--font-headings);
  font-size: 1.5rem;
  margin-bottom: var(--spacing-sm);
  font-weight: 600;
}

.faq-answer {
  color: var(--text-color);
  line-height: 1.7;
}

.faq-answer p {
  margin-bottom: var(--spacing-sm);
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

.faq-link {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  display: inline-flex;
  align-items: center;
}

.faq-link:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

.faq-answer .btn {
  display: inline-flex;
  align-items: center;
  margin-top: var(--spacing-xs);
}

.faq-answer .btn svg {
  flex-shrink: 0;
}

/* Responsive FAQ */
@media (max-width: 768px) {
  .faq-container {
    padding: 0 var(--spacing-sm);
  }

  .faq-item {
    padding: var(--spacing-md);
  }

  .faq-question {
    font-size: 1.25rem;
  }
}

/* ============================================
   Bio/About Page Styles
   ============================================ */

/* Hero Section */
.bio-hero {
  background: linear-gradient(135deg, var(--primary-color) 0%, #2a2a2a 100%);
  color: white;
  padding: calc(var(--spacing-xl) + 90px) 0 var(--spacing-xl) 0;
  text-align: center;
  margin: -90px 0 0 0;
  position: relative;
}

.bio-hero .container {
  position: relative;
  z-index: 1;
}

.bio-hero h1 {
  font-size: 3rem;
  margin-bottom: 0;
  margin-top: 0;
  font-family: var(--font-headings);
  color: white;
  position: relative;
  z-index: 1;
}

.bio-hero-subtitle {
  font-size: 1.25rem;
  color: var(--secondary-color);
  font-weight: 500;
  letter-spacing: 0.05em;
  margin: 0;
}

/* Page Hero Section (for all pages except homepage) */
.page-hero {
  background: linear-gradient(135deg, var(--primary-color) 0%, #2a2a2a 100%);
  color: white;
  padding: calc(var(--spacing-md) + 90px) 0 var(--spacing-md) 0;
  text-align: center;
  margin: -90px 0 0 0;
  position: relative;
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  font-size: 2.5rem;
  margin-bottom: 0;
  margin-top: 0;
  font-family: var(--font-headings);
  color: white;
  position: relative;
  z-index: 1;
}

/* Intro Section */
.bio-intro {
  max-width: 800px;
  margin: 0 auto var(--spacing-xl);
  text-align: center;
  padding: var(--spacing-xl);
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 50%, #f8f9fa 100%);
  position: relative;
  z-index: 2;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.bio-intro::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  background: linear-gradient(to bottom, var(--secondary-color) 0%, rgba(212, 165, 116, 0.3) 20%, transparent 50%);
  border-radius: 12px 12px 0 0;
  pointer-events: none;
}

.lead-text {
  font-size: 1.25rem;
  line-height: 1.8;
  color: var(--text-color);
  font-weight: 400;
  position: relative;
  z-index: 1;
}

/* Bio Sections */
.bio-section {
  padding: var(--spacing-xl) 0;
  margin-bottom: var(--spacing-lg);
}

.bio-section-alt {
  background-color: var(--bg-light);
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  padding-left: calc(50vw - 50%);
  padding-right: calc(50vw - 50%);
}

.bio-section-content {
  max-width: 700px;
  margin: 0 auto;
}

/* Bio Section with Image Split Layout */
.bio-section-split {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: var(--spacing-xl);
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
}

.bio-section-split-reverse {
  direction: rtl;
}

.bio-section-split-reverse > * {
  direction: ltr;
}

.bio-section-image {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  max-width: 400px;
}

.bio-section-image:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.bio-section-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 12px;
  max-height: 350px;
}

@media (max-width: 768px) {
  .bio-section-split,
  .bio-section-split-reverse {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
    direction: ltr;
  }

  .bio-section-image {
    order: -1;
  }
}

.bio-section h2 {
  font-size: 2rem;
  margin-bottom: var(--spacing-md);
  color: var(--primary-color);
  font-family: var(--font-headings);
}

.bio-section p {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--text-color);
  margin-bottom: var(--spacing-md);
}

.bio-section p:last-child {
  margin-bottom: 0;
}

/* Bio Grid - Two Column Cards */
.bio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: var(--spacing-lg);
  margin: var(--spacing-xl) 0;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Bio Cards */
.bio-card {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: var(--spacing-lg);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bio-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.bio-card h3 {
  font-size: 1.5rem;
  margin-bottom: var(--spacing-md);
  color: var(--primary-color);
  font-family: var(--font-headings);
  border-bottom: 2px solid var(--secondary-color);
  padding-bottom: var(--spacing-xs);
}

/* Bio List with Icons */
.bio-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.bio-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-sm);
  padding: var(--spacing-xs) 0;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-color);
}

.bio-list li svg {
  flex-shrink: 0;
  color: var(--secondary-color);
  margin-top: 0.25rem;
}

/* CTA Section */
.bio-cta {
  text-align: center;
  padding: var(--spacing-xl);
  background: linear-gradient(135deg, var(--primary-color) 0%, #2a2a2a 100%);
  border-radius: 12px;
  color: white;
  margin-top: var(--spacing-xl);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.bio-cta h2 {
  font-size: 2rem;
  margin-bottom: var(--spacing-sm);
  font-family: var(--font-headings);
  color: white;
}

.bio-cta p {
  font-size: 1.125rem;
  margin-bottom: var(--spacing-lg);
  color: rgba(255, 255, 255, 0.9);
}

.btn-large {
  padding: 1rem 2.5rem;
  font-size: 1.125rem;
  font-weight: 600;
}

/* Responsive Bio Page */
@media (max-width: 768px) {
  .bio-hero h1 {
    font-size: 2rem;
  }

  .bio-hero-subtitle {
    font-size: 1rem;
  }

  .lead-text {
    font-size: 1.125rem;
  }

  .bio-section h2 {
    font-size: 1.5rem;
  }

  .bio-section p {
    font-size: 1rem;
  }

  .bio-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }

  .bio-card {
    padding: var(--spacing-md);
  }

  .bio-cta h2 {
    font-size: 1.5rem;
  }

  .bio-cta p {
    font-size: 1rem;
  }

  .btn-large {
    padding: 0.875rem 2rem;
    font-size: 1rem;
  }
}

/* ============================================
   Lightbox Styles
   ============================================ */

.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

.lightbox-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.95);
  cursor: pointer;
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90vh;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: zoomIn 0.3s ease;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: -50px;
  right: 0;
  background: transparent;
  border: none;
  color: white;
  cursor: pointer;
  padding: 8px;
  z-index: 10001;
  transition: transform 0.2s ease;
}

.lightbox-close:hover {
  transform: scale(1.1);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  color: white;
  cursor: pointer;
  padding: 12px;
  z-index: 10001;
  transition: all 0.2s ease;
  backdrop-filter: blur(10px);
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

.lightbox-caption {
  position: absolute;
  bottom: -50px;
  left: 0;
  right: 0;
  color: white;
  text-align: center;
  font-size: 1rem;
  padding: 8px;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes zoomIn {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* Mobile lightbox adjustments */
@media (max-width: 768px) {
  .lightbox-close {
    top: 10px;
    right: 10px;
  }

  .lightbox-nav {
    padding: 8px;
  }

  .lightbox-prev {
    left: 10px;
  }

  .lightbox-next {
    right: 10px;
  }

  .lightbox-caption {
    bottom: 10px;
    font-size: 0.875rem;
  }
}

/* Bio Divider */
.bio-divider {
  max-width: 800px;
  margin: var(--spacing-xl) auto;
  border: none;
  height: 2px;
  background: linear-gradient(to right, transparent 0%, var(--secondary-color) 50%, transparent 100%);
  opacity: 0.5;
}

/* Bio Gallery Section */
.bio-gallery-section {
  margin-top: var(--spacing-lg);
}

.bio-gallery-section h2 {
  font-size: 2rem;
  margin-bottom: var(--spacing-sm);
  color: var(--primary-color);
  font-family: var(--font-headings);
}

.bio-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
  margin-top: var(--spacing-lg);
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.bio-gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  cursor: pointer;
  aspect-ratio: 1 / 1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bio-gallery-item:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.bio-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.bio-gallery-item:hover img {
  transform: scale(1.1);
}

.bio-gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.bio-gallery-item:hover .bio-gallery-overlay {
  opacity: 1;
}

/* Responsive gallery */
@media (max-width: 768px) {
  .bio-gallery {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0.75rem;
  }
}

@media (max-width: 480px) {
  .bio-gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }
}

/* ============================================
   Error Pages (404, 403, 500, 503)
   ============================================ */
.error-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-xl) 0;
  text-align: center;
}

.error-content {
  max-width: 600px;
  margin: 0 auto;
}

.error-code {
  font-size: 8rem;
  font-weight: 700;
  color: var(--secondary-color);
  line-height: 1;
  margin-bottom: var(--spacing-md);
  font-family: var(--font-headings);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.error-page h1 {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: var(--spacing-md);
  font-family: var(--font-headings);
}

.error-message {
  font-size: 1.25rem;
  color: var(--text-color);
  margin-bottom: var(--spacing-sm);
  line-height: 1.6;
}

.error-suggestion {
  font-size: 1rem;
  color: var(--text-light);
  font-style: italic;
  margin-bottom: var(--spacing-lg);
}

.error-actions {
  display: flex;
  gap: var(--spacing-md);
  justify-content: center;
  margin-bottom: var(--spacing-xl);
  flex-wrap: wrap;
}

.error-actions .btn {
  min-width: 150px;
}

.error-links {
  margin-top: var(--spacing-xl);
  padding-top: var(--spacing-lg);
  border-top: 1px solid var(--border-color);
}

.error-links p {
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: var(--spacing-md);
}

.error-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.error-links li {
  margin-bottom: var(--spacing-sm);
}

.error-links a {
  color: var(--secondary-color);
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 1rem;
}

.error-links a:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

/* Responsive adjustments for error pages */
@media (max-width: 768px) {
  .error-code {
    font-size: 5rem;
  }

  .error-page h1 {
    font-size: 1.75rem;
  }

  .error-message {
    font-size: 1.1rem;
  }

  .error-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .error-actions .btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .error-code {
    font-size: 4rem;
  }

  .error-page h1 {
    font-size: 1.5rem;
  }
}
