/* 
 * Errant-Arts — main stylesheet
 * Layout, typography, image protection, and component styling.
 */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Montserrat:wght@300;400;500;600;700&family=Great+Vibes&display=swap');

/* Base Styles */
:root {
  /* PowerPoint color scheme */
  --color-navy: #3A3C46;
  --color-teal: #5BA4A4;
  --color-khaki: #A4A35B;
  --color-terracotta: #A45B5B;
  --color-gold: #DBC175;
  --color-sage: #8DA479;
  
  /* UI color assignments */
  --color-primary: var(--color-navy);
  --color-secondary: var(--color-teal);
  --color-accent: var(--color-gold);
  --color-light: #f5f5f5;
  --color-dark: var(--color-navy);
  --color-border: #e0e0e0;
  --color-error: var(--color-terracotta);
  --color-success: var(--color-sage);
  
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Montserrat', sans-serif;
  
  --border-radius: 4px;
  --box-shadow: 0 4px 12px rgba(58, 60, 70, 0.15);
  --transition: all 0.3s ease;
}

/* Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-secondary);
  background-color: #fff;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  pointer-events: none; /* Prevents some drag attempts */
  transition: opacity 0.3s ease, filter 0.3s ease;
}

/* Base artwork image wrapper with overlay to block direct clicks on <img> */
.artwork-image {
  position: relative;
  overflow: hidden;
}

.artwork-image img {
  display: block;
  width: 100%;
  height: auto;
}

.artwork-image::after {
  content: "";
  position: absolute;
  inset: 0;
  /* Invisible but blocks clicks on the underlying <img> */
  background: transparent;
  pointer-events: auto;
}

/* Dynamic image loading styles */
.img-loading-container {
  position: relative;
  background-color: var(--color-light);
  overflow: hidden;
}

.img-loading-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right, transparent, rgba(255,255,255,0.3), transparent);
  animation: loading-shine 1.5s infinite;
  z-index: 1;
}

img[data-src] {
  opacity: 0;
  filter: blur(5px);
}

img.img-loaded {
  opacity: 1;
  filter: blur(0);
}

.img-container-loaded::before {
  animation: none;
  opacity: 0;
}

@keyframes loading-shine {
  to {
    left: 100%;
  }
}

/* Image protection styles */
.artwork-image,
.featured-image,
.hero-image-container, 
.masonry-item,
.featured-item,
.artwork-card,
.asset-image {
  position: relative;
  overflow: hidden;
}

.signature {
  font-family: 'Great Vibes', cursive;
  font-size: 2rem;
  color: #000;
  display: inline-block;
  margin-top: 1rem;
}

.producedby {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.95rem;
  color: #444;
}

.producedby a {
  color: #0077cc;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease-in-out;
}

.producedby a:hover,
.producedby a:focus {
  color: #005fa3;
  text-decoration: underline;
}

.watermark-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: rgba(255, 255, 255, 0.3);
  font-size: 2rem;
  font-weight: bold;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
  transform: rotate(-30deg);
  pointer-events: none;
  z-index: 10;
  /* CSS-based screenshot protection - repeating pattern */
  background-image: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 20px,
    rgba(255, 255, 255, 0.02) 20px,
    rgba(255, 255, 255, 0.02) 40px
  );
}

/* Make it harder to grab clean screenshots */
.artwork-image img,
.featured-image,
.hero-image, 
.masonry-item img,
.featured-item img,
.artwork-card img {
  filter: brightness(0.99) contrast(0.99);
  background-blend-mode: overlay;
}

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

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

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
header,
.site-header {
  padding: 20px 0;
  background-color: var(--color-navy);
  box-shadow: 0 2px 10px rgba(58, 60, 70, 0.15);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.logo-container {
  flex: 0 0 auto;
}

.logo {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 1px;
  text-decoration: none;
  position: relative;
  display: inline-block;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

.logo::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--color-gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.logo:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Navigation */
.main-nav {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 30px;
}

.nav-links li a {
  font-weight: 500;
  position: relative;
  padding-bottom: 5px;
  color: #fff;
}

.nav-links li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--color-gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.nav-links li a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.mobile-menu-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--color-primary);
  margin: 5px 0;
  transition: var(--transition);
}

