/* ===== DigitalFotoStore Brazil - Câmeras Profissionais ===== */

/* Line clamp utilities for text truncation */
.line-clamp-1 {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-4 {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* DigitalFotoStore Brazil Theme Variables */
:root {
  /* Core Colors - Brazil Camera Store Theme */
  --primary-bg: #202020;        /* Dark background */
  --secondary-bg: #2A2A2A;      /* Cards and containers */
  --accent: #FF9800;             /* Orange - primary brand color */
  --accent-hover: #FFB74D;      /* Lighter orange - hover state */
  --accent-glow: rgba(255, 152, 0, 0.4); /* Accent glow effect */

  /* CTA Button Gradient */
  --cta-gradient: linear-gradient(135deg, #FF9D10 0%, #FFF223 100%);
  --cta-gradient-hover: linear-gradient(135deg, #FFB74D 0%, #FFF223 100%);

  /* Text Colors */
  --text-white: #FFFFFF;        /* Pure white - headings */
  --text-primary: #E2E8F0;      /* Light gray - body text */
  --text-muted: #94A3B8;        /* Muted text - secondary info */
  --text-dark: #202020;         /* Dark text for light backgrounds */

  /* Background Colors */
  --bg-light: #FFFFF4;          /* Light background */
  --bg-dark: #202020;           /* Dark background */

  /* Highlight Color for Prices/Discounts */
  --highlight: #FFEE23;         /* Yellow - prices and discounts */

  /* Border & Glow */
  --border-glow: rgba(255, 152, 0, 0.3); /* Subtle glow border */
  --card-border: rgba(148, 163, 184, 0.1); /* Card border */

  /* Shadows */
  --glow-shadow: 0 0 20px var(--accent-glow);
  --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
  --card-hover-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
  --button-shadow: 0 4px 12px rgba(255, 152, 0, 0.3);
  --button-shadow-hover: 0 6px 20px rgba(255, 152, 0, 0.5);
  --filter-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);

  /* Glass Effect */
  --glass-bg: rgba(32, 32, 32, 0.8);
  --glass-border: rgba(255, 152, 0, 0.2);
}

/* 1. Product View Button - DigitalFotoStore Brazil Style */
.product-view-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
  color: var(--text-white);
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  border: 1px solid var(--border-glow);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--button-shadow);
  overflow: hidden;
}

.product-view-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s;
}

.product-view-btn:hover {
  box-shadow: var(--button-shadow-hover), var(--glow-shadow);
  transform: translateY(-2px);
}

.product-view-btn:hover::before {
  left: 100%;
}

.product-view-btn:active {
  transform: translateY(0);
  box-shadow: var(--button-shadow);
}

.product-view-btn .icon {
  font-size: 1rem;
  transition: transform 0.3s ease;
}

.product-view-btn .icon:hover {
  transform: scale(1.1);
}

/* 2. Shop Page Title - DigitalFotoStore Brazil Style */
.shop-page-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-white);
  margin-bottom: 0.5rem;
  position: relative;
  display: inline-block;
  animation: fadeInUp 0.6s ease-out;
  text-shadow: 0 0 30px var(--accent-glow);
}

.shop-page-title::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-hover));
  border-radius: 2px;
  box-shadow: var(--glow-shadow);
}

/* 3. Filter Button - Clean Style */
.filter-btn {
  position: relative;
  padding: 0.75rem 1.5rem;
  border: 1px solid var(--card-border);
  border-radius: 8px;
  background: var(--secondary-bg);
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
}

/* Shop page filter buttons - clean hover effect */
#shop-filters .filter-btn {
  background: rgba(42, 42, 42, 0.5);
  border: 1px solid rgba(148, 163, 184, 0.1);
  color: #fff;
  transition: all 0.2s ease;
}

#shop-filters .filter-btn:hover {
  background: rgba(255, 152, 0, 0.2);
  border-color: rgba(255, 152, 0, 0.5);
  color: #FF9800;
  box-shadow: 0 0 20px rgba(255, 152, 0, 0.15);
  transform: translateY(-1px);
}

#shop-filters .filter-btn.active {
  background: linear-gradient(135deg, #FF9800 0%, #FFB74D 100%);
  border-color: #FF9800;
  color: #fff;
  box-shadow: 0 0 25px rgba(255, 152, 0, 0.4);
}

/* Default filter button styles */
.filter-btn:hover {
  color: var(--text-white);
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--filter-shadow);
}

.filter-btn.active {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
  color: var(--text-white);
  border-color: var(--accent);
  box-shadow: var(--button-shadow);
}

/* 4. Filters Container - DigitalFotoStore Brazil Style */
.filters-container {
  background: var(--secondary-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: var(--card-shadow);
  position: relative;
  overflow: hidden;
  animation: fadeInUp 0.6s ease-out;
  animation-delay: 0.2s;
}

.filters-container::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle,
    var(--accent-glow) 0%,
    transparent 70%
  );
  pointer-events: none;
  opacity: 0.15;
}

/* 5. Product Count - DigitalFotoStore Brazil Style */
.product-count {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
  color: var(--text-white);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.875rem;
  box-shadow: var(--button-shadow);
  animation: fadeInUp 0.6s ease-out;
  animation-delay: 0.4s;
  border: 1px solid var(--border-glow);
}

/* 6. 动画增强 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 7. Responsive Design - DigitalFotoStore Brazil Theme */
/* Mobile */
@media (max-width: 767px) {
  .shop-page-title {
    font-size: 2rem;
  }

  .product-view-btn {
    padding: 0.625rem 1.25rem;
    font-size: 0.8125rem;
  }

  .filter-btn {
    padding: 0.625rem 1.25rem;
    font-size: 0.8125rem;
  }

  .filters-container {
    padding: 1rem;
  }

  .product-count {
    padding: 0.375rem 0.75rem;
    font-size: 0.8125rem;
  }

  /* Mobile grid optimization */
  #shop-grid, #new-products-grid, #featured-scroll, #related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  /* Card width optimization */
  [data-animate-card] {
    width: 100% !important;
    max-width: 100% !important;
  }
}

/* Tablet */
@media (min-width: 768px) and (max-width: 1023px) {
  .shop-page-title {
    font-size: 2.25rem;
  }
}

/* Desktop */
@media (min-width: 1024px) {
  .shop-page-title {
    font-size: 2.75rem;
  }

  .product-view-btn {
    padding: 0.875rem 1.75rem;
    font-size: 0.9375rem;
  }

  .filter-btn {
    padding: 0.875rem 1.75rem;
    font-size: 0.9375rem;
  }
}

/* 8. DigitalFotoStore Brazil Custom Utilities */
/* Glass morphism effect */
.glass-effect {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
}

/* Glow effect text */
.glow-text {
  text-shadow: 0 0 20px var(--accent-glow);
}

/* Neon border effect */
.neon-border {
  border: 1px solid var(--border-glow);
  box-shadow: 0 0 10px var(--accent-glow), inset 0 0 10px var(--accent-glow);
}

/* Card hover glow */
.card-glow:hover {
  box-shadow: var(--card-hover-shadow), var(--glow-shadow);
  border-color: var(--accent);
}