:root {
  --warm-white: #faf8f5;
  --soft-cream: #ede9e4;
  --text-primary: #1a1815;
  --text-secondary: #5c5550;
  --gold-accent: #d4a574;
  --secondary-gold: #b8956a;
  --shadow-light: 0 4px 20px rgba(0, 0, 0, 0.2);
  --shadow-medium: 0 8px 30px rgba(0, 0, 0, 0.25);
  --shadow-deep: 0 15px 50px rgba(0, 0, 0, 0.3);
}

.brand-page-container {
  padding: 4rem 0;
  background-color: var(--warm-white);
  min-height: 90vh;
  color: var(--text-primary);
  line-height: 1.6;
}

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

/* --- Brand Header Section --- */
.brand-header {
  text-align: center;
  margin-bottom: 4rem;
  padding: 2rem;
  background-color: #ffffff;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  animation: fadeInDown 1s ease-out;
}

.brand-logo {
  width: 120px;
  height: 120px;
  object-fit: contain;
  border-radius: 50%;
  border: 2px solid var(--gold-accent);
  padding: 5px;
  margin-bottom: 1.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: var(--shadow-light);
}

.brand-logo:hover {
  transform: scale(1.08);
  box-shadow: var(--shadow-medium);
}

.brand-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 3.8rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.brand-slogan {
  font-family: 'Lato', sans-serif;
  font-size: 1.3rem;
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.8;
}

/* --- Perfumes Section --- */
.section-subtitle {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.8rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 3.5rem;
  color: var(--text-primary);
  position: relative;
}

.section-subtitle::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background-color: var(--gold-accent);
  margin: 1rem auto 0;
  border-radius: 2px;
}

.perfumes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2.5rem;
  margin-bottom: 4rem;
}

/* --- Perfume Card (Adapté de category-card) --- */
.perfume-card {
  background: var(--soft-cream);
  padding: 0;
  border-radius: 20px;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid rgba(212, 165, 116, 0.2);
  overflow: hidden;
  animation: fadeInUp 0.8s ease-out forwards;
  opacity: 0;
  display: flex;
  flex-direction: column;
  position: relative;
}

.perfume-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-medium);
  background: var(--warm-white);
}

.perfume-card-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding-bottom: 30px;
}

.perfume-image-wrapper {
  position: relative;
  width: 100%;
  height: 250px;
  overflow: hidden;
  border-radius: 20px 20px 0 0;
}

.perfume-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(28, 37, 32, 0.2);
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.perfume-card:hover .image-overlay {
  opacity: 1;
}

.perfume-content {
  padding: 2rem 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.perfume-name {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.8rem;
}

.perfume-description {
  font-family: 'Lato', sans-serif;
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.perfume-meta {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.perfume-category, .perfume-class {
  background-color: var(--soft-cream);
  padding: 0.3rem 0.7rem;
  border-radius: 15px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
}

.perfume-price {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--gold-accent);
  margin-top: auto;
  margin-bottom: 0;
}

/* NOUVEAUX STYLES POUR LE BADGE DE DISPONIBILITÉ */
.perfume-availability-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #ffffff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  z-index: 10;
}

.perfume-availability-badge--available {
  background-color: #28a745;
}

.perfume-availability-badge--unavailable {
  background-color: #dc3545;
}

/* NOUVEAUX STYLES POUR LE BOUTON "AJOUTER AU PANIER" SUR LES CARTES DE LISTE */
.perfume-card-add-to-cart-btn {
  padding: 10px 15px;
  border-radius: 5px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background-color: var(--gold-accent);
  color: #ffffff;
  border: 2px solid var(--gold-accent);
  width: 100%;
  margin-top: 10px;
}

.perfume-card-add-to-cart-btn:hover:not(:disabled) {
  background-color: var(--secondary-gold);
  border-color: var(--secondary-gold);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(212, 165, 116, 0.3);
  color: #ffffff !important;
}

.perfume-card-add-to-cart-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background-color: #cccccc;
  border-color: #cccccc;
}

/* Ajustements responsives pour le badge */
@media (max-width: 768px) {
  .perfume-availability-badge {
    top: 8px;
    left: 8px;
    font-size: 0.7rem;
    padding: 4px 8px;
  }
  .perfume-card-add-to-cart-btn {
    font-size: 0.8rem;
    padding: 8px 12px;
  }
}

/* NOUVEAU STYLE POUR LE VOLUME (10ml) */
.perfume-volume {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background-color: var(--gold-accent);
  color: #ffffff;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  z-index: 10;
}