/* Hero Section */
.hero {
  display: flex;
  min-height: 70vh;
  background-color: #fff;
  position: relative;
  overflow: hidden;
}

.hero-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 20px;
  z-index: 2;
  max-width: 600px;
}

.hero-text {
  padding: 40px;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  border: 1px solid var(--color-khaki);
}

.hero-text h1 {
  font-family: var(--font-heading);
  font-size: 4rem;
  line-height: 1.1;
  margin-bottom: 20px;
  color: var(--color-navy);
}

.hero-text p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: var(--color-teal);
}

.hero-images {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.color-block {
  position: absolute;
  width: 70%;
  height: 80%;
  background-color: var(--color-navy);
  z-index: 1;
  right: 10%;
  top: 10%;
  border: 2px solid rgba(255, 255, 255, 0.3);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.hero-image-container {
  position: relative;
  width: 70%;
  height: 80%;
  z-index: 2;
  right: 5%;
  top: -5%;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  box-shadow: var(--box-shadow);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 24px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  border: none;
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.btn-primary {
  background-color: var(--color-teal);
  color: #fff;
  border: 1px solid var(--color-teal);
}

.btn-primary:hover {
  background-color: var(--color-navy);
  color: #fff;
  border: 1px solid var(--color-navy);
}

/* Category Pills */
.categories {
  padding: 30px 0;
  background-color: #fff;
}

.category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.category-pill {
  padding: 8px 16px;
  background-color: var(--color-light);
  border-radius: 30px;
  transition: var(--transition);
  font-weight: 500;
  border: 1px solid var(--color-khaki);
  color: var(--color-navy);
}

.category-pill:hover,
.category-pill.active {
  background-color: var(--color-khaki);
  color: #fff;
}

/* Featured Section */
.featured {
  padding: 60px 0;
  background-color: #fff;
}

.featured h2,
.artwork-grid h2 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  margin-bottom: 30px;
  text-align: center;
  position: relative;
  color: var(--color-navy);
}

.featured h2::after,
.artwork-grid h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background-color: var(--color-gold);
}

.featured-slider {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 10px 0 20px 20px;
  margin: 0 -20px;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--color-khaki) rgba(0, 0, 0, 0.05);
  margin-top: 30px;
}

.featured-slider::-webkit-scrollbar {
  height: 8px;
}

.featured-slider::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05);
}

.featured-slider::-webkit-scrollbar-thumb {
  background-color: var(--color-khaki);
  border-radius: 4px;
}

.featured-slider.dragging {
  cursor: grabbing;
}

.featured-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  border: 1px solid var(--color-light);
  flex: 0 0 80%;
  max-width: 60%;
  scroll-snap-align: start;
}

.featured-item:hover {
  transform: translateY(-5px);
  border-color: var(--color-khaki);
}

.featured-image {
  width: 60%;
  aspect-ratio: 3/4;
  object-fit: cover;
  transition: var(--transition);
}

.featured-info {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(to top, rgba(58, 60, 70, 0.9), transparent);
  padding: 20px;
  color: #fff;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.featured-info h3 {
  margin-bottom: 5px;
  font-size: 1.2rem;
}

.price {
  font-weight: 700;
  color: var(--color-gold);
}

/* ========================================
   GALLERY PROTECTED VIEWER STYLES
   ======================================== */

/* Gallery protected viewer container */
.ea-gallery-protected {
  position: relative;
  overflow: hidden;
  background: var(--color-light);
  border-radius: var(--border-radius);
}

.ea-gallery-viewer {
  position: relative;
  width: 100%;
  padding-bottom: 100%; /* Square aspect ratio for grid */
  background: var(--color-light);
}

.ea-gallery-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  -webkit-user-select: none;
  pointer-events: none;
}

/* Subtle watermark for gallery thumbnails */
.ea-watermark-gallery {
  position: absolute;
  bottom: 8px;
  right: 8px;
  padding: 4px 8px;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  border-radius: 4px;
  pointer-events: none;
  z-index: 2;
  backdrop-filter: blur(4px);
}

