/*
 * BuyMyPhoto — Premium Vanilla CSS Stylesheet
 */

/* Import Fonts */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=Inter:wght@300;400;500;600;700&display=swap');

/* CSS Variables */
:root {
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --radius-xl: 12px;
  --radius-2xl: 16px;

  /* Premium Light Theme */
  --background: #fcfbf9; /* Warm ivory/alabaster */
  --foreground: #1c1c1a; /* Deep charcoal/slate */
  --card: #ffffff;
  --card-foreground: #1c1c1a;
  
  --primary: #c2a370; /* Figma Gold */
  --primary-hover: #b3925c;
  --primary-foreground: #fcfbf9;
  
  --secondary: #f2efe9; /* Soft beige/linen */
  --secondary-foreground: #1c1c1a;
  
  --muted: #f2efe9;
  --muted-foreground: #6b6b66; /* Muted slate gray */
  
  --border: #e6e3dc; /* Soft border */
  --input: #e6e3dc;
  --ring: #c2a370;
  
  --gold: #c2a370;
  --gold-soft: #f7f4ee;
  
  --font-display: "Cormorant Garamond", "Playfair Display", Georgia, serif;
  --font-sans: "Inter", system-ui, -apple-system, sans-serif;
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Global Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border-color: var(--border);
}

html {
  scroll-behavior: smooth;
  height: 100%;
}

body {
  background-color: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

/* Common Layout Components */
.container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

@media (max-width: 640px) {
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* Header Styles */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
  background-color: rgba(252, 251, 249, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: background-color 0.3s ease;
}

.header-container {
  display: flex;
  height: 64px;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-display);
  font-size: 24px;
  letter-spacing: 0.05em;
  font-weight: 500;
  display: flex;
  align-items: center;
}

.logo-gold {
  color: var(--primary);
  background: linear-gradient(135deg, #c2a370, #9e8050);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }
}

.nav-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted-foreground);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.nav-link:hover, .nav-link.active {
  color: var(--foreground);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn-header {
  display: inline-flex;
  align-items: center;
  border-radius: 50px;
  border: 1px solid rgba(194, 163, 112, 0.4);
  background-color: rgba(194, 163, 112, 0.1);
  padding: 8px 18px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--primary);
  transition: all 0.2s ease;
}

.btn-header:hover {
  background-color: var(--primary);
  color: var(--primary-foreground);
}

@media (max-width: 768px) {
  .header-actions {
    display: none;
  }
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--foreground);
  padding: 4px;
}

@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: block;
  }
}

.mobile-menu-toggle svg {
  width: 24px;
  height: 24px;
}

.mobile-drawer {
  display: none;
  border-top: 1px solid var(--border);
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background-color: var(--background);
}

.mobile-drawer.open {
  display: block;
  max-height: 400px;
}

.mobile-drawer-nav {
  display: flex;
  flex-direction: column;
  padding: 16px;
  gap: 8px;
}

.mobile-drawer-nav .nav-link {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
}

.mobile-drawer-nav .nav-link:hover, .mobile-drawer-nav .nav-link.active {
  background-color: var(--secondary);
  color: var(--foreground);
}

/* Footer Styles */
.site-footer {
  background-color: #141414;
  color: #ffffff;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 80px;
  padding-bottom: 32px;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 48px;
  margin-bottom: 64px;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: 0.05em;
}

.footer-desc {
  font-size: 12px;
  color: #a3a3a3;
  line-height: 1.6;
  max-width: 320px;
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-btn {
  display: flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 11px;
  color: var(--primary);
  font-weight: 500;
  transition: all 0.2s ease;
}

.social-btn:hover {
  background-color: rgba(255, 255, 255, 0.05);
  border-color: var(--primary);
}

.footer-nav-title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 24px;
}

.footer-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 13px;
}

.footer-nav-list a {
  color: #a3a3a3;
}

.footer-nav-list a:hover {
  color: #ffffff;
}

.footer-divider {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 32px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  color: #737373;
}

@media (max-width: 640px) {
  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

.footer-bottom-links {
  display: flex;
  gap: 32px;
}

.footer-bottom-links a:hover {
  color: #a3a3a3;
}

/* Button UI Components */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 14px 32px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  font-family: var(--font-sans);
}

.btn-primary {
  background-color: var(--primary);
  color: #141414;
}

.btn-primary:hover {
  background-color: var(--primary-hover);
}

.btn-secondary {
  background-color: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: #ffffff;
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: #000000;
  color: #ffffff;
  padding: 80px 24px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.6;
  background-size: cover;
  background-position: center;
  transition: transform 10s ease;
}

