/* 
 * Main CSS for Gonzaga's Art & Shine
 * Dark theme with psychedelic and geometric accents
 * ✅ 100% MODULAR - Usa APENAS variáveis do variables.css
 */

:root {
  --color-primary: #1e1e1e;
  --color-secondary: var(--color-secondary); /* Era #4a3c2d ❌ */
  --color-accent: var(--color-accent); /* Era #6a8c69 ❌ */
  --color-text: #f0f0f0;
  --color-highlight: var(--color-silver); /* Era #b19cd9 ❌ */
  --color-error: var(--color-danger); /* Era #ff6b6b ❌ */
  --color-success: var(--color-success); /* Era #51cf66 ❌ */
  --font-primary: 'Poppins', sans-serif;
  --font-heading: 'Playfair Display', serif;
}

/* Base styles and reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  background-color: var(--color-primary);
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  margin-bottom: 1rem;
}

h1 {
  font-size: 3rem;
  color: var(--color-highlight);
}

h2 {
  font-size: 2.5rem;
  color: var(--color-text);
}

h3 {
  font-size: 2rem;
  color: var(--color-accent);
}

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

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

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

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header styles */
.main-header {
  background-color: rgba(0, 0, 0, 0.9);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo h1 {
  font-size: 1.5rem;
  margin: 0;
  color: var(--color-text);
  letter-spacing: 1px;
}

.main-nav {
  display: flex;
  align-items: center;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 1.5rem;
}

.nav-menu a {
  font-size: 0.95rem;
  font-weight: 400;
  position: relative;
}

.nav-menu a.active,
.nav-menu a:hover {
  color: var(--color-highlight);
}

.nav-menu a.active::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--color-highlight);
}

/* === START: COMMENTED OUT OLD GLOBAL DROPDOWN STYLES ===
/* Dropdown styles */
/*.dropdown {
  position: relative; /* Establishes positioning context for the dropdown menu */
/*}

.dropdown-toggle::after {
  content: '▾';
  margin-left: 5px;
  font-size: 0.8rem;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: rgba(0, 0, 0, 0.95);
  min-width: 180px;
  border-radius: 5px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 1000;
}

.dropdown.open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li {
  list-style: none;
}

.dropdown-menu a {
  display: block;
  padding: 0.5rem 1rem;
  width: 100%;
  transition: background-color 0.3s ease;
}

.dropdown-menu a:hover {
  background-color: rgba(255, 255, 255, 0.05);
}*/
/* === END: COMMENTED OUT OLD GLOBAL DROPDOWN STYLES === */

/* === NEW GLOBAL DROPDOWN STYLES === */
.dropdown {
  position: relative; /* Crucial for positioning the dropdown menu */
  display: inline-block; /* Adjust if it's a direct list item in a flex container */
}

.dropdown-toggle::after {
  content: ' \25BE'; /* Downward arrow unicode character */
  display: inline-block;
  margin-left: 0.3em;
  font-size: 0.8em;
  vertical-align: middle;
  border: none; /* Ensure no default browser borders on pseudo-elements */
}

.dropdown-menu {
  position: absolute;
  top: 100%; /* Position below the parent */
  left: 0;
  z-index: 1000;
  display: none; /* Hidden by default, rely on .open class to show */
  min-width: 200px;
  padding: 0.5rem 0;
  margin: 2px 0 0; /* Small gap from parent */
  font-size: 0.9rem;
  color: var(--color-text-light); /* Text color for dropdown items */
  text-align: left;
  list-style: none;
  background-color: var(--color-secondary); /* Dropdown background */
  background-clip: padding-box;
  border: 1px solid rgba(0,0,0,.15);
  border-radius: 0.25rem;
  box-shadow: 0 0.5rem 1rem rgba(0,0,0,.175);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.2s ease-in-out, visibility 0.2s ease-in-out, transform 0.2s ease-in-out;
}

.dropdown.open > .dropdown-menu { /* Use > for direct child, ensure .open is on .dropdown */
  display: block; /* Show the menu */
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  display: block;
  width: 100%;
  padding: 0.5rem 1rem;
  clear: both;
  font-weight: 400;
  color: var(--color-text-light); /* Ensure links inherit or have specific color */
  text-align: inherit;
  white-space: nowrap;
  background-color: transparent;
  border: 0;
  text-decoration: none;
  box-sizing: border-box; /* Consistent padding and border behavior */
}

