* {
	box-sizing: border-box;
}
body.modal-open {
    overflow: hidden; /* Bloquea el scroll del fondo */
}
.modal {
    position: fixed;
    top: 0; /* Asegúrate de que el modal empiece desde la parte superior */
    left: 0; /* Asegúrate de que el modal empiece desde la parte izquierda */
    right: 0; /* Asegúrate de que el modal se extienda a la derecha */
    bottom: 0; /* Asegúrate de que el modal se extienda hacia abajo */
    width: 100%; /* Ocupar todo el ancho */
    height: 100%; /* Ocupar toda la altura */
    padding: 0; /* Sin padding para usar todo el espacio */
    overflow: auto; /* Permite el scroll si es necesario */
    z-index: 1000; /* Asegúrate de que el modal esté por encima de otros elementos */
    background-color: var(--modal-bg); /* Fondo semi-transparente */
}

.modal-gallery {
    position: relative;
    max-width: 100%;
    margin: 0 auto; /* Centra el modal */
}
:root {
	--pumpkin: #004160;
	--peach: #ffede0;
	--black: #1d2025;
	--ash: #68707d;
	--gray: #b6bcc8;
	--dust: #f7f8fd;
	--white: #ffffff;
	--modal-bg: #000000bf;
	--primary: var(--pumpkin);
}

/* GENERAL */

html, body {
	font-size: 16px;
	font-weight: 400;
	line-height: 1.5;
	color: var(--ash);
	font-family: 'Kumbh Sans', sans-serif;
}

h1, h2, h3, h4, h5, h6 {
	color: var(--black);
	font-weight: 700;
	margin: 0 0 1rem;
	letter-spacing: 0.0625rem;
}

h1 {
	font-size: 1.625rem;
}

h2 {
	font-size: 0.8125rem;
}

p {
	margin: 0 0 1.25rem;
	line-height: 1.5625;
	letter-spacing: -0.025rem;
}

img {
	display: block;
	max-width: 100%;
}

.blocked {
	overflow-y: hidden;
}

.hidden {
	display: none;
}

.container {
	position: relative;
	padding-left: 1em;
	padding-right: 1em;
}

.row {
	display: flex;
	flex-wrap: wrap;
	margin-left: -1em;
	margin-right: -1em;
}

.row-centered {
	align-items: center;
}

.btn {
	border: none;
	cursor: pointer;
	background: none;
	appearance: none;
	font-weight: bold;
	text-align: center;
	padding: 1.20625rem 3rem;
	border-radius: 0.5rem;
	box-shadow: 0 0.25rem 0.5rem 0.25rem rgba(256,125,224,0.15);
}

.btn:hover {
	opacity: 0.75;
}

.btn-icon,
.btn-label {
	display: inline-block;
	vertical-align: bottom;
}

.btn-icon {
	width: 1.125rem;
	margin-right: 0.625rem;
}

.form-group {
	position: relative;
	margin-bottom: 1.0625rem;
}

.input-minus, .input-plus {
	cursor: pointer;
	position: absolute;
	top: 0;
}

.input-minus {
	left: 0;
	padding: 1.6875rem 1.5rem;
}

.input-plus {
	right: 0;
	padding: 1.4375rem 1.5rem;
}

.input-minus:hover, 
.input-plus:hover {
	opacity: 0.75;
}

.form-field {
	width: 100%;
	border: none;
	line-height: 1;
	font-weight: 700;
	padding: 1.125rem 3.75rem;
	text-align: center;
	appearance: textfield;
	border-radius: 0.5rem;
	background-color: var(--dust);
}

.form-field:focus,
.form-field:active {
	outline: 0.25rem dashed var(--primary);
}

.btn-primary {
	color: var(--white);
	background-color: var(--primary);
}

.btn-submit {
	display: block;
	width: 100%;
}

.menu {
	list-style: none;
	padding: 0;
	margin: 0;
}