.ea-watermark-gallery span {
  display: block;
  white-space: nowrap;
}

/* No image placeholder */
.no-image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 300px;
  background: var(--color-light);
  color: var(--color-secondary);
  border-radius: var(--border-radius);
}

/* Prevent right-click on gallery items */
.artwork-card {
  -webkit-user-select: none;
  user-select: none;
}

.artwork-card .ea-canvas,
.artwork-card .ea-gallery-canvas {
  pointer-events: none; /* Prevents right-click on canvas */
}

/* Hover effect - maintain protection */
.masonry-item:hover .ea-gallery-viewer {
  transform: none; /* Don't zoom on hover to prevent screenshot attempts */
}

/* ========================================
   SINGLE PRODUCT PAGE STYLES
   ======================================== */

/* Centre the product image block and constrain its width a bit */
.single-product .asset-image {
  max-width: 600px;
  margin: 0 auto 30px;
}

/* Wrapper for the protected canvas preview IN THE PAGE (small) */
.single-product .asset-image .protected-viewer {
  width: 100%;
  margin: 0 auto;
  display: block;
  overflow: hidden;
  max-height: 180px;      /* small inline preview */
  background: #000;
  border-radius: 6px;
}

/* Canvas inside the small inline preview */
.single-product .asset-image .protected-viewer canvas {
  width: 100% !important;
  height: auto !important;
  max-height: 180px;
  display: block;
}

/* Wrapper for the protected image preview */
.single-product .protected-viewer {
    width: 100%;
    max-height: 180px;       /* NEW height limit */
    margin: 0 auto;
    overflow: hidden;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #000;        /* subtle black frame */
    border-radius: 6px;
}

/* Canvas scales proportionally and obeys max-height */
.single-product .protected-viewer canvas {
    width: auto !important;
    height: 100% !important;    /* fill the height but respect max-height */
    max-height: 180px;
    display: block;
}

/* Watermark grid scales down proportionally */
.single-product .protected-viewer .watermark-grid {
    inset: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    padding: 0.5rem;
    gap: 0.75rem;
}

.single-product .protected-viewer .watermark-grid span {
    font-size: clamp(0.6rem, 1.5vw, 1rem);
    opacity: 0.4;
}

/* === HARD OVERRIDE: clamp all protected previews to 180px === */
body .protected-viewer {
  max-height: 180px;
  max-width: 360px;       /* adjust if you want wider/narrower */
  margin: 0 auto 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  background: #000;
  border-radius: 6px;
}

/* Override any inline canvas size */
body .protected-viewer canvas {
  height: 100% !important;     /* fill the 180px height */
  width: auto !important;      /* keep aspect ratio */
  max-height: 180px !important;
  display: block;
}

/* === CLICK-TO-ZOOM MODAL === */
.ea-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease-in-out;
}

.ea-lightbox--open {
  opacity: 1;
  pointer-events: auto;
}

.ea-lightbox__inner {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  width: 100%;
}

.ea-lightbox__viewer {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #000;
  border-radius: 8px;
  box-shadow: var(--box-shadow);
}

/* Canvas in the modal: big, but still constrained to viewport */
.ea-lightbox__viewer canvas {
  display: block;
  width: 100% !important;
  height: auto !important;
  max-height: 90vh;
}

/* Reuse watermark grid styling in modal */
.ea-lightbox__viewer .watermark-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1rem;
  padding: 1.5rem;
  mix-blend-mode: multiply;
}

.ea-lightbox__viewer .watermark-grid span {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(0.9rem, 2vw, 1.4rem);
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  text-align: center;
}

/* Close button */
.ea-lightbox__close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #fff;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  z-index: 10000;
}

.ea-lightbox__close:hover {
  background: rgba(255, 255, 255, 0.1);
}

@media (min-width: 992px) {
  .featured-slider {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    overflow: visible;
    margin: 40px 0 0;
    padding: 0;
    scroll-snap-type: none;
  }

  .featured-slider::-webkit-scrollbar {
    height: initial;
  }

  .featured-item {
    flex: initial;
    max-width: none;
    scroll-snap-align: unset;
  }
}