/* --- Messages de chargement/erreur --- */
.no-perfumes-message, .loading-message, .error-message {
  text-align: center;
  font-size: 1.3rem;
  color: var(--text-secondary);
  margin-top: 5rem;
  padding: 2rem;
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: var(--shadow-light);
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

/* --- Pagination Styles (Client-side) - RESPONSIVE INTELLIGENTE --- */
.pagination-container {
  text-align: center;
  margin-top: 3rem;
  padding: 0 1rem;
}

.pagination {
  display: inline-flex;
  list-style: none;
  padding: 0;
  margin: 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-medium);
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
}

.pagination .page-item {
  display: inline-block;
  border-right: 1px solid var(--soft-cream);
}

.pagination .page-item:last-child {
  border-right: none;
}

.pagination .page-item .page-link {
  display: inline-block;
  padding: 0.8rem 1rem;
  text-decoration: none;
  color: var(--text-secondary);
  background-color: #ffffff;
  transition: background-color 0.3s ease, color 0.3s ease;
  white-space: nowrap;
  font-size: 0.95rem;
  min-width: auto;
}

.pagination .page-item.current .page-link {
  background-color: var(--gold-accent);
  color: #ffffff;
  font-weight: bold;
  cursor: default;
}

.pagination .page-item.disabled .page-link {
  color: #cccccc;
  cursor: not-allowed;
  background-color: var(--soft-cream);
}

.pagination .page-item .page-link:hover:not(.disabled) {
  background-color: var(--soft-cream);
  color: var(--text-primary);
}

.pagination .page-item.page-ellipsis .page-link {
  cursor: default;
  background-color: #ffffff;
  color: var(--text-secondary);
}

.pagination .page-item.page-ellipsis:hover .page-link {
  background-color: #ffffff;
}

/* --- Back Link --- */
.back-link {
  text-align: center;
  margin-top: 4rem;
}

.back-link a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 1.1rem;
  border-bottom: 1px solid var(--text-secondary);
  padding-bottom: 2px;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.back-link a:hover {
  color: var(--text-primary);
  border-color: var(--text-primary);
}

/* --- Animations --- */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* --- Responsive Adjustments --- */
@media (max-width: 992px) {
  .brand-title {
    font-size: 3rem;
  }
  .brand-slogan {
    font-size: 1.1rem;
  }
  .section-subtitle {
    font-size: 2.2rem;
  }
  .perfumes-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
  }
  .perfume-image-wrapper {
    height: 200px;
  }
  .perfume-name {
    font-size: 1.6rem;
  }
  .perfume-price {
    font-size: 1.4rem;
  }
}

@media (max-width: 768px) {
  .brand-page-container {
    padding-top: 60px;
  }
  .brand-logo {
    width: 150px;
    height: 150px;
    max-width: 100%;
    object-fit: contain;
    margin-bottom: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    background-color: #ffffff;
    padding: 10px;
  }
  .brand-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 40px;
    text-align: center;
  }
  .brand-title {
    font-size: 2.5rem;
  }
  .brand-slogan {
    font-size: 1rem;
  }
  .section-subtitle {
    font-size: 1.8rem;
    margin-bottom: 2.5rem;
  }
  .perfumes-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .perfume-card {
    padding-bottom: 1rem;
  }
  .perfume-image-wrapper {
    height: 180px;
  }
  .perfume-name {
    font-size: 1.4rem;
  }
  .perfume-price {
    font-size: 1.2rem;
  }
  .perfume-description {
    font-size: 0.85rem;
  }
  .perfume-card-link {
    padding-bottom: 25px;
  }
  .perfume-volume {
    bottom: 8px;
    right: 8px;
    font-size: 0.8rem;
    padding: 4px 8px;
  }
  
  /* Pagination responsive mobile */
  .pagination-container {
    padding: 0 0.5rem;
  }
  
  .pagination {
    gap: 0;
  }
  
  .pagination .page-item .page-link {
    padding: 0.6rem 0.8rem;
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  /* Pagination extra small screens */
  .pagination .page-item .page-link {
    padding: 0.5rem 0.6rem;
    font-size: 0.75rem;
  }
  
  .pagination-container {
    padding: 0 0.25rem;
  }
}

/* Styles pour la section d'en-tête de la marque (logo, nom, slogan) */
.brand-header-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 40px;
  text-align: center;
}

/* Styles pour le logo de la marque */
.brand-logo-display {
  width: 180px;
  height: 180px;
  max-width: 100%;
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  background-color: #ffffff;
  padding: 10px;
}