.menu-item {
	color: var(--black);
}

.menu-link {
	color: inherit;
	text-decoration: none;
}

/* HEADER */
.header {
	position: relative;
	padding: 1.1875rem 1.5rem;
	background-color: var(--white);
	z-index: 100;
}

.btn-menu {
	order: 1;
	padding: 0.375rem 0 0.5625rem;
	display: block;
	box-shadow: none;
}

.btn-menu .menu-open,
.btn-menu.active .menu-close {
	display: block;
}

.btn-menu .menu-close,
.btn-menu.active .menu-open {
	display: none;
}

.brand {
	order: 2;
	display: block;
	margin-left: 1rem;
	margin-bottom: 0.625rem;
}

.header .navbar-nav {
	order: 3;
}

.user-cart {
	order: 4;
	margin-left: auto;
}

.user-cart-wrapper {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
}

.btn-cart {
	position: relative;
	padding: 0;
	box-shadow: none;
}

.cart-badge {
	position: absolute;
	top: -0.4375rem;
	left: 0.625rem;
	padding: 0 0.375rem;
	color: var(--white);
	font-size: 0.6875rem;
	border-radius: 0.5rem;
	background-color: var(--primary);
}

.user {
	width: 1.5rem;
	border-radius: 50%;
	margin-left: 1.125rem;
}

.user:hover,
.user:focus {
	outline: 0.125rem solid var(--primary);
}

.user-avatar {
	width: 100%;
}

.navbar-menu {
	display: none;
	line-height: 1;
}

.cart {
	display: none;
	position: absolute;
	top: 4.75rem;
	left: 0.5rem;
	right: 0.5rem;
	height: 16rem;
	border-radius: 0.5rem;
	background-color: var(--white);
	z-index: 10;
}

.cart.show {
	display: block;
}

.cart-header {
	padding: 1.25rem 1.5rem 0.5rem;
	border-bottom: 0.0625rem solid var(--gray);
}

.cart-title {
	font-size: 1rem;
	letter-spacing: -0.025rem;
}

.cart-content {
	padding: 1.375rem 1.5rem 2.0625rem;
}

.cart-empty {
	color: var(--gray);
	text-align: center;
	font-weight: bold;
	margin: 3.3125rem 0;
	letter-spacing: 0;
}

.cart-order {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	margin-bottom: 1.50625rem;
}

.cart-order-thumb {
	border-radius: 0.5rem;
	width: 3.125rem;
	height: 3.125rem;
}

.order-details {
	padding: 0 1.0625rem;
}

.order-product-name {
	line-height: 1.25;
	letter-spacing: 0;
	margin-bottom: 0.5rem;
}

.order-product-price {
	line-height: 1.25;
	letter-spacing: 0.03125rem;
	margin-bottom: 0.125rem;
}

.btn-remove {
	padding: 0;
	box-shadow: none;
}

.btn-checkout {
	width: 100%;
}

/* MAIN */

.content {
	padding-bottom: 4.125rem;
}

/* PRODUCT */
.product-gallery {
	height: 80vw;
	flex: 0 0 100%;
}

.gallery-item-wrapper {
	position: relative;
	height: 100%;
}

.gallery-item {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    z-index: 1;
    overflow: hidden;
    transition: all 0.5s ease;
}

.gallery-item.active {
    opacity: 1;
    z-index: 2;
}

.gallery-item img {
	margin-top: -2.25rem;
	margin-left: auto;
	margin-right: auto;
}

.gallery-arrow {
	position: absolute;
	top: 50%;
	border-radius: 50%;
	transform: translateY(-50%);
	background-color: var(--white);
	z-index: 10;
}

.gallery-arrow.next {
	right: 1rem;
	padding: 0.875rem 0.9375rem 0.90625rem 1.0625rem;
}

.gallery-arrow.prev {
	left: 1rem;
	padding: 0.8125rem 1.0625rem 0.90625rem 0.9375rem;
}