.dropdown-menu a:hover,
.dropdown-menu a:focus {
  color: var(--color-text); /* Text color on hover/focus */
  background-color: rgba(255, 255, 255, 0.1); /* Subtle hover background */
  text-decoration: none;
}
/* === END NEW GLOBAL DROPDOWN STYLES === */

/* Admin link style - subtle visibility */
.admin-link {
  opacity: 0.3;
  transition: opacity 0.3s ease;
}

.admin-link:hover {
  opacity: 1;
}

/* Mobile menu styles */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 32px;
  height: 24px;
  position: relative;
  z-index: 20;
}

.menu-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background-color: var(--color-text);
  margin: 5px 0;
  transition: all 0.3s ease;
}

/* Footer styles */
.main-footer {
  background-color: var(--color-secondary);
  padding: 3rem 0 1rem;
  margin-top: 4rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.footer-section h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.footer-section h3::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 40px;
  height: 2px;
  background-color: var(--color-highlight);
}

.social-links {
  list-style: none;
  margin-top: 1rem;
}

.social-links li {
  margin-bottom: 0.5rem;
}

.social-links a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.social-links svg {
  width: 20px;
  height: 20px;
}

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

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  border-radius: 30px;
  text-align: center;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background-color: var(--color-accent);
  color: var(--color-text);
}

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

.btn-secondary {
  background-color: transparent;
  color: var(--color-text);
  border: 2px solid var(--color-text);
}

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

.btn-outline {
  background-color: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-text);
  padding: 0.6rem 1.2rem;
}

.btn-outline:hover {
  background-color: var(--color-highlight);
  border-color: var(--color-highlight);
  color: var(--color-primary);
}

/* Hero section */
.hero {
  position: relative; /* Necessário para posicionar o overlay absolutamente */
  height: 80vh; /* Ou uma altura que faça sentido para o hero */
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden; /* Para garantir que o vídeo não transborde */
  z-index: 10; /* Garante que o hero esteja acima de outros elementos */
}

.video-background-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.video-background {
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  object-fit: cover; /* Garante que o vídeo cubra todo o contêiner */
}

.hero-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(0, 0, 0, 0.5); /* Preto com 50% de opacidade */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1; /* Acima do vídeo */
  padding: 20px 40px; /* Adiciona padding ao redor do texto */
  border-radius: 8px; /* Cantos levemente arredondados */
  max-width: 80%; /* Ajuste conforme necessário */
}

.hero-content {
  text-align: center;
  color: var(--color-text);
  padding: 0.85rem; /* Controla o espaço interno da caixa */
  max-width: 425px; /* Largura máxima da caixa */
  margin: 0 auto; /* Centra a caixa */
  background-color: rgba(0, 0, 0, 0.25); /* Fundo subtil para a caixa */
  border-radius: 8px; /* Cantos arredondados */
  position: relative; /* Para contexto de posicionamento se necessário */
  z-index: 2; /* Garante que fica por cima do vídeo/overlay */
  transform: translateY(-3rem); /* Move a caixa um pouco para cima */
}

.hero-content h1 {
  font-size: 1.85rem; /* Tamanho do título reduzido */
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3); /* Sombra do texto (de .hero-title) */
  background: linear-gradient(90deg, var(--color-text), var(--color-highlight)); /* Gradiente (de .hero-title) */
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-content p {
  font-size: 0.75rem; /* Tamanho do parágrafo */
  opacity: 0.9;
  font-weight: 300;
  margin-bottom: 0; /* Remove margem inferior se for o último elemento */
}

.hero-title {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  background: linear-gradient(90deg, var(--color-text), var(--color-highlight));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.9;
  font-weight: 300;
}

.cta-container {
  margin-top: 2rem;
}

