/*
 * Nikidom online store styles
 *
 * This stylesheet defines the look and feel for the Nikidom ecommerce
 * website. The goal of the design is to evoke a sense of high‑end
 * puericulture by combining a clean white canvas with rich red accents.
 * The header includes both the company logo and the MOVES III
 * horizontal logo as required by the funding programme. Elements are
 * spaced generously and fonts are easy to read across all devices.
 */

/* Global resets */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Poppins', sans-serif;
  color: #333;
  background-color: #ffffff;
  line-height: 1.6;
}

/* Header section */
header {
  background-color: #ba0c2f; /* deep red for premium feel */
  color: #ffffff;
  padding: 10px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Top row holds the Nikidom logo and the MOVES logos */
header .top-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}

header .top-row img {
  display: block;
}

/* The Nikidom logo is scaled to two thirds the height of the MOVES logos
 * as stipulated in the identity manual. */
/* Ajustamos las proporciones de los logotipos para que el logotipo de
 * beneficiario (Nikidom) no supere 2/3 de la altura del logotipo del
 * programa MOVES III. El logotipo MOVES se muestra ligeramente más alto
 * para que el símbolo infinito sea visible. */
header .top-row img.logo-nikidom {
  /* Mantiene la altura establecida y añade margen blanco alrededor para que el
   * logotipo rojo resalte sobre el fondo rojo del encabezado. El fondo
   * blanco y el padding crean un borde blanco alrededor del logotipo sin
   * alterar la imagen original. */
  /* El logotipo de Nikidom se muestra cuatro veces más grande. Se añade
   * un fondo blanco y padding para que el logotipo rojo destaque sobre
   * el encabezado también rojo. */
  height: 264px;
  background-color: #ffffff;
  padding: 16px;
  border-radius: 12px;
}

header .top-row img.moves {
  /* Ajustamos la altura del logotipo MOVES III para que coincida con la del
   * logotipo de Nikidom. De este modo, ambos logotipos se muestran al
   * mismo tamaño en la cabecera. */
  height: 264px;
}

header h1 {
  margin-top: 8px;
  font-size: 2.2em;
  letter-spacing: 1.5px;
  text-align: center;
}

header p.tagline {
  /* Utilizamos la fuente decorativa Cinzel (o similar) para aproximar el estilo
   * solicitado "DELIONE". Aumentamos ligeramente el tamaño y eliminamos la cursiva
   * para una apariencia elegante y de alta gama. */
  /* La tipografía del lema se mantiene en sans‑serif, se reduce un 25 % y se aplica cursiva */
  font-family: 'Poppins', sans-serif;
  font-size: 3.6em;
  font-style: italic;
  margin-top: 8px;
  font-style: normal;
  text-align: center;
  letter-spacing: 1px;
}

/* Navigation bar */
nav {
  background-color: #861217; /* slightly darker red */
  display: flex;
  justify-content: center;
  gap: 40px;
  padding: 12px 0;
  font-size: 1em;
}

nav a {
  color: #ffffff;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 4px;
  transition: background-color 0.3s;
}

nav a:hover {
  background-color: #b31527;
}

/* Main container */
.main-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* Products grid on the home page */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.product-card {
  border: 1px solid #eeeeee;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  background-color: #ffffff;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.product-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.product-card h3 {
  font-size: 1.2em;
  margin: 10px 0;
  color: #861217;
}

.product-card p.price {
  font-size: 1.1em;
  margin-bottom: 10px;
  color: #333333;
  font-weight: 600;
}

.product-card a.btn {
  display: inline-block;
  background-color: #ba0c2f;
  color: #ffffff;
  padding: 8px 16px;
  margin-bottom: 15px;
  border-radius: 20px;
  text-decoration: none;
  transition: background-color 0.3s;
}

.product-card a.btn:hover {
  background-color: #861217;
}

/* Carousel styles */
.carousel {
  margin-top: 40px;
  overflow: hidden;
  position: relative;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.carousel-track {
  display: flex;
  width: 100%;
  transition: transform 0.6s ease-in-out;
}

.carousel img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  flex-shrink: 0;
}

.carousel .controls {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  pointer-events: none;
}

.carousel .controls button {
  background-color: rgba(0, 0, 0, 0.4);
  border: none;
  color: #ffffff;
  padding: 10px 14px;
  cursor: pointer;
  font-size: 22px;
  border-radius: 50%;
  pointer-events: all;
  transition: background-color 0.3s;
}

.carousel .controls button:hover {
  background-color: rgba(0, 0, 0, 0.7);
}

/* Product page layout */
.product-container {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: 20px;
  align-items: flex-start;
}

.product-container img {
  flex: 1 1 400px;
  max-width: 500px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.product-details {
  flex: 1 1 400px;
}

.product-details h2 {
  font-size: 2em;
  color: #861217;
  margin-bottom: 10px;
}

.product-details .price {
  font-size: 1.6em;
  color: #333333;
  margin-bottom: 20px;
  font-weight: 600;
}

.product-details p {
  margin-bottom: 15px;
}

.product-details a.btn {
  display: inline-block;
  background-color: #ba0c2f;
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 20px;
  text-decoration: none;
  transition: background-color 0.3s;
}

.product-details a.btn:hover {
  background-color: #861217;
}

/* Footer */
footer {
  background-color: #861217;
  color: #ffffff;
  text-align: center;
  padding: 20px 10px;
  font-size: 0.9em;
  margin-top: 40px;
}

/* Container for the logos of the funding bodies in the footer */
footer .footer-logos {
  margin-bottom: 10px;
}

footer .footer-logos img {
  width: 90%;
  max-width: 1000px;
  height: auto;
}

footer p.funding-note {
  margin-bottom: 8px;
  font-size: 0.8em;
}

footer a {
  color: #ffffff;
  text-decoration: underline;
}

footer a:hover {
  text-decoration: none;
}