.gallery-arrow img {
	display: block;
	width: 0.5625rem;
}

.gallery-nav {
	display: none;
	flex-wrap: wrap;
	justify-content: space-between;
}

.gallery-nav-thumb {
	flex: 0 0 auto;
	border-radius: 0.625rem;
}

.gallery-nav-thumb.active {
	outline: 0.125rem solid var(--pumpkin);
}

.gallery-nav-thumb img {
	max-width: 5.5rem;
	border-radius: 0.5rem;
}

.gallery-nav-thumb.active img {
	opacity: 0.3;
}

.gallery-nav-thumb:hover img,
.gallery-nav-thumb:focus img{
	opacity: 0.7;
}

.product-details {
	flex: 0 0 100%;
	padding: 1.375rem 0.5rem;
}

.product-company {
	color: var(--primary);
	line-height: 1;
	text-transform: uppercase;
}

.product-name {
	line-height: 1.230769;
	margin-bottom: 1rem;
	color:#004160;
}

.product-desc {
	margin-bottom: 1.75rem;
}

.product-price {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	font-weight: 700;
	line-height: 1;
	letter-spacing: 0.046875rem;
	margin-bottom: 1.625rem;
}

.price {
	display: block;
	color: var(--black);
	font-size: 1.8125rem;
}

.badge {
	display: block;
	color: var(--primary);
	border-radius: 0.5rem;
	padding: 0.375rem 0.5rem;
	margin-left: 0.9375rem;
	background-color: var(--peach);
}

.old-price {
	display: block;
	margin-left: auto;
	margin-bottom: 0.25rem;
	color: var(--gray);
	letter-spacing: 0.046875rem;
	text-decoration: line-through;
}

/* Modal */
.modal {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 999;
	background-color: var(--modal-bg);
}

.modal .navbar-nav {
	height: 100%;
	padding: 1.125rem 1.625rem;
	max-width: 15.625rem;
	background-color: var(--white);
}

.modal .navbar-nav .menu {
	display: block;
	font-weight: bold;
	font-size: 1.125rem;
	margin-top: 2.8125rem;
}

.modal .navbar-nav .menu-item {
	margin-bottom: 1.75rem;
}

.modal .navbar-nav .menu-item:hover {
	color: var(--primary);
}

.modal-gallery {
	padding: 5rem 1rem;
}

.btn-modal {
	display: block;
	margin-left: auto;
	box-shadow: none;
	padding: 0.5rem 0;
	margin-bottom: 0.75rem;
}

.close-modal {
	width: 1.375rem;
}