.hero-section:hover .hero-bg {
  transform: scale(1.05);
}

.hero-vignette {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: radial-gradient(circle at center, transparent 20%, rgba(20, 20, 20, 0.4) 100%);
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 800px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-tagline {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: var(--primary);
  opacity: 0;
  transform: translateY(15px);
  animation: fadeInUp 0.8s forwards 0.2s;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(64px, 10vw, 120px);
  font-weight: 300;
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin-top: 16px;
  margin-bottom: 24px;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s forwards 0.4s;
}

.hero-desc {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
  max-width: 480px;
  line-height: 1.8;
  letter-spacing: 0.05em;
  opacity: 0;
  transform: translateY(15px);
  animation: fadeInUp 0.8s forwards 0.6s;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 40px;
  width: 100%;
  justify-content: center;
  opacity: 0;
  transform: translateY(15px);
  animation: fadeInUp 0.8s forwards 0.8s;
}

@media (max-width: 640px) {
  .hero-actions {
    flex-direction: column;
    padding: 0 16px;
  }
  .hero-actions .btn {
    width: 100%;
  }
}

.scroll-indicator {
  position: absolute;
  bottom: 48px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.scroll-text {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  animation: pulse 2s infinite;
  user-select: none;
}

.hero-fade-bottom {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 128px;
  background: linear-gradient(to top, var(--background), transparent);
  pointer-events: none;
  z-index: 2;
}

/* Sections */
.section-welcome {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  padding: 112px 24px;
  text-align: center;
}

.section-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 24px;
}

.section-title {
  font-size: clamp(32px, 5vw, 48px);
  margin-bottom: 40px;
  color: var(--foreground);
}

.welcome-italic {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(18px, 3vw, 22px);
  line-height: 1.8;
  color: #3a3a36;
}

/* Photographer Snippet */
.bio-section {
  background-color: rgba(194, 163, 112, 0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 80px 48px;
  margin-bottom: 112px;
}

@media (max-width: 768px) {
  .bio-section {
    padding: 40px 24px;
  }
}

.bio-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  align-items: center;
}

@media (max-width: 768px) {
  .bio-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.bio-image-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  aspect-ratio: 4/3;
  background-color: #141414;
}

.bio-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  pointer-events: none;
}

.bio-content {
  display: flex;
  flex-direction: column;
}

.bio-title {
  font-size: clamp(28px, 4vw, 40px);
  margin-top: 16px;
  margin-bottom: 24px;
}

.bio-text {
  font-size: 13.5px;
  color: var(--muted-foreground);
  line-height: 1.8;
  margin-bottom: 16px;
}

.bio-link {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--primary);
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.bio-link:hover {
  opacity: 0.8;
}

/* Grids & Cards */
.section-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-bottom: 1px solid var(--border);
  padding-bottom: 24px;
  margin-bottom: 48px;
}

.section-header-title {
  font-size: clamp(28px, 4vw, 40px);
  margin-top: 8px;
}

.section-header-link {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

.section-header-link:hover {
  color: var(--foreground);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 32px;
  margin-bottom: 112px;
}

/* Category Card */
.category-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-sm);
  aspect-ratio: 4/3;
  background-color: #141414;
  box-shadow: var(--shadow-sm);
}

.category-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0.8;
}

.category-card:hover .category-img {
  transform: scale(1.05);
}

.category-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.2) 60%, rgba(0, 0, 0, 0.1) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px;
  color: #ffffff;
}

.category-name {
  font-size: 28px;
  font-weight: 400;
  margin-bottom: 8px;
}

.category-desc {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.5;
  margin-bottom: 16px;
  max-width: 260px;
}

.category-count {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Photo Card */
.photo-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-sm);
  aspect-ratio: 4/5;
  background-color: #1c1c1a;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  display: block;
}

.photo-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.photo-card-landscape {
  aspect-ratio: 4/3;
}

.photo-card-square {
  aspect-ratio: 1/1;
}

.photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

.photo-card:hover .photo-img {
  transform: scale(1.05);
}

.photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13, 13, 13, 0.95) 0%, rgba(13, 13, 13, 0.4) 50%, rgba(13, 13, 13, 0.1) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  color: #ffffff;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.photo-card:hover .photo-overlay {
  opacity: 1;
}

.photo-title {
  font-size: 24px;
  font-weight: 400;
  margin-bottom: 4px;
}

.photo-category {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 16px;
}

.photo-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 12px;
}

.photo-price {
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-sans);
}

.photo-specs-badge {
  font-size: 9px;
  background-color: rgba(255, 255, 255, 0.1);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  letter-spacing: 0.05em;
}