/* Content pages */
.content-page {
  padding: 60px 0;
  background-color: #fff;
}

.content-page h1 {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  color: var(--color-navy);
  margin-bottom: 30px;
}

.content-section {
  margin-bottom: 25px;
  line-height: 1.8;
}

.content-section h2 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: var(--color-navy);
  margin-bottom: 10px;
}

.content-section ul {
  padding-left: 20px;
  list-style: disc;
}

.muted {
  color: rgba(58, 60, 70, 0.6);
  font-size: 0.9rem;
}

/* Masonry Grid */
.artwork-grid {
  padding: 60px 0;
  background-color: var(--color-light);
}

.masonry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  grid-gap: 20px;
  grid-auto-flow: dense;
}

.masonry-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  break-inside: avoid;
  border: 1px solid rgba(58, 60, 70, 0.1);
  background-color: #fff;
}

.masonry-item:hover {
  transform: translateY(-5px);
  border-color: var(--color-teal);
}

.artwork-card {
  display: block;
  position: relative;
}

.artwork-image {
  overflow: hidden;
}

.artwork-image img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.artwork-info {
  padding: 15px;
  background-color: #fff;
  border-top: 3px solid var(--color-khaki);
}

.artwork-info h3 {
  margin-bottom: 5px;
  font-size: 1.1rem;
  color: var(--color-navy);
}

/* Testimonials */
.testimonials {
  padding: 80px 0;
  background-color: #fff;
}

