@import url('https://fonts.googleapis.com/css2?family=Ubuntu:wght@300;500;700&display=swap');

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

body {
	font-family: 'Ubuntu';
	max-width: 1200px;
	margin: 0 auto;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    background-color: #f9f9f9;
}

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

/* Top Bar */
.top-bar {
    background-color: #000;
    color: #fff;
    text-align: center;
    padding: 10px;
    position: relative;
    font-size: 14px;
}

/* Main Navigation */
.main-nav {
    display: flex;
    align-items: center;
    background-color: #fff;
    padding: 20px;
    justify-content: space-between;
    border-bottom: 2px solid #eee;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.05);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.logo img {
    max-height: 48px; /* Altura máxima del logo */
    width: auto; /* Mantiene la proporción de la imagen */
}



.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-grow: 1;
}

.nav-links li {
    margin: 0 20px;
    position: relative;
}

.nav-links a {
    text-decoration: none;
    color: #555;
    padding: 10px 0;
    display: inline-block;
    position: relative;
    font-weight: bold;
    font-size: 16px;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #000;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: #000;
    left: 0;
    bottom: -5px;
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.search-cart {
    display: flex;
    align-items: center;
}

.search-cart input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 20px;
    margin-right: 10px;
    font-size: 14px;
}

.search-cart a img {
    margin-right: 10px;
}

/* Dropdown Menu */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #fff;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    padding: 20px;
    top: 120%; /* Baja el menú desplegable */
    left: 50%; /* Coloca el menú en el centro horizontalmente */
    transform: translateX(-50%); /* Ajusta para que quede centrado respecto a su contenedor */
    z-index: 1000;
    width: 1000px; /* Ajusta el ancho del menú desplegable */
    justify-content: space-around;
    border-radius: 5px;
    border-top: 2px solid #000;
    opacity: 0; /* Inicialmente invisible */
    transition: opacity 0.3s ease; /* Añade una transición suave */
}

.navbar:not(:hover) .dropdown-content {
    display: flex; /* Asegúrate de que esté visible mientras se hace la transición */
    opacity: 0; /* Hacerlo invisible */
    transition-delay: 0.3s; /* Retraso para que el menú no desaparezca inmediatamente */
}

/* Display the dropdown menu on hover */
.dropdown:hover .dropdown-content {
    display: flex;
    opacity: 1; /* Hacerlo visible */
}

.dropdown-section h3 {
    font-weight: bold;
    margin-bottom: 10px;
    font-size: 16px;
    color: #000;
}

.dropdown-section a {
    color: #555;
    text-decoration: none;
    display: block;
    font-weight: 800;
    margin-bottom: 5px;
    font-size: 14px;
    transition: color 0.3s ease;
}

.navbar:hover .dropdown-content {
    display: flex;
}

.dropdown-section a:hover {
    color: #000;
    text-decoration: underline;
}

/* Sign In Button */
.sign-in-container {
    margin-right: 20px; /* Añade un poco de margen a la derecha */
}

.sign-in {
    background-color: #000;
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    display: flex;
    align-items: center;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.sign-in i {
    margin-right: 8px;
}

.sign-in:hover {
    background-color: #fff;
    color: #000;
    border: 2px solid #000;
}

.cart-button-container {
    display: inline-block;
    margin-right: 20px;
}

.cart-button {
    background-color: #000000; /* Color del botón */
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 800;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.cart-button:hover {
    background-color: #ffffff; /* Cambio de color al pasar el ratón */
    color: black;
    border: 1px solid #000;
}



img {
	max-width: 100%;
}

header {
	display: flex;
	align-items: center;
	padding: 30px;
	justify-content: center;
}

.container-title {
	padding: 30px;
    margin-top: 50px; /* Ajusta este valor según la distancia que quieras */
	background-color: #eee;
	margin-bottom: 50px;
	color: #222;
}

main {
	display: flex;
	gap: 30px;
	margin-bottom: 80px;
    margin-top: 20px; /* Ajusta este valor según la distancia que quieras */
}

/*carrucel*/

.carousel {
    position: relative;
    width: 500px; /* Tamaño fijo */
    height: 500px; /* Tamaño fijo */
    overflow: hidden;
}

.carousel-inner {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-item {
    min-width: 100%;
    height: 100%;
}

.carousel img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Mantiene la imagen dentro del contenedor sin distorsionar */
    border-radius: 10px;
}

.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    font-size: 24px;
    border: none;
    padding: 10px;
    cursor: pointer;
    border-radius: 50%;
}

.carousel-control.prev {
    left: 10px;
}

.carousel-control.next {
    right: 10px;
}

.carousel-control:hover {
    background-color: rgba(0, 0, 0, 0.8);
}



/* Estilos para las miniaturas */
.color-options img {
    width: 50px;
    height: 50px;
    margin-right: 10px;
    cursor: pointer;
  }
  
  /* Estilo para la imagen principal */
  #imagen-principal {
    width: 300px;
    height: auto;
  }
  
  /* Añadir algún hover para dar retroalimentación visual */
  .color-thumbnail:hover {
    border: 2px solid #000;
  }
  