/* Section styles */
section {
  padding: 4rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

/* Geometric divider */
.geometric-divider {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin: 1rem 0;
}

.geometric-divider span {
  display: block;
  height: 5px;
  border-radius: 2px;
}

.geometric-divider span:nth-child(1) {
  width: 30px;
  background-color: var(--color-highlight);
}

.geometric-divider span:nth-child(2) {
  width: 50px;
  background-color: var(--color-accent);
}

.geometric-divider span:nth-child(3) {
  width: 30px;
  background-color: var(--color-highlight);
}

/* Product grid */
.product-grid, .collections-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.product-card {
  border-radius: 10px;
  overflow: hidden; /* Importante para conter a imagem se ela transbordar */
  background-color: rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  display: flex; /* Adicionado para melhor controle do layout interno se necessário */
  flex-direction: column; /* Adicionado para empilhar imagem e info */
}

.product-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

/* Estilo base para product-card */
.product-card {
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  width: 100%;
  max-width: 250px; /* Largura máxima do card */
  margin: 0 auto; /* Centraliza o card */
  display: flex;
  flex-direction: column;
  height: 100%;
  transform-style: preserve-3d; /* Permite transformações 3D nos filhos */
}

/* Estilo base para product-image */
.product-image {
  display: block;
  width: 100%;
  height: 0;
  padding-bottom: 100%; /* Mantém proporção quadrada */
  position: relative;
  background: #f5f5f5;
}

/* Estilo para a imagem dentro do product-image */
.product-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.5s ease;
}

/* Estilo para o conteúdo do card */
.product-info {
  padding: 12px;
  text-align: center;
}

/* Ajustes para o Swiper */
.swiper-slide {
  height: auto;
  display: flex;

  transform-style: preserve-3d; /* Permite transformações 3D nos filhos */
}

/* Garante que as imagens dentro do Swiper respeitem as dimensões */
.swiper-slide .swiper-container {
  width: 100%;
  height: 100%;
  position: relative; /* Garante que os botões de navegação sejam posicionados relativamente a este contentor */
}

.swiper-container {
  position: relative; /* Garante que os botões de navegação sejam posicionados relativamente a este contentor */
}

/* Efeito hover suave */
.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

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

.product-image a {
  display: block;
  width: 100%;
  height: 100%;
}



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

.product-info {
  padding: 1.2rem;
}

.product-info h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.product-family, .product-category, .product-style {
  font-size: 0.9rem;
  opacity: 0.7;
  margin-bottom: 0.2rem;
}

/* Collection cards */
.collection-card {
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  height: 350px;
  opacity: 0;
  transform: translateY(20px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.collection-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.collection-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.collection-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.collection-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.collection-image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.8) 20%, rgba(0, 0, 0, 0.4) 100%);
}

.collection-info {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 2rem;
  z-index: 1;
}

.collection-info h3 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.collection-info p {
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  opacity: 0.8;
}

/* Collections Carousel */
.collections-carousel {
  padding: 4rem 0;
  background-color: var(--color-secondary);
  position: relative;
  overflow: hidden;
}

.carousel-container {
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.carousel-track {
  display: flex;
  gap: 2rem;
  padding: 2rem 0;
  overflow-x: auto;
  scroll-behavior: smooth;
  -ms-overflow-style: none;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
}

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

.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10;
}

.carousel-nav:hover {
  background: rgba(255, 255, 255, 0.2);
}

.carousel-nav.prev {
  left: 1rem;
}

.carousel-nav.next {
  right: 1rem;
}

/* Section Header */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
  padding: 0 1rem;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--color-text);
}

/* Featured Section */
.featured-section {
  padding: 5rem 0;
  background-color: var(--color-primary);
}

/* Product Card Enhancements */
.product-card {
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
  transition: all 0.3s ease;
  position: relative;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

/* -- DUPLICATE STYLES COMMENTED OUT TO AVOID CONFLICT --
.product-image {
  position: relative;
  height: 300px;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.5s ease;
}

.product-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.product-card:hover .product-overlay {
  opacity: 1;
}

.product-info {
  padding: 1.5rem;
  text-align: center;
}

.product-info h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--color-text);
}

.product-category {
  color: var(--color-highlight);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.price {
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--color-text);
  margin-top: 0.5rem;
}

.sale-price {
  color: var(--color-highlight);
  margin-right: 0.5rem;
}

.original-price {
  text-decoration: line-through;
  opacity: 0.6;
  font-size: 0.9rem;
}

/* All Collections Section */
.all-collections {
  padding: 5rem 0;
  background-color: var(--color-secondary);
}

.collections-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  padding: 0 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.collection-card {
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  height: 400px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: rgba(255, 255, 255, 0.03);
}

.collection-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.collection-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.collection-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.collection-image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.8) 20%, rgba(0, 0, 0, 0.4) 100%);
}