/* Centered Search/CTA Section */
.search-cta-section {
  text-align: center;
  padding: 96px 24px;
  border-top: 1px solid var(--border);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.search-cta-title {
  font-size: 32px;
  margin-bottom: 12px;
}

.search-cta-desc {
  font-size: 12px;
  color: var(--muted-foreground);
  margin-bottom: 32px;
}

.search-form {
  display: flex;
  width: 100%;
  max-width: 512px;
  margin-left: auto;
  margin-right: auto;
  background-color: var(--background);
  border: 1px solid rgba(107, 107, 102, 0.3);
  border-radius: var(--radius-md);
  padding: 6px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s ease;
}

.search-form:focus-within {
  border-color: var(--primary);
}

.search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-size: 13px;
  padding: 8px 16px;
  color: var(--foreground);
}

.search-submit-btn {
  background-color: #141414;
  color: #ffffff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 10px 24px;
  cursor: pointer;
}

.search-submit-btn:hover {
  background-color: #000000;
}

/* Page Headers */
.page-header {
  padding-top: 80px;
  padding-bottom: 40px;
  text-align: center;
  border-bottom: 1px solid var(--border);
  margin-bottom: 48px;
}

.page-title {
  font-size: 56px;
  margin-bottom: 8px;
}

.page-subtitle {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--primary);
  font-weight: 600;
}

/* Filter Controls on Gallery Page */
.gallery-controls {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 48px;
}

.filters-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.filter-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

.filter-select {
  background-color: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 32px 8px 12px;
  font-size: 13px;
  outline: none;
  cursor: pointer;
  transition: border-color 0.2s ease;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b6b66' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 16px;
}

.filter-select:focus {
  border-color: var(--primary);
}

/* Checkbox Button Filters */
.pill-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill-filter {
  cursor: pointer;
}

.pill-filter input {
  display: none;
}

.pill-label {
  display: inline-block;
  padding: 6px 16px;
  font-size: 12px;
  border: 1px solid var(--border);
  border-radius: 50px;
  background-color: var(--background);
  transition: all 0.2s ease;
}

.pill-filter input:checked + .pill-label {
  background-color: var(--primary);
  border-color: var(--primary);
  color: #141414;
  font-weight: 500;
}

/* Single Photo Details Page */
.detail-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 64px;
  margin-bottom: 80px;
}

@media (max-width: 992px) {
  .detail-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.detail-image-panel {
  position: relative;
  background-color: #141414;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.detail-img {
  width: 100%;
  max-height: 80vh;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

.watermark-overlay {
  position: absolute;
  font-size: clamp(32px, 5vw, 64px);
  font-family: var(--font-sans);
  color: rgba(255, 255, 255, 0.15);
  font-weight: 700;
  letter-spacing: 0.1em;
  transform: rotate(-30deg);
  pointer-events: none;
  user-select: none;
}

.detail-info-panel {
  display: flex;
  flex-direction: column;
}

.photo-detail-title {
  font-size: clamp(40px, 6vw, 56px);
  margin-bottom: 8px;
}

.photo-detail-category {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 24px;
}

.photo-detail-desc {
  font-size: 14px;
  color: var(--muted-foreground);
  line-height: 1.8;
  margin-bottom: 32px;
}

.purchase-card {
  border: 1px solid var(--border);
  background-color: #ffffff;
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 32px;
}

.license-select-group {
  margin-bottom: 24px;
}

.license-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.license-option:hover {
  background-color: var(--secondary);
}

.license-option.active {
  border-color: var(--primary);
  background-color: var(--gold-soft);
}

.license-details {
  display: flex;
  align-items: center;
  gap: 12px;
}

.license-name {
  font-size: 13px;
  font-weight: 600;
}

.license-desc {
  font-size: 11px;
  color: var(--muted-foreground);
}

.license-price {
  font-size: 14px;
  font-weight: 700;
  font-family: var(--font-sans);
}

.total-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border);
  padding-top: 20px;
  margin-bottom: 24px;
}

.total-price-label {
  font-size: 12px;
  color: var(--muted-foreground);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.total-price-value {
  font-size: 24px;
  font-weight: 700;
  color: var(--foreground);
}

.specs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  border-top: 1px solid var(--border);
  padding-top: 24px;
}

.spec-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.spec-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

.spec-value {
  font-size: 13px;
  font-weight: 500;
}

.tags-section {
  margin-top: 24px;
}

.tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.tag-badge {
  font-size: 10px;
  background-color: var(--secondary);
  padding: 6px 12px;
  border-radius: 4px;
  color: var(--muted-foreground);
}

/* About & Contact Forms */
.about-hero {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  margin-bottom: 64px;
}