@media screen and (min-width: 1200px) {
	h1 {
		font-size: 2.6875rem;
	}

	.container {
		max-width: 69.375rem;
		margin-left: auto;
		margin-right: auto;
	}

	.header {
		padding: 1.75rem 0 2.25rem;
		padding: 0;
	}

	.navbar {
		border-bottom: 0.0625rem solid var(--ash);
	}

	.btn-menu {
		display: none;
	}

	.brand {
		flex: 0 0 auto;
		margin: -0.25rem 0 0;
	}

	.navbar-nav {
		flex: 1 0 0;
		padding-left: 3.5rem;
	}

	.navbar-menu {
		display: flex;
		flex-wrap: wrap;
		font-size: 0.9375rem;
		letter-spacing: 0.0125rem;
	}

	.menu-item {
		position: relative;
		margin-right: 2rem;
		padding-top: 2.8125rem;
		padding-bottom: 3.25rem;
	}

	.menu-item::after {
		content: '';
		position: absolute;
		left: 0;
		bottom: 0;
		right: 0;
		width: 0;
		height: 0.25rem;
		transition: width 0.2s ease;
		background-color: var(--primary);
	}

	.menu-item.current::after, .menu-item:hover::after, 
	.menu-item:active::after, .menu-item:focus::after {
		outline: none;
		width: 100%;
	}

	.user-cart {
		flex: 0 0 auto;
		margin-left: 0;
		margin-top: -0.375rem;
	}

	.user {
		width: 3.125rem;
		margin-left: 2.875rem;
	}

	.cart {
		top: 5.875rem;
		left: unset;
		right: -4.75rem;
		width: 22.5rem;
		box-shadow: 0 0.5rem 1rem 0.125rem rgba(0,0,0,0.15);
	}

	.cart-header {
		padding: 1.3125rem 1.5rem;
	}

	.cart-title {
		margin-bottom: 0;
	}

	.cart-content {
		padding: 1.5625rem 1.5rem 2.0625rem;
	}

	.cart-order {
		margin-bottom: 1.625rem;
	}

	.content {
		padding-top: 5.5rem;
		padding-bottom: 8rem;
	}

	.product-gallery {
		flex: 0 0 50%;
		height: 27.875rem;
		padding: 0 3.8125rem 0 3rem;
	}

	.gallery-item {
		border-radius: 1rem;
	}

	.gallery-item img {
		margin-top: 0;
	}

	.gallery-nav {
		display: flex;
		padding-top: 2rem;
	}

	.product-details {
		padding: 4rem 2rem 5rem 3rem;
		flex: 0 0 50%;
	}

	.product-company {
		margin-bottom: 1.125rem;
		letter-spacing: 0.10625rem;
	}

	.product-name {
		letter-spacing: 0.025rem;
		margin-bottom: 2.125rem;
		line-height: 1.1627906976744187;
	}

	.product-desc {
		line-height: 1.625;
		letter-spacing: 0.005rem;
	}

	.product-price {
		margin-bottom: 2.1875rem;
		max-width: 14rem;
	}

	.old-price {
		margin-left: 0;
		margin-top: 0.875rem;
	}

	.product-form {
		display: flex;
		flex-wrap: wrap;
	}

	.form-group {
		max-width: 9.625rem;
		margin-right: 1.125rem;
		margin-bottom: 0;
	}

	.input-minus {
		padding: 1.625rem 1rem;
	}

	.input-plus {
		padding: 1.375rem 1rem;
	}

	.form-field {
		padding: 1.125rem 2.75rem;
	}

	.btn-submit {
		flex: 1 0 0;
	}

	

	.modal-gallery .product-gallery {
		padding: 0;
		height: 34.375rem;
	}

	.modal-gallery .gallery-arrow {
		transform: translateY(-65%);
	}

	.modal-gallery .gallery-arrow img {
		width: auto;
	}

	.modal-gallery .gallery-arrow.prev {
		left: -1.75rem;
		padding: 1.1875rem 1.375rem;
	}

	.modal-gallery .gallery-arrow.next {
		right: -1.75rem;
		padding: 1.15625rem 1.375rem;
	}

	.modal-gallery .gallery-nav {
		padding: 2.5rem 3.25rem 0;
	}
}
/* Estilos para el modal */
.modal-zoom {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* Contenedor de la imagen en el modal */
.modal-zoom img {
    max-width: 90%;
    max-height: 90%;
    margin: 0 auto;
}

/* Botón de cierre */
.close-zoom {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: transparent;
    color: #fff;
    font-size: 2rem;
    border: none;
    cursor: pointer;
    z-index: 10000;
}
/* Botones de navegación (anterior y siguiente) */
.prev-zoom, .next-zoom {
    position: absolute;
    top: 50%;
    font-size: 2rem;
    color: white;
    background-color: rgba(0, 0, 0, 0.6);
    border: none;
    padding: 1rem;
    cursor: pointer;
    z-index: 1000;
    transition: background-color 0.3s;
}

.prev-zoom:hover, .next-zoom:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* Posicionamiento de los botones */
.prev-zoom {
    left: 10px;
    transform: translateY(-50%);
}

.next-zoom {
    right: 10px;
    transform: translateY(-50%);
}