.testimonial-carousel {
  display: flex;
  gap: 30px;
  padding: 20px 0;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.testimonial-carousel::-webkit-scrollbar {
  display: none;
}

.testimonial {
  min-width: 350px;
  scroll-snap-align: start;
}

.testimonial-content {
  background-color: var(--color-light);
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  position: relative;
  border-left: 4px solid var(--color-terracotta);
}

.testimonial-content::before {
  content: "\\201C";
  font-family: var(--font-heading);
  font-size: 5rem;
  position: absolute;
  top: -20px;
  left: 10px;
  color: var(--color-terracotta);
  opacity: 0.2;
}

.testimonial-content::after {
  content: "\\201D";
  font-family: var(--font-heading);
  font-size: 5rem;
  position: absolute;
  bottom: -50px;
  right: 10px;
  color: var(--color-terracotta);
  opacity: 0.2;
}

.testimonial-author {
  font-style: italic;
  margin-top: 20px;
  text-align: right;
  color: var(--color-navy);
}

/* Footer */
footer,
.site-footer {
  background-color: var(--color-navy);
  color: #fff;
  padding: 60px 0 30px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo h2 {
  font-family: var(--font-heading);
  margin-bottom: 15px;
  font-size: 2rem;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

.footer-logo p {
  opacity: 0.8;
}

.footer-links h3,
.footer-categories h3,
.footer-contact h3 {
  margin-bottom: 20px;
  font-size: 1.2rem;
  position: relative;
  padding-bottom: 10px;
  color: var(--color-gold);
}

.footer-links h3::after,
.footer-categories h3::after,
.footer-contact h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--color-gold);
}

footer ul {
  list-style: none;
}

footer ul li {
  margin-bottom: 10px;
}

footer ul li a {
  color: rgba(255, 255, 255, 0.8);
  transition: var(--transition);
}

footer ul li a:hover {
  color: var(--color-gold);
  padding-left: 5px;
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.social-links svg {
  color: #fff;
}

.copyright {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  opacity: 0.8;
}

/* Flash Messages */
.flash-messages {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.flash-message {
  padding: 15px 20px;
  border-radius: var(--border-radius);
  background-color: #fff;
  box-shadow: var(--box-shadow);
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 300px;
}

.flash-message.error {
  border-left: 4px solid var(--color-error);
}

.flash-message.success {
  border-left: 4px solid var(--color-success);
}

.close-flash {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0.5;
  transition: var(--transition);
}

.close-flash:hover {
  opacity: 1;
}

/* Forms */
.form-group {
  margin-bottom: 20px;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

input,
textarea,
select {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  font-family: var(--font-body);
  font-size: 16px;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--color-accent);
}

.help-text {
  font-size: 0.85rem;
  color: #666;
  margin-top: 5px;
}

.form-actions {
  margin-top: 30px;
}

.checkbox-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.checkbox-group input {
  width: auto;
}

/* Asset Detail Page */
.breadcrumbs {
  padding: 20px 0;
  font-size: 0.9rem;
  color: #666;
}

.asset-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}

.asset-image {
  position: relative;
}

.protected-viewer {
  position: relative;
  background: #050505;
  border-radius: var(--border-radius);
  overflow: hidden;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.protected-viewer canvas {
  width: 100%;
  height: auto;
  display: block;
  filter: saturate(0.92) contrast(0.98);
  transition: filter 0.3s ease;
}

.protected-viewer.preview-blurred canvas {
  filter: blur(14px);
}

.watermark-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1.5rem;
  padding: 1.5rem;
  mix-blend-mode: multiply;
}

.watermark-grid span {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.5rem, 4vw, 2.4rem);
  color: rgba(45, 45, 45, 0.45);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  text-align: center;
}

.protected-viewer.preview-error canvas {
  opacity: 0.1;
}

.preview-error-message {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  padding: 1rem 1.5rem;
  border-radius: var(--border-radius);
  max-width: 320px;
  text-align: center;
  font-size: 0.9rem;
}

.watermark-notice {
  margin-top: 10px;
  padding: 10px;
  background-color: rgba(0, 0, 0, 0.05);
  border-radius: var(--border-radius);
  font-size: 0.9rem;
  text-align: center;
}

.asset-title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.asset-categories {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.category-tag {
  padding: 5px 10px;
  background-color: var(--color-light);
  border-radius: 20px;
  font-size: 0.85rem;
}

.asset-price {
  font-size: 1.8rem;
  margin-bottom: 20px;
  font-weight: 700;
}

.asset-description {
  margin-bottom: 30px;
  line-height: 1.7;
}

.purchase-form {
  background-color: var(--color-light);
  padding: 30px;
  border-radius: var(--border-radius);
}

.btn-purchase {
  width: 100%;
  padding: 15px;
  font-size: 1.1rem;
}

.purchase-info {
  margin-top: 20px;
  font-size: 0.9rem;
  color: #666;
}

.related-assets {
  margin-top: 80px;
  padding-top: 40px;
  border-top: 1px solid var(--color-border);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 30px;
}

.related-item {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.related-item:hover {
  transform: translateY(-5px);
}

.related-info {
  padding: 15px;
  background-color: #fff;
}

.related-info h3 {
  font-size: 1rem;
  margin-bottom: 5px;
}

/* Admin Styles */
.admin-container {
  padding: 40px 0;
}

.admin-container h1 {
  margin-bottom: 20px;
}

.admin-actions {
  margin-bottom: 30px;
}

.admin-section {
  margin-bottom: 40px;
}

.admin-section h2 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  font-family: var(--font-heading);
}

.admin-form {
  max-width: 800px;
  background-color: #fff;
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  margin-bottom: 30px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  background-color: #fff;
  box-shadow: var(--box-shadow);
  border-radius: var(--border-radius);
  overflow: hidden;
}

.admin-table th, 
.admin-table td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

.admin-table th {
  background-color: var(--color-navy);
  color: white;
  font-weight: 500;
}

.admin-table tr:nth-child(even) {
  background-color: rgba(0, 0, 0, 0.02);
}

.admin-table tr:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.actions {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

.inline-form {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.hidden {
  display: none;
}

.btn-sm {
  padding: 5px 10px;
  font-size: 0.85rem;
}

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

.btn-danger:hover {
  background-color: #8a3636;
  color: white;
}

.category-checkboxes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
}

.category-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
}

.category-checkbox input {
  width: auto;
}

.watermark-settings {
  background-color: rgba(0, 0, 0, 0.05);
  padding: 20px;
  border-radius: var(--border-radius);
  margin-top: 30px;
}

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

.form-row label {
  width: 150px;
  margin-bottom: 0;
}

.form-row input[type="range"] {
  flex: 1;
}

/* Success Page */
.success-container {
  padding: 60px 0;
  display: flex;
  justify-content: center;
}

.success-message {
  max-width: 600px;
  background-color: #fff;
  padding: 40px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  text-align: center;
}

.success-icon {
  color: var(--color-success);
  margin-bottom: 20px;
}

.order-details {
  margin: 30px 0;
  padding: 20px;
  background-color: var(--color-light);
  border-radius: var(--border-radius);
  text-align: left;
}

.download-info {
  text-align: left;
  margin-bottom: 30px;
}

.download-info ul {
  padding-left: 20px;
  margin-top: 10px;
}

/* About & Contact Pages */
.about-container,
.contact-container {
  padding: 60px 0;
}

.about-header,
.contact-header {
  text-align: center;
  margin-bottom: 40px;
}

.about-header h1,
.contact-header h1 {
  font-family: var(--font-heading);
  font-size: 3rem;
  margin-bottom: 10px;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.about-image img {
  width: 100%;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.about-text h2 {
  font-family: var(--font-heading);
  margin: 30px 0 20px;
  font-size: 1.8rem;
}

.about-text h2:first-child {
  margin-top: 0;
}

.contact-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
}

.contact-form-container {
  background-color: #fff;
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.contact-info {
  background-color: var(--color-light);
  padding: 30px;
  border-radius: var(--border-radius);
}

.contact-info h2 {
  font-family: var(--font-heading);
  margin-bottom: 20px;
}

.contact-item {
  margin-bottom: 30px;
}

.contact-item h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.contact-social {
  display: flex;
  gap: 15px;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: var(--color-primary);
  border-radius: 50%;
  transition: var(--transition);
}

.social-link svg {
  color: #fff;
}

.social-link:hover {
  background-color: var(--color-accent);
}

/* Empty Collection */
.empty-collection {
  text-align: center;
  padding: 60px 0;
}

/* Extra protection: invisible overlay so right-click targets the wrapper, not the pixels */
.protected-viewer {
  position: relative;
}

.protected-viewer::after {
  content: "";
  position: absolute;
  inset: 0;
  background: transparent;
  pointer-events: auto;
}

/* Responsive Styles */
@media (max-width: 1200px) {
  .hero-text h1 {
    font-size: 3.5rem;
  }
  
  .related-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 992px) {
  .hero {
    flex-direction: column;
  }
  
  .hero-content {
    max-width: 100%;
  }
  
  .hero-text h1 {
    font-size: 3rem;
  }
  
  .hero-images {
    height: 60vh;
  }
  
  .featured-slider {
    margin: 0 -15px;
    padding-left: 15px;
  }

  .featured-item {
    flex: 0 0 60%;
    max-width: 60%;
  }
  
  .asset-detail {
    grid-template-columns: 1fr;
  }
  
  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .about-content,
  .contact-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: block;
  }
  
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    flex-direction: column;
    background-color: #fff;
    padding: 20px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
  }
  
  .nav-links.active {
    display: flex;
  }
  
  .hero-text h1 {
    font-size: 2.5rem;
  }
  
  .featured-slider {
    margin: 0 -10px;
    padding-left: 10px;
  }

  .featured-item {
    flex: 0 0 75%;
    max-width: 75%;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .masonry-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }

  .protected-viewer {
    min-height: 300px;
  }

  .watermark-grid {
    gap: 1rem;
    padding: 1rem;
  }
  
  /* Mobile gallery adjustments */
  .ea-watermark-gallery {
    font-size: 0.55rem;
    padding: 3px 6px;
  }
}

@media (max-width: 576px) {
  .hero-text {
    padding: 20px;
  }
  
  .hero-text h1 {
    font-size: 2rem;
  }
  
  .testimonial {
    min-width: 280px;
  }

  .featured-item {
    flex: 0 0 85%;
    max-width: 85%;
  }
  
  .related-grid {
    grid-template-columns: 1fr;
  }
}