.product-title {
    font-size: 30px;  /* Tamaño de la fuente */
    font-weight: bold;  /* Negrita */
    margin-bottom: 20px;  /* Espacio entre el título y el precio */
    color: #222;  /* Color del título */
}

.container-img {
	background-color: #f7f7f9;
	flex: 1;
}

.container-info-product {
	flex: 1;
	display: flex;
	flex-direction: column;
}

.container-price {
	padding-bottom: 20px;
	border-bottom: 1px solid #e4e4e4;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.container-price span {
	font-size: 24px;
	font-weight: 300;
}

.container-details-product {
	padding: 30px 0;
}

.form-group {
	display: flex;
	align-items: center;
	gap: 20px;
	margin-bottom: 15px;
}

.form-group label {
	width: 100px;
	color: #222;
	font-weight: 700;
}

.form-group select {
	width: 300px;
	border: none;
	padding: 12px 15px;
	background-color: #f7f7f7;
	outline: none;
	color: #666;
}

.btn-clean {
    width: fit-content;
    min-width: 100px;
    height: 45px;
    padding: 8px;
    font-weight: 600;
    border-radius: 5px;
    border: 2.5px solid #E0E1E4;
    box-shadow: 0px 0px 20px -20px;
    cursor: pointer;
    background-color: white;
    transition: all 0.2s ease-in-out 0ms;
    user-select: none;
    font-family: 'Poppins', sans-serif;
}

.btn-clean:hover {
    background-color: #F2F2F2;
    box-shadow: 0px 0px 20px -18px;
}

.container-add-cart {
	display: flex;
	gap: 20px;
	padding-bottom: 30px;
	border-bottom: 1px solid #e4e4e4;
}

.container-quantity {
	position: relative;
}

.input-quantity {
	background-color: #f7f7f7;
	border: none;
	padding: 10px;
	width: 60px;
	height: 100%;
	color: #666;
	font-weight: 500;
	line-height: 0;
}

.input-quantity:focus {
	outline: none;
}

.input-quantity::-webkit-inner-spin-button,
.input-quantity::-webkit-outer-spin-button {
	-webkit-appearance: none;
	appearance: none;
}

.btn-increment-decrement {
	display: flex;
	flex-direction: column;
	position: absolute;
	top: 7px;
	right: 7px;
}

.btn-increment-decrement i {
	font-size: 11px;
	color: #666;
	cursor: pointer;
}

.fa-chevron-down:hover {
	color: #1bbeb4;
}

.fa-chevron-up:hover {
	color: #1bbeb4;
}

.btn-add-to-cart {
    width: fit-content;
    min-width: 100px;
    height: 45px;
    padding: 8px;
    font-weight: 600;
    border-radius: 5px;
    border: 2.5px solid #E0E1E4;
    box-shadow: 0px 0px 20px -20px;
    cursor: pointer;
    background-color: white;
    transition: all 0.2s ease-in-out 0ms;
    user-select: none;
    font-family: 'Poppins', sans-serif;
}

.btn-add-to-cart:hover {
    background-color: #F2F2F2;
    box-shadow: 0px 0px 20px -18px;
}

.hidden {
	display: none;
}

.container-description,
.container-additional-information,
.container-reviews {
	display: flex;
	flex-direction: column;
	border-bottom: 1px solid #e4e4e4;
	padding: 10px 0;
}

.title-description,
.title-additional-information,
.title-reviews {
	display: flex;
	align-items: center;
	justify-content: space-between;
	cursor: pointer;
}

.title-description h4,
.title-additional-information h4,
.title-reviews h4 {
	font-weight: 300;
	color: #666;
	font-size: 14px;
}

.text-description,
.text-additional-information,
.text-reviews {
	font-size: 13px;
	color: #252525;
	line-height: 22px;
	margin-top: 25px;
}

.container-social {
	display: flex;
	justify-content: space-between;
	padding: 10px 0;
	align-items: center;
	border-bottom: 1px solid #e4e4e4;
}

.container-social span {
	font-weight: 300;
	color: #252525;
}

.container-buttons-social {
	display: flex;
	gap: 15px;
	align-items: center;
}

.container-buttons-social a:link,
.container-buttons-social a:visited {
	color: #666;
	font-size: 15px;
}

.container-buttons-social a:hover {
	color: #1bbeb4;
}

.container-related-products h2 {
	text-align: center;
	margin-bottom: 30px;
}

.card-list-products {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 25px;
}

.card {
	cursor: pointer;
}

.card-img {
	background: transparent;
	margin-bottom: 15px;
}

.card-img img {
	height: 400px;
	object-fit: cover;
	box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

.info-card {
	display: flex;
	justify-content: space-between;
}

.text-product {
	color: #252525;
	font-weight: 300;
	line-height: 1.4;
}

.text-product h3{
    color: inherit;
    font-weight: inherit;
    font-size: 15px;
}

.text-product h3:hover{
    color: #1bbeb4;
}

.text-product p{
    color: #666;
    font-size: 13px;
}

.text-product p:hover{
    color: #1bbeb4;
}

footer {
	padding: 30px;
	background-color: #eee;
	margin-top: 50px;
	color: #222;
}