.collection-info {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 2rem;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0) 100%);
  color: white;
  z-index: 1;
}

.collection-info h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: white;
}

.collection-info p {
  margin-bottom: 1rem;
  opacity: 0.9;
  font-size: 0.95rem;
}

.btn-outline {
  display: inline-block;
  padding: 0.6rem 1.5rem;
  background: transparent;
  border: 2px solid white;
  color: white;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

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

/* Brand story section */
.brand-story {
  position: relative;
  height: 500px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-video {
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  object-fit: cover;
}

.story-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
  padding: 2rem;
  background-color: rgba(0, 0, 0, 0.7);
  border-radius: 10px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.story-content h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.story-content p {
  margin-bottom: 1.5rem;
}

/* Collection page */
.collection-page {
  padding: 2rem 0;
}

.collection-header {
  text-align: center;
  padding: 3rem 0;
  background-color: rgba(0, 0, 0, 0.2);
  margin-bottom: 2rem;
}

.collection-title h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.collection-description {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.1rem;
}

.filter-controls {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 2rem;
  padding: 0 2rem;
}

.sort-by {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sort-by select {
  padding: 0.5rem 1rem;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--color-text);
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.collection-nav {
  margin-top: 4rem;
  padding: 2rem;
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  text-align: center;
}

.collections-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}

.collection-link {
  padding: 0.5rem 1rem;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  transition: all 0.3s ease;
}

.collection-link:hover {
  background-color: var(--color-highlight);
  color: var(--color-primary);
}

/* Product detail page */
.product-detail {
  padding: 3rem 0;
}

.product-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.product-gallery {
  display: flex;
  flex-direction: column;
}

.main-image {
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 1rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.main-image img {
  width: 100%;
  transition: transform 0.5s ease;
}

.main-image:hover img {
  transform: scale(1.03);
}

.thumbnail-gallery {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 1rem;
}

.thumbnail {
  width: 80px;
  height: 80px;
  border-radius: 5px;
  overflow: hidden;
  cursor: pointer;
  opacity: 0.6;
  transition: all 0.3s ease;
}

.thumbnail.active, .thumbnail:hover {
  opacity: 1;
  transform: scale(1.05);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 5px;
}

.product-title {
  margin-bottom: 2rem;
}

.product-title h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.product-reference {
  font-size: 0.9rem;
  opacity: 0.7;
}

.product-meta {
  margin-bottom: 2rem;
}

.meta-item {
  margin-bottom: 0.5rem;
  display: flex;
}

.meta-label {
  font-weight: 600;
  width: 120px;
}

.product-description {
  margin: 2rem 0;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.product-actions {
  margin-top: 2rem;
}

.related-products {
  margin-top: 5rem;
  padding: 3rem 0;
  background-color: rgba(0, 0, 0, 0.2);
  text-align: center;
}

.related-products h2 {
  font-size: 2rem;
}

.loading-placeholder {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 200px;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(255, 255, 255, 0.1);
  border-left-color: var(--color-highlight);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* About page */
.about-page {
  padding-bottom: 3rem;
}

.about-header {
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-secondary);
  background-image: url('/media/banner-about.jpg');
  background-size: 70%;
  background-position: center 50%;
  position: relative;
  overflow: hidden;
}

.about-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
}

.about-header-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.about-header h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.about-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 1rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-container.reverse {
  grid-template-columns: 1fr 1fr;
}

.about-image {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.about-content h2 {
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
}

.about-content p {
  margin-bottom: 1rem;
}

.about-values {
  text-align: center;
  padding: 4rem 1rem;
  background-color: rgba(0, 0, 0, 0.2);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 3rem auto 0;
}

.value-card {
  background-color: rgba(0, 0, 0, 0.2);
  padding: 2rem;
  border-radius: 10px;
  transition: transform 0.3s ease;
}

.value-card:hover {
  transform: translateY(-5px);
}

.value-icon {
  margin-bottom: 1.5rem;
  color: var(--color-highlight);
}

.about-connect {
  background-color: var(--color-secondary);
  padding: 4rem 1rem;
  text-align: center;
}

.connect-content {
  max-width: 800px;
  margin: 0 auto;
}

.social-links-large {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
}

.social-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  transition: transform 0.3s ease;
}

.social-link:hover {
  transform: translateY(-5px);
}

/* Alert messages */
.alert {
  padding: 1rem;
  border-radius: 5px;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.alert-success {
  background-color: rgba(76, 175, 80, 0.2);
  border-left: 3px solid var(--color-success);
}

.alert-danger {
  background-color: rgba(244, 67, 54, 0.2);
  border-left: 3px solid var(--color-danger);
}

/* About Page Specific Styles */
.about-header {
  background-image: url('/images/banner-about.jpg');
  background-size: auto 140%;
  background-position: center;
  background-repeat: no-repeat;
  padding: 5rem 1rem; /* Adjust padding as needed */
  text-align: center;
  position: relative; /* For potential overlays or pseudo-elements */
}

.about-header::before { /* Optional: for a dark overlay to make text more readable */
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5); /* Adjust opacity as needed */
  z-index: 1;
}

.about-header-content {
  position: relative; /* To ensure content is above the overlay */
  z-index: 2;
}

.about-header h1 {
  color: #fff; /* Ensure text is visible against dark/image background */
  font-size: 3.5rem; /* Adjust as needed */
  margin-bottom: 1rem;
}

.about-header .geometric-divider span {
  background-color: #fff; /* Adjust divider color if needed */
}

/* Animations */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes pulse {
  0% { 
    box-shadow: 0 0 0 rgba(192, 192, 192, 0); 
  }
  50% { 
    box-shadow: 0 0 15px rgba(192, 192, 192, 0.5); 
  }
  100% { 
    box-shadow: 0 0 0 rgba(192, 192, 192, 0); 
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.5s ease forwards;
}

/* Media queries */
@media (max-width: 992px) {
  .product-container {
    grid-template-columns: 1fr;
  }
  
  .about-container, 
  .about-container.reverse {
    grid-template-columns: 1fr;
  }
  
  .about-container.reverse .about-image {
    order: -1;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  /* Removed premature closing brace that was here. */

@media (max-width: 768px) {
  .product-card {
    width: calc(50% - 5px);
    max-width: unset;
  }

  .slick-slide {
    width: calc(50% - 5px);
  }
  .menu-toggle {
    display: block; /* Show hamburger */
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem; /* Clickable area */
    z-index: 1020; /* Ensure it's above other elements if needed when menu is open */
    position: relative; /* For positioning spans if needed, or if it's part of a fixed header */
    z-index: 1020; /* Ensure toggle button is above the nav-menu */
  }

  .menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--color-text); /* Or your desired icon color */
    margin: 5px 0;
    transition: all 0.3s ease-in-out;
    border-radius: 1px;
  }

  .menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
  
  .nav-menu {
    position: fixed;
    top: 0;
    left: -300px;
    width: 300px;
    height: 100vh;
    background-color: var(--color-secondary);
    flex-direction: column;
    padding: 4rem 1rem 1rem;
    transition: left 0.3s ease;
    z-index: 1010;
    box-sizing: border-box; /* Ensures padding is included in the width */
    overflow-y: auto; /* Allow scroll for many items */
  }
  
  .nav-menu.active {
    left: 0;
  }

  /* === START: COMMENTED OUT OLD MOBILE DROPDOWN STYLES === */
  /* Mobile-specific dropdown styles */
  /*.dropdown-menu { /* General dropdowns within mobile nav panel */
/*    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    background-color: transparent;
    box-shadow: none;
    display: none; /* Initially hidden */
/*  }
  
/*  .dropdown.open .dropdown-menu {
/*    display: block;
/*  }

/*  /* Styles for the Admin dropdown UL specifically within the mobile .nav-menu */
/*  .nav-menu .dropdown-menu {
/*    padding-left: 1rem; 
/*    margin-top: 0.25rem;
/*    margin-bottom: 0.5rem;
/*    background-color: rgba(0,0,0,0.1); 
/*    border-radius: 4px;
/*  }

/*  .nav-menu .dropdown-menu li a {
/*    padding: 0.6rem 0; 
/*    font-size: 0.9em; 
/*  }

/*  .nav-menu .dropdown-menu li a:hover,
/*  .nav-menu .dropdown-menu li a:active,
/*  .nav-menu .dropdown-menu li a.active {
/*    background-color: rgba(255, 255, 255, 0.1);
/*  }*/
  /* === END: COMMENTED OUT OLD MOBILE DROPDOWN STYLES === */

  /* === NEW MOBILE DROPDOWN STYLES (@media max-width: 768px) === */
  .nav-menu .dropdown-toggle::after {
    /* Optionally, change arrow or hide it for mobile slide-in */
    /* content: ' +'; /* Example: change to a plus sign */
    /* display: inline-block; */ /* Ensure it shows if not hidden */
    float: right; /* Align arrow to the right for mobile list items */
    margin-right: 0.5rem;
  }

  .nav-menu .dropdown-menu { /* Targets dropdown menus within the mobile nav panel */
    display: none; /* Hidden by default */
    position: static; /* Overrides absolute positioning from desktop */
    width: auto; /* Take available width within the panel */
    background-color: rgba(0,0,0,0.15); /* Slightly darker background for nesting */
    border: none;
    box-shadow: none;
    padding-left: 1rem; /* Indent submenu items */
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    border-radius: 4px;
    /* Resetting desktop transition properties as they might not be desired for static display */
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: none;
  }

  .nav-menu .dropdown.open > .dropdown-menu {
    display: block;
  }

  .nav-menu .dropdown-menu a {
    padding: 0.75rem 1rem; /* Adjust padding for mobile */
    font-size: 0.9em;
    color: var(--color-text-light-secondary); /* Ensure good contrast on mobile panel */
  }

  .nav-menu .dropdown-menu a:hover,
  .nav-menu .dropdown-menu a:focus {
    background-color: rgba(255, 255, 255, 0.15);
    color: var(--color-text-light);
  }
  /* === END NEW MOBILE DROPDOWN STYLES === */

} /* This closes @media (max-width: 768px) */

/* General styles (hero, brand-story, etc.) resume here, assumed to be part of @media (max-width: 992px) or global */
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .brand-story {
    height: 400px;
  }
  
  .story-content {
    padding: 1.5rem;
  }
  
  .story-content h2 {
    font-size: 2rem;
  }
  
  .section-header h2 {
    font-size: 2rem;
  }

  .nav-menu li a {
    display: block;
    padding: 0.75rem 0; 
    color: var(--color-text);
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
  }

  .nav-menu li a:hover,
  .nav-menu li a:active, 
  .nav-menu li a.active { 
    background-color: rgba(255, 255, 255, 0.05); 
    color: var(--color-highlight);
  }

  .admin-link {
    display: list-item; /* Ensure the non-logged-in admin link is visible */
  }

  /* Footer Mobile Styles */
  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
  }

  .footer-section {
    margin-bottom: 1rem;
    /* width: 100%; Consider if this is needed */
  }

  .social-links {
    justify-content: center; /* Center icons if there's space */
    /* To stack social links vertically:
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    */
  }
}

/* Footer links styling */
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: #b0b0b0;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--color-bronze);
}

.footer-links a i {
  font-size: 0.875rem;
  opacity: 0.8;
}

/* Footer responsive adjustments */
@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    gap: 2rem;
  }
  
  .footer-section {
    text-align: center;
  }
  
  .footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }
  
  .footer-links li {
    margin-bottom: 0;
  }
}

/* Privacy links in copyright - very discrete */
.privacy-links {
  margin-top: 0.5rem;
  font-size: 0.7rem;
  color: #666;
  text-align: center;
}

.privacy-links a {
  color: #666;
  text-decoration: none;
  transition: color 0.3s ease;
}

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

/* Mobile adjustments for privacy links */
@media (max-width: 768px) {
  .privacy-links {
    font-size: 0.65rem;
    margin-top: 0.25rem;
  }
}


@media (max-width: 576px) {
  .hero {
    height: 60vh;
  }
  
  .hero-title {
    font-size: 1.8rem;
  }
  
  .gallery-grid,
  .product-grid,
  .family-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
  
  .social-links-large {
    flex-direction: column;
    gap: 1rem;
  }
}
