/* Variables CSS */
:root {
  --primary-color: #2c3e50;
  --secondary-color: #3498db;
  --accent-color: #e74c3c;
  --light-color: #ecf0f1;
  --dark-color: #2c3e50;
  --text-color: #333;
  --text-light: #fff;
  --border-radius: 4px;
  --box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

/* Reset et styles de base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: #f9f9f9;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  
}

/* Header */
header {
  background-color: #2b7a78;
  color: var(--text-light);
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--box-shadow);
}

.header-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 10px;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 20px;
}

nav a {

  transition: var(--transition);
  font-weight: 500;
}

nav a:hover {
  color: orangered;
}

/* Main content */
main {
  padding: 30px 0;
  min-height: calc(100vh - 120px);
}

.breadcrumb {
  margin-bottom: 20px;
  font-size: 0.9rem;
  color: #666;
}

.breadcrumb a {
  color: var(--secondary-color);
}

.breadcrumb a:hover {
  text-decoration: underline;
}

/* Product detail */
.product-detail-container {
  display: flex;
  flex-direction: column;
  gap: 30px;
  background: #fff;
  padding: 20px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.product-gallery {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.main-image-container {
  border: 1px solid #eee;
  border-radius: var(--border-radius);
  overflow: hidden;
}

.main-image {
  width: 100%;
  height: auto;
  cursor: zoom-in;
  display: block;
}

.thumbnails-container {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 10px;
}

.thumbnail {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border: 2px solid transparent;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition);
}

.thumbnail:hover, .thumbnail.active {
  border-color: var(--secondary-color);
}

.product-info {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.product-title {
  font-size: 1.8rem;
  color: var(--dark-color);
}

.product-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-color);
}

.stock-status {
  padding: 5px 10px;
  border-radius: var(--border-radius);
  font-weight: 500;
  width: fit-content;
}

.in-stock {
  background-color: #d4edda;
  color: #155724;
}

.out-of-stock {
  background-color: #f8d7da;
  color: #721c24;
}

.product-description {
  line-height: 1.8;
}

.product-meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 15px;
}

.meta-item {
  display: flex;
  gap: 10px;
}

.meta-label {
  font-weight: 600;
  color: var(--dark-color);
}

.action-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}

.btn {
  padding: 12px 20px;
  border-radius: var(--border-radius);
  font-weight: 600;
  text-align: center;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-whatsapp {
    background-color: #25d366;
}

.btn-whatsapp:hover {
  background-color: #128C7E;
}

.btn-secondary {
  background-color:black;
  color: var(--dark-color);
  border: 1px solid #ddd;
}

.btn-secondary:hover {
  opacity: 0.8;
}

/* Footer */
footer {
  background-color:  #2b7a78;
  color: white;
  padding: 20px 0;
  text-align: center;
}

/* Responsive */
@media (min-width: 768px) {
  .header-content {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .logo {
    margin-bottom: 0;
  }

  .product-detail-container {
    flex-direction: row;
  }

  .product-gallery {
    flex: 1;
  }

  .product-info {
    flex: 1;
    padding-left: 30px;
  }

  .action-buttons {
    flex-direction: row;
  }
}

@media (max-width: 480px) {
  .product-title {
    font-size: 1.5rem;
  }

  .product-price {
    font-size: 1.3rem;
  }

  .btn {
    padding: 10px 15px;
    font-size: 0.9rem;
  }
}