.form-card {
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  background-color: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 48px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 112px;
}

@media (max-width: 640px) {
  .form-card {
    padding: 24px;
  }
}

.form-group {
  margin-bottom: 24px;
}

.form-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 8px;
}

.form-input, .form-textarea {
  width: 100%;
  background-color: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 13px;
  font-family: var(--font-sans);
  color: var(--foreground);
  outline: none;
  transition: border-color 0.2s ease;
}

.form-input:focus, .form-textarea:focus {
  border-color: var(--primary);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

/* Admin Dashboard CSS (Dark Theme) */
.admin-theme {
  --background: #0d0d0d; /* Black */
  --foreground: #e4e4e7;
  --card: #121212;
  --card-foreground: #e4e4e7;
  --border: #27272a; /* Zinc 800 */
  --input: #0d0d0d;
}

.admin-body {
  background-color: var(--background);
  color: var(--foreground);
}

.admin-header {
  border-bottom: 1px solid var(--border);
  background-color: var(--card);
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.admin-header-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 20px;
}

.admin-header-badge {
  font-size: 9px;
  font-family: var(--font-sans);
  font-weight: 600;
  color: var(--primary);
  background-color: rgba(194, 163, 112, 0.1);
  border: 1px solid rgba(194, 163, 112, 0.2);
  padding: 2px 8px;
  border-radius: 4px;
}

.admin-header-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.admin-btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  background-color: transparent;
  color: #a1a1aa;
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: all 0.2s ease;
}

.admin-btn-outline:hover {
  background-color: rgba(255, 255, 255, 0.05);
  color: #ffffff;
}

.admin-btn-logout {
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.2);
}

.admin-btn-logout:hover {
  background-color: rgba(239, 68, 68, 0.1);
  color: #f87171;
}

/* Dashboard Side Nav & Layout */
.admin-layout {
  display: flex;
  min-height: calc(100vh - 64px);
}

@media (max-width: 768px) {
  .admin-layout {
    flex-direction: column;
  }
}

.admin-sidebar {
  width: 256px;
  border-right: 1px solid var(--border);
  background-color: var(--card);
  padding: 16px 8px;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .admin-sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
}

.sidebar-title {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  color: #52525b;
  letter-spacing: 0.15em;
  padding: 8px 12px;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 8px;
}

.sidebar-nav-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: none;
  border: none;
  color: #a1a1aa;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
}

.sidebar-nav-btn:hover {
  background-color: rgba(255, 255, 255, 0.05);
  color: #ffffff;
}

.sidebar-nav-btn.active {
  background-color: rgba(194, 163, 112, 0.12);
  color: var(--primary);
  border-left: 2px solid var(--primary);
}

.sidebar-footer {
  margin-top: auto;
  padding: 16px 8px;
}

@media (max-width: 768px) {
  .sidebar-footer {
    display: none;
  }
}

.server-status-card {
  border: 1px solid var(--border);
  background-color: rgba(0, 0, 0, 0.3);
  padding: 12px;
  border-radius: 4px;
  text-align: center;
}

.status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #34d399;
  font-weight: 500;
  margin-top: 6px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #10b981;
  animation: pulse 1.5s infinite;
}

/* Dashboard Main Content Area */
.admin-main {
  flex: 1;
  padding: 40px;
  overflow-y: auto;
  background-color: var(--background);
}

@media (max-width: 640px) {
  .admin-main {
    padding: 20px;
  }
}

.admin-tab-content {
  display: none;
}

.admin-tab-content.active {
  display: block;
}

.admin-title-row {
  margin-bottom: 32px;
}

.admin-title {
  font-size: 36px;
  font-weight: 300;
}

.admin-subtitle {
  font-size: 12px;
  color: #71717a;
  margin-top: 4px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
}

.stat-card {
  border: 1px solid var(--border);
  background-color: var(--card);
  padding: 24px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
}

.stat-card:hover {
  transform: translateY(-2px);
  border-color: rgba(194, 163, 112, 0.3);
  background-color: #161616;
}

.stat-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: #71717a;
  letter-spacing: 0.1em;
}

.stat-card-value {
  font-size: 40px;
  font-weight: 600;
  color: #ffffff;
  margin-top: 16px;
}

.stat-card-link {
  font-size: 9px;
  color: #52525b;
  margin-top: 8px;
  display: block;
}

.stat-card:hover .stat-card-link {
  color: var(--primary);
}

/* Quick Actions Card Link */
.quick-actions-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

@media (max-width: 640px) {
  .quick-actions-row {
    grid-template-columns: 1fr;
  }
}

.quick-action-card {
  border: 1px dashed var(--border);
  background-color: rgba(18, 18, 18, 0.4);
  padding: 32px;
  border-radius: var(--radius-md);
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.quick-action-card:hover {
  background-color: rgba(18, 18, 18, 0.7);
  border-color: rgba(194, 163, 112, 0.35);
}

.quick-action-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: rgba(194, 163, 112, 0.1);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.quick-action-title {
  font-family: var(--font-display);
  font-size: 20px;
  color: #ffffff;
}

.quick-action-desc {
  font-size: 11px;
  color: #71717a;
  margin-top: 8px;
}

/* Data Table Component */
.admin-action-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.admin-table-controls {
  display: flex;
  align-items: center;
  gap: 16px;
  background-color: var(--card);
  border: 1px solid var(--border);
  padding: 16px;
  border-radius: var(--radius-md);
  margin-bottom: 24px;
}

.admin-table-wrapper {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
  color: #d4d4d8;
}

.admin-table th {
  background-color: #18181b;
  color: #a1a1aa;
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
}

.admin-table td {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(39, 39, 42, 0.5);
  vertical-align: middle;
}

.admin-table tr:hover {
  background-color: rgba(255, 255, 255, 0.02);
}

.admin-table-img {
  width: 64px;
  height: 48px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid var(--border);
  background-color: #000;
}

.badge-tag {
  background-color: #27272a;
  color: #e4e4e7;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
}

.actions-cell {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.btn-icon {
  background: none;
  border: 1px solid var(--border);
  color: #a1a1aa;
  width: 32px;
  height: 32px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-icon:hover {
  border-color: #ffffff;
  color: #ffffff;
}

.btn-icon-delete:hover {
  border-color: #ef4444;
  color: #ef4444;
  background-color: rgba(239, 68, 68, 0.1);
}

/* Modals */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-overlay.open {
  display: flex;
}

.modal-card {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  position: relative;
  display: flex;
  flex-direction: column;
}

.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-title {
  font-family: var(--font-display);
  font-size: 24px;
  color: #ffffff;
}

.modal-close-btn {
  background: none;
  border: none;
  color: #71717a;
  cursor: pointer;
}

.modal-close-btn:hover {
  color: #ffffff;
}

.modal-body {
  padding: 24px;
  overflow-y: auto;
}

.admin-modal-form .form-input, 
.admin-modal-form .form-textarea,
.admin-modal-form .filter-select {
  background-color: #0d0d0d;
  border-color: var(--border);
  color: #ffffff;
}

.admin-modal-form .form-input:focus, 
.admin-modal-form .form-textarea:focus,
.admin-modal-form .filter-select:focus {
  border-color: var(--primary);
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
}

.checkbox-row input {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
}

/* File Upload Dropzone in Modals */
.file-dropzone {
  border: 2px dashed var(--border);
  border-radius: 4px;
  padding: 32px;
  text-align: center;
  cursor: pointer;
  background-color: #0d0d0d;
  margin-bottom: 20px;
  transition: border-color 0.2s ease;
  position: relative;
}

.file-dropzone:hover {
  border-color: var(--primary);
}

.file-dropzone-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 10;
}

.file-dropzone-icon {
  color: #52525b;
  margin-bottom: 8px;
  display: inline-block;
  pointer-events: none;
}

.file-dropzone-text {
  pointer-events: none;
  font-size: 12px;
  color: #71717a;
}

.file-preview-container {
  margin-top: 12px;
  display: none;
}

.file-preview-img {
  max-width: 100%;
  max-height: 150px;
  border-radius: 4px;
  border: 1px solid var(--border);
  object-fit: contain;
}

/* Auth Login Overlay */
.auth-overlay {
  display: flex;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  background-color: #0d0d0d;
  padding: 16px;
}

.auth-card {
  width: 100%;
  max-width: 400px;
  border: 1px solid var(--border);
  background-color: var(--card);
  padding: 32px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}

.auth-header {
  text-align: center;
  margin-bottom: 32px;
}

.auth-title {
  font-family: var(--font-display);
  font-size: 28px;
  color: #ffffff;
  margin-top: 16px;
}

.auth-subtitle {
  font-size: 10px;
  color: #71717a;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-top: 6px;
}

/* Spinner Loader */
.spinner-container {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
}

.spinner {
  width: 32px;
  height: 32px;
  border: 3px solid rgba(194, 163, 112, 0.15);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* Loading Overlay */
.loading-blocker {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loading-modal {
  background-color: var(--card);
  border: 1px solid var(--border);
  padding: 24px;
  border-radius: 4px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

/* Keyframes animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 0.4;
  }
  50% {
    opacity: 1